@zentauri-ui/zentauri-components 1.2.0 → 1.3.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/README.md +66 -38
- package/dist/accordion-base-qVomr7f_.d.mts +66 -0
- package/dist/accordion-base-qVomr7f_.d.ts +66 -0
- package/dist/avatar-base-s4dYg-24.d.mts +49 -0
- package/dist/avatar-base-s4dYg-24.d.ts +49 -0
- package/dist/card-base-CIGac8D_.d.mts +70 -0
- package/dist/card-base-CIGac8D_.d.ts +70 -0
- package/dist/chunk-2P3UU2J3.mjs +510 -0
- package/dist/chunk-2P3UU2J3.mjs.map +1 -0
- package/dist/chunk-2PQEXQVR.js +223 -0
- package/dist/chunk-2PQEXQVR.js.map +1 -0
- package/dist/chunk-3OR47XMY.js +273 -0
- package/dist/chunk-3OR47XMY.js.map +1 -0
- package/dist/chunk-4B7KGBQB.js +206 -0
- package/dist/chunk-4B7KGBQB.js.map +1 -0
- package/dist/chunk-5QB2KNZQ.js +148 -0
- package/dist/chunk-5QB2KNZQ.js.map +1 -0
- package/dist/chunk-6I7X5BF2.js +520 -0
- package/dist/chunk-6I7X5BF2.js.map +1 -0
- package/dist/chunk-7HL3A4YF.mjs +214 -0
- package/dist/chunk-7HL3A4YF.mjs.map +1 -0
- package/dist/chunk-AOEI4V3W.mjs +286 -0
- package/dist/chunk-AOEI4V3W.mjs.map +1 -0
- package/dist/chunk-BVXTOEBI.mjs +259 -0
- package/dist/chunk-BVXTOEBI.mjs.map +1 -0
- package/dist/chunk-C2FCPQTO.js +279 -0
- package/dist/chunk-C2FCPQTO.js.map +1 -0
- package/dist/chunk-E3DZNJAD.js +128 -0
- package/dist/chunk-E3DZNJAD.js.map +1 -0
- package/dist/chunk-FLILFCQE.mjs +197 -0
- package/dist/chunk-FLILFCQE.mjs.map +1 -0
- package/dist/chunk-IXDJ3IPG.mjs +315 -0
- package/dist/chunk-IXDJ3IPG.mjs.map +1 -0
- package/dist/chunk-JQ5TIJ4F.mjs +68 -0
- package/dist/chunk-JQ5TIJ4F.mjs.map +1 -0
- package/dist/chunk-LVUPECBT.mjs +217 -0
- package/dist/chunk-LVUPECBT.mjs.map +1 -0
- package/dist/chunk-N4NO3SYL.js +328 -0
- package/dist/chunk-N4NO3SYL.js.map +1 -0
- package/dist/chunk-OJ67PZ6N.js +175 -0
- package/dist/chunk-OJ67PZ6N.js.map +1 -0
- package/dist/chunk-P5HUBXUX.js +231 -0
- package/dist/chunk-P5HUBXUX.js.map +1 -0
- package/dist/chunk-PCK6LX3K.js +253 -0
- package/dist/chunk-PCK6LX3K.js.map +1 -0
- package/dist/chunk-PGH27VTL.mjs +316 -0
- package/dist/chunk-PGH27VTL.mjs.map +1 -0
- package/dist/chunk-QZKMFSH5.js +288 -0
- package/dist/chunk-QZKMFSH5.js.map +1 -0
- package/dist/chunk-RDSPHBHK.mjs +221 -0
- package/dist/chunk-RDSPHBHK.mjs.map +1 -0
- package/dist/chunk-U4YQCAXW.js +204 -0
- package/dist/chunk-U4YQCAXW.js.map +1 -0
- package/dist/chunk-UBFKTC2P.mjs +268 -0
- package/dist/chunk-UBFKTC2P.mjs.map +1 -0
- package/dist/chunk-UOFTZKMM.js +229 -0
- package/dist/chunk-UOFTZKMM.js.map +1 -0
- package/dist/chunk-UXGHUBNJ.mjs +240 -0
- package/dist/chunk-UXGHUBNJ.mjs.map +1 -0
- package/dist/chunk-W6PRMYUC.mjs +169 -0
- package/dist/chunk-W6PRMYUC.mjs.map +1 -0
- package/dist/chunk-WDCIZHXY.mjs +139 -0
- package/dist/chunk-WDCIZHXY.mjs.map +1 -0
- package/dist/chunk-WZKGRU3U.js +182 -0
- package/dist/chunk-WZKGRU3U.js.map +1 -0
- package/dist/chunk-X22LLJL6.js +71 -0
- package/dist/chunk-X22LLJL6.js.map +1 -0
- package/dist/chunk-XIXF7UVM.mjs +194 -0
- package/dist/chunk-XIXF7UVM.mjs.map +1 -0
- package/dist/chunk-XLAFQ24R.js +328 -0
- package/dist/chunk-XLAFQ24R.js.map +1 -0
- package/dist/chunk-XWM2S6VV.mjs +124 -0
- package/dist/chunk-XWM2S6VV.mjs.map +1 -0
- package/dist/chunk-YNCD6TKE.mjs +175 -0
- package/dist/chunk-YNCD6TKE.mjs.map +1 -0
- package/dist/progress-base-Cm1JODYA.d.mts +66 -0
- package/dist/progress-base-Cm1JODYA.d.ts +66 -0
- package/dist/types-C7N9UvRm.d.mts +38 -0
- package/dist/types-C7N9UvRm.d.ts +38 -0
- package/dist/types-CFpwSbpK.d.mts +27 -0
- package/dist/types-CFpwSbpK.d.ts +27 -0
- package/dist/types-CK_vNRIb.d.mts +63 -0
- package/dist/types-CK_vNRIb.d.ts +63 -0
- package/dist/types-Ca3t5aC_.d.mts +31 -0
- package/dist/types-Ca3t5aC_.d.ts +31 -0
- package/dist/types-Cn7IcgkH.d.mts +32 -0
- package/dist/types-Cn7IcgkH.d.ts +32 -0
- package/dist/types-CtFK7mFE.d.mts +34 -0
- package/dist/types-CtFK7mFE.d.ts +34 -0
- package/dist/types-DMkTQsWg.d.mts +46 -0
- package/dist/types-DMkTQsWg.d.ts +46 -0
- package/dist/types-DN400jNg.d.mts +28 -0
- package/dist/types-DN400jNg.d.ts +28 -0
- package/dist/types-vcZcRc6w.d.mts +24 -0
- package/dist/types-vcZcRc6w.d.ts +24 -0
- package/dist/types-zHcMUtKK.d.mts +42 -0
- package/dist/types-zHcMUtKK.d.ts +42 -0
- package/dist/ui/accordion/animated.d.mts +24 -0
- package/dist/ui/accordion/animated.d.ts +24 -0
- package/dist/ui/accordion/animated.js +67 -0
- package/dist/ui/accordion/animated.js.map +1 -0
- package/dist/ui/accordion/animated.mjs +56 -0
- package/dist/ui/accordion/animated.mjs.map +1 -0
- package/dist/ui/accordion.d.mts +9 -65
- package/dist/ui/accordion.d.ts +9 -65
- package/dist/ui/accordion.js +32 -288
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/accordion.mjs +6 -281
- package/dist/ui/accordion.mjs.map +1 -1
- package/dist/ui/alert/animated.d.mts +18 -0
- package/dist/ui/alert/animated.d.ts +18 -0
- package/dist/ui/alert/animated.js +47 -0
- package/dist/ui/alert/animated.js.map +1 -0
- package/dist/ui/alert/animated.mjs +44 -0
- package/dist/ui/alert/animated.mjs.map +1 -0
- package/dist/ui/alert.d.mts +10 -40
- package/dist/ui/alert.d.ts +10 -40
- package/dist/ui/alert.js +36 -218
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/alert.mjs +7 -211
- package/dist/ui/alert.mjs.map +1 -1
- package/dist/ui/avatar/animated.d.mts +22 -0
- package/dist/ui/avatar/animated.d.ts +22 -0
- package/dist/ui/avatar/animated.js +51 -0
- package/dist/ui/avatar/animated.js.map +1 -0
- package/dist/ui/avatar/animated.mjs +37 -0
- package/dist/ui/avatar/animated.mjs.map +1 -0
- package/dist/ui/avatar.d.mts +7 -53
- package/dist/ui/avatar.d.ts +7 -53
- package/dist/ui/avatar.js +32 -210
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/avatar.mjs +7 -204
- package/dist/ui/avatar.mjs.map +1 -1
- package/dist/ui/badge/animated.d.mts +22 -0
- package/dist/ui/badge/animated.d.ts +22 -0
- package/dist/ui/badge/animated.js +50 -0
- package/dist/ui/badge/animated.js.map +1 -0
- package/dist/ui/badge/animated.mjs +47 -0
- package/dist/ui/badge/animated.mjs.map +1 -0
- package/dist/ui/badge.d.mts +6 -30
- package/dist/ui/badge.d.ts +6 -30
- package/dist/ui/badge.js +11 -142
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/badge.mjs +6 -141
- package/dist/ui/badge.mjs.map +1 -1
- package/dist/ui/buttons/animated.d.mts +27 -0
- package/dist/ui/buttons/animated.d.ts +27 -0
- package/dist/ui/buttons/animated.js +101 -0
- package/dist/ui/buttons/animated.js.map +1 -0
- package/dist/ui/buttons/animated.mjs +98 -0
- package/dist/ui/buttons/animated.mjs.map +1 -0
- package/dist/ui/buttons.d.mts +5 -13
- package/dist/ui/buttons.d.ts +5 -13
- package/dist/ui/buttons.js +7 -45
- package/dist/ui/buttons.js.map +1 -1
- package/dist/ui/buttons.mjs +8 -45
- package/dist/ui/buttons.mjs.map +1 -1
- package/dist/ui/card/animated.d.mts +23 -0
- package/dist/ui/card/animated.d.ts +23 -0
- package/dist/ui/card/animated.js +72 -0
- package/dist/ui/card/animated.js.map +1 -0
- package/dist/ui/card/animated.mjs +50 -0
- package/dist/ui/card/animated.mjs.map +1 -0
- package/dist/ui/card.d.mts +6 -70
- package/dist/ui/card.d.ts +6 -70
- package/dist/ui/card.js +43 -245
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/card.mjs +5 -235
- package/dist/ui/card.mjs.map +1 -1
- package/dist/ui/divider/animated.d.mts +19 -0
- package/dist/ui/divider/animated.d.ts +19 -0
- package/dist/ui/divider/animated.js +41 -0
- package/dist/ui/divider/animated.js.map +1 -0
- package/dist/ui/divider/animated.mjs +39 -0
- package/dist/ui/divider/animated.mjs.map +1 -0
- package/dist/ui/divider.d.mts +6 -32
- package/dist/ui/divider.d.ts +6 -32
- package/dist/ui/divider.js +19 -186
- package/dist/ui/divider.js.map +1 -1
- package/dist/ui/divider.mjs +6 -183
- package/dist/ui/divider.mjs.map +1 -1
- package/dist/ui/drawer/animated.d.mts +23 -0
- package/dist/ui/drawer/animated.d.ts +23 -0
- package/dist/ui/drawer/animated.js +143 -0
- package/dist/ui/drawer/animated.js.map +1 -0
- package/dist/ui/drawer/animated.mjs +113 -0
- package/dist/ui/drawer/animated.mjs.map +1 -0
- package/dist/ui/drawer.d.mts +10 -11
- package/dist/ui/drawer.d.ts +10 -11
- package/dist/ui/drawer.js +44 -357
- package/dist/ui/drawer.js.map +1 -1
- package/dist/ui/drawer.mjs +3 -349
- package/dist/ui/drawer.mjs.map +1 -1
- package/dist/ui/empty-state/animated.d.mts +24 -0
- package/dist/ui/empty-state/animated.d.ts +24 -0
- package/dist/ui/empty-state/animated.js +45 -0
- package/dist/ui/empty-state/animated.js.map +1 -0
- package/dist/ui/empty-state/animated.mjs +42 -0
- package/dist/ui/empty-state/animated.mjs.map +1 -0
- package/dist/ui/empty-state.d.mts +11 -32
- package/dist/ui/empty-state.d.ts +11 -32
- package/dist/ui/empty-state.js +35 -160
- package/dist/ui/empty-state.js.map +1 -1
- package/dist/ui/empty-state.mjs +5 -153
- package/dist/ui/empty-state.mjs.map +1 -1
- package/dist/ui/inputs/animated.d.mts +27 -0
- package/dist/ui/inputs/animated.d.ts +27 -0
- package/dist/ui/inputs/animated.js +141 -0
- package/dist/ui/inputs/animated.js.map +1 -0
- package/dist/ui/inputs/animated.mjs +138 -0
- package/dist/ui/inputs/animated.mjs.map +1 -0
- package/dist/ui/inputs.d.mts +7 -21
- package/dist/ui/inputs.d.ts +7 -21
- package/dist/ui/inputs.js +16 -331
- package/dist/ui/inputs.js.map +1 -1
- package/dist/ui/inputs.mjs +13 -329
- package/dist/ui/inputs.mjs.map +1 -1
- package/dist/ui/modal/animated.d.mts +21 -0
- package/dist/ui/modal/animated.d.ts +21 -0
- package/dist/ui/modal/animated.js +120 -0
- package/dist/ui/modal/animated.js.map +1 -0
- package/dist/ui/modal/animated.mjs +117 -0
- package/dist/ui/modal/animated.mjs.map +1 -0
- package/dist/ui/modal.d.mts +10 -48
- package/dist/ui/modal.d.ts +10 -48
- package/dist/ui/modal.js +47 -361
- package/dist/ui/modal.js.map +1 -1
- package/dist/ui/modal.mjs +9 -351
- package/dist/ui/modal.mjs.map +1 -1
- package/dist/ui/progress/animated.d.mts +41 -0
- package/dist/ui/progress/animated.d.ts +41 -0
- package/dist/ui/progress/animated.js +123 -0
- package/dist/ui/progress/animated.js.map +1 -0
- package/dist/ui/progress/animated.mjs +112 -0
- package/dist/ui/progress/animated.mjs.map +1 -0
- package/dist/ui/progress.d.mts +10 -58
- package/dist/ui/progress.d.ts +10 -58
- package/dist/ui/progress.js +35 -227
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/progress.mjs +10 -222
- package/dist/ui/progress.mjs.map +1 -1
- package/dist/ui/skeleton/animated.d.mts +56 -0
- package/dist/ui/skeleton/animated.d.ts +56 -0
- package/dist/ui/skeleton/animated.js +126 -0
- package/dist/ui/skeleton/animated.js.map +1 -0
- package/dist/ui/skeleton/animated.mjs +119 -0
- package/dist/ui/skeleton/animated.mjs.map +1 -0
- package/dist/ui/skeleton.d.mts +16 -77
- package/dist/ui/skeleton.d.ts +16 -77
- package/dist/ui/skeleton.js +35 -526
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/skeleton.mjs +2 -520
- package/dist/ui/skeleton.mjs.map +1 -1
- package/dist/ui/{spinner.d.mts → spinner/animated.d.mts} +1 -6
- package/dist/ui/{spinner.d.ts → spinner/animated.d.ts} +1 -6
- package/dist/ui/{spinner.js → spinner/animated.js} +3 -9
- package/dist/ui/spinner/animated.js.map +1 -0
- package/dist/ui/{spinner.mjs → spinner/animated.mjs} +4 -9
- package/dist/ui/spinner/animated.mjs.map +1 -0
- package/dist/ui/table/animated.d.mts +21 -0
- package/dist/ui/table/animated.d.ts +21 -0
- package/dist/ui/table/animated.js +50 -0
- package/dist/ui/table/animated.js.map +1 -0
- package/dist/ui/table/animated.mjs +24 -0
- package/dist/ui/table/animated.mjs.map +1 -0
- package/dist/ui/table.d.mts +17 -11
- package/dist/ui/table.d.ts +17 -11
- package/dist/ui/table.js +55 -278
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/table.mjs +2 -269
- package/dist/ui/table.mjs.map +1 -1
- package/dist/ui/tabs/animated.d.mts +25 -0
- package/dist/ui/tabs/animated.d.ts +25 -0
- package/dist/ui/tabs/animated.js +83 -0
- package/dist/ui/tabs/animated.js.map +1 -0
- package/dist/ui/tabs/animated.mjs +79 -0
- package/dist/ui/tabs/animated.mjs.map +1 -0
- package/dist/ui/tabs.d.mts +7 -41
- package/dist/ui/tabs.d.ts +7 -41
- package/dist/ui/tabs.js +35 -261
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/tabs.mjs +2 -256
- package/dist/ui/tabs.mjs.map +1 -1
- package/dist/ui/toast/animated.d.mts +23 -0
- package/dist/ui/toast/animated.d.ts +23 -0
- package/dist/ui/toast/animated.js +103 -0
- package/dist/ui/toast/animated.js.map +1 -0
- package/dist/ui/toast/animated.mjs +99 -0
- package/dist/ui/toast/animated.mjs.map +1 -0
- package/dist/ui/toast.d.mts +7 -52
- package/dist/ui/toast.d.ts +7 -52
- package/dist/ui/toast.js +47 -268
- package/dist/ui/toast.js.map +1 -1
- package/dist/ui/toast.mjs +2 -259
- package/dist/ui/toast.mjs.map +1 -1
- package/dist/ui/toggle/animated.d.mts +22 -0
- package/dist/ui/toggle/animated.d.ts +22 -0
- package/dist/ui/toggle/animated.js +88 -0
- package/dist/ui/toggle/animated.js.map +1 -0
- package/dist/ui/toggle/animated.mjs +85 -0
- package/dist/ui/toggle/animated.mjs.map +1 -0
- package/dist/ui/toggle.d.mts +6 -30
- package/dist/ui/toggle.d.ts +6 -30
- package/dist/ui/toggle.js +19 -83
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/toggle.mjs +12 -80
- package/dist/ui/toggle.mjs.map +1 -1
- package/dist/ui/tooltip/animated.d.mts +17 -0
- package/dist/ui/tooltip/animated.d.ts +17 -0
- package/dist/ui/tooltip/animated.js +59 -0
- package/dist/ui/tooltip/animated.js.map +1 -0
- package/dist/ui/tooltip/animated.mjs +56 -0
- package/dist/ui/tooltip/animated.mjs.map +1 -0
- package/dist/ui/tooltip.d.mts +6 -33
- package/dist/ui/tooltip.d.ts +6 -33
- package/dist/ui/tooltip.js +26 -193
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/tooltip.mjs +2 -192
- package/dist/ui/tooltip.mjs.map +1 -1
- package/dist/variants-CYODHI8b.d.mts +10 -0
- package/dist/variants-CYODHI8b.d.ts +10 -0
- package/package.json +7 -4
- package/dist/ui/spinner.js.map +0 -1
- package/dist/ui/spinner.mjs.map +0 -1
package/dist/ui/card.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/ui/card/animations.ts","../../src/ui/card/variants.ts","../../src/ui/card/card.tsx"],"names":[],"mappings":";;;;;;;AAWO,IAAM,oBAAA,GAA6C;AAAA,EACxD,MAAM,EAAC;AAAA,EACP,IAAA,EAAM;AAAA,IACJ,UAAA,EAAY,EAAE,CAAA,EAAG,EAAA,EAAI,OAAO,IAAA,EAAK;AAAA,IACjC,QAAA,EAAU,EAAE,CAAA,EAAG,CAAA,EAAG,OAAO,KAAA,EAAM;AAAA,IAC/B,YAAY,EAAE,IAAA,EAAM,UAAU,SAAA,EAAW,GAAA,EAAK,SAAS,EAAA;AAAG,GAC5D;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,UAAA,EAAY;AAAA,MACV,SAAA,EACE;AAAA,KACJ;AAAA,IACA,UAAA,EAAY,EAAE,QAAA,EAAU,IAAA,EAAM,MAAM,SAAA;AAAU,GAChD;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,YAAY,EAAE,OAAA,EAAS,GAAG,OAAA,EAAS,EAAA,EAAI,OAAO,IAAA,EAAK;AAAA,IACnD,UAAU,EAAE,OAAA,EAAS,GAAG,OAAA,EAAS,CAAA,EAAG,OAAO,IAAA,EAAK;AAAA,IAChD,YAAY,EAAE,IAAA,EAAM,UAAU,SAAA,EAAW,GAAA,EAAK,SAAS,EAAA,EAAG;AAAA,IAC1D,KAAA,EAAO,EAAE,cAAA,EAAgB,aAAA;AAAc;AAE3C;AC7BO,IAAM,YAAA,GAAe,GAAA;AAAA,EAC1B;AAAA,IACE,6DAAA;AAAA,IACA,yCAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,UAAA,EAAY;AAAA,QACV,OAAA,EACE,0EAAA;AAAA,QACF,KAAA,EACE,8FAAA;AAAA,QACF,OAAA,EAAS,uCAAA;AAAA,QACT,KAAA,EAAO,0CAAA;AAAA,QACP,QAAA,EACE,iFAAA;AAAA,QACF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AgB,WAAA,GAAc,iBAAA","file":"card.mjs","sourcesContent":["import type { HTMLMotionProps } from \"framer-motion\";\n\nimport type { CardAnimation } from \"./types\";\n\ntype CardPresetMotionProps = Pick<\n HTMLMotionProps<\"article\">,\n \"style\" | \"transition\" | \"whileHover\" | \"whileTap\"\n>;\n\nexport type CardAnimationPresets = Record<CardAnimation, CardPresetMotionProps>;\n\nexport const cardAnimationPresets: CardAnimationPresets = {\n none: {},\n lift: {\n whileHover: { y: -4, scale: 1.01 },\n whileTap: { y: 0, scale: 0.995 },\n transition: { type: \"spring\", stiffness: 380, damping: 26 },\n },\n glow: {\n whileHover: {\n boxShadow:\n \"0 0 0 1px rgba(255,255,255,0.18), 0 22px 48px rgba(15,23,42,0.45)\",\n },\n transition: { duration: 0.22, ease: \"easeOut\" },\n },\n tilt: {\n whileHover: { rotateX: 4, rotateY: -4, scale: 1.01 },\n whileTap: { rotateX: 0, rotateY: 0, scale: 0.99 },\n transition: { type: \"spring\", stiffness: 280, damping: 22 },\n style: { transformStyle: \"preserve-3d\" },\n },\n};\n","import { cva } from \"class-variance-authority\";\n\nexport const cardVariants = cva(\n [\n \"relative flex w-full flex-col overflow-hidden text-slate-50\",\n \"ring-offset-slate-950 transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-300 focus-visible:ring-offset-2\",\n ],\n {\n variants: {\n appearance: {\n default:\n \"border border-white/10 bg-white/5 shadow-[0_1px_2px_rgba(15,23,42,0.12)]\",\n glass:\n \"border border-white/15 bg-white/10 backdrop-blur-md shadow-[0_18px_48px_rgba(15,23,42,0.35)]\",\n outline: \"border border-white/15 bg-transparent\",\n ghost: \"border border-transparent bg-transparent\",\n elevated:\n \"border border-white/10 bg-slate-900/80 shadow-[0_24px_64px_rgba(15,23,42,0.45)]\",\n sky: \"border border-sky-600 bg-sky-950/70 backdrop-blur-xl\",\n rose: \"border border-rose-600 bg-rose-950/70 backdrop-blur-xl\",\n purple: \"border border-purple-600 bg-purple-950/70 backdrop-blur-xl\",\n pink: \"border border-pink-600 bg-pink-950/70 backdrop-blur-xl\",\n orange: \"border border-orange-600 bg-orange-950/70 backdrop-blur-xl\",\n yellow: \"border border-yellow-600 bg-yellow-950/70 backdrop-blur-xl\",\n teal: \"border border-teal-600 bg-teal-950/70 backdrop-blur-xl\",\n indigo: \"border border-indigo-600 bg-indigo-950/70 backdrop-blur-xl\",\n emerald: \"border border-emerald-600 bg-emerald-950/70 backdrop-blur-xl\",\n gray: \"border border-gray-600 bg-gray-950/70 backdrop-blur-xl\",\n amber: \"border border-amber-600 bg-amber-950/70 backdrop-blur-xl\",\n violet: \"border border-violet-600 bg-violet-950/70 backdrop-blur-xl\",\n \"gradient-blue\":\n \"border border-gradient-to-r from-blue-600 to-purple-600 bg-gradient-to-r from-blue-950/70 to-purple-950/70 backdrop-blur-xl\",\n \"gradient-green\":\n \"border border-gradient-to-r from-green-600 to-lime-600 bg-gradient-to-r from-green-950/70 to-lime-950/70 backdrop-blur-xl\",\n \"gradient-red\":\n \"border border-gradient-to-r from-red-600 to-pink-600 bg-gradient-to-r from-red-950/70 to-pink-950/70 backdrop-blur-xl\",\n \"gradient-yellow\":\n \"border border-gradient-to-r from-yellow-600 to-orange-600 bg-gradient-to-r from-yellow-950/70 to-orange-950/70 backdrop-blur-xl\",\n \"gradient-purple\":\n \"border border-gradient-to-r from-purple-600 to-pink-600 bg-gradient-to-r from-purple-950/70 to-pink-950/70 backdrop-blur-xl\",\n \"gradient-teal\":\n \"border border-gradient-to-r from-teal-600 to-cyan-600 bg-gradient-to-r from-teal-950/70 to-cyan-950/70 backdrop-blur-xl\",\n \"gradient-indigo\":\n \"border border-gradient-to-r from-indigo-600 to-purple-600 bg-gradient-to-r from-indigo-950/70 to-purple-950/70 backdrop-blur-xl\",\n \"gradient-pink\":\n \"border border-gradient-to-r from-pink-600 to-rose-600 bg-gradient-to-r from-pink-950/70 to-rose-950/70 backdrop-blur-xl\",\n \"gradient-orange\":\n \"border border-gradient-to-r from-orange-600 to-red-600 bg-gradient-to-r from-orange-950/70 to-red-950/70 backdrop-blur-xl\",\n },\n size: {\n sm: \"gap-2 p-3 text-sm\",\n md: \"gap-3 p-4 text-sm\",\n lg: \"gap-4 p-6 text-base\",\n },\n rounded: {\n sm: \"rounded-lg\",\n md: \"rounded-xl\",\n lg: \"rounded-2xl\",\n full: \"rounded-3xl\",\n },\n },\n defaultVariants: {\n appearance: \"default\",\n size: \"md\",\n rounded: \"md\",\n },\n },\n);\n\nexport const cardHeaderVariants = cva(\n \"flex flex-col gap-1 border-b border-white/10 pb-3\",\n {\n variants: {\n size: {\n sm: \"pb-2\",\n md: \"pb-3\",\n lg: \"pb-4\",\n },\n },\n defaultVariants: { size: \"md\" },\n },\n);\n\nexport const cardFooterVariants = cva(\n \"flex flex-col gap-2 border-t border-white/10 pt-3\",\n {\n variants: {\n size: {\n sm: \"pt-2\",\n md: \"pt-3\",\n lg: \"pt-4\",\n },\n },\n defaultVariants: { size: \"md\" },\n },\n);\n\nexport const cardTitleVariants = cva(\n \"font-semibold tracking-tight text-slate-50\",\n {\n variants: {\n size: {\n sm: \"text-sm\",\n md: \"text-base\",\n lg: \"text-lg\",\n },\n },\n defaultVariants: { size: \"md\" },\n },\n);\n\nexport const cardDescriptionVariants = cva(\"text-slate-400\", {\n variants: {\n size: {\n sm: \"text-xs\",\n md: \"text-sm\",\n lg: \"text-base\",\n },\n },\n defaultVariants: { size: \"md\" },\n});\n","\"use client\";\n\nimport { createContext, useContext, useMemo } from \"react\";\nimport { motion } from \"framer-motion\";\n\nimport { cn } from \"../../lib/utils\";\n\nimport { cardAnimationPresets } from \"./animations\";\nimport type {\n CardDescriptionProps,\n CardProps,\n CardSectionProps,\n CardSize,\n CardTitleProps,\n} from \"./types\";\nimport {\n cardDescriptionVariants,\n cardFooterVariants,\n cardHeaderVariants,\n cardTitleVariants,\n cardVariants,\n} from \"./variants\";\n\nconst CardSizeContext = createContext<CardSize>(\"md\");\n\nfunction useCardSize(): CardSize {\n return useContext(CardSizeContext);\n}\n\nexport function Card(props: CardProps) {\n const {\n className,\n appearance,\n size = \"md\",\n rounded,\n animation = \"none\",\n children,\n ref,\n ...rest\n } = props;\n const motionProps = cardAnimationPresets[animation];\n const ctx = useMemo(() => size ?? \"md\", [size]);\n\n return (\n <CardSizeContext.Provider value={ctx}>\n <motion.article\n ref={ref}\n data-slot=\"card\"\n className={cn(cardVariants({ appearance, size, rounded }), className)}\n initial={false}\n {...motionProps}\n {...rest}\n >\n {children}\n </motion.article>\n </CardSizeContext.Provider>\n );\n}\n\nCard.displayName = \"Card\";\n\nexport function CardHeader({ className, children }: CardSectionProps) {\n const size = useCardSize();\n return (\n <header\n data-slot=\"card-header\"\n className={cn(cardHeaderVariants({ size }), className)}\n >\n {children}\n </header>\n );\n}\n\nCardHeader.displayName = \"CardHeader\";\n\nexport function CardBody({ className, children }: CardSectionProps) {\n return (\n <div\n data-slot=\"card-body\"\n className={cn(\"flex flex-1 flex-col gap-2\", className)}\n >\n {children}\n </div>\n );\n}\n\nCardBody.displayName = \"CardBody\";\n\nexport function CardFooter({ className, children }: CardSectionProps) {\n const size = useCardSize();\n return (\n <footer\n data-slot=\"card-footer\"\n className={cn(cardFooterVariants({ size }), className)}\n >\n {children}\n </footer>\n );\n}\n\nCardFooter.displayName = \"CardFooter\";\n\nexport function CardTitle({\n className,\n children,\n as = \"h3\",\n ref,\n ...rest\n}: CardTitleProps) {\n const size = useCardSize();\n const Tag = as;\n return (\n <Tag\n ref={ref as never}\n data-slot=\"card-title\"\n className={cn(cardTitleVariants({ size }), className)}\n {...rest}\n >\n {children}\n </Tag>\n );\n}\n\nCardTitle.displayName = \"CardTitle\";\n\nexport function CardDescription({\n className,\n children,\n as = \"p\",\n ref,\n ...rest\n}: CardDescriptionProps) {\n const size = useCardSize();\n const Tag = as;\n return (\n <Tag\n ref={ref as never}\n data-slot=\"card-description\"\n className={cn(cardDescriptionVariants({ size }), className)}\n {...rest}\n >\n {children}\n </Tag>\n );\n}\n\nCardDescription.displayName = \"CardDescription\";\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/ui/card/card.tsx"],"names":[],"mappings":";;;;;AAMO,SAAS,KAAK,KAAA,EAAkB;AACrC,EAAA,uBAAO,GAAA,CAAC,QAAA,EAAA,EAAU,GAAG,KAAA,EAAO,CAAA;AAC9B;AAEA,IAAA,CAAK,WAAA,GAAc,MAAA","file":"card.mjs","sourcesContent":["// card.tsx — default static entry (no framer-motion)\nimport {\n CardBase,\n} from \"./card-base\";\nimport type { CardProps } from \"./types\";\n\nexport function Card(props: CardProps) {\n return <CardBase {...props} />;\n}\n\nCard.displayName = \"Card\";\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { a as DividerBaseProps } from '../../types-Ca3t5aC_.mjs';
|
|
3
|
+
import 'class-variance-authority';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
type DividerAnimation = "none" | "expand" | "fade";
|
|
8
|
+
/** Motion `div` uses different handler types than React DOM drag/drop events. */
|
|
9
|
+
type DividerDomDragProps = "onDrag" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDragStart" | "onDrop";
|
|
10
|
+
type DividerAnimatedProps = Omit<DividerBaseProps, "as" | DividerDomDragProps> & {
|
|
11
|
+
animation?: DividerAnimation;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
declare const DividerAnimated: {
|
|
15
|
+
(props: DividerAnimatedProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { DividerAnimated, type DividerAnimatedProps, type DividerAnimation, type DividerDomDragProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { a as DividerBaseProps } from '../../types-Ca3t5aC_.js';
|
|
3
|
+
import 'class-variance-authority';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
type DividerAnimation = "none" | "expand" | "fade";
|
|
8
|
+
/** Motion `div` uses different handler types than React DOM drag/drop events. */
|
|
9
|
+
type DividerDomDragProps = "onDrag" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDragStart" | "onDrop";
|
|
10
|
+
type DividerAnimatedProps = Omit<DividerBaseProps, "as" | DividerDomDragProps> & {
|
|
11
|
+
animation?: DividerAnimation;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
declare const DividerAnimated: {
|
|
15
|
+
(props: DividerAnimatedProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { DividerAnimated, type DividerAnimatedProps, type DividerAnimation, type DividerDomDragProps };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var chunkOJ67PZ6N_js = require('../../chunk-OJ67PZ6N.js');
|
|
5
|
+
require('../../chunk-UOZYPWDZ.js');
|
|
6
|
+
var framerMotion = require('framer-motion');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
// src/ui/divider/animated/animations.ts
|
|
10
|
+
var dividerAnimationPresets = {
|
|
11
|
+
none: {},
|
|
12
|
+
expand: {
|
|
13
|
+
initial: { scaleX: 0.6, opacity: 0.4 },
|
|
14
|
+
animate: { scaleX: 1, opacity: 1 },
|
|
15
|
+
transition: { duration: 0.35, ease: "easeOut" }
|
|
16
|
+
},
|
|
17
|
+
fade: {
|
|
18
|
+
initial: { opacity: 0 },
|
|
19
|
+
animate: { opacity: 1 },
|
|
20
|
+
transition: { duration: 0.25 }
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var DividerAnimated = (props) => {
|
|
24
|
+
const { animation = "none", ...rest } = props;
|
|
25
|
+
const motionProps = dividerAnimationPresets[animation];
|
|
26
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
27
|
+
chunkOJ67PZ6N_js.DividerBase,
|
|
28
|
+
{
|
|
29
|
+
...props,
|
|
30
|
+
as: framerMotion.motion.div,
|
|
31
|
+
initial: animation === "none" ? false : void 0,
|
|
32
|
+
...motionProps,
|
|
33
|
+
...rest
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
DividerAnimated.displayName = "DividerAnimated";
|
|
38
|
+
|
|
39
|
+
exports.DividerAnimated = DividerAnimated;
|
|
40
|
+
//# sourceMappingURL=animated.js.map
|
|
41
|
+
//# sourceMappingURL=animated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/ui/divider/animated/animations.ts","../../../src/ui/divider/animated/divider-animated.tsx"],"names":["jsx","DividerBase","motion"],"mappings":";;;;;;;;AAcO,IAAM,uBAAA,GAAmD;AAAA,EAC9D,MAAM,EAAC;AAAA,EACP,MAAA,EAAQ;AAAA,IACN,OAAA,EAAS,EAAE,MAAA,EAAQ,GAAA,EAAK,SAAS,GAAA,EAAI;AAAA,IACrC,OAAA,EAAS,EAAE,MAAA,EAAQ,CAAA,EAAG,SAAS,CAAA,EAAE;AAAA,IACjC,UAAA,EAAY,EAAE,QAAA,EAAU,IAAA,EAAM,MAAM,SAAA;AAAU,GAChD;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,OAAA,EAAS,EAAE,OAAA,EAAS,CAAA,EAAE;AAAA,IACtB,OAAA,EAAS,EAAE,OAAA,EAAS,CAAA,EAAE;AAAA,IACtB,UAAA,EAAY,EAAE,QAAA,EAAU,IAAA;AAAK;AAEjC,CAAA;AClBO,IAAM,eAAA,GAAkB,CAAC,KAAA,KAAgC;AAC9D,EAAA,MAAM,EAAE,SAAA,GAAY,MAAA,EAAQ,GAAG,MAAK,GAAI,KAAA;AACxC,EAAA,MAAM,WAAA,GAAc,wBAAwB,SAAS,CAAA;AAErD,EAAA,uBACEA,cAAA;AAAA,IAACC,4BAAA;AAAA,IAAA;AAAA,MACE,GAAG,KAAA;AAAA,MACJ,IAAIC,mBAAA,CAAO,GAAA;AAAA,MACX,OAAA,EAAS,SAAA,KAAc,MAAA,GAAS,KAAA,GAAQ,MAAA;AAAA,MACvC,GAAG,WAAA;AAAA,MACH,GAAI;AAAA;AAAA,GACP;AAEJ;AAEA,eAAA,CAAgB,WAAA,GAAc,iBAAA","file":"animated.js","sourcesContent":["import type { HTMLMotionProps } from \"framer-motion\";\n\nimport type { DividerAnimation } from \"./types\";\n\nexport type DividerPresetMotionProps = Pick<\n HTMLMotionProps<\"div\">,\n \"initial\" | \"animate\" | \"transition\" | \"whileHover\"\n>;\n\nexport type DividerAnimationPresets = Record<\n DividerAnimation,\n DividerPresetMotionProps\n>;\n\nexport const dividerAnimationPresets: DividerAnimationPresets = {\n none: {},\n expand: {\n initial: { scaleX: 0.6, opacity: 0.4 },\n animate: { scaleX: 1, opacity: 1 },\n transition: { duration: 0.35, ease: \"easeOut\" },\n },\n fade: {\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n transition: { duration: 0.25 },\n },\n};\n","\"use client\";\n\nimport { motion } from \"framer-motion\";\n\nimport { dividerAnimationPresets } from \"./animations\";\nimport type { DividerAnimatedProps } from \"./types\";\nimport { DividerBase } from \"../divider-base\";\n\nexport const DividerAnimated = (props: DividerAnimatedProps) => {\n const { animation = \"none\", ...rest } = props;\n const motionProps = dividerAnimationPresets[animation];\n\n return (\n <DividerBase\n {...props}\n as={motion.div}\n initial={animation === \"none\" ? false : undefined}\n {...motionProps}\n {...(rest as Record<string, unknown>)}\n />\n );\n};\n\nDividerAnimated.displayName = \"DividerAnimated\";\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { DividerBase } from '../../chunk-W6PRMYUC.mjs';
|
|
3
|
+
import '../../chunk-DFEZH7TC.mjs';
|
|
4
|
+
import { motion } from 'framer-motion';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
// src/ui/divider/animated/animations.ts
|
|
8
|
+
var dividerAnimationPresets = {
|
|
9
|
+
none: {},
|
|
10
|
+
expand: {
|
|
11
|
+
initial: { scaleX: 0.6, opacity: 0.4 },
|
|
12
|
+
animate: { scaleX: 1, opacity: 1 },
|
|
13
|
+
transition: { duration: 0.35, ease: "easeOut" }
|
|
14
|
+
},
|
|
15
|
+
fade: {
|
|
16
|
+
initial: { opacity: 0 },
|
|
17
|
+
animate: { opacity: 1 },
|
|
18
|
+
transition: { duration: 0.25 }
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
var DividerAnimated = (props) => {
|
|
22
|
+
const { animation = "none", ...rest } = props;
|
|
23
|
+
const motionProps = dividerAnimationPresets[animation];
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
DividerBase,
|
|
26
|
+
{
|
|
27
|
+
...props,
|
|
28
|
+
as: motion.div,
|
|
29
|
+
initial: animation === "none" ? false : void 0,
|
|
30
|
+
...motionProps,
|
|
31
|
+
...rest
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
DividerAnimated.displayName = "DividerAnimated";
|
|
36
|
+
|
|
37
|
+
export { DividerAnimated };
|
|
38
|
+
//# sourceMappingURL=animated.mjs.map
|
|
39
|
+
//# sourceMappingURL=animated.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/ui/divider/animated/animations.ts","../../../src/ui/divider/animated/divider-animated.tsx"],"names":[],"mappings":";;;;;;AAcO,IAAM,uBAAA,GAAmD;AAAA,EAC9D,MAAM,EAAC;AAAA,EACP,MAAA,EAAQ;AAAA,IACN,OAAA,EAAS,EAAE,MAAA,EAAQ,GAAA,EAAK,SAAS,GAAA,EAAI;AAAA,IACrC,OAAA,EAAS,EAAE,MAAA,EAAQ,CAAA,EAAG,SAAS,CAAA,EAAE;AAAA,IACjC,UAAA,EAAY,EAAE,QAAA,EAAU,IAAA,EAAM,MAAM,SAAA;AAAU,GAChD;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,OAAA,EAAS,EAAE,OAAA,EAAS,CAAA,EAAE;AAAA,IACtB,OAAA,EAAS,EAAE,OAAA,EAAS,CAAA,EAAE;AAAA,IACtB,UAAA,EAAY,EAAE,QAAA,EAAU,IAAA;AAAK;AAEjC,CAAA;AClBO,IAAM,eAAA,GAAkB,CAAC,KAAA,KAAgC;AAC9D,EAAA,MAAM,EAAE,SAAA,GAAY,MAAA,EAAQ,GAAG,MAAK,GAAI,KAAA;AACxC,EAAA,MAAM,WAAA,GAAc,wBAAwB,SAAS,CAAA;AAErD,EAAA,uBACE,GAAA;AAAA,IAAC,WAAA;AAAA,IAAA;AAAA,MACE,GAAG,KAAA;AAAA,MACJ,IAAI,MAAA,CAAO,GAAA;AAAA,MACX,OAAA,EAAS,SAAA,KAAc,MAAA,GAAS,KAAA,GAAQ,MAAA;AAAA,MACvC,GAAG,WAAA;AAAA,MACH,GAAI;AAAA;AAAA,GACP;AAEJ;AAEA,eAAA,CAAgB,WAAA,GAAc,iBAAA","file":"animated.mjs","sourcesContent":["import type { HTMLMotionProps } from \"framer-motion\";\n\nimport type { DividerAnimation } from \"./types\";\n\nexport type DividerPresetMotionProps = Pick<\n HTMLMotionProps<\"div\">,\n \"initial\" | \"animate\" | \"transition\" | \"whileHover\"\n>;\n\nexport type DividerAnimationPresets = Record<\n DividerAnimation,\n DividerPresetMotionProps\n>;\n\nexport const dividerAnimationPresets: DividerAnimationPresets = {\n none: {},\n expand: {\n initial: { scaleX: 0.6, opacity: 0.4 },\n animate: { scaleX: 1, opacity: 1 },\n transition: { duration: 0.35, ease: \"easeOut\" },\n },\n fade: {\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n transition: { duration: 0.25 },\n },\n};\n","\"use client\";\n\nimport { motion } from \"framer-motion\";\n\nimport { dividerAnimationPresets } from \"./animations\";\nimport type { DividerAnimatedProps } from \"./types\";\nimport { DividerBase } from \"../divider-base\";\n\nexport const DividerAnimated = (props: DividerAnimatedProps) => {\n const { animation = \"none\", ...rest } = props;\n const motionProps = dividerAnimationPresets[animation];\n\n return (\n <DividerBase\n {...props}\n as={motion.div}\n initial={animation === \"none\" ? false : undefined}\n {...motionProps}\n {...(rest as Record<string, unknown>)}\n />\n );\n};\n\nDividerAnimated.displayName = \"DividerAnimated\";\n"]}
|
package/dist/ui/divider.d.mts
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
declare const dividerToneVariants: (props?: ({
|
|
8
|
-
appearance?: "default" | "muted" | "primary" | "destructive" | "ghost" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare const dividerVariants: (props?: ({
|
|
11
|
-
appearance?: "default" | "muted" | "primary" | "destructive" | "ghost" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
12
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
13
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
14
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
-
declare const dividerLineVariants: (props?: ({
|
|
16
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
17
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
18
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
-
declare const dividerLabelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
20
|
-
|
|
21
|
-
type DividerAnimation = "none" | "expand" | "fade";
|
|
22
|
-
type DividerVariantProps = VariantProps<typeof dividerVariants>;
|
|
23
|
-
type DividerProps = DividerVariantProps & Omit<HTMLMotionProps<"div">, "children"> & {
|
|
24
|
-
animation?: DividerAnimation;
|
|
25
|
-
/** Optional label between divider lines. */
|
|
26
|
-
label?: ReactNode;
|
|
27
|
-
children?: ReactNode;
|
|
28
|
-
};
|
|
2
|
+
import { D as DividerProps } from '../types-Ca3t5aC_.mjs';
|
|
3
|
+
export { a as DividerBaseProps, b as DividerVariantProps, d as dividerLabelVariants, c as dividerLineVariants, e as dividerToneVariants, f as dividerVariants } from '../types-Ca3t5aC_.mjs';
|
|
4
|
+
import 'class-variance-authority';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
29
7
|
|
|
30
8
|
declare function Divider(props: DividerProps): react_jsx_runtime.JSX.Element;
|
|
31
9
|
declare namespace Divider {
|
|
32
10
|
var displayName: string;
|
|
33
11
|
}
|
|
34
12
|
|
|
35
|
-
|
|
36
|
-
type DividerAnimationPresets = Record<DividerAnimation, DividerPresetMotionProps>;
|
|
37
|
-
declare const dividerAnimationPresets: DividerAnimationPresets;
|
|
38
|
-
|
|
39
|
-
export { Divider, type DividerAnimation, type DividerProps, dividerAnimationPresets, dividerLabelVariants, dividerLineVariants, dividerToneVariants, dividerVariants };
|
|
13
|
+
export { Divider, DividerProps };
|
package/dist/ui/divider.d.ts
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
declare const dividerToneVariants: (props?: ({
|
|
8
|
-
appearance?: "default" | "muted" | "primary" | "destructive" | "ghost" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare const dividerVariants: (props?: ({
|
|
11
|
-
appearance?: "default" | "muted" | "primary" | "destructive" | "ghost" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
|
|
12
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
13
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
14
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
-
declare const dividerLineVariants: (props?: ({
|
|
16
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
17
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
18
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
-
declare const dividerLabelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
20
|
-
|
|
21
|
-
type DividerAnimation = "none" | "expand" | "fade";
|
|
22
|
-
type DividerVariantProps = VariantProps<typeof dividerVariants>;
|
|
23
|
-
type DividerProps = DividerVariantProps & Omit<HTMLMotionProps<"div">, "children"> & {
|
|
24
|
-
animation?: DividerAnimation;
|
|
25
|
-
/** Optional label between divider lines. */
|
|
26
|
-
label?: ReactNode;
|
|
27
|
-
children?: ReactNode;
|
|
28
|
-
};
|
|
2
|
+
import { D as DividerProps } from '../types-Ca3t5aC_.js';
|
|
3
|
+
export { a as DividerBaseProps, b as DividerVariantProps, d as dividerLabelVariants, c as dividerLineVariants, e as dividerToneVariants, f as dividerVariants } from '../types-Ca3t5aC_.js';
|
|
4
|
+
import 'class-variance-authority';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
29
7
|
|
|
30
8
|
declare function Divider(props: DividerProps): react_jsx_runtime.JSX.Element;
|
|
31
9
|
declare namespace Divider {
|
|
32
10
|
var displayName: string;
|
|
33
11
|
}
|
|
34
12
|
|
|
35
|
-
|
|
36
|
-
type DividerAnimationPresets = Record<DividerAnimation, DividerPresetMotionProps>;
|
|
37
|
-
declare const dividerAnimationPresets: DividerAnimationPresets;
|
|
38
|
-
|
|
39
|
-
export { Divider, type DividerAnimation, type DividerProps, dividerAnimationPresets, dividerLabelVariants, dividerLineVariants, dividerToneVariants, dividerVariants };
|
|
13
|
+
export { Divider, DividerProps };
|
package/dist/ui/divider.js
CHANGED
|
@@ -1,198 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
4
|
+
var chunkOJ67PZ6N_js = require('../chunk-OJ67PZ6N.js');
|
|
5
|
+
require('../chunk-UOZYPWDZ.js');
|
|
7
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
7
|
|
|
9
|
-
// src/ui/divider/animations.ts
|
|
10
|
-
var dividerAnimationPresets = {
|
|
11
|
-
none: {},
|
|
12
|
-
expand: {
|
|
13
|
-
initial: { scaleX: 0.6, opacity: 0.4 },
|
|
14
|
-
animate: { scaleX: 1, opacity: 1 },
|
|
15
|
-
transition: { duration: 0.35, ease: "easeOut" }
|
|
16
|
-
},
|
|
17
|
-
fade: {
|
|
18
|
-
initial: { opacity: 0 },
|
|
19
|
-
animate: { opacity: 1 },
|
|
20
|
-
transition: { duration: 0.25 }
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var APPEARANCES = {
|
|
24
|
-
default: "text-slate-200",
|
|
25
|
-
muted: "text-slate-500",
|
|
26
|
-
primary: "text-cyan-300",
|
|
27
|
-
destructive: "text-rose-400",
|
|
28
|
-
ghost: "text-slate-600",
|
|
29
|
-
sky: "text-sky-400",
|
|
30
|
-
rose: "text-rose-400",
|
|
31
|
-
purple: "text-purple-400",
|
|
32
|
-
pink: "text-pink-400",
|
|
33
|
-
orange: "text-orange-400",
|
|
34
|
-
yellow: "text-yellow-400",
|
|
35
|
-
teal: "text-teal-400",
|
|
36
|
-
indigo: "text-indigo-400",
|
|
37
|
-
emerald: "text-emerald-400",
|
|
38
|
-
gray: "text-gray-400",
|
|
39
|
-
amber: "text-amber-400",
|
|
40
|
-
violet: "text-violet-400",
|
|
41
|
-
"gradient-blue": "text-blue-400",
|
|
42
|
-
"gradient-green": "text-green-400",
|
|
43
|
-
"gradient-red": "text-red-400",
|
|
44
|
-
"gradient-yellow": "text-yellow-400",
|
|
45
|
-
"gradient-purple": "text-purple-400",
|
|
46
|
-
"gradient-teal": "text-teal-400",
|
|
47
|
-
"gradient-indigo": "text-indigo-400",
|
|
48
|
-
"gradient-pink": "text-pink-400",
|
|
49
|
-
"gradient-orange": "text-orange-400"
|
|
50
|
-
};
|
|
51
|
-
var dividerToneVariants = classVarianceAuthority.cva("", {
|
|
52
|
-
variants: {
|
|
53
|
-
appearance: APPEARANCES
|
|
54
|
-
},
|
|
55
|
-
defaultVariants: { appearance: "default" }
|
|
56
|
-
});
|
|
57
|
-
var dividerVariants = classVarianceAuthority.cva("flex w-full items-center gap-3", {
|
|
58
|
-
variants: {
|
|
59
|
-
appearance: APPEARANCES,
|
|
60
|
-
orientation: {
|
|
61
|
-
horizontal: "w-full flex-row",
|
|
62
|
-
vertical: "h-full min-h-[2rem] w-auto flex-col self-stretch"
|
|
63
|
-
},
|
|
64
|
-
size: {
|
|
65
|
-
sm: "",
|
|
66
|
-
md: "",
|
|
67
|
-
lg: ""
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
compoundVariants: [
|
|
71
|
-
{ orientation: "horizontal", size: "sm", class: "min-h-px" },
|
|
72
|
-
{ orientation: "horizontal", size: "md", class: "min-h-[2px]" },
|
|
73
|
-
{ orientation: "horizontal", size: "lg", class: "min-h-[3px]" },
|
|
74
|
-
{ orientation: "vertical", size: "sm", class: "min-w-px" },
|
|
75
|
-
{ orientation: "vertical", size: "md", class: "min-w-[2px]" },
|
|
76
|
-
{ orientation: "vertical", size: "lg", class: "min-w-[3px]" }
|
|
77
|
-
],
|
|
78
|
-
defaultVariants: {
|
|
79
|
-
appearance: "default",
|
|
80
|
-
orientation: "horizontal",
|
|
81
|
-
size: "md"
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
var dividerLineVariants = classVarianceAuthority.cva(
|
|
85
|
-
"shrink grow rounded-full bg-current opacity-80",
|
|
86
|
-
{
|
|
87
|
-
variants: {
|
|
88
|
-
orientation: {
|
|
89
|
-
horizontal: "h-px",
|
|
90
|
-
vertical: "w-px flex-1"
|
|
91
|
-
},
|
|
92
|
-
size: {
|
|
93
|
-
sm: "",
|
|
94
|
-
md: "",
|
|
95
|
-
lg: ""
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
compoundVariants: [
|
|
99
|
-
{ orientation: "horizontal", size: "sm", class: "h-px" },
|
|
100
|
-
{ orientation: "horizontal", size: "md", class: "h-0.5" },
|
|
101
|
-
{ orientation: "horizontal", size: "lg", class: "h-1" },
|
|
102
|
-
{ orientation: "vertical", size: "sm", class: "w-px" },
|
|
103
|
-
{ orientation: "vertical", size: "md", class: "w-0.5" },
|
|
104
|
-
{ orientation: "vertical", size: "lg", class: "w-1" }
|
|
105
|
-
],
|
|
106
|
-
defaultVariants: {
|
|
107
|
-
orientation: "horizontal",
|
|
108
|
-
size: "md"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
var dividerLabelVariants = classVarianceAuthority.cva(
|
|
113
|
-
"shrink-0 text-xs font-medium uppercase tracking-wide text-current"
|
|
114
|
-
);
|
|
115
8
|
function Divider(props) {
|
|
116
|
-
|
|
117
|
-
className,
|
|
118
|
-
appearance,
|
|
119
|
-
orientation,
|
|
120
|
-
size,
|
|
121
|
-
animation = "none",
|
|
122
|
-
label,
|
|
123
|
-
children,
|
|
124
|
-
ref,
|
|
125
|
-
...rest
|
|
126
|
-
} = props;
|
|
127
|
-
const motionProps = dividerAnimationPresets[animation];
|
|
128
|
-
const slot = label ?? children;
|
|
129
|
-
if (!slot) {
|
|
130
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
131
|
-
framerMotion.motion.div,
|
|
132
|
-
{
|
|
133
|
-
ref,
|
|
134
|
-
"data-slot": "divider",
|
|
135
|
-
role: "separator",
|
|
136
|
-
"aria-orientation": orientation === "vertical" ? "vertical" : "horizontal",
|
|
137
|
-
className: chunkUOZYPWDZ_js.cn(
|
|
138
|
-
dividerToneVariants({ appearance }),
|
|
139
|
-
orientation === "horizontal" ? "flex w-full min-h-px flex-row items-stretch" : "flex h-full min-h-8 w-auto min-w-0 flex-col items-stretch self-stretch",
|
|
140
|
-
className
|
|
141
|
-
),
|
|
142
|
-
initial: animation === "none" ? false : void 0,
|
|
143
|
-
...motionProps,
|
|
144
|
-
...rest,
|
|
145
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
-
"span",
|
|
147
|
-
{
|
|
148
|
-
className: chunkUOZYPWDZ_js.cn(dividerLineVariants({ orientation, size })),
|
|
149
|
-
"aria-hidden": true
|
|
150
|
-
}
|
|
151
|
-
)
|
|
152
|
-
}
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
156
|
-
framerMotion.motion.div,
|
|
157
|
-
{
|
|
158
|
-
ref,
|
|
159
|
-
"data-slot": "divider",
|
|
160
|
-
role: "separator",
|
|
161
|
-
"aria-orientation": orientation === "vertical" ? "vertical" : "horizontal",
|
|
162
|
-
className: chunkUOZYPWDZ_js.cn(
|
|
163
|
-
dividerVariants({ appearance, orientation, size }),
|
|
164
|
-
className
|
|
165
|
-
),
|
|
166
|
-
initial: animation === "none" ? false : void 0,
|
|
167
|
-
...motionProps,
|
|
168
|
-
...rest,
|
|
169
|
-
children: [
|
|
170
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
171
|
-
"span",
|
|
172
|
-
{
|
|
173
|
-
className: chunkUOZYPWDZ_js.cn(dividerLineVariants({ orientation, size })),
|
|
174
|
-
"aria-hidden": true
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "divider-label", className: dividerLabelVariants(), children: slot }),
|
|
178
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
179
|
-
"span",
|
|
180
|
-
{
|
|
181
|
-
className: chunkUOZYPWDZ_js.cn(dividerLineVariants({ orientation, size })),
|
|
182
|
-
"aria-hidden": true
|
|
183
|
-
}
|
|
184
|
-
)
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
);
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOJ67PZ6N_js.DividerBase, { ...props });
|
|
188
10
|
}
|
|
189
11
|
Divider.displayName = "Divider";
|
|
190
12
|
|
|
13
|
+
Object.defineProperty(exports, "dividerLabelVariants", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkOJ67PZ6N_js.dividerLabelVariants; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "dividerLineVariants", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkOJ67PZ6N_js.dividerLineVariants; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "dividerToneVariants", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkOJ67PZ6N_js.dividerToneVariants; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "dividerVariants", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkOJ67PZ6N_js.dividerVariants; }
|
|
28
|
+
});
|
|
191
29
|
exports.Divider = Divider;
|
|
192
|
-
exports.dividerAnimationPresets = dividerAnimationPresets;
|
|
193
|
-
exports.dividerLabelVariants = dividerLabelVariants;
|
|
194
|
-
exports.dividerLineVariants = dividerLineVariants;
|
|
195
|
-
exports.dividerToneVariants = dividerToneVariants;
|
|
196
|
-
exports.dividerVariants = dividerVariants;
|
|
197
30
|
//# sourceMappingURL=divider.js.map
|
|
198
31
|
//# sourceMappingURL=divider.js.map
|
package/dist/ui/divider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/ui/divider/animations.ts","../../src/ui/divider/variants.ts","../../src/ui/divider/divider.tsx"],"names":["cva","jsx","motion","cn","jsxs"],"mappings":";;;;;;;;AAcO,IAAM,uBAAA,GAAmD;AAAA,EAC9D,MAAM,EAAC;AAAA,EACP,MAAA,EAAQ;AAAA,IACN,OAAA,EAAS,EAAE,MAAA,EAAQ,GAAA,EAAK,SAAS,GAAA,EAAI;AAAA,IACrC,OAAA,EAAS,EAAE,MAAA,EAAQ,CAAA,EAAG,SAAS,CAAA,EAAE;AAAA,IACjC,UAAA,EAAY,EAAE,QAAA,EAAU,IAAA,EAAM,MAAM,SAAA;AAAU,GAChD;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,OAAA,EAAS,EAAE,OAAA,EAAS,CAAA,EAAE;AAAA,IACtB,OAAA,EAAS,EAAE,OAAA,EAAS,CAAA,EAAE;AAAA,IACtB,UAAA,EAAY,EAAE,QAAA,EAAU,IAAA;AAAK;AAEjC;ACxBA,IAAM,WAAA,GAAc;AAAA,EAClB,OAAA,EAAS,gBAAA;AAAA,EACT,KAAA,EAAO,gBAAA;AAAA,EACP,OAAA,EAAS,eAAA;AAAA,EACT,WAAA,EAAa,eAAA;AAAA,EACb,KAAA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from \"./types\";\n\ntype DividerPresetMotionProps = Pick<\n HTMLMotionProps<\"div\">,\n \"initial\" | \"animate\" | \"transition\" | \"whileHover\"\n>;\n\nexport type DividerAnimationPresets = Record<\n DividerAnimation,\n DividerPresetMotionProps\n>;\n\nexport const dividerAnimationPresets: DividerAnimationPresets = {\n none: {},\n expand: {\n initial: { scaleX: 0.6, opacity: 0.4 },\n animate: { scaleX: 1, opacity: 1 },\n transition: { duration: 0.35, ease: \"easeOut\" },\n },\n fade: {\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n transition: { duration: 0.25 },\n },\n};\n","import { cva } from \"class-variance-authority\";\n\nconst APPEARANCES = {\n default: \"text-slate-200\",\n muted: \"text-slate-500\",\n primary: \"text-cyan-300\",\n destructive: \"text-rose-400\",\n ghost: \"text-slate-600\",\n sky: \"text-sky-400\",\n rose: \"text-rose-400\",\n purple: \"text-purple-400\",\n pink: \"text-pink-400\",\n orange: \"text-orange-400\",\n yellow: \"text-yellow-400\",\n teal: \"text-teal-400\",\n indigo: \"text-indigo-400\",\n emerald: \"text-emerald-400\",\n gray: \"text-gray-400\",\n amber: \"text-amber-400\",\n violet: \"text-violet-400\",\n \"gradient-blue\": \"text-blue-400\",\n \"gradient-green\": \"text-green-400\",\n \"gradient-red\": \"text-red-400\",\n \"gradient-yellow\": \"text-yellow-400\",\n \"gradient-purple\": \"text-purple-400\",\n \"gradient-teal\": \"text-teal-400\",\n \"gradient-indigo\": \"text-indigo-400\",\n \"gradient-pink\": \"text-pink-400\",\n \"gradient-orange\": \"text-orange-400\",\n};\n\nexport const dividerToneVariants = cva(\"\", {\n variants: {\n appearance: APPEARANCES,\n },\n defaultVariants: { appearance: \"default\" },\n});\n\nexport const dividerVariants = cva(\"flex w-full items-center gap-3\", {\n variants: {\n appearance: APPEARANCES,\n orientation: {\n horizontal: \"w-full flex-row\",\n vertical: \"h-full min-h-[2rem] w-auto flex-col self-stretch\",\n },\n size: {\n sm: \"\",\n md: \"\",\n lg: \"\",\n },\n },\n compoundVariants: [\n { orientation: \"horizontal\", size: \"sm\", class: \"min-h-px\" },\n { orientation: \"horizontal\", size: \"md\", class: \"min-h-[2px]\" },\n { orientation: \"horizontal\", size: \"lg\", class: \"min-h-[3px]\" },\n { orientation: \"vertical\", size: \"sm\", class: \"min-w-px\" },\n { orientation: \"vertical\", size: \"md\", class: \"min-w-[2px]\" },\n { orientation: \"vertical\", size: \"lg\", class: \"min-w-[3px]\" },\n ],\n defaultVariants: {\n appearance: \"default\",\n orientation: \"horizontal\",\n size: \"md\",\n },\n});\n\nexport const dividerLineVariants = cva(\n \"shrink grow rounded-full bg-current opacity-80\",\n {\n variants: {\n orientation: {\n horizontal: \"h-px\",\n vertical: \"w-px flex-1\",\n },\n size: {\n sm: \"\",\n md: \"\",\n lg: \"\",\n },\n },\n compoundVariants: [\n { orientation: \"horizontal\", size: \"sm\", class: \"h-px\" },\n { orientation: \"horizontal\", size: \"md\", class: \"h-0.5\" },\n { orientation: \"horizontal\", size: \"lg\", class: \"h-1\" },\n { orientation: \"vertical\", size: \"sm\", class: \"w-px\" },\n { orientation: \"vertical\", size: \"md\", class: \"w-0.5\" },\n { orientation: \"vertical\", size: \"lg\", class: \"w-1\" },\n ],\n defaultVariants: {\n orientation: \"horizontal\",\n size: \"md\",\n },\n },\n);\n\nexport const dividerLabelVariants = cva(\n \"shrink-0 text-xs font-medium uppercase tracking-wide text-current\",\n);\n","\"use client\";\n\nimport { motion } from \"framer-motion\";\n\nimport { cn } from \"../../lib/utils\";\n\nimport { dividerAnimationPresets } from \"./animations\";\nimport type { DividerProps } from \"./types\";\nimport {\n dividerLabelVariants,\n dividerLineVariants,\n dividerToneVariants,\n dividerVariants,\n} from \"./variants\";\n\nexport function Divider(props: DividerProps) {\n const {\n className,\n appearance,\n orientation,\n size,\n animation = \"none\",\n label,\n children,\n ref,\n ...rest\n } = props;\n const motionProps = dividerAnimationPresets[animation];\n const slot = label ?? children;\n\n if (!slot) {\n return (\n <motion.div\n ref={ref}\n data-slot=\"divider\"\n role=\"separator\"\n aria-orientation={\n orientation === \"vertical\" ? \"vertical\" : \"horizontal\"\n }\n className={cn(\n dividerToneVariants({ appearance }),\n orientation === \"horizontal\"\n ? \"flex w-full min-h-px flex-row items-stretch\"\n : \"flex h-full min-h-8 w-auto min-w-0 flex-col items-stretch self-stretch\",\n className,\n )}\n initial={animation === \"none\" ? false : undefined}\n {...motionProps}\n {...rest}\n >\n <span\n className={cn(dividerLineVariants({ orientation, size }))}\n aria-hidden\n />\n </motion.div>\n );\n }\n\n return (\n <motion.div\n ref={ref}\n data-slot=\"divider\"\n role=\"separator\"\n aria-orientation={orientation === \"vertical\" ? \"vertical\" : \"horizontal\"}\n className={cn(\n dividerVariants({ appearance, orientation, size }),\n className,\n )}\n initial={animation === \"none\" ? false : undefined}\n {...motionProps}\n {...rest}\n >\n <span\n className={cn(dividerLineVariants({ orientation, size }))}\n aria-hidden\n />\n <span data-slot=\"divider-label\" className={dividerLabelVariants()}>\n {slot}\n </span>\n <span\n className={cn(dividerLineVariants({ orientation, size }))}\n aria-hidden\n />\n </motion.div>\n );\n}\n\nDivider.displayName = \"Divider\";\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/ui/divider/divider.tsx"],"names":["jsx","DividerBase"],"mappings":";;;;;;AAIO,SAAS,QAAQ,KAAA,EAAqB;AAC3C,EAAA,uBAAOA,cAAA,CAACC,4BAAA,EAAA,EAAa,GAAG,KAAA,EAAO,CAAA;AACjC;AAEA,OAAA,CAAQ,WAAA,GAAc,SAAA","file":"divider.js","sourcesContent":["// divider.tsx — default static entry (no framer-motion)\nimport { DividerBase } from \"./divider-base\";\nimport type { DividerProps } from \"./types\";\n\nexport function Divider(props: DividerProps) {\n return <DividerBase {...props} />;\n}\n\nDivider.displayName = \"Divider\";\n"]}
|