@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,176 @@
|
|
|
1
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
2
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var itemVariants = cva("flex items-center gap-4 transition-colors", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "bg-transparent",
|
|
10
|
+
outline: "rounded-lg border border-border bg-surface p-4 shadow-sm",
|
|
11
|
+
muted: "rounded-lg bg-secondary/50 p-4"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
default: "py-4",
|
|
15
|
+
sm: "py-2 px-4 gap-4",
|
|
16
|
+
xs: "py-1.5 px-2 gap-2"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "default",
|
|
21
|
+
size: "default"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
function Item({
|
|
25
|
+
className,
|
|
26
|
+
variant,
|
|
27
|
+
size,
|
|
28
|
+
asChild = false,
|
|
29
|
+
ref,
|
|
30
|
+
...props
|
|
31
|
+
}) {
|
|
32
|
+
const Comp = asChild ? Slot : "div";
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
Comp,
|
|
35
|
+
{
|
|
36
|
+
ref,
|
|
37
|
+
className: cn(itemVariants({ variant, size }), className),
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function ItemGroup({
|
|
43
|
+
className,
|
|
44
|
+
ref,
|
|
45
|
+
...props
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn("grid gap-1.5", className), ...props });
|
|
48
|
+
}
|
|
49
|
+
function ItemSeparator({
|
|
50
|
+
className,
|
|
51
|
+
ref,
|
|
52
|
+
...props
|
|
53
|
+
}) {
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: cn("-mx-1.5 h-px bg-border", className),
|
|
59
|
+
...props
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
var itemMediaVariants = cva("flex shrink-0 items-center justify-center", {
|
|
64
|
+
variants: {
|
|
65
|
+
variant: {
|
|
66
|
+
default: "",
|
|
67
|
+
icon: "h-9 w-9 rounded-md bg-secondary text-text-secondary [&>svg]:h-5 [&>svg]:w-5",
|
|
68
|
+
avatar: "h-10 w-10 overflow-hidden rounded-full",
|
|
69
|
+
image: "h-12 w-12 overflow-hidden rounded-md"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
variant: "default"
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
function ItemMedia({
|
|
77
|
+
className,
|
|
78
|
+
variant,
|
|
79
|
+
ref,
|
|
80
|
+
...props
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ jsx(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
ref,
|
|
86
|
+
className: cn(itemMediaVariants({ variant }), className),
|
|
87
|
+
...props
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function ItemContent({
|
|
92
|
+
className,
|
|
93
|
+
ref,
|
|
94
|
+
...props
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ jsx(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
ref,
|
|
100
|
+
className: cn("flex flex-1 flex-col gap-0.5 min-w-0", className),
|
|
101
|
+
...props
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function ItemTitle({
|
|
106
|
+
className,
|
|
107
|
+
ref,
|
|
108
|
+
...props
|
|
109
|
+
}) {
|
|
110
|
+
return /* @__PURE__ */ jsx(
|
|
111
|
+
"p",
|
|
112
|
+
{
|
|
113
|
+
ref,
|
|
114
|
+
className: cn("text-sm font-medium leading-none text-text-primary truncate", className),
|
|
115
|
+
...props
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
function ItemDescription({
|
|
120
|
+
className,
|
|
121
|
+
ref,
|
|
122
|
+
...props
|
|
123
|
+
}) {
|
|
124
|
+
return /* @__PURE__ */ jsx(
|
|
125
|
+
"p",
|
|
126
|
+
{
|
|
127
|
+
ref,
|
|
128
|
+
className: cn("text-xs text-text-tertiary truncate", className),
|
|
129
|
+
...props
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
function ItemActions({
|
|
134
|
+
className,
|
|
135
|
+
ref,
|
|
136
|
+
...props
|
|
137
|
+
}) {
|
|
138
|
+
return /* @__PURE__ */ jsx(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
ref,
|
|
142
|
+
className: cn("ml-auto flex items-center gap-2", className),
|
|
143
|
+
...props
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function ItemHeader({
|
|
148
|
+
className,
|
|
149
|
+
ref,
|
|
150
|
+
...props
|
|
151
|
+
}) {
|
|
152
|
+
return /* @__PURE__ */ jsx(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
ref,
|
|
156
|
+
className: cn("mb-2 flex items-center justify-between", className),
|
|
157
|
+
...props
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
function ItemFooter({
|
|
162
|
+
className,
|
|
163
|
+
ref,
|
|
164
|
+
...props
|
|
165
|
+
}) {
|
|
166
|
+
return /* @__PURE__ */ jsx(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
ref,
|
|
170
|
+
className: cn("mt-2 flex items-center justify-between", className),
|
|
171
|
+
...props
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants };
|
|
@@ -9,14 +9,12 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
9
9
|
var defaultDescription = `Join thousands of developers building premium interfaces with ${siteConfig.name}.`;
|
|
10
10
|
var defaultPrimaryAction = { label: "Get Started", href: "#" };
|
|
11
11
|
var defaultSecondaryAction = { label: "Book Demo", href: "#" };
|
|
12
|
-
function CallToActionBlock({
|
|
13
|
-
title = "Start Building"
|
|
14
|
-
description = defaultDescription
|
|
15
|
-
primaryAction = defaultPrimaryAction
|
|
16
|
-
secondaryAction = defaultSecondaryAction
|
|
17
|
-
className
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ jsx("section", { className: className ?? "py-16 md:py-24", children: /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-5xl px-6", children: /* @__PURE__ */ jsxs(StaggerChildren, { staggerMs: 100, className: "text-center", children: [
|
|
12
|
+
function CallToActionBlock({ props }) {
|
|
13
|
+
const title = props.title ?? "Start Building";
|
|
14
|
+
const description = props.description ?? defaultDescription;
|
|
15
|
+
const primaryAction = props.primaryAction ?? defaultPrimaryAction;
|
|
16
|
+
const secondaryAction = props.secondaryAction ?? defaultSecondaryAction;
|
|
17
|
+
return /* @__PURE__ */ jsx("section", { className: "py-16 md:py-24", children: /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-5xl px-6", children: /* @__PURE__ */ jsxs(StaggerChildren, { staggerMs: 100, className: "text-center", children: [
|
|
20
18
|
/* @__PURE__ */ jsx(Heading, { level: 2, size: "section", className: "text-4xl lg:text-5xl", children: /* @__PURE__ */ jsx(
|
|
21
19
|
ShimmeringText,
|
|
22
20
|
{
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { nn } from './chunk-2NMP3J5R.js';
|
|
2
|
+
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from './chunk-KPO4PD6C.js';
|
|
3
|
+
import { HoverCard, HoverCardTrigger, HoverCardContent } from './chunk-OB2KVO7O.js';
|
|
4
|
+
import { Popover, PopoverTrigger, PopoverContent } from './chunk-UYT33NG6.js';
|
|
5
|
+
import { Command, CommandInput, CommandList, CommandEmpty, CommandSeparator, CommandGroup, CommandItem, CommandShortcut } from './chunk-37LY27CX.js';
|
|
6
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from './chunk-KHLMOBAU.js';
|
|
7
|
+
import { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuGroup, ContextMenuSeparator, ContextMenuItem, ContextMenuShortcut } from './chunk-NF2Y5ERJ.js';
|
|
8
|
+
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from './chunk-MJ4CB6ZL.js';
|
|
9
|
+
import { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction } from './chunk-YCS4MMC3.js';
|
|
10
|
+
import { useState } from 'react';
|
|
11
|
+
import { useBoundProp } from '@json-render/react';
|
|
12
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
|
+
|
|
14
|
+
var overlayComponents = {
|
|
15
|
+
AlertDialog: ({
|
|
16
|
+
props,
|
|
17
|
+
bindings,
|
|
18
|
+
emit,
|
|
19
|
+
children
|
|
20
|
+
}) => {
|
|
21
|
+
const [boundOpen, setBoundOpen] = useBoundProp(
|
|
22
|
+
props.open,
|
|
23
|
+
bindings?.open
|
|
24
|
+
);
|
|
25
|
+
const [localOpen, setLocalOpen] = useState(props.open ?? false);
|
|
26
|
+
const isBound = !!bindings?.open;
|
|
27
|
+
const open = isBound ? boundOpen ?? false : localOpen;
|
|
28
|
+
const setOpen = isBound ? setBoundOpen : setLocalOpen;
|
|
29
|
+
return /* @__PURE__ */ jsxs(AlertDialog, { open, onOpenChange: setOpen, children: [
|
|
30
|
+
/* @__PURE__ */ jsx(AlertDialogTrigger, { asChild: true, children: children ?? /* @__PURE__ */ jsx("button", { children: props.triggerLabel ?? "Open" }) }),
|
|
31
|
+
/* @__PURE__ */ jsxs(AlertDialogContent, { children: [
|
|
32
|
+
/* @__PURE__ */ jsxs(AlertDialogHeader, { children: [
|
|
33
|
+
props.title && /* @__PURE__ */ jsx(AlertDialogTitle, { children: props.title }),
|
|
34
|
+
props.description && /* @__PURE__ */ jsx(AlertDialogDescription, { children: props.description })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ jsxs(AlertDialogFooter, { children: [
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
AlertDialogCancel,
|
|
39
|
+
{
|
|
40
|
+
onClick: () => {
|
|
41
|
+
setOpen(false);
|
|
42
|
+
emit("cancel");
|
|
43
|
+
},
|
|
44
|
+
children: props.cancelLabel ?? "Cancel"
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ jsx(
|
|
48
|
+
AlertDialogAction,
|
|
49
|
+
{
|
|
50
|
+
onClick: () => {
|
|
51
|
+
setOpen(false);
|
|
52
|
+
emit("confirm");
|
|
53
|
+
},
|
|
54
|
+
children: props.confirmLabel ?? "Confirm"
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] })
|
|
58
|
+
] })
|
|
59
|
+
] });
|
|
60
|
+
},
|
|
61
|
+
Command: ({
|
|
62
|
+
props,
|
|
63
|
+
emit
|
|
64
|
+
}) => {
|
|
65
|
+
const items = props.items ?? [];
|
|
66
|
+
const groups = items.reduce((acc, item) => {
|
|
67
|
+
const key = item.group ?? "";
|
|
68
|
+
if (!acc[key]) acc[key] = [];
|
|
69
|
+
acc[key].push(item);
|
|
70
|
+
return acc;
|
|
71
|
+
}, {});
|
|
72
|
+
const groupKeys = Object.keys(groups);
|
|
73
|
+
return /* @__PURE__ */ jsxs(Command, { children: [
|
|
74
|
+
/* @__PURE__ */ jsx(CommandInput, { placeholder: props.placeholder ?? "Search..." }),
|
|
75
|
+
/* @__PURE__ */ jsxs(CommandList, { children: [
|
|
76
|
+
/* @__PURE__ */ jsx(CommandEmpty, {}),
|
|
77
|
+
groupKeys.map((groupKey, idx) => /* @__PURE__ */ jsxs("div", { children: [
|
|
78
|
+
idx > 0 && /* @__PURE__ */ jsx(CommandSeparator, {}),
|
|
79
|
+
/* @__PURE__ */ jsx(CommandGroup, { heading: groupKey || void 0, children: groups[groupKey].map((item) => /* @__PURE__ */ jsxs(
|
|
80
|
+
CommandItem,
|
|
81
|
+
{
|
|
82
|
+
value: item.value,
|
|
83
|
+
onSelect: () => emit("select"),
|
|
84
|
+
children: [
|
|
85
|
+
item.label,
|
|
86
|
+
item.shortcut && /* @__PURE__ */ jsx(CommandShortcut, { children: item.shortcut })
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
item.value
|
|
90
|
+
)) })
|
|
91
|
+
] }, groupKey || idx))
|
|
92
|
+
] })
|
|
93
|
+
] });
|
|
94
|
+
},
|
|
95
|
+
Dialog: ({
|
|
96
|
+
props,
|
|
97
|
+
bindings,
|
|
98
|
+
emit,
|
|
99
|
+
children
|
|
100
|
+
}) => {
|
|
101
|
+
const [boundOpen, setBoundOpen] = useBoundProp(
|
|
102
|
+
props.open,
|
|
103
|
+
bindings?.open
|
|
104
|
+
);
|
|
105
|
+
const [localOpen, setLocalOpen] = useState(props.open ?? false);
|
|
106
|
+
const isBound = !!bindings?.open;
|
|
107
|
+
const open = isBound ? boundOpen ?? false : localOpen;
|
|
108
|
+
const setOpen = isBound ? setBoundOpen : setLocalOpen;
|
|
109
|
+
return /* @__PURE__ */ jsx(
|
|
110
|
+
Dialog,
|
|
111
|
+
{
|
|
112
|
+
open,
|
|
113
|
+
onOpenChange: (v) => {
|
|
114
|
+
setOpen(v);
|
|
115
|
+
if (!v) emit("close");
|
|
116
|
+
},
|
|
117
|
+
children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
118
|
+
(props.title || props.description) && /* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
119
|
+
props.title && /* @__PURE__ */ jsx(DialogTitle, { children: props.title }),
|
|
120
|
+
props.description && /* @__PURE__ */ jsx(DialogDescription, { children: props.description })
|
|
121
|
+
] }),
|
|
122
|
+
children
|
|
123
|
+
] })
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
},
|
|
127
|
+
Popover: ({
|
|
128
|
+
props,
|
|
129
|
+
emit,
|
|
130
|
+
children
|
|
131
|
+
}) => {
|
|
132
|
+
return /* @__PURE__ */ jsxs(
|
|
133
|
+
Popover,
|
|
134
|
+
{
|
|
135
|
+
onOpenChange: (v) => {
|
|
136
|
+
if (!v) emit("close");
|
|
137
|
+
},
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("button", { children: props.trigger ?? "Open" }) }),
|
|
140
|
+
/* @__PURE__ */ jsx(
|
|
141
|
+
PopoverContent,
|
|
142
|
+
{
|
|
143
|
+
side: nn(props.side),
|
|
144
|
+
align: props.align ?? "center",
|
|
145
|
+
sideOffset: props.sideOffset ?? 4,
|
|
146
|
+
children
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
},
|
|
153
|
+
Sheet: ({
|
|
154
|
+
props,
|
|
155
|
+
bindings,
|
|
156
|
+
emit,
|
|
157
|
+
children
|
|
158
|
+
}) => {
|
|
159
|
+
const [boundOpen, setBoundOpen] = useBoundProp(
|
|
160
|
+
props.open,
|
|
161
|
+
bindings?.open
|
|
162
|
+
);
|
|
163
|
+
const [localOpen, setLocalOpen] = useState(props.open ?? false);
|
|
164
|
+
const isBound = !!bindings?.open;
|
|
165
|
+
const open = isBound ? boundOpen ?? false : localOpen;
|
|
166
|
+
const setOpen = isBound ? setBoundOpen : setLocalOpen;
|
|
167
|
+
return /* @__PURE__ */ jsx(
|
|
168
|
+
Sheet,
|
|
169
|
+
{
|
|
170
|
+
open,
|
|
171
|
+
onOpenChange: (v) => {
|
|
172
|
+
setOpen(v);
|
|
173
|
+
if (!v) emit("close");
|
|
174
|
+
},
|
|
175
|
+
children: /* @__PURE__ */ jsxs(
|
|
176
|
+
SheetContent,
|
|
177
|
+
{
|
|
178
|
+
side: props.side ?? "right",
|
|
179
|
+
children: [
|
|
180
|
+
(props.title || props.description) && /* @__PURE__ */ jsxs(SheetHeader, { children: [
|
|
181
|
+
props.title && /* @__PURE__ */ jsx(SheetTitle, { children: props.title }),
|
|
182
|
+
props.description && /* @__PURE__ */ jsx(SheetDescription, { children: props.description })
|
|
183
|
+
] }),
|
|
184
|
+
children
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
},
|
|
191
|
+
Tooltip: ({
|
|
192
|
+
props,
|
|
193
|
+
children
|
|
194
|
+
}) => {
|
|
195
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
196
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx("span", { children }) }),
|
|
197
|
+
/* @__PURE__ */ jsx(
|
|
198
|
+
TooltipContent,
|
|
199
|
+
{
|
|
200
|
+
side: nn(props.side),
|
|
201
|
+
sideOffset: props.sideOffset ?? 4,
|
|
202
|
+
children: props.content
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
] }) });
|
|
206
|
+
},
|
|
207
|
+
ContextMenu: ({
|
|
208
|
+
props,
|
|
209
|
+
emit,
|
|
210
|
+
children
|
|
211
|
+
}) => {
|
|
212
|
+
const items = props.items ?? [];
|
|
213
|
+
const groups = items.reduce((acc, item) => {
|
|
214
|
+
const key = item.group ?? "";
|
|
215
|
+
if (!acc[key]) acc[key] = [];
|
|
216
|
+
acc[key].push(item);
|
|
217
|
+
return acc;
|
|
218
|
+
}, {});
|
|
219
|
+
const groupKeys = Object.keys(groups);
|
|
220
|
+
return /* @__PURE__ */ jsxs(ContextMenu, { children: [
|
|
221
|
+
/* @__PURE__ */ jsx(ContextMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: nn(props.className), children }) }),
|
|
222
|
+
/* @__PURE__ */ jsx(ContextMenuContent, { children: groupKeys.map((groupKey, idx) => /* @__PURE__ */ jsxs(ContextMenuGroup, { children: [
|
|
223
|
+
idx > 0 && /* @__PURE__ */ jsx(ContextMenuSeparator, {}),
|
|
224
|
+
groups[groupKey].map((item) => /* @__PURE__ */ jsxs(
|
|
225
|
+
ContextMenuItem,
|
|
226
|
+
{
|
|
227
|
+
onSelect: () => emit("select"),
|
|
228
|
+
children: [
|
|
229
|
+
item.label,
|
|
230
|
+
item.shortcut && /* @__PURE__ */ jsx(ContextMenuShortcut, { children: item.shortcut })
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
item.value
|
|
234
|
+
))
|
|
235
|
+
] }, groupKey || idx)) })
|
|
236
|
+
] });
|
|
237
|
+
},
|
|
238
|
+
HoverCard: ({
|
|
239
|
+
props,
|
|
240
|
+
children,
|
|
241
|
+
emit
|
|
242
|
+
}) => {
|
|
243
|
+
return /* @__PURE__ */ jsxs(HoverCard, { onOpenChange: () => emit("openChange"), children: [
|
|
244
|
+
/* @__PURE__ */ jsx(HoverCardTrigger, { asChild: true, children: /* @__PURE__ */ jsx("span", { className: nn(props.className), children: props.trigger ?? "Hover" }) }),
|
|
245
|
+
/* @__PURE__ */ jsx(
|
|
246
|
+
HoverCardContent,
|
|
247
|
+
{
|
|
248
|
+
side: nn(props.side),
|
|
249
|
+
align: props.align ?? "center",
|
|
250
|
+
sideOffset: props.sideOffset ?? 4,
|
|
251
|
+
children
|
|
252
|
+
}
|
|
253
|
+
)
|
|
254
|
+
] });
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export { overlayComponents };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Shine } from './chunk-DARC2ACH.js';
|
|
2
|
-
import {
|
|
3
|
-
import { Typography } from './chunk-PC6VMNDY.js';
|
|
2
|
+
import { Typography } from './chunk-Q7PCHHVJ.js';
|
|
4
3
|
import { Spinner } from './chunk-ZLSWCV55.js';
|
|
5
4
|
import { Heading } from './chunk-UXX6HHPS.js';
|
|
6
5
|
import { Input } from './chunk-AP3XXYAY.js';
|
|
6
|
+
import { useSafeTimeout } from './chunk-MDAYDDTC.js';
|
|
7
7
|
import { ScrollFadeIn } from './chunk-I23DDSU7.js';
|
|
8
8
|
import { Button } from './chunk-7KIDDF3I.js';
|
|
9
9
|
import { CheckIcon } from './chunk-CXACRCZ4.js';
|
|
@@ -11,12 +11,9 @@ import { cn } from './chunk-QYZT24TS.js';
|
|
|
11
11
|
import { useState } from 'react';
|
|
12
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
|
-
function NewsletterBlock({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
description = "Get notified about new components, updates, and design system tips. No spam.",
|
|
18
|
-
className
|
|
19
|
-
}) {
|
|
14
|
+
function NewsletterBlock({ props, emit }) {
|
|
15
|
+
const title = props.title ?? "Stay in the loop";
|
|
16
|
+
const description = props.description ?? "Get notified about new components, updates, and design system tips. No spam.";
|
|
20
17
|
const [email, setEmail] = useState("");
|
|
21
18
|
const [status, setStatus] = useState("idle");
|
|
22
19
|
const setSafeTimeout = useSafeTimeout();
|
|
@@ -24,10 +21,7 @@ function NewsletterBlock({
|
|
|
24
21
|
e.preventDefault();
|
|
25
22
|
if (!email.trim()) return;
|
|
26
23
|
setStatus("loading");
|
|
27
|
-
|
|
28
|
-
await onSubscribe?.(email);
|
|
29
|
-
} catch {
|
|
30
|
-
}
|
|
24
|
+
emit("subscribe");
|
|
31
25
|
setSafeTimeout(() => {
|
|
32
26
|
setStatus("success");
|
|
33
27
|
setSafeTimeout(() => {
|
|
@@ -36,7 +30,7 @@ function NewsletterBlock({
|
|
|
36
30
|
}, 3e3);
|
|
37
31
|
}, 600);
|
|
38
32
|
};
|
|
39
|
-
return /* @__PURE__ */ jsx("section", { className: cn("py-16 md:py-24"
|
|
33
|
+
return /* @__PURE__ */ jsx("section", { className: cn("py-16 md:py-24"), children: /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-xl px-6", children: /* @__PURE__ */ jsx(ScrollFadeIn, { children: /* @__PURE__ */ jsx(Shine, { enableOnHover: true, loop: true, loopDelay: 300, color: "var(--color-accent)", opacity: 0.1, children: /* @__PURE__ */ jsxs("div", { className: "glass-panel rounded-2xl border border-border/50 p-8 text-center sm:p-12", children: [
|
|
40
34
|
/* @__PURE__ */ jsx(Heading, { level: 2, size: "section", className: "text-text-primary", children: title }),
|
|
41
35
|
/* @__PURE__ */ jsx(Typography, { variant: "body", className: "mt-4 text-text-secondary", children: description }),
|
|
42
36
|
status === "success" ? /* @__PURE__ */ jsxs("div", { className: "mt-8 flex items-center justify-center gap-2 text-success", children: [
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { useDismissed } from './chunk-SH72GWB7.js';
|
|
2
|
+
import { XIcon } from './chunk-UIUMTURU.js';
|
|
3
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var bannerVariants = cva(
|
|
8
|
+
"relative flex items-center justify-center gap-2 px-4 py-2 text-sm font-medium",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
info: "bg-info text-info-foreground",
|
|
13
|
+
warning: "bg-warning text-warning-foreground",
|
|
14
|
+
success: "bg-success text-success-foreground",
|
|
15
|
+
accent: "bg-accent text-accent-foreground"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: "accent"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
function AnnouncementBanner({
|
|
24
|
+
className,
|
|
25
|
+
variant,
|
|
26
|
+
storageKey = "announcement-dismissed",
|
|
27
|
+
children,
|
|
28
|
+
...props
|
|
29
|
+
}) {
|
|
30
|
+
const [dismissed, dismiss] = useDismissed(storageKey);
|
|
31
|
+
if (dismissed) return null;
|
|
32
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(bannerVariants({ variant, className })), role: "banner", ...props, children: [
|
|
33
|
+
/* @__PURE__ */ jsx("span", { className: "text-pretty", children }),
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
"button",
|
|
36
|
+
{
|
|
37
|
+
onClick: dismiss,
|
|
38
|
+
className: "absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1.5 opacity-70 hover:opacity-100 transition-opacity",
|
|
39
|
+
"aria-label": "Dismiss announcement",
|
|
40
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: 16 })
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { AnnouncementBanner, bannerVariants };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { Avatar, AvatarImage, AvatarFallback } from './chunk-NAAU5IWU.js';
|
|
2
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
3
|
+
import { createContext, useContext } from 'react';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var ChatMessageContext = createContext("user");
|
|
8
|
+
function useMessageRole() {
|
|
9
|
+
return useContext(ChatMessageContext);
|
|
10
|
+
}
|
|
11
|
+
function normalizeRole(role) {
|
|
12
|
+
return role === "agent" ? "assistant" : role;
|
|
13
|
+
}
|
|
14
|
+
var chatMessageVariants = cva("flex gap-4 max-w-full", {
|
|
15
|
+
variants: {
|
|
16
|
+
role: {
|
|
17
|
+
user: "flex-row-reverse",
|
|
18
|
+
assistant: "flex-row",
|
|
19
|
+
system: "justify-center"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: { role: "assistant" }
|
|
23
|
+
});
|
|
24
|
+
var chatMessageContentVariants = cva(
|
|
25
|
+
"rounded-2xl px-4 py-2.5 text-sm leading-relaxed",
|
|
26
|
+
{
|
|
27
|
+
variants: {
|
|
28
|
+
role: {
|
|
29
|
+
user: "bg-primary text-primary-foreground max-w-[80%] rounded-br-sm",
|
|
30
|
+
assistant: "bg-surface border border-border text-text-primary max-w-[80%] rounded-bl-sm",
|
|
31
|
+
system: "bg-muted/50 text-text-tertiary text-xs italic px-4 py-1.5 rounded-lg"
|
|
32
|
+
},
|
|
33
|
+
status: {
|
|
34
|
+
default: "",
|
|
35
|
+
error: "border-destructive/40 bg-destructive/5"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: { role: "assistant", status: "default" }
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
function ChatMessage({
|
|
42
|
+
role,
|
|
43
|
+
children,
|
|
44
|
+
className,
|
|
45
|
+
ref,
|
|
46
|
+
...props
|
|
47
|
+
}) {
|
|
48
|
+
const normalized = normalizeRole(role);
|
|
49
|
+
return /* @__PURE__ */ jsx(ChatMessageContext.Provider, { value: role, children: /* @__PURE__ */ jsx(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
className: cn(chatMessageVariants({ role: normalized }), className),
|
|
54
|
+
...props,
|
|
55
|
+
children
|
|
56
|
+
}
|
|
57
|
+
) });
|
|
58
|
+
}
|
|
59
|
+
function ChatMessageContent({
|
|
60
|
+
children,
|
|
61
|
+
className,
|
|
62
|
+
isStreaming,
|
|
63
|
+
status = "default",
|
|
64
|
+
ref,
|
|
65
|
+
...props
|
|
66
|
+
}) {
|
|
67
|
+
const role = normalizeRole(useMessageRole());
|
|
68
|
+
return /* @__PURE__ */ jsxs(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
ref,
|
|
72
|
+
className: cn(chatMessageContentVariants({ role, status }), className),
|
|
73
|
+
...isStreaming ? { "aria-live": "polite" } : {},
|
|
74
|
+
...props,
|
|
75
|
+
children: [
|
|
76
|
+
children,
|
|
77
|
+
!!isStreaming && /* @__PURE__ */ jsx(
|
|
78
|
+
"span",
|
|
79
|
+
{
|
|
80
|
+
"aria-hidden": "true",
|
|
81
|
+
className: "inline-block w-1.5 h-4 ml-0.5 bg-accent animate-pulse rounded-sm"
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
function ChatMessageAvatar({
|
|
89
|
+
src,
|
|
90
|
+
name,
|
|
91
|
+
className,
|
|
92
|
+
ref
|
|
93
|
+
}) {
|
|
94
|
+
const role = normalizeRole(useMessageRole());
|
|
95
|
+
const fallback = name ? name.slice(0, 2).toUpperCase() : role === "user" ? "U" : "AI";
|
|
96
|
+
const label = role === "user" ? "User avatar" : "Assistant avatar";
|
|
97
|
+
return /* @__PURE__ */ jsxs(
|
|
98
|
+
Avatar,
|
|
99
|
+
{
|
|
100
|
+
ref,
|
|
101
|
+
className: cn("h-8 w-8 shrink-0 ring-1 ring-border", className),
|
|
102
|
+
"aria-label": label,
|
|
103
|
+
children: [
|
|
104
|
+
src ? /* @__PURE__ */ jsx(AvatarImage, { src, alt: "" }) : null,
|
|
105
|
+
/* @__PURE__ */ jsx(AvatarFallback, { className: "text-xs", children: fallback })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
function ChatMessageTimestamp({
|
|
111
|
+
children,
|
|
112
|
+
className,
|
|
113
|
+
...props
|
|
114
|
+
}) {
|
|
115
|
+
return /* @__PURE__ */ jsx("span", { className: cn("text-xs text-text-tertiary", className), ...props, children });
|
|
116
|
+
}
|
|
117
|
+
function ChatMessageActions({
|
|
118
|
+
children,
|
|
119
|
+
className,
|
|
120
|
+
...props
|
|
121
|
+
}) {
|
|
122
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center gap-1", className), ...props, children });
|
|
123
|
+
}
|
|
124
|
+
function ChatMessageFooter({
|
|
125
|
+
children,
|
|
126
|
+
className,
|
|
127
|
+
...props
|
|
128
|
+
}) {
|
|
129
|
+
const role = useMessageRole();
|
|
130
|
+
return /* @__PURE__ */ jsx(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
className: cn(
|
|
134
|
+
"flex items-center gap-2 mt-1",
|
|
135
|
+
role === "user" && "flex-row-reverse",
|
|
136
|
+
className
|
|
137
|
+
),
|
|
138
|
+
...props,
|
|
139
|
+
children
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export { ChatMessage, ChatMessageActions, ChatMessageAvatar, ChatMessageContent, ChatMessageFooter, ChatMessageTimestamp, chatMessageContentVariants, chatMessageVariants };
|