@vadimcomanescu/nadicode-design-system 4.0.11 → 5.0.1
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 +82 -23
- 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 +13 -265
- package/dist/ProfilePage-KJVA3ZQ5.js +87 -0
- package/dist/TeamPage-IYWL6N4I.js +479 -0
- package/dist/catalog/catalog.d.ts +4817 -1885
- package/dist/catalog/catalog.js +22 -2107
- package/dist/catalog/components.d.ts +233 -177
- package/dist/catalog/components.js +217 -288
- 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 +358 -0
- package/dist/catalog/definitions/blocks-agent.js +1 -0
- package/dist/catalog/definitions/blocks-auth.d.ts +195 -0
- package/dist/catalog/definitions/blocks-auth.js +1 -0
- package/dist/catalog/definitions/blocks-content.d.ts +513 -0
- package/dist/catalog/definitions/blocks-content.js +2 -0
- package/dist/catalog/definitions/blocks-crud.d.ts +505 -0
- package/dist/catalog/definitions/blocks-crud.js +1 -0
- package/dist/catalog/definitions/blocks-data.d.ts +311 -0
- package/dist/catalog/definitions/blocks-data.js +2 -0
- package/dist/catalog/definitions/blocks-marketing.d.ts +389 -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 +107 -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 +5324 -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/ui/AnimatedDialog.js → catalog/primitives/action.js} +42 -33
- 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} +70 -47
- 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} +170 -57
- package/dist/catalog/primitives/layout.d.ts +14 -0
- package/dist/{components/blocks/TwoFactorChallengeBlock.js → catalog/primitives/layout.js} +42 -34
- 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/chunk-2LBEV4YF.js +128 -0
- package/dist/chunk-2NMP3J5R.js +6 -0
- package/dist/chunk-33UWVOQ6.js +227 -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-I2ZI5RUM.js → chunk-3FJG5MAT.js} +18 -12
- package/dist/chunk-3LROWCZE.js +464 -0
- package/dist/chunk-3QMHVXSQ.js +258 -0
- package/dist/chunk-44NVO477.js +46 -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-4ZST7OY5.js +153 -0
- package/dist/chunk-5B3GLRX3.js +139 -0
- package/dist/chunk-5KQEGO3O.js +71 -0
- package/dist/{chunk-N3IZNRY2.js → chunk-5RBO2IMZ.js} +17 -20
- package/dist/chunk-5XDYCBR6.js +345 -0
- package/dist/chunk-5ZC3RHXB.js +72 -0
- package/dist/chunk-65CUE2WL.js +257 -0
- package/dist/{chunk-HQKORL27.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-4INNXURW.js → chunk-767GZSNJ.js} +6 -9
- package/dist/{chunk-2S4727W3.js → chunk-7AUNUDHM.js} +20 -16
- package/dist/chunk-7IVXTSZK.js +185 -0
- package/dist/chunk-7LYRUSWM.js +77 -0
- package/dist/{chunk-UGIHLU2V.js → chunk-7OOO22KB.js} +10 -15
- package/dist/chunk-7PTI46BS.js +119 -0
- package/dist/chunk-7SOMHO2L.js +181 -0
- package/dist/chunk-7U7XFIP6.js +17 -0
- package/dist/chunk-7X3GXC7C.js +52 -0
- package/dist/chunk-A4QNTJUR.js +292 -0
- package/dist/chunk-A4TQNK7R.js +58 -0
- package/dist/chunk-AP5SGSN7.js +186 -0
- package/dist/chunk-AU2Q7CXZ.js +45 -0
- package/dist/{chunk-326EZJLO.js → chunk-B4373MDA.js} +39 -27
- package/dist/{chunk-BG26NCUY.js → chunk-B4YCI5NM.js} +10 -19
- package/dist/chunk-BHPATKC7.js +116 -0
- package/dist/chunk-BJVCZI2B.js +29 -0
- package/dist/{chunk-TYP2MR3Q.js → chunk-BOWKE7OE.js} +21 -3
- package/dist/{chunk-JPL22322.js → chunk-BVXSAVKY.js} +6 -11
- package/dist/{chunk-3M3QV2EN.js → chunk-BY6LWOHB.js} +11 -9
- package/dist/{chunk-WOYBVPXK.js → chunk-CQ75K2DH.js} +8 -10
- package/dist/chunk-CTVV6JS6.js +6 -0
- package/dist/{chunk-OSNTB6RY.js → chunk-CY3PROVO.js} +88 -26
- package/dist/{chunk-ZURTIIST.js → chunk-D6MFOI3N.js} +20 -20
- package/dist/{chunk-WVHBPPI3.js → chunk-DGSNEGJP.js} +15 -17
- package/dist/{chunk-NTN5DWXV.js → chunk-DSNPOAE6.js} +7 -10
- package/dist/chunk-E4KUPYHE.js +75 -0
- package/dist/chunk-E5E3W2K4.js +6 -0
- package/dist/chunk-EJQ73FJ5.js +383 -0
- package/dist/chunk-F3QIIOOL.js +71 -0
- package/dist/chunk-FAQZPQF7.js +119 -0
- package/dist/chunk-FOXDDL2Z.js +41 -0
- package/dist/{chunk-ZI22L4DD.js → chunk-FSU7ZM5V.js} +13 -14
- package/dist/{chunk-JRLU2VSB.js → chunk-FX3GYS5O.js} +51 -42
- 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-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-X4HXVLER.js → chunk-H3KTAHJP.js} +33 -22
- package/dist/{chunk-7XRKBROR.js → chunk-HF2HNDE7.js} +22 -12
- package/dist/{chunk-2BXGWBD4.js → chunk-HX3VXWNJ.js} +20 -13
- package/dist/{chunk-NEECQ3IH.js → chunk-HZTWLK7C.js} +16 -18
- package/dist/chunk-IW36SVOH.js +425 -0
- package/dist/{chunk-F2TNOCXQ.js → chunk-IYK2ABFE.js} +25 -14
- package/dist/{chunk-WSBLCWY7.js → chunk-IZ7A62GI.js} +7 -6
- package/dist/chunk-JDHD4L6N.js +31 -0
- package/dist/chunk-JDLCIPSC.js +18 -0
- package/dist/{chunk-4R7DT2NJ.js → chunk-JPA45CDE.js} +67 -42
- package/dist/chunk-JUAOQFC3.js +32 -0
- package/dist/{chunk-3TZLHB2L.js → chunk-JVQQQS2M.js} +8 -13
- package/dist/chunk-KA44DDCB.js +42 -0
- package/dist/{chunk-O2W6C3K2.js → chunk-KANK5FAG.js} +65 -62
- 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-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-DT6XGHB3.js → chunk-L77KWJJB.js} +29 -30
- package/dist/chunk-LH5KBOIA.js +228 -0
- package/dist/chunk-LO3MDQSJ.js +130 -0
- package/dist/chunk-LYI5YMC6.js +125 -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-X5AEOQAL.js → chunk-MZGGA75L.js} +1 -40
- package/dist/chunk-N334RMNE.js +39 -0
- package/dist/chunk-NBDUZA66.js +235 -0
- package/dist/{chunk-Q3CKH7RH.js → chunk-NDQO7AO6.js} +19 -18
- package/dist/chunk-NF2Y5ERJ.js +186 -0
- package/dist/chunk-NZXZ3PH2.js +56 -0
- package/dist/chunk-OB2KVO7O.js +23 -0
- package/dist/chunk-OLDUGLDM.js +114 -0
- package/dist/{chunk-K4QZ377F.js → chunk-OMGVZWRM.js} +25 -16
- 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-P7JS4B7U.js +101 -0
- package/dist/{chunk-FODQX5Q5.js → chunk-PD6WW7E5.js} +8 -10
- package/dist/chunk-PIFVLS5S.js +142 -0
- package/dist/chunk-PJ7DVYWA.js +185 -0
- package/dist/{chunk-OTZIMMPV.js → chunk-PQBVNNEG.js} +18 -18
- package/dist/chunk-PQOL3E2V.js +30 -0
- package/dist/chunk-PY7WBWKH.js +37 -0
- package/dist/{chunk-ALFCQ35A.js → chunk-PYRHNONA.js} +25 -16
- package/dist/{chunk-TBXW5MDR.js → chunk-Q4CRHV5T.js} +25 -17
- package/dist/{chunk-PC6VMNDY.js → chunk-Q7PCHHVJ.js} +0 -8
- package/dist/{chunk-DITD5GBG.js → chunk-QCFDSOTV.js} +25 -39
- package/dist/chunk-QCL76CM6.js +92 -0
- package/dist/chunk-QFXWI2WX.js +40 -0
- package/dist/{chunk-B6HXF3HP.js → chunk-R4SBK6Y5.js} +19 -22
- package/dist/chunk-SEJXMNMK.js +191 -0
- package/dist/{chunk-E6YDGQ2O.js → chunk-SIXPY62Q.js} +17 -16
- package/dist/chunk-STKNMEJA.js +15 -0
- package/dist/chunk-STNVWBJH.js +41 -0
- package/dist/{chunk-73T44TBV.js → chunk-TL5UCQC3.js} +12 -16
- package/dist/chunk-TTA5TLNJ.js +97 -0
- package/dist/chunk-TTDKPZ75.js +45 -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-JXZ4HYXA.js → chunk-U43JTK45.js} +64 -60
- package/dist/{chunk-T5LXQNIP.js → chunk-U5QLJHYN.js} +29 -27
- package/dist/chunk-UAN2YEI5.js +140 -0
- package/dist/chunk-UB6XJTRU.js +45 -0
- package/dist/{chunk-YZK222HJ.js → chunk-UCFR7GLW.js} +14 -8
- package/dist/{chunk-K4ZPHSWL.js → chunk-UMEBNHKR.js} +25 -15
- package/dist/chunk-UPMSE6PQ.js +99 -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-VQVWFCHF.js +44 -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-WRBPEZFY.js +80 -0
- package/dist/chunk-XI775QZZ.js +275 -0
- package/dist/chunk-XLIFWBE7.js +117 -0
- package/dist/{chunk-J7F42IR3.js → chunk-XLN4NVKU.js} +20 -28
- package/dist/{chunk-BI3TXPMR.js → chunk-XMGWLDNG.js} +4 -6
- package/dist/chunk-XX4XJJSH.js +230 -0
- package/dist/chunk-XYMFKNKG.js +93 -0
- package/dist/chunk-XZDVTOXJ.js +94 -0
- package/dist/{chunk-OTFIAT6T.js → chunk-YB3J4ZRZ.js} +15 -6
- package/dist/chunk-YCS4MMC3.js +133 -0
- package/dist/chunk-YEAJLVGB.js +276 -0
- package/dist/chunk-YGDO5KDY.js +33 -0
- package/dist/chunk-YMAEXGD2.js +82 -0
- package/dist/chunk-YXRIXTXW.js +32 -0
- package/dist/chunk-ZFCSKVTZ.js +102 -0
- package/dist/{chunk-6Y4UFG7C.js → chunk-ZKA5X3E4.js} +17 -15
- package/dist/chunk-ZL6BPQNN.js +138 -0
- package/dist/chunk-ZLWEBAL6.js +48 -0
- package/dist/chunk-ZSU5ZI4O.js +32 -0
- package/dist/chunk-ZU7MDRCI.js +256 -0
- package/dist/components/blocks/AccountLockedBlock.d.ts +3 -11
- package/dist/components/blocks/AccountLockedBlock.js +2 -2
- package/dist/components/blocks/ActivityFeedBlock.d.ts +3 -14
- package/dist/components/blocks/ActivityFeedBlock.js +2 -2
- package/dist/components/blocks/AgentConversationBlock.d.ts +14 -22
- 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 +7 -26
- 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 +6 -1
- 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 +1 -1
- 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} +3 -3
- 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 +3 -3
- 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 +1 -1
- 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 +32 -33
- package/dist/components/blocks/CrudListBlock.d.ts +3 -0
- package/dist/components/{page-kits/VerifyEmailPageKit.js → blocks/CrudListBlock.js} +40 -33
- package/dist/components/blocks/DashboardBlock.d.ts +3 -0
- package/dist/components/{page-kits/DashboardPageKit.js → blocks/DashboardBlock.js} +47 -48
- 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 +32 -32
- 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 +1 -1
- package/dist/components/blocks/HeroBlock.d.ts +1 -23
- package/dist/components/blocks/HeroBlock.js +35 -35
- 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 +32 -32
- 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 +3 -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 +34 -32
- package/dist/components/blocks/OnboardingBlock.d.ts +1 -14
- package/dist/components/blocks/OnboardingBlock.js +33 -33
- 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 +2 -2
- package/dist/components/blocks/PricingBlock.d.ts +1 -19
- package/dist/components/blocks/PricingBlock.js +3 -3
- 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} +3 -3
- package/dist/components/blocks/ResetPasswordBlock.d.ts +3 -9
- package/dist/components/blocks/ResetPasswordBlock.js +1 -1
- 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 +1 -110
- 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 +15 -2
- 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 +36 -36
- package/dist/components/blocks/UsageDonutBlock.d.ts +3 -16
- package/dist/components/blocks/UsageDonutBlock.js +1 -1
- package/dist/components/blocks/WizardBlock.d.ts +1 -15
- package/dist/components/blocks/WizardBlock.js +32 -32
- package/dist/components/blocks/user/InviteUserModal.d.ts +3 -20
- 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/Carousel.js +35 -247
- package/dist/components/ui/ChartCard.js +2 -2
- package/dist/components/ui/ChatActions.js +2 -2
- package/dist/components/ui/ChatGreeting.js +3 -77
- package/dist/components/ui/ChatMessage.d.ts +28 -11
- 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 +34 -33
- package/dist/components/ui/CheckoutFormDemo.js +32 -32
- 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 -14
- 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 +3 -2
- 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/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 +0 -137
- 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 +1182 -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/lib-index.d.ts +6 -24
- 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 -682
- package/dist/catalog/types.d.ts +0 -4
- package/dist/catalog/types.js +0 -1
- package/dist/chunk-23M6A7EW.js +0 -30
- package/dist/chunk-3A6CFUG4.js +0 -175
- package/dist/chunk-3UG7AY5B.js +0 -75
- package/dist/chunk-46MPJVJ6.js +0 -115
- package/dist/chunk-4IGBBIYW.js +0 -47
- package/dist/chunk-4JJARNWW.js +0 -138
- package/dist/chunk-4WPZ6T7V.js +0 -186
- package/dist/chunk-567EG267.js +0 -130
- package/dist/chunk-5DWVAAP2.js +0 -60
- package/dist/chunk-5USY2AY2.js +0 -72
- package/dist/chunk-5Y4BOIYO.js +0 -121
- package/dist/chunk-6CDHFSOH.js +0 -60
- package/dist/chunk-7IXYIUQ5.js +0 -114
- package/dist/chunk-7LIF2WZX.js +0 -125
- package/dist/chunk-AN5TW4AL.js +0 -50
- package/dist/chunk-BQLHU3KL.js +0 -96
- package/dist/chunk-CCUXLYZX.js +0 -33
- package/dist/chunk-CI2O2OSW.js +0 -168
- package/dist/chunk-E7RCIX5C.js +0 -150
- package/dist/chunk-EHIKO3CD.js +0 -169
- package/dist/chunk-EYWOKTOY.js +0 -58
- package/dist/chunk-FJP5SRCH.js +0 -40
- package/dist/chunk-G4FB7QSY.js +0 -134
- package/dist/chunk-GI6UL27V.js +0 -126
- package/dist/chunk-GICOWV5M.js +0 -30
- package/dist/chunk-I66XWYSS.js +0 -117
- package/dist/chunk-KA47SVMB.js +0 -149
- package/dist/chunk-KCOMDSQ4.js +0 -86
- package/dist/chunk-KKXYZASY.js +0 -94
- package/dist/chunk-LIJYUSSE.js +0 -152
- package/dist/chunk-LNVZNQCZ.js +0 -124
- package/dist/chunk-LPW5LWX7.js +0 -32
- package/dist/chunk-MX7GIO2A.js +0 -83
- package/dist/chunk-NBQKHIAP.js +0 -120
- package/dist/chunk-O3LHOHLI.js +0 -56
- package/dist/chunk-PYLBCISI.js +0 -165
- package/dist/chunk-PYTNUV2K.js +0 -30
- package/dist/chunk-QOHUG6UP.js +0 -145
- package/dist/chunk-R4CRWXEQ.js +0 -86
- package/dist/chunk-RNZM3QJX.js +0 -101
- package/dist/chunk-SBLQB3A2.js +0 -70
- package/dist/chunk-THN674BW.js +0 -269
- package/dist/chunk-TOLHBTIL.js +0 -30
- package/dist/chunk-UMYGE2DM.js +0 -47
- package/dist/chunk-UO5DYAP7.js +0 -35
- package/dist/chunk-UWLSJLKT.js +0 -147
- package/dist/chunk-V2ORH4K3.js +0 -167
- package/dist/chunk-V3FMLBOA.js +0 -105
- package/dist/chunk-VDP7SAKP.js +0 -164
- package/dist/chunk-XTZMFOHK.js +0 -52
- package/dist/chunk-YOGZZMQS.js +0 -60
- package/dist/chunk-YRQBSMGZ.js +0 -42
- package/dist/chunk-YVS2TJ7I.js +0 -32
- package/dist/chunk-YW2KJAC6.js +0 -159
- package/dist/chunk-Z6PIE2PZ.js +0 -36
- package/dist/chunk-ZBQLUB3B.js +0 -110
- package/dist/chunk-ZXGBPUSM.js +0 -28
- 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/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-HZPCTOQJ.js → chunk-TKT6WW4E.js} +1 -1
- package/dist/{chunk-EEL4RAPC.js → chunk-V4NBPGED.js} +8 -8
|
@@ -24,46 +24,83 @@ var ICON_COLORS = [
|
|
|
24
24
|
"bg-chart-3/10 text-chart-3",
|
|
25
25
|
"bg-chart-4/10 text-chart-4"
|
|
26
26
|
];
|
|
27
|
+
var ICON_MAP = {
|
|
28
|
+
GlobeIcon: /* @__PURE__ */ jsx(GlobeIcon, { size: 20 }),
|
|
29
|
+
ZapIcon: /* @__PURE__ */ jsx(ZapIcon, { size: 20 }),
|
|
30
|
+
DatabaseIcon: /* @__PURE__ */ jsx(DatabaseIcon, { size: 20 }),
|
|
31
|
+
ShieldIcon: /* @__PURE__ */ jsx(ShieldIcon, { size: 20 }),
|
|
32
|
+
ChartBarIcon: /* @__PURE__ */ jsx(ChartBarIcon, { size: 20 }),
|
|
33
|
+
Code2Icon: /* @__PURE__ */ jsx(Code2Icon, { size: 20 }),
|
|
34
|
+
LayersIcon: /* @__PURE__ */ jsx(LayersIcon, { size: 24 }),
|
|
35
|
+
CloudIcon: /* @__PURE__ */ jsx(CloudIcon, { size: 96 }),
|
|
36
|
+
KeyIcon: /* @__PURE__ */ jsx(KeyIcon, { size: 16 }),
|
|
37
|
+
LaptopIcon: /* @__PURE__ */ jsx(LaptopIcon, { size: 16 })
|
|
38
|
+
};
|
|
27
39
|
var defaultGridFeatures = [
|
|
28
40
|
{
|
|
29
41
|
title: "Edge Network",
|
|
30
42
|
description: "Deploy your AI models to the edge with a single click. Global low-latency inference.",
|
|
31
|
-
icon:
|
|
43
|
+
icon: "GlobeIcon",
|
|
44
|
+
badge: null,
|
|
45
|
+
bullets: null
|
|
32
46
|
},
|
|
33
47
|
{
|
|
34
48
|
title: "Real-time Processing",
|
|
35
49
|
description: "Process locally on device or in the cloud. WebGPU and WebAssembly support built-in.",
|
|
36
|
-
icon:
|
|
50
|
+
icon: "ZapIcon",
|
|
51
|
+
badge: null,
|
|
52
|
+
bullets: null
|
|
37
53
|
},
|
|
38
54
|
{
|
|
39
55
|
title: "Vector Database",
|
|
40
56
|
description: "Integrated vector storage for semantic search and long-term memory retrieval.",
|
|
41
|
-
icon:
|
|
57
|
+
icon: "DatabaseIcon",
|
|
58
|
+
badge: null,
|
|
59
|
+
bullets: null
|
|
42
60
|
},
|
|
43
61
|
{
|
|
44
62
|
title: "End-to-End Encryption",
|
|
45
63
|
description: "Your data is encrypted at rest and in transit. Enterprise-grade security standards.",
|
|
46
|
-
icon:
|
|
64
|
+
icon: "ShieldIcon",
|
|
65
|
+
badge: null,
|
|
66
|
+
bullets: null
|
|
47
67
|
},
|
|
48
68
|
{
|
|
49
69
|
title: "Automated Scaling",
|
|
50
70
|
description: "Scale from 0 to millions of requests without managing infrastructure.",
|
|
51
|
-
icon:
|
|
71
|
+
icon: "ChartBarIcon",
|
|
72
|
+
badge: null,
|
|
73
|
+
bullets: null
|
|
52
74
|
},
|
|
53
75
|
{
|
|
54
76
|
title: "API First",
|
|
55
77
|
description: "Everything is available via API. Integrate with your existing stack seamlessly.",
|
|
56
|
-
icon:
|
|
78
|
+
icon: "Code2Icon",
|
|
79
|
+
badge: null,
|
|
80
|
+
bullets: null
|
|
57
81
|
}
|
|
58
82
|
];
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
83
|
+
var defaultListFeatures = [
|
|
84
|
+
{
|
|
85
|
+
title: "Unified Component Architecture",
|
|
86
|
+
description: "Stop wrestling with fragmented libraries. Seed provides a cohesive set of primitives that work together perfectly out of the box. Themeable, accessible, and composable.",
|
|
87
|
+
icon: "LayersIcon",
|
|
88
|
+
badge: null,
|
|
89
|
+
bullets: ["Type-safe design tokens", "Radix UI primitives", "Automatic dark mode"]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
title: "Secure by Default",
|
|
93
|
+
description: "Enterprise-ready security features including SSO, audit logs, and role-based access control. Compliant with SOC2 and GDPR.",
|
|
94
|
+
icon: "ShieldIcon",
|
|
95
|
+
badge: null,
|
|
96
|
+
bullets: ["End-to-end encryption", "SAML & OIDC support", "99.99% Uptime SLA"]
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
function resolveIcon(iconName, size) {
|
|
100
|
+
return ICON_MAP[iconName] ?? /* @__PURE__ */ jsx("span", { children: iconName });
|
|
101
|
+
}
|
|
102
|
+
function FeatureGridVariant({ features, badge, title, description }) {
|
|
103
|
+
return /* @__PURE__ */ jsx("section", { className: "py-24 relative", children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-6 lg:px-8", children: [
|
|
67
104
|
/* @__PURE__ */ jsxs("div", { className: "text-center mb-16 max-w-2xl mx-auto", children: [
|
|
68
105
|
/* @__PURE__ */ jsx(Badge, { variant: "outline", className: "mb-4", children: badge }),
|
|
69
106
|
/* @__PURE__ */ jsx(Heading, { level: 2, size: "section", className: "text-text-primary sm:text-4xl mb-4", children: title }),
|
|
@@ -71,35 +108,18 @@ function FeatureGridVariant({
|
|
|
71
108
|
] }),
|
|
72
109
|
/* @__PURE__ */ jsx(StaggerChildren, { staggerMs: 80, className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 [grid-auto-rows:1fr]", children: features.map((feature, i) => /* @__PURE__ */ jsxs(Card, { interactive: true, className: "h-full", children: [
|
|
73
110
|
/* @__PURE__ */ jsxs(CardHeader, { className: "pb-2", children: [
|
|
74
|
-
/* @__PURE__ */ jsx("div", { className: cn("h-10 w-10 rounded-lg flex items-center justify-center mb-4", ICON_COLORS[i % ICON_COLORS.length]), children: feature.icon }),
|
|
111
|
+
/* @__PURE__ */ jsx("div", { className: cn("h-10 w-10 rounded-lg flex items-center justify-center mb-4", ICON_COLORS[i % ICON_COLORS.length]), children: resolveIcon(feature.icon) }),
|
|
75
112
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-lg", children: feature.title })
|
|
76
113
|
] }),
|
|
77
114
|
/* @__PURE__ */ jsx(CardContent, { className: "flex-1", children: /* @__PURE__ */ jsx("p", { className: "text-text-secondary", children: feature.description }) })
|
|
78
115
|
] }, i)) })
|
|
79
116
|
] }) });
|
|
80
117
|
}
|
|
81
|
-
|
|
82
|
-
{
|
|
83
|
-
title: "Unified Component Architecture",
|
|
84
|
-
description: "Stop wrestling with fragmented libraries. Seed provides a cohesive set of primitives that work together perfectly out of the box. Themeable, accessible, and composable.",
|
|
85
|
-
icon: /* @__PURE__ */ jsx(LayersIcon, { size: 24 }),
|
|
86
|
-
bullets: ["Type-safe design tokens", "Radix UI primitives", "Automatic dark mode"],
|
|
87
|
-
buttonLabel: "Explore Architecture"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
title: "Secure by Default",
|
|
91
|
-
description: "Enterprise-ready security features including SSO, audit logs, and role-based access control. Compliant with SOC2 and GDPR.",
|
|
92
|
-
icon: /* @__PURE__ */ jsx(ShieldIcon, { size: 24 }),
|
|
93
|
-
bullets: ["End-to-end encryption", "SAML & OIDC support", "99.99% Uptime SLA"],
|
|
94
|
-
buttonLabel: "View Security Docs"
|
|
95
|
-
}
|
|
96
|
-
];
|
|
97
|
-
function FeatureListVariant({
|
|
98
|
-
features = defaultListFeatures,
|
|
99
|
-
className
|
|
100
|
-
} = {}) {
|
|
101
|
-
return /* @__PURE__ */ jsx("section", { className: className ?? "py-24 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-6 lg:px-8 space-y-24", children: features.map((feature, i) => {
|
|
118
|
+
function FeatureListVariant({ features }) {
|
|
119
|
+
return /* @__PURE__ */ jsx("section", { className: "py-24 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-6 lg:px-8 space-y-24", children: features.map((feature, i) => {
|
|
102
120
|
const isReversed = i % 2 !== 0;
|
|
121
|
+
const bullets = feature.bullets ?? [];
|
|
122
|
+
const buttonLabel = feature.badge ?? "Learn more";
|
|
103
123
|
return /* @__PURE__ */ jsxs("div", { className: "grid lg:grid-cols-2 gap-12 items-center", children: [
|
|
104
124
|
isReversed && /* @__PURE__ */ jsxs("div", { className: "order-2 lg:order-1 relative", children: [
|
|
105
125
|
/* @__PURE__ */ jsx("div", { className: "absolute -inset-4 bg-primary/10 blur-3xl rounded-full" }),
|
|
@@ -125,14 +145,14 @@ function FeatureListVariant({
|
|
|
125
145
|
/* @__PURE__ */ jsx("div", { className: cn(
|
|
126
146
|
"h-12 w-12 rounded-xl flex items-center justify-center mb-6",
|
|
127
147
|
isReversed ? "bg-primary/20 text-primary" : "bg-accent/20 text-accent"
|
|
128
|
-
), children: feature.icon }),
|
|
148
|
+
), children: resolveIcon(feature.icon) }),
|
|
129
149
|
/* @__PURE__ */ jsx(Heading, { level: 3, size: "section", className: "text-text-primary mb-4", children: feature.title }),
|
|
130
150
|
/* @__PURE__ */ jsx("p", { className: "text-lg text-text-secondary mb-8 leading-relaxed", children: feature.description }),
|
|
131
|
-
/* @__PURE__ */ jsx("ul", { className: "space-y-4 mb-8", children:
|
|
151
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-4 mb-8", children: bullets.map((item) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-4 text-text-primary", children: [
|
|
132
152
|
/* @__PURE__ */ jsx("div", { className: isReversed ? "h-1.5 w-1.5 rounded-full bg-primary" : "h-1.5 w-1.5 rounded-full bg-accent" }),
|
|
133
153
|
item
|
|
134
154
|
] }, item)) }),
|
|
135
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", children:
|
|
155
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", children: buttonLabel })
|
|
136
156
|
] }),
|
|
137
157
|
!isReversed && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
138
158
|
/* @__PURE__ */ jsx("div", { className: "absolute -inset-4 bg-accent/10 blur-3xl rounded-full" }),
|
|
@@ -153,11 +173,16 @@ function FeatureListVariant({
|
|
|
153
173
|
] }, i);
|
|
154
174
|
}) }) });
|
|
155
175
|
}
|
|
156
|
-
function FeatureBlock({
|
|
176
|
+
function FeatureBlock({ props }) {
|
|
177
|
+
const variant = props.variant ?? "grid";
|
|
178
|
+
const badge = props.badge ?? "Capabilities";
|
|
179
|
+
const title = props.title ?? "Everything you need to build";
|
|
180
|
+
const description = props.description ?? "A complete toolkit for the next generation of intelligent applications.";
|
|
181
|
+
const features = props.features ?? (variant === "list" ? defaultListFeatures : defaultGridFeatures);
|
|
157
182
|
if (variant === "list") {
|
|
158
|
-
return /* @__PURE__ */ jsx(FeatureListVariant, {
|
|
183
|
+
return /* @__PURE__ */ jsx(FeatureListVariant, { features });
|
|
159
184
|
}
|
|
160
|
-
return /* @__PURE__ */ jsx(FeatureGridVariant, {
|
|
185
|
+
return /* @__PURE__ */ jsx(FeatureGridVariant, { features, badge, title, description });
|
|
161
186
|
}
|
|
162
187
|
|
|
163
188
|
export { FeatureBlock };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useStyleMotion, useMotionConfig, m } from './chunk-PD2YEH3H.js';
|
|
2
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function SpringHover({ children, className, hoverScale = 1.03, pressScale = 0.95, disabled = false, ref }) {
|
|
6
|
+
const { spring, style } = useStyleMotion();
|
|
7
|
+
const motionConfig = useMotionConfig();
|
|
8
|
+
if (disabled) {
|
|
9
|
+
return /* @__PURE__ */ jsx("div", { ref, className, children });
|
|
10
|
+
}
|
|
11
|
+
const hoverRotate = style === "bloom" ? 0.5 : 0;
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
m.div,
|
|
14
|
+
{
|
|
15
|
+
ref,
|
|
16
|
+
className: cn("inline-block", className),
|
|
17
|
+
whileHover: {
|
|
18
|
+
scale: hoverScale,
|
|
19
|
+
rotate: hoverRotate,
|
|
20
|
+
transition: { ...spring.bouncy, ...motionConfig }
|
|
21
|
+
},
|
|
22
|
+
whileTap: {
|
|
23
|
+
scale: pressScale,
|
|
24
|
+
rotate: 0,
|
|
25
|
+
transition: { ...spring.snappy, ...motionConfig }
|
|
26
|
+
},
|
|
27
|
+
children
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { SpringHover };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Typography } from './chunk-
|
|
1
|
+
import { Typography } from './chunk-Q7PCHHVJ.js';
|
|
2
2
|
import { Button } from './chunk-7KIDDF3I.js';
|
|
3
3
|
import { useMotionConfig, m, motionSpring } from './chunk-PD2YEH3H.js';
|
|
4
4
|
import { InfoIcon } from './chunk-W3B3UOEG.js';
|
|
5
|
-
import { AlertTriangleIcon } from './chunk-SXHYB7JB.js';
|
|
6
5
|
import { XIcon } from './chunk-UIUMTURU.js';
|
|
6
|
+
import { AlertTriangleIcon } from './chunk-SXHYB7JB.js';
|
|
7
7
|
import { cn } from './chunk-QYZT24TS.js';
|
|
8
8
|
import { useState } from 'react';
|
|
9
9
|
import { AnimatePresence } from 'motion/react';
|
|
@@ -19,18 +19,14 @@ var variantIcons = {
|
|
|
19
19
|
warning: /* @__PURE__ */ jsx(AlertTriangleIcon, { size: 16, className: "shrink-0" }),
|
|
20
20
|
accent: /* @__PURE__ */ jsx(InfoIcon, { size: 16, className: "shrink-0" })
|
|
21
21
|
};
|
|
22
|
-
function BannerBlock({
|
|
23
|
-
children,
|
|
24
|
-
variant = "info",
|
|
25
|
-
dismissible = true,
|
|
26
|
-
onDismiss,
|
|
27
|
-
className
|
|
28
|
-
}) {
|
|
22
|
+
function BannerBlock({ props, emit, children }) {
|
|
29
23
|
const motionConfig = useMotionConfig();
|
|
24
|
+
const variant = props.variant ?? "info";
|
|
25
|
+
const dismissible = props.dismissible ?? true;
|
|
30
26
|
const [visible, setVisible] = useState(true);
|
|
31
27
|
const handleDismiss = () => {
|
|
32
28
|
setVisible(false);
|
|
33
|
-
|
|
29
|
+
emit("dismiss");
|
|
34
30
|
};
|
|
35
31
|
return /* @__PURE__ */ jsx(AnimatePresence, { children: !!visible && /* @__PURE__ */ jsxs(
|
|
36
32
|
m.div,
|
|
@@ -41,12 +37,11 @@ function BannerBlock({
|
|
|
41
37
|
transition: { ...motionSpring.snappy, ...motionConfig },
|
|
42
38
|
className: cn(
|
|
43
39
|
"flex items-center gap-4 rounded-lg border px-4 py-4",
|
|
44
|
-
variantStyles[variant]
|
|
45
|
-
className
|
|
40
|
+
variantStyles[variant]
|
|
46
41
|
),
|
|
47
42
|
children: [
|
|
48
43
|
variantIcons[variant],
|
|
49
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "flex-1 font-medium", children }),
|
|
44
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "flex-1 font-medium", children: children ?? props.message ?? null }),
|
|
50
45
|
!!dismissible && /* @__PURE__ */ jsx(
|
|
51
46
|
Button,
|
|
52
47
|
{
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { m, motionSpring } from './chunk-PD2YEH3H.js';
|
|
2
|
+
import { ArrowRightIcon } from './chunk-T7H53CK2.js';
|
|
3
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
4
|
+
import { useReducedMotion } from 'motion/react';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var AgentChip = ({ agent }) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8
|
+
agent.avatar && /* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: agent.avatar }),
|
|
9
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-text-primary", children: agent.name })
|
|
10
|
+
] });
|
|
11
|
+
function HandoffIndicator({ className, fromAgent, toAgent, reason, ref, ...props }) {
|
|
12
|
+
const prefersReduced = useReducedMotion();
|
|
13
|
+
return /* @__PURE__ */ jsxs(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
ref,
|
|
17
|
+
className: cn(
|
|
18
|
+
"inline-flex flex-col items-center gap-1.5 rounded-lg border border-border glass-panel p-4",
|
|
19
|
+
className
|
|
20
|
+
),
|
|
21
|
+
...props,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
24
|
+
/* @__PURE__ */ jsx(AgentChip, { agent: fromAgent }),
|
|
25
|
+
/* @__PURE__ */ jsx(
|
|
26
|
+
m.div,
|
|
27
|
+
{
|
|
28
|
+
initial: prefersReduced ? void 0 : { x: -6, opacity: 0 },
|
|
29
|
+
animate: prefersReduced ? void 0 : { x: 0, opacity: 1 },
|
|
30
|
+
transition: prefersReduced ? void 0 : motionSpring.snappy,
|
|
31
|
+
children: /* @__PURE__ */ jsx(ArrowRightIcon, { size: 18, className: "text-accent" })
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ jsx(AgentChip, { agent: toAgent })
|
|
35
|
+
] }),
|
|
36
|
+
!!reason && /* @__PURE__ */ jsx("span", { className: "text-xs text-text-tertiary", children: reason })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { HandoffIndicator };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Typography } from './chunk-PC6VMNDY.js';
|
|
1
|
+
import { Typography } from './chunk-Q7PCHHVJ.js';
|
|
3
2
|
import { Textarea } from './chunk-4OBE2FS2.js';
|
|
4
3
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-WH62BE24.js';
|
|
5
4
|
import { Heading } from './chunk-UXX6HHPS.js';
|
|
@@ -9,22 +8,22 @@ import { Card, CardHeader, CardTitle, CardContent } from './chunk-7UY24UWL.js';
|
|
|
9
8
|
import { Button } from './chunk-7KIDDF3I.js';
|
|
10
9
|
import { Badge } from './chunk-S4JAHKOP.js';
|
|
11
10
|
import { cn } from './chunk-QYZT24TS.js';
|
|
12
|
-
import {
|
|
11
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
12
|
|
|
14
13
|
var EMPTY_SECTIONS = [];
|
|
15
14
|
var ALERT_CLASS = "rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive";
|
|
16
|
-
function renderFieldInput(field,
|
|
17
|
-
const disabled = field.disabled || field.readOnly;
|
|
15
|
+
function renderFieldInput(field, emit) {
|
|
16
|
+
const disabled = field.disabled === true || field.readOnly === true;
|
|
18
17
|
if (field.type === "textarea") {
|
|
19
18
|
return /* @__PURE__ */ jsx(
|
|
20
19
|
Textarea,
|
|
21
20
|
{
|
|
22
21
|
id: field.id,
|
|
23
22
|
value: field.value,
|
|
24
|
-
placeholder: field.placeholder,
|
|
23
|
+
placeholder: field.placeholder ?? void 0,
|
|
25
24
|
disabled,
|
|
26
|
-
readOnly: field.readOnly,
|
|
27
|
-
onChange: (
|
|
25
|
+
readOnly: field.readOnly ?? void 0,
|
|
26
|
+
onChange: () => emit("fieldChange")
|
|
28
27
|
}
|
|
29
28
|
);
|
|
30
29
|
}
|
|
@@ -34,7 +33,7 @@ function renderFieldInput(field, onFieldChange) {
|
|
|
34
33
|
{
|
|
35
34
|
value: field.value,
|
|
36
35
|
disabled,
|
|
37
|
-
onValueChange: (
|
|
36
|
+
onValueChange: () => emit("fieldChange"),
|
|
38
37
|
children: [
|
|
39
38
|
/* @__PURE__ */ jsx(SelectTrigger, { id: field.id, "aria-label": field.label, children: /* @__PURE__ */ jsx(SelectValue, { placeholder: field.placeholder ?? "Select value" }) }),
|
|
40
39
|
/* @__PURE__ */ jsx(SelectContent, { children: (field.options ?? []).map((option) => /* @__PURE__ */ jsx(SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
@@ -48,32 +47,32 @@ function renderFieldInput(field, onFieldChange) {
|
|
|
48
47
|
id: field.id,
|
|
49
48
|
type: field.type ?? "text",
|
|
50
49
|
value: field.value,
|
|
51
|
-
placeholder: field.placeholder,
|
|
50
|
+
placeholder: field.placeholder ?? void 0,
|
|
52
51
|
disabled,
|
|
53
|
-
readOnly: field.readOnly,
|
|
54
|
-
onChange: (
|
|
52
|
+
readOnly: field.readOnly ?? void 0,
|
|
53
|
+
onChange: () => emit("fieldChange")
|
|
55
54
|
}
|
|
56
55
|
);
|
|
57
56
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
description = "Create and edit entities through a stable form contract with explicit save and error states.",
|
|
62
|
-
state = "pristine",
|
|
63
|
-
sections = EMPTY_SECTIONS,
|
|
64
|
-
onFieldChange,
|
|
65
|
-
actions,
|
|
66
|
-
validationMessage,
|
|
67
|
-
fatalErrorMessage,
|
|
68
|
-
savedMessage = "Changes saved.",
|
|
69
|
-
className
|
|
57
|
+
function FormFieldBlock({
|
|
58
|
+
props,
|
|
59
|
+
emit
|
|
70
60
|
}) {
|
|
61
|
+
const title = props.title;
|
|
62
|
+
const description = props.description;
|
|
63
|
+
const state = props.state ?? "pristine";
|
|
64
|
+
const sections = props.sections ?? EMPTY_SECTIONS;
|
|
65
|
+
const validationMessage = props.validationMessage;
|
|
66
|
+
const fatalErrorMessage = props.fatalErrorMessage;
|
|
67
|
+
const savedMessage = props.savedMessage ?? "Changes saved.";
|
|
68
|
+
const actionLabels = props.actionLabels;
|
|
69
|
+
const className = props.className;
|
|
71
70
|
const isBusy = state === "submitting" || state === "validating";
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */ jsxs("header", { className: "space-y-
|
|
74
|
-
/* @__PURE__ */ jsx(Heading, { level: 3, children: title }),
|
|
75
|
-
/* @__PURE__ */ jsx(Typography, { variant: "muted", children: description })
|
|
76
|
-
] }),
|
|
71
|
+
return /* @__PURE__ */ jsxs("section", { className: cn("space-y-6", className), children: [
|
|
72
|
+
title || description ? /* @__PURE__ */ jsxs("header", { className: "space-y-1", children: [
|
|
73
|
+
title ? /* @__PURE__ */ jsx(Heading, { level: 3, children: title }) : null,
|
|
74
|
+
description ? /* @__PURE__ */ jsx(Typography, { variant: "muted", children: description }) : null
|
|
75
|
+
] }) : null,
|
|
77
76
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
78
77
|
state === "dirty" ? /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Unsaved changes" }) : null,
|
|
79
78
|
state === "validating" ? /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Validating" }) : null,
|
|
@@ -87,61 +86,65 @@ function CrudFormPageKit({
|
|
|
87
86
|
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
88
87
|
/* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
|
|
89
88
|
/* @__PURE__ */ jsx("span", { children: section.title }),
|
|
90
|
-
section.optional ? /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Optional" }) : null
|
|
89
|
+
section.optional === true ? /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Optional" }) : null
|
|
91
90
|
] }),
|
|
92
|
-
section.description ? /* @__PURE__ */ jsx(
|
|
91
|
+
section.description ? /* @__PURE__ */ jsx(
|
|
92
|
+
Typography,
|
|
93
|
+
{
|
|
94
|
+
variant: "small",
|
|
95
|
+
className: "text-text-secondary",
|
|
96
|
+
children: section.description
|
|
97
|
+
}
|
|
98
|
+
) : null
|
|
93
99
|
] }),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
field.errorMessage ? /* @__PURE__ */ jsx(FieldError, { children: field.errorMessage }) : null
|
|
104
|
-
] }, field.id)) }) : null
|
|
105
|
-
] })
|
|
100
|
+
/* @__PURE__ */ jsx(CardContent, { className: "space-y-4", children: section.fields && section.fields.length > 0 ? /* @__PURE__ */ jsx(FieldSet, { children: section.fields.map((field) => /* @__PURE__ */ jsxs(Field, { children: [
|
|
101
|
+
/* @__PURE__ */ jsxs(FieldLabel, { htmlFor: field.id, children: [
|
|
102
|
+
field.label,
|
|
103
|
+
field.required === true ? /* @__PURE__ */ jsx("span", { className: "ml-1 text-destructive", children: "*" }) : null
|
|
104
|
+
] }),
|
|
105
|
+
renderFieldInput(field, emit),
|
|
106
|
+
field.description ? /* @__PURE__ */ jsx(FieldDescription, { children: field.description }) : null,
|
|
107
|
+
field.errorMessage ? /* @__PURE__ */ jsx(FieldError, { children: field.errorMessage }) : null
|
|
108
|
+
] }, field.id)) }) : null })
|
|
106
109
|
] }, section.id)) }),
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
actionLabels ? /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-end gap-2", children: [
|
|
111
|
+
actionLabels.secondary ? /* @__PURE__ */ jsx(
|
|
109
112
|
Button,
|
|
110
113
|
{
|
|
111
114
|
variant: "ghost",
|
|
112
|
-
onClick:
|
|
113
|
-
disabled:
|
|
114
|
-
children:
|
|
115
|
+
onClick: () => emit("secondaryAction"),
|
|
116
|
+
disabled: isBusy,
|
|
117
|
+
children: actionLabels.secondary
|
|
115
118
|
}
|
|
116
119
|
) : null,
|
|
117
|
-
|
|
120
|
+
actionLabels.tertiary ? /* @__PURE__ */ jsx(
|
|
118
121
|
Button,
|
|
119
122
|
{
|
|
120
123
|
variant: "outline",
|
|
121
|
-
onClick:
|
|
122
|
-
disabled:
|
|
123
|
-
children:
|
|
124
|
+
onClick: () => emit("tertiaryAction"),
|
|
125
|
+
disabled: isBusy,
|
|
126
|
+
children: actionLabels.tertiary
|
|
124
127
|
}
|
|
125
128
|
) : null,
|
|
126
|
-
|
|
129
|
+
actionLabels.destructive ? /* @__PURE__ */ jsx(
|
|
127
130
|
Button,
|
|
128
131
|
{
|
|
129
132
|
variant: "destructive",
|
|
130
|
-
onClick:
|
|
131
|
-
disabled:
|
|
132
|
-
children:
|
|
133
|
+
onClick: () => emit("destructiveAction"),
|
|
134
|
+
disabled: isBusy,
|
|
135
|
+
children: actionLabels.destructive
|
|
133
136
|
}
|
|
134
137
|
) : null,
|
|
135
|
-
|
|
138
|
+
actionLabels.primary ? /* @__PURE__ */ jsx(
|
|
136
139
|
Button,
|
|
137
140
|
{
|
|
138
|
-
onClick:
|
|
139
|
-
disabled:
|
|
140
|
-
children:
|
|
141
|
+
onClick: () => emit("primaryAction"),
|
|
142
|
+
disabled: isBusy,
|
|
143
|
+
children: actionLabels.primary
|
|
141
144
|
}
|
|
142
145
|
) : null
|
|
143
146
|
] }) : null
|
|
144
|
-
] })
|
|
147
|
+
] });
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
export {
|
|
150
|
+
export { FormFieldBlock };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { LanguageSwitcher } from './chunk-SEMWC3IT.js';
|
|
2
|
+
import { Dialog, DialogContent, DialogTitle, DialogDescription } from './chunk-KHLMOBAU.js';
|
|
3
|
+
import { useMotionConfig, m, motionSpring } from './chunk-PD2YEH3H.js';
|
|
4
|
+
import { UsersIcon } from './chunk-WUO7OONN.js';
|
|
5
|
+
import { SettingsIcon } from './chunk-OITJWGFV.js';
|
|
6
|
+
import { PaletteIcon } from './chunk-M7YSMMAC.js';
|
|
7
|
+
import { LockIcon } from './chunk-RYOTIXZO.js';
|
|
8
|
+
import { GlobeIcon } from './chunk-JL4MVVFH.js';
|
|
9
|
+
import { CreditCardIcon } from './chunk-JHQTKMKG.js';
|
|
10
|
+
import { BellIcon } from './chunk-JBK2LA6U.js';
|
|
11
|
+
import { UserIcon } from './chunk-UHXGBV5N.js';
|
|
12
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { AnimatePresence } from 'motion/react';
|
|
15
|
+
import { useTranslations } from 'next-intl';
|
|
16
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
|
+
|
|
18
|
+
var defaultSettingsTabs = [
|
|
19
|
+
{ id: "general", icon: /* @__PURE__ */ jsx(SettingsIcon, { size: 16 }) },
|
|
20
|
+
{ id: "profile", icon: /* @__PURE__ */ jsx(UserIcon, { size: 16 }) },
|
|
21
|
+
{ id: "team", icon: /* @__PURE__ */ jsx(UsersIcon, { size: 16 }) },
|
|
22
|
+
{ id: "notifications", icon: /* @__PURE__ */ jsx(BellIcon, { size: 16 }) },
|
|
23
|
+
{ id: "security", icon: /* @__PURE__ */ jsx(LockIcon, { size: 16 }) },
|
|
24
|
+
{ id: "billing", icon: /* @__PURE__ */ jsx(CreditCardIcon, { size: 16 }) },
|
|
25
|
+
{ id: "appearance", icon: /* @__PURE__ */ jsx(PaletteIcon, { size: 16 }) },
|
|
26
|
+
{ id: "language", icon: /* @__PURE__ */ jsx(GlobeIcon, { size: 16 }) }
|
|
27
|
+
];
|
|
28
|
+
function DefaultTabContent({ tab }) {
|
|
29
|
+
const t = useTranslations("pages.settings");
|
|
30
|
+
if (tab === "language") {
|
|
31
|
+
return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
32
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
33
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-medium text-text-primary", children: t("language") }),
|
|
34
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-text-secondary mt-1", children: t("description") })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ jsx(LanguageSwitcher, { className: "w-48" })
|
|
37
|
+
] });
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ jsx("div", { className: "flex h-[400px] items-center justify-center rounded-lg border border-dashed border-border", children: /* @__PURE__ */ jsxs("div", { className: "text-center space-y-2", children: [
|
|
40
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-medium text-text-primary", children: t(tab) }),
|
|
41
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-text-secondary", children: t("underConstruction") })
|
|
42
|
+
] }) });
|
|
43
|
+
}
|
|
44
|
+
function SettingsModal({
|
|
45
|
+
open = false,
|
|
46
|
+
onOpenChange,
|
|
47
|
+
defaultTab = "profile",
|
|
48
|
+
tabs = defaultSettingsTabs,
|
|
49
|
+
renderContent,
|
|
50
|
+
ContentComponent
|
|
51
|
+
}) {
|
|
52
|
+
const t = useTranslations("pages.settings");
|
|
53
|
+
const motionConfig = useMotionConfig();
|
|
54
|
+
const [activeTab, setActiveTab] = React.useState(defaultTab);
|
|
55
|
+
const [prevDefaultTab, setPrevDefaultTab] = React.useState(defaultTab);
|
|
56
|
+
if (prevDefaultTab !== defaultTab) {
|
|
57
|
+
setPrevDefaultTab(defaultTab);
|
|
58
|
+
setActiveTab(defaultTab);
|
|
59
|
+
}
|
|
60
|
+
let content;
|
|
61
|
+
if (renderContent) {
|
|
62
|
+
content = renderContent(activeTab);
|
|
63
|
+
} else if (ContentComponent) {
|
|
64
|
+
content = /* @__PURE__ */ jsx(ContentComponent, { tab: activeTab });
|
|
65
|
+
} else {
|
|
66
|
+
content = /* @__PURE__ */ jsx(DefaultTabContent, { tab: activeTab });
|
|
67
|
+
}
|
|
68
|
+
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-4xl p-0 gap-0 h-[600px] max-h-[85dvh] overflow-hidden", children: [
|
|
69
|
+
/* @__PURE__ */ jsx(DialogTitle, { className: "sr-only", children: t("title") }),
|
|
70
|
+
/* @__PURE__ */ jsx(DialogDescription, { className: "sr-only", children: t("description") }),
|
|
71
|
+
/* @__PURE__ */ jsxs("div", { className: "flex h-full", children: [
|
|
72
|
+
/* @__PURE__ */ jsx(
|
|
73
|
+
"nav",
|
|
74
|
+
{
|
|
75
|
+
"aria-label": t("settingsNavigation"),
|
|
76
|
+
className: "w-52 shrink-0 border-r border-border/50 p-4 flex flex-col items-center justify-center gap-1",
|
|
77
|
+
children: tabs.map((tab) => /* @__PURE__ */ jsxs(
|
|
78
|
+
"button",
|
|
79
|
+
{
|
|
80
|
+
type: "button",
|
|
81
|
+
onClick: () => setActiveTab(tab.id),
|
|
82
|
+
className: cn(
|
|
83
|
+
"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg text-sm font-medium transition-colors",
|
|
84
|
+
activeTab === tab.id ? "bg-primary/10 text-primary" : "text-text-secondary hover:text-text-primary hover:bg-surface-hover"
|
|
85
|
+
),
|
|
86
|
+
children: [
|
|
87
|
+
tab.icon,
|
|
88
|
+
/* @__PURE__ */ jsx("span", { children: tab.label ?? t(tab.id) })
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
tab.id
|
|
92
|
+
))
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto p-6", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(
|
|
96
|
+
m.div,
|
|
97
|
+
{
|
|
98
|
+
initial: { opacity: 0, y: 8 },
|
|
99
|
+
animate: { opacity: 1, y: 0 },
|
|
100
|
+
exit: { opacity: 0, y: -8 },
|
|
101
|
+
transition: { ...motionSpring.snappy, ...motionConfig },
|
|
102
|
+
children: content
|
|
103
|
+
},
|
|
104
|
+
activeTab
|
|
105
|
+
) }) })
|
|
106
|
+
] })
|
|
107
|
+
] }) });
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { SettingsModal, defaultSettingsTabs };
|