@vadimcomanescu/nadicode-design-system 4.0.11 → 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/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 +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 +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/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/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-326EZJLO.js → chunk-5MLOZVOQ.js} +31 -24
- 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-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-UGIHLU2V.js → chunk-7OOO22KB.js} +10 -15
- 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-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-BG26NCUY.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-JPL22322.js → chunk-BVXSAVKY.js} +6 -11
- 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-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-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-2BXGWBD4.js → chunk-HX3VXWNJ.js} +20 -13
- package/dist/{chunk-NEECQ3IH.js → chunk-HZTWLK7C.js} +16 -18
- package/dist/{chunk-B6HXF3HP.js → chunk-ID3N3MHQ.js} +13 -21
- package/dist/{chunk-I2ZI5RUM.js → chunk-IHGZJS7N.js} +11 -11
- package/dist/{chunk-F2TNOCXQ.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-4R7DT2NJ.js → chunk-JPA45CDE.js} +67 -42
- 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-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-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-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-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-YZK222HJ.js → chunk-NA6ZPKIK.js} +19 -7
- package/dist/chunk-NF2Y5ERJ.js +186 -0
- package/dist/{chunk-3M3QV2EN.js → chunk-NVBF4OWT.js} +6 -9
- 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-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-OTZIMMPV.js → chunk-PQBVNNEG.js} +18 -18
- 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-QCL76CM6.js +92 -0
- package/dist/chunk-QFXWI2WX.js +40 -0
- package/dist/{chunk-JRLU2VSB.js → chunk-QLPU2IEO.js} +25 -39
- package/dist/{chunk-K4ZPHSWL.js → chunk-R4DPHCHJ.js} +22 -15
- 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-Q3CKH7RH.js → chunk-TNDMBLYP.js} +7 -18
- 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-N3IZNRY2.js → chunk-UIYX2EMT.js} +11 -19
- 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-OTFIAT6T.js → chunk-YB3J4ZRZ.js} +15 -6
- package/dist/chunk-YCS4MMC3.js +133 -0
- package/dist/chunk-YGDO5KDY.js +33 -0
- package/dist/{chunk-6Y4UFG7C.js → chunk-YNBDA24W.js} +6 -13
- 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-DITD5GBG.js → chunk-ZNF6S3DQ.js} +20 -38
- package/dist/chunk-ZSU5ZI4O.js +32 -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 +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 +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/VerifyEmailPageKit.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/SuccessPageKit.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 +4 -2
- 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 +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 +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 +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/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 +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 +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 -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/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/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-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
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { SidebarProvider, Sidebar, SidebarContent, SidebarGroup, SidebarGroupLabel, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarMenuAction } from './chunk-
|
|
2
|
-
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-
|
|
1
|
+
import { SidebarProvider, Sidebar, SidebarContent, SidebarGroup, SidebarGroupLabel, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarMenuAction } from './chunk-4DWRAIM2.js';
|
|
2
|
+
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-ETS5O4ZQ.js';
|
|
3
3
|
import { Empty, EmptyDescription } from './chunk-4TF4QFIM.js';
|
|
4
|
-
import { UsersIcon } from './chunk-WUO7OONN.js';
|
|
5
4
|
import { Trash2Icon } from './chunk-S4GKGKON.js';
|
|
5
|
+
import { UsersIcon } from './chunk-WUO7OONN.js';
|
|
6
6
|
import { StarIcon } from './chunk-ELKIUARM.js';
|
|
7
7
|
import { SettingsIcon } from './chunk-OITJWGFV.js';
|
|
8
8
|
import { LayoutDashboardIcon } from './chunk-O74AEVHW.js';
|
|
9
|
-
import { HomeIcon } from './chunk-IQEBXXB5.js';
|
|
10
9
|
import { FolderIcon } from './chunk-I3TH7PIB.js';
|
|
10
|
+
import { HomeIcon } from './chunk-IQEBXXB5.js';
|
|
11
11
|
import { EllipsisIcon } from './chunk-5ESF6N36.js';
|
|
12
12
|
import { useTranslations } from 'next-intl';
|
|
13
13
|
import Link from 'next/link';
|
|
14
14
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
var defaultNavItems = [
|
|
17
|
-
{ name: "Home", icon:
|
|
18
|
-
{ name: "Dashboard", icon:
|
|
19
|
-
{ name: "Team", icon:
|
|
20
|
-
{ name: "Settings", icon:
|
|
17
|
+
{ name: "Home", icon: "HomeIcon", isActive: true },
|
|
18
|
+
{ name: "Dashboard", icon: "LayoutDashboardIcon", isActive: null },
|
|
19
|
+
{ name: "Team", icon: "UsersIcon", isActive: null },
|
|
20
|
+
{ name: "Settings", icon: "SettingsIcon", isActive: null }
|
|
21
21
|
];
|
|
22
22
|
var defaultProjects = [
|
|
23
23
|
{ name: "Design Engineering", url: "#" },
|
|
24
24
|
{ name: "Sales & Marketing", url: "#" },
|
|
25
25
|
{ name: "Travel", url: "#" }
|
|
26
26
|
];
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})
|
|
27
|
+
var NAV_ICONS = {
|
|
28
|
+
HomeIcon: /* @__PURE__ */ jsx(HomeIcon, { size: 16 }),
|
|
29
|
+
LayoutDashboardIcon: /* @__PURE__ */ jsx(LayoutDashboardIcon, { size: 16 }),
|
|
30
|
+
UsersIcon: /* @__PURE__ */ jsx(UsersIcon, { size: 16 }),
|
|
31
|
+
SettingsIcon: /* @__PURE__ */ jsx(SettingsIcon, { size: 16 })
|
|
32
|
+
};
|
|
33
|
+
function DirectoryBlock({ props }) {
|
|
34
|
+
const navItems = props.navItems ?? defaultNavItems;
|
|
35
|
+
const projects = props.projects ?? defaultProjects;
|
|
32
36
|
const t = useTranslations("blocks.directoryBlock");
|
|
33
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", { className: "h-[500px] border border-border rounded-lg overflow-hidden flex bg-surface text-text-primary", children: [
|
|
34
38
|
/* @__PURE__ */ jsx(SidebarProvider, { className: "h-full", children: /* @__PURE__ */ jsx(Sidebar, { collapsible: "none", className: "h-full border-r border-border", children: /* @__PURE__ */ jsxs(SidebarContent, { children: [
|
|
35
39
|
/* @__PURE__ */ jsxs(SidebarGroup, { children: [
|
|
36
40
|
/* @__PURE__ */ jsx(SidebarGroupLabel, { children: t("platform") }),
|
|
37
|
-
/* @__PURE__ */ jsx(SidebarGroupContent, { children: /* @__PURE__ */ jsx(SidebarMenu, { children: navItems.map((item) => /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxs(SidebarMenuButton, { isActive: item.isActive, children: [
|
|
38
|
-
item.icon,
|
|
41
|
+
/* @__PURE__ */ jsx(SidebarGroupContent, { children: /* @__PURE__ */ jsx(SidebarMenu, { children: navItems.map((item) => /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxs(SidebarMenuButton, { isActive: item.isActive ?? false, children: [
|
|
42
|
+
NAV_ICONS[item.icon] ?? /* @__PURE__ */ jsx("span", { children: item.icon }),
|
|
39
43
|
/* @__PURE__ */ jsx("span", { children: item.name })
|
|
40
44
|
] }) }, item.name)) }) })
|
|
41
45
|
] }),
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { useMotionConfig, m, motionSpring } from './chunk-PD2YEH3H.js';
|
|
2
|
+
import { ChevronRightIcon } from './chunk-G24VV5NO.js';
|
|
3
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
6
|
+
import { AnimatePresence } from 'motion/react';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function getVisibleTreeItems(container) {
|
|
10
|
+
return Array.from(container.querySelectorAll('[role="treeitem"]'));
|
|
11
|
+
}
|
|
12
|
+
function TreeView({ data, onSelect, className, ref, ...props }) {
|
|
13
|
+
const [selectedId, setSelectedId] = React.useState(null);
|
|
14
|
+
const treeRef = React.useRef(null);
|
|
15
|
+
const handleSelect = React.useCallback(
|
|
16
|
+
(node) => {
|
|
17
|
+
setSelectedId(node.id);
|
|
18
|
+
onSelect?.(node);
|
|
19
|
+
},
|
|
20
|
+
[onSelect]
|
|
21
|
+
);
|
|
22
|
+
const handleTreeKeyDown = React.useCallback(
|
|
23
|
+
(e) => {
|
|
24
|
+
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
25
|
+
const container = treeRef.current;
|
|
26
|
+
if (!container) return;
|
|
27
|
+
const items = getVisibleTreeItems(container);
|
|
28
|
+
const activeEl = document.activeElement;
|
|
29
|
+
const idx = items.indexOf(activeEl);
|
|
30
|
+
if (idx === -1) return;
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
const next = e.key === "ArrowDown" ? idx + 1 : idx - 1;
|
|
33
|
+
if (next >= 0 && next < items.length) {
|
|
34
|
+
items[next].focus();
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
[]
|
|
38
|
+
);
|
|
39
|
+
const setRefs = React.useCallback(
|
|
40
|
+
(el) => {
|
|
41
|
+
treeRef.current = el;
|
|
42
|
+
if (typeof ref === "function") ref(el);
|
|
43
|
+
else if (ref) ref.current = el;
|
|
44
|
+
},
|
|
45
|
+
[ref]
|
|
46
|
+
);
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref: setRefs,
|
|
51
|
+
role: "tree",
|
|
52
|
+
className: cn("text-sm", className),
|
|
53
|
+
onKeyDown: handleTreeKeyDown,
|
|
54
|
+
...props,
|
|
55
|
+
children: data.map((node, index) => /* @__PURE__ */ jsx(
|
|
56
|
+
TreeItem,
|
|
57
|
+
{
|
|
58
|
+
node,
|
|
59
|
+
depth: 0,
|
|
60
|
+
selectedId,
|
|
61
|
+
onSelect: handleSelect,
|
|
62
|
+
siblingCount: data.length,
|
|
63
|
+
positionInSet: index + 1
|
|
64
|
+
},
|
|
65
|
+
node.id
|
|
66
|
+
))
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function TreeItem({ node, depth, selectedId, onSelect, siblingCount, positionInSet }) {
|
|
71
|
+
const [open, setOpen] = React.useState(false);
|
|
72
|
+
const motionConfig = useMotionConfig();
|
|
73
|
+
const hasChildren = node.children && node.children.length > 0;
|
|
74
|
+
const isSelected = selectedId === node.id;
|
|
75
|
+
const handleKeyDown = React.useCallback(
|
|
76
|
+
(e) => {
|
|
77
|
+
switch (e.key) {
|
|
78
|
+
case "Enter":
|
|
79
|
+
case " ":
|
|
80
|
+
e.preventDefault();
|
|
81
|
+
if (hasChildren) {
|
|
82
|
+
setOpen((prev) => !prev);
|
|
83
|
+
}
|
|
84
|
+
onSelect(node);
|
|
85
|
+
break;
|
|
86
|
+
case "ArrowRight":
|
|
87
|
+
if (hasChildren && !open) {
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
setOpen(true);
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case "ArrowLeft":
|
|
93
|
+
if (hasChildren && open) {
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
setOpen(false);
|
|
96
|
+
}
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
[hasChildren, open, node, onSelect]
|
|
101
|
+
);
|
|
102
|
+
if (!hasChildren) {
|
|
103
|
+
return /* @__PURE__ */ jsxs(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
role: "treeitem",
|
|
107
|
+
tabIndex: 0,
|
|
108
|
+
"aria-selected": isSelected,
|
|
109
|
+
"aria-level": depth + 1,
|
|
110
|
+
"aria-setsize": siblingCount,
|
|
111
|
+
"aria-posinset": positionInSet,
|
|
112
|
+
className: cn(
|
|
113
|
+
"flex items-center gap-2 rounded-md px-2 py-1.5 cursor-pointer transition-colors duration-fast ease-out-cubic hover:bg-surface-hover focus:outline-none focus:ring-1 focus:ring-accent",
|
|
114
|
+
isSelected && "bg-accent/10 text-accent"
|
|
115
|
+
),
|
|
116
|
+
style: { paddingLeft: `${depth * 16 + 8}px` },
|
|
117
|
+
onClick: () => onSelect(node),
|
|
118
|
+
onKeyDown: handleKeyDown,
|
|
119
|
+
children: [
|
|
120
|
+
node.icon && /* @__PURE__ */ jsx("span", { className: "shrink-0", children: node.icon }),
|
|
121
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: node.label })
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
return /* @__PURE__ */ jsxs(CollapsiblePrimitive.Root, { open, onOpenChange: setOpen, children: [
|
|
127
|
+
/* @__PURE__ */ jsx(CollapsiblePrimitive.CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
128
|
+
"div",
|
|
129
|
+
{
|
|
130
|
+
role: "treeitem",
|
|
131
|
+
tabIndex: 0,
|
|
132
|
+
"aria-expanded": open,
|
|
133
|
+
"aria-selected": isSelected,
|
|
134
|
+
"aria-level": depth + 1,
|
|
135
|
+
"aria-setsize": siblingCount,
|
|
136
|
+
"aria-posinset": positionInSet,
|
|
137
|
+
className: cn(
|
|
138
|
+
"flex items-center gap-2 rounded-md px-2 py-1.5 cursor-pointer transition-colors duration-fast ease-out-cubic hover:bg-surface-hover focus:outline-none focus:ring-1 focus:ring-accent",
|
|
139
|
+
isSelected && "bg-accent/10 text-accent"
|
|
140
|
+
),
|
|
141
|
+
style: { paddingLeft: `${depth * 16 + 8}px` },
|
|
142
|
+
onClick: () => onSelect(node),
|
|
143
|
+
onKeyDown: handleKeyDown,
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ jsx(
|
|
146
|
+
m.span,
|
|
147
|
+
{
|
|
148
|
+
className: "shrink-0",
|
|
149
|
+
animate: { rotate: open ? 90 : 0 },
|
|
150
|
+
transition: { ...motionSpring.snappy, ...motionConfig },
|
|
151
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, { size: 16, className: "text-text-tertiary" })
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
node.icon && /* @__PURE__ */ jsx("span", { className: "shrink-0", children: node.icon }),
|
|
155
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: node.label })
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
) }),
|
|
159
|
+
/* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: !!open && /* @__PURE__ */ jsx(CollapsiblePrimitive.CollapsibleContent, { forceMount: true, asChild: true, children: /* @__PURE__ */ jsx(
|
|
160
|
+
m.div,
|
|
161
|
+
{
|
|
162
|
+
role: "group",
|
|
163
|
+
initial: { height: 0, opacity: 0 },
|
|
164
|
+
animate: { height: "auto", opacity: 1 },
|
|
165
|
+
exit: { height: 0, opacity: 0 },
|
|
166
|
+
transition: { ...motionSpring.snappy, ...motionConfig },
|
|
167
|
+
style: { overflow: "hidden" },
|
|
168
|
+
children: node.children?.map((child, index) => /* @__PURE__ */ jsx(
|
|
169
|
+
TreeItem,
|
|
170
|
+
{
|
|
171
|
+
node: child,
|
|
172
|
+
depth: depth + 1,
|
|
173
|
+
selectedId,
|
|
174
|
+
onSelect,
|
|
175
|
+
siblingCount: node.children.length,
|
|
176
|
+
positionInSet: index + 1
|
|
177
|
+
},
|
|
178
|
+
child.id
|
|
179
|
+
))
|
|
180
|
+
}
|
|
181
|
+
) }) })
|
|
182
|
+
] });
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export { TreeView };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from './chunk-7UY24UWL.js';
|
|
2
|
-
import { Alert, AlertDescription } from './chunk-6CLSVCWP.js';
|
|
3
2
|
import { Button } from './chunk-7KIDDF3I.js';
|
|
4
3
|
import { useMotionConfig, m, scaleIn, motionSpring } from './chunk-PD2YEH3H.js';
|
|
5
4
|
import { LockIcon } from './chunk-RYOTIXZO.js';
|
|
5
|
+
import { Alert, AlertDescription } from './chunk-6CLSVCWP.js';
|
|
6
6
|
import { cn } from './chunk-QYZT24TS.js';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
8
|
|
|
@@ -11,17 +11,12 @@ var reasonMessages = {
|
|
|
11
11
|
suspicious_activity: () => "We detected unusual activity on your account.",
|
|
12
12
|
admin: () => "Your account has been locked by an administrator."
|
|
13
13
|
};
|
|
14
|
-
function AccountLockedBlock({
|
|
15
|
-
className,
|
|
16
|
-
reason = "too_many_attempts",
|
|
17
|
-
unlockMinutes,
|
|
18
|
-
onContactSupport,
|
|
19
|
-
onBackToLogin,
|
|
20
|
-
title = "Account locked",
|
|
21
|
-
description = "Your account has been temporarily locked for security"
|
|
22
|
-
}) {
|
|
14
|
+
function AccountLockedBlock({ props, emit }) {
|
|
23
15
|
const motionConfig = useMotionConfig();
|
|
24
|
-
|
|
16
|
+
const reason = props.reason ?? "too_many_attempts";
|
|
17
|
+
const title = props.title ?? "Account locked";
|
|
18
|
+
const description = props.description ?? "Your account has been temporarily locked for security";
|
|
19
|
+
return /* @__PURE__ */ jsx(m.div, { ...scaleIn, className: cn("w-full max-w-md mx-auto"), children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
25
20
|
/* @__PURE__ */ jsxs(CardHeader, { className: "text-center", children: [
|
|
26
21
|
/* @__PURE__ */ jsx(
|
|
27
22
|
m.div,
|
|
@@ -37,16 +32,16 @@ function AccountLockedBlock({
|
|
|
37
32
|
/* @__PURE__ */ jsx(CardDescription, { children: description })
|
|
38
33
|
] }),
|
|
39
34
|
/* @__PURE__ */ jsxs(CardContent, { className: "grid gap-4", children: [
|
|
40
|
-
/* @__PURE__ */ jsx(Alert, { variant: "warning", children: /* @__PURE__ */ jsx(AlertDescription, { children: reasonMessages[reason](unlockMinutes) }) }),
|
|
41
|
-
reason === "too_many_attempts" && unlockMinutes && /* @__PURE__ */ jsx("p", { className: "text-center text-sm text-text-tertiary", children: "Your account will be automatically unlocked after the waiting period." }),
|
|
35
|
+
/* @__PURE__ */ jsx(Alert, { variant: "warning", children: /* @__PURE__ */ jsx(AlertDescription, { children: reasonMessages[reason](props.unlockMinutes) }) }),
|
|
36
|
+
reason === "too_many_attempts" && props.unlockMinutes && /* @__PURE__ */ jsx("p", { className: "text-center text-sm text-text-tertiary", children: "Your account will be automatically unlocked after the waiting period." }),
|
|
42
37
|
(reason === "suspicious_activity" || reason === "admin") && /* @__PURE__ */ jsx("p", { className: "text-center text-sm text-text-tertiary", children: "Please contact support to regain access to your account." }),
|
|
43
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full", onClick:
|
|
38
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full", onClick: () => emit("contactSupport"), children: "Contact support" })
|
|
44
39
|
] }),
|
|
45
40
|
/* @__PURE__ */ jsx(CardFooter, { className: "justify-center", children: /* @__PURE__ */ jsx(
|
|
46
41
|
"button",
|
|
47
42
|
{
|
|
48
43
|
type: "button",
|
|
49
|
-
onClick:
|
|
44
|
+
onClick: () => emit("backToLogin"),
|
|
50
45
|
className: "text-sm text-text-tertiary hover:text-text-primary transition-colors",
|
|
51
46
|
children: "Back to login"
|
|
52
47
|
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Badge } from './chunk-S4JAHKOP.js';
|
|
2
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var sourceCitationVariants = cva(
|
|
8
|
+
"",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
inline: "inline-flex items-center gap-1.5",
|
|
13
|
+
default: "space-y-2"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
size: "default"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
function scoreVariant(score) {
|
|
22
|
+
if (score > 0.8) return "accent";
|
|
23
|
+
if (score > 0.5) return "secondary";
|
|
24
|
+
return "outline";
|
|
25
|
+
}
|
|
26
|
+
function SourceCitation({ className, size, sources, ref, ...props }) {
|
|
27
|
+
const [expandedId, setExpandedId] = React.useState(null);
|
|
28
|
+
const sourcePanelBaseId = React.useId();
|
|
29
|
+
if (size === "inline") {
|
|
30
|
+
return /* @__PURE__ */ jsxs(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
ref,
|
|
34
|
+
className: cn(sourceCitationVariants({ size }), className),
|
|
35
|
+
...props,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs text-text-tertiary", children: [
|
|
38
|
+
sources.length,
|
|
39
|
+
" source",
|
|
40
|
+
sources.length !== 1 ? "s" : ""
|
|
41
|
+
] }),
|
|
42
|
+
sources.slice(0, 3).map((s) => /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-[10px] px-1.5 py-0", children: s.title }, s.id)),
|
|
43
|
+
sources.length > 3 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-text-tertiary", children: [
|
|
44
|
+
"+",
|
|
45
|
+
sources.length - 3
|
|
46
|
+
] })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
return /* @__PURE__ */ jsx(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
ref,
|
|
55
|
+
className: cn(sourceCitationVariants({ size }), className),
|
|
56
|
+
...props,
|
|
57
|
+
children: sources.map((source, index) => {
|
|
58
|
+
const isExpanded = expandedId === source.id;
|
|
59
|
+
const snippetId = `${sourcePanelBaseId}-snippet-${index}`;
|
|
60
|
+
return /* @__PURE__ */ jsxs(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
className: "glass-panel rounded-lg p-4 space-y-1.5",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
66
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 min-w-0", children: source.url ? /* @__PURE__ */ jsx(
|
|
67
|
+
"a",
|
|
68
|
+
{
|
|
69
|
+
href: source.url,
|
|
70
|
+
target: "_blank",
|
|
71
|
+
rel: "noopener noreferrer",
|
|
72
|
+
className: "text-sm font-medium text-accent hover:underline truncate",
|
|
73
|
+
children: source.title
|
|
74
|
+
}
|
|
75
|
+
) : /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-text-primary truncate", children: source.title }) }),
|
|
76
|
+
source.score != null && /* @__PURE__ */ jsx(
|
|
77
|
+
Badge,
|
|
78
|
+
{
|
|
79
|
+
variant: scoreVariant(source.score),
|
|
80
|
+
className: "text-[10px] px-1.5 py-0 shrink-0",
|
|
81
|
+
children: source.score.toFixed(2)
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
] }),
|
|
85
|
+
source.snippet && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
86
|
+
/* @__PURE__ */ jsx(
|
|
87
|
+
"button",
|
|
88
|
+
{
|
|
89
|
+
type: "button",
|
|
90
|
+
onClick: () => setExpandedId(isExpanded ? null : source.id),
|
|
91
|
+
"aria-expanded": isExpanded,
|
|
92
|
+
"aria-controls": snippetId,
|
|
93
|
+
className: "text-xs text-text-tertiary hover:text-text-secondary transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent rounded-sm",
|
|
94
|
+
children: isExpanded ? "Hide snippet" : "Show snippet"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ jsx(
|
|
98
|
+
"p",
|
|
99
|
+
{
|
|
100
|
+
id: snippetId,
|
|
101
|
+
className: cn(
|
|
102
|
+
"text-xs text-text-secondary leading-relaxed border-l-2 border-border pl-2",
|
|
103
|
+
!isExpanded && "hidden"
|
|
104
|
+
),
|
|
105
|
+
"aria-hidden": !isExpanded,
|
|
106
|
+
children: source.snippet
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] })
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
source.id
|
|
113
|
+
);
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { SourceCitation, sourceCitationVariants };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
// src/catalog/definitions/effects.ts
|
|
4
|
+
var effectsDefinitions = {
|
|
5
|
+
AnimatedBackground: {
|
|
6
|
+
props: z.object({
|
|
7
|
+
className: z.string().nullable()
|
|
8
|
+
}),
|
|
9
|
+
description: "Full-bleed animated background with layered gradient orbs, perspective grid overlay, and noise texture. Uses CSS blob animations for a lava-lamp aurora effect.",
|
|
10
|
+
example: { className: null }
|
|
11
|
+
},
|
|
12
|
+
ConfettiBurst: {
|
|
13
|
+
props: z.object({
|
|
14
|
+
count: z.number().nullable(),
|
|
15
|
+
spread: z.number().nullable(),
|
|
16
|
+
trigger: z.boolean().nullable(),
|
|
17
|
+
className: z.string().nullable()
|
|
18
|
+
}),
|
|
19
|
+
description: "Burst of animated confetti particles. Trigger controls when the burst fires. Respects prefers-reduced-motion.",
|
|
20
|
+
example: { count: 50, spread: 120, trigger: true, className: null }
|
|
21
|
+
},
|
|
22
|
+
InfiniteSlider: {
|
|
23
|
+
props: z.object({
|
|
24
|
+
gap: z.number().nullable(),
|
|
25
|
+
speed: z.number().nullable(),
|
|
26
|
+
direction: z.enum(["horizontal", "vertical"]).nullable(),
|
|
27
|
+
reverse: z.boolean().nullable(),
|
|
28
|
+
className: z.string().nullable()
|
|
29
|
+
}),
|
|
30
|
+
slots: ["default"],
|
|
31
|
+
description: "Infinitely scrolling carousel that duplicates children and animates them horizontally or vertically. speed is the CSS animation duration in seconds (lower = faster). Gap is in pixels.",
|
|
32
|
+
example: { gap: 16, speed: 30, direction: "horizontal", reverse: false, className: null }
|
|
33
|
+
},
|
|
34
|
+
MeteorShower: {
|
|
35
|
+
props: z.object({
|
|
36
|
+
count: z.number().nullable(),
|
|
37
|
+
className: z.string().nullable()
|
|
38
|
+
}),
|
|
39
|
+
description: "Decorative meteor-shower overlay. Renders count randomised diagonal streaks with staggered animation. Positioned absolute; place inside a relative container.",
|
|
40
|
+
example: { count: 20, className: null }
|
|
41
|
+
},
|
|
42
|
+
MouseGlow: {
|
|
43
|
+
props: z.object({
|
|
44
|
+
dotColor: z.string().nullable(),
|
|
45
|
+
overlayColor: z.string().nullable(),
|
|
46
|
+
gap: z.number().nullable(),
|
|
47
|
+
maskRadius: z.number().nullable(),
|
|
48
|
+
overlayRadius: z.number().nullable(),
|
|
49
|
+
className: z.string().nullable()
|
|
50
|
+
}),
|
|
51
|
+
description: "Full-viewport dot-grid overlay that follows the mouse cursor via a radial mask. Portals to document.body. dotColor and overlayColor accept any CSS color string. gap controls dot grid spacing in pixels.",
|
|
52
|
+
example: { dotColor: "rgba(255,255,255,0.3)", overlayColor: "rgba(29,78,216,0.15)", gap: 24, maskRadius: 200, overlayRadius: 400, className: null }
|
|
53
|
+
},
|
|
54
|
+
MouseSpotlight: {
|
|
55
|
+
props: z.object({
|
|
56
|
+
color: z.string().nullable(),
|
|
57
|
+
size: z.number().nullable(),
|
|
58
|
+
className: z.string().nullable()
|
|
59
|
+
}),
|
|
60
|
+
slots: ["default"],
|
|
61
|
+
description: "Relative-positioned wrapper that renders a radial gradient spotlight following the mouse cursor. Uses Framer Motion for smooth tracking. Respects prefers-reduced-motion. Wrap interactive cards or containers to add a hover-reveal spotlight effect.",
|
|
62
|
+
example: { color: "rgba(255,255,255,0.06)", size: 250, className: null }
|
|
63
|
+
},
|
|
64
|
+
ScrollFadeIn: {
|
|
65
|
+
props: z.object({
|
|
66
|
+
delay: z.number().nullable(),
|
|
67
|
+
direction: z.enum(["up", "down", "left", "right"]).nullable(),
|
|
68
|
+
distance: z.number().nullable(),
|
|
69
|
+
className: z.string().nullable()
|
|
70
|
+
}),
|
|
71
|
+
slots: ["default"],
|
|
72
|
+
description: "Scroll-triggered fade-in wrapper. Children animate from the given direction with optional delay (ms) and distance (px). Fires once when the element enters the viewport. Respects prefers-reduced-motion.",
|
|
73
|
+
example: { delay: 200, direction: "up", distance: 24, className: null }
|
|
74
|
+
},
|
|
75
|
+
ShaderBackground: {
|
|
76
|
+
props: z.object({
|
|
77
|
+
shader: z.enum([
|
|
78
|
+
"meshGradient",
|
|
79
|
+
"smokeRing",
|
|
80
|
+
"neuroNoise",
|
|
81
|
+
"dotOrbit",
|
|
82
|
+
"dotGrid",
|
|
83
|
+
"simplexNoise",
|
|
84
|
+
"metaballs",
|
|
85
|
+
"waves",
|
|
86
|
+
"perlinNoise",
|
|
87
|
+
"voronoi",
|
|
88
|
+
"warp",
|
|
89
|
+
"godRays",
|
|
90
|
+
"spiral",
|
|
91
|
+
"swirl",
|
|
92
|
+
"dithering",
|
|
93
|
+
"grainGradient",
|
|
94
|
+
"pulsingBorder",
|
|
95
|
+
"colorPanels",
|
|
96
|
+
"staticMeshGradient",
|
|
97
|
+
"staticRadialGradient",
|
|
98
|
+
"liquidMetal"
|
|
99
|
+
]),
|
|
100
|
+
intent: z.enum(["hero", "section", "ambient", "card"]).nullable(),
|
|
101
|
+
opacity: z.number().nullable(),
|
|
102
|
+
static: z.boolean().nullable(),
|
|
103
|
+
className: z.string().nullable(),
|
|
104
|
+
overrides: z.record(z.string(), z.unknown()).nullable()
|
|
105
|
+
}),
|
|
106
|
+
slots: ["default"],
|
|
107
|
+
description: "GPU-accelerated shader background powered by @paper-design/shaders-react. intent controls animation speed and color palette complexity. opacity layers the shader over the container. Set static to freeze animation. overrides pass per-instance shader parameter tweaks. Children render above the shader layer.",
|
|
108
|
+
example: { shader: "meshGradient", intent: "hero", opacity: 0.3, static: false, className: null, overrides: null }
|
|
109
|
+
},
|
|
110
|
+
MagneticElement: {
|
|
111
|
+
props: z.object({
|
|
112
|
+
strength: z.number().nullable(),
|
|
113
|
+
className: z.string().nullable()
|
|
114
|
+
}),
|
|
115
|
+
slots: ["default"],
|
|
116
|
+
description: "Wrapper that pulls children toward the cursor with spring physics. strength (0-1) controls pull intensity. Respects prefers-reduced-motion.",
|
|
117
|
+
example: { strength: 0.5, className: null }
|
|
118
|
+
},
|
|
119
|
+
MovingBorder: {
|
|
120
|
+
props: z.object({
|
|
121
|
+
duration: z.string().nullable(),
|
|
122
|
+
borderRadius: z.string().nullable(),
|
|
123
|
+
className: z.string().nullable()
|
|
124
|
+
}),
|
|
125
|
+
slots: ["default"],
|
|
126
|
+
description: 'Animated conic-gradient border that spins around children. duration is a CSS time value (e.g. "3s"). borderRadius controls corner rounding.',
|
|
127
|
+
example: { duration: "3s", borderRadius: "0.75rem", className: null }
|
|
128
|
+
},
|
|
129
|
+
ProgressiveBlur: {
|
|
130
|
+
props: z.object({
|
|
131
|
+
direction: z.enum(["left", "right", "top", "bottom"]).nullable(),
|
|
132
|
+
blurIntensity: z.number().nullable(),
|
|
133
|
+
className: z.string().nullable()
|
|
134
|
+
}),
|
|
135
|
+
description: "Positioned blur overlay that fades content in one direction. direction controls gradient angle. blurIntensity scales the backdrop blur strength. Absolutely positioned; place inside a relative container.",
|
|
136
|
+
example: { direction: "bottom", blurIntensity: 8, className: null }
|
|
137
|
+
},
|
|
138
|
+
SpringHover: {
|
|
139
|
+
props: z.object({
|
|
140
|
+
hoverScale: z.number().nullable(),
|
|
141
|
+
pressScale: z.number().nullable(),
|
|
142
|
+
disabled: z.boolean().nullable(),
|
|
143
|
+
className: z.string().nullable()
|
|
144
|
+
}),
|
|
145
|
+
slots: ["default"],
|
|
146
|
+
description: "Spring-physics hover/tap wrapper. hoverScale and pressScale control transform on interaction. disabled bypasses animation and renders a plain div. Style-aware (bloom adds subtle rotation).",
|
|
147
|
+
example: { hoverScale: 1.05, pressScale: 0.97, disabled: false, className: null }
|
|
148
|
+
},
|
|
149
|
+
StaggerChildren: {
|
|
150
|
+
props: z.object({
|
|
151
|
+
staggerMs: z.number().nullable(),
|
|
152
|
+
direction: z.enum(["up", "down", "left", "right"]).nullable(),
|
|
153
|
+
distance: z.number().nullable(),
|
|
154
|
+
once: z.boolean().nullable(),
|
|
155
|
+
className: z.string().nullable()
|
|
156
|
+
}),
|
|
157
|
+
slots: ["default"],
|
|
158
|
+
description: "Scroll-triggered stagger wrapper. Each direct child animates in sequentially with staggerMs delay between them. Respects prefers-reduced-motion.",
|
|
159
|
+
example: { staggerMs: 100, direction: "up", distance: 20, once: true, className: null }
|
|
160
|
+
},
|
|
161
|
+
StaggeredEntrance: {
|
|
162
|
+
props: z.object({
|
|
163
|
+
delayMs: z.number().nullable(),
|
|
164
|
+
className: z.string().nullable()
|
|
165
|
+
}),
|
|
166
|
+
slots: ["default"],
|
|
167
|
+
description: "CSS-only staggered entrance animation. Each direct child gets an incremental animation-delay based on delayMs. Uses fade-in-up keyframe with fill-mode backwards.",
|
|
168
|
+
example: { delayMs: 80, className: null }
|
|
169
|
+
},
|
|
170
|
+
TiltCard: {
|
|
171
|
+
props: z.object({
|
|
172
|
+
maxTilt: z.number().nullable(),
|
|
173
|
+
className: z.string().nullable()
|
|
174
|
+
}),
|
|
175
|
+
slots: ["default"],
|
|
176
|
+
description: "Perspective tilt card that rotates toward the cursor on hover. maxTilt caps rotation degrees (clamped to 8). Respects prefers-reduced-motion.",
|
|
177
|
+
example: { maxTilt: 6, className: null }
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export { effectsDefinitions };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { InputOTP, InputOTPGroup, InputOTPSlot } from './chunk-WN5ONOHC.js';
|
|
2
|
+
import { Separator } from './chunk-CUZJIDU7.js';
|
|
3
|
+
import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from './chunk-7UY24UWL.js';
|
|
4
|
+
import { Button } from './chunk-7KIDDF3I.js';
|
|
5
|
+
import { m, scaleIn } from './chunk-PD2YEH3H.js';
|
|
6
|
+
import { bezier } from './chunk-CRY67BIF.js';
|
|
7
|
+
import { Alert, AlertDescription } from './chunk-6CLSVCWP.js';
|
|
8
|
+
import { cn } from './chunk-QYZT24TS.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
var SHAKE_TRANSITION = { duration: 0.3, ease: bezier["out-cubic"] };
|
|
13
|
+
function OTPBlock({ props, emit }) {
|
|
14
|
+
const title = props.title ?? "One-Time Password";
|
|
15
|
+
const description = props.description ?? "Please enter the one-time password sent to your phone.";
|
|
16
|
+
const maxLength = props.maxLength ?? 6;
|
|
17
|
+
const buttonText = props.buttonText ?? "Verify";
|
|
18
|
+
const error = props.error ?? null;
|
|
19
|
+
const backupCodeLink = props.backupCodeLink ?? null;
|
|
20
|
+
const [otp, setOtp] = React.useState("");
|
|
21
|
+
const [shake, setShake] = React.useState(false);
|
|
22
|
+
React.useEffect(() => {
|
|
23
|
+
if (error) {
|
|
24
|
+
setShake(true);
|
|
25
|
+
setOtp("");
|
|
26
|
+
const timeout = setTimeout(() => setShake(false), 300);
|
|
27
|
+
return () => clearTimeout(timeout);
|
|
28
|
+
}
|
|
29
|
+
}, [error]);
|
|
30
|
+
return /* @__PURE__ */ jsx(m.div, { ...scaleIn, className: cn("w-full max-w-sm mx-auto"), children: /* @__PURE__ */ jsxs(Card, { className: "text-center", children: [
|
|
31
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
32
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-2xl", children: title }),
|
|
33
|
+
/* @__PURE__ */ jsx(CardDescription, { children: description })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "grid gap-4 justify-center", children: [
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
m.div,
|
|
38
|
+
{
|
|
39
|
+
className: "flex justify-center",
|
|
40
|
+
animate: shake ? { x: [-4, 4, -4, 4, 0] } : {},
|
|
41
|
+
transition: SHAKE_TRANSITION,
|
|
42
|
+
children: /* @__PURE__ */ jsx(InputOTP, { maxLength, value: otp, onChange: setOtp, children: /* @__PURE__ */ jsx(InputOTPGroup, { children: Array.from({ length: maxLength }, (_, i) => /* @__PURE__ */ jsx(InputOTPSlot, { index: i }, i)) }) })
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
!!error && /* @__PURE__ */ jsx(Alert, { variant: "destructive", children: /* @__PURE__ */ jsx(AlertDescription, { children: error }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(Button, { className: "w-full", onClick: () => emit("verify"), children: buttonText }),
|
|
47
|
+
!!backupCodeLink && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
48
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
49
|
+
/* @__PURE__ */ jsx("div", { className: "text-center", children: /* @__PURE__ */ jsx(
|
|
50
|
+
"button",
|
|
51
|
+
{
|
|
52
|
+
type: "button",
|
|
53
|
+
onClick: () => emit("useBackupCode"),
|
|
54
|
+
className: "text-sm text-accent hover:text-accent/80 transition-colors",
|
|
55
|
+
children: backupCodeLink
|
|
56
|
+
}
|
|
57
|
+
) })
|
|
58
|
+
] })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ jsx(CardFooter, { className: "justify-center", children: /* @__PURE__ */ jsx(
|
|
61
|
+
"button",
|
|
62
|
+
{
|
|
63
|
+
type: "button",
|
|
64
|
+
onClick: () => emit("backToLogin"),
|
|
65
|
+
className: "text-sm text-text-tertiary hover:text-text-primary transition-colors",
|
|
66
|
+
children: "Back to login"
|
|
67
|
+
}
|
|
68
|
+
) })
|
|
69
|
+
] }) });
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { OTPBlock };
|