@zentauri-ui/zentauri-components 1.5.31 → 1.6.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 +78 -69
- package/dist/charts/area.js.map +1 -1
- package/dist/charts/area.mjs.map +1 -1
- package/dist/charts/bubble/Bubble.d.ts.map +1 -1
- package/dist/charts/bubble.js.map +1 -1
- package/dist/charts/bubble.mjs.map +1 -1
- package/dist/charts/pie/Pie.d.ts.map +1 -1
- package/dist/charts/pie.js +20 -2
- package/dist/charts/pie.js.map +1 -1
- package/dist/charts/pie.mjs +20 -2
- package/dist/charts/pie.mjs.map +1 -1
- package/dist/charts/shared/types.d.ts.map +1 -1
- package/dist/{chunk-G3LEYBRV.mjs → chunk-25EAVVGS.mjs} +61 -58
- package/dist/chunk-25EAVVGS.mjs.map +1 -0
- package/dist/{chunk-BCZIYH53.js → chunk-3OXIZ4ZO.js} +28 -28
- package/dist/chunk-3OXIZ4ZO.js.map +1 -0
- package/dist/chunk-3PC7XLJX.js +102 -0
- package/dist/chunk-3PC7XLJX.js.map +1 -0
- package/dist/chunk-4ECCMHAX.mjs +323 -0
- package/dist/chunk-4ECCMHAX.mjs.map +1 -0
- package/dist/{chunk-JJDANNNL.mjs → chunk-4MPNRGUA.mjs} +3 -9
- package/dist/chunk-4MPNRGUA.mjs.map +1 -0
- package/dist/{chunk-Y745GQR2.js → chunk-4PZIDDC6.js} +45 -45
- package/dist/chunk-4PZIDDC6.js.map +1 -0
- package/dist/{chunk-PWL5WD34.js → chunk-662PJBZD.js} +27 -26
- package/dist/chunk-662PJBZD.js.map +1 -0
- package/dist/{chunk-TINHLHCN.mjs → chunk-73RHHGIA.mjs} +39 -36
- package/dist/chunk-73RHHGIA.mjs.map +1 -0
- package/dist/{chunk-OLEMP2HL.js → chunk-746CV3AN.js} +29 -36
- package/dist/chunk-746CV3AN.js.map +1 -0
- package/dist/{chunk-AUGLZ3AN.js → chunk-BMFPUQZC.js} +50 -50
- package/dist/chunk-BMFPUQZC.js.map +1 -0
- package/dist/chunk-CFTDAGKD.js +130 -0
- package/dist/chunk-CFTDAGKD.js.map +1 -0
- package/dist/{chunk-N2OAI2HN.js → chunk-D55YIHBN.js} +15 -15
- package/dist/chunk-D55YIHBN.js.map +1 -0
- package/dist/{chunk-KXUG4WVW.js → chunk-DO2LEXUY.js} +5 -5
- package/dist/{chunk-KXUG4WVW.js.map → chunk-DO2LEXUY.js.map} +1 -1
- package/dist/chunk-EU63V22F.mjs +126 -0
- package/dist/chunk-EU63V22F.mjs.map +1 -0
- package/dist/chunk-EZS47EZW.mjs +70 -0
- package/dist/chunk-EZS47EZW.mjs.map +1 -0
- package/dist/{chunk-E4FZY7O2.js → chunk-GHJN3Z3V.js} +48 -48
- package/dist/chunk-GHJN3Z3V.js.map +1 -0
- package/dist/{chunk-MTLLJFUI.mjs → chunk-GIC3J6HR.mjs} +28 -28
- package/dist/chunk-GIC3J6HR.mjs.map +1 -0
- package/dist/{chunk-C5L465FW.mjs → chunk-HARD4NMB.mjs} +45 -45
- package/dist/chunk-HARD4NMB.mjs.map +1 -0
- package/dist/{chunk-YTRGRHEB.js → chunk-HV7LVRK3.js} +61 -58
- package/dist/chunk-HV7LVRK3.js.map +1 -0
- package/dist/{chunk-Q5B44QW7.js → chunk-J4LG43O2.js} +51 -51
- package/dist/chunk-J4LG43O2.js.map +1 -0
- package/dist/{chunk-ZYZJ74XB.mjs → chunk-J5QJEKY2.mjs} +28 -28
- package/dist/chunk-J5QJEKY2.mjs.map +1 -0
- package/dist/{chunk-7TLKLMBM.js → chunk-JOMSI4WH.js} +18 -15
- package/dist/chunk-JOMSI4WH.js.map +1 -0
- package/dist/{chunk-ZBBFOMSJ.mjs → chunk-M6FS7X54.mjs} +22 -22
- package/dist/chunk-M6FS7X54.mjs.map +1 -0
- package/dist/{chunk-JUDMPOCI.js → chunk-MM3P52WS.js} +22 -22
- package/dist/chunk-MM3P52WS.js.map +1 -0
- package/dist/{chunk-UWA23DUC.js → chunk-OB6TYS5Q.js} +28 -28
- package/dist/chunk-OB6TYS5Q.js.map +1 -0
- package/dist/{chunk-QZTEFGZF.mjs → chunk-OVTWPGMW.mjs} +18 -15
- package/dist/chunk-OVTWPGMW.mjs.map +1 -0
- package/dist/{chunk-7OHC4ERB.mjs → chunk-PPVJ4INP.mjs} +3 -3
- package/dist/{chunk-7OHC4ERB.mjs.map → chunk-PPVJ4INP.mjs.map} +1 -1
- package/dist/{chunk-LN77JJTY.mjs → chunk-PSIAOIXJ.mjs} +48 -48
- package/dist/chunk-PSIAOIXJ.mjs.map +1 -0
- package/dist/chunk-QNF4JPFP.js +339 -0
- package/dist/chunk-QNF4JPFP.js.map +1 -0
- package/dist/{chunk-A6KMZ5ZS.mjs → chunk-QSIJKHC5.mjs} +15 -15
- package/dist/chunk-QSIJKHC5.mjs.map +1 -0
- package/dist/chunk-RFFGQYDQ.mjs +337 -0
- package/dist/chunk-RFFGQYDQ.mjs.map +1 -0
- package/dist/{chunk-INMNX3HQ.mjs → chunk-S5H2OMTZ.mjs} +29 -36
- package/dist/chunk-S5H2OMTZ.mjs.map +1 -0
- package/dist/{chunk-JBAUEGYD.mjs → chunk-TFWKF3DR.mjs} +51 -51
- package/dist/chunk-TFWKF3DR.mjs.map +1 -0
- package/dist/chunk-VGWA26BN.js +72 -0
- package/dist/chunk-VGWA26BN.js.map +1 -0
- package/dist/{chunk-MEJMX4QI.js → chunk-VMCOX3Z2.js} +3 -9
- package/dist/chunk-VMCOX3Z2.js.map +1 -0
- package/dist/chunk-Y3AHRRNM.mjs +99 -0
- package/dist/chunk-Y3AHRRNM.mjs.map +1 -0
- package/dist/{chunk-TJUNN2PT.mjs → chunk-YD3LVW7V.mjs} +27 -26
- package/dist/chunk-YD3LVW7V.mjs.map +1 -0
- package/dist/{chunk-AD2LA3XN.js → chunk-YIO7DFUA.js} +39 -36
- package/dist/chunk-YIO7DFUA.js.map +1 -0
- package/dist/chunk-YRTGORVB.js +232 -0
- package/dist/chunk-YRTGORVB.js.map +1 -0
- package/dist/chunk-Z7QK472J.mjs +220 -0
- package/dist/chunk-Z7QK472J.mjs.map +1 -0
- package/dist/hooks/useDynamicStepper/index.d.ts +1 -1
- package/dist/hooks/useDynamicStepper/index.d.ts.map +1 -1
- package/dist/hooks/useDynamicStepper/useDynamicStepper.d.ts.map +1 -1
- package/dist/hooks/useDynamicStepper.js +2 -2
- package/dist/hooks/useDynamicStepper.mjs +1 -1
- package/dist/ui/accordion/animated.js +7 -7
- package/dist/ui/accordion/animated.mjs +2 -2
- package/dist/ui/accordion/variants.d.ts.map +1 -1
- package/dist/ui/accordion.js +9 -9
- package/dist/ui/accordion.mjs +2 -2
- package/dist/ui/alert/animated.js +2 -2
- package/dist/ui/alert/animated.mjs +1 -1
- package/dist/ui/alert/variants.d.ts.map +1 -1
- package/dist/ui/alert.js +10 -10
- package/dist/ui/alert.mjs +2 -2
- package/dist/ui/avatar/animated.js +5 -5
- package/dist/ui/avatar/animated.mjs +2 -2
- package/dist/ui/avatar/variants.d.ts.map +1 -1
- package/dist/ui/avatar.js +9 -9
- package/dist/ui/avatar.mjs +2 -2
- package/dist/ui/badge/animated.js +2 -2
- package/dist/ui/badge/animated.mjs +1 -1
- package/dist/ui/badge/variants.d.ts +24 -24
- package/dist/ui/badge/variants.d.ts.map +1 -1
- package/dist/ui/badge.js +4 -4
- package/dist/ui/badge.mjs +2 -2
- package/dist/ui/breadcrumb/variants.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +30 -25
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/breadcrumb.mjs +30 -25
- package/dist/ui/breadcrumb.mjs.map +1 -1
- package/dist/ui/buttons/animated.js +3 -3
- package/dist/ui/buttons/animated.mjs +1 -1
- package/dist/ui/buttons/variants.d.ts.map +1 -1
- package/dist/ui/buttons.js +4 -4
- package/dist/ui/buttons.mjs +2 -2
- package/dist/ui/card/animated.js +7 -7
- package/dist/ui/card/animated.mjs +2 -2
- package/dist/ui/card/variants.d.ts.map +1 -1
- package/dist/ui/card.js +12 -12
- package/dist/ui/card.mjs +2 -2
- package/dist/ui/divider/animated.js +2 -2
- package/dist/ui/divider/animated.mjs +1 -1
- package/dist/ui/divider.js +6 -6
- package/dist/ui/divider.mjs +2 -2
- package/dist/ui/drawer/animated.js +11 -11
- package/dist/ui/drawer/animated.mjs +2 -2
- package/dist/ui/drawer/variants.d.ts.map +1 -1
- package/dist/ui/drawer.js +11 -11
- package/dist/ui/drawer.mjs +1 -1
- package/dist/ui/dropdown/variants.d.ts.map +1 -1
- package/dist/ui/dropdown.js +52 -52
- package/dist/ui/dropdown.js.map +1 -1
- package/dist/ui/dropdown.mjs +52 -52
- package/dist/ui/dropdown.mjs.map +1 -1
- package/dist/ui/dynamic-stepper/index.d.ts +1 -1
- package/dist/ui/dynamic-stepper/index.d.ts.map +1 -1
- package/dist/ui/dynamic-stepper/variants.d.ts.map +1 -1
- package/dist/ui/dynamic-stepper.js +75 -72
- package/dist/ui/dynamic-stepper.js.map +1 -1
- package/dist/ui/dynamic-stepper.mjs +72 -69
- package/dist/ui/dynamic-stepper.mjs.map +1 -1
- package/dist/ui/empty-state/animated.js +2 -2
- package/dist/ui/empty-state/animated.mjs +1 -1
- package/dist/ui/empty-state/variants.d.ts.map +1 -1
- package/dist/ui/empty-state.js +10 -10
- package/dist/ui/empty-state.mjs +2 -2
- package/dist/ui/file-upload/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload/variants.d.ts.map +1 -1
- package/dist/ui/file-upload.js +18 -18
- package/dist/ui/file-upload.js.map +1 -1
- package/dist/ui/file-upload.mjs +18 -18
- package/dist/ui/file-upload.mjs.map +1 -1
- package/dist/ui/inputs/animated.js +3 -3
- package/dist/ui/inputs/animated.mjs +1 -1
- package/dist/ui/inputs/types.d.ts +1 -1
- package/dist/ui/inputs/types.d.ts.map +1 -1
- package/dist/ui/inputs/variants.d.ts +1 -1
- package/dist/ui/inputs/variants.d.ts.map +1 -1
- package/dist/ui/inputs.js +4 -4
- package/dist/ui/inputs.mjs +2 -2
- package/dist/ui/modal/animated.js +4 -4
- package/dist/ui/modal/animated.mjs +1 -1
- package/dist/ui/modal/variants.d.ts.map +1 -1
- package/dist/ui/modal.js +12 -12
- package/dist/ui/modal.mjs +2 -2
- package/dist/ui/pagination/types.d.ts.map +1 -1
- package/dist/ui/pagination/variants.d.ts.map +1 -1
- package/dist/ui/pagination.js +33 -33
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/pagination.mjs +30 -30
- package/dist/ui/pagination.mjs.map +1 -1
- package/dist/ui/progress/animated.js +8 -8
- package/dist/ui/progress/animated.mjs +2 -2
- package/dist/ui/progress/variants.d.ts.map +1 -1
- package/dist/ui/progress.js +9 -9
- package/dist/ui/progress.mjs +2 -2
- package/dist/ui/search/search-bar.d.ts.map +1 -1
- package/dist/ui/search/search-suggestion-list.d.ts.map +1 -1
- package/dist/ui/search.js +10 -9
- package/dist/ui/search.js.map +1 -1
- package/dist/ui/search.mjs +9 -8
- package/dist/ui/search.mjs.map +1 -1
- package/dist/ui/select/variants.d.ts.map +1 -1
- package/dist/ui/select.js +66 -66
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/select.mjs +66 -66
- package/dist/ui/select.mjs.map +1 -1
- package/dist/ui/skeleton/animated.js +8 -8
- package/dist/ui/skeleton/animated.mjs +1 -1
- package/dist/ui/skeleton/variants.d.ts.map +1 -1
- package/dist/ui/skeleton.js +9 -9
- package/dist/ui/skeleton.mjs +1 -1
- package/dist/ui/slider.js +25 -25
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/slider.mjs +25 -25
- package/dist/ui/slider.mjs.map +1 -1
- package/dist/ui/spinner/animated.js +22 -22
- package/dist/ui/spinner/animated.js.map +1 -1
- package/dist/ui/spinner/animated.mjs +22 -22
- package/dist/ui/spinner/animated.mjs.map +1 -1
- package/dist/ui/stepper/stepper.d.ts.map +1 -1
- package/dist/ui/stepper/variants.d.ts.map +1 -1
- package/dist/ui/stepper.js +29 -26
- package/dist/ui/stepper.js.map +1 -1
- package/dist/ui/stepper.mjs +29 -26
- package/dist/ui/stepper.mjs.map +1 -1
- package/dist/ui/table/animated.js +8 -8
- package/dist/ui/table/animated.mjs +2 -2
- package/dist/ui/table/variants.d.ts.map +1 -1
- package/dist/ui/table.js +14 -14
- package/dist/ui/table.mjs +1 -1
- package/dist/ui/tabs/animated.js +2 -2
- package/dist/ui/tabs/animated.mjs +1 -1
- package/dist/ui/tabs/variants.d.ts.map +1 -1
- package/dist/ui/tabs.js +9 -9
- package/dist/ui/tabs.mjs +1 -1
- package/dist/ui/toast/animated.js +7 -7
- package/dist/ui/toast/animated.mjs +1 -1
- package/dist/ui/toast/toast-base.d.ts.map +1 -1
- package/dist/ui/toast/variants.d.ts.map +1 -1
- package/dist/ui/toast.js +12 -12
- package/dist/ui/toast.mjs +1 -1
- package/dist/ui/toggle/animated/toggle-animated.d.ts.map +1 -1
- package/dist/ui/toggle/animated.js +5 -4
- package/dist/ui/toggle/animated.js.map +1 -1
- package/dist/ui/toggle/animated.mjs +4 -3
- package/dist/ui/toggle/animated.mjs.map +1 -1
- package/dist/ui/toggle/toggle-base.d.ts.map +1 -1
- package/dist/ui/toggle/variants.d.ts +1 -0
- package/dist/ui/toggle/variants.d.ts.map +1 -1
- package/dist/ui/toggle.js +8 -7
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/toggle.mjs +6 -5
- package/dist/ui/toggle.mjs.map +1 -1
- package/dist/ui/tooltip/animated.js +3 -3
- package/dist/ui/tooltip/animated.mjs +1 -1
- package/dist/ui/tooltip/variants.d.ts.map +1 -1
- package/dist/ui/tooltip.js +7 -7
- package/dist/ui/tooltip.mjs +1 -1
- package/dist/ui/typography/variants.d.ts.map +1 -1
- package/dist/ui/typography.js +19 -19
- package/dist/ui/typography.js.map +1 -1
- package/dist/ui/typography.mjs +19 -19
- package/dist/ui/typography.mjs.map +1 -1
- package/package.json +4 -3
- package/src/charts/area/Area.tsx +1 -1
- package/src/charts/bubble/Bubble.tsx +10 -2
- package/src/charts/pie/Pie.tsx +22 -3
- package/src/charts/shared/types.ts +1 -1
- package/src/hooks/useDynamicStepper/index.ts +1 -3
- package/src/hooks/useDynamicStepper/useDynamicStepper.ts +1 -7
- package/src/ui/accordion/variants.ts +55 -43
- package/src/ui/alert/variants.ts +45 -32
- package/src/ui/avatar/variants.ts +34 -26
- package/src/ui/badge/variants.ts +42 -29
- package/src/ui/breadcrumb/variants.ts +30 -25
- package/src/ui/buttons/variants.ts +40 -30
- package/src/ui/card/variants.ts +49 -39
- package/src/ui/divider/variants.ts +26 -26
- package/src/ui/drawer/drawer-base.tsx +1 -1
- package/src/ui/drawer/variants.ts +64 -48
- package/src/ui/dropdown/dropdown.tsx +1 -1
- package/src/ui/dropdown/variants.ts +63 -52
- package/src/ui/dynamic-stepper/dynamic-stepper.test.tsx +6 -2
- package/src/ui/dynamic-stepper/dynamic-stepper.tsx +2 -2
- package/src/ui/dynamic-stepper/index.ts +1 -3
- package/src/ui/dynamic-stepper/variants.ts +73 -64
- package/src/ui/empty-state/variants.ts +14 -11
- package/src/ui/file-upload/file-upload.tsx +5 -3
- package/src/ui/file-upload/variants.ts +16 -15
- package/src/ui/inputs/types.ts +1 -1
- package/src/ui/inputs/variants.ts +106 -47
- package/src/ui/modal/modal-base.tsx +1 -1
- package/src/ui/modal/variants.ts +64 -47
- package/src/ui/pagination/pagination.tsx +1 -1
- package/src/ui/pagination/types.ts +1 -4
- package/src/ui/pagination/variants.ts +31 -28
- package/src/ui/progress/variants.ts +79 -65
- package/src/ui/search/search-bar.tsx +2 -1
- package/src/ui/search/search-suggestion-list.tsx +7 -5
- package/src/ui/select/variants.ts +72 -66
- package/src/ui/skeleton/variants.ts +22 -13
- package/src/ui/slider/variants.ts +25 -25
- package/src/ui/spinner/animated/variants.ts +22 -22
- package/src/ui/stepper/stepper.tsx +5 -2
- package/src/ui/stepper/variants.ts +25 -24
- package/src/ui/table/table-base.tsx +1 -1
- package/src/ui/table/variants.ts +53 -45
- package/src/ui/tabs/variants.ts +38 -23
- package/src/ui/toast/toast-base.tsx +1 -4
- package/src/ui/toast/variants.ts +33 -26
- package/src/ui/toggle/animated/toggle-animated.tsx +3 -2
- package/src/ui/toggle/toggle-base.tsx +4 -3
- package/src/ui/toggle/variants.ts +60 -28
- package/src/ui/tooltip/variants.ts +21 -20
- package/src/ui/typography/code-block-base.tsx +1 -1
- package/src/ui/typography/variants.ts +21 -18
- package/dist/chunk-2BAMNRAL.mjs +0 -323
- package/dist/chunk-2BAMNRAL.mjs.map +0 -1
- package/dist/chunk-5TV7EL3H.mjs +0 -70
- package/dist/chunk-5TV7EL3H.mjs.map +0 -1
- package/dist/chunk-7TLKLMBM.js.map +0 -1
- package/dist/chunk-A6KMZ5ZS.mjs.map +0 -1
- package/dist/chunk-AD2LA3XN.js.map +0 -1
- package/dist/chunk-AOEI4V3W.mjs +0 -286
- package/dist/chunk-AOEI4V3W.mjs.map +0 -1
- package/dist/chunk-AUGLZ3AN.js.map +0 -1
- package/dist/chunk-BCZIYH53.js.map +0 -1
- package/dist/chunk-C5L465FW.mjs.map +0 -1
- package/dist/chunk-E4FZY7O2.js.map +0 -1
- package/dist/chunk-FQBMIZH2.mjs +0 -217
- package/dist/chunk-FQBMIZH2.mjs.map +0 -1
- package/dist/chunk-G3LEYBRV.mjs.map +0 -1
- package/dist/chunk-I6GR234Z.mjs +0 -126
- package/dist/chunk-I6GR234Z.mjs.map +0 -1
- package/dist/chunk-INMNX3HQ.mjs.map +0 -1
- package/dist/chunk-JBAUEGYD.mjs.map +0 -1
- package/dist/chunk-JJDANNNL.mjs.map +0 -1
- package/dist/chunk-JQ5TIJ4F.mjs +0 -68
- package/dist/chunk-JQ5TIJ4F.mjs.map +0 -1
- package/dist/chunk-JUDMPOCI.js.map +0 -1
- package/dist/chunk-LN77JJTY.mjs.map +0 -1
- package/dist/chunk-MCOQHXRW.js +0 -130
- package/dist/chunk-MCOQHXRW.js.map +0 -1
- package/dist/chunk-MEJMX4QI.js.map +0 -1
- package/dist/chunk-MTLLJFUI.mjs.map +0 -1
- package/dist/chunk-N2OAI2HN.js.map +0 -1
- package/dist/chunk-OB4KJZK2.js +0 -72
- package/dist/chunk-OB4KJZK2.js.map +0 -1
- package/dist/chunk-OLEMP2HL.js.map +0 -1
- package/dist/chunk-PWL5WD34.js.map +0 -1
- package/dist/chunk-Q5B44QW7.js.map +0 -1
- package/dist/chunk-QZKMFSH5.js +0 -288
- package/dist/chunk-QZKMFSH5.js.map +0 -1
- package/dist/chunk-QZTEFGZF.mjs.map +0 -1
- package/dist/chunk-S7WKFNPT.js +0 -229
- package/dist/chunk-S7WKFNPT.js.map +0 -1
- package/dist/chunk-TINHLHCN.mjs.map +0 -1
- package/dist/chunk-TJUNN2PT.mjs.map +0 -1
- package/dist/chunk-UWA23DUC.js.map +0 -1
- package/dist/chunk-X22LLJL6.js +0 -71
- package/dist/chunk-X22LLJL6.js.map +0 -1
- package/dist/chunk-Y745GQR2.js.map +0 -1
- package/dist/chunk-YTRGRHEB.js.map +0 -1
- package/dist/chunk-ZBBFOMSJ.mjs.map +0 -1
- package/dist/chunk-ZYZJ74XB.mjs.map +0 -1
|
@@ -5,47 +5,50 @@ import { cva } from "class-variance-authority";
|
|
|
5
5
|
* `components/ui/buttons/variants.ts` for consistent design-system tokens.
|
|
6
6
|
*/
|
|
7
7
|
export const paginationListVariants = cva(
|
|
8
|
-
"inline-flex flex-wrap items-center rounded-xl border p-1 ring-offset-slate-950",
|
|
8
|
+
"inline-flex flex-wrap items-center rounded-xl border p-1 ring-offset-slate-50 dark:ring-offset-slate-950",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
appearance: {
|
|
12
|
-
default:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
default:
|
|
13
|
+
"border-black/10 dark:border-white/10 bg-black/[0.03] dark:bg-white/[0.03]",
|
|
14
|
+
secondary:
|
|
15
|
+
"border-black/10 dark:border-white/10 bg-slate-100/40 dark:bg-slate-900/40",
|
|
16
|
+
destructive: "border-rose-500/25 bg-rose-50 dark:bg-rose-950/20",
|
|
17
|
+
outline: "border-black/15 dark:border-white/15 bg-transparent",
|
|
16
18
|
ghost: "border-transparent bg-transparent",
|
|
17
19
|
link: "border-transparent bg-transparent",
|
|
18
|
-
glass:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
glass:
|
|
21
|
+
"border-black/15 dark:border-white/15 bg-black/5 dark:bg-white/5 backdrop-blur-md",
|
|
22
|
+
emerald: "border-emerald-500/25 bg-emerald-50 dark:bg-emerald-950/20",
|
|
23
|
+
indigo: "border-indigo-500/25 bg-indigo-50 dark:bg-indigo-950/20",
|
|
24
|
+
purple: "border-purple-500/25 bg-purple-50 dark:bg-purple-950/20",
|
|
25
|
+
pink: "border-pink-500/25 bg-pink-50 dark:bg-pink-950/20",
|
|
26
|
+
rose: "border-rose-500/25 bg-rose-50 dark:bg-rose-950/20",
|
|
27
|
+
sky: "border-sky-500/25 bg-sky-50 dark:bg-sky-950/20",
|
|
28
|
+
teal: "border-teal-500/25 bg-teal-50 dark:bg-teal-950/20",
|
|
29
|
+
yellow: "border-yellow-500/25 bg-yellow-50 dark:bg-yellow-950/20",
|
|
30
|
+
orange: "border-orange-500/25 bg-orange-50 dark:bg-orange-950/20",
|
|
31
|
+
gray: "border-gray-500/25 bg-gray-50 dark:bg-gray-950/20",
|
|
32
|
+
amber: "border-amber-500/25 bg-amber-50 dark:bg-amber-950/20",
|
|
33
|
+
violet: "border-violet-500/25 bg-violet-50 dark:bg-violet-950/20",
|
|
31
34
|
"gradient-blue":
|
|
32
|
-
"border-blue-500/30 bg-linear-to-r from-blue-950/30 to-purple-950/30",
|
|
35
|
+
"border-blue-500/30 bg-linear-to-r from-blue-50 dark:from-blue-950/30 to-purple-50 dark:to-purple-950/30",
|
|
33
36
|
"gradient-green":
|
|
34
|
-
"border-lime-500/30 bg-linear-to-r from-green-950/30 to-lime-950/30",
|
|
37
|
+
"border-lime-500/30 bg-linear-to-r from-green-50 dark:from-green-950/30 to-lime-50 dark:to-lime-950/30",
|
|
35
38
|
"gradient-red":
|
|
36
|
-
"border-pink-500/30 bg-linear-to-r from-red-950/30 to-pink-950/30",
|
|
39
|
+
"border-pink-500/30 bg-linear-to-r from-red-50 dark:from-red-950/30 to-pink-50 dark:to-pink-950/30",
|
|
37
40
|
"gradient-yellow":
|
|
38
|
-
"border-orange-500/30 bg-linear-to-r from-yellow-950/30 to-orange-950/30",
|
|
41
|
+
"border-orange-500/30 bg-linear-to-r from-yellow-50 dark:from-yellow-950/30 to-orange-50 dark:to-orange-950/30",
|
|
39
42
|
"gradient-purple":
|
|
40
|
-
"border-pink-500/30 bg-linear-to-r from-purple-950/30 to-pink-950/30",
|
|
43
|
+
"border-pink-500/30 bg-linear-to-r from-purple-50 dark:from-purple-950/30 to-pink-50 dark:to-pink-950/30",
|
|
41
44
|
"gradient-teal":
|
|
42
|
-
"border-cyan-500/30 bg-linear-to-r from-teal-950/30 to-cyan-950/30",
|
|
45
|
+
"border-cyan-500/30 bg-linear-to-r from-teal-50 dark:from-teal-950/30 to-cyan-50 dark:to-cyan-950/30",
|
|
43
46
|
"gradient-indigo":
|
|
44
|
-
"border-purple-500/30 bg-linear-to-r from-indigo-950/30 to-purple-950/30",
|
|
47
|
+
"border-purple-500/30 bg-linear-to-r from-indigo-50 dark:from-indigo-950/30 to-purple-50 dark:to-purple-950/30",
|
|
45
48
|
"gradient-pink":
|
|
46
|
-
"border-rose-500/30 bg-linear-to-r from-pink-950/30 to-rose-950/30",
|
|
49
|
+
"border-rose-500/30 bg-linear-to-r from-pink-50 dark:from-pink-950/30 to-rose-50 dark:to-rose-950/30",
|
|
47
50
|
"gradient-orange":
|
|
48
|
-
"border-orange-500/30 bg-linear-to-r from-orange-950/30 to-red-950/30",
|
|
51
|
+
"border-orange-500/30 bg-linear-to-r from-orange-50 dark:from-orange-950/30 to-red-50 dark:to-red-950/30",
|
|
49
52
|
},
|
|
50
53
|
size: {
|
|
51
54
|
sm: "gap-0.5",
|
|
@@ -72,7 +75,7 @@ export const paginationListVariants = cva(
|
|
|
72
75
|
);
|
|
73
76
|
|
|
74
77
|
export const paginationEllipsisVariants = cva(
|
|
75
|
-
"inline-flex min-w-[2ch] select-none items-center justify-center px-1 font-medium text-slate-400",
|
|
78
|
+
"inline-flex min-w-[2ch] select-none items-center justify-center px-1 font-medium text-slate-500 dark:text-slate-400",
|
|
76
79
|
{
|
|
77
80
|
variants: {
|
|
78
81
|
size: {
|
|
@@ -1,74 +1,88 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
|
|
3
|
-
export const progressVariants = cva(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"[--progress-fill:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
3
|
+
export const progressVariants = cva(
|
|
4
|
+
"w-full text-slate-900 dark:text-slate-50",
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
appearance: {
|
|
8
|
+
default:
|
|
9
|
+
"[--progress-fill:theme(colors.slate.900)] dark:[--progress-fill:theme(colors.slate.50)]",
|
|
10
|
+
secondary:
|
|
11
|
+
"[--progress-fill:theme(colors.slate.600)] dark:[--progress-fill:theme(colors.slate.300)]",
|
|
12
|
+
destructive:
|
|
13
|
+
"[--progress-fill:theme(colors.rose.800)] dark:[--progress-fill:theme(colors.rose.400)]",
|
|
14
|
+
emerald:
|
|
15
|
+
"[--progress-fill:theme(colors.emerald.800)] dark:[--progress-fill:theme(colors.emerald.400)]",
|
|
16
|
+
indigo:
|
|
17
|
+
"[--progress-fill:theme(colors.indigo.800)] dark:[--progress-fill:theme(colors.indigo.400)]",
|
|
18
|
+
purple:
|
|
19
|
+
"[--progress-fill:theme(colors.purple.800)] dark:[--progress-fill:theme(colors.purple.400)]",
|
|
20
|
+
pink: "[--progress-fill:theme(colors.pink.800)] dark:[--progress-fill:theme(colors.pink.400)]",
|
|
21
|
+
rose: "[--progress-fill:theme(colors.rose.800)] dark:[--progress-fill:theme(colors.rose.400)]",
|
|
22
|
+
sky: "[--progress-fill:theme(colors.sky.800)] dark:[--progress-fill:theme(colors.sky.400)]",
|
|
23
|
+
teal: "[--progress-fill:theme(colors.teal.800)] dark:[--progress-fill:theme(colors.teal.400)]",
|
|
24
|
+
yellow:
|
|
25
|
+
"[--progress-fill:theme(colors.yellow.800)] dark:[--progress-fill:theme(colors.yellow.400)]",
|
|
26
|
+
orange:
|
|
27
|
+
"[--progress-fill:theme(colors.orange.800)] dark:[--progress-fill:theme(colors.orange.400)]",
|
|
28
|
+
outline:
|
|
29
|
+
"[--progress-fill:theme(colors.cyan.700)] dark:[--progress-fill:theme(colors.cyan.300)]",
|
|
30
|
+
ghost:
|
|
31
|
+
"[--progress-fill:theme(colors.slate.800)] dark:[--progress-fill:theme(colors.slate.200)]",
|
|
32
|
+
glass:
|
|
33
|
+
"[--progress-fill:theme(colors.slate.900)] dark:[--progress-fill:theme(colors.white)]",
|
|
34
|
+
"gradient-blue":
|
|
35
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.blue.500),theme(colors.purple.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.blue.500),theme(colors.purple.500))]",
|
|
36
|
+
"gradient-green":
|
|
37
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.green.500),theme(colors.lime.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.green.500),theme(colors.lime.500))]",
|
|
38
|
+
"gradient-red":
|
|
39
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.red.500),theme(colors.pink.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.red.500),theme(colors.pink.500))]",
|
|
40
|
+
"gradient-yellow":
|
|
41
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.yellow.500),theme(colors.orange.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.yellow.500),theme(colors.orange.500))]",
|
|
42
|
+
"gradient-purple":
|
|
43
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.purple.500),theme(colors.pink.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.purple.500),theme(colors.pink.500))]",
|
|
44
|
+
"gradient-teal":
|
|
45
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.teal.500),theme(colors.cyan.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.teal.500),theme(colors.cyan.500))]",
|
|
46
|
+
"gradient-indigo":
|
|
47
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.indigo.500),theme(colors.purple.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.indigo.500),theme(colors.purple.500))]",
|
|
48
|
+
"gradient-pink":
|
|
49
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.pink.500),theme(colors.rose.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.pink.500),theme(colors.rose.500))]",
|
|
50
|
+
"gradient-orange":
|
|
51
|
+
"[--progress-fill:linear-gradient(90deg,theme(colors.orange.500),theme(colors.red.500))] dark:[--progress-fill:linear-gradient(90deg,theme(colors.orange.500),theme(colors.red.500))]",
|
|
52
|
+
},
|
|
53
|
+
size: {
|
|
54
|
+
xs: "text-[0.65rem]",
|
|
55
|
+
sm: "text-xs",
|
|
56
|
+
md: "text-sm",
|
|
57
|
+
lg: "text-base",
|
|
58
|
+
xl: "text-lg",
|
|
59
|
+
},
|
|
60
|
+
shape: {
|
|
61
|
+
flat: "rounded-none",
|
|
62
|
+
rounded: "rounded-md",
|
|
63
|
+
pill: "rounded-full",
|
|
64
|
+
},
|
|
65
|
+
striped: {
|
|
66
|
+
true: "",
|
|
67
|
+
false: "",
|
|
68
|
+
},
|
|
69
|
+
animated: {
|
|
70
|
+
true: "",
|
|
71
|
+
false: "",
|
|
72
|
+
},
|
|
55
73
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
74
|
+
defaultVariants: {
|
|
75
|
+
appearance: "default",
|
|
76
|
+
size: "md",
|
|
77
|
+
shape: "rounded",
|
|
78
|
+
striped: false,
|
|
79
|
+
animated: false,
|
|
59
80
|
},
|
|
60
81
|
},
|
|
61
|
-
|
|
62
|
-
appearance: "default",
|
|
63
|
-
size: "md",
|
|
64
|
-
shape: "rounded",
|
|
65
|
-
striped: false,
|
|
66
|
-
animated: false,
|
|
67
|
-
},
|
|
68
|
-
});
|
|
82
|
+
);
|
|
69
83
|
|
|
70
84
|
export const progressTrackVariants = cva(
|
|
71
|
-
"relative w-full overflow-hidden bg-white/10",
|
|
85
|
+
"relative w-full overflow-hidden bg-black/10 dark:bg-white/10",
|
|
72
86
|
{
|
|
73
87
|
variants: {
|
|
74
88
|
size: {
|
|
@@ -96,7 +110,7 @@ export const progressBarVariants = cva(
|
|
|
96
110
|
{
|
|
97
111
|
variants: {
|
|
98
112
|
striped: {
|
|
99
|
-
true: "bg-[repeating-linear-gradient(135deg,rgba(255,255,255,0.18)_0,rgba(255,255,255,0.18)_10px,transparent_10px,transparent_20px)]",
|
|
113
|
+
true: "bg-[repeating-linear-gradient(135deg,rgba(15,23,42,0.12)_0,rgba(15,23,42,0.12)_10px,transparent_10px,transparent_20px)] dark:bg-[repeating-linear-gradient(135deg,rgba(255,255,255,0.18)_0,rgba(255,255,255,0.18)_10px,transparent_10px,transparent_20px)]",
|
|
100
114
|
false: "[background:var(--progress-fill)]",
|
|
101
115
|
},
|
|
102
116
|
},
|
|
@@ -38,7 +38,7 @@ export const SearchBar = function SearchBar({
|
|
|
38
38
|
>
|
|
39
39
|
{leadingSlot ? (
|
|
40
40
|
<span
|
|
41
|
-
className="pointer-events-none absolute left-3 top-1/2 z-1 flex -translate-y-1/2 text-slate-
|
|
41
|
+
className="pointer-events-none absolute left-3 top-1/2 z-1 flex -translate-y-1/2 text-slate-900 dark:text-slate-200 [&_svg]:size-4"
|
|
42
42
|
aria-hidden
|
|
43
43
|
>
|
|
44
44
|
{leadingSlot}
|
|
@@ -58,6 +58,7 @@ export const SearchBar = function SearchBar({
|
|
|
58
58
|
inputVariants({ appearance, size: inputSize, ring, as: "input" }),
|
|
59
59
|
leadingSlot ? "pl-10" : null,
|
|
60
60
|
inputClassName,
|
|
61
|
+
"[&::-webkit-search-cancel-button]:hidden",
|
|
61
62
|
)}
|
|
62
63
|
onChange={(event) => {
|
|
63
64
|
onChange?.(event);
|
|
@@ -8,7 +8,7 @@ import { searchSuggestionOptionDomId } from "./search-suggestion-utils";
|
|
|
8
8
|
import type { SearchSuggestionListProps } from "./types";
|
|
9
9
|
|
|
10
10
|
const rowClassName =
|
|
11
|
-
"flex w-full flex-col gap-0.5 rounded-lg px-3 py-2.5 text-left text-sm transition-colors hover:bg-white/5 focus-visible:bg-white/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-400/50";
|
|
11
|
+
"flex w-full flex-col gap-0.5 rounded-lg px-3 py-2.5 text-left text-sm transition-colors dark:hover:bg-white/5 hover:bg-black/10 focus-visible:bg-white/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-400/50";
|
|
12
12
|
|
|
13
13
|
export function SearchSuggestionList({
|
|
14
14
|
items,
|
|
@@ -25,7 +25,7 @@ export function SearchSuggestionList({
|
|
|
25
25
|
<div
|
|
26
26
|
data-slot="search-suggestion-list-empty"
|
|
27
27
|
className={cn(
|
|
28
|
-
"px-1 py-6 text-center text-sm text-slate-
|
|
28
|
+
"px-1 py-6 text-center text-sm text-slate-900 dark:text-slate-200",
|
|
29
29
|
className,
|
|
30
30
|
)}
|
|
31
31
|
>
|
|
@@ -78,7 +78,7 @@ export function SearchSuggestionList({
|
|
|
78
78
|
{showGroup ? (
|
|
79
79
|
<div
|
|
80
80
|
role="presentation"
|
|
81
|
-
className="sticky top-0 z-1 bg-slate-950/95 px-2 pb-1 pt-2 text-xs font-semibold uppercase tracking-wide text-slate-
|
|
81
|
+
className="sticky rounded-lg top-0 z-1 dark:bg-slate-950/95 bg-slate-50/95 px-2 pb-1 pt-2 text-xs font-semibold uppercase tracking-wide text-slate-900 dark:text-slate-200 backdrop-blur-sm"
|
|
82
82
|
>
|
|
83
83
|
{item.group}
|
|
84
84
|
</div>
|
|
@@ -94,9 +94,11 @@ export function SearchSuggestionList({
|
|
|
94
94
|
onFocus={() => onActiveIdChange?.(item.id)}
|
|
95
95
|
onClick={() => onSelect(item.id)}
|
|
96
96
|
>
|
|
97
|
-
<span className="font-medium text-slate-100">
|
|
97
|
+
<span className="font-medium text-slate-900 dark:text-slate-100">
|
|
98
|
+
{item.label}
|
|
99
|
+
</span>
|
|
98
100
|
{item.description ? (
|
|
99
|
-
<span className="truncate text-xs text-slate-
|
|
101
|
+
<span className="truncate text-xs text-slate-900 dark:text-slate-200">
|
|
100
102
|
{item.description}
|
|
101
103
|
</span>
|
|
102
104
|
) : null}
|
|
@@ -1,41 +1,47 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
|
|
3
3
|
export const selectTriggerVariants = cva(
|
|
4
|
-
"flex items-center justify-between rounded-md border transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-offset-2",
|
|
4
|
+
"flex items-center cursor-pointer justify-between rounded-md border transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-600 dark:focus-visible:ring-gray-400 focus-visible:ring-offset-2",
|
|
5
5
|
{
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
|
-
default:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
default:
|
|
9
|
+
"border-gray-300 dark:border-gray-300 bg-white dark:bg-black text-gray-900 dark:text-white",
|
|
10
|
+
outline: "border-2 border-gray-500 text-gray-500 dark:text-gray-100",
|
|
11
|
+
ghost: "border-transparent text-slate-900 dark:text-slate-200",
|
|
12
|
+
sky: "border-sky-900 dark:border-sky-600 text-sky-900 dark:text-sky-600",
|
|
13
|
+
rose: "border-rose-900 dark:border-rose-600 text-rose-900 dark:text-rose-600",
|
|
14
|
+
purple:
|
|
15
|
+
"border-purple-900 dark:border-purple-600 text-purple-900 dark:text-purple-600",
|
|
16
|
+
pink: "border-pink-900 dark:border-pink-600 text-pink-900 dark:text-pink-600",
|
|
17
|
+
orange:
|
|
18
|
+
"border-orange-900 dark:border-orange-600 text-orange-900 dark:text-orange-600",
|
|
19
|
+
yellow:
|
|
20
|
+
"border-yellow-900 dark:border-yellow-600 text-yellow-900 dark:text-yellow-600",
|
|
21
|
+
teal: "border-teal-900 dark:border-teal-600 text-teal-900 dark:text-teal-600",
|
|
18
22
|
indigo: "border-indigo-500 text-indigo-500",
|
|
19
|
-
emerald:
|
|
20
|
-
|
|
23
|
+
emerald:
|
|
24
|
+
"border-emerald-900 dark:border-emerald-600 text-emerald-900 dark:text-emerald-600",
|
|
25
|
+
glass:
|
|
26
|
+
"border-black/15 dark:border-white/15 bg-black/10 dark:bg-white/10 text-slate-900 dark:text-white backdrop-blur-md",
|
|
21
27
|
"gradient-blue":
|
|
22
|
-
"bg-linear-to-r from-blue-600 to-purple-600 backdrop-blur-xl text-white",
|
|
28
|
+
"bg-linear-to-r from-blue-900 dark:from-blue-600 to-purple-900 dark:to-purple-600 backdrop-blur-xl text-white",
|
|
23
29
|
"gradient-green":
|
|
24
|
-
"bg-linear-to-r from-green-600 to-lime-600 backdrop-blur-xl text-white",
|
|
30
|
+
"bg-linear-to-r from-green-900 dark:from-green-600 to-lime-900 dark:to-lime-600 backdrop-blur-xl text-white",
|
|
25
31
|
"gradient-red":
|
|
26
|
-
"bg-linear-to-r from-red-600 to-pink-600 backdrop-blur-xl text-white",
|
|
32
|
+
"bg-linear-to-r from-red-900 dark:from-red-600 to-pink-900 dark:to-pink-600 backdrop-blur-xl text-white",
|
|
27
33
|
"gradient-yellow":
|
|
28
|
-
"bg-linear-to-r from-yellow-600 to-orange-600 backdrop-blur-xl text-white",
|
|
34
|
+
"bg-linear-to-r from-yellow-900 dark:from-yellow-600 to-orange-900 dark:to-orange-600 backdrop-blur-xl text-white",
|
|
29
35
|
"gradient-purple":
|
|
30
|
-
"bg-linear-to-r from-purple-600 to-pink-600 backdrop-blur-xl text-white",
|
|
36
|
+
"bg-linear-to-r from-purple-900 dark:from-purple-600 to-pink-900 dark:to-pink-600 backdrop-blur-xl text-white",
|
|
31
37
|
"gradient-teal":
|
|
32
|
-
"bg-linear-to-r from-teal-600 to-cyan-600 backdrop-blur-xl text-white",
|
|
38
|
+
"bg-linear-to-r from-teal-900 dark:from-teal-600 to-cyan-900 dark:to-cyan-600 backdrop-blur-xl text-white",
|
|
33
39
|
"gradient-indigo":
|
|
34
|
-
"bg-linear-to-r from-indigo-600 to-purple-600 backdrop-blur-xl text-white",
|
|
40
|
+
"bg-linear-to-r from-indigo-900 dark:from-indigo-600 to-purple-900 dark:to-purple-600 backdrop-blur-xl text-white",
|
|
35
41
|
"gradient-pink":
|
|
36
|
-
"bg-linear-to-r from-pink-600 to-rose-600 backdrop-blur-xl text-white",
|
|
42
|
+
"bg-linear-to-r from-pink-900 dark:from-pink-600 to-rose-900 dark:to-rose-600 backdrop-blur-xl text-white",
|
|
37
43
|
"gradient-orange":
|
|
38
|
-
"bg-linear-to-r from-orange-600 to-red-600 backdrop-blur-xl text-white",
|
|
44
|
+
"bg-linear-to-r from-orange-900 dark:from-orange-600 to-red-900 dark:to-red-600 backdrop-blur-xl text-white",
|
|
39
45
|
},
|
|
40
46
|
size: {
|
|
41
47
|
sm: "px-2 py-1 text-sm",
|
|
@@ -51,50 +57,50 @@ export const selectTriggerVariants = cva(
|
|
|
51
57
|
);
|
|
52
58
|
|
|
53
59
|
export const selectItemVariants = cva(
|
|
54
|
-
"cursor-pointer px-3 py-2 rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-inset",
|
|
60
|
+
"cursor-pointer px-3 py-2 rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-600 dark:focus-visible:ring-gray-400 focus-visible:ring-inset",
|
|
55
61
|
{
|
|
56
62
|
variants: {
|
|
57
63
|
appearance: {
|
|
58
64
|
default:
|
|
59
|
-
"bg-white text-gray-900 data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900",
|
|
65
|
+
"bg-white dark:bg-black text-gray-900 dark:text-gray-200 data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-700 dark:data-[selected=true]:text-gray-900",
|
|
60
66
|
glass:
|
|
61
|
-
"bg-white/10 text-gray-
|
|
67
|
+
"bg-black/10 dark:bg-white/10 text-gray-700 dark:text-gray-900 data-[selected=true]:bg-black/10 dark:data-[selected=true]:bg-white/10 data-[selected=true]:text-gray-700 dark:data-[selected=true]:text-gray-900",
|
|
62
68
|
outline:
|
|
63
|
-
"border-2 border-gray-500 text-gray-900 data-[selected=true]:border-2 data-[selected=true]:border-gray-500 data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900",
|
|
69
|
+
"border-2 border-gray-500 text-gray-900 dark:text-gray-100 data-[selected=true]:border-2 data-[selected=true]:border-gray-500 data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900 dark:data-[selected=true]:text-gray-900",
|
|
64
70
|
ghost:
|
|
65
|
-
"border-transparent text-gray-900 data-[selected=true]:border-transparent data-[selected=true]:bg-transparent data-[selected=true]:text-gray-900",
|
|
66
|
-
sky: "border-sky-600 text-sky-
|
|
67
|
-
rose: "border-rose-600 text-rose-
|
|
71
|
+
"border-transparent text-gray-900 dark:text-gray-100 data-[selected=true]:border-transparent data-[selected=true]:bg-transparent data-[selected=true]:text-gray-900 dark:data-[selected=true]:text-gray-100",
|
|
72
|
+
sky: "border-sky-900 dark:border-sky-600 text-sky-900 dark:text-sky-200 data-[selected=true]:border-sky-900 dark:data-[selected=true]:border-sky-600 data-[selected=true]:bg-sky-200 data-[selected=true]:text-sky-900 dark:data-[selected=true]:text-sky-900",
|
|
73
|
+
rose: "border-rose-900 dark:border-rose-600 text-rose-900 dark:text-rose-200 data-[selected=true]:border-rose-900 dark:data-[selected=true]:border-rose-600 data-[selected=true]:bg-rose-200 data-[selected=true]:text-rose-900 dark:data-[selected=true]:text-rose-900",
|
|
68
74
|
purple:
|
|
69
|
-
"border-purple-600 text-purple-
|
|
70
|
-
pink: "border-pink-600 text-pink-
|
|
75
|
+
"border-purple-900 dark:border-purple-600 text-purple-900 dark:text-purple-200 data-[selected=true]:border-purple-900 dark:data-[selected=true]:border-purple-600 data-[selected=true]:bg-purple-200 data-[selected=true]:text-purple-900 dark:data-[selected=true]:text-purple-900",
|
|
76
|
+
pink: "border-pink-900 dark:border-pink-600 text-pink-900 dark:text-pink-200 data-[selected=true]:border-pink-900 dark:data-[selected=true]:border-pink-600 data-[selected=true]:bg-pink-200 data-[selected=true]:text-pink-900 dark:data-[selected=true]:text-pink-900",
|
|
71
77
|
orange:
|
|
72
|
-
"border-orange-600 text-orange-
|
|
78
|
+
"border-orange-900 dark:border-orange-600 text-orange-900 dark:text-orange-200 data-[selected=true]:border-orange-900 dark:data-[selected=true]:border-orange-600 data-[selected=true]:bg-orange-200 data-[selected=true]:text-orange-900 dark:data-[selected=true]:text-orange-900",
|
|
73
79
|
yellow:
|
|
74
|
-
"border-yellow-600 text-yellow-
|
|
75
|
-
teal: "border-teal-600 text-teal-
|
|
80
|
+
"border-yellow-900 dark:border-yellow-600 text-yellow-900 dark:text-yellow-200 data-[selected=true]:border-yellow-900 dark:data-[selected=true]:border-yellow-600 data-[selected=true]:bg-yellow-200 data-[selected=true]:text-yellow-900 dark:data-[selected=true]:text-yellow-900",
|
|
81
|
+
teal: "border-teal-900 dark:border-teal-600 text-teal-900 dark:text-teal-200 data-[selected=true]:border-teal-900 dark:data-[selected=true]:border-teal-600 data-[selected=true]:bg-teal-200 data-[selected=true]:text-teal-900 dark:data-[selected=true]:text-teal-900",
|
|
76
82
|
indigo:
|
|
77
|
-
"border-indigo-600 text-indigo-
|
|
83
|
+
"border-indigo-900 dark:border-indigo-600 text-indigo-900 dark:text-indigo-200 data-[selected=true]:border-indigo-900 dark:data-[selected=true]:border-indigo-600 data-[selected=true]:bg-indigo-200 data-[selected=true]:text-indigo-900 dark:data-[selected=true]:text-indigo-900",
|
|
78
84
|
emerald:
|
|
79
|
-
"border-emerald-600 text-emerald-
|
|
85
|
+
"border-emerald-900 dark:border-emerald-600 text-emerald-900 dark:text-emerald-200 data-[selected=true]:border-emerald-900 dark:data-[selected=true]:border-emerald-600 data-[selected=true]:bg-emerald-200 data-[selected=true]:text-emerald-900 dark:data-[selected=true]:text-emerald-900",
|
|
80
86
|
"gradient-blue":
|
|
81
|
-
"bg-
|
|
87
|
+
"bg-transparent backdrop-blur-xl text-blue-50 dark:text-blue-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-blue-50 dark:data-[selected=true]:from-blue-50 data-[selected=true]:to-purple-50 dark:data-[selected=true]:to-purple-50 data-[selected=true]:text-blue-900",
|
|
82
88
|
"gradient-green":
|
|
83
|
-
"bg-
|
|
89
|
+
"bg-transparent backdrop-blur-xl text-green-50 dark:text-green-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-green-50 dark:data-[selected=true]:from-green-50 data-[selected=true]:to-lime-50 dark:data-[selected=true]:to-lime-50 data-[selected=true]:text-green-900",
|
|
84
90
|
"gradient-red":
|
|
85
|
-
"bg-
|
|
91
|
+
"bg-transparent backdrop-blur-xl text-red-50 dark:text-red-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-red-50 dark:data-[selected=true]:from-red-50 data-[selected=true]:to-pink-50 dark:data-[selected=true]:to-pink-50 data-[selected=true]:text-red-900",
|
|
86
92
|
"gradient-yellow":
|
|
87
|
-
"bg-
|
|
93
|
+
"bg-transparent backdrop-blur-xl text-yellow-50 dark:text-yellow-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-yellow-50 dark:data-[selected=true]:from-yellow-50 data-[selected=true]:to-orange-50 dark:data-[selected=true]:to-orange-50 data-[selected=true]:text-yellow-900",
|
|
88
94
|
"gradient-purple":
|
|
89
|
-
"bg-
|
|
95
|
+
"bg-transparent backdrop-blur-xl text-purple-50 dark:text-purple-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-purple-50 dark:data-[selected=true]:from-purple-50 data-[selected=true]:to-pink-50 dark:data-[selected=true]:to-pink-50 data-[selected=true]:text-purple-900",
|
|
90
96
|
"gradient-teal":
|
|
91
|
-
"bg-
|
|
97
|
+
"bg-transparent backdrop-blur-xl text-teal-50 dark:text-teal-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-teal-50 dark:data-[selected=true]:from-teal-50 data-[selected=true]:to-cyan-50 dark:data-[selected=true]:to-cyan-50 data-[selected=true]:text-teal-900",
|
|
92
98
|
"gradient-indigo":
|
|
93
|
-
"bg-
|
|
99
|
+
"bg-transparent backdrop-blur-xl text-indigo-50 dark:text-indigo-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-indigo-50 dark:data-[selected=true]:from-indigo-50 data-[selected=true]:to-purple-50 dark:data-[selected=true]:to-purple-50 data-[selected=true]:text-indigo-900",
|
|
94
100
|
"gradient-pink":
|
|
95
|
-
"bg-
|
|
101
|
+
"bg-transparent backdrop-blur-xl text-pink-50 dark:text-pink-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-pink-50 dark:data-[selected=true]:from-pink-50 data-[selected=true]:to-rose-50 dark:data-[selected=true]:to-rose-50 data-[selected=true]:text-pink-900",
|
|
96
102
|
"gradient-orange":
|
|
97
|
-
"bg-
|
|
103
|
+
"bg-transparent backdrop-blur-xl text-orange-50 dark:text-orange-50 data-[selected=true]:bg-linear-to-r data-[selected=true]:from-orange-50 dark:data-[selected=true]:from-orange-50 data-[selected=true]:to-red-50 dark:data-[selected=true]:to-red-50 data-[selected=true]:text-orange-900",
|
|
98
104
|
},
|
|
99
105
|
disabled: {
|
|
100
106
|
true: "opacity-50 cursor-not-allowed",
|
|
@@ -107,41 +113,41 @@ export const selectItemVariants = cva(
|
|
|
107
113
|
);
|
|
108
114
|
|
|
109
115
|
export const selectContentVariants = cva(
|
|
110
|
-
"absolute z-10 mt-2 w-full rounded-md border bg-white shadow-md",
|
|
116
|
+
"absolute z-10 mt-2 w-full rounded-md border bg-white dark:bg-black shadow-md",
|
|
111
117
|
{
|
|
112
118
|
variants: {
|
|
113
119
|
appearance: {
|
|
114
|
-
default: "bg-white shadow-md",
|
|
115
|
-
glass: "bg-white/10 backdrop-blur-md",
|
|
120
|
+
default: "bg-white dark:bg-black shadow-md",
|
|
121
|
+
glass: "bg-black/10 dark:bg-white/10 backdrop-blur-md",
|
|
116
122
|
outline: "border-2 border-gray-500",
|
|
117
123
|
ghost: "border-transparent",
|
|
118
|
-
sky: "border-sky-600",
|
|
119
|
-
rose: "border-rose-600",
|
|
120
|
-
purple: "border-purple-600",
|
|
121
|
-
pink: "border-pink-600",
|
|
122
|
-
orange: "border-orange-600",
|
|
123
|
-
yellow: "border-yellow-600",
|
|
124
|
-
teal: "border-teal-600",
|
|
125
|
-
indigo: "border-indigo-600",
|
|
126
|
-
emerald: "border-emerald-600",
|
|
124
|
+
sky: "border-sky-900 dark:border-sky-600",
|
|
125
|
+
rose: "border-rose-900 dark:border-rose-600",
|
|
126
|
+
purple: "border-purple-900 dark:border-purple-600",
|
|
127
|
+
pink: "border-pink-900 dark:border-pink-600",
|
|
128
|
+
orange: "border-orange-900 dark:border-orange-600",
|
|
129
|
+
yellow: "border-yellow-900 dark:border-yellow-600",
|
|
130
|
+
teal: "border-teal-900 dark:border-teal-600",
|
|
131
|
+
indigo: "border-indigo-900 dark:border-indigo-600",
|
|
132
|
+
emerald: "border-emerald-900 dark:border-emerald-600",
|
|
127
133
|
"gradient-blue":
|
|
128
|
-
"bg-linear-to-r from-blue-600 to-purple-600 backdrop-blur-xl",
|
|
134
|
+
"bg-linear-to-r from-blue-900 dark:from-blue-600 to-purple-900 dark:to-purple-600 backdrop-blur-xl",
|
|
129
135
|
"gradient-green":
|
|
130
|
-
"bg-linear-to-r from-green-600 to-lime-600 backdrop-blur-xl",
|
|
136
|
+
"bg-linear-to-r from-green-900 dark:from-green-600 to-lime-900 dark:to-lime-600 backdrop-blur-xl",
|
|
131
137
|
"gradient-red":
|
|
132
|
-
"bg-linear-to-r from-red-600 to-pink-600 backdrop-blur-xl",
|
|
138
|
+
"bg-linear-to-r from-red-900 dark:from-red-600 to-pink-900 dark:to-pink-600 backdrop-blur-xl",
|
|
133
139
|
"gradient-yellow":
|
|
134
|
-
"bg-linear-to-r from-yellow-600 to-orange-600 backdrop-blur-xl",
|
|
140
|
+
"bg-linear-to-r from-yellow-900 dark:from-yellow-600 to-orange-900 dark:to-orange-600 backdrop-blur-xl",
|
|
135
141
|
"gradient-purple":
|
|
136
|
-
"bg-linear-to-r from-purple-600 to-pink-600 backdrop-blur-xl",
|
|
142
|
+
"bg-linear-to-r from-purple-900 dark:from-purple-600 to-pink-900 dark:to-pink-600 backdrop-blur-xl",
|
|
137
143
|
"gradient-teal":
|
|
138
|
-
"bg-linear-to-r from-teal-600 to-cyan-600 backdrop-blur-xl",
|
|
144
|
+
"bg-linear-to-r from-teal-900 dark:from-teal-600 to-cyan-900 dark:to-cyan-600 backdrop-blur-xl",
|
|
139
145
|
"gradient-indigo":
|
|
140
|
-
"bg-linear-to-r from-indigo-600 to-purple-600 backdrop-blur-xl",
|
|
146
|
+
"bg-linear-to-r from-indigo-900 dark:from-indigo-600 to-purple-900 dark:to-purple-600 backdrop-blur-xl",
|
|
141
147
|
"gradient-pink":
|
|
142
|
-
"bg-linear-to-r from-pink-600 to-rose-600 backdrop-blur-xl",
|
|
148
|
+
"bg-linear-to-r from-pink-900 dark:from-pink-600 to-rose-900 dark:to-rose-600 backdrop-blur-xl",
|
|
143
149
|
"gradient-orange":
|
|
144
|
-
"bg-linear-to-r from-orange-600 to-red-600 backdrop-blur-xl",
|
|
150
|
+
"bg-linear-to-r from-orange-900 dark:from-orange-600 to-red-900 dark:to-red-600 backdrop-blur-xl",
|
|
145
151
|
},
|
|
146
152
|
size: {
|
|
147
153
|
sm: "px-2 py-1 text-sm",
|
|
@@ -33,13 +33,13 @@ export const skeletonShimmerGradientClasses = {
|
|
|
33
33
|
export type SkeletonShimmerTone = keyof typeof skeletonShimmerGradientClasses;
|
|
34
34
|
|
|
35
35
|
export const skeletonVariants = cva(
|
|
36
|
-
"relative overflow-hidden bg-white/10 text-transparent",
|
|
36
|
+
"relative overflow-hidden bg-black/10 dark:bg-white/10 text-transparent",
|
|
37
37
|
{
|
|
38
38
|
variants: {
|
|
39
39
|
appearance: {
|
|
40
|
-
default: "bg-white/10",
|
|
41
|
-
subtle: "bg-white/[0.07]",
|
|
42
|
-
muted: "bg-slate-800/80",
|
|
40
|
+
default: "bg-black/10 dark:bg-white/10",
|
|
41
|
+
subtle: "bg-black/[0.07] dark:bg-white/[0.07]",
|
|
42
|
+
muted: "bg-slate-200/80 dark:bg-slate-800/80",
|
|
43
43
|
sky: "bg-sky-500/10",
|
|
44
44
|
rose: "bg-rose-500/10",
|
|
45
45
|
purple: "bg-purple-500/10",
|
|
@@ -52,15 +52,24 @@ export const skeletonVariants = cva(
|
|
|
52
52
|
gray: "bg-gray-500/10",
|
|
53
53
|
amber: "bg-amber-500/10",
|
|
54
54
|
violet: "bg-violet-500/10",
|
|
55
|
-
"gradient-blue":
|
|
56
|
-
|
|
57
|
-
"gradient-
|
|
58
|
-
|
|
59
|
-
"gradient-
|
|
60
|
-
|
|
61
|
-
"gradient-
|
|
62
|
-
|
|
63
|
-
"gradient-
|
|
55
|
+
"gradient-blue":
|
|
56
|
+
"bg-linear-to-r from-blue-800 dark:from-blue-600 to-purple-800 dark:to-purple-600",
|
|
57
|
+
"gradient-green":
|
|
58
|
+
"bg-linear-to-r from-green-800 dark:from-green-600 to-lime-800 dark:to-lime-600",
|
|
59
|
+
"gradient-red":
|
|
60
|
+
"bg-linear-to-r from-red-800 dark:from-red-600 to-pink-800 dark:to-pink-600",
|
|
61
|
+
"gradient-yellow":
|
|
62
|
+
"bg-linear-to-r from-yellow-800 dark:from-yellow-600 to-orange-800 dark:to-orange-600",
|
|
63
|
+
"gradient-purple":
|
|
64
|
+
"bg-linear-to-r from-purple-800 dark:from-purple-600 to-pink-800 dark:to-pink-600",
|
|
65
|
+
"gradient-teal":
|
|
66
|
+
"bg-linear-to-r from-teal-800 dark:from-teal-600 to-cyan-800 dark:to-cyan-600",
|
|
67
|
+
"gradient-indigo":
|
|
68
|
+
"bg-linear-to-r from-indigo-800 dark:from-indigo-600 to-purple-800 dark:to-purple-600",
|
|
69
|
+
"gradient-pink":
|
|
70
|
+
"bg-linear-to-r from-pink-800 dark:from-pink-600 to-rose-800 dark:to-rose-600",
|
|
71
|
+
"gradient-orange":
|
|
72
|
+
"bg-linear-to-r from-orange-800 dark:from-orange-600 to-red-800 dark:to-red-600",
|
|
64
73
|
},
|
|
65
74
|
size: {
|
|
66
75
|
sm: "min-h-3",
|