@aussieljk/forkbook 0.0.0-stage → 0.0.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +77 -2
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +36 -0
- package/assets/browser/favicon-wrapper.svg +46 -0
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/builder-vite/iframe.html +99 -0
- package/assets/create/rendererAssets/.eslintrc.json +16 -0
- package/assets/create/rendererAssets/common/Configure.mdx +388 -0
- package/assets/create/rendererAssets/common/assets/accessibility.png +0 -0
- package/assets/create/rendererAssets/common/assets/accessibility.svg +1 -0
- package/assets/create/rendererAssets/common/assets/addon-library.png +0 -0
- package/assets/create/rendererAssets/common/assets/assets.png +0 -0
- package/assets/create/rendererAssets/common/assets/avif-test-image.avif +0 -0
- package/assets/create/rendererAssets/common/assets/context.png +0 -0
- package/assets/create/rendererAssets/common/assets/discord.svg +1 -0
- package/assets/create/rendererAssets/common/assets/docs.png +0 -0
- package/assets/create/rendererAssets/common/assets/figma-plugin.png +0 -0
- package/assets/create/rendererAssets/common/assets/github.svg +1 -0
- package/assets/create/rendererAssets/common/assets/share.png +0 -0
- package/assets/create/rendererAssets/common/assets/styling.png +0 -0
- package/assets/create/rendererAssets/common/assets/testing.png +0 -0
- package/assets/create/rendererAssets/common/assets/theming.png +0 -0
- package/assets/create/rendererAssets/common/assets/tutorials.svg +1 -0
- package/assets/create/rendererAssets/common/assets/youtube.svg +1 -0
- package/assets/create/rendererAssets/common/button.css +30 -0
- package/assets/create/rendererAssets/common/header.css +32 -0
- package/assets/create/rendererAssets/common/page.css +68 -0
- package/assets/create/templates/react-native/index.expo.js +20 -0
- package/assets/create/templates/react-native/index.js +25 -0
- package/assets/docs/addon-backgrounds.gif +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/highlight.png +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/react-native/metro-env.d.ts +69 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +116 -0
- package/assets/server/base-preview-head.html +494 -0
- package/assets/server/openBrowser.applescript +94 -0
- package/assets/server/template.ejs +87 -0
- package/dist/.build-stamp +0 -0
- package/dist/_browser-chunks/Color-PCLE2J36.js +1025 -0
- package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
- package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +1619 -0
- package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
- package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
- package/dist/_browser-chunks/chunk-2MEPHP35.js +17 -0
- package/dist/_browser-chunks/chunk-2SCZVUKW.js +24 -0
- package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
- package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
- package/dist/_browser-chunks/chunk-52CW7FF7.js +49 -0
- package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +20 -0
- package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
- package/dist/_browser-chunks/chunk-66OCZ54D.js +2604 -0
- package/dist/_browser-chunks/chunk-6SXYJQST.js +253 -0
- package/dist/_browser-chunks/chunk-AYRF6EJB.js +36 -0
- package/dist/_browser-chunks/chunk-B4AUNNU4.js +156 -0
- package/dist/_browser-chunks/chunk-BCP2FFXF.js +369 -0
- package/dist/_browser-chunks/chunk-C3D4HEFY.js +3396 -0
- package/dist/_browser-chunks/chunk-CFAOWGL7.js +43 -0
- package/dist/_browser-chunks/chunk-CFWWCCZV.js +223 -0
- package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
- package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
- package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
- package/dist/_browser-chunks/chunk-EIYAKDGP.js +302 -0
- package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
- package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
- package/dist/_browser-chunks/chunk-FJGWSWL5.js +155 -0
- package/dist/_browser-chunks/chunk-FVSEPWWX.js +2810 -0
- package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
- package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
- package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
- package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +108 -0
- package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
- package/dist/_browser-chunks/chunk-JSBKXXXF.js +218 -0
- package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
- package/dist/_browser-chunks/chunk-JYVGARBG.js +2943 -0
- package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
- package/dist/_browser-chunks/chunk-KQ7CRO2B.js +108 -0
- package/dist/_browser-chunks/chunk-LAWXTSXK.js +18 -0
- package/dist/_browser-chunks/chunk-LE2LTDW3.js +14 -0
- package/dist/_browser-chunks/chunk-LEVSOOLQ.js +48 -0
- package/dist/_browser-chunks/chunk-LV5PIKV4.js +93 -0
- package/dist/_browser-chunks/chunk-MDOL7KML.js +56 -0
- package/dist/_browser-chunks/chunk-MFMDGWP6.js +34 -0
- package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
- package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
- package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/chunk-OD6IBQCC.js +117 -0
- package/dist/_browser-chunks/chunk-ODVJ3XZJ.js +157 -0
- package/dist/_browser-chunks/chunk-OQWFVDIN.js +386 -0
- package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
- package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
- package/dist/_browser-chunks/chunk-P6PK47TQ.js +1970 -0
- package/dist/_browser-chunks/chunk-PFRNG3UC.js +22 -0
- package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
- package/dist/_browser-chunks/chunk-QC4HFS6K.js +41 -0
- package/dist/_browser-chunks/chunk-QDXFODK4.js +274 -0
- package/dist/_browser-chunks/chunk-RBCHTR7C.js +28 -0
- package/dist/_browser-chunks/chunk-RMYQ3QN3.js +294 -0
- package/dist/_browser-chunks/chunk-RNTIV5CE.js +411 -0
- package/dist/_browser-chunks/chunk-RSPAQWVJ.js +80 -0
- package/dist/_browser-chunks/chunk-S6TK43XQ.js +836 -0
- package/dist/_browser-chunks/chunk-SC67XZST.js +18 -0
- package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
- package/dist/_browser-chunks/chunk-SZYFOQMT.js +25 -0
- package/dist/_browser-chunks/chunk-TBJCJXK4.js +18 -0
- package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
- package/dist/_browser-chunks/chunk-V2G23FV7.js +11 -0
- package/dist/_browser-chunks/chunk-V5M7Q4HT.js +88 -0
- package/dist/_browser-chunks/chunk-W5M6NPS3.js +198 -0
- package/dist/_browser-chunks/chunk-W7NE2JXW.js +84 -0
- package/dist/_browser-chunks/chunk-WGVAAM43.js +1110 -0
- package/dist/_browser-chunks/chunk-WHQRNHXD.js +8 -0
- package/dist/_browser-chunks/chunk-WOSOWBCA.js +12 -0
- package/dist/_browser-chunks/chunk-WZ7KR7SH.js +85 -0
- package/dist/_browser-chunks/chunk-YEKO6BHJ.js +20 -0
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-YTIT5NA5.js +1966 -0
- package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
- package/dist/_browser-chunks/chunk-ZTQ5MEJ5.js +203 -0
- package/dist/_browser-chunks/matchers-YLBYSYAF.js +1263 -0
- package/dist/_browser-chunks/react-dom-client-4OHE3QDV.js +9 -0
- package/dist/_node-chunks/attached-runtime-I2G4WLJI.js +282 -0
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +1661 -0
- package/dist/_node-chunks/chunk-2BUPBPFB.js +82 -0
- package/dist/_node-chunks/chunk-2DSIDINN.js +884 -0
- package/dist/_node-chunks/chunk-2RU7BKEW.js +23 -0
- package/dist/_node-chunks/chunk-34EO2PUT.js +26 -0
- package/dist/_node-chunks/chunk-3BKIBF5S.js +3008 -0
- package/dist/_node-chunks/chunk-3SDUYDXH.js +98 -0
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +662 -0
- package/dist/_node-chunks/chunk-3W7F2B7P.js +79 -0
- package/dist/_node-chunks/chunk-3Y6AAY5H.js +80 -0
- package/dist/_node-chunks/chunk-42UWAGPW.js +1193 -0
- package/dist/_node-chunks/chunk-4FEANXWU.js +1986 -0
- package/dist/_node-chunks/chunk-5DQFEZEA.js +40 -0
- package/dist/_node-chunks/chunk-6KEHV53S.js +1218 -0
- package/dist/_node-chunks/chunk-6LMWA44H.js +3837 -0
- package/dist/_node-chunks/chunk-6YKBRP72.js +20 -0
- package/dist/_node-chunks/chunk-7GUDZVRQ.js +110 -0
- package/dist/_node-chunks/chunk-B5J7Q7J4.js +21 -0
- package/dist/_node-chunks/chunk-BS2WMZMR.js +90 -0
- package/dist/_node-chunks/chunk-BSKFCWQD.js +47 -0
- package/dist/_node-chunks/chunk-BXVYT7SB.js +36 -0
- package/dist/_node-chunks/chunk-CCOTJ4FC.js +688 -0
- package/dist/_node-chunks/chunk-CQKMLL5J.js +33 -0
- package/dist/_node-chunks/chunk-CXRU72ET.js +63 -0
- package/dist/_node-chunks/chunk-DC7DKR5K.js +20 -0
- package/dist/_node-chunks/chunk-DHJFTB4K.js +25 -0
- package/dist/_node-chunks/chunk-DUR55DJJ.js +1094 -0
- package/dist/_node-chunks/chunk-E6YESGLX.js +7032 -0
- package/dist/_node-chunks/chunk-EHUNOMDD.js +52345 -0
- package/dist/_node-chunks/chunk-ET7PWEO7.js +298 -0
- package/dist/_node-chunks/chunk-EWOX7HPJ.js +20 -0
- package/dist/_node-chunks/chunk-F3ZFKBHY.js +844 -0
- package/dist/_node-chunks/chunk-FK7KGTV7.js +26 -0
- package/dist/_node-chunks/chunk-FPZB5OI7.js +35 -0
- package/dist/_node-chunks/chunk-FW2HQUBQ.js +25 -0
- package/dist/_node-chunks/chunk-FY6UXW6G.js +11 -0
- package/dist/_node-chunks/chunk-GEFQN7K3.js +499 -0
- package/dist/_node-chunks/chunk-GRBLDJCR.js +989 -0
- package/dist/_node-chunks/chunk-H32DYT6P.js +87 -0
- package/dist/_node-chunks/chunk-H4PPVMP5.js +23 -0
- package/dist/_node-chunks/chunk-HMP2G23X.js +25 -0
- package/dist/_node-chunks/chunk-ICPBH3E7.js +59 -0
- package/dist/_node-chunks/chunk-IDEL2J23.js +23 -0
- package/dist/_node-chunks/chunk-IK4FGZLR.js +223 -0
- package/dist/_node-chunks/chunk-JDXXX6LB.js +68 -0
- package/dist/_node-chunks/chunk-JGGFYIG5.js +5468 -0
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +29 -0
- package/dist/_node-chunks/chunk-JZOO7GGC.js +48 -0
- package/dist/_node-chunks/chunk-KISMCCP5.js +4744 -0
- package/dist/_node-chunks/chunk-LCK4ZQKG.js +115 -0
- package/dist/_node-chunks/chunk-LO56I6E2.js +132 -0
- package/dist/_node-chunks/chunk-LXBD4UL4.js +104 -0
- package/dist/_node-chunks/chunk-MA24JW6C.js +7162 -0
- package/dist/_node-chunks/chunk-MK2KYAI6.js +5414 -0
- package/dist/_node-chunks/chunk-NDWKJ4CL.js +2102 -0
- package/dist/_node-chunks/chunk-NIBT7XDZ.js +168 -0
- package/dist/_node-chunks/chunk-NPO45IMH.js +33 -0
- package/dist/_node-chunks/chunk-OISX4AGQ.js +414 -0
- package/dist/_node-chunks/chunk-OUW6R7C3.js +26 -0
- package/dist/_node-chunks/chunk-OWNFOGTA.js +194 -0
- package/dist/_node-chunks/chunk-Q7QNUM5H.js +49 -0
- package/dist/_node-chunks/chunk-QEQLR22M.js +1877 -0
- package/dist/_node-chunks/chunk-RRN2V55B.js +45 -0
- package/dist/_node-chunks/chunk-RWFIFGO5.js +144 -0
- package/dist/_node-chunks/chunk-RXNJDRGO.js +209 -0
- package/dist/_node-chunks/chunk-RZMQ7S3L.js +92 -0
- package/dist/_node-chunks/chunk-SIEXZVCR.js +51 -0
- package/dist/_node-chunks/chunk-SLWQNBGO.js +2034 -0
- package/dist/_node-chunks/chunk-SVTBJ7Q3.js +35 -0
- package/dist/_node-chunks/chunk-SWO5CDYU.js +32 -0
- package/dist/_node-chunks/chunk-TD5PLLQG.js +121 -0
- package/dist/_node-chunks/chunk-TEQGGSP7.js +33 -0
- package/dist/_node-chunks/chunk-TFCEV2XX.js +155 -0
- package/dist/_node-chunks/chunk-TFEWM4E3.js +1073 -0
- package/dist/_node-chunks/chunk-TINO74G5.js +21 -0
- package/dist/_node-chunks/chunk-TNJIXE37.js +40 -0
- package/dist/_node-chunks/chunk-TWI4GVH7.js +19 -0
- package/dist/_node-chunks/chunk-U5W53R2J.js +1011 -0
- package/dist/_node-chunks/chunk-UBOGWBEA.js +148 -0
- package/dist/_node-chunks/chunk-UMUBKI6E.js +3787 -0
- package/dist/_node-chunks/chunk-UVINFLGY.js +56 -0
- package/dist/_node-chunks/chunk-V2DY426G.js +1133 -0
- package/dist/_node-chunks/chunk-VLOXOXXE.js +45 -0
- package/dist/_node-chunks/chunk-W4OMYLSP.js +1297 -0
- package/dist/_node-chunks/chunk-WAXVSN3O.js +18 -0
- package/dist/_node-chunks/chunk-WCULS5TP.js +3767 -0
- package/dist/_node-chunks/chunk-WNZ2UMFM.js +153 -0
- package/dist/_node-chunks/chunk-WZJF2OUH.js +74 -0
- package/dist/_node-chunks/chunk-XGIUVY52.js +611 -0
- package/dist/_node-chunks/chunk-XHL2LVBM.js +415 -0
- package/dist/_node-chunks/chunk-XI6B6P47.js +59 -0
- package/dist/_node-chunks/chunk-XLP2ZKXV.js +60 -0
- package/dist/_node-chunks/chunk-YCMRA6RX.js +95 -0
- package/dist/_node-chunks/chunk-YZFWBA5L.js +2700 -0
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +4731 -0
- package/dist/_node-chunks/chunk-ZWBCQ4MJ.js +110 -0
- package/dist/_node-chunks/dist-VTSTZKUB.js +16 -0
- package/dist/_node-chunks/globby-OEMHPBFY.js +2884 -0
- package/dist/_node-chunks/jiti-NFX6UU74.js +3848 -0
- package/dist/_node-chunks/lib-MDVARD7W.js +366 -0
- package/dist/_node-chunks/local-runtime-NTKIN2QT.js +78 -0
- package/dist/_node-chunks/mdx-plugin-MWISDWDQ.js +5680 -0
- package/dist/_node-chunks/monorepo-LIRFMQXE.js +121 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js +121 -0
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +22 -0
- package/dist/_node-chunks/pattern-copy-play-EKHIUAU2.js +807 -0
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +20 -0
- package/dist/_node-chunks/rehype-external-links-BUN3HUCO.js +121 -0
- package/dist/_node-chunks/rehype-slug-PLADX223.js +52 -0
- package/dist/_node-chunks/relaxed-limits-GBHW6KIQ.js +117 -0
- package/dist/_node-chunks/run-KDTIZNSY.js +103 -0
- package/dist/_node-chunks/run-NL66VTNR.js +4532 -0
- package/dist/_node-chunks/session-id-KIIVOQLR.js +23 -0
- package/dist/_node-chunks/setup-MGC7BQO6.js +278 -0
- package/dist/_node-chunks/vitest.config.4.template-JH2THZFG.js +54 -0
- package/dist/actions/decorator.d.ts +7 -0
- package/dist/actions/decorator.js +43 -0
- package/dist/actions/index.d.ts +67 -0
- package/dist/actions/index.js +28 -0
- package/dist/addon-a11y/index.d.ts +52 -0
- package/dist/addon-a11y/index.js +16 -0
- package/dist/addon-a11y/manager.js +1429 -0
- package/dist/addon-a11y/preset.js +18 -0
- package/dist/addon-a11y/preview.d.ts +17 -0
- package/dist/addon-a11y/preview.js +15 -0
- package/dist/addon-docs/blocks.d.ts +1061 -0
- package/dist/addon-docs/blocks.js +2461 -0
- package/dist/addon-docs/index.d.ts +236 -0
- package/dist/addon-docs/index.js +16 -0
- package/dist/addon-docs/manager.js +90 -0
- package/dist/addon-docs/mdx-react-shim.d.ts +1 -0
- package/dist/addon-docs/mdx-react-shim.js +2 -0
- package/dist/addon-docs/preset.js +378 -0
- package/dist/addon-docs/preview.d.ts +4 -0
- package/dist/addon-docs/preview.js +7 -0
- package/dist/addon-links/index.d.ts +22 -0
- package/dist/addon-links/index.js +20 -0
- package/dist/addon-links/manager.js +14 -0
- package/dist/addon-links/preview.d.ts +6 -0
- package/dist/addon-links/preview.js +9 -0
- package/dist/addon-links/react/index.d.ts +25 -0
- package/dist/addon-links/react/index.js +52 -0
- package/dist/addon-mcp/preset.js +1345 -0
- package/dist/addon-mcp/preview.js +29 -0
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1153 -0
- package/dist/addon-ondevice-actions/index.d.ts +4 -0
- package/dist/addon-ondevice-actions/index.js +7 -0
- package/dist/addon-ondevice-actions/register.js +7 -0
- package/dist/addon-ondevice-controls/index.d.ts +6 -0
- package/dist/addon-ondevice-controls/index.js +14 -0
- package/dist/addon-ondevice-controls/register.js +10 -0
- package/dist/addon-pseudo-states/index.d.ts +35 -0
- package/dist/addon-pseudo-states/index.js +15 -0
- package/dist/addon-pseudo-states/manager.js +53 -0
- package/dist/addon-pseudo-states/preview.d.ts +9 -0
- package/dist/addon-pseudo-states/preview.js +10 -0
- package/dist/addon-themes/index.d.ts +80 -0
- package/dist/addon-themes/index.js +104 -0
- package/dist/addon-themes/manager.js +97 -0
- package/dist/addon-themes/postinstall.js +33 -0
- package/dist/addon-themes/preview.d.ts +6 -0
- package/dist/addon-themes/preview.js +8 -0
- package/dist/addon-vitest/constants.d.ts +132 -0
- package/dist/addon-vitest/constants.js +66 -0
- package/dist/addon-vitest/index.d.ts +4 -0
- package/dist/addon-vitest/index.js +8 -0
- package/dist/addon-vitest/manager.js +665 -0
- package/dist/addon-vitest/node/coverage-reporter.js +1284 -0
- package/dist/addon-vitest/node/vitest.js +674 -0
- package/dist/addon-vitest/postinstall.js +24 -0
- package/dist/addon-vitest/preset.js +943 -0
- package/dist/addon-vitest/vitest-plugin/global-setup.js +162 -0
- package/dist/addon-vitest/vitest-plugin/index.d.ts +56 -0
- package/dist/addon-vitest/vitest-plugin/index.js +463 -0
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +9 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.browser.4.js +20 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.js +50 -0
- package/dist/addon-vitest/vitest-plugin/test-utils.js +128 -0
- package/dist/babel/index.d.ts +2301 -0
- package/dist/babel/index.js +61 -0
- package/dist/backgrounds/index.d.ts +6 -0
- package/dist/backgrounds/index.js +15 -0
- package/dist/bin/core.js +1705 -0
- package/dist/bin/dispatcher.js +43 -0
- package/dist/bin/loader.js +115 -0
- package/dist/builder-vite/index.d.ts +50 -0
- package/dist/builder-vite/index.js +245 -0
- package/dist/builder-vite/preset.js +27 -0
- package/dist/channels/index.d.ts +2 -0
- package/dist/channels/index.js +352 -0
- package/dist/chunk-B2t1tGRh.d.ts +284 -0
- package/dist/chunk-BCoJQE-f.d.ts +602 -0
- package/dist/chunk-BGkgZp-H.d.ts +214 -0
- package/dist/chunk-BTVrWliM.d.ts +115 -0
- package/dist/chunk-BXLImeLy.d.ts +197 -0
- package/dist/chunk-BfBzpgct.d.ts +916 -0
- package/dist/chunk-Bpi2tz-6.d.ts +511 -0
- package/dist/chunk-BxWufQms.d.ts +142 -0
- package/dist/chunk-C-bavsOH.d.ts +34 -0
- package/dist/chunk-C2p5r3Vt.d.ts +13001 -0
- package/dist/chunk-C6PAgHLT.d.ts +12 -0
- package/dist/chunk-CMeX4WRe.d.ts +179 -0
- package/dist/chunk-Ct9xd6IM.d.ts +65 -0
- package/dist/chunk-CwQKNaYL.d.ts +15 -0
- package/dist/chunk-D7DwV41f.d.ts +3622 -0
- package/dist/chunk-DEVFdzxR.d.ts +253 -0
- package/dist/chunk-DaVb55-_.d.ts +124 -0
- package/dist/chunk-DgRNfmj_.d.ts +40 -0
- package/dist/chunk-DoIGKY33.d.ts +666 -0
- package/dist/chunk-Dr3R0DXk.d.ts +40 -0
- package/dist/chunk-DtHByo32.d.ts +55 -0
- package/dist/chunk-Dw1z1Pki.d.ts +933 -0
- package/dist/chunk-DzuY9DXg.d.ts +79 -0
- package/dist/chunk-FjDVzZTj.d.ts +62 -0
- package/dist/chunk-Kt1tW-D1.d.ts +59 -0
- package/dist/chunk-XP8oHzpE.d.ts +6 -0
- package/dist/chunk-gCX81nOr.d.ts +61 -0
- package/dist/chunk-pcFXCimE.d.ts +741 -0
- package/dist/cli/index.d.ts +1174 -0
- package/dist/cli/index.js +5613 -0
- package/dist/cli/skills/content/index.d.ts +72 -0
- package/dist/cli/skills/content/index.js +335 -0
- package/dist/cli/tools/sdk/child-host.d.ts +61 -0
- package/dist/cli/tools/sdk/child-host.js +131 -0
- package/dist/cli/tools/sdk/index.d.ts +137 -0
- package/dist/cli/tools/sdk/index.js +44 -0
- package/dist/cli-commands/bin/index.js +25 -0
- package/dist/client-logger/index.d.ts +31 -0
- package/dist/client-logger/index.js +63 -0
- package/dist/common/index.d.ts +1103 -0
- package/dist/common/index.js +364 -0
- package/dist/components/index.d.ts +1924 -0
- package/dist/components/index.js +13759 -0
- package/dist/core-events/index.d.ts +155 -0
- package/dist/core-events/index.js +136 -0
- package/dist/core-server/index.d.ts +2200 -0
- package/dist/core-server/index.js +4165 -0
- package/dist/core-server/presets/common-manager.css +170 -0
- package/dist/core-server/presets/common-manager.js +4168 -0
- package/dist/core-server/presets/common-override-preset.js +81 -0
- package/dist/core-server/presets/common-preset.js +2187 -0
- package/dist/create/bin/index.js +23 -0
- package/dist/create/index.js +25 -0
- package/dist/csf/csf-utils.d.ts +2 -0
- package/dist/csf/csf-utils.js +19 -0
- package/dist/csf/index.d.ts +7 -0
- package/dist/csf/index.js +2142 -0
- package/dist/csf-tools/index.d.ts +1157 -0
- package/dist/csf-tools/index.js +736 -0
- package/dist/docs-tools/index.d.ts +197 -0
- package/dist/docs-tools/index.js +61 -0
- package/dist/highlight/index.d.ts +10 -0
- package/dist/highlight/index.js +15 -0
- package/dist/instrumenter/index.d.ts +113 -0
- package/dist/instrumenter/index.js +2595 -0
- package/dist/manager/_manager-chunks/globals-runtime-8HkdnU2F.js +6144 -0
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +3389 -0
- package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/globals-runtime-BmphMP6z.js +1190 -0
- package/dist/manager/_manager-chunks/globals-runtime-BvM-NY2g.js +13307 -0
- package/dist/manager/_manager-chunks/globals-runtime-C02fvgcd.js +9243 -0
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +9766 -0
- package/dist/manager/_manager-chunks/globals-runtime-DpNYC-qi.js +5564 -0
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +5357 -0
- package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
- package/dist/manager/_manager-chunks/globals-runtime-FC201B7s.js +6837 -0
- package/dist/manager/_manager-chunks/globals-runtime-Rp_zjGnh.js +121 -0
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +10463 -0
- package/dist/manager/_manager-chunks/globals-runtime-eLPTIfX-.js +7759 -0
- package/dist/manager/_manager-chunks/globals-runtime-qKvCZHFY.js +4468 -0
- package/dist/manager/_manager-chunks/globals-runtime-sGpNlIJ1.js +5102 -0
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +452 -0
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +22 -0
- package/dist/manager/_manager-chunks/runtime-BhkT2CXl.js +1408 -0
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +998 -0
- package/dist/manager/_manager-chunks/runtime-D0UOWx0U.js +979 -0
- package/dist/manager/_manager-chunks/runtime-D94Vq3oR.js +4014 -0
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +77 -0
- package/dist/manager/_manager-chunks/runtime-EITvVbkG.js +46 -0
- package/dist/manager/_manager-chunks/runtime-cp5pazY2.js +8936 -0
- package/dist/manager/_manager-chunks/runtime-eDVAYF7N.js +6860 -0
- package/dist/manager/_manager-chunks/runtime-i-PDAHLR.js +2493 -0
- package/dist/manager/globals-runtime.js +2 -0
- package/dist/manager/globals.d.ts +23 -0
- package/dist/manager/globals.js +26 -0
- package/dist/manager/manager-stores.d.ts +2 -0
- package/dist/manager/manager-stores.js +19 -0
- package/dist/manager/runtime.js +2 -0
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +3257 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +20 -0
- package/dist/mcp/index.d.ts +270 -0
- package/dist/mcp/index.js +305 -0
- package/dist/mocking-utils/index.d.ts +689 -0
- package/dist/mocking-utils/index.js +521 -0
- package/dist/mocking-utils/mocker-runtime.js +1254 -0
- package/dist/nextjs-vite/config/preview.js +3 -0
- package/dist/nextjs-vite/export-mocks/cache/index.d.ts +25 -0
- package/dist/nextjs-vite/export-mocks/cache/index.js +29 -0
- package/dist/nextjs-vite/export-mocks/headers/index.d.ts +37 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +54 -0
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +9 -0
- package/dist/nextjs-vite/export-mocks/link/index.js +59 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +28 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.js +58 -0
- package/dist/nextjs-vite/export-mocks/router/index.d.ts +34 -0
- package/dist/nextjs-vite/export-mocks/router/index.js +63 -0
- package/dist/nextjs-vite/index.d.ts +92 -0
- package/dist/nextjs-vite/index.js +58 -0
- package/dist/nextjs-vite/node/index.d.ts +6 -0
- package/dist/nextjs-vite/node/index.js +20 -0
- package/dist/nextjs-vite/preset.js +648 -0
- package/dist/nextjs-vite/preview.d.ts +20 -0
- package/dist/nextjs-vite/preview.js +11 -0
- package/dist/nextjs-vite/vite-plugin/index.d.ts +6 -0
- package/dist/nextjs-vite/vite-plugin/index.js +19 -0
- package/dist/nextjs-vite-plugin/index.d.ts +28 -0
- package/dist/nextjs-vite-plugin/index.js +923 -0
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-context.js +8 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-default-loader.js +23 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +28 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +17 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/cache/index.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/dynamic/index.js +40 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/headers/index.js +55 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/link/index.js +63 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/navigation/index.js +71 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +74 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/rsc/server-only.js +7 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/safe-stable-stringify/index.js +13 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/compatibility/draft-mode.compat.js +7 -0
- package/dist/node-logger/index.d.ts +495 -0
- package/dist/node-logger/index.js +42 -0
- package/dist/oxc-parser/index.d.ts +99 -0
- package/dist/oxc-parser/index.js +275 -0
- package/dist/oxc-parser/worker.js +37 -0
- package/dist/preview/_chunks/runtime-BIzIdDbb.js +10263 -0
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +1102 -0
- package/dist/preview/_chunks/runtime-BZSnICCg.js +8484 -0
- package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +63 -0
- package/dist/preview/_chunks/runtime-CqHxptiK.js +6143 -0
- package/dist/preview/_chunks/runtime-CsV4HZPV.js +5064 -0
- package/dist/preview/_chunks/runtime-CxZK_Ln3.js +284 -0
- package/dist/preview/_chunks/runtime-DZToXfvO.js +9767 -0
- package/dist/preview/_chunks/runtime-DrTjJkPY.js +3872 -0
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +387 -0
- package/dist/preview/_chunks/runtime-iXdo8CR8.js +3635 -0
- package/dist/preview/_chunks/runtime-q3wt0e_N.js +6838 -0
- package/dist/preview/globals.d.ts +16 -0
- package/dist/preview/globals.js +20 -0
- package/dist/preview/runtime.js +6 -0
- package/dist/preview-api/index.d.ts +4 -0
- package/dist/preview-api/index.js +147 -0
- package/dist/preview-errors.d.ts +186 -0
- package/dist/preview-errors.js +56 -0
- package/dist/react/docgen/docgen-worker.js +38 -0
- package/dist/react/entry-preview-argtypes.js +9 -0
- package/dist/react/entry-preview-docs.js +12 -0
- package/dist/react/entry-preview-rsc.js +11 -0
- package/dist/react/entry-preview.js +21 -0
- package/dist/react/index.d.ts +119 -0
- package/dist/react/index.js +26 -0
- package/dist/react/preset.js +301 -0
- package/dist/react/preview.d.ts +2 -0
- package/dist/react/preview.js +11 -0
- package/dist/react-native/bin/get-stories.js +34 -0
- package/dist/react-native/index.d.ts +160 -0
- package/dist/react-native/index.js +1547 -0
- package/dist/react-native/metro/node.d.ts +83 -0
- package/dist/react-native/metro/node.js +21 -0
- package/dist/react-native/metro/withStorybook.d.ts +2269 -0
- package/dist/react-native/metro/withStorybook.js +138 -0
- package/dist/react-native/preview.d.ts +6 -0
- package/dist/react-native/preview.js +20 -0
- package/dist/react-native/scripts/generate.d.ts +22 -0
- package/dist/react-native/scripts/generate.js +18 -0
- package/dist/react-native/stub.js +20 -0
- package/dist/react-native-theming/index.d.ts +175 -0
- package/dist/react-native-theming/index.js +2591 -0
- package/dist/react-native-ui/index.d.ts +130 -0
- package/dist/react-native-ui/index.js +1448 -0
- package/dist/react-native-ui-common/index.d.ts +230 -0
- package/dist/react-native-ui-common/index.js +514 -0
- package/dist/react-vite/index.d.ts +4 -0
- package/dist/react-vite/index.js +8 -0
- package/dist/react-vite/node/index.d.ts +6 -0
- package/dist/react-vite/node/index.js +20 -0
- package/dist/react-vite/preset.d.ts +6 -0
- package/dist/react-vite/preset.js +21 -0
- package/dist/router/index.d.ts +141 -0
- package/dist/router/index.js +1217 -0
- package/dist/server-errors.d.ts +2 -0
- package/dist/server-errors.js +149 -0
- package/dist/shared/open-service/index.d.ts +3 -0
- package/dist/shared/open-service/index.js +115 -0
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +75 -0
- package/dist/shared/open-service/toolsets/docs/public.d.ts +1296 -0
- package/dist/shared/open-service/toolsets/docs/public.js +991 -0
- package/dist/telemetry/index.d.ts +314 -0
- package/dist/telemetry/index.js +103 -0
- package/dist/test/index.d.ts +158 -0
- package/dist/test/index.js +19421 -0
- package/dist/theming/create.d.ts +15 -0
- package/dist/theming/create.js +11 -0
- package/dist/theming/index.d.ts +54 -0
- package/dist/theming/index.js +511 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +48 -0
- package/dist/viewport/index.d.ts +275 -0
- package/dist/viewport/index.js +21 -0
- package/package.json +1054 -4
- package/template/nextjs-vite/cli/.eslintrc.json +6 -0
- package/template/nextjs-vite/cli/js/Button.jsx +42 -0
- package/template/nextjs-vite/cli/js/Button.stories.js +49 -0
- package/template/nextjs-vite/cli/js/Configure.mdx +470 -0
- package/template/nextjs-vite/cli/js/Header.jsx +58 -0
- package/template/nextjs-vite/cli/js/Header.stories.js +30 -0
- package/template/nextjs-vite/cli/js/Page.jsx +68 -0
- package/template/nextjs-vite/cli/js/Page.stories.js +28 -0
- package/template/nextjs-vite/cli/ts/Button.stories.ts +54 -0
- package/template/nextjs-vite/cli/ts/Button.tsx +39 -0
- package/template/nextjs-vite/cli/ts/Configure.mdx +446 -0
- package/template/nextjs-vite/cli/ts/Header.stories.ts +34 -0
- package/template/nextjs-vite/cli/ts/Header.tsx +54 -0
- package/template/nextjs-vite/cli/ts/Page.stories.ts +33 -0
- package/template/nextjs-vite/cli/ts/Page.tsx +73 -0
- package/template/react/cli/.eslintrc.json +5 -0
- package/template/react/cli/js/Button.jsx +39 -0
- package/template/react/cli/js/Button.stories.js +49 -0
- package/template/react/cli/js/Header.jsx +56 -0
- package/template/react/cli/js/Header.stories.js +29 -0
- package/template/react/cli/js/Page.jsx +69 -0
- package/template/react/cli/js/Page.stories.js +28 -0
- package/template/react/cli/ts/Button.stories.ts +54 -0
- package/template/react/cli/ts/Button.tsx +37 -0
- package/template/react/cli/ts/Header.stories.ts +34 -0
- package/template/react/cli/ts/Header.tsx +56 -0
- package/template/react/cli/ts/Page.stories.ts +33 -0
- package/template/react/cli/ts/Page.tsx +73 -0
- package/template/react-vite/cli/.eslintrc.json +5 -0
- package/template/react-vite/cli/js/Button.jsx +39 -0
- package/template/react-vite/cli/js/Button.stories.js +49 -0
- package/template/react-vite/cli/js/Header.jsx +56 -0
- package/template/react-vite/cli/js/Header.stories.js +29 -0
- package/template/react-vite/cli/js/Page.jsx +69 -0
- package/template/react-vite/cli/js/Page.stories.js +28 -0
- package/template/react-vite/cli/ts/Button.stories.ts +54 -0
- package/template/react-vite/cli/ts/Button.tsx +37 -0
- package/template/react-vite/cli/ts/Header.stories.ts +34 -0
- package/template/react-vite/cli/ts/Header.tsx +56 -0
- package/template/react-vite/cli/ts/Page.stories.ts +33 -0
- package/template/react-vite/cli/ts/Page.tsx +73 -0
|
@@ -0,0 +1,933 @@
|
|
|
1
|
+
import { n as UnionToIntersection, t as OmitIndexSignature } from "./chunk-DaVb55-_.js";
|
|
2
|
+
import { t as Simplify } from "./chunk-FjDVzZTj.js";
|
|
3
|
+
import { r as BackgroundTypes } from "./chunk-Kt1tW-D1.js";
|
|
4
|
+
import { i as HighlightTypes } from "./chunk-DzuY9DXg.js";
|
|
5
|
+
import { l as ViewportTypes } from "./chunk-gCX81nOr.js";
|
|
6
|
+
import React, { ComponentProps } from "react";
|
|
7
|
+
import { StorybookTypes } from "@aussieljk/forkbook/internal/types";
|
|
8
|
+
import { BoundFunctions, queries } from "@testing-library/dom";
|
|
9
|
+
import { userEvent } from "@testing-library/user-event";
|
|
10
|
+
|
|
11
|
+
//#region .dts-emit/code/core/src/components/components/icon/icon.d.ts
|
|
12
|
+
type IconType = keyof typeof icons;
|
|
13
|
+
interface IconsProps extends ComponentProps<'svg'> {
|
|
14
|
+
icon: IconType;
|
|
15
|
+
useSymbol?: boolean;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
__suppressDeprecationWarning?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const icons: {
|
|
20
|
+
readonly user: 'UserIcon';
|
|
21
|
+
readonly useralt: 'UserAltIcon';
|
|
22
|
+
readonly useradd: 'UserAddIcon';
|
|
23
|
+
readonly users: 'UsersIcon';
|
|
24
|
+
readonly profile: 'ProfileIcon';
|
|
25
|
+
readonly facehappy: 'FaceHappyIcon';
|
|
26
|
+
readonly faceneutral: 'FaceNeutralIcon';
|
|
27
|
+
readonly facesad: 'FaceSadIcon';
|
|
28
|
+
readonly accessibility: 'AccessibilityIcon';
|
|
29
|
+
readonly accessibilityalt: 'AccessibilityAltIcon';
|
|
30
|
+
readonly accessibilityignored: 'AccessibilityIgnoredIcon';
|
|
31
|
+
readonly arrowup: 'ChevronUpIcon';
|
|
32
|
+
readonly arrowdown: 'ChevronDownIcon';
|
|
33
|
+
readonly arrowleft: 'ChevronLeftIcon';
|
|
34
|
+
readonly arrowright: 'ChevronRightIcon';
|
|
35
|
+
readonly arrowupalt: 'ArrowUpIcon';
|
|
36
|
+
readonly arrowdownalt: 'ArrowDownIcon';
|
|
37
|
+
readonly arrowleftalt: 'ArrowLeftIcon';
|
|
38
|
+
readonly arrowrightalt: 'ArrowRightIcon';
|
|
39
|
+
readonly arrowtopleft: 'ArrowTopLeftIcon';
|
|
40
|
+
readonly arrowtopright: 'ArrowTopRightIcon';
|
|
41
|
+
readonly arrowbottomleft: 'ArrowBottomLeftIcon';
|
|
42
|
+
readonly arrowbottomright: 'ArrowBottomRightIcon';
|
|
43
|
+
readonly arrowsolidup: 'ArrowSolidUpIcon';
|
|
44
|
+
readonly arrowsoliddown: 'ArrowSolidDownIcon';
|
|
45
|
+
readonly arrowsolidleft: 'ArrowSolidLeftIcon';
|
|
46
|
+
readonly arrowsolidright: 'ArrowSolidRightIcon';
|
|
47
|
+
readonly chevronsmallup: 'ChevronSmallUpIcon';
|
|
48
|
+
readonly chevronsmalldown: 'ChevronSmallDownIcon';
|
|
49
|
+
readonly chevronsmallleft: 'ChevronSmallLeftIcon';
|
|
50
|
+
readonly chevronsmallright: 'ChevronSmallRightIcon';
|
|
51
|
+
readonly expandalt: 'ExpandAltIcon';
|
|
52
|
+
readonly collapse: 'CollapseIcon';
|
|
53
|
+
readonly expand: 'ExpandIcon';
|
|
54
|
+
readonly unfold: 'UnfoldIcon';
|
|
55
|
+
readonly transfer: 'TransferIcon';
|
|
56
|
+
readonly redirect: 'RedirectIcon';
|
|
57
|
+
readonly jumpto: 'JumpToIcon';
|
|
58
|
+
readonly popout: 'PopOutIcon';
|
|
59
|
+
readonly undo: 'UndoIcon';
|
|
60
|
+
readonly reply: 'ReplyIcon';
|
|
61
|
+
readonly sync: 'SyncIcon';
|
|
62
|
+
readonly upload: 'UploadIcon';
|
|
63
|
+
readonly download: 'DownloadIcon';
|
|
64
|
+
readonly save: 'SaveIcon';
|
|
65
|
+
readonly back: 'BackIcon';
|
|
66
|
+
readonly proceed: 'ProceedIcon';
|
|
67
|
+
readonly refresh: 'RefreshIcon';
|
|
68
|
+
readonly globe: 'GlobeIcon';
|
|
69
|
+
readonly compass: 'CompassIcon';
|
|
70
|
+
readonly direction: 'DirectionIcon';
|
|
71
|
+
readonly location: 'LocationIcon';
|
|
72
|
+
readonly pin: 'PinIcon';
|
|
73
|
+
readonly time: 'TimeIcon';
|
|
74
|
+
readonly dashboard: 'DashboardIcon';
|
|
75
|
+
readonly timer: 'TimerIcon';
|
|
76
|
+
readonly home: 'HomeIcon';
|
|
77
|
+
readonly admin: 'AdminIcon';
|
|
78
|
+
readonly info: 'InfoIcon';
|
|
79
|
+
readonly question: 'QuestionIcon';
|
|
80
|
+
readonly support: 'SupportIcon';
|
|
81
|
+
readonly bug: 'BugIcon';
|
|
82
|
+
readonly alert: 'AlertIcon';
|
|
83
|
+
readonly alertalt: 'AlertAltIcon';
|
|
84
|
+
readonly email: 'EmailIcon';
|
|
85
|
+
readonly phone: 'PhoneIcon';
|
|
86
|
+
readonly link: 'LinkIcon';
|
|
87
|
+
readonly unlink: 'LinkBrokenIcon';
|
|
88
|
+
readonly bell: 'BellIcon';
|
|
89
|
+
readonly rss: 'RSSIcon';
|
|
90
|
+
readonly sharealt: 'ShareAltIcon';
|
|
91
|
+
readonly share: 'ShareIcon';
|
|
92
|
+
readonly circle: 'CircleIcon';
|
|
93
|
+
readonly circlehollow: 'CircleHollowIcon';
|
|
94
|
+
readonly diamond: 'DiamondIcon';
|
|
95
|
+
readonly bookmarkhollow: 'BookmarkHollowIcon';
|
|
96
|
+
readonly bookmark: 'BookmarkIcon';
|
|
97
|
+
readonly hearthollow: 'HeartHollowIcon';
|
|
98
|
+
readonly heart: 'HeartIcon';
|
|
99
|
+
readonly starhollow: 'StarHollowIcon';
|
|
100
|
+
readonly star: 'StarIcon';
|
|
101
|
+
readonly certificate: 'CertificateIcon';
|
|
102
|
+
readonly verified: 'VerifiedIcon';
|
|
103
|
+
readonly thumbsup: 'ThumbsUpIcon';
|
|
104
|
+
readonly shield: 'ShieldIcon';
|
|
105
|
+
readonly basket: 'BasketIcon';
|
|
106
|
+
readonly beaker: 'BeakerIcon';
|
|
107
|
+
readonly hourglass: 'HourglassIcon';
|
|
108
|
+
readonly flag: 'FlagIcon';
|
|
109
|
+
readonly gift: 'GiftIcon';
|
|
110
|
+
readonly sticker: 'StickerIcon';
|
|
111
|
+
readonly cloudhollow: 'CloudHollowIcon';
|
|
112
|
+
readonly cloud: 'CloudIcon';
|
|
113
|
+
readonly edit: 'EditIcon';
|
|
114
|
+
readonly editor: 'EditorIcon';
|
|
115
|
+
readonly cog: 'CogIcon';
|
|
116
|
+
readonly nut: 'NutIcon';
|
|
117
|
+
readonly wrench: 'WrenchIcon';
|
|
118
|
+
readonly wand: 'WandIcon';
|
|
119
|
+
readonly ellipsis: 'EllipsisIcon';
|
|
120
|
+
readonly check: 'CheckIcon';
|
|
121
|
+
readonly checklist: 'ChecklistIcon';
|
|
122
|
+
readonly form: 'FormIcon';
|
|
123
|
+
readonly batchdeny: 'BatchDenyIcon';
|
|
124
|
+
readonly batchaccept: 'BatchAcceptIcon';
|
|
125
|
+
readonly controls: 'ControlsIcon';
|
|
126
|
+
readonly plus: 'PlusIcon';
|
|
127
|
+
readonly closeAlt: 'CloseAltIcon';
|
|
128
|
+
readonly cross: 'CrossIcon';
|
|
129
|
+
readonly trash: 'TrashIcon';
|
|
130
|
+
readonly pinalt: 'PinAltIcon';
|
|
131
|
+
readonly unpin: 'UnpinIcon';
|
|
132
|
+
readonly add: 'AddIcon';
|
|
133
|
+
readonly subtract: 'SubtractIcon';
|
|
134
|
+
readonly close: 'CloseIcon';
|
|
135
|
+
readonly delete: 'DeleteIcon';
|
|
136
|
+
readonly passed: 'PassedIcon';
|
|
137
|
+
readonly changed: 'ChangedIcon';
|
|
138
|
+
readonly failed: 'FailedIcon';
|
|
139
|
+
readonly status: 'StatusIcon';
|
|
140
|
+
readonly statuspass: 'StatusPassIcon';
|
|
141
|
+
readonly statusfail: 'StatusFailIcon';
|
|
142
|
+
readonly statuswarn: 'StatusWarnIcon';
|
|
143
|
+
readonly statusnew: 'StatusAddIcon';
|
|
144
|
+
readonly clear: 'ClearIcon';
|
|
145
|
+
readonly sweep: 'SweepIcon';
|
|
146
|
+
readonly comment: 'CommentIcon';
|
|
147
|
+
readonly commentadd: 'CommentAddIcon';
|
|
148
|
+
readonly requestchange: 'RequestChangeIcon';
|
|
149
|
+
readonly comments: 'CommentsIcon';
|
|
150
|
+
readonly chat: 'ChatIcon';
|
|
151
|
+
readonly lock: 'LockIcon';
|
|
152
|
+
readonly unlock: 'UnlockIcon';
|
|
153
|
+
readonly key: 'KeyIcon';
|
|
154
|
+
readonly command: 'CommandIcon';
|
|
155
|
+
readonly outbox: 'OutboxIcon';
|
|
156
|
+
readonly credit: 'CreditIcon';
|
|
157
|
+
readonly button: 'ButtonIcon';
|
|
158
|
+
readonly type: 'TypeIcon';
|
|
159
|
+
readonly pointerdefault: 'PointerDefaultIcon';
|
|
160
|
+
readonly pointerhand: 'PointerHandIcon';
|
|
161
|
+
readonly browser: 'BrowserIcon';
|
|
162
|
+
readonly tablet: 'TabletIcon';
|
|
163
|
+
readonly mobile: 'MobileIcon';
|
|
164
|
+
readonly watch: 'WatchIcon';
|
|
165
|
+
readonly sidebar: 'SidebarIcon';
|
|
166
|
+
readonly sidebaralt: 'SidebarAltIcon';
|
|
167
|
+
readonly sidebaralttoggle: 'SidebarAltToggleIcon';
|
|
168
|
+
readonly sidebartoggle: 'SidebarToggleIcon';
|
|
169
|
+
readonly bottombar: 'BottomBarIcon';
|
|
170
|
+
readonly bottombartoggle: 'BottomBarToggleIcon';
|
|
171
|
+
readonly cpu: 'CPUIcon';
|
|
172
|
+
readonly database: 'DatabaseIcon';
|
|
173
|
+
readonly memory: 'MemoryIcon';
|
|
174
|
+
readonly structure: 'StructureIcon';
|
|
175
|
+
readonly box: 'BoxIcon';
|
|
176
|
+
readonly power: 'PowerIcon';
|
|
177
|
+
readonly photo: 'PhotoIcon';
|
|
178
|
+
readonly component: 'ComponentIcon';
|
|
179
|
+
readonly grid: 'GridIcon';
|
|
180
|
+
readonly gridalt: 'GridAltIcon';
|
|
181
|
+
readonly outline: 'OutlineIcon';
|
|
182
|
+
readonly photodrag: 'PhotoDragIcon';
|
|
183
|
+
readonly photostabilize: 'PhotoStabilizeIcon';
|
|
184
|
+
readonly drag: 'DragIcon';
|
|
185
|
+
readonly search: 'SearchIcon';
|
|
186
|
+
readonly zoom: 'ZoomIcon';
|
|
187
|
+
readonly zoomout: 'ZoomOutIcon';
|
|
188
|
+
readonly zoomreset: 'ZoomResetIcon';
|
|
189
|
+
readonly eye: 'EyeIcon';
|
|
190
|
+
readonly eyeclose: 'EyeCloseIcon';
|
|
191
|
+
readonly lightning: 'LightningIcon';
|
|
192
|
+
readonly lightningoff: 'LightningOffIcon';
|
|
193
|
+
readonly contrast: 'ContrastIcon';
|
|
194
|
+
readonly contrastignored: 'ContrastIgnoredIcon';
|
|
195
|
+
readonly switchalt: 'SwitchAltIcon';
|
|
196
|
+
readonly mirror: 'MirrorIcon';
|
|
197
|
+
readonly grow: 'GrowIcon';
|
|
198
|
+
readonly paintbrush: 'PaintBrushIcon';
|
|
199
|
+
readonly paintbrushalt: 'PaintBrushAltIcon';
|
|
200
|
+
readonly ruler: 'RulerIcon';
|
|
201
|
+
readonly stop: 'StopIcon';
|
|
202
|
+
readonly camera: 'CameraIcon';
|
|
203
|
+
readonly camerastabilize: 'CameraStabilizeIcon';
|
|
204
|
+
readonly video: 'VideoIcon';
|
|
205
|
+
readonly speaker: 'SpeakerIcon';
|
|
206
|
+
readonly play: 'PlayIcon';
|
|
207
|
+
readonly playback: 'PlayBackIcon';
|
|
208
|
+
readonly playnext: 'PlayNextIcon';
|
|
209
|
+
readonly playhollow: 'PlayHollowIcon';
|
|
210
|
+
readonly playallhollow: 'PlayAllHollowIcon';
|
|
211
|
+
readonly rewind: 'RewindIcon';
|
|
212
|
+
readonly fastforward: 'FastForwardIcon';
|
|
213
|
+
readonly stopalt: 'StopAltIcon';
|
|
214
|
+
readonly stopalthollow: 'StopAltHollowIcon';
|
|
215
|
+
readonly sidebyside: 'SideBySideIcon';
|
|
216
|
+
readonly stacked: 'StackedIcon';
|
|
217
|
+
readonly sun: 'SunIcon';
|
|
218
|
+
readonly moon: 'MoonIcon';
|
|
219
|
+
readonly book: 'BookIcon';
|
|
220
|
+
readonly document: 'DocumentIcon';
|
|
221
|
+
readonly copy: 'CopyIcon';
|
|
222
|
+
readonly category: 'CategoryIcon';
|
|
223
|
+
readonly folder: 'FolderIcon';
|
|
224
|
+
readonly files: 'FilesIcon';
|
|
225
|
+
readonly print: 'PrintIcon';
|
|
226
|
+
readonly graphline: 'GraphLineIcon';
|
|
227
|
+
readonly calendar: 'CalendarIcon';
|
|
228
|
+
readonly graphbar: 'GraphBarIcon';
|
|
229
|
+
readonly menu: 'MenuIcon';
|
|
230
|
+
readonly menualt: 'MenuIcon';
|
|
231
|
+
readonly filter: 'FilterIcon';
|
|
232
|
+
readonly sortup: 'SortUpIcon';
|
|
233
|
+
readonly sortdown: 'SortDownIcon';
|
|
234
|
+
readonly docchart: 'DocChartIcon';
|
|
235
|
+
readonly doclist: 'DocListIcon';
|
|
236
|
+
readonly markup: 'MarkupIcon';
|
|
237
|
+
readonly bold: 'BoldIcon';
|
|
238
|
+
readonly italic: 'ItalicIcon';
|
|
239
|
+
readonly alignleft: 'AlignLeftIcon';
|
|
240
|
+
readonly alignright: 'AlignRightIcon';
|
|
241
|
+
readonly paperclip: 'PaperClipIcon';
|
|
242
|
+
readonly listordered: 'ListOrderedIcon';
|
|
243
|
+
readonly listunordered: 'ListUnorderedIcon';
|
|
244
|
+
readonly paragraph: 'ParagraphIcon';
|
|
245
|
+
readonly markdown: 'MarkdownIcon';
|
|
246
|
+
readonly repository: 'RepoIcon';
|
|
247
|
+
readonly commit: 'CommitIcon';
|
|
248
|
+
readonly branch: 'BranchIcon';
|
|
249
|
+
readonly pullrequest: 'PullRequestIcon';
|
|
250
|
+
readonly merge: 'MergeIcon';
|
|
251
|
+
readonly apple: 'AppleIcon';
|
|
252
|
+
readonly linux: 'LinuxIcon';
|
|
253
|
+
readonly ubuntu: 'UbuntuIcon';
|
|
254
|
+
readonly windows: 'WindowsIcon';
|
|
255
|
+
readonly storybook: 'StorybookIcon';
|
|
256
|
+
readonly azuredevops: 'AzureDevOpsIcon';
|
|
257
|
+
readonly bitbucket: 'BitbucketIcon';
|
|
258
|
+
readonly chrome: 'ChromeIcon';
|
|
259
|
+
readonly chromatic: 'ChromaticIcon';
|
|
260
|
+
readonly componentdriven: 'ComponentDrivenIcon';
|
|
261
|
+
readonly discord: 'DiscordIcon';
|
|
262
|
+
readonly facebook: 'FacebookIcon';
|
|
263
|
+
readonly figma: 'FigmaIcon';
|
|
264
|
+
readonly gdrive: 'GDriveIcon';
|
|
265
|
+
readonly github: 'GithubIcon';
|
|
266
|
+
readonly gitlab: 'GitlabIcon';
|
|
267
|
+
readonly google: 'GoogleIcon';
|
|
268
|
+
readonly graphql: 'GraphqlIcon';
|
|
269
|
+
readonly linkedin: 'LinkedinIcon';
|
|
270
|
+
readonly medium: 'MediumIcon';
|
|
271
|
+
readonly redux: 'ReduxIcon';
|
|
272
|
+
readonly twitter: 'TwitterIcon';
|
|
273
|
+
readonly x: 'XIcon';
|
|
274
|
+
readonly youtube: 'YoutubeIcon';
|
|
275
|
+
readonly vscode: 'VSCodeIcon';
|
|
276
|
+
};
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region .dts-emit/code/core/src/toolbar/types.d.ts
|
|
279
|
+
type ToolbarShortcutType = 'next' | 'previous' | 'reset';
|
|
280
|
+
type ToolbarItemType = 'item' | 'reset';
|
|
281
|
+
interface ToolbarShortcutConfig {
|
|
282
|
+
label: string;
|
|
283
|
+
keys: string[];
|
|
284
|
+
}
|
|
285
|
+
type ToolbarShortcuts = Record<ToolbarShortcutType, ToolbarShortcutConfig>;
|
|
286
|
+
interface ToolbarItem {
|
|
287
|
+
value?: string;
|
|
288
|
+
icon?: IconsProps['icon'];
|
|
289
|
+
right?: string;
|
|
290
|
+
title?: string;
|
|
291
|
+
hideIcon?: boolean;
|
|
292
|
+
type?: ToolbarItemType;
|
|
293
|
+
}
|
|
294
|
+
interface NormalizedToolbarConfig {
|
|
295
|
+
/** The label to show for this toolbar item */
|
|
296
|
+
title?: string;
|
|
297
|
+
/** Choose an icon to show for this toolbar item */
|
|
298
|
+
icon?: IconsProps['icon'];
|
|
299
|
+
/** Set to true to prevent default update of icon to match any present selected items icon */
|
|
300
|
+
preventDynamicIcon?: boolean;
|
|
301
|
+
items: ToolbarItem[];
|
|
302
|
+
shortcuts?: ToolbarShortcuts;
|
|
303
|
+
/** Change title based on selected value */
|
|
304
|
+
dynamicTitle?: boolean;
|
|
305
|
+
}
|
|
306
|
+
type ToolbarConfig = Omit<NormalizedToolbarConfig, 'items'> & {
|
|
307
|
+
items: (string | ToolbarItem)[];
|
|
308
|
+
};
|
|
309
|
+
type ToolbarArgType = {
|
|
310
|
+
name?: string;
|
|
311
|
+
description?: string;
|
|
312
|
+
toolbar?: ToolbarConfig;
|
|
313
|
+
};
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region .dts-emit/code/core/src/csf/SBType.d.ts
|
|
316
|
+
interface SBBaseType {
|
|
317
|
+
required?: boolean;
|
|
318
|
+
raw?: string;
|
|
319
|
+
}
|
|
320
|
+
type SBScalarType = SBBaseType & {
|
|
321
|
+
name: 'boolean' | 'string' | 'number' | 'function' | 'symbol' | 'date';
|
|
322
|
+
};
|
|
323
|
+
type SBArrayType = SBBaseType & {
|
|
324
|
+
name: 'array';
|
|
325
|
+
value: SBType$1;
|
|
326
|
+
};
|
|
327
|
+
type SBNodeType = SBBaseType & {
|
|
328
|
+
name: 'node';
|
|
329
|
+
renderer: string;
|
|
330
|
+
};
|
|
331
|
+
type SBObjectType = SBBaseType & {
|
|
332
|
+
name: 'object';
|
|
333
|
+
value: Record<string, SBType$1>;
|
|
334
|
+
};
|
|
335
|
+
type SBEnumType = SBBaseType & {
|
|
336
|
+
name: 'enum';
|
|
337
|
+
value: (string | number | null)[];
|
|
338
|
+
};
|
|
339
|
+
type SBIntersectionType = SBBaseType & {
|
|
340
|
+
name: 'intersection';
|
|
341
|
+
value: SBType$1[];
|
|
342
|
+
};
|
|
343
|
+
type SBUnionType = SBBaseType & {
|
|
344
|
+
name: 'union';
|
|
345
|
+
value: SBType$1[];
|
|
346
|
+
};
|
|
347
|
+
type SBLiteralType = SBBaseType & {
|
|
348
|
+
name: 'literal';
|
|
349
|
+
value: unknown;
|
|
350
|
+
};
|
|
351
|
+
type SBTupleType = SBBaseType & {
|
|
352
|
+
name: 'tuple';
|
|
353
|
+
value: SBType$1[];
|
|
354
|
+
};
|
|
355
|
+
type SBOtherType = SBBaseType & {
|
|
356
|
+
name: 'other';
|
|
357
|
+
value: string;
|
|
358
|
+
};
|
|
359
|
+
type SBType$1 = SBScalarType | SBEnumType | SBArrayType | SBNodeType | SBObjectType | SBIntersectionType | SBUnionType | SBLiteralType | SBTupleType | SBOtherType;
|
|
360
|
+
//#endregion
|
|
361
|
+
//#region .dts-emit/code/core/src/actions/types.d.ts
|
|
362
|
+
interface ActionsParameters {
|
|
363
|
+
/**
|
|
364
|
+
* Actions configuration
|
|
365
|
+
*
|
|
366
|
+
* @see https://storybook.js.org/docs/essentials/actions#parameters
|
|
367
|
+
*/
|
|
368
|
+
actions?: {
|
|
369
|
+
/**
|
|
370
|
+
* Create actions for each arg that matches the regex. (**NOT recommended, see below**)
|
|
371
|
+
*
|
|
372
|
+
* This is quite useful when your component has dozens (or hundreds) of methods and you do not
|
|
373
|
+
* want to manually apply the fn utility for each of those methods. However, this is not the
|
|
374
|
+
* recommended way of writing actions. That's because automatically inferred args are not
|
|
375
|
+
* available as spies in your play function. If you use argTypesRegex and your stories have play
|
|
376
|
+
* functions, you will need to also define args with the fn utility to test them in your play
|
|
377
|
+
* function.
|
|
378
|
+
*
|
|
379
|
+
* @example `argTypesRegex: '^on.*'`
|
|
380
|
+
*/
|
|
381
|
+
argTypesRegex?: string;
|
|
382
|
+
/**
|
|
383
|
+
* Removes the addon panel and turns off the feature's behavior. If you wish to turn off this
|
|
384
|
+
* feature for the entire Forkbook, you can set the option in your `main.js|ts` configuration
|
|
385
|
+
* file.
|
|
386
|
+
*
|
|
387
|
+
* @see https://storybook.js.org/docs/essentials/actions#disable
|
|
388
|
+
*/
|
|
389
|
+
disable?: boolean;
|
|
390
|
+
/**
|
|
391
|
+
* Binds a standard HTML event handler to the outermost HTML element rendered by your component
|
|
392
|
+
* and triggers an action when the event is called for a given selector. The format is
|
|
393
|
+
* `<eventname> <selector>`. The selector is optional; it defaults to all elements.
|
|
394
|
+
*
|
|
395
|
+
* **To enable this feature, you must use the `withActions` decorator.**
|
|
396
|
+
*
|
|
397
|
+
* @example `handles: ['mouseover', 'click .btn']`
|
|
398
|
+
*/
|
|
399
|
+
handles?: string[];
|
|
400
|
+
/**
|
|
401
|
+
* An integer specifying to which level the tree should be initially expanded.
|
|
402
|
+
*
|
|
403
|
+
* @default 1
|
|
404
|
+
*/
|
|
405
|
+
expandLevel?: number;
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
interface ActionsTypes {
|
|
409
|
+
parameters: ActionsParameters;
|
|
410
|
+
}
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region .dts-emit/code/core/src/controls/types.d.ts
|
|
413
|
+
interface ControlsParameters {
|
|
414
|
+
/**
|
|
415
|
+
* Controls configuration
|
|
416
|
+
*
|
|
417
|
+
* @see https://storybook.js.org/docs/essentials/controls#parameters-1
|
|
418
|
+
*/
|
|
419
|
+
controls?: {
|
|
420
|
+
/**
|
|
421
|
+
* Removes the addon panel and turns off the feature's behavior. If you wish to turn off this
|
|
422
|
+
* feature for the entire Forkbook, you can set the option in your `main.js|ts` configuration
|
|
423
|
+
* file.
|
|
424
|
+
*
|
|
425
|
+
* @see https://storybook.js.org/docs/essentials/controls#disable
|
|
426
|
+
*/
|
|
427
|
+
disable?: boolean; /** Disable the ability to create or edit stories from the Controls panel */
|
|
428
|
+
disableSaveFromUI?: boolean; /** Exclude specific properties from the Controls panel */
|
|
429
|
+
exclude?: string[] | RegExp;
|
|
430
|
+
/**
|
|
431
|
+
* Show the full documentation for each property in the Controls addon panel, including the
|
|
432
|
+
* description and default value.
|
|
433
|
+
*/
|
|
434
|
+
expanded?: boolean; /** Exclude only specific properties in the Controls panel */
|
|
435
|
+
include?: string[] | RegExp;
|
|
436
|
+
/**
|
|
437
|
+
* Custom control type matchers
|
|
438
|
+
*
|
|
439
|
+
* @see https://storybook.js.org/docs/essentials/controls#custom-control-type-matchers
|
|
440
|
+
*/
|
|
441
|
+
matchers?: {
|
|
442
|
+
date?: RegExp;
|
|
443
|
+
color?: RegExp;
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Preset color swatches for the color picker control
|
|
447
|
+
*
|
|
448
|
+
* @example PresetColors: [{ color: '#ff4785', title: 'Coral' }, 'rgba(0, 159, 183, 1)',
|
|
449
|
+
* '#fe4a49']
|
|
450
|
+
*/
|
|
451
|
+
presetColors?: Array<string | {
|
|
452
|
+
color: string;
|
|
453
|
+
title?: string;
|
|
454
|
+
}>; /** Controls sorting order */
|
|
455
|
+
sort?: 'none' | 'alpha' | 'requiredFirst';
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
interface ControlsTypes {
|
|
459
|
+
parameters: ControlsParameters;
|
|
460
|
+
}
|
|
461
|
+
//#endregion
|
|
462
|
+
//#region .dts-emit/code/core/src/measure/types.d.ts
|
|
463
|
+
interface MeasureParameters {
|
|
464
|
+
/**
|
|
465
|
+
* Measure configuration
|
|
466
|
+
*
|
|
467
|
+
* @see https://storybook.js.org/docs/essentials/measure-and-outline#parameters
|
|
468
|
+
*/
|
|
469
|
+
measure?: {
|
|
470
|
+
/**
|
|
471
|
+
* Removes the tool and disables the feature's behavior. If you wish to turn off this feature
|
|
472
|
+
* for the entire Forkbook, you can set the option in your `main.js|ts` configuration file.
|
|
473
|
+
*
|
|
474
|
+
* @see https://storybook.js.org/docs/essentials/measure-and-outline#disable
|
|
475
|
+
*/
|
|
476
|
+
disable?: boolean;
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
interface MeasureTypes {
|
|
480
|
+
parameters: MeasureParameters;
|
|
481
|
+
}
|
|
482
|
+
//#endregion
|
|
483
|
+
//#region .dts-emit/code/core/src/outline/types.d.ts
|
|
484
|
+
interface OutlineParameters {
|
|
485
|
+
/**
|
|
486
|
+
* Outline configuration
|
|
487
|
+
*
|
|
488
|
+
* @see https://storybook.js.org/docs/essentials/measure-and-outline#parameters
|
|
489
|
+
*/
|
|
490
|
+
outline?: {
|
|
491
|
+
/**
|
|
492
|
+
* Removes the tool and disables the feature's behavior. If you wish to turn off this feature
|
|
493
|
+
* for the entire Forkbook, you can set the option in your `main.js|ts` configuration file.
|
|
494
|
+
*
|
|
495
|
+
* @see https://storybook.js.org/docs/essentials/measure-and-outline#disable
|
|
496
|
+
*/
|
|
497
|
+
disable?: boolean;
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
interface OutlineTypes {
|
|
501
|
+
parameters: OutlineParameters;
|
|
502
|
+
}
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region .dts-emit/code/core/src/test/preview.d.ts
|
|
505
|
+
interface TestParameters {
|
|
506
|
+
test?: {
|
|
507
|
+
/** Ignore unhandled errors during test execution */dangerouslyIgnoreUnhandledErrors?: boolean; /** Whether to throw exceptions coming from the play function */
|
|
508
|
+
throwPlayFunctionExceptions?: boolean;
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
interface TestTypes {
|
|
512
|
+
parameters: TestParameters;
|
|
513
|
+
}
|
|
514
|
+
//#endregion
|
|
515
|
+
//#region .dts-emit/code/core/src/csf/core-annotations.d.ts
|
|
516
|
+
type CoreTypes = StorybookTypes & ActionsTypes & BackgroundTypes & ControlsTypes & HighlightTypes & MeasureTypes & OutlineTypes & TestTypes & ViewportTypes;
|
|
517
|
+
/** Flag a project-annotations object as already containing the core annotations. */
|
|
518
|
+
declare function markAsComposedWithCoreAnnotations<T extends object>(annotations: T): T;
|
|
519
|
+
/** Whether a project-annotations object already contains the core annotations. */
|
|
520
|
+
declare function hasCoreAnnotations(annotations: unknown): boolean;
|
|
521
|
+
declare function getCoreAnnotations(): any[];
|
|
522
|
+
//#endregion
|
|
523
|
+
//#region .dts-emit/code/core/src/csf/story.d.ts
|
|
524
|
+
type StoryId$2 = string;
|
|
525
|
+
type ComponentId = string;
|
|
526
|
+
type ComponentTitle$1 = string;
|
|
527
|
+
type StoryName$1 = string;
|
|
528
|
+
/** @deprecated */
|
|
529
|
+
type StoryKind$1 = ComponentTitle$1;
|
|
530
|
+
type Tag$2 = string;
|
|
531
|
+
interface StoryIdentifier {
|
|
532
|
+
componentId: ComponentId;
|
|
533
|
+
title: ComponentTitle$1;
|
|
534
|
+
/** @deprecated */
|
|
535
|
+
kind: ComponentTitle$1;
|
|
536
|
+
id: StoryId$2;
|
|
537
|
+
name: StoryName$1;
|
|
538
|
+
/** @deprecated */
|
|
539
|
+
story: StoryName$1;
|
|
540
|
+
tags: Tag$2[];
|
|
541
|
+
}
|
|
542
|
+
interface Parameters$1 {
|
|
543
|
+
[name: string]: any;
|
|
544
|
+
}
|
|
545
|
+
interface StrictParameters {
|
|
546
|
+
[name: string]: unknown;
|
|
547
|
+
}
|
|
548
|
+
type ControlType = 'object' | 'boolean' | 'check' | 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select' | 'number' | 'range' | 'file' | 'color' | 'date' | 'text';
|
|
549
|
+
type ConditionalTest = {
|
|
550
|
+
truthy?: boolean;
|
|
551
|
+
} | {
|
|
552
|
+
exists: boolean;
|
|
553
|
+
} | {
|
|
554
|
+
eq: any;
|
|
555
|
+
} | {
|
|
556
|
+
neq: any;
|
|
557
|
+
};
|
|
558
|
+
type ConditionalValue = {
|
|
559
|
+
arg: string;
|
|
560
|
+
} | {
|
|
561
|
+
global: string;
|
|
562
|
+
};
|
|
563
|
+
type Conditional$1 = ConditionalValue & ConditionalTest;
|
|
564
|
+
interface ControlBase {
|
|
565
|
+
[key: string]: any;
|
|
566
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controltype */
|
|
567
|
+
type?: ControlType;
|
|
568
|
+
disable?: boolean;
|
|
569
|
+
}
|
|
570
|
+
interface Report {
|
|
571
|
+
type: string;
|
|
572
|
+
version?: number;
|
|
573
|
+
result: unknown;
|
|
574
|
+
status: 'failed' | 'passed' | 'warning';
|
|
575
|
+
}
|
|
576
|
+
interface ReportingAPI {
|
|
577
|
+
reports: Report[];
|
|
578
|
+
addReport: (report: Report) => void;
|
|
579
|
+
}
|
|
580
|
+
type Control = ControlType | false | (ControlBase & (ControlBase | {
|
|
581
|
+
type: 'color'; /** @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors */
|
|
582
|
+
presetColors?: string[];
|
|
583
|
+
} | {
|
|
584
|
+
type: 'file'; /** @see https://storybook.js.org/docs/api/arg-types#controlaccept */
|
|
585
|
+
accept?: string;
|
|
586
|
+
} | {
|
|
587
|
+
type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select'; /** @see https://storybook.js.org/docs/api/arg-types#controllabels */
|
|
588
|
+
labels?: {
|
|
589
|
+
[options: string]: string;
|
|
590
|
+
};
|
|
591
|
+
} | {
|
|
592
|
+
type: 'number' | 'range'; /** @see https://storybook.js.org/docs/api/arg-types#controlmax */
|
|
593
|
+
max?: number; /** @see https://storybook.js.org/docs/api/arg-types#controlmin */
|
|
594
|
+
min?: number; /** @see https://storybook.js.org/docs/api/arg-types#controlstep */
|
|
595
|
+
step?: number;
|
|
596
|
+
}));
|
|
597
|
+
interface InputType {
|
|
598
|
+
/** @see https://storybook.js.org/docs/api/arg-types#control */
|
|
599
|
+
control?: Control;
|
|
600
|
+
/** @see https://storybook.js.org/docs/api/arg-types#description */
|
|
601
|
+
description?: string;
|
|
602
|
+
/** @see https://storybook.js.org/docs/api/arg-types#if */
|
|
603
|
+
if?: Conditional$1;
|
|
604
|
+
/** @see https://storybook.js.org/docs/api/arg-types#mapping */
|
|
605
|
+
mapping?: {
|
|
606
|
+
[key: string]: any;
|
|
607
|
+
};
|
|
608
|
+
/** @see https://storybook.js.org/docs/api/arg-types#name */
|
|
609
|
+
name?: string;
|
|
610
|
+
/** @see https://storybook.js.org/docs/api/arg-types#options */
|
|
611
|
+
options?: readonly any[];
|
|
612
|
+
/** @see https://storybook.js.org/docs/api/arg-types#table */
|
|
613
|
+
table?: {
|
|
614
|
+
[key: string]: unknown; /** @see https://storybook.js.org/docs/api/arg-types#tablecategory */
|
|
615
|
+
category?: string; /** @see https://storybook.js.org/docs/api/arg-types#tabledefaultvalue */
|
|
616
|
+
defaultValue?: {
|
|
617
|
+
summary?: string | undefined;
|
|
618
|
+
detail?: string | undefined;
|
|
619
|
+
}; /** @see https://storybook.js.org/docs/api/arg-types#tabledisable */
|
|
620
|
+
disable?: boolean; /** @see https://storybook.js.org/docs/api/arg-types#tablesubcategory */
|
|
621
|
+
subcategory?: string; /** @see https://storybook.js.org/docs/api/arg-types#tabletype */
|
|
622
|
+
type?: {
|
|
623
|
+
summary?: string | undefined;
|
|
624
|
+
detail?: string | undefined;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
/** @see https://storybook.js.org/docs/api/arg-types#type */
|
|
628
|
+
type?: SBType$1 | SBScalarType['name'];
|
|
629
|
+
/**
|
|
630
|
+
* Removed. Set the story value with `args`, or the docs-table text with `table.defaultValue`.
|
|
631
|
+
* The index signature would otherwise still accept this field.
|
|
632
|
+
*/
|
|
633
|
+
defaultValue?: never;
|
|
634
|
+
[key: string]: any;
|
|
635
|
+
}
|
|
636
|
+
interface StrictInputType extends InputType {
|
|
637
|
+
name: string;
|
|
638
|
+
type?: SBType$1;
|
|
639
|
+
}
|
|
640
|
+
interface Args$2 {
|
|
641
|
+
[name: string]: any;
|
|
642
|
+
}
|
|
643
|
+
interface StrictArgs$1 {
|
|
644
|
+
[name: string]: unknown;
|
|
645
|
+
}
|
|
646
|
+
/** @see https://storybook.js.org/docs/api/arg-types#argtypes */
|
|
647
|
+
type ArgTypes$2<TArgs = Args$2> = { [name in keyof TArgs]: InputType };
|
|
648
|
+
type StrictArgTypes$2<TArgs = Args$2> = { [name in keyof TArgs]: StrictInputType };
|
|
649
|
+
interface Globals$2 {
|
|
650
|
+
[name: string]: any;
|
|
651
|
+
}
|
|
652
|
+
interface GlobalTypes$1 {
|
|
653
|
+
[name: string]: ToolbarArgType;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* AddonTypes allows addons to extend the type system with additional args, parameters, and globals.
|
|
657
|
+
*
|
|
658
|
+
* Addons can use `definePreviewAddon<AddonTypes>()` to declare additional types that will be merged
|
|
659
|
+
* into the story context. For example, an addon that provides a `theme` arg could declare:
|
|
660
|
+
*
|
|
661
|
+
* ```ts
|
|
662
|
+
* const themeAddon = definePreviewAddon<{ args: { theme: 'light' | 'dark' } }>({
|
|
663
|
+
* decorators: [(Story, { args }) => <ThemeProvider theme={args.theme}><Story /></ThemeProvider>]
|
|
664
|
+
* });
|
|
665
|
+
* ```
|
|
666
|
+
*
|
|
667
|
+
* When users include this addon in their preview config, the `theme` arg becomes available and
|
|
668
|
+
* type-checked across all stories.
|
|
669
|
+
*/
|
|
670
|
+
interface AddonTypes$1 {
|
|
671
|
+
tags?: Tag$2[] | undefined;
|
|
672
|
+
args?: unknown;
|
|
673
|
+
parameters?: Record<string, any>;
|
|
674
|
+
globals?: Record<string, any>;
|
|
675
|
+
}
|
|
676
|
+
interface Renderer$2 extends AddonTypes$1 {
|
|
677
|
+
/** What is the type of the `component` annotation in this renderer? */
|
|
678
|
+
component: any;
|
|
679
|
+
/** What does the story function return in this renderer? */
|
|
680
|
+
storyResult: any;
|
|
681
|
+
/** What type of element does this renderer render to? */
|
|
682
|
+
canvasElement: any;
|
|
683
|
+
mount(): Promise<Canvas$1>;
|
|
684
|
+
T?: unknown;
|
|
685
|
+
args: unknown;
|
|
686
|
+
csf4: boolean;
|
|
687
|
+
}
|
|
688
|
+
/** @deprecated - Use `Renderer` */
|
|
689
|
+
type AnyFramework = Renderer$2;
|
|
690
|
+
interface StoryContextForEnhancers$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> extends StoryIdentifier {
|
|
691
|
+
component?: (TRenderer & {
|
|
692
|
+
T: any;
|
|
693
|
+
})['component'];
|
|
694
|
+
subcomponents?: Record<string, (TRenderer & {
|
|
695
|
+
T: any;
|
|
696
|
+
})['component']>;
|
|
697
|
+
parameters: Parameters$1;
|
|
698
|
+
initialArgs: TArgs;
|
|
699
|
+
argTypes: StrictArgTypes$2<TArgs>;
|
|
700
|
+
}
|
|
701
|
+
type ArgsEnhancer<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (context: StoryContextForEnhancers$1<TRenderer, TArgs>) => TArgs;
|
|
702
|
+
type ArgTypesEnhancer<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = ((context: StoryContextForEnhancers$1<TRenderer, TArgs>) => StrictArgTypes$2<TArgs>) & {
|
|
703
|
+
secondPass?: boolean;
|
|
704
|
+
};
|
|
705
|
+
interface StoryContextUpdate$1<TArgs = Args$2> {
|
|
706
|
+
args?: TArgs;
|
|
707
|
+
globals?: Globals$2;
|
|
708
|
+
[key: string]: any;
|
|
709
|
+
}
|
|
710
|
+
type ViewMode$2 = 'story' | 'docs';
|
|
711
|
+
type LoaderFunction$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (context: StoryContextForLoaders<TRenderer, TArgs>) => Promise<Record<string, any> | void> | Record<string, any> | void;
|
|
712
|
+
type Awaitable<T> = T | PromiseLike<T>;
|
|
713
|
+
type CleanupCallback$1 = () => Awaitable<unknown>;
|
|
714
|
+
type BeforeAll = () => Awaitable<CleanupCallback$1 | void>;
|
|
715
|
+
type BeforeEach<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (context: StoryContext$2<TRenderer, TArgs>) => Awaitable<CleanupCallback$1 | void>;
|
|
716
|
+
type AfterEach$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (context: StoryContext$2<TRenderer, TArgs>) => Awaitable<void>;
|
|
717
|
+
interface Canvas$1 extends BoundFunctions<typeof queries> {}
|
|
718
|
+
interface StoryContext$2<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> extends Omit<StoryContextForEnhancers$1<TRenderer, TArgs>, 'argTypes'>, Required<StoryContextUpdate$1<TArgs>> {
|
|
719
|
+
loaded: Record<string, any>;
|
|
720
|
+
abortSignal: AbortSignal;
|
|
721
|
+
canvasElement: TRenderer['canvasElement'];
|
|
722
|
+
hooks: unknown;
|
|
723
|
+
originalStoryFn(args: Args$2, context: StoryContextForRender<TRenderer>): (TRenderer & {
|
|
724
|
+
T: Args$2;
|
|
725
|
+
})['storyResult'];
|
|
726
|
+
viewMode: ViewMode$2;
|
|
727
|
+
step: StepFunction<TRenderer, TArgs>;
|
|
728
|
+
context: this;
|
|
729
|
+
canvas: Canvas$1;
|
|
730
|
+
userEvent: ReturnType<typeof userEvent.setup>;
|
|
731
|
+
mount: TRenderer['mount'];
|
|
732
|
+
reporting: ReportingAPI;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* The story context as decorators and render functions receive it.
|
|
736
|
+
*
|
|
737
|
+
* Unlike the context passed to loaders, `beforeEach`, `play` and `afterEach`, it carries the
|
|
738
|
+
* story's `argTypes`, because renderers read them while rendering.
|
|
739
|
+
*/
|
|
740
|
+
interface StoryContextForRender<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> extends StoryContext$2<TRenderer, TArgs> {
|
|
741
|
+
argTypes: StrictArgTypes$2<TArgs>;
|
|
742
|
+
}
|
|
743
|
+
/** @deprecated Use {@link StoryContext} instead. */
|
|
744
|
+
interface StoryContextForLoaders<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> extends StoryContext$2<TRenderer, TArgs> {}
|
|
745
|
+
/** @deprecated Use {@link StoryContext} instead. */
|
|
746
|
+
interface PlayFunctionContext<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> extends StoryContext$2<TRenderer, TArgs> {}
|
|
747
|
+
type StepLabel = string;
|
|
748
|
+
type StepFunction<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (label: StepLabel, play: PlayFunction<TRenderer, TArgs>) => Promise<void> | void;
|
|
749
|
+
type PlayFunction<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (context: PlayFunctionContext<TRenderer, TArgs>) => Promise<void> | void;
|
|
750
|
+
type TestFunction$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = TRenderer['args']> = (context: StoryContext$2<TRenderer, TArgs>) => Promise<void> | void;
|
|
751
|
+
type PartialStoryFn$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (update?: StoryContextUpdate$1<Partial<TArgs>>) => TRenderer['storyResult'];
|
|
752
|
+
type LegacyStoryFn$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (context: StoryContextForRender<TRenderer, TArgs>) => TRenderer['storyResult'];
|
|
753
|
+
type ArgsStoryFn$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (args: TArgs, context: StoryContextForRender<TRenderer, TArgs>) => (TRenderer & {
|
|
754
|
+
T: TArgs;
|
|
755
|
+
})['storyResult'];
|
|
756
|
+
type StoryFn<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = LegacyStoryFn$1<TRenderer, TArgs> | ArgsStoryFn$1<TRenderer, TArgs>;
|
|
757
|
+
type DecoratorFunction$2<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (fn: PartialStoryFn$1<TRenderer, TArgs>, c: StoryContextForRender<TRenderer, TArgs>) => TRenderer['storyResult'];
|
|
758
|
+
type DecoratorApplicator$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (storyFn: LegacyStoryFn$1<TRenderer, TArgs>, decorators: DecoratorFunction$2<TRenderer, TArgs>[]) => LegacyStoryFn$1<TRenderer, TArgs>;
|
|
759
|
+
type StepRunner$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = (label: StepLabel, play: PlayFunction<TRenderer, TArgs>, context: StoryContext$2<TRenderer, TArgs>) => Promise<void>;
|
|
760
|
+
interface BaseAnnotations$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> {
|
|
761
|
+
/**
|
|
762
|
+
* Wrapper components or Forkbook decorators that wrap a story.
|
|
763
|
+
*
|
|
764
|
+
* Decorators defined in Meta will be applied to every story variation.
|
|
765
|
+
*
|
|
766
|
+
* @see [Decorators](https://storybook.js.org/docs/writing-stories/decorators)
|
|
767
|
+
*/
|
|
768
|
+
decorators?: DecoratorFunction$2<TRenderer, Simplify<TArgs>>[] | DecoratorFunction$2<TRenderer, Simplify<TArgs>>;
|
|
769
|
+
/**
|
|
770
|
+
* Custom metadata for a story.
|
|
771
|
+
*
|
|
772
|
+
* @see [Parameters](https://storybook.js.org/docs/writing-stories/parameters)
|
|
773
|
+
*/
|
|
774
|
+
parameters?: Parameters$1 & (TRenderer['csf4'] extends true ? CoreTypes['parameters'] & TRenderer['parameters'] : unknown);
|
|
775
|
+
/**
|
|
776
|
+
* Dynamic data that are provided (and possibly updated by) Forkbook and its addons.
|
|
777
|
+
*
|
|
778
|
+
* @see [Args](https://storybook.js.org/docs/writing-stories/args)
|
|
779
|
+
*/
|
|
780
|
+
args?: Partial<TArgs>;
|
|
781
|
+
/**
|
|
782
|
+
* ArgTypes encode basic metadata for args, such as `name` and `description`. These get
|
|
783
|
+
* automatically filled in by Forkbook Docs.
|
|
784
|
+
*
|
|
785
|
+
* @see [ArgTypes](https://storybook.js.org/docs/api/arg-types)
|
|
786
|
+
*/
|
|
787
|
+
argTypes?: Partial<ArgTypes$2<TArgs>>;
|
|
788
|
+
/**
|
|
789
|
+
* Asynchronous functions which provide data for a story.
|
|
790
|
+
*
|
|
791
|
+
* @see [Loaders](https://storybook.js.org/docs/writing-stories/loaders)
|
|
792
|
+
*/
|
|
793
|
+
loaders?: LoaderFunction$1<TRenderer, TArgs>[] | LoaderFunction$1<TRenderer, TArgs>;
|
|
794
|
+
/**
|
|
795
|
+
* Function to be called before each story. When the function is async, it will be awaited.
|
|
796
|
+
*
|
|
797
|
+
* `beforeEach` can be added to preview, the default export and to a specific story. They are run
|
|
798
|
+
* (and awaited) in the order: preview, default export, story
|
|
799
|
+
*
|
|
800
|
+
* A cleanup function can be returned.
|
|
801
|
+
*/
|
|
802
|
+
beforeEach?: BeforeEach<TRenderer, TArgs>[] | BeforeEach<TRenderer, TArgs>;
|
|
803
|
+
/**
|
|
804
|
+
* Function to be called after each play function for post-test assertions. Don't use this
|
|
805
|
+
* function for cleaning up state. You can use the return callback of `beforeEach` for that, which
|
|
806
|
+
* is run when switching stories. When the function is async, it will be awaited.
|
|
807
|
+
*
|
|
808
|
+
* `afterEach` can be added to preview, the default export and to a specific story. They are run
|
|
809
|
+
* (and awaited) reverse order: preview, default export, story
|
|
810
|
+
*/
|
|
811
|
+
afterEach?: AfterEach$1<TRenderer, TArgs>[] | AfterEach$1<TRenderer, TArgs>;
|
|
812
|
+
/**
|
|
813
|
+
* Define a custom render function for the story(ies). If not passed, a default render function by
|
|
814
|
+
* the renderer will be used.
|
|
815
|
+
*/
|
|
816
|
+
render?: ArgsStoryFn$1<TRenderer, TArgs>;
|
|
817
|
+
/** Named tags for a story, used to filter stories in different contexts. */
|
|
818
|
+
tags?: (TRenderer['tags'] extends Tag$2[] ? TRenderer['tags'] : Tag$2[]) | undefined;
|
|
819
|
+
mount?: (context: StoryContext$2<TRenderer, TArgs>) => TRenderer['mount'];
|
|
820
|
+
}
|
|
821
|
+
interface ProjectAnnotations$2<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> extends BaseAnnotations$1<TRenderer, TArgs> {
|
|
822
|
+
argsEnhancers?: ArgsEnhancer<TRenderer, Args$2>[];
|
|
823
|
+
argTypesEnhancers?: ArgTypesEnhancer<TRenderer, Args$2>[];
|
|
824
|
+
/**
|
|
825
|
+
* Lifecycle hook which runs once, before any loaders, decorators or stories, and may rerun when
|
|
826
|
+
* configuration changes or when reinitializing (e.g. between test runs). The function may be
|
|
827
|
+
* synchronous or asynchronous, and may return a cleanup function which may also be synchronous or
|
|
828
|
+
* asynchronous. The cleanup function is not guaranteed to run (e.g. when the browser closes), but
|
|
829
|
+
* runs when configuration changes or when reinitializing. This hook may only be defined globally
|
|
830
|
+
* (i.e. not on component or story level). When multiple hooks are specified, they are to be
|
|
831
|
+
* executed sequentially (and awaited) in the following order:
|
|
832
|
+
*
|
|
833
|
+
* - Addon hooks (in order of addons array in e.g. .forkbook/main.js)
|
|
834
|
+
* - Annotation hooks (in order of previewAnnotations array in e.g. .forkbook/main.js)
|
|
835
|
+
* - Preview hook (via e.g. .forkbook/preview.js) Cleanup functions are executed sequentially in
|
|
836
|
+
* reverse order of initialization.
|
|
837
|
+
*/
|
|
838
|
+
beforeAll?: BeforeAll;
|
|
839
|
+
initialGlobals?: Globals$2 & (TRenderer['csf4'] extends true ? CoreTypes['globals'] & TRenderer['globals'] : unknown);
|
|
840
|
+
globalTypes?: GlobalTypes$1;
|
|
841
|
+
applyDecorators?: DecoratorApplicator$1<TRenderer, Args$2>;
|
|
842
|
+
runStep?: StepRunner$1<TRenderer, TArgs>;
|
|
843
|
+
}
|
|
844
|
+
type StoryDescriptor = string[] | RegExp;
|
|
845
|
+
interface ComponentAnnotations$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> extends BaseAnnotations$1<TRenderer, TArgs> {
|
|
846
|
+
/**
|
|
847
|
+
* Title of the component which will be presented in the navigation. **Should be unique.**
|
|
848
|
+
*
|
|
849
|
+
* Components can be organized in a nested structure using "/" as a separator.
|
|
850
|
+
*
|
|
851
|
+
* Since CSF 3.0 this property is optional -- it can be inferred from the filesystem path
|
|
852
|
+
*
|
|
853
|
+
* @example Export default { ... title: 'Design System/Atoms/Button' }
|
|
854
|
+
*
|
|
855
|
+
* @see [Story Hierarchy](https://storybook.js.org/docs/writing-stories/naming-components-and-hierarchy#structure-and-hierarchy)
|
|
856
|
+
*/
|
|
857
|
+
title?: ComponentTitle$1;
|
|
858
|
+
/**
|
|
859
|
+
* Id of the component (prefix of the story id) which is used for URLs.
|
|
860
|
+
*
|
|
861
|
+
* By default is inferred from sanitizing the title
|
|
862
|
+
*
|
|
863
|
+
* @see [Permalink to stories](https://storybook.js.org/docs/configure/sidebar-and-urls#permalink-to-stories)
|
|
864
|
+
*/
|
|
865
|
+
id?: ComponentId;
|
|
866
|
+
/**
|
|
867
|
+
* Used to only include certain named exports as stories. Useful when you want to have non-story
|
|
868
|
+
* exports such as mock data or ignore a few stories.
|
|
869
|
+
*
|
|
870
|
+
* @example IncludeStories: ['SimpleStory', 'ComplexStory'] includeStories: /.*Story$/
|
|
871
|
+
*
|
|
872
|
+
* @see [Non-story exports](https://storybook.js.org/docs/api/csf#non-story-exports)
|
|
873
|
+
*/
|
|
874
|
+
includeStories?: StoryDescriptor;
|
|
875
|
+
/**
|
|
876
|
+
* Used to exclude certain named exports. Useful when you want to have non-story exports such as
|
|
877
|
+
* mock data or ignore a few stories.
|
|
878
|
+
*
|
|
879
|
+
* @example ExcludeStories: ['simpleData', 'complexData'] excludeStories: /.*Data$/
|
|
880
|
+
*
|
|
881
|
+
* @see [Non-story exports](https://storybook.js.org/docs/api/csf#non-story-exports)
|
|
882
|
+
*/
|
|
883
|
+
excludeStories?: StoryDescriptor;
|
|
884
|
+
/**
|
|
885
|
+
* The primary component for your story.
|
|
886
|
+
*
|
|
887
|
+
* Used by addons for automatic prop table generation and display of other component metadata.
|
|
888
|
+
*/
|
|
889
|
+
component?: (TRenderer & {
|
|
890
|
+
T: Record<string, unknown> extends Required<TArgs> ? any : TArgs;
|
|
891
|
+
})['component'];
|
|
892
|
+
/**
|
|
893
|
+
* Auxiliary subcomponents that are part of the stories.
|
|
894
|
+
*
|
|
895
|
+
* Used by addons for automatic prop table generation and display of other component metadata.
|
|
896
|
+
*
|
|
897
|
+
* @example Import { Button, ButtonGroup } from './components';
|
|
898
|
+
*
|
|
899
|
+
* Export default { ... subcomponents: { Button, ButtonGroup } }
|
|
900
|
+
*
|
|
901
|
+
* By defining them each component will have its tab in the args table.
|
|
902
|
+
*/
|
|
903
|
+
subcomponents?: Record<string, (TRenderer & {
|
|
904
|
+
T: any;
|
|
905
|
+
})['component']>;
|
|
906
|
+
/** Function that is executed after the story is rendered. */
|
|
907
|
+
play?: PlayFunction<TRenderer, TArgs>;
|
|
908
|
+
/** Override the globals values for all stories in this component */
|
|
909
|
+
globals?: Partial<Globals$2 & (TRenderer['csf4'] extends true ? CoreTypes['globals'] & TRenderer['globals'] : unknown)>;
|
|
910
|
+
}
|
|
911
|
+
type StoryAnnotations$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2, TRequiredArgs = Partial<TArgs>> = BaseAnnotations$1<TRenderer, TArgs> & {
|
|
912
|
+
/** Override the display name in the UI (CSF v3) */name?: StoryName$1; /** Override the display name in the UI (CSF v2) */
|
|
913
|
+
storyName?: StoryName$1; /** Function that is executed after the story is rendered. */
|
|
914
|
+
play?: PlayFunction<TRenderer, TArgs>; /** Override the globals values for this story */
|
|
915
|
+
globals?: Partial<Globals$2 & (TRenderer['csf4'] extends true ? CoreTypes['globals'] & TRenderer['globals'] : unknown)>;
|
|
916
|
+
} & ({} extends TRequiredArgs ? {
|
|
917
|
+
args?: TRequiredArgs;
|
|
918
|
+
} : {
|
|
919
|
+
args: TRequiredArgs;
|
|
920
|
+
});
|
|
921
|
+
type LegacyAnnotatedStoryFn<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = StoryFn<TRenderer, TArgs> & StoryAnnotations$1<TRenderer, TArgs>;
|
|
922
|
+
type LegacyStoryAnnotationsOrFn$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = LegacyAnnotatedStoryFn<TRenderer, TArgs> | StoryAnnotations$1<TRenderer, TArgs>;
|
|
923
|
+
type AnnotatedStoryFn$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = ArgsStoryFn$1<TRenderer, TArgs> & StoryAnnotations$1<TRenderer, TArgs>;
|
|
924
|
+
type StoryAnnotationsOrFn$1<TRenderer extends Renderer$2 = Renderer$2, TArgs = Args$2> = AnnotatedStoryFn$1<TRenderer, TArgs> | StoryAnnotations$1<TRenderer, TArgs>;
|
|
925
|
+
type ArgsFromMeta$1<TRenderer extends Renderer$2, Meta> = Meta extends {
|
|
926
|
+
render?: ArgsStoryFn$1<TRenderer, infer RArgs>;
|
|
927
|
+
loaders?: (infer Loaders)[] | (infer Loaders);
|
|
928
|
+
decorators?: (infer Decorators)[] | (infer Decorators);
|
|
929
|
+
} ? Simplify<OmitIndexSignature<RArgs & DecoratorsArgs<TRenderer, Decorators> & LoaderArgs<TRenderer, Loaders>>> : unknown;
|
|
930
|
+
type DecoratorsArgs<TRenderer extends Renderer$2, Decorators> = UnionToIntersection<Decorators extends DecoratorFunction$2<TRenderer, infer TArgs> ? TArgs : unknown>;
|
|
931
|
+
type LoaderArgs<TRenderer extends Renderer$2, Loaders> = UnionToIntersection<Loaders extends LoaderFunction$1<TRenderer, infer TArgs> ? TArgs : unknown>;
|
|
932
|
+
//#endregion
|
|
933
|
+
export { StrictParameters as $, PartialStoryFn$1 as A, StoryContext$2 as B, Globals$2 as C, LegacyStoryFn$1 as D, LegacyStoryAnnotationsOrFn$1 as E, StepFunction as F, StoryFn as G, StoryContextForLoaders as H, StepLabel as I, StoryKind$1 as J, StoryId$2 as K, StepRunner$1 as L, PlayFunctionContext as M, ProjectAnnotations$2 as N, LoaderFunction$1 as O, Renderer$2 as P, StrictInputType as Q, StoryAnnotations$1 as R, GlobalTypes$1 as S, SBUnionType as St, LegacyAnnotatedStoryFn as T, StoryContextForRender as U, StoryContextForEnhancers$1 as V, StoryContextUpdate$1 as W, StrictArgTypes$2 as X, StoryName$1 as Y, StrictArgs$1 as Z, ComponentId as _, SBObjectType as _t, ArgTypes$2 as a, hasCoreAnnotations as at, DecoratorApplicator$1 as b, SBTupleType as bt, ArgsEnhancer as c, OutlineTypes as ct, BaseAnnotations$1 as d, ActionsTypes as dt, Tag$2 as et, BeforeAll as f, SBArrayType as ft, ComponentAnnotations$1 as g, SBNodeType as gt, CleanupCallback$1 as h, SBLiteralType as ht, AnyFramework as i, getCoreAnnotations as it, PlayFunction as j, Parameters$1 as k, ArgsFromMeta$1 as l, MeasureTypes as lt, Canvas$1 as m, SBIntersectionType as mt, AfterEach$1 as n, ViewMode$2 as nt, ArgTypesEnhancer as o, markAsComposedWithCoreAnnotations as ot, BeforeEach as p, SBEnumType as pt, StoryIdentifier as q, AnnotatedStoryFn$1 as r, CoreTypes as rt, Args$2 as s, TestTypes as st, AddonTypes$1 as t, TestFunction$1 as tt, ArgsStoryFn$1 as u, ControlsTypes as ut, ComponentTitle$1 as v, SBOtherType as vt, InputType as w, DecoratorFunction$2 as x, SBType$1 as xt, Conditional$1 as y, SBScalarType as yt, StoryAnnotationsOrFn$1 as z };
|