@vadimcomanescu/nadicode-design-system 4.0.10 → 5.0.0
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/.agents/skills/seed/SKILL.md +27 -22
- package/.agents/skills/seed/references/animation.md +1 -1
- package/.agents/skills/seed/references/composition.md +1 -1
- package/.agents/skills/seed/references/glass-and-effects.md +16 -21
- package/.agents/skills/seed/references/patterns.md +47 -47
- package/.agents/skills/seed/references/state-machines.md +19 -18
- package/README.md +3 -1
- package/contracts/consumer-intent-map.json +2 -700
- package/contracts/message-catalog-contract.json +20 -20
- package/contracts/release-governance-baseline.json +14 -265
- package/css/tokens.css +28 -18
- package/dist/ProfilePage-KJVA3ZQ5.js +87 -0
- package/dist/TeamPage-BX3RMSZU.js +479 -0
- package/dist/catalog/catalog.d.ts +4753 -1883
- package/dist/catalog/catalog.js +22 -2107
- package/dist/catalog/components.d.ts +234 -177
- package/dist/catalog/components.js +218 -289
- package/dist/catalog/definitions/action.d.ts +170 -0
- package/dist/catalog/definitions/action.js +1 -0
- package/dist/catalog/definitions/agent.d.ts +496 -0
- package/dist/catalog/definitions/agent.js +1 -0
- package/dist/catalog/definitions/blocks-agent.d.ts +359 -0
- package/dist/catalog/definitions/blocks-agent.js +1 -0
- package/dist/catalog/definitions/blocks-auth.d.ts +179 -0
- package/dist/catalog/definitions/blocks-auth.js +1 -0
- package/dist/catalog/definitions/blocks-content.d.ts +495 -0
- package/dist/catalog/definitions/blocks-content.js +2 -0
- package/dist/catalog/definitions/blocks-crud.d.ts +485 -0
- package/dist/catalog/definitions/blocks-crud.js +1 -0
- package/dist/catalog/definitions/blocks-data.d.ts +309 -0
- package/dist/catalog/definitions/blocks-data.js +2 -0
- package/dist/catalog/definitions/blocks-marketing.d.ts +381 -0
- package/dist/catalog/definitions/blocks-marketing.js +1 -0
- package/dist/catalog/definitions/blocks-misc.d.ts +108 -0
- package/dist/catalog/definitions/blocks-misc.js +1 -0
- package/dist/catalog/definitions/chart.d.ts +293 -0
- package/dist/catalog/definitions/chart.js +2 -0
- package/dist/catalog/definitions/chat.d.ts +108 -0
- package/dist/catalog/definitions/chat.js +1 -0
- package/dist/catalog/definitions/display.d.ts +575 -0
- package/dist/catalog/definitions/display.js +2 -0
- package/dist/catalog/definitions/effects.d.ts +267 -0
- package/dist/catalog/definitions/effects.js +1 -0
- package/dist/catalog/definitions/form.d.ts +413 -0
- package/dist/catalog/definitions/form.js +2 -0
- package/dist/catalog/definitions/index.d.ts +5262 -0
- package/dist/catalog/definitions/index.js +21 -0
- package/dist/catalog/definitions/layout.d.ts +133 -0
- package/dist/catalog/definitions/layout.js +1 -0
- package/dist/catalog/definitions/navigation.d.ts +121 -0
- package/dist/catalog/definitions/navigation.js +1 -0
- package/dist/catalog/definitions/overlay.d.ts +183 -0
- package/dist/catalog/definitions/overlay.js +1 -0
- package/dist/catalog/definitions/shared.d.ts +31 -0
- package/dist/catalog/definitions/shared.js +1 -0
- package/dist/catalog/definitions/text-effects.d.ts +204 -0
- package/dist/catalog/definitions/text-effects.js +1 -0
- package/dist/catalog/definitions/text.d.ts +38 -0
- package/dist/catalog/definitions/text.js +1 -0
- package/dist/catalog/primitives/action.d.ts +12 -0
- package/dist/{components/blocks/TwoFactorChallengeBlock.js → catalog/primitives/action.js} +42 -36
- package/dist/catalog/primitives/agent.d.ts +18 -0
- package/dist/catalog/primitives/agent.js +32 -0
- package/dist/catalog/primitives/chart.d.ts +12 -0
- package/dist/catalog/primitives/chart.js +17 -0
- package/dist/catalog/primitives/chat.d.ts +10 -0
- package/dist/{components/page-kits/TwoFactorPageKit.js → catalog/primitives/chat.js} +42 -44
- package/dist/catalog/primitives/display.d.ts +34 -0
- package/dist/{components/page-kits/TeamSettingsPageKit.js → catalog/primitives/display.js} +71 -48
- package/dist/catalog/primitives/effects.d.ts +19 -0
- package/dist/catalog/primitives/effects.js +25 -0
- package/dist/catalog/primitives/form.d.ts +22 -0
- package/dist/{components/page-kits/OnboardingPageKit.js → catalog/primitives/form.js} +51 -47
- package/dist/catalog/primitives/index.d.ts +137 -0
- package/dist/{components/page-kits/LandingPageKit.js → catalog/primitives/index.js} +171 -58
- package/dist/catalog/primitives/layout.d.ts +14 -0
- package/dist/catalog/primitives/layout.js +130 -0
- package/dist/catalog/primitives/navigation.d.ts +10 -0
- package/dist/{components/page-kits/NavigationShellPageKit.js → catalog/primitives/navigation.js} +41 -37
- package/dist/catalog/primitives/overlay.d.ts +12 -0
- package/dist/catalog/primitives/overlay.js +130 -0
- package/dist/catalog/primitives/text-effects.d.ts +13 -0
- package/dist/{components/blocks/SocialProofBlock.js → catalog/primitives/text-effects.js} +4 -11
- package/dist/catalog/primitives/text.d.ts +7 -0
- package/dist/catalog/primitives/text.js +7 -0
- package/dist/catalog/primitives/utils.d.ts +8 -0
- package/dist/catalog/primitives/utils.js +1 -0
- package/dist/catalog/types.d.ts +3 -3
- package/dist/chunk-2LBEV4YF.js +128 -0
- package/dist/chunk-2NMP3J5R.js +6 -0
- package/dist/chunk-34MKVVGB.js +176 -0
- package/dist/{chunk-KFL4YCMI.js → chunk-37LY27CX.js} +1 -1
- package/dist/{chunk-LPED36AD.js → chunk-3BGWXRQC.js} +6 -8
- package/dist/chunk-3QMHVXSQ.js +258 -0
- package/dist/{chunk-ZI22L4DD.js → chunk-3TYPQWKD.js} +7 -13
- package/dist/chunk-44NVO477.js +46 -0
- package/dist/chunk-4ACR6NGQ.js +144 -0
- package/dist/{chunk-FF3XUIZO.js → chunk-4DWRAIM2.js} +1 -1
- package/dist/chunk-4EHXVFQY.js +78 -0
- package/dist/chunk-4EOX2S37.js +24 -0
- package/dist/chunk-4GLBFZVI.js +184 -0
- package/dist/chunk-4GQ5EMWR.js +142 -0
- package/dist/chunk-4TK2PXMJ.js +6 -0
- package/dist/chunk-4ZST7OY5.js +153 -0
- package/dist/chunk-56TNQ2P4.js +82 -0
- package/dist/chunk-5B3GLRX3.js +139 -0
- package/dist/chunk-5KQEGO3O.js +71 -0
- package/dist/chunk-5L2RFJZR.js +31 -0
- package/dist/{chunk-2325VORX.js → chunk-5MLOZVOQ.js} +32 -25
- package/dist/chunk-5XDYCBR6.js +345 -0
- package/dist/chunk-5ZC3RHXB.js +72 -0
- package/dist/chunk-65CUE2WL.js +257 -0
- package/dist/chunk-6KRT337C.js +75 -0
- package/dist/{chunk-DVU2EABM.js → chunk-6LD76RMU.js} +9 -12
- package/dist/{chunk-L3WRHSHM.js → chunk-6NL36QN3.js} +9 -8
- package/dist/chunk-6NND57T2.js +79 -0
- package/dist/{chunk-TBJPLMUE.js → chunk-6OBT3A5O.js} +6 -9
- package/dist/{chunk-ZR7PL5XQ.js → chunk-767GZSNJ.js} +7 -10
- package/dist/{chunk-2S4727W3.js → chunk-7AUNUDHM.js} +20 -16
- package/dist/chunk-7IVXTSZK.js +185 -0
- package/dist/{chunk-N2J3XFR6.js → chunk-7OOO22KB.js} +11 -16
- package/dist/chunk-7PTI46BS.js +119 -0
- package/dist/chunk-7SOMHO2L.js +181 -0
- package/dist/chunk-7SRNVMBY.js +72 -0
- package/dist/chunk-7U7XFIP6.js +17 -0
- package/dist/{chunk-3HHLJH72.js → chunk-7UY24UWL.js} +1 -1
- package/dist/chunk-7X3GXC7C.js +52 -0
- package/dist/{chunk-R4CRWXEQ.js → chunk-A44E44UV.js} +35 -27
- package/dist/chunk-A4TQNK7R.js +58 -0
- package/dist/chunk-AU2Q7CXZ.js +45 -0
- package/dist/{chunk-IJ46YEUQ.js → chunk-B4YCI5NM.js} +10 -19
- package/dist/{chunk-JXZ4HYXA.js → chunk-BAB6AHOM.js} +64 -60
- package/dist/chunk-BHPATKC7.js +116 -0
- package/dist/chunk-BJVCZI2B.js +29 -0
- package/dist/{chunk-ZTYKDD4V.js → chunk-BVXSAVKY.js} +7 -12
- package/dist/chunk-C7LO3JEF.js +195 -0
- package/dist/chunk-CAET62YQ.js +228 -0
- package/dist/chunk-CPHVCY3M.js +230 -0
- package/dist/{chunk-WOYBVPXK.js → chunk-CQ75K2DH.js} +8 -10
- package/dist/{chunk-OSNTB6RY.js → chunk-CY3PROVO.js} +88 -26
- package/dist/{chunk-FRAGRQOH.js → chunk-D6MFOI3N.js} +20 -20
- package/dist/{chunk-D3PKI34R.js → chunk-DGSNEGJP.js} +16 -18
- package/dist/{chunk-NTN5DWXV.js → chunk-DSNPOAE6.js} +7 -10
- package/dist/chunk-E5E3W2K4.js +6 -0
- package/dist/chunk-EJQ73FJ5.js +383 -0
- package/dist/chunk-F3QIIOOL.js +71 -0
- package/dist/chunk-FAKTXE3F.js +272 -0
- package/dist/chunk-FAQZPQF7.js +119 -0
- package/dist/chunk-FOXDDL2Z.js +41 -0
- package/dist/chunk-G722PEFL.js +71 -0
- package/dist/chunk-GC7QKZQW.js +20 -0
- package/dist/{chunk-QLL3Z6U6.js → chunk-GE4WUAAE.js} +8 -8
- package/dist/chunk-GNKNT52O.js +45 -0
- package/dist/chunk-GQEB425G.js +41 -0
- package/dist/{chunk-XTASI4IY.js → chunk-GVOWGEGX.js} +6 -13
- package/dist/chunk-GXUQFXT7.js +282 -0
- package/dist/chunk-GZ4DTYWM.js +36 -0
- package/dist/{chunk-7XRKBROR.js → chunk-HF2HNDE7.js} +22 -12
- package/dist/chunk-HMN4K4L6.js +44 -0
- package/dist/{chunk-XA7VQWCT.js → chunk-HX3VXWNJ.js} +20 -13
- package/dist/{chunk-ERYYZSJU.js → chunk-HZTWLK7C.js} +17 -19
- package/dist/{chunk-B66BU2S5.js → chunk-ID3N3MHQ.js} +14 -22
- package/dist/{chunk-JGEE66UI.js → chunk-IHGZJS7N.js} +12 -12
- package/dist/{chunk-N3S6KCXN.js → chunk-IYK2ABFE.js} +25 -14
- package/dist/{chunk-WSBLCWY7.js → chunk-IZ7A62GI.js} +7 -6
- package/dist/chunk-JDLCIPSC.js +18 -0
- package/dist/{chunk-B5HTI43H.js → chunk-JPA45CDE.js} +68 -43
- package/dist/{chunk-J7F42IR3.js → chunk-JPNNAU26.js} +7 -3
- package/dist/chunk-JUAOQFC3.js +32 -0
- package/dist/{chunk-3TZLHB2L.js → chunk-JVQQQS2M.js} +8 -13
- package/dist/{chunk-4GSIGQXI.js → chunk-JWWXY7XR.js} +6 -6
- package/dist/chunk-KA44DDCB.js +42 -0
- package/dist/chunk-KANK5FAG.js +150 -0
- package/dist/chunk-KKBTPNXT.js +110 -0
- package/dist/chunk-KL43KGCK.js +106 -0
- package/dist/chunk-KMTLCN6S.js +134 -0
- package/dist/{chunk-HOWTYZL5.js → chunk-KPO4PD6C.js} +78 -12
- package/dist/{chunk-TYP2MR3Q.js → chunk-KV726HMK.js} +20 -2
- package/dist/{chunk-4QOH76MI.js → chunk-KWIIKHIB.js} +10 -13
- package/dist/chunk-KXZP6XI2.js +84 -0
- package/dist/chunk-L2IRYY6K.js +230 -0
- package/dist/chunk-L4Q724G2.js +217 -0
- package/dist/chunk-L55GVKLY.js +149 -0
- package/dist/{chunk-5NOH3QLY.js → chunk-L77KWJJB.js} +30 -31
- package/dist/chunk-LH5KBOIA.js +228 -0
- package/dist/chunk-LO3MDQSJ.js +130 -0
- package/dist/chunk-LYI5YMC6.js +125 -0
- package/dist/chunk-LZ66ADSL.js +142 -0
- package/dist/chunk-MB75U2OV.js +77 -0
- package/dist/{components/ui/AnimatedTabs.js → chunk-MFZYC6QC.js} +41 -24
- package/dist/chunk-MOFWXBTK.js +112 -0
- package/dist/chunk-MT76BPYV.js +30 -0
- package/dist/{chunk-X5AEOQAL.js → chunk-MZGGA75L.js} +1 -40
- package/dist/chunk-N334RMNE.js +39 -0
- package/dist/{chunk-ABV4BQF6.js → chunk-NA6ZPKIK.js} +20 -8
- package/dist/chunk-NF2Y5ERJ.js +186 -0
- package/dist/{chunk-4CUKPNS5.js → chunk-NVBF4OWT.js} +7 -10
- package/dist/chunk-NZXZ3PH2.js +56 -0
- package/dist/chunk-OB2KVO7O.js +23 -0
- package/dist/chunk-OLDUGLDM.js +114 -0
- package/dist/{chunk-HWOGLSB6.js → chunk-OMGVZWRM.js} +26 -17
- package/dist/{chunk-X4HXVLER.js → chunk-OMI2LLXM.js} +16 -19
- package/dist/{chunk-UIZTZCAU.js → chunk-OS2BLQ2G.js} +9 -14
- package/dist/chunk-OUXJUUCB.js +131 -0
- package/dist/{chunk-QQOWC53X.js → chunk-OWWQP3YW.js} +4 -2
- package/dist/chunk-P5I63ETD.js +691 -0
- package/dist/chunk-P7CTBRHO.js +176 -0
- package/dist/chunk-P7JS4B7U.js +101 -0
- package/dist/{chunk-FODQX5Q5.js → chunk-PD6WW7E5.js} +8 -10
- package/dist/chunk-PJ7DVYWA.js +185 -0
- package/dist/{chunk-BKWURLHQ.js → chunk-PQBVNNEG.js} +19 -19
- package/dist/chunk-PY7WBWKH.js +37 -0
- package/dist/{chunk-TBD4VKXH.js → chunk-PYRHNONA.js} +26 -17
- package/dist/{chunk-TBXW5MDR.js → chunk-Q4CRHV5T.js} +25 -17
- package/dist/{chunk-PC6VMNDY.js → chunk-Q7PCHHVJ.js} +0 -8
- package/dist/chunk-QCL76CM6.js +92 -0
- package/dist/chunk-QFXWI2WX.js +40 -0
- package/dist/{chunk-YZXCW44Y.js → chunk-QLPU2IEO.js} +26 -40
- package/dist/{chunk-C4PVGV2F.js → chunk-R4DPHCHJ.js} +22 -15
- package/dist/chunk-SEJXMNMK.js +191 -0
- package/dist/{chunk-CIDN3ULD.js → chunk-SIXPY62Q.js} +17 -16
- package/dist/chunk-STKNMEJA.js +15 -0
- package/dist/chunk-STNVWBJH.js +41 -0
- package/dist/{chunk-N5QVBOYM.js → chunk-TKT6WW4E.js} +2 -2
- package/dist/{chunk-73T44TBV.js → chunk-TL5UCQC3.js} +12 -16
- package/dist/{chunk-D4BKRPO4.js → chunk-TNDMBLYP.js} +8 -19
- package/dist/chunk-TTA5TLNJ.js +97 -0
- package/dist/chunk-TV6CJ5NI.js +57 -0
- package/dist/chunk-TXRGQO5M.js +100 -0
- package/dist/chunk-U3QOFPHD.js +28 -0
- package/dist/chunk-UB6XJTRU.js +45 -0
- package/dist/chunk-UGXI4PES.js +415 -0
- package/dist/{chunk-YNRO42PX.js → chunk-UIYX2EMT.js} +12 -20
- package/dist/chunk-UOUERAB4.js +446 -0
- package/dist/chunk-UQB54LIA.js +228 -0
- package/dist/chunk-UT6MKK2S.js +115 -0
- package/dist/chunk-UXYLA2IV.js +124 -0
- package/dist/{chunk-PDSQC6VE.js → chunk-V5RSV4ZV.js} +5 -2
- package/dist/chunk-VUNXVYOH.js +129 -0
- package/dist/chunk-W4KI424V.js +380 -0
- package/dist/chunk-W7ZGCFTB.js +23 -0
- package/dist/chunk-WAIZR4CR.js +107 -0
- package/dist/{chunk-T5LXQNIP.js → chunk-WHYKEOUV.js} +29 -25
- package/dist/chunk-WRBPEZFY.js +80 -0
- package/dist/chunk-XI775QZZ.js +275 -0
- package/dist/chunk-XLIFWBE7.js +117 -0
- package/dist/{chunk-BI3TXPMR.js → chunk-XMGWLDNG.js} +4 -6
- package/dist/chunk-XYMFKNKG.js +93 -0
- package/dist/chunk-XYYZRQES.js +256 -0
- package/dist/chunk-XZDVTOXJ.js +94 -0
- package/dist/{chunk-XFQLYQCV.js → chunk-YB3J4ZRZ.js} +16 -7
- package/dist/chunk-YCS4MMC3.js +133 -0
- package/dist/chunk-YGDO5KDY.js +33 -0
- package/dist/{chunk-OMEWVRBK.js → chunk-YNBDA24W.js} +7 -14
- package/dist/chunk-YXRIXTXW.js +32 -0
- package/dist/chunk-ZFCSKVTZ.js +102 -0
- package/dist/chunk-ZLWEBAL6.js +48 -0
- package/dist/chunk-ZND7AAWG.js +290 -0
- package/dist/{chunk-FAPU77SV.js → chunk-ZNF6S3DQ.js} +21 -39
- package/dist/chunk-ZSU5ZI4O.js +32 -0
- package/dist/components/blocks/AccountLockedBlock.d.ts +3 -11
- package/dist/components/blocks/AccountLockedBlock.js +3 -3
- package/dist/components/blocks/ActivityFeedBlock.d.ts +3 -14
- package/dist/components/blocks/ActivityFeedBlock.js +2 -2
- package/dist/components/blocks/AgentConversationBlock.d.ts +12 -17
- package/dist/components/blocks/AgentConversationBlock.js +10 -109
- package/dist/components/blocks/AgentProfileGridBlock.d.ts +3 -19
- package/dist/components/blocks/AgentProfileGridBlock.js +2 -2
- package/dist/components/blocks/AgentRunOverviewBlock.d.ts +3 -31
- package/dist/components/blocks/AgentRunOverviewBlock.js +2 -2
- package/dist/components/blocks/AgentWorkbenchBlock.d.ts +5 -21
- package/dist/components/blocks/AgentWorkbenchBlock.js +14 -112
- package/dist/components/blocks/ApiKeysBlock.d.ts +3 -18
- package/dist/components/blocks/ApiKeysBlock.js +35 -35
- package/dist/components/blocks/AuthLayout.d.ts +3 -17
- package/dist/components/blocks/AuthLayout.js +4 -4
- package/dist/components/blocks/AuthSuccessBlock.d.ts +3 -12
- package/dist/components/blocks/AuthSuccessBlock.js +7 -2
- package/dist/components/blocks/BannerBlock.d.ts +3 -9
- package/dist/components/blocks/BannerBlock.js +33 -33
- package/dist/components/blocks/BenchmarksBlock.d.ts +3 -20
- package/dist/components/blocks/BenchmarksBlock.js +2 -2
- package/dist/components/blocks/BlogDetailBlock.d.ts +3 -0
- package/dist/components/{page-kits/SuccessPageKit.js → blocks/BlogDetailBlock.js} +37 -34
- package/dist/components/blocks/BlogIndexBlock.d.ts +3 -0
- package/dist/components/blocks/{EmailVerifiedBlock.js → BlogIndexBlock.js} +4 -4
- package/dist/components/blocks/CallToActionBlock.d.ts +3 -13
- package/dist/components/blocks/CallToActionBlock.js +3 -3
- package/dist/components/blocks/ChangelogBlock.d.ts +3 -16
- package/dist/components/blocks/ChangelogBlock.js +33 -32
- package/dist/components/blocks/ChartBlock.d.ts +3 -16
- package/dist/components/blocks/ChartBlock.js +33 -33
- package/dist/components/blocks/ChartCollectionBlock.d.ts +3 -5
- package/dist/components/blocks/ChartCollectionBlock.js +4 -4
- package/dist/components/blocks/ChatLayout.d.ts +3 -17
- package/dist/components/blocks/ChatLayout.js +33 -33
- package/dist/components/blocks/CheckEmailBlock.d.ts +3 -9
- package/dist/components/blocks/CheckEmailBlock.js +2 -2
- package/dist/components/blocks/CodeBlock.d.ts +3 -7
- package/dist/components/blocks/CodeBlock.js +1 -1
- package/dist/components/blocks/CommandPaletteBlock.d.ts +3 -9
- package/dist/components/blocks/CommandPaletteBlock.js +35 -35
- package/dist/components/blocks/ComparisonBlock.d.ts +3 -13
- package/dist/components/blocks/ComparisonBlock.js +2 -2
- package/dist/components/blocks/ContactBlock.d.ts +3 -17
- package/dist/components/blocks/ContactBlock.js +3 -3
- package/dist/components/blocks/CreateBlock.d.ts +1 -16
- package/dist/components/blocks/CreateBlock.js +33 -34
- package/dist/components/blocks/CrudListBlock.d.ts +3 -0
- package/dist/components/{page-kits/VerifyEmailPageKit.js → blocks/CrudListBlock.js} +41 -34
- package/dist/components/blocks/DashboardBlock.d.ts +3 -0
- package/dist/components/{page-kits/DashboardPageKit.js → blocks/DashboardBlock.js} +49 -50
- package/dist/components/blocks/DataGridBlock.d.ts +3 -10
- package/dist/components/blocks/DataGridBlock.js +35 -36
- package/dist/components/blocks/DirectoryBlock.d.ts +3 -17
- package/dist/components/blocks/DirectoryBlock.js +38 -37
- package/dist/components/blocks/FAQBlock.d.ts +3 -12
- package/dist/components/blocks/FAQBlock.js +33 -33
- package/dist/components/blocks/FeatureBlock.d.ts +3 -23
- package/dist/components/blocks/FeatureBlock.js +33 -33
- package/dist/components/blocks/FooterBlock.d.ts +3 -19
- package/dist/components/blocks/FooterBlock.js +1 -1
- package/dist/components/blocks/FormFieldBlock.d.ts +3 -0
- package/dist/components/{page-kits/MarketingShellPageKit.js → blocks/FormFieldBlock.js} +38 -41
- package/dist/components/blocks/GalleryBlock.d.ts +3 -13
- package/dist/components/blocks/GalleryBlock.js +35 -35
- package/dist/components/blocks/HeaderBlock.d.ts +3 -14
- package/dist/components/blocks/HeaderBlock.js +35 -34
- package/dist/components/blocks/HeatmapChartBlock.d.ts +3 -15
- package/dist/components/blocks/HeatmapChartBlock.js +2 -2
- package/dist/components/blocks/HeroBlock.d.ts +4 -2
- package/dist/components/blocks/HeroBlock.js +36 -36
- package/dist/components/blocks/IntegrationsBlock.d.ts +3 -15
- package/dist/components/blocks/IntegrationsBlock.js +33 -33
- package/dist/components/blocks/InteractiveAreaChartBlock.d.ts +3 -21
- package/dist/components/blocks/InteractiveAreaChartBlock.js +33 -33
- package/dist/components/blocks/LoginBlock.d.ts +3 -41
- package/dist/components/blocks/LoginBlock.js +2 -2
- package/dist/components/blocks/LogoCloud.d.ts +3 -12
- package/dist/components/blocks/LogoCloud.js +6 -2
- package/dist/components/blocks/NewsletterBlock.d.ts +1 -8
- package/dist/components/blocks/NewsletterBlock.js +3 -3
- package/dist/components/blocks/NotFoundBlock.d.ts +3 -9
- package/dist/components/blocks/NotFoundBlock.js +36 -36
- package/dist/components/blocks/OTPBlock.d.ts +3 -10
- package/dist/components/blocks/OTPBlock.js +35 -33
- package/dist/components/blocks/OnboardingBlock.d.ts +1 -14
- package/dist/components/blocks/OnboardingBlock.js +34 -34
- package/dist/components/blocks/OnboardingFlowBlock.d.ts +3 -0
- package/dist/components/blocks/OnboardingFlowBlock.js +127 -0
- package/dist/components/blocks/PasswordRecoveryBlock.d.ts +1 -12
- package/dist/components/blocks/PasswordRecoveryBlock.js +3 -3
- package/dist/components/blocks/PricingBlock.d.ts +1 -19
- package/dist/components/blocks/PricingBlock.js +4 -4
- package/dist/components/blocks/ProcessFlowBlock.d.ts +3 -15
- package/dist/components/blocks/ProcessFlowBlock.js +2 -6
- package/dist/components/blocks/ROICalculatorBlock.d.ts +3 -0
- package/dist/components/blocks/{SavingsCalculatorBlock.js → ROICalculatorBlock.js} +4 -4
- package/dist/components/blocks/ResetPasswordBlock.d.ts +3 -9
- package/dist/components/blocks/ResetPasswordBlock.js +2 -2
- package/dist/components/blocks/SettingsNavBlock.d.ts +3 -0
- package/dist/components/blocks/{SettingsLayout.js → SettingsNavBlock.js} +39 -37
- package/dist/components/blocks/SolutionShowcaseBlock.d.ts +3 -17
- package/dist/components/blocks/SolutionShowcaseBlock.js +2 -2
- package/dist/components/blocks/StatsBlock.d.ts +3 -21
- package/dist/components/blocks/StatsBlock.js +3 -112
- package/dist/components/blocks/StatsMarketingBlock.d.ts +3 -14
- package/dist/components/blocks/StatsMarketingBlock.js +3 -3
- package/dist/components/blocks/TeamBlock.d.ts +3 -16
- package/dist/components/blocks/TeamBlock.js +1 -1
- package/dist/components/blocks/TestimonialsBlock.d.ts +6 -9
- package/dist/components/blocks/TestimonialsBlock.js +16 -3
- package/dist/components/blocks/TimezonePickerBlock.d.ts +3 -11
- package/dist/components/blocks/TimezonePickerBlock.js +35 -35
- package/dist/components/blocks/TwoFactorSetupBlock.d.ts +1 -12
- package/dist/components/blocks/TwoFactorSetupBlock.js +37 -37
- package/dist/components/blocks/UsageDonutBlock.d.ts +3 -16
- package/dist/components/blocks/UsageDonutBlock.js +2 -2
- package/dist/components/blocks/WizardBlock.d.ts +1 -15
- package/dist/components/blocks/WizardBlock.js +33 -33
- package/dist/components/blocks/user/InviteUserModal.d.ts +4 -4
- package/dist/components/blocks/user/InviteUserModal.js +34 -34
- package/dist/components/pages/settings/ProfilePage.d.ts +1 -0
- package/dist/components/pages/settings/TeamPage.d.ts +1 -0
- package/dist/components/ui/Accordion.js +31 -31
- package/dist/components/ui/AgentAvatar.js +2 -72
- package/dist/components/ui/AgentStatus.d.ts +1 -1
- package/dist/components/ui/AgentStatus.js +2 -71
- package/dist/components/ui/AgentTimeline.js +3 -97
- package/dist/components/ui/AlertDialog.js +3 -133
- package/dist/components/ui/AnnouncementBanner.js +4 -46
- package/dist/components/ui/ApprovalCard.js +5 -115
- package/dist/components/ui/AspectRatio.js +1 -5
- package/dist/components/ui/AvatarUpload.js +6 -119
- package/dist/components/ui/BentoGrid.js +4 -28
- package/dist/components/ui/Breadcrumb.js +31 -31
- package/dist/components/ui/ButtonGroup.js +2 -18
- package/dist/components/ui/Calendar.js +31 -31
- package/dist/components/ui/Card.js +1 -1
- package/dist/components/ui/Carousel.js +35 -247
- package/dist/components/ui/ChartCard.js +3 -3
- package/dist/components/ui/ChatActions.js +2 -2
- package/dist/components/ui/ChatGreeting.js +3 -77
- package/dist/components/ui/ChatMessage.d.ts +26 -5
- package/dist/components/ui/ChatMessage.js +3 -95
- package/dist/components/ui/ChatPromptInput.js +4 -191
- package/dist/components/ui/ChatResponse.js +2 -24
- package/dist/components/ui/ChatThinkingMessage.d.ts +25 -6
- package/dist/components/ui/ChatThinkingMessage.js +7 -53
- package/dist/components/ui/ChatToolCall.d.ts +4 -2
- package/dist/components/ui/ChatToolCall.js +13 -190
- package/dist/components/ui/CheckStatus.js +2 -57
- package/dist/components/ui/Checkbox.js +31 -31
- package/dist/components/ui/CheckoutForm.d.ts +3 -7
- package/dist/components/ui/CheckoutForm.js +35 -34
- package/dist/components/ui/CheckoutFormDemo.js +33 -33
- package/dist/components/ui/Combobox.d.ts +2 -1
- package/dist/components/ui/Combobox.js +38 -109
- package/dist/components/ui/Command.js +34 -34
- package/dist/components/ui/ConfettiBurst.js +3 -71
- package/dist/components/ui/ContextMenu.js +34 -215
- package/dist/components/ui/Conversation.js +35 -115
- package/dist/components/ui/DataTable.d.ts +2 -1
- package/dist/components/ui/DataTable.js +33 -33
- package/dist/components/ui/DatePicker.js +31 -31
- package/dist/components/ui/DateRangePicker.js +31 -31
- package/dist/components/ui/Dialog.js +33 -33
- package/dist/components/ui/DiffStat.js +2 -32
- package/dist/components/ui/Drawer.js +3 -116
- package/dist/components/ui/DropdownMenu.js +32 -32
- package/dist/components/ui/FileUpload.js +34 -171
- package/dist/components/ui/FloatingDock.js +3 -100
- package/dist/components/ui/FormWizard.d.ts +5 -13
- package/dist/components/ui/FormWizard.js +1 -1
- package/dist/components/ui/HandoffIndicator.js +4 -42
- package/dist/components/ui/HoverCard.js +2 -23
- package/dist/components/ui/InputGroup.js +2 -36
- package/dist/components/ui/InputOTP.js +31 -31
- package/dist/components/ui/Item.d.ts +1 -1
- package/dist/components/ui/Item.js +2 -176
- package/dist/components/ui/KanbanBoard.d.ts +2 -1
- package/dist/components/ui/KanbanBoard.js +2 -2
- package/dist/components/ui/Kbd.js +2 -17
- package/dist/components/ui/LanguageSwitcher.js +31 -31
- package/dist/components/ui/MagneticElement.js +3 -41
- package/dist/components/ui/MemoryInspector.js +3 -94
- package/dist/components/ui/Menubar.js +34 -257
- package/dist/components/ui/MetricCard.js +2 -2
- package/dist/components/ui/MouseGlow.d.ts +10 -0
- package/dist/components/ui/MouseGlow.js +3 -0
- package/dist/components/ui/{MouseEffect.d.ts → MouseSpotlight.d.ts} +0 -9
- package/dist/components/ui/{MouseEffect.js → MouseSpotlight.js} +1 -1
- package/dist/components/ui/MovingBorder.js +2 -40
- package/dist/components/ui/NavUser.d.ts +4 -0
- package/dist/components/{blocks → ui}/NavUser.js +37 -36
- package/dist/components/ui/NavigationMenu.js +34 -161
- package/dist/components/ui/NotificationCenter.js +34 -136
- package/dist/components/ui/Pagination.js +31 -31
- package/dist/components/ui/ProgressRing.js +4 -128
- package/dist/components/ui/PromoCard.js +4 -41
- package/dist/components/ui/RadioGroup.js +33 -69
- package/dist/components/ui/Resizable.js +34 -68
- package/dist/components/ui/Select.js +31 -31
- package/dist/components/ui/SettingsModal.js +41 -137
- package/dist/components/ui/ShaderBackground.js +4 -71
- package/dist/components/ui/Sheet.d.ts +2 -1
- package/dist/components/ui/Sheet.js +36 -32
- package/dist/components/ui/Sidebar.js +35 -34
- package/dist/components/ui/SourceCitation.js +3 -119
- package/dist/components/ui/SpringHover.js +3 -32
- package/dist/components/ui/StaggeredEntrance.js +2 -23
- package/dist/components/ui/StatusDot.d.ts +1 -1
- package/dist/components/ui/StyleToggle.js +1 -1
- package/dist/components/ui/SuccessCheck.js +3 -52
- package/dist/components/ui/Tabs.d.ts +5 -3
- package/dist/components/ui/Tabs.js +5 -1
- package/dist/components/ui/TagInput.js +35 -132
- package/dist/components/ui/ThemeToggle.d.ts +2 -1
- package/dist/components/ui/ThemeToggle.js +36 -66
- package/dist/components/ui/TiltCard.js +3 -48
- package/dist/components/ui/ToggleGroup.js +3 -56
- package/dist/components/ui/TreeView.js +35 -216
- package/dist/components/ui/Typography.d.ts +1 -1
- package/dist/components/ui/Typography.js +1 -1
- package/dist/components/ui/VoiceAgentCard.d.ts +9 -0
- package/dist/components/{blocks → ui}/VoiceAgentCard.js +2 -2
- package/dist/components/ui/WorkspaceSwitcherBlock.d.ts +3 -0
- package/dist/components/{blocks → ui}/WorkspaceSwitcherBlock.js +36 -35
- package/dist/components/ui/charts/index.js +1 -1
- package/dist/components/ui/icons/index.js +31 -31
- package/dist/components/ui/text-effects/index.js +2 -2
- package/dist/index.js +39 -39
- package/dist/internal/local-image-assets.d.ts +1 -0
- package/dist/lib/json-render/app.d.ts +11 -0
- package/dist/lib/json-render/app.js +7 -0
- package/dist/lib/json-render/catalog.d.ts +1154 -0
- package/dist/lib/json-render/catalog.js +23 -0
- package/dist/lib/json-render/registry.d.ts +1 -0
- package/dist/lib/json-render/registry.js +58 -0
- package/dist/lib/json-render/showcase-spec.d.ts +3 -0
- package/dist/lib/json-render/showcase-spec.js +2 -0
- package/dist/lib/react-utils.d.ts +1 -1
- package/dist/lib/standalone-routes.d.ts +56 -0
- package/dist/lib/standalone-routes.js +1 -0
- package/dist/lib/tool-call-state-map.d.ts +2 -0
- package/dist/lib/tool-call-state-map.js +1 -0
- package/dist/messages/en.js +1 -1
- package/dist/messages/it.js +1 -1
- package/dist/test/PublicSeedTestProvider.js +2 -2
- package/eslint-rules/nadicode/__tests__/rules.test.js +3 -3
- package/eslint-rules/nadicode/data/catalog-names.json +149 -38
- package/eslint-rules/nadicode/rules/__tests__/no-diy-backdrop-blur.test.js +0 -5
- package/eslint-rules/nadicode/rules/__tests__/require-catalog-component.test.js +2 -2
- package/eslint-rules/nadicode/rules/no-diy-backdrop-blur.js +0 -1
- package/eslint-rules/nadicode/rules/no-unregistered-glass.js +4 -6
- package/eslint-rules/nadicode/rules/require-glass-on-floating-ui.js +0 -2
- package/eslint-rules/nadicode/rules/require-metadata-on-page.js +11 -0
- package/eslint-rules/nadicode/rules/require-scroll-containment-on-overlay.js +0 -2
- package/package.json +9 -678
- package/src/lib/tokens.config.js +5 -5
- package/dist/chunk-2HETVNKL.js +0 -30
- package/dist/chunk-2IMMY3XX.js +0 -56
- package/dist/chunk-2KTT2AYB.js +0 -101
- package/dist/chunk-2WV6RLAC.js +0 -169
- package/dist/chunk-2YZZJUJ6.js +0 -70
- package/dist/chunk-3QKI6RJX.js +0 -149
- package/dist/chunk-3RCDKGEU.js +0 -72
- package/dist/chunk-4IGBBIYW.js +0 -47
- package/dist/chunk-4QMIT6UE.js +0 -30
- package/dist/chunk-4WPZ6T7V.js +0 -186
- package/dist/chunk-557WPFT4.js +0 -138
- package/dist/chunk-5CXWLUM5.js +0 -75
- package/dist/chunk-5Y4BOIYO.js +0 -121
- package/dist/chunk-67IG5FCH.js +0 -167
- package/dist/chunk-6QNV75XU.js +0 -126
- package/dist/chunk-7ANMFY6R.js +0 -36
- package/dist/chunk-7LIF2WZX.js +0 -125
- package/dist/chunk-7TGOAMCR.js +0 -94
- package/dist/chunk-A4UWREN6.js +0 -47
- package/dist/chunk-AN5TW4AL.js +0 -50
- package/dist/chunk-BPULUURW.js +0 -269
- package/dist/chunk-BXH7TNB3.js +0 -28
- package/dist/chunk-CCUXLYZX.js +0 -33
- package/dist/chunk-CI2O2OSW.js +0 -168
- package/dist/chunk-CN3DMZOJ.js +0 -175
- package/dist/chunk-EYWOKTOY.js +0 -58
- package/dist/chunk-G2YPDV3F.js +0 -130
- package/dist/chunk-G4FB7QSY.js +0 -134
- package/dist/chunk-G6EQO6QD.js +0 -165
- package/dist/chunk-GUSLJ3AL.js +0 -115
- package/dist/chunk-GZ6VDBQG.js +0 -42
- package/dist/chunk-I66XWYSS.js +0 -117
- package/dist/chunk-ILFUTPHO.js +0 -32
- package/dist/chunk-JQFECS4H.js +0 -52
- package/dist/chunk-K5JBAA4S.js +0 -147
- package/dist/chunk-KCOMDSQ4.js +0 -86
- package/dist/chunk-KQ672GKM.js +0 -114
- package/dist/chunk-L7XRBXDR.js +0 -30
- package/dist/chunk-LIJYUSSE.js +0 -152
- package/dist/chunk-LNVZNQCZ.js +0 -124
- package/dist/chunk-MLLNRFNW.js +0 -60
- package/dist/chunk-MO4BC6JT.js +0 -83
- package/dist/chunk-NOQKH3IZ.js +0 -150
- package/dist/chunk-OXEVIO5Z.js +0 -30
- package/dist/chunk-P3IWXUMH.js +0 -60
- package/dist/chunk-QLOLLRTD.js +0 -60
- package/dist/chunk-QOHUG6UP.js +0 -145
- package/dist/chunk-R3OWXU5R.js +0 -40
- package/dist/chunk-SBC32M5H.js +0 -164
- package/dist/chunk-SNSFT4EZ.js +0 -96
- package/dist/chunk-UO5DYAP7.js +0 -35
- package/dist/chunk-UWLSJLKT.js +0 -147
- package/dist/chunk-V3FMLBOA.js +0 -105
- package/dist/chunk-YCSEV2GM.js +0 -159
- package/dist/chunk-YVS2TJ7I.js +0 -32
- package/dist/chunk-ZBQLUB3B.js +0 -110
- package/dist/chunk-ZYWO77BI.js +0 -120
- package/dist/components/blocks/AudioVisualizerBlock.d.ts +0 -6
- package/dist/components/blocks/AudioVisualizerBlock.js +0 -3
- package/dist/components/blocks/BarChartBlock.d.ts +0 -15
- package/dist/components/blocks/BarChartBlock.js +0 -10
- package/dist/components/blocks/EmailVerifiedBlock.d.ts +0 -10
- package/dist/components/blocks/FeatureGridBlock.d.ts +0 -14
- package/dist/components/blocks/FeatureGridBlock.js +0 -12
- package/dist/components/blocks/ForgotPasswordBlock.d.ts +0 -14
- package/dist/components/blocks/ForgotPasswordBlock.js +0 -15
- package/dist/components/blocks/HeroSectionBlock.d.ts +0 -19
- package/dist/components/blocks/HeroSectionBlock.js +0 -139
- package/dist/components/blocks/KanbanDemoBlock.d.ts +0 -4
- package/dist/components/blocks/KanbanDemoBlock.js +0 -17
- package/dist/components/blocks/MagicLinkBlock.d.ts +0 -12
- package/dist/components/blocks/MagicLinkBlock.js +0 -18
- package/dist/components/blocks/NavUser.d.ts +0 -18
- package/dist/components/blocks/PasswordChangedBlock.d.ts +0 -10
- package/dist/components/blocks/PasswordChangedBlock.js +0 -10
- package/dist/components/blocks/PricingTableBlock.d.ts +0 -19
- package/dist/components/blocks/PricingTableBlock.js +0 -13
- package/dist/components/blocks/SavingsCalculatorBlock.d.ts +0 -30
- package/dist/components/blocks/SettingsLayout.d.ts +0 -16
- package/dist/components/blocks/SignUpBlock.d.ts +0 -11
- package/dist/components/blocks/SignUpBlock.js +0 -14
- package/dist/components/blocks/SocialProofBlock.d.ts +0 -19
- package/dist/components/blocks/TwoFactorChallengeBlock.d.ts +0 -12
- package/dist/components/blocks/VoiceAgentCard.d.ts +0 -19
- package/dist/components/blocks/WorkspaceSwitcherBlock.d.ts +0 -11
- package/dist/components/page-kits/AccountLockedPageKit.d.ts +0 -10
- package/dist/components/page-kits/AccountLockedPageKit.js +0 -11
- package/dist/components/page-kits/AgentsChatPageKit.d.ts +0 -46
- package/dist/components/page-kits/AgentsChatPageKit.js +0 -142
- package/dist/components/page-kits/AnalyticsPageKit.d.ts +0 -49
- package/dist/components/page-kits/AnalyticsPageKit.js +0 -139
- package/dist/components/page-kits/BlogContentPageKit.d.ts +0 -64
- package/dist/components/page-kits/BlogContentPageKit.js +0 -141
- package/dist/components/page-kits/CheckoutPageKit.d.ts +0 -36
- package/dist/components/page-kits/CheckoutPageKit.js +0 -135
- package/dist/components/page-kits/CompanySuitePageKit.d.ts +0 -25
- package/dist/components/page-kits/CompanySuitePageKit.js +0 -153
- package/dist/components/page-kits/CrudFormPageKit.d.ts +0 -54
- package/dist/components/page-kits/CrudFormPageKit.js +0 -138
- package/dist/components/page-kits/CrudListDetailPageKit.d.ts +0 -70
- package/dist/components/page-kits/CrudListDetailPageKit.js +0 -138
- package/dist/components/page-kits/DashboardPageKit.d.ts +0 -39
- package/dist/components/page-kits/ErrorPageKit.d.ts +0 -22
- package/dist/components/page-kits/ErrorPageKit.js +0 -8
- package/dist/components/page-kits/KanbanBoardPageKit.d.ts +0 -31
- package/dist/components/page-kits/KanbanBoardPageKit.js +0 -143
- package/dist/components/page-kits/LandingPageKit.d.ts +0 -29
- package/dist/components/page-kits/LoginPageKit.d.ts +0 -16
- package/dist/components/page-kits/LoginPageKit.js +0 -14
- package/dist/components/page-kits/MarketingShellPageKit.d.ts +0 -21
- package/dist/components/page-kits/NavigationShellPageKit.d.ts +0 -41
- package/dist/components/page-kits/OnboardingPageKit.d.ts +0 -26
- package/dist/components/page-kits/PricingPageKit.d.ts +0 -41
- package/dist/components/page-kits/PricingPageKit.js +0 -153
- package/dist/components/page-kits/ProfileSettingsPageKit.d.ts +0 -50
- package/dist/components/page-kits/ProfileSettingsPageKit.js +0 -17
- package/dist/components/page-kits/RecoveryPageKit.d.ts +0 -17
- package/dist/components/page-kits/RecoveryPageKit.js +0 -19
- package/dist/components/page-kits/ResetPageKit.d.ts +0 -14
- package/dist/components/page-kits/ResetPageKit.js +0 -19
- package/dist/components/page-kits/ServiceSuitePageKit.d.ts +0 -25
- package/dist/components/page-kits/ServiceSuitePageKit.js +0 -156
- package/dist/components/page-kits/SettingsPageKit.d.ts +0 -27
- package/dist/components/page-kits/SettingsPageKit.js +0 -11
- package/dist/components/page-kits/SignupPageKit.d.ts +0 -15
- package/dist/components/page-kits/SignupPageKit.js +0 -14
- package/dist/components/page-kits/SuccessPageKit.d.ts +0 -15
- package/dist/components/page-kits/TeamSettingsPageKit.d.ts +0 -50
- package/dist/components/page-kits/TwoFactorPageKit.d.ts +0 -16
- package/dist/components/page-kits/VerifyEmailPageKit.d.ts +0 -15
- package/dist/components/page-kits/VoiceAgentsPageKit.d.ts +0 -35
- package/dist/components/page-kits/VoiceAgentsPageKit.js +0 -133
- package/dist/components/ui/AgentMessageBubble.d.ts +0 -37
- package/dist/components/ui/AgentMessageBubble.js +0 -115
- package/dist/components/ui/AnimatedDialog.d.ts +0 -30
- package/dist/components/ui/AnimatedDialog.js +0 -119
- package/dist/components/ui/AnimatedSheet.d.ts +0 -26
- package/dist/components/ui/AnimatedSheet.js +0 -264
- package/dist/components/ui/AnimatedTabs.d.ts +0 -16
- package/dist/components/ui/AuroraEffect.d.ts +0 -9
- package/dist/components/ui/AuroraEffect.js +0 -77
- package/dist/components/ui/ChatPromptInputAttachments.d.ts +0 -9
- package/dist/components/ui/ChatPromptInputAttachments.js +0 -145
- package/dist/components/ui/ConversationThread.d.ts +0 -27
- package/dist/components/ui/ConversationThread.js +0 -99
- package/dist/components/ui/PageTransition.d.ts +0 -9
- package/dist/components/ui/PageTransition.js +0 -56
- package/dist/components/ui/SearchCommand.d.ts +0 -33
- package/dist/components/ui/SearchCommand.js +0 -115
- package/dist/components/ui/ThinkingIndicator.d.ts +0 -14
- package/dist/components/ui/ThinkingIndicator.js +0 -9
- package/dist/components/ui/Toast.d.ts +0 -28
- package/dist/components/ui/Toast.js +0 -115
- package/dist/components/ui/Toaster.d.ts +0 -1
- package/dist/components/ui/Toaster.js +0 -136
- package/dist/components/ui/ToolCallCard.d.ts +0 -16
- package/dist/components/ui/ToolCallCard.js +0 -13
- package/dist/components/ui/VisuallyHidden.d.ts +0 -2
- package/dist/components/ui/VisuallyHidden.js +0 -8
- package/dist/hooks/use-toast.d.ts +0 -44
- package/dist/hooks/use-toast.js +0 -2
- package/dist/{chunk-CQEUNASC.js → chunk-ETS5O4ZQ.js} +1 -1
- package/dist/{chunk-C6MJQDPC.js → chunk-KHLMOBAU.js} +1 -1
- package/dist/{chunk-M4XKO45H.js → chunk-MPVYXUOD.js} +8 -8
- package/dist/{chunk-EEL4RAPC.js → chunk-V4NBPGED.js} +8 -8
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
// src/catalog/definitions/overlay.ts
|
|
4
|
+
var overlayDefinitions = {
|
|
5
|
+
AlertDialog: {
|
|
6
|
+
props: z.object({
|
|
7
|
+
title: z.string().nullable(),
|
|
8
|
+
description: z.string().nullable(),
|
|
9
|
+
confirmLabel: z.string().nullable(),
|
|
10
|
+
cancelLabel: z.string().nullable(),
|
|
11
|
+
open: z.boolean().nullable(),
|
|
12
|
+
triggerLabel: z.string().nullable()
|
|
13
|
+
}),
|
|
14
|
+
events: ["confirm", "cancel"],
|
|
15
|
+
description: "Destructive-action confirmation dialog with title, description, and confirm/cancel buttons. Built on Radix AlertDialog; blocks interaction until dismissed. Use for irreversible actions. triggerLabel sets the default trigger button text when no children are provided.",
|
|
16
|
+
example: { title: "Delete workspace?", description: "This will permanently remove all projects and data in this workspace.", confirmLabel: "Delete", cancelLabel: "Keep workspace", open: null, triggerLabel: "Delete workspace" }
|
|
17
|
+
},
|
|
18
|
+
Command: {
|
|
19
|
+
props: z.object({
|
|
20
|
+
placeholder: z.string().nullable(),
|
|
21
|
+
items: z.array(
|
|
22
|
+
z.object({
|
|
23
|
+
group: z.string().nullable(),
|
|
24
|
+
label: z.string(),
|
|
25
|
+
value: z.string(),
|
|
26
|
+
shortcut: z.string().nullable()
|
|
27
|
+
})
|
|
28
|
+
).nullable()
|
|
29
|
+
}),
|
|
30
|
+
events: ["select"],
|
|
31
|
+
description: "Keyboard-navigable command menu (cmdk) with search input, grouped items, and keyboard shortcuts. Use standalone or inside CommandDialog. Fires select with the chosen item value.",
|
|
32
|
+
example: {
|
|
33
|
+
placeholder: "Type a command or search...",
|
|
34
|
+
items: [
|
|
35
|
+
{ group: "Navigation", label: "Go to Dashboard", value: "dashboard", shortcut: "G D" },
|
|
36
|
+
{ group: "Navigation", label: "Go to Settings", value: "settings", shortcut: "G S" },
|
|
37
|
+
{ group: "Actions", label: "Create New Project", value: "new-project", shortcut: "C P" }
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
ContextMenu: {
|
|
42
|
+
props: z.object({
|
|
43
|
+
items: z.array(
|
|
44
|
+
z.object({
|
|
45
|
+
label: z.string(),
|
|
46
|
+
value: z.string(),
|
|
47
|
+
shortcut: z.string().nullable(),
|
|
48
|
+
group: z.string().nullable()
|
|
49
|
+
})
|
|
50
|
+
),
|
|
51
|
+
className: z.string().nullable()
|
|
52
|
+
}),
|
|
53
|
+
slots: ["default"],
|
|
54
|
+
events: ["select"],
|
|
55
|
+
description: "Right-click context menu. Wraps children as the trigger area. Items are rendered as menu items grouped by the group field. Fires select on item click.",
|
|
56
|
+
example: {
|
|
57
|
+
items: [
|
|
58
|
+
{ label: "Copy", value: "copy", shortcut: "Ctrl+C", group: "Edit" },
|
|
59
|
+
{ label: "Paste", value: "paste", shortcut: "Ctrl+V", group: "Edit" },
|
|
60
|
+
{ label: "Delete", value: "delete", shortcut: null, group: null }
|
|
61
|
+
],
|
|
62
|
+
className: null
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
Dialog: {
|
|
66
|
+
props: z.object({
|
|
67
|
+
title: z.string().nullable(),
|
|
68
|
+
description: z.string().nullable(),
|
|
69
|
+
open: z.boolean().nullable()
|
|
70
|
+
}),
|
|
71
|
+
slots: ["default"],
|
|
72
|
+
events: ["close"],
|
|
73
|
+
description: "Modal dialog with glass-panel surface, title, description, and default content slot. Built on Radix Dialog with spring entry animation. Fires close when dismissed via the close button or overlay click.",
|
|
74
|
+
example: { title: "Edit Profile", description: "Update your personal information below.", open: true }
|
|
75
|
+
},
|
|
76
|
+
HoverCard: {
|
|
77
|
+
props: z.object({
|
|
78
|
+
trigger: z.string().nullable(),
|
|
79
|
+
side: z.enum(["top", "right", "bottom", "left"]).nullable(),
|
|
80
|
+
align: z.enum(["start", "center", "end"]).nullable(),
|
|
81
|
+
sideOffset: z.number().nullable(),
|
|
82
|
+
className: z.string().nullable()
|
|
83
|
+
}),
|
|
84
|
+
slots: ["default"],
|
|
85
|
+
events: ["openChange"],
|
|
86
|
+
description: "Content card shown on hover over a trigger text span. side and align control placement. Built on Radix HoverCard with glass-floating surface.",
|
|
87
|
+
example: { trigger: "@elenavasquez", side: "bottom", align: "start", sideOffset: 4, className: null }
|
|
88
|
+
},
|
|
89
|
+
Popover: {
|
|
90
|
+
props: z.object({
|
|
91
|
+
trigger: z.string().nullable(),
|
|
92
|
+
side: z.enum(["top", "right", "bottom", "left"]).nullable(),
|
|
93
|
+
align: z.enum(["start", "center", "end"]).nullable(),
|
|
94
|
+
sideOffset: z.number().nullable()
|
|
95
|
+
}),
|
|
96
|
+
slots: ["default"],
|
|
97
|
+
events: ["close"],
|
|
98
|
+
description: "Floating content panel anchored to a trigger element. trigger sets the button label. side and align control placement relative to the trigger. Glass-panel surface with scroll containment. Fires close on dismiss.",
|
|
99
|
+
example: { trigger: "Open settings", side: "bottom", align: "end", sideOffset: 4 }
|
|
100
|
+
},
|
|
101
|
+
Sheet: {
|
|
102
|
+
props: z.object({
|
|
103
|
+
title: z.string().nullable(),
|
|
104
|
+
description: z.string().nullable(),
|
|
105
|
+
side: z.enum(["top", "right", "bottom", "left"]).nullable(),
|
|
106
|
+
open: z.boolean().nullable()
|
|
107
|
+
}),
|
|
108
|
+
slots: ["default"],
|
|
109
|
+
events: ["close"],
|
|
110
|
+
description: "Slide-in panel that overlays the page from a chosen edge (default: right). Glass-panel surface with spring slide animation and drag-to-dismiss on horizontal sides. Fires close when dismissed.",
|
|
111
|
+
example: { title: "Filters", description: "Narrow down your search results.", side: "right", open: true }
|
|
112
|
+
},
|
|
113
|
+
Tooltip: {
|
|
114
|
+
props: z.object({
|
|
115
|
+
content: z.string(),
|
|
116
|
+
side: z.enum(["top", "right", "bottom", "left"]).nullable(),
|
|
117
|
+
sideOffset: z.number().nullable()
|
|
118
|
+
}),
|
|
119
|
+
slots: ["default"],
|
|
120
|
+
description: "Informational tooltip shown on hover over the trigger slot. Glass-overlay surface with fade+zoom animation. side controls placement relative to the trigger. No events \u2014 purely presentational.",
|
|
121
|
+
example: { content: "Copy to clipboard", side: "top", sideOffset: 4 }
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export { overlayDefinitions };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { primitiveComponents } from './chunk-MT76BPYV.js';
|
|
2
|
+
import { InviteUserModal } from './chunk-JPNNAU26.js';
|
|
3
|
+
import { StatsBlock } from './chunk-A4TQNK7R.js';
|
|
4
|
+
import { StatsMarketingBlock } from './chunk-PD6WW7E5.js';
|
|
5
|
+
import { TeamBlock } from './chunk-XMGWLDNG.js';
|
|
6
|
+
import { TestimonialsBlock } from './chunk-PYRHNONA.js';
|
|
7
|
+
import { TimezonePickerBlock } from './chunk-HF2HNDE7.js';
|
|
8
|
+
import { TwoFactorSetupBlock } from './chunk-ZNF6S3DQ.js';
|
|
9
|
+
import { UsageDonutBlock } from './chunk-HZTWLK7C.js';
|
|
10
|
+
import { WizardBlock } from './chunk-5MLOZVOQ.js';
|
|
11
|
+
import { OnboardingFlowBlock } from './chunk-C7LO3JEF.js';
|
|
12
|
+
import { PasswordRecoveryBlock } from './chunk-ID3N3MHQ.js';
|
|
13
|
+
import { PricingBlock } from './chunk-PQBVNNEG.js';
|
|
14
|
+
import { ProcessFlowBlock } from './chunk-B4YCI5NM.js';
|
|
15
|
+
import { ROICalculatorBlock } from './chunk-L77KWJJB.js';
|
|
16
|
+
import { ResetPasswordBlock } from './chunk-YNBDA24W.js';
|
|
17
|
+
import { SettingsNavBlock } from './chunk-PJ7DVYWA.js';
|
|
18
|
+
import { SolutionShowcaseBlock } from './chunk-HX3VXWNJ.js';
|
|
19
|
+
import { IntegrationsBlock } from './chunk-IYK2ABFE.js';
|
|
20
|
+
import { InteractiveAreaChartBlock } from './chunk-IHGZJS7N.js';
|
|
21
|
+
import { LogoCloud } from './chunk-STNVWBJH.js';
|
|
22
|
+
import { NewsletterBlock } from './chunk-3TYPQWKD.js';
|
|
23
|
+
import { NotFoundBlock } from './chunk-4EHXVFQY.js';
|
|
24
|
+
import { OTPBlock } from './chunk-7SRNVMBY.js';
|
|
25
|
+
import { OnboardingBlock } from './chunk-NVBF4OWT.js';
|
|
26
|
+
import { FAQBlock } from './chunk-DSNPOAE6.js';
|
|
27
|
+
import { FeatureBlock } from './chunk-JPA45CDE.js';
|
|
28
|
+
import { FooterBlock } from './chunk-Q4CRHV5T.js';
|
|
29
|
+
import { FormFieldBlock } from './chunk-KANK5FAG.js';
|
|
30
|
+
import { GalleryBlock } from './chunk-6NL36QN3.js';
|
|
31
|
+
import { HeaderBlock } from './chunk-CQ75K2DH.js';
|
|
32
|
+
import { HeroBlock } from './chunk-NA6ZPKIK.js';
|
|
33
|
+
import { CommandPaletteBlock } from './chunk-A44E44UV.js';
|
|
34
|
+
import { ComparisonBlock } from './chunk-GE4WUAAE.js';
|
|
35
|
+
import { ContactBlock } from './chunk-OMI2LLXM.js';
|
|
36
|
+
import { CreateBlock } from './chunk-TNDMBLYP.js';
|
|
37
|
+
import { CrudListBlock } from './chunk-P7CTBRHO.js';
|
|
38
|
+
import { DashboardBlock } from './chunk-CPHVCY3M.js';
|
|
39
|
+
import { DataGridBlock } from './chunk-D6MFOI3N.js';
|
|
40
|
+
import { DirectoryBlock } from './chunk-7AUNUDHM.js';
|
|
41
|
+
import { BlogIndexBlock } from './chunk-4ZST7OY5.js';
|
|
42
|
+
import { CallToActionBlock } from './chunk-3BGWXRQC.js';
|
|
43
|
+
import { ChangelogBlock } from './chunk-OLDUGLDM.js';
|
|
44
|
+
import { ChartBlock } from './chunk-6LD76RMU.js';
|
|
45
|
+
import { ChartCollectionBlock } from './chunk-YB3J4ZRZ.js';
|
|
46
|
+
import { HeatmapChartBlock } from './chunk-767GZSNJ.js';
|
|
47
|
+
import { ChatLayout } from './chunk-IZ7A62GI.js';
|
|
48
|
+
import { CheckEmailBlock } from './chunk-BVXSAVKY.js';
|
|
49
|
+
import { CodeBlock } from './chunk-GVOWGEGX.js';
|
|
50
|
+
import { AgentRunOverviewBlock } from './chunk-KMTLCN6S.js';
|
|
51
|
+
import { AgentWorkbenchBlock } from './chunk-BAB6AHOM.js';
|
|
52
|
+
import { ApiKeysBlock } from './chunk-UIYX2EMT.js';
|
|
53
|
+
import { AuthLayout } from './chunk-R4DPHCHJ.js';
|
|
54
|
+
import { LoginBlock } from './chunk-QLPU2IEO.js';
|
|
55
|
+
import { AuthSuccessBlock } from './chunk-OMGVZWRM.js';
|
|
56
|
+
import { BannerBlock } from './chunk-JVQQQS2M.js';
|
|
57
|
+
import { BenchmarksBlock } from './chunk-DGSNEGJP.js';
|
|
58
|
+
import { BlogDetailBlock } from './chunk-6NND57T2.js';
|
|
59
|
+
import { AccountLockedBlock } from './chunk-7OOO22KB.js';
|
|
60
|
+
import { ActivityFeedBlock } from './chunk-KWIIKHIB.js';
|
|
61
|
+
import { AgentConversationBlock } from './chunk-GNKNT52O.js';
|
|
62
|
+
import { AgentProfileGridBlock } from './chunk-SIXPY62Q.js';
|
|
63
|
+
import { VoiceAgentCard } from './chunk-TL5UCQC3.js';
|
|
64
|
+
import { WorkspaceSwitcherBlock } from './chunk-6OBT3A5O.js';
|
|
65
|
+
import { NavUser } from './chunk-OS2BLQ2G.js';
|
|
66
|
+
import { KanbanItem, KanbanHandle, KanbanColumnHeader, KanbanColumn, KanbanBoardCatalog, KanbanBoard } from './chunk-KV726HMK.js';
|
|
67
|
+
import { formWizardVariants, FormWizard } from './chunk-WHYKEOUV.js';
|
|
68
|
+
import { CheckoutForm } from './chunk-MOFWXBTK.js';
|
|
69
|
+
|
|
70
|
+
// src/catalog/components.tsx
|
|
71
|
+
var seedComponents = {
|
|
72
|
+
...primitiveComponents,
|
|
73
|
+
AccountLockedBlock,
|
|
74
|
+
AuthLayout,
|
|
75
|
+
AuthSuccessBlock,
|
|
76
|
+
CheckEmailBlock,
|
|
77
|
+
LoginBlock,
|
|
78
|
+
OTPBlock,
|
|
79
|
+
PasswordRecoveryBlock,
|
|
80
|
+
ResetPasswordBlock,
|
|
81
|
+
TwoFactorSetupBlock,
|
|
82
|
+
BannerBlock,
|
|
83
|
+
CallToActionBlock,
|
|
84
|
+
ComparisonBlock,
|
|
85
|
+
ContactBlock,
|
|
86
|
+
FAQBlock,
|
|
87
|
+
FeatureBlock,
|
|
88
|
+
GalleryBlock,
|
|
89
|
+
HeaderBlock,
|
|
90
|
+
HeroBlock,
|
|
91
|
+
FooterBlock,
|
|
92
|
+
LogoCloud,
|
|
93
|
+
NewsletterBlock,
|
|
94
|
+
SolutionShowcaseBlock,
|
|
95
|
+
TestimonialsBlock,
|
|
96
|
+
ActivityFeedBlock,
|
|
97
|
+
BenchmarksBlock,
|
|
98
|
+
ChartBlock,
|
|
99
|
+
ChartCollectionBlock,
|
|
100
|
+
DashboardBlock,
|
|
101
|
+
DataGridBlock,
|
|
102
|
+
HeatmapChartBlock,
|
|
103
|
+
InteractiveAreaChartBlock,
|
|
104
|
+
ProcessFlowBlock,
|
|
105
|
+
StatsBlock,
|
|
106
|
+
StatsMarketingBlock,
|
|
107
|
+
ApiKeysBlock,
|
|
108
|
+
CreateBlock,
|
|
109
|
+
CrudListBlock,
|
|
110
|
+
DirectoryBlock,
|
|
111
|
+
FormFieldBlock,
|
|
112
|
+
IntegrationsBlock,
|
|
113
|
+
InviteUserModal,
|
|
114
|
+
KanbanBoard: { KanbanBoard, KanbanBoardCatalog, KanbanColumn, KanbanColumnHeader, KanbanHandle, KanbanItem },
|
|
115
|
+
NavUser,
|
|
116
|
+
SettingsNavBlock,
|
|
117
|
+
TeamBlock,
|
|
118
|
+
TimezonePickerBlock,
|
|
119
|
+
WorkspaceSwitcherBlock,
|
|
120
|
+
AgentConversationBlock,
|
|
121
|
+
AgentProfileGridBlock,
|
|
122
|
+
AgentRunOverviewBlock,
|
|
123
|
+
AgentWorkbenchBlock,
|
|
124
|
+
VoiceAgentCard,
|
|
125
|
+
BlogDetailBlock,
|
|
126
|
+
BlogIndexBlock,
|
|
127
|
+
ChangelogBlock,
|
|
128
|
+
ChatLayout,
|
|
129
|
+
CheckoutForm,
|
|
130
|
+
CodeBlock,
|
|
131
|
+
CommandPaletteBlock,
|
|
132
|
+
FormWizard: { FormWizard, formWizardVariants },
|
|
133
|
+
OnboardingBlock,
|
|
134
|
+
OnboardingFlowBlock,
|
|
135
|
+
PricingBlock,
|
|
136
|
+
ROICalculatorBlock,
|
|
137
|
+
WizardBlock,
|
|
138
|
+
UsageDonutBlock,
|
|
139
|
+
NotFoundBlock
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export { seedComponents };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { m } from './chunk-PD2YEH3H.js';
|
|
2
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
3
|
+
import { useReducedMotion } from 'motion/react';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var FADE_DURATION_S = 0.3;
|
|
7
|
+
var TITLE_DELAY_S = 0;
|
|
8
|
+
var SUBTITLE_DELAY_S = 0.1;
|
|
9
|
+
function ChatGreeting({
|
|
10
|
+
title = "Hello!",
|
|
11
|
+
subtitle = "How can I help you today?",
|
|
12
|
+
children,
|
|
13
|
+
className,
|
|
14
|
+
ref,
|
|
15
|
+
...props
|
|
16
|
+
}) {
|
|
17
|
+
const prefersReduced = useReducedMotion();
|
|
18
|
+
if (children) {
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
className: cn("flex flex-col items-center justify-center gap-2", className),
|
|
24
|
+
...props,
|
|
25
|
+
children
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
if (prefersReduced) {
|
|
30
|
+
return /* @__PURE__ */ jsxs(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
ref,
|
|
34
|
+
className: cn("flex flex-col items-center justify-center gap-2", className),
|
|
35
|
+
...props,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx("p", { className: "text-xl font-semibold text-text-primary", children: title }),
|
|
38
|
+
subtitle ? /* @__PURE__ */ jsx("p", { className: "text-lg text-text-secondary", children: subtitle }) : null
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ jsxs(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
ref,
|
|
47
|
+
className: cn("flex flex-col items-center justify-center gap-2", className),
|
|
48
|
+
...props,
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx(
|
|
51
|
+
m.p,
|
|
52
|
+
{
|
|
53
|
+
className: "text-xl font-semibold text-text-primary",
|
|
54
|
+
initial: { opacity: 0, y: 10 },
|
|
55
|
+
animate: { opacity: 1, y: 0 },
|
|
56
|
+
exit: { opacity: 0, y: 10 },
|
|
57
|
+
transition: { duration: FADE_DURATION_S, delay: TITLE_DELAY_S },
|
|
58
|
+
children: title
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
subtitle ? /* @__PURE__ */ jsx(
|
|
62
|
+
m.p,
|
|
63
|
+
{
|
|
64
|
+
className: "text-lg text-text-secondary",
|
|
65
|
+
initial: { opacity: 0, y: 10 },
|
|
66
|
+
animate: { opacity: 1, y: 0 },
|
|
67
|
+
exit: { opacity: 0, y: 10 },
|
|
68
|
+
transition: { duration: FADE_DURATION_S, delay: SUBTITLE_DELAY_S },
|
|
69
|
+
children: subtitle
|
|
70
|
+
}
|
|
71
|
+
) : null
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { ChatGreeting };
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import { m, motionSpring, useMotionConfig } from '
|
|
3
|
-
import '
|
|
4
|
-
import '../../chunk-HJC6U46F.js';
|
|
5
|
-
import { cn } from '../../chunk-QYZT24TS.js';
|
|
1
|
+
import { useReducedMotion } from './chunk-KRBLVZII.js';
|
|
2
|
+
import { m, motionSpring, useMotionConfig } from './chunk-PD2YEH3H.js';
|
|
3
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
6
4
|
import * as React from 'react';
|
|
7
5
|
import { use } from 'react';
|
|
8
6
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
9
7
|
import { AnimatePresence } from 'motion/react';
|
|
10
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
var TabsContext = React.createContext({
|
|
11
|
+
prevIndex: 0,
|
|
12
|
+
currentIndex: 0,
|
|
13
|
+
activeValue: "",
|
|
14
|
+
baseId: "tabs",
|
|
15
|
+
registerTab: () => {
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function Tabs({
|
|
13
19
|
className,
|
|
14
20
|
onValueChange,
|
|
15
21
|
value: controlledValue,
|
|
@@ -26,7 +32,7 @@ function AnimatedTabs({
|
|
|
26
32
|
const generatedId = React.useId();
|
|
27
33
|
const baseId = React.useMemo(() => {
|
|
28
34
|
if (id) return String(id);
|
|
29
|
-
return `
|
|
35
|
+
return `tabs-${generatedId.replace(/:/g, "")}`;
|
|
30
36
|
}, [generatedId, id]);
|
|
31
37
|
const tabValues = React.useRef([]);
|
|
32
38
|
React.useEffect(() => {
|
|
@@ -55,7 +61,7 @@ function AnimatedTabs({
|
|
|
55
61
|
() => ({ prevIndex, currentIndex, activeValue, baseId, registerTab }),
|
|
56
62
|
[prevIndex, currentIndex, activeValue, baseId, registerTab]
|
|
57
63
|
);
|
|
58
|
-
return /* @__PURE__ */ jsx(
|
|
64
|
+
return /* @__PURE__ */ jsx(TabsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
59
65
|
TabsPrimitive.Root,
|
|
60
66
|
{
|
|
61
67
|
ref,
|
|
@@ -68,15 +74,7 @@ function AnimatedTabs({
|
|
|
68
74
|
}
|
|
69
75
|
) });
|
|
70
76
|
}
|
|
71
|
-
|
|
72
|
-
prevIndex: 0,
|
|
73
|
-
currentIndex: 0,
|
|
74
|
-
activeValue: "",
|
|
75
|
-
baseId: "animated-tabs",
|
|
76
|
-
registerTab: () => {
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
function AnimatedTabsList({
|
|
77
|
+
function TabsList({
|
|
80
78
|
className,
|
|
81
79
|
ref,
|
|
82
80
|
...props
|
|
@@ -93,14 +91,15 @@ function AnimatedTabsList({
|
|
|
93
91
|
}
|
|
94
92
|
);
|
|
95
93
|
}
|
|
96
|
-
function
|
|
94
|
+
function TabsTrigger({
|
|
97
95
|
className,
|
|
98
96
|
value,
|
|
99
97
|
children,
|
|
100
98
|
ref,
|
|
101
99
|
...props
|
|
102
100
|
}) {
|
|
103
|
-
const { registerTab, activeValue, baseId } = use(
|
|
101
|
+
const { registerTab, activeValue, baseId } = use(TabsContext);
|
|
102
|
+
const reducedMotion = useReducedMotion();
|
|
104
103
|
const isActive = value === activeValue;
|
|
105
104
|
const triggerId = props.id ?? `${baseId}-trigger-${value}`;
|
|
106
105
|
const contentId = props["aria-controls"] ?? `${baseId}-content-${value}`;
|
|
@@ -116,14 +115,15 @@ function AnimatedTabsTrigger({
|
|
|
116
115
|
"aria-controls": contentId,
|
|
117
116
|
className: cn(
|
|
118
117
|
"relative inline-flex items-center justify-center whitespace-nowrap rounded-sm px-4 py-1.5 text-sm font-medium transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-text-primary hover:bg-surface/30 hover:text-text-primary",
|
|
118
|
+
reducedMotion && "data-[state=active]:glass-tab-active",
|
|
119
119
|
className
|
|
120
120
|
),
|
|
121
121
|
...props,
|
|
122
122
|
children: [
|
|
123
|
-
isActive && /* @__PURE__ */ jsx(
|
|
123
|
+
isActive && !reducedMotion && /* @__PURE__ */ jsx(
|
|
124
124
|
m.span,
|
|
125
125
|
{
|
|
126
|
-
layoutId:
|
|
126
|
+
layoutId: `${baseId}-active-indicator`,
|
|
127
127
|
className: "absolute inset-0 rounded-sm glass-tab-active",
|
|
128
128
|
transition: motionSpring.snappy,
|
|
129
129
|
style: { zIndex: 0 }
|
|
@@ -134,17 +134,34 @@ function AnimatedTabsTrigger({
|
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function TabsContent({
|
|
138
138
|
className,
|
|
139
139
|
children,
|
|
140
140
|
ref,
|
|
141
141
|
...props
|
|
142
142
|
}) {
|
|
143
|
-
const { prevIndex, currentIndex, baseId } = use(
|
|
143
|
+
const { prevIndex, currentIndex, baseId } = use(TabsContext);
|
|
144
|
+
const reducedMotion = useReducedMotion();
|
|
144
145
|
const motionConfig = useMotionConfig();
|
|
145
146
|
const direction = currentIndex > prevIndex ? 1 : -1;
|
|
146
147
|
const contentId = props.id ?? `${baseId}-content-${props.value}`;
|
|
147
148
|
const labelledBy = props["aria-labelledby"] ?? `${baseId}-trigger-${props.value}`;
|
|
149
|
+
if (reducedMotion) {
|
|
150
|
+
return /* @__PURE__ */ jsx(
|
|
151
|
+
TabsPrimitive.Content,
|
|
152
|
+
{
|
|
153
|
+
ref,
|
|
154
|
+
id: contentId,
|
|
155
|
+
"aria-labelledby": labelledBy,
|
|
156
|
+
className: cn(
|
|
157
|
+
"mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2",
|
|
158
|
+
className
|
|
159
|
+
),
|
|
160
|
+
...props,
|
|
161
|
+
children
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
}
|
|
148
165
|
return /* @__PURE__ */ jsx(
|
|
149
166
|
TabsPrimitive.Content,
|
|
150
167
|
{
|
|
@@ -172,4 +189,4 @@ function AnimatedTabsContent({
|
|
|
172
189
|
);
|
|
173
190
|
}
|
|
174
191
|
|
|
175
|
-
export {
|
|
192
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Skeleton } from './chunk-RASEB2XI.js';
|
|
2
|
+
import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from './chunk-7UY24UWL.js';
|
|
3
|
+
import { Button } from './chunk-7KIDDF3I.js';
|
|
4
|
+
import { LoaderCircleIcon } from './chunk-BRP6D56U.js';
|
|
5
|
+
import { Alert, AlertTitle, AlertDescription } from './chunk-6CLSVCWP.js';
|
|
6
|
+
import { useMemo, useState } from 'react';
|
|
7
|
+
import { loadStripe } from '@stripe/stripe-js';
|
|
8
|
+
import { Elements, useStripe, useElements, PaymentElement } from '@stripe/react-stripe-js';
|
|
9
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
function CheckoutFormInner({
|
|
12
|
+
returnUrl,
|
|
13
|
+
emit
|
|
14
|
+
}) {
|
|
15
|
+
const stripe = useStripe();
|
|
16
|
+
const elements = useElements();
|
|
17
|
+
const [message, setMessage] = useState(null);
|
|
18
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
19
|
+
const handleSubmit = async (e) => {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
if (!stripe || !elements) return;
|
|
22
|
+
setIsLoading(true);
|
|
23
|
+
setMessage(null);
|
|
24
|
+
const { error } = await stripe.confirmPayment({
|
|
25
|
+
elements,
|
|
26
|
+
confirmParams: {
|
|
27
|
+
return_url: `${window.location.origin}${returnUrl}`
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
if (error) {
|
|
31
|
+
const msg = error.type === "card_error" || error.type === "validation_error" ? error.message ?? "An unexpected error occurred." : "An unexpected error occurred.";
|
|
32
|
+
setMessage(msg);
|
|
33
|
+
emit("error");
|
|
34
|
+
} else {
|
|
35
|
+
emit("complete");
|
|
36
|
+
}
|
|
37
|
+
setIsLoading(false);
|
|
38
|
+
};
|
|
39
|
+
const handleReady = () => {
|
|
40
|
+
emit("ready");
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, children: [
|
|
43
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "grid gap-6", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(PaymentElement, { id: "payment-element", options: { layout: "tabs" }, onReady: handleReady }),
|
|
45
|
+
!!message && /* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
|
|
46
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: "Error" }),
|
|
47
|
+
/* @__PURE__ */ jsx(AlertDescription, { children: message })
|
|
48
|
+
] })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ jsx(CardFooter, { children: /* @__PURE__ */ jsx(
|
|
51
|
+
Button,
|
|
52
|
+
{
|
|
53
|
+
disabled: isLoading || !stripe || !elements,
|
|
54
|
+
className: "w-full",
|
|
55
|
+
type: "submit",
|
|
56
|
+
children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
|
+
/* @__PURE__ */ jsx(LoaderCircleIcon, { size: 16, className: "mr-2 animate-spin" }),
|
|
58
|
+
"Processing..."
|
|
59
|
+
] }) : "Pay Now"
|
|
60
|
+
}
|
|
61
|
+
) })
|
|
62
|
+
] });
|
|
63
|
+
}
|
|
64
|
+
function CheckoutForm({
|
|
65
|
+
props,
|
|
66
|
+
emit
|
|
67
|
+
}) {
|
|
68
|
+
const publishableKey = props.publishableKey;
|
|
69
|
+
const clientSecret = props.clientSecret;
|
|
70
|
+
const amount = props.amount ?? 2e3;
|
|
71
|
+
const currency = props.currency ?? "usd";
|
|
72
|
+
const returnUrl = props.returnUrl ?? "/settings/billing";
|
|
73
|
+
const appearance = props.appearance;
|
|
74
|
+
const stripePromise = useMemo(
|
|
75
|
+
() => loadStripe(publishableKey),
|
|
76
|
+
[publishableKey]
|
|
77
|
+
);
|
|
78
|
+
const elementsOptions = useMemo(() => ({
|
|
79
|
+
clientSecret,
|
|
80
|
+
...appearance ? {
|
|
81
|
+
appearance: {
|
|
82
|
+
theme: appearance.theme ?? void 0,
|
|
83
|
+
variables: appearance.variables ?? void 0
|
|
84
|
+
}
|
|
85
|
+
} : {}
|
|
86
|
+
}), [clientSecret, appearance]);
|
|
87
|
+
return /* @__PURE__ */ jsxs(Card, { className: "w-full max-w-md", children: [
|
|
88
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
89
|
+
/* @__PURE__ */ jsx(CardTitle, { children: "Payment Details" }),
|
|
90
|
+
/* @__PURE__ */ jsxs(CardDescription, { children: [
|
|
91
|
+
"Complete your purchase of $",
|
|
92
|
+
amount / 100,
|
|
93
|
+
" ",
|
|
94
|
+
currency.toUpperCase(),
|
|
95
|
+
"."
|
|
96
|
+
] })
|
|
97
|
+
] }),
|
|
98
|
+
clientSecret ? /* @__PURE__ */ jsx(Elements, { stripe: stripePromise, options: elementsOptions, children: /* @__PURE__ */ jsx(
|
|
99
|
+
CheckoutFormInner,
|
|
100
|
+
{
|
|
101
|
+
returnUrl,
|
|
102
|
+
emit
|
|
103
|
+
}
|
|
104
|
+
) }) : /* @__PURE__ */ jsxs(CardContent, { className: "grid gap-4", children: [
|
|
105
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
|
|
106
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
|
|
107
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-text-secondary text-center", children: "Preparing payment form..." })
|
|
108
|
+
] })
|
|
109
|
+
] });
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export { CheckoutForm };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { textComponents } from './chunk-YGDO5KDY.js';
|
|
2
|
+
import { displayComponents } from './chunk-EJQ73FJ5.js';
|
|
3
|
+
import { effectsComponents } from './chunk-4GLBFZVI.js';
|
|
4
|
+
import { formComponents } from './chunk-P5I63ETD.js';
|
|
5
|
+
import { layoutComponents } from './chunk-OUXJUUCB.js';
|
|
6
|
+
import { navigationComponents } from './chunk-XYMFKNKG.js';
|
|
7
|
+
import { overlayComponents } from './chunk-3QMHVXSQ.js';
|
|
8
|
+
import { textEffectsComponents } from './chunk-5B3GLRX3.js';
|
|
9
|
+
import { actionComponents } from './chunk-GXUQFXT7.js';
|
|
10
|
+
import { agentComponents } from './chunk-65CUE2WL.js';
|
|
11
|
+
import { chartComponents } from './chunk-L55GVKLY.js';
|
|
12
|
+
import { chatComponents } from './chunk-56TNQ2P4.js';
|
|
13
|
+
|
|
14
|
+
// src/catalog/primitives/index.ts
|
|
15
|
+
var primitiveComponents = {
|
|
16
|
+
...layoutComponents,
|
|
17
|
+
...textComponents,
|
|
18
|
+
...displayComponents,
|
|
19
|
+
...formComponents,
|
|
20
|
+
...actionComponents,
|
|
21
|
+
...overlayComponents,
|
|
22
|
+
...navigationComponents,
|
|
23
|
+
...effectsComponents,
|
|
24
|
+
...agentComponents,
|
|
25
|
+
...chartComponents,
|
|
26
|
+
...textEffectsComponents,
|
|
27
|
+
...chatComponents
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { primitiveComponents };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { m } from './chunk-PD2YEH3H.js';
|
|
2
1
|
import { cn } from './chunk-QYZT24TS.js';
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { createPortal } from 'react-dom';
|
|
5
|
-
import { useReducedMotion, useMotionValue, useMotionTemplate } from 'motion/react';
|
|
6
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
5
|
|
|
8
6
|
var CSS_ACCENT_095 = "rgb(var(--color-accent) / 0.95)";
|
|
@@ -97,42 +95,5 @@ function MouseGlow({
|
|
|
97
95
|
}
|
|
98
96
|
return element;
|
|
99
97
|
}
|
|
100
|
-
function MouseSpotlight({ children, className, color = "rgb(var(--color-text-primary) / 0.06)", size = 250, ref }) {
|
|
101
|
-
const prefersReduced = useReducedMotion();
|
|
102
|
-
const mouseX = useMotionValue(0);
|
|
103
|
-
const mouseY = useMotionValue(0);
|
|
104
|
-
const handleMouseMove = React.useCallback(
|
|
105
|
-
(e) => {
|
|
106
|
-
if (prefersReduced) return;
|
|
107
|
-
const rect = e.currentTarget.getBoundingClientRect();
|
|
108
|
-
mouseX.set(e.clientX - rect.left);
|
|
109
|
-
mouseY.set(e.clientY - rect.top);
|
|
110
|
-
},
|
|
111
|
-
[prefersReduced, mouseX, mouseY]
|
|
112
|
-
);
|
|
113
|
-
const bgImage = useMotionTemplate`radial-gradient(
|
|
114
|
-
${size}px circle at ${mouseX}px ${mouseY}px,
|
|
115
|
-
${color},
|
|
116
|
-
transparent 80%
|
|
117
|
-
)`;
|
|
118
|
-
return /* @__PURE__ */ jsxs(
|
|
119
|
-
"div",
|
|
120
|
-
{
|
|
121
|
-
ref,
|
|
122
|
-
onMouseMove: handleMouseMove,
|
|
123
|
-
className: cn("group relative", className),
|
|
124
|
-
children: [
|
|
125
|
-
!prefersReduced && /* @__PURE__ */ jsx(
|
|
126
|
-
m.div,
|
|
127
|
-
{
|
|
128
|
-
className: "pointer-events-none absolute -inset-px rounded-xl opacity-0 transition duration-300 group-hover:opacity-100",
|
|
129
|
-
style: { background: bgImage }
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
children
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
98
|
|
|
138
|
-
export { MouseGlow
|
|
99
|
+
export { MouseGlow };
|