UNPKG

storybook-addon-rtl

Version:
1 lines 1.3 kB
{"version":3,"sources":["../src/constants.ts","../src/index.ts"],"names":["ADDON_ID","TOOL_ID","INITIALIZE_EVENT_ID","UPDATE_EVENT_ID","src_default"],"mappings":"AAAO,IAAMA,EAAW,eACXC,CAEAC,CAAsB,CAAA,CAAA,EAAGF,CAAQ,CAAA,eAAA,CAAA,CAKjCG,EAAkB,CAAGH,EAAAA,CAAQ,CCP1C,WAAA,EAAA,IAAOI,EAAQ","file":"index.mjs","sourcesContent":["export const ADDON_ID = \"storybook/rtl\";\nexport const TOOL_ID = `${ADDON_ID}/rtl-tool`;\n\nexport const INITIALIZE_EVENT_ID = `${ADDON_ID}/rtl-initialize`;\n/**\n * The ID for an event that is emitted in the Storybook channel whenever an change to the direction happens.\n * Events of this type should be accompanied by a parameter with a type of {@link RTLChangeEvent}\n */\nexport const UPDATE_EVENT_ID = `${ADDON_ID}/rtl-update`;\n\nexport type RTLDirection = \"rtl\" | \"ltr\";\n\nexport type RTLChangeEvent = {\n direction: RTLDirection;\n /**\n * Whether this event is the result of a user interaction,\n * or something else (like the initial state, or the parameter of a story)\n */\n userInteraction: boolean;\n};\n","// make it work with --isolatedModules\nexport default {};\nexport {\n INITIALIZE_EVENT_ID as RTL_INITIALIZE_EVENT,\n type RTLChangeEvent,\n type RTLDirection,\n UPDATE_EVENT_ID as RTL_UPDATE_EVENT,\n} from \"./constants\";\n"]}