@aussieljk/forkbook 0.0.0-stage → 0.0.1-10
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 +59 -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/inter-LICENSE.txt +92 -0
- package/assets/browser/inter-variable-italic.woff2 +0 -0
- package/assets/browser/inter-variable.woff2 +0 -0
- package/assets/browser/mirror-ball.png +0 -0
- package/assets/builder-vite/iframe.html +83 -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 +85 -0
- package/dist/.build-stamp +0 -0
- package/dist/_browser-chunks/Color-X63I7FHI.js +1025 -0
- package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
- package/dist/_browser-chunks/WithTooltip-5S6F2P7L.js +198 -0
- package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
- package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
- package/dist/_browser-chunks/chunk-3HM3VWJS.js +2604 -0
- package/dist/_browser-chunks/chunk-3M5T7BW4.js +43 -0
- package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
- package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
- package/dist/_browser-chunks/chunk-4KIQBRD2.js +17 -0
- package/dist/_browser-chunks/chunk-5H4KFI44.js +386 -0
- package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
- package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
- package/dist/_browser-chunks/chunk-5Z65SURM.js +108 -0
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/chunk-6ELMKWKX.js +22 -0
- package/dist/_browser-chunks/chunk-76222HQR.js +253 -0
- package/dist/_browser-chunks/chunk-7DQREF4S.js +218 -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-BNP234B4.js +80 -0
- package/dist/_browser-chunks/chunk-C5TKXHTM.js +82 -0
- package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
- package/dist/_browser-chunks/chunk-DS2WQZGO.js +1956 -0
- package/dist/_browser-chunks/chunk-DYNTDJ3O.js +155 -0
- package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
- package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
- package/dist/_browser-chunks/chunk-EQKMUQF3.js +224 -0
- package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
- package/dist/_browser-chunks/chunk-FRAOQJDI.js +95 -0
- package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
- package/dist/_browser-chunks/chunk-GRO2ZYEJ.js +157 -0
- package/dist/_browser-chunks/chunk-I4ATZPNZ.js +34 -0
- package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
- package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
- package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
- package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
- package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
- package/dist/_browser-chunks/chunk-KYSD26D6.js +1966 -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-LTCXWKZO.js +2935 -0
- package/dist/_browser-chunks/chunk-LYYXDWR2.js +411 -0
- package/dist/_browser-chunks/chunk-MJIDTL3X.js +78 -0
- package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
- package/dist/_browser-chunks/chunk-N3NRW5XX.js +117 -0
- package/dist/_browser-chunks/chunk-N5WQGLI7.js +11 -0
- package/dist/_browser-chunks/chunk-NA4ITZTK.js +324 -0
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
- package/dist/_browser-chunks/chunk-NTUHL5NS.js +54 -0
- package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/chunk-O24AZJZ7.js +56 -0
- package/dist/_browser-chunks/chunk-ONTSNQON.js +20 -0
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
- package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
- package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -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-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-TTBPZQ24.js +3551 -0
- package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
- package/dist/_browser-chunks/chunk-UMGDO2ZM.js +169 -0
- package/dist/_browser-chunks/chunk-V5U45XXZ.js +24 -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-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/chunk-XTQCLWVH.js +1500 -0
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
- package/dist/_browser-chunks/chunk-ZHKZKFY4.js +199 -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-PDBJ2EGV.js +282 -0
- package/dist/_node-chunks/builder-manager-VLL26RPG.js +1139 -0
- package/dist/_node-chunks/chunk-3CSGIJKG.js +499 -0
- package/dist/_node-chunks/chunk-3W4KR5GX.js +2609 -0
- package/dist/_node-chunks/chunk-5NRWU7S2.js +194 -0
- package/dist/_node-chunks/chunk-5SMIGUYF.js +102 -0
- package/dist/_node-chunks/chunk-63LPGIV4.js +1049 -0
- package/dist/_node-chunks/chunk-6DHTL5G2.js +35 -0
- package/dist/_node-chunks/chunk-6DRVJCYP.js +299 -0
- package/dist/_node-chunks/chunk-7CV4VEA2.js +620 -0
- package/dist/_node-chunks/chunk-7KD5DKGZ.js +79 -0
- package/dist/_node-chunks/chunk-7O2UIVID.js +82 -0
- package/dist/_node-chunks/chunk-7OY4VMAT.js +90 -0
- package/dist/_node-chunks/chunk-AAL6X7YG.js +1986 -0
- package/dist/_node-chunks/chunk-ACSO4HQP.js +32 -0
- package/dist/_node-chunks/chunk-BDU3ZUMK.js +98 -0
- package/dist/_node-chunks/chunk-BMJPOQ2S.js +11 -0
- package/dist/_node-chunks/chunk-BNEC3EBC.js +28 -0
- package/dist/_node-chunks/chunk-BPL3ERBH.js +347 -0
- package/dist/_node-chunks/chunk-BXDMSX3D.js +30600 -0
- package/dist/_node-chunks/chunk-C3PLG47Q.js +25 -0
- package/dist/_node-chunks/chunk-CEDR5CNM.js +74 -0
- package/dist/_node-chunks/chunk-CKE4R4NL.js +26 -0
- package/dist/_node-chunks/chunk-CSFNS7HA.js +21 -0
- package/dist/_node-chunks/chunk-CZ3V3HHK.js +223 -0
- package/dist/_node-chunks/chunk-DNV3LPV3.js +33 -0
- package/dist/_node-chunks/chunk-DPILYJH4.js +33 -0
- package/dist/_node-chunks/chunk-DQ44ZAEM.js +25 -0
- package/dist/_node-chunks/chunk-DR7NW2MI.js +104 -0
- package/dist/_node-chunks/chunk-DRCP3DQF.js +209 -0
- package/dist/_node-chunks/chunk-EBWZKN2I.js +1297 -0
- package/dist/_node-chunks/chunk-ECOW63CV.js +92 -0
- package/dist/_node-chunks/chunk-ENBDAHOV.js +18 -0
- package/dist/_node-chunks/chunk-FAEOR2AW.js +40 -0
- package/dist/_node-chunks/chunk-FERXOKZY.js +80 -0
- package/dist/_node-chunks/chunk-FJFB7TWU.js +495 -0
- package/dist/_node-chunks/chunk-FQGQ5KHN.js +63 -0
- package/dist/_node-chunks/chunk-FR2ZDWKJ.js +45 -0
- package/dist/_node-chunks/chunk-FRBE7ES4.js +59 -0
- package/dist/_node-chunks/chunk-FWAF5NBL.js +20 -0
- package/dist/_node-chunks/chunk-FXBZWUW3.js +7044 -0
- package/dist/_node-chunks/chunk-FZ453CHY.js +25 -0
- package/dist/_node-chunks/chunk-G2ZUFOHU.js +68 -0
- package/dist/_node-chunks/chunk-GBVWRZHP.js +23 -0
- package/dist/_node-chunks/chunk-GGE7TBVX.js +121 -0
- package/dist/_node-chunks/chunk-GJSYGBI5.js +47 -0
- package/dist/_node-chunks/chunk-GKHLTHYM.js +4744 -0
- package/dist/_node-chunks/chunk-GQYATLH6.js +3708 -0
- package/dist/_node-chunks/chunk-HCP5DG52.js +2743 -0
- package/dist/_node-chunks/chunk-HVOSLI2K.js +20 -0
- package/dist/_node-chunks/chunk-ID3WA6WR.js +171 -0
- package/dist/_node-chunks/chunk-IGOX6TUG.js +95 -0
- package/dist/_node-chunks/chunk-IL7YA7QJ.js +148 -0
- package/dist/_node-chunks/chunk-IUPE4SU2.js +688 -0
- package/dist/_node-chunks/chunk-JVWXCB3L.js +7179 -0
- package/dist/_node-chunks/chunk-K4O2ZAMU.js +57 -0
- package/dist/_node-chunks/chunk-KRWR44KT.js +25 -0
- package/dist/_node-chunks/chunk-KWNBN3DV.js +132 -0
- package/dist/_node-chunks/chunk-LG3NMXCM.js +20 -0
- package/dist/_node-chunks/chunk-LH5QBX2U.js +1001 -0
- package/dist/_node-chunks/chunk-LX2XSPPL.js +59 -0
- package/dist/_node-chunks/chunk-M4QNXI37.js +21 -0
- package/dist/_node-chunks/chunk-MBPHOLXB.js +1218 -0
- package/dist/_node-chunks/chunk-MIWBXEUH.js +26 -0
- package/dist/_node-chunks/chunk-MKUA4ZCG.js +1193 -0
- package/dist/_node-chunks/chunk-MQC7ZY6L.js +5468 -0
- package/dist/_node-chunks/chunk-MRCPS4S3.js +48 -0
- package/dist/_node-chunks/chunk-MY7UVHPL.js +153 -0
- package/dist/_node-chunks/chunk-ND323XCC.js +33 -0
- package/dist/_node-chunks/chunk-NGFFEW2B.js +972 -0
- package/dist/_node-chunks/chunk-OPG46TLN.js +1119 -0
- package/dist/_node-chunks/chunk-PEL4YXU6.js +19 -0
- package/dist/_node-chunks/chunk-QFXAGOIO.js +115 -0
- package/dist/_node-chunks/chunk-QGC3UWR5.js +110 -0
- package/dist/_node-chunks/chunk-QGVU7IFS.js +414 -0
- package/dist/_node-chunks/chunk-QOFBJXPH.js +1525 -0
- package/dist/_node-chunks/chunk-QVLHVO4X.js +532 -0
- package/dist/_node-chunks/chunk-R2ZCFA7I.js +60 -0
- package/dist/_node-chunks/chunk-RC4HPD5Q.js +26 -0
- package/dist/_node-chunks/chunk-RJXAXHDJ.js +415 -0
- package/dist/_node-chunks/chunk-SGEPJMTU.js +1094 -0
- package/dist/_node-chunks/chunk-SYUOBOB5.js +35 -0
- package/dist/_node-chunks/chunk-T5VZYRL2.js +40 -0
- package/dist/_node-chunks/chunk-T6IU66AM.js +69 -0
- package/dist/_node-chunks/chunk-THDTJJMO.js +611 -0
- package/dist/_node-chunks/chunk-TNFH4Y4G.js +1133 -0
- package/dist/_node-chunks/chunk-TY2ZY7AO.js +155 -0
- package/dist/_node-chunks/chunk-TZIT6SZP.js +49 -0
- package/dist/_node-chunks/chunk-VG2KFIOW.js +45 -0
- package/dist/_node-chunks/chunk-VSHYJR23.js +56 -0
- package/dist/_node-chunks/chunk-VUMGWJ6Y.js +844 -0
- package/dist/_node-chunks/chunk-WVRM6DQU.js +3767 -0
- package/dist/_node-chunks/chunk-YU5TVYPS.js +87 -0
- package/dist/_node-chunks/chunk-ZBWAA2EY.js +2106 -0
- package/dist/_node-chunks/chunk-ZD5TUA6I.js +20 -0
- package/dist/_node-chunks/chunk-ZFLK7MY5.js +144 -0
- package/dist/_node-chunks/dist-7OJKTBKL.js +27 -0
- package/dist/_node-chunks/dist-MWP6WLW4.js +16 -0
- package/dist/_node-chunks/local-runtime-V5YTRN24.js +78 -0
- package/dist/_node-chunks/mdx-plugin-CBOD52VP.js +7813 -0
- package/dist/_node-chunks/monorepo-GF6H53U4.js +121 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-K4TTV2DQ.js +121 -0
- package/dist/_node-chunks/optimized-tests-KOTSVWTN.js +22 -0
- package/dist/_node-chunks/pattern-copy-play-M2QNC4IZ.js +807 -0
- package/dist/_node-chunks/postinstallAddon-WXKJL6DP.js +20 -0
- package/dist/_node-chunks/rehype-external-links-3IDE4CYH.js +121 -0
- package/dist/_node-chunks/rehype-slug-GKB3WS3U.js +52 -0
- package/dist/_node-chunks/relaxed-limits-C6QU365N.js +117 -0
- package/dist/_node-chunks/run-TMVS3KKA.js +4792 -0
- package/dist/_node-chunks/run-XWBUPXLN.js +103 -0
- package/dist/_node-chunks/session-id-VMH57SKN.js +23 -0
- package/dist/_node-chunks/setup-KEEJK4WI.js +278 -0
- package/dist/_node-chunks/vitest.config.4.template-74HEE4WJ.js +54 -0
- package/dist/actions/decorator.d.ts +7 -0
- package/dist/actions/decorator.js +44 -0
- package/dist/actions/index.d.ts +67 -0
- package/dist/actions/index.js +29 -0
- package/dist/addon-a11y/index.d.ts +52 -0
- package/dist/addon-a11y/index.js +17 -0
- package/dist/addon-a11y/manager.js +1432 -0
- package/dist/addon-a11y/preset.js +18 -0
- package/dist/addon-a11y/preview.d.ts +17 -0
- package/dist/addon-a11y/preview.js +16 -0
- package/dist/addon-docs/blocks.d.ts +1080 -0
- package/dist/addon-docs/blocks.js +2537 -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 +23 -0
- package/dist/addon-links/manager.js +14 -0
- package/dist/addon-links/preview.d.ts +6 -0
- package/dist/addon-links/preview.js +12 -0
- package/dist/addon-links/react/index.d.ts +25 -0
- package/dist/addon-links/react/index.js +55 -0
- package/dist/addon-mcp/preset.js +1353 -0
- package/dist/addon-mcp/preview.js +29 -0
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1129 -0
- package/dist/addon-ondevice-actions/index.d.ts +4 -0
- package/dist/addon-ondevice-actions/index.js +11 -0
- package/dist/addon-ondevice-actions/register.js +11 -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 +942 -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 +1550 -0
- package/dist/babel/index.js +55 -0
- package/dist/backgrounds/index.d.ts +6 -0
- package/dist/backgrounds/index.js +15 -0
- package/dist/bin/core.js +1706 -0
- package/dist/bin/dispatcher.js +45 -0
- package/dist/bin/loader.js +116 -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-BCoJQE-f.d.ts +602 -0
- package/dist/chunk-BGhyFTJO.d.ts +115 -0
- package/dist/chunk-BGkgZp-H.d.ts +214 -0
- package/dist/chunk-BXLImeLy.d.ts +197 -0
- package/dist/chunk-Bpi2tz-6.d.ts +511 -0
- package/dist/chunk-C6PAgHLT.d.ts +12 -0
- package/dist/chunk-CFk6djyM.d.ts +55 -0
- package/dist/chunk-CNqjcOmK.d.ts +15 -0
- package/dist/chunk-CT2iXaHz.d.ts +179 -0
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/chunk-CYuvV2sR.d.ts +282 -0
- package/dist/chunk-Ct9xd6IM.d.ts +65 -0
- package/dist/chunk-D0NUmzXp.d.ts +253 -0
- package/dist/chunk-D7DwV41f.d.ts +3622 -0
- package/dist/chunk-DDd8BhTY.d.ts +79 -0
- package/dist/chunk-DROZ9oel.d.ts +669 -0
- package/dist/chunk-DaVb55-_.d.ts +124 -0
- package/dist/chunk-DgRNfmj_.d.ts +40 -0
- package/dist/chunk-DgzPaTw9.d.ts +61 -0
- package/dist/chunk-Dm-iHJ-s.d.ts +59 -0
- package/dist/chunk-DoIGKY33.d.ts +666 -0
- package/dist/chunk-Dr3R0DXk.d.ts +40 -0
- package/dist/chunk-Dw_4ad2Y.d.ts +34 -0
- package/dist/chunk-Fg1Fm__9.d.ts +13091 -0
- package/dist/chunk-FjDVzZTj.d.ts +62 -0
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/chunk-XP8oHzpE.d.ts +6 -0
- package/dist/chunk-pcFXCimE.d.ts +741 -0
- package/dist/cli/index.d.ts +321 -0
- package/dist/cli/index.js +703 -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 +65 -0
- package/dist/common/index.d.ts +1091 -0
- package/dist/common/index.js +358 -0
- package/dist/components/index.d.ts +1727 -0
- package/dist/components/index.js +7982 -0
- package/dist/core-events/index.d.ts +156 -0
- package/dist/core-events/index.js +138 -0
- package/dist/core-server/index.d.ts +2200 -0
- package/dist/core-server/index.js +4577 -0
- package/dist/core-server/presets/common-manager.js +3744 -0
- package/dist/core-server/presets/common-override-preset.js +83 -0
- package/dist/core-server/presets/common-preset.js +2194 -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 +2077 -0
- package/dist/csf-tools/index.d.ts +1161 -0
- package/dist/csf-tools/index.js +738 -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 +2597 -0
- package/dist/manager/_manager-chunks/globals-runtime-BKQscPdC.js +5661 -0
- package/dist/manager/_manager-chunks/globals-runtime-BY3epqww.js +1807 -0
- package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bj5KDUJi.js +8935 -0
- package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +9987 -0
- package/dist/manager/_manager-chunks/globals-runtime-BweHuXkK.js +6838 -0
- package/dist/manager/_manager-chunks/globals-runtime-CA8AuIRT.js +7617 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/globals-runtime-CJL1dQtn.js +4674 -0
- package/dist/manager/_manager-chunks/globals-runtime-CfurFwS_.js +121 -0
- package/dist/manager/_manager-chunks/globals-runtime-CvIgTRVu.js +1190 -0
- package/dist/manager/_manager-chunks/globals-runtime-DBba3I9c.js +5307 -0
- package/dist/manager/_manager-chunks/globals-runtime-DvV_TF3-.js +12214 -0
- package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
- package/dist/manager/_manager-chunks/globals-runtime-NwJK8t0T.js +9274 -0
- package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +4091 -0
- package/dist/manager/_manager-chunks/globals-runtime-wjkxyMn0.js +5283 -0
- package/dist/manager/_manager-chunks/runtime-5B2mWjEm.js +294 -0
- package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +78 -0
- package/dist/manager/_manager-chunks/runtime-B_nqedQW.js +197 -0
- package/dist/manager/_manager-chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/runtime-Bs3bEhuy.js +1232 -0
- package/dist/manager/_manager-chunks/runtime-CBQsKmch.js +2351 -0
- package/dist/manager/_manager-chunks/runtime-DG61zYUm.js +1158 -0
- package/dist/manager/_manager-chunks/runtime-DtCVCy4G.js +6841 -0
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/runtime-eBAgOym6.js +9010 -0
- package/dist/manager/_manager-chunks/runtime-j9yqh0tr.js +1023 -0
- package/dist/manager/_manager-chunks/runtime-jj8qYc2n.js +3488 -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 +3247 -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 +526 -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 +59 -0
- package/dist/nextjs-vite/node/index.d.ts +6 -0
- package/dist/nextjs-vite/node/index.js +20 -0
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +727 -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 +27 -0
- package/dist/nextjs-vite-plugin/index.js +908 -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 +488 -0
- package/dist/node-logger/index.js +41 -0
- package/dist/oxc-parser/index.d.ts +99 -0
- package/dist/oxc-parser/index.js +273 -0
- package/dist/oxc-parser/worker.js +37 -0
- package/dist/preview/_chunks/runtime-BJwGQok8.js +3873 -0
- package/dist/preview/_chunks/runtime-BPwAnlRx.js +10411 -0
- package/dist/preview/_chunks/runtime-BUnOhg9h.js +6838 -0
- package/dist/preview/_chunks/runtime-BZ4pNS3g.js +284 -0
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/preview/_chunks/runtime-BgPhfM5P.js +3681 -0
- package/dist/preview/_chunks/runtime-BhSZ1Mwt.js +5262 -0
- package/dist/preview/_chunks/runtime-BsMjBzuq.js +53 -0
- package/dist/preview/_chunks/runtime-C1jgT6tJ.js +4091 -0
- package/dist/preview/_chunks/runtime-CkOhMcXf.js +387 -0
- package/dist/preview/_chunks/runtime-WapFVPAh.js +8484 -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 +149 -0
- package/dist/preview-errors.d.ts +186 -0
- package/dist/preview-errors.js +56 -0
- package/dist/react/docgen/docgen-worker.js +37 -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 +22 -0
- package/dist/react/index.d.ts +119 -0
- package/dist/react/index.js +28 -0
- package/dist/react/preset.js +300 -0
- package/dist/react/preview.d.ts +2 -0
- package/dist/react/preview.js +12 -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 +1362 -0
- package/dist/react-native/metro/node.d.ts +83 -0
- package/dist/react-native/metro/node.js +22 -0
- package/dist/react-native/metro/withForkbook.d.ts +2269 -0
- package/dist/react-native/metro/withForkbook.js +139 -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 +119 -0
- package/dist/react-native-theming/index.js +316 -0
- package/dist/react-native-ui/index.d.ts +129 -0
- package/dist/react-native-ui/index.js +1448 -0
- package/dist/react-native-ui-common/index.d.ts +229 -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 +209 -0
- package/dist/router/index.js +1259 -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 +101 -0
- package/dist/test/index.d.ts +158 -0
- package/dist/test/index.js +19656 -0
- package/dist/theming/create.d.ts +15 -0
- package/dist/theming/create.js +12 -0
- package/dist/theming/index.d.ts +54 -0
- package/dist/theming/index.js +536 -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 +1030 -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,198 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PortalContainerContext,
|
|
3
|
+
PortalTheme,
|
|
4
|
+
index_parts_exports
|
|
5
|
+
} from "./chunk-DNJ3OSLB.js";
|
|
6
|
+
import "./chunk-XKTORVEQ.js";
|
|
7
|
+
import "./chunk-NPNIBOPF.js";
|
|
8
|
+
import "./chunk-XTQCLWVH.js";
|
|
9
|
+
import {
|
|
10
|
+
global
|
|
11
|
+
} from "./chunk-6AKCRYVX.js";
|
|
12
|
+
import "./chunk-IMSF75WX.js";
|
|
13
|
+
|
|
14
|
+
// src/components/components/tooltip/WithTooltip.tsx
|
|
15
|
+
import React, { useCallback, useContext, useEffect, useId, useState } from "react";
|
|
16
|
+
import { deprecate } from "@aussieljk/forkbook/internal/client-logger";
|
|
17
|
+
|
|
18
|
+
// storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/components/components/tooltip/WithTooltip.module.css
|
|
19
|
+
var id = "core/src/components/components/tooltip/WithTooltip.module.css";
|
|
20
|
+
if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
21
|
+
let style = document.createElement("style");
|
|
22
|
+
style.setAttribute("data-fb-css", id), style.textContent = ".fb-QoytUq-wrapper{--tooltip-bg:#fffffff2;z-index:2147483647;color-scheme:light dark;display:inline-block;&[data-chrome]{background:var(--tooltip-bg);filter:drop-shadow(0 5px 5px #0000000d)drop-shadow(0 1px 3px #0000001a);border-radius:calc(var(--fb-app-border-radius) + 2px);font-family:var(--fb-font-base);font-size:var(--fb-size-s1)}}:where([data-fb-theme=dark]) .fb-QoytUq-wrapper:not([data-color]){--tooltip-bg:var(--fb-background-app)}.fb-QoytUq-arrow{border:8px solid #0000;position:absolute;inset:auto;&[data-side=top]{border-bottom-width:0;border-top-color:var(--tooltip-bg);bottom:-8px;transform:translate(8px)}&[data-side=bottom]{border-top-width:0;border-bottom-color:var(--tooltip-bg);top:-8px;transform:translate(8px)}&[data-side=left]{border-right-width:0;border-left-color:var(--tooltip-bg);right:-8px;transform:translateY(8px)}&[data-side=right]{border-left-width:0;border-right-color:var(--tooltip-bg);left:-8px;transform:translateY(8px)}}.fb-QoytUq-target{cursor:pointer;display:inline-block;&[data-hover]{cursor:default}}.fb-QoytUq-targetSvg{cursor:pointer;&[data-hover]{cursor:default}}", document.head.appendChild(style);
|
|
23
|
+
}
|
|
24
|
+
var WithTooltip_default = { targetSvg: "fb-QoytUq-targetSvg", arrow: "fb-QoytUq-arrow", target: "fb-QoytUq-target", wrapper: "fb-QoytUq-wrapper" };
|
|
25
|
+
|
|
26
|
+
// src/components/components/tooltip/WithTooltip.tsx
|
|
27
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
+
var { document: document2 } = global, Tooltip = React.forwardRef(
|
|
29
|
+
({
|
|
30
|
+
placement = "top",
|
|
31
|
+
hasChrome = !0,
|
|
32
|
+
children,
|
|
33
|
+
arrowProps = {},
|
|
34
|
+
tooltipRef,
|
|
35
|
+
color,
|
|
36
|
+
withArrows,
|
|
37
|
+
hidden,
|
|
38
|
+
className,
|
|
39
|
+
style,
|
|
40
|
+
...props
|
|
41
|
+
}, ref) => jsxs(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-testid": "tooltip",
|
|
45
|
+
ref,
|
|
46
|
+
hidden,
|
|
47
|
+
...props,
|
|
48
|
+
className: [WithTooltip_default.wrapper, className].filter(Boolean).join(" "),
|
|
49
|
+
style: { display: hidden ? "none" : void 0, ...style },
|
|
50
|
+
"data-chrome": hasChrome || void 0,
|
|
51
|
+
"data-color": color,
|
|
52
|
+
children: [
|
|
53
|
+
hasChrome && withArrows && jsx(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
className: WithTooltip_default.arrow,
|
|
57
|
+
"data-side": placement.split("-")[0],
|
|
58
|
+
...arrowProps,
|
|
59
|
+
"data-color": color
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
children
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
);
|
|
67
|
+
Tooltip.displayName = "Tooltip";
|
|
68
|
+
var toSideAndAlign = (placement) => {
|
|
69
|
+
let [side, align = "center"] = placement.split("-");
|
|
70
|
+
return {
|
|
71
|
+
side: side === "auto" ? "top" : side,
|
|
72
|
+
align
|
|
73
|
+
};
|
|
74
|
+
}, WithTooltipPure = ({
|
|
75
|
+
svg = !1,
|
|
76
|
+
trigger = "click",
|
|
77
|
+
closeOnOutsideClick = !1,
|
|
78
|
+
placement = "top",
|
|
79
|
+
hasChrome = !0,
|
|
80
|
+
defaultVisible = !1,
|
|
81
|
+
withArrows,
|
|
82
|
+
offset = [0, 8],
|
|
83
|
+
tooltip,
|
|
84
|
+
children,
|
|
85
|
+
delayHide = trigger === "hover" ? 200 : 0,
|
|
86
|
+
visible,
|
|
87
|
+
interactive: _interactive,
|
|
88
|
+
delayShow = 0,
|
|
89
|
+
strategy,
|
|
90
|
+
onVisibleChange,
|
|
91
|
+
portalContainer,
|
|
92
|
+
...props
|
|
93
|
+
}) => {
|
|
94
|
+
let Container = svg ? "g" : "div", triggers = trigger === null ? [] : Array.isArray(trigger) ? trigger : [trigger], isHover = triggers.includes("hover"), isClick = triggers.includes("click"), isFocus = triggers.includes("focus"), triggerId = useId(), [shown, setShown] = useState(defaultVisible), isVisible = visible ?? shown, setVisible = useCallback(
|
|
95
|
+
(next) => {
|
|
96
|
+
setShown(next), onVisibleChange?.(next);
|
|
97
|
+
},
|
|
98
|
+
[onVisibleChange]
|
|
99
|
+
), onOpenChange = useCallback(
|
|
100
|
+
(open, { reason }) => {
|
|
101
|
+
reason === "trigger-press" && !isClick || reason === "trigger-hover" && !isHover || reason === "trigger-focus" && !isFocus || reason === "outside-press" && !closeOnOutsideClick || setVisible(open);
|
|
102
|
+
},
|
|
103
|
+
[isClick, isHover, isFocus, closeOnOutsideClick, setVisible]
|
|
104
|
+
), contextContainer = useContext(PortalContainerContext), portalTarget = (typeof portalContainer == "string" ? document2.querySelector(portalContainer) : portalContainer) || contextContainer || document2.body;
|
|
105
|
+
return jsxs(index_parts_exports.Root, { open: isVisible, onOpenChange, triggerId, children: [
|
|
106
|
+
jsx(
|
|
107
|
+
index_parts_exports.Trigger,
|
|
108
|
+
{
|
|
109
|
+
id: triggerId,
|
|
110
|
+
nativeButton: !1,
|
|
111
|
+
openOnHover: isHover,
|
|
112
|
+
delay: delayShow,
|
|
113
|
+
closeDelay: delayHide,
|
|
114
|
+
render: jsx(
|
|
115
|
+
Container,
|
|
116
|
+
{
|
|
117
|
+
className: svg ? WithTooltip_default.targetSvg : WithTooltip_default.target,
|
|
118
|
+
"data-hover": isHover || void 0,
|
|
119
|
+
...props
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
children
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
jsx(index_parts_exports.Portal, { container: portalTarget, children: jsx(PortalTheme, { children: jsx(
|
|
126
|
+
index_parts_exports.Positioner,
|
|
127
|
+
{
|
|
128
|
+
...toSideAndAlign(placement),
|
|
129
|
+
sideOffset: offset[1],
|
|
130
|
+
alignOffset: offset[0],
|
|
131
|
+
collisionPadding: 8,
|
|
132
|
+
arrowPadding: 8,
|
|
133
|
+
positionMethod: strategy,
|
|
134
|
+
style: { zIndex: 2147483647 },
|
|
135
|
+
children: jsxs(
|
|
136
|
+
index_parts_exports.Popup,
|
|
137
|
+
{
|
|
138
|
+
initialFocus: !1,
|
|
139
|
+
finalFocus: !1,
|
|
140
|
+
render: jsx(Tooltip, { hasChrome }),
|
|
141
|
+
children: [
|
|
142
|
+
hasChrome && withArrows && jsx(index_parts_exports.Arrow, { render: jsx("div", { className: WithTooltip_default.arrow }) }),
|
|
143
|
+
typeof tooltip == "function" ? tooltip({ onHide: () => setVisible(!1) }) : tooltip
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
) }) })
|
|
149
|
+
] });
|
|
150
|
+
}, WithToolTipState = ({
|
|
151
|
+
startOpen = !1,
|
|
152
|
+
onVisibleChange: onChange,
|
|
153
|
+
...rest
|
|
154
|
+
}) => {
|
|
155
|
+
let [tooltipShown, setTooltipShown] = useState(startOpen), onVisibilityChange = useCallback(
|
|
156
|
+
(visibility) => {
|
|
157
|
+
onChange && onChange(visibility) === !1 || setTooltipShown(visibility);
|
|
158
|
+
},
|
|
159
|
+
[onChange]
|
|
160
|
+
);
|
|
161
|
+
return useEffect(() => {
|
|
162
|
+
let hide = () => onVisibilityChange(!1), handleKeyDown = (e) => {
|
|
163
|
+
e.key === "Escape" && hide();
|
|
164
|
+
};
|
|
165
|
+
document2.addEventListener("keydown", handleKeyDown, !1);
|
|
166
|
+
let iframes = Array.from(document2.getElementsByTagName("iframe")), unbinders = [];
|
|
167
|
+
return iframes.forEach((iframe) => {
|
|
168
|
+
let bind = () => {
|
|
169
|
+
try {
|
|
170
|
+
iframe.contentWindow.document && (iframe.contentWindow.document.addEventListener("click", hide), unbinders.push(() => {
|
|
171
|
+
try {
|
|
172
|
+
iframe.contentWindow.document.removeEventListener("click", hide);
|
|
173
|
+
} catch {
|
|
174
|
+
}
|
|
175
|
+
}));
|
|
176
|
+
} catch {
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
bind(), iframe.addEventListener("load", bind), unbinders.push(() => {
|
|
180
|
+
iframe.removeEventListener("load", bind);
|
|
181
|
+
});
|
|
182
|
+
}), () => {
|
|
183
|
+
document2.removeEventListener("keydown", handleKeyDown), unbinders.forEach((unbind) => {
|
|
184
|
+
unbind();
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
}), jsx(WithTooltipPure, { ...rest, visible: tooltipShown, onVisibleChange: onVisibilityChange });
|
|
188
|
+
}, DeprecatedPure = (props) => (deprecate(
|
|
189
|
+
"WithTooltipPure is deprecated and will be removed in Forkbook 11. Please use WithTooltip instead."
|
|
190
|
+
), jsx(WithTooltipPure, { "data-deprecated": "WithTooltipPure", ...props })), DeprecatedState = (props) => (deprecate(
|
|
191
|
+
"WithToolTipState is deprecated and will be removed in Forkbook 11. Please use WithTooltip instead."
|
|
192
|
+
), jsx(WithToolTipState, { "data-deprecated": "WithToolTipState", ...props }));
|
|
193
|
+
export {
|
|
194
|
+
Tooltip,
|
|
195
|
+
DeprecatedState as WithToolTipState,
|
|
196
|
+
WithToolTipState as WithTooltip,
|
|
197
|
+
DeprecatedPure as WithTooltipPure
|
|
198
|
+
};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import {
|
|
2
|
+
argumentsTag,
|
|
3
|
+
arrayBufferTag,
|
|
4
|
+
arrayTag,
|
|
5
|
+
booleanTag,
|
|
6
|
+
dataViewTag,
|
|
7
|
+
dateTag,
|
|
8
|
+
float32ArrayTag,
|
|
9
|
+
float64ArrayTag,
|
|
10
|
+
getSymbols,
|
|
11
|
+
getTag,
|
|
12
|
+
int16ArrayTag,
|
|
13
|
+
int32ArrayTag,
|
|
14
|
+
int8ArrayTag,
|
|
15
|
+
isBuffer,
|
|
16
|
+
isPlainObject,
|
|
17
|
+
isPrimitive,
|
|
18
|
+
isTypedArray,
|
|
19
|
+
mapTag,
|
|
20
|
+
numberTag,
|
|
21
|
+
objectTag,
|
|
22
|
+
regexpTag,
|
|
23
|
+
setTag,
|
|
24
|
+
stringTag,
|
|
25
|
+
symbolTag,
|
|
26
|
+
uint16ArrayTag,
|
|
27
|
+
uint32ArrayTag,
|
|
28
|
+
uint8ArrayTag,
|
|
29
|
+
uint8ClampedArrayTag
|
|
30
|
+
} from "./chunk-JWSKPMPC.js";
|
|
31
|
+
|
|
32
|
+
// ../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
33
|
+
function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {
|
|
34
|
+
let cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);
|
|
35
|
+
if (cloned !== void 0) return cloned;
|
|
36
|
+
if (isPrimitive(valueToClone)) return valueToClone;
|
|
37
|
+
if (stack.has(valueToClone)) return stack.get(valueToClone);
|
|
38
|
+
if (Array.isArray(valueToClone)) {
|
|
39
|
+
let result = new Array(valueToClone.length);
|
|
40
|
+
stack.set(valueToClone, result);
|
|
41
|
+
for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
|
|
42
|
+
return Object.hasOwn(valueToClone, "index") && (result.index = valueToClone.index), Object.hasOwn(valueToClone, "input") && (result.input = valueToClone.input), result;
|
|
43
|
+
}
|
|
44
|
+
if (valueToClone instanceof Date) return new Date(valueToClone.getTime());
|
|
45
|
+
if (valueToClone instanceof RegExp) {
|
|
46
|
+
let result = new RegExp(valueToClone.source, valueToClone.flags);
|
|
47
|
+
return result.lastIndex = valueToClone.lastIndex, result;
|
|
48
|
+
}
|
|
49
|
+
if (valueToClone instanceof Map) {
|
|
50
|
+
let result = /* @__PURE__ */ new Map();
|
|
51
|
+
stack.set(valueToClone, result);
|
|
52
|
+
for (let [key, value] of valueToClone) result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
if (valueToClone instanceof Set) {
|
|
56
|
+
let result = /* @__PURE__ */ new Set();
|
|
57
|
+
stack.set(valueToClone, result);
|
|
58
|
+
for (let value of valueToClone) result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
if (isBuffer(valueToClone)) return valueToClone.subarray();
|
|
62
|
+
if (isTypedArray(valueToClone)) {
|
|
63
|
+
let result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);
|
|
64
|
+
stack.set(valueToClone, result);
|
|
65
|
+
for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
if (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && valueToClone instanceof SharedArrayBuffer) return valueToClone.slice(0);
|
|
69
|
+
if (valueToClone instanceof DataView) {
|
|
70
|
+
let result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);
|
|
71
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
72
|
+
}
|
|
73
|
+
if (typeof File < "u" && valueToClone instanceof File) {
|
|
74
|
+
let result = new File([valueToClone], valueToClone.name, { type: valueToClone.type });
|
|
75
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
76
|
+
}
|
|
77
|
+
if (typeof Blob < "u" && valueToClone instanceof Blob) {
|
|
78
|
+
let result = new Blob([valueToClone], { type: valueToClone.type });
|
|
79
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
80
|
+
}
|
|
81
|
+
if (valueToClone instanceof Error) {
|
|
82
|
+
let result = structuredClone(valueToClone);
|
|
83
|
+
return stack.set(valueToClone, result), result.message = valueToClone.message, result.name = valueToClone.name, result.stack = valueToClone.stack, result.cause = valueToClone.cause, result.constructor = valueToClone.constructor, copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
84
|
+
}
|
|
85
|
+
if (valueToClone instanceof Boolean) {
|
|
86
|
+
let result = new Boolean(valueToClone.valueOf());
|
|
87
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
88
|
+
}
|
|
89
|
+
if (valueToClone instanceof Number) {
|
|
90
|
+
let result = new Number(valueToClone.valueOf());
|
|
91
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
92
|
+
}
|
|
93
|
+
if (valueToClone instanceof String) {
|
|
94
|
+
let result = new String(valueToClone.valueOf());
|
|
95
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
96
|
+
}
|
|
97
|
+
if (typeof valueToClone == "object" && isCloneableObject(valueToClone)) {
|
|
98
|
+
let result = Object.create(Object.getPrototypeOf(valueToClone));
|
|
99
|
+
return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
|
|
100
|
+
}
|
|
101
|
+
return valueToClone;
|
|
102
|
+
}
|
|
103
|
+
function copyProperties(target, source, objectToClone = target, stack, cloneValue) {
|
|
104
|
+
let keys = [...Object.keys(source), ...getSymbols(source)];
|
|
105
|
+
for (let i = 0; i < keys.length; i++) {
|
|
106
|
+
let key = keys[i], descriptor = Object.getOwnPropertyDescriptor(target, key);
|
|
107
|
+
(descriptor == null || descriptor.writable) && (target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function isCloneableObject(object) {
|
|
111
|
+
switch (getTag(object)) {
|
|
112
|
+
case argumentsTag:
|
|
113
|
+
case arrayTag:
|
|
114
|
+
case arrayBufferTag:
|
|
115
|
+
case dataViewTag:
|
|
116
|
+
case booleanTag:
|
|
117
|
+
case dateTag:
|
|
118
|
+
case float32ArrayTag:
|
|
119
|
+
case float64ArrayTag:
|
|
120
|
+
case int8ArrayTag:
|
|
121
|
+
case int16ArrayTag:
|
|
122
|
+
case int32ArrayTag:
|
|
123
|
+
case mapTag:
|
|
124
|
+
case numberTag:
|
|
125
|
+
case objectTag:
|
|
126
|
+
case regexpTag:
|
|
127
|
+
case setTag:
|
|
128
|
+
case stringTag:
|
|
129
|
+
case symbolTag:
|
|
130
|
+
case uint8ArrayTag:
|
|
131
|
+
case uint8ClampedArrayTag:
|
|
132
|
+
case uint16ArrayTag:
|
|
133
|
+
case uint32ArrayTag:
|
|
134
|
+
return !0;
|
|
135
|
+
default:
|
|
136
|
+
return !1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// ../../node_modules/es-toolkit/dist/object/cloneDeep.mjs
|
|
141
|
+
function cloneDeep(obj) {
|
|
142
|
+
return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// ../../node_modules/es-toolkit/dist/object/mapValues.mjs
|
|
146
|
+
function mapValues(object, getNewValue) {
|
|
147
|
+
let result = {}, keys = Object.keys(object);
|
|
148
|
+
for (let i = 0; i < keys.length; i++) {
|
|
149
|
+
let key = keys[i], value = object[key];
|
|
150
|
+
result[key] = getNewValue(value, key, object);
|
|
151
|
+
}
|
|
152
|
+
return result;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// ../../node_modules/es-toolkit/dist/_internal/isMergeableValue.mjs
|
|
156
|
+
function isMergeableValue(value) {
|
|
157
|
+
return isPlainObject(value) || Array.isArray(value);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ../../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
161
|
+
function isUnsafeProperty(key) {
|
|
162
|
+
return key === "__proto__";
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// ../../node_modules/es-toolkit/dist/object/mergeWith.mjs
|
|
166
|
+
function mergeWith(target, source, merge2) {
|
|
167
|
+
let sourceKeys = Object.keys(source);
|
|
168
|
+
for (let i = 0; i < sourceKeys.length; i++) {
|
|
169
|
+
let key = sourceKeys[i];
|
|
170
|
+
if (isUnsafeProperty(key)) continue;
|
|
171
|
+
let sourceValue = source[key], targetValue = target[key], merged = merge2(targetValue, sourceValue, key, target, source);
|
|
172
|
+
merged !== void 0 ? target[key] = merged : isMergeableValue(sourceValue) && isMergeableValue(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge2) : Array.isArray(sourceValue) ? target[key] = mergeWith([], sourceValue, merge2) : isPlainObject(sourceValue) ? target[key] = mergeWith({}, sourceValue, merge2) : (targetValue === void 0 || sourceValue !== void 0) && (target[key] = sourceValue);
|
|
173
|
+
}
|
|
174
|
+
return target;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// ../../node_modules/es-toolkit/dist/object/pick.mjs
|
|
178
|
+
function pick(obj, keys) {
|
|
179
|
+
let result = {};
|
|
180
|
+
for (let i = 0; i < keys.length; i++) {
|
|
181
|
+
let key = keys[i];
|
|
182
|
+
Object.hasOwn(obj, key) && (result[key] = obj[key]);
|
|
183
|
+
}
|
|
184
|
+
return result;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// ../../node_modules/es-toolkit/dist/object/pickBy.mjs
|
|
188
|
+
function pickBy(obj, shouldPick) {
|
|
189
|
+
let result = {}, keys = Object.keys(obj);
|
|
190
|
+
for (let i = 0; i < keys.length; i++) {
|
|
191
|
+
let key = keys[i], objectKey = key, value = obj[objectKey];
|
|
192
|
+
shouldPick(value, key) && (result[objectKey] = value);
|
|
193
|
+
}
|
|
194
|
+
return result;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// ../../node_modules/es-toolkit/dist/object/clone.mjs
|
|
198
|
+
function clone(obj) {
|
|
199
|
+
if (isPrimitive(obj)) return obj;
|
|
200
|
+
if (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && obj instanceof SharedArrayBuffer) return obj.slice(0);
|
|
201
|
+
let prototype = Object.getPrototypeOf(obj);
|
|
202
|
+
if (prototype == null) return Object.assign(Object.create(prototype), obj);
|
|
203
|
+
let Constructor = prototype.constructor;
|
|
204
|
+
if (obj instanceof Date || obj instanceof Map || obj instanceof Set) return new Constructor(obj);
|
|
205
|
+
if (obj instanceof RegExp) {
|
|
206
|
+
let newRegExp = new Constructor(obj);
|
|
207
|
+
return newRegExp.lastIndex = obj.lastIndex, newRegExp;
|
|
208
|
+
}
|
|
209
|
+
if (obj instanceof DataView) return new Constructor(obj.buffer.slice(0));
|
|
210
|
+
if (obj instanceof Error) {
|
|
211
|
+
let newError;
|
|
212
|
+
return obj instanceof AggregateError ? newError = new Constructor(obj.errors, obj.message, { cause: obj.cause }) : newError = new Constructor(obj.message, { cause: obj.cause }), newError.stack = obj.stack, Object.assign(newError, obj), newError;
|
|
213
|
+
}
|
|
214
|
+
return typeof File < "u" && obj instanceof File ? new Constructor([obj], obj.name, {
|
|
215
|
+
type: obj.type,
|
|
216
|
+
lastModified: obj.lastModified
|
|
217
|
+
}) : typeof obj == "object" ? Object.assign(Object.create(prototype), obj) : obj;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// ../../node_modules/es-toolkit/dist/object/omit.mjs
|
|
221
|
+
function omit(obj, keys) {
|
|
222
|
+
let result = { ...obj };
|
|
223
|
+
for (let i = 0; i < keys.length; i++) {
|
|
224
|
+
let key = keys[i];
|
|
225
|
+
delete result[key];
|
|
226
|
+
}
|
|
227
|
+
return result;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// ../../node_modules/es-toolkit/dist/object/toMerged.mjs
|
|
231
|
+
function toMerged(target, source) {
|
|
232
|
+
return mergeWith(cloneDeep(target), source, function mergeRecursively(targetValue, sourceValue) {
|
|
233
|
+
if (isMergeableValue(sourceValue) && isMergeableValue(targetValue)) return mergeWith(clone(targetValue), sourceValue, mergeRecursively);
|
|
234
|
+
if (Array.isArray(sourceValue)) return mergeWith([], sourceValue, mergeRecursively);
|
|
235
|
+
if (isPlainObject(sourceValue)) return mergeWith({}, sourceValue, mergeRecursively);
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export {
|
|
240
|
+
cloneDeep,
|
|
241
|
+
mapValues,
|
|
242
|
+
mergeWith,
|
|
243
|
+
omit,
|
|
244
|
+
pick,
|
|
245
|
+
pickBy,
|
|
246
|
+
toMerged
|
|
247
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// src/addon-a11y/visionSimulatorFilters.ts
|
|
2
|
+
var filters = {
|
|
3
|
+
blurred: {
|
|
4
|
+
label: "Blurred vision",
|
|
5
|
+
filter: "blur(2px)",
|
|
6
|
+
percentage: 22.9
|
|
7
|
+
},
|
|
8
|
+
deuteranomaly: {
|
|
9
|
+
label: "Deuteranomaly",
|
|
10
|
+
filter: 'url("#storybook-a11y-vision-deuteranomaly")',
|
|
11
|
+
percentage: 2.7
|
|
12
|
+
},
|
|
13
|
+
deuteranopia: {
|
|
14
|
+
label: "Deuteranopia",
|
|
15
|
+
filter: 'url("#storybook-a11y-vision-deuteranopia")',
|
|
16
|
+
percentage: 0.56
|
|
17
|
+
},
|
|
18
|
+
protanomaly: {
|
|
19
|
+
label: "Protanomaly",
|
|
20
|
+
filter: 'url("#storybook-a11y-vision-protanomaly")',
|
|
21
|
+
percentage: 0.66
|
|
22
|
+
},
|
|
23
|
+
protanopia: {
|
|
24
|
+
label: "Protanopia",
|
|
25
|
+
filter: 'url("#storybook-a11y-vision-protanopia")',
|
|
26
|
+
percentage: 0.59
|
|
27
|
+
},
|
|
28
|
+
tritanomaly: {
|
|
29
|
+
label: "Tritanomaly",
|
|
30
|
+
filter: 'url("#storybook-a11y-vision-tritanomaly")',
|
|
31
|
+
percentage: 0.01
|
|
32
|
+
},
|
|
33
|
+
tritanopia: {
|
|
34
|
+
label: "Tritanopia",
|
|
35
|
+
filter: 'url("#storybook-a11y-vision-tritanopia")',
|
|
36
|
+
percentage: 0.016
|
|
37
|
+
},
|
|
38
|
+
achromatopsia: {
|
|
39
|
+
label: "Achromatopsia",
|
|
40
|
+
filter: 'url("#storybook-a11y-vision-achromatopsia")',
|
|
41
|
+
percentage: 1e-4
|
|
42
|
+
},
|
|
43
|
+
grayscale: {
|
|
44
|
+
label: "Grayscale",
|
|
45
|
+
filter: "grayscale(100%)"
|
|
46
|
+
}
|
|
47
|
+
}, filterDefs = `<svg id="storybook-a11y-vision-filters" aria-hidden="true" color-interpolation-filters="sRGB" style="position:absolute;width:0;height:0;overflow:hidden">
|
|
48
|
+
<defs>
|
|
49
|
+
<filter id="storybook-a11y-vision-protanopia">
|
|
50
|
+
<feColorMatrix
|
|
51
|
+
in="SourceGraphic"
|
|
52
|
+
type="matrix"
|
|
53
|
+
values="0.567, 0.433, 0, 0, 0 0.558, 0.442, 0, 0, 0 0, 0.242, 0.758, 0, 0 0, 0, 0, 1, 0"
|
|
54
|
+
/>
|
|
55
|
+
</filter>
|
|
56
|
+
<filter id="storybook-a11y-vision-protanomaly">
|
|
57
|
+
<feColorMatrix
|
|
58
|
+
in="SourceGraphic"
|
|
59
|
+
type="matrix"
|
|
60
|
+
values="0.817, 0.183, 0, 0, 0 0.333, 0.667, 0, 0, 0 0, 0.125, 0.875, 0, 0 0, 0, 0, 1, 0"
|
|
61
|
+
/>
|
|
62
|
+
</filter>
|
|
63
|
+
<filter id="storybook-a11y-vision-deuteranopia">
|
|
64
|
+
<feColorMatrix
|
|
65
|
+
in="SourceGraphic"
|
|
66
|
+
type="matrix"
|
|
67
|
+
values="0.625, 0.375, 0, 0, 0 0.7, 0.3, 0, 0, 0 0, 0.3, 0.7, 0, 0 0, 0, 0, 1, 0"
|
|
68
|
+
/>
|
|
69
|
+
</filter>
|
|
70
|
+
<filter id="storybook-a11y-vision-deuteranomaly">
|
|
71
|
+
<feColorMatrix
|
|
72
|
+
in="SourceGraphic"
|
|
73
|
+
type="matrix"
|
|
74
|
+
values="0.8, 0.2, 0, 0, 0 0.258, 0.742, 0, 0, 0 0, 0.142, 0.858, 0, 0 0, 0, 0, 1, 0"
|
|
75
|
+
/>
|
|
76
|
+
</filter>
|
|
77
|
+
<filter id="storybook-a11y-vision-tritanopia">
|
|
78
|
+
<feColorMatrix
|
|
79
|
+
in="SourceGraphic"
|
|
80
|
+
type="matrix"
|
|
81
|
+
values="0.95, 0.05, 0, 0, 0 0, 0.433, 0.567, 0, 0 0, 0.475, 0.525, 0, 0 0, 0, 0, 1, 0"
|
|
82
|
+
/>
|
|
83
|
+
</filter>
|
|
84
|
+
<filter id="storybook-a11y-vision-tritanomaly">
|
|
85
|
+
<feColorMatrix
|
|
86
|
+
in="SourceGraphic"
|
|
87
|
+
type="matrix"
|
|
88
|
+
values="0.967, 0.033, 0, 0, 0 0, 0.733, 0.267, 0, 0 0, 0.183, 0.817, 0, 0 0, 0, 0, 1, 0"
|
|
89
|
+
/>
|
|
90
|
+
</filter>
|
|
91
|
+
<filter id="storybook-a11y-vision-achromatopsia">
|
|
92
|
+
<feColorMatrix
|
|
93
|
+
in="SourceGraphic"
|
|
94
|
+
type="matrix"
|
|
95
|
+
values="0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0, 0, 0, 1, 0"
|
|
96
|
+
/>
|
|
97
|
+
</filter>
|
|
98
|
+
</defs>
|
|
99
|
+
</svg>`;
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
filters,
|
|
103
|
+
filterDefs
|
|
104
|
+
};
|