@sytechui/theme 2.4.26
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/LICENSE +21 -0
- package/README.md +24 -0
- package/colors.d.ts +1 -0
- package/colors.js +1 -0
- package/dist/animations/index.d.mts +105 -0
- package/dist/animations/index.d.ts +105 -0
- package/dist/animations/index.js +133 -0
- package/dist/animations/index.mjs +6 -0
- package/dist/chunk-3LKKH4AR.mjs +17 -0
- package/dist/chunk-5ICJA2GK.mjs +71 -0
- package/dist/chunk-6FGGVHAY.mjs +63 -0
- package/dist/chunk-6GMZ2XIO.mjs +241 -0
- package/dist/chunk-7V3PIXOO.mjs +28 -0
- package/dist/chunk-A3QMPIR3.mjs +12 -0
- package/dist/chunk-AWXUGVFR.mjs +19 -0
- package/dist/chunk-B3WML4XC.mjs +37 -0
- package/dist/chunk-B5YWUSAH.mjs +307 -0
- package/dist/chunk-D2XMP2NC.mjs +6 -0
- package/dist/chunk-DCEG5LGX.mjs +17 -0
- package/dist/chunk-DKJNATV2.mjs +13 -0
- package/dist/chunk-EJLBCE3V.mjs +12 -0
- package/dist/chunk-GHZ36ATJ.mjs +17 -0
- package/dist/chunk-GMH4QQZS.mjs +16 -0
- package/dist/chunk-GQT3YUX3.mjs +77 -0
- package/dist/chunk-GSRZWDGA.mjs +62 -0
- package/dist/chunk-HJWFZEER.mjs +225 -0
- package/dist/chunk-HO2ILFC5.mjs +33 -0
- package/dist/chunk-HUBDRSA4.mjs +49 -0
- package/dist/chunk-JC3ABGTC.mjs +155 -0
- package/dist/chunk-JFTCRIQA.mjs +21 -0
- package/dist/chunk-JGY6VQQQ.mjs +87 -0
- package/dist/chunk-JLA3YAT4.mjs +470 -0
- package/dist/chunk-JUEOCLA3.mjs +17 -0
- package/dist/chunk-KKENQYAQ.mjs +21 -0
- package/dist/chunk-KXPLHLA6.mjs +109 -0
- package/dist/chunk-L2OL7R23.mjs +17 -0
- package/dist/chunk-M63AFAHO.mjs +0 -0
- package/dist/chunk-MPVWW3DX.mjs +30 -0
- package/dist/chunk-NPGM3ZLN.mjs +31 -0
- package/dist/chunk-NTTT6BHX.mjs +42 -0
- package/dist/chunk-OR5PUD24.mjs +17 -0
- package/dist/chunk-PGQDBCOS.mjs +28 -0
- package/dist/chunk-Q7SJBJ2C.mjs +140 -0
- package/dist/chunk-QPJMPRZG.mjs +33 -0
- package/dist/chunk-RUIUXVZ4.mjs +26 -0
- package/dist/chunk-T3FWPDDU.mjs +10411 -0
- package/dist/chunk-T3GWIVAM.mjs +17 -0
- package/dist/chunk-T7YZ5PRR.mjs +59 -0
- package/dist/chunk-U5MU6YGM.mjs +62 -0
- package/dist/chunk-UCUZEPMT.mjs +74 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/chunk-WH6SPIFG.mjs +30 -0
- package/dist/chunk-WQEDQHKX.mjs +0 -0
- package/dist/chunk-YZYGFPNK.mjs +17 -0
- package/dist/colors/blue.d.mts +14 -0
- package/dist/colors/blue.d.ts +14 -0
- package/dist/colors/blue.js +41 -0
- package/dist/colors/blue.mjs +6 -0
- package/dist/colors/common.d.mts +103 -0
- package/dist/colors/common.d.ts +103 -0
- package/dist/colors/common.js +155 -0
- package/dist/colors/common.mjs +14 -0
- package/dist/colors/cyan.d.mts +14 -0
- package/dist/colors/cyan.d.ts +14 -0
- package/dist/colors/cyan.js +41 -0
- package/dist/colors/cyan.mjs +6 -0
- package/dist/colors/green.d.mts +14 -0
- package/dist/colors/green.d.ts +14 -0
- package/dist/colors/green.js +41 -0
- package/dist/colors/green.mjs +6 -0
- package/dist/colors/index.d.mts +109 -0
- package/dist/colors/index.d.ts +109 -0
- package/dist/colors/index.js +328 -0
- package/dist/colors/index.mjs +24 -0
- package/dist/colors/pink.d.mts +14 -0
- package/dist/colors/pink.d.ts +14 -0
- package/dist/colors/pink.js +41 -0
- package/dist/colors/pink.mjs +6 -0
- package/dist/colors/purple.d.mts +14 -0
- package/dist/colors/purple.d.ts +14 -0
- package/dist/colors/purple.js +41 -0
- package/dist/colors/purple.mjs +6 -0
- package/dist/colors/red.d.mts +14 -0
- package/dist/colors/red.d.ts +14 -0
- package/dist/colors/red.js +41 -0
- package/dist/colors/red.mjs +6 -0
- package/dist/colors/semantic.d.mts +10 -0
- package/dist/colors/semantic.d.ts +10 -0
- package/dist/colors/semantic.js +320 -0
- package/dist/colors/semantic.mjs +20 -0
- package/dist/colors/types.d.mts +39 -0
- package/dist/colors/types.d.ts +39 -0
- package/dist/colors/types.js +18 -0
- package/dist/colors/types.mjs +1 -0
- package/dist/colors/yellow.d.mts +14 -0
- package/dist/colors/yellow.d.ts +14 -0
- package/dist/colors/yellow.js +41 -0
- package/dist/colors/yellow.mjs +6 -0
- package/dist/colors/zinc.d.mts +14 -0
- package/dist/colors/zinc.d.ts +14 -0
- package/dist/colors/zinc.js +41 -0
- package/dist/colors/zinc.mjs +6 -0
- package/dist/colors.d.mts +4 -0
- package/dist/colors.d.ts +4 -0
- package/dist/colors.js +328 -0
- package/dist/colors.mjs +25 -0
- package/dist/components/accordion.d.mts +228 -0
- package/dist/components/accordion.d.ts +228 -0
- package/dist/components/accordion.js +335 -0
- package/dist/components/accordion.mjs +53 -0
- package/dist/components/alert.d.mts +211 -0
- package/dist/components/alert.d.ts +211 -0
- package/dist/components/alert.js +642 -0
- package/dist/components/alert.mjs +51 -0
- package/dist/components/autocomplete.d.mts +95 -0
- package/dist/components/autocomplete.d.ts +95 -0
- package/dist/components/autocomplete.js +293 -0
- package/dist/components/autocomplete.mjs +14 -0
- package/dist/components/avatar.d.mts +300 -0
- package/dist/components/avatar.d.ts +300 -0
- package/dist/components/avatar.js +509 -0
- package/dist/components/avatar.mjs +53 -0
- package/dist/components/badge.d.mts +223 -0
- package/dist/components/badge.d.ts +223 -0
- package/dist/components/badge.js +689 -0
- package/dist/components/badge.mjs +51 -0
- package/dist/components/breadcrumbs.d.mts +379 -0
- package/dist/components/breadcrumbs.d.ts +379 -0
- package/dist/components/breadcrumbs.js +482 -0
- package/dist/components/breadcrumbs.mjs +53 -0
- package/dist/components/button.d.mts +188 -0
- package/dist/components/button.d.ts +188 -0
- package/dist/components/button.js +767 -0
- package/dist/components/button.mjs +53 -0
- package/dist/components/calendar.d.mts +279 -0
- package/dist/components/calendar.d.ts +279 -0
- package/dist/components/calendar.js +680 -0
- package/dist/components/calendar.mjs +51 -0
- package/dist/components/card.d.mts +257 -0
- package/dist/components/card.d.ts +257 -0
- package/dist/components/card.js +393 -0
- package/dist/components/card.mjs +51 -0
- package/dist/components/checkbox.d.mts +375 -0
- package/dist/components/checkbox.d.ts +375 -0
- package/dist/components/checkbox.js +479 -0
- package/dist/components/checkbox.mjs +53 -0
- package/dist/components/chip.d.mts +340 -0
- package/dist/components/chip.d.ts +340 -0
- package/dist/components/chip.js +803 -0
- package/dist/components/chip.mjs +51 -0
- package/dist/components/code.d.mts +80 -0
- package/dist/components/code.d.ts +80 -0
- package/dist/components/code.js +343 -0
- package/dist/components/code.mjs +51 -0
- package/dist/components/date-input.d.mts +392 -0
- package/dist/components/date-input.d.ts +392 -0
- package/dist/components/date-input.js +700 -0
- package/dist/components/date-input.mjs +14 -0
- package/dist/components/date-picker.d.mts +220 -0
- package/dist/components/date-picker.d.ts +220 -0
- package/dist/components/date-picker.js +262 -0
- package/dist/components/date-picker.mjs +16 -0
- package/dist/components/divider.d.mts +31 -0
- package/dist/components/divider.d.ts +31 -0
- package/dist/components/divider.js +251 -0
- package/dist/components/divider.mjs +14 -0
- package/dist/components/drawer.d.mts +169 -0
- package/dist/components/drawer.d.ts +169 -0
- package/dist/components/drawer.js +292 -0
- package/dist/components/drawer.mjs +14 -0
- package/dist/components/drip.d.mts +13 -0
- package/dist/components/drip.d.ts +13 -0
- package/dist/components/drip.js +242 -0
- package/dist/components/drip.mjs +14 -0
- package/dist/components/drop-zone.d.mts +434 -0
- package/dist/components/drop-zone.d.ts +434 -0
- package/dist/components/drop-zone.js +546 -0
- package/dist/components/drop-zone.mjs +51 -0
- package/dist/components/dropdown.d.mts +247 -0
- package/dist/components/dropdown.d.ts +247 -0
- package/dist/components/dropdown.js +611 -0
- package/dist/components/dropdown.mjs +57 -0
- package/dist/components/form.d.mts +19 -0
- package/dist/components/form.d.ts +19 -0
- package/dist/components/form.js +242 -0
- package/dist/components/form.mjs +14 -0
- package/dist/components/image.d.mts +174 -0
- package/dist/components/image.d.ts +174 -0
- package/dist/components/image.js +370 -0
- package/dist/components/image.mjs +14 -0
- package/dist/components/index.d.mts +48 -0
- package/dist/components/index.d.ts +48 -0
- package/dist/components/index.js +12311 -0
- package/dist/components/index.mjs +189 -0
- package/dist/components/input-otp.d.mts +282 -0
- package/dist/components/input-otp.d.ts +282 -0
- package/dist/components/input-otp.js +685 -0
- package/dist/components/input-otp.mjs +51 -0
- package/dist/components/input.d.mts +458 -0
- package/dist/components/input.d.ts +458 -0
- package/dist/components/input.js +1153 -0
- package/dist/components/input.mjs +51 -0
- package/dist/components/kbd.d.mts +50 -0
- package/dist/components/kbd.d.ts +50 -0
- package/dist/components/kbd.js +263 -0
- package/dist/components/kbd.mjs +14 -0
- package/dist/components/link.d.mts +107 -0
- package/dist/components/link.d.ts +107 -0
- package/dist/components/link.js +345 -0
- package/dist/components/link.mjs +53 -0
- package/dist/components/listbox.d.mts +3 -0
- package/dist/components/listbox.d.ts +3 -0
- package/dist/components/listbox.js +729 -0
- package/dist/components/listbox.mjs +55 -0
- package/dist/components/menu.d.mts +324 -0
- package/dist/components/menu.d.ts +324 -0
- package/dist/components/menu.js +729 -0
- package/dist/components/menu.mjs +55 -0
- package/dist/components/modal.d.mts +380 -0
- package/dist/components/modal.d.ts +380 -0
- package/dist/components/modal.js +429 -0
- package/dist/components/modal.mjs +51 -0
- package/dist/components/navbar.d.mts +246 -0
- package/dist/components/navbar.d.ts +246 -0
- package/dist/components/navbar.js +446 -0
- package/dist/components/navbar.mjs +51 -0
- package/dist/components/number-input.d.mts +476 -0
- package/dist/components/number-input.d.ts +476 -0
- package/dist/components/number-input.js +1118 -0
- package/dist/components/number-input.mjs +51 -0
- package/dist/components/pagination.d.mts +288 -0
- package/dist/components/pagination.d.ts +288 -0
- package/dist/components/pagination.js +736 -0
- package/dist/components/pagination.mjs +51 -0
- package/dist/components/popover.d.mts +339 -0
- package/dist/components/popover.d.ts +339 -0
- package/dist/components/popover.js +495 -0
- package/dist/components/popover.mjs +51 -0
- package/dist/components/progress.d.mts +498 -0
- package/dist/components/progress.d.ts +498 -0
- package/dist/components/progress.js +472 -0
- package/dist/components/progress.mjs +16 -0
- package/dist/components/radio.d.mts +354 -0
- package/dist/components/radio.d.ts +354 -0
- package/dist/components/radio.js +425 -0
- package/dist/components/radio.mjs +53 -0
- package/dist/components/scroll-area.d.mts +109 -0
- package/dist/components/scroll-area.d.ts +109 -0
- package/dist/components/scroll-area.js +304 -0
- package/dist/components/scroll-area.mjs +14 -0
- package/dist/components/scroll-shadow.d.mts +48 -0
- package/dist/components/scroll-shadow.d.ts +48 -0
- package/dist/components/scroll-shadow.js +267 -0
- package/dist/components/scroll-shadow.mjs +14 -0
- package/dist/components/select.d.mts +530 -0
- package/dist/components/select.d.ts +530 -0
- package/dist/components/select.js +1118 -0
- package/dist/components/select.mjs +51 -0
- package/dist/components/skeleton.d.mts +60 -0
- package/dist/components/skeleton.d.ts +60 -0
- package/dist/components/skeleton.js +289 -0
- package/dist/components/skeleton.mjs +14 -0
- package/dist/components/slider.d.mts +482 -0
- package/dist/components/slider.d.ts +482 -0
- package/dist/components/slider.js +619 -0
- package/dist/components/slider.mjs +51 -0
- package/dist/components/snippet.d.mts +206 -0
- package/dist/components/snippet.d.ts +206 -0
- package/dist/components/snippet.js +611 -0
- package/dist/components/snippet.mjs +51 -0
- package/dist/components/spacer.d.mts +31 -0
- package/dist/components/spacer.d.ts +31 -0
- package/dist/components/spacer.js +251 -0
- package/dist/components/spacer.mjs +14 -0
- package/dist/components/spinner.d.mts +398 -0
- package/dist/components/spinner.d.ts +398 -0
- package/dist/components/spinner.js +537 -0
- package/dist/components/spinner.mjs +14 -0
- package/dist/components/table.d.mts +428 -0
- package/dist/components/table.d.ts +428 -0
- package/dist/components/table.js +522 -0
- package/dist/components/table.mjs +51 -0
- package/dist/components/tabs.d.mts +347 -0
- package/dist/components/tabs.d.ts +347 -0
- package/dist/components/tabs.js +723 -0
- package/dist/components/tabs.mjs +51 -0
- package/dist/components/toast.d.mts +329 -0
- package/dist/components/toast.d.ts +329 -0
- package/dist/components/toast.js +719 -0
- package/dist/components/toast.mjs +53 -0
- package/dist/components/toggle.d.mts +243 -0
- package/dist/components/toggle.d.ts +243 -0
- package/dist/components/toggle.js +438 -0
- package/dist/components/toggle.mjs +51 -0
- package/dist/components/user.d.mts +63 -0
- package/dist/components/user.d.ts +63 -0
- package/dist/components/user.js +260 -0
- package/dist/components/user.mjs +51 -0
- package/dist/default-layout.d.mts +8 -0
- package/dist/default-layout.d.ts +8 -0
- package/dist/default-layout.js +75 -0
- package/dist/default-layout.mjs +10 -0
- package/dist/index.d.mts +63 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.js +13087 -0
- package/dist/index.mjs +243 -0
- package/dist/plugin.d.mts +12 -0
- package/dist/plugin.d.ts +12 -0
- package/dist/plugin.js +895 -0
- package/dist/plugin.mjs +30 -0
- package/dist/types.d.mts +138 -0
- package/dist/types.d.ts +138 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +1 -0
- package/dist/utilities/animation.d.mts +16 -0
- package/dist/utilities/animation.d.ts +16 -0
- package/dist/utilities/animation.js +39 -0
- package/dist/utilities/animation.mjs +6 -0
- package/dist/utilities/custom.d.mts +27 -0
- package/dist/utilities/custom.d.ts +27 -0
- package/dist/utilities/custom.js +50 -0
- package/dist/utilities/custom.mjs +6 -0
- package/dist/utilities/index.d.mts +115 -0
- package/dist/utilities/index.d.ts +115 -0
- package/dist/utilities/index.js +189 -0
- package/dist/utilities/index.mjs +11 -0
- package/dist/utilities/scrollbar-hide.d.mts +24 -0
- package/dist/utilities/scrollbar-hide.d.ts +24 -0
- package/dist/utilities/scrollbar-hide.js +50 -0
- package/dist/utilities/scrollbar-hide.mjs +6 -0
- package/dist/utilities/text.d.mts +23 -0
- package/dist/utilities/text.d.ts +23 -0
- package/dist/utilities/text.js +46 -0
- package/dist/utilities/text.mjs +6 -0
- package/dist/utilities/transition.d.mts +58 -0
- package/dist/utilities/transition.d.ts +58 -0
- package/dist/utilities/transition.js +86 -0
- package/dist/utilities/transition.mjs +8 -0
- package/dist/utils/classes.d.mts +35 -0
- package/dist/utils/classes.d.ts +35 -0
- package/dist/utils/classes.js +119 -0
- package/dist/utils/classes.mjs +22 -0
- package/dist/utils/cn.d.mts +13 -0
- package/dist/utils/cn.d.ts +13 -0
- package/dist/utils/cn.js +220 -0
- package/dist/utils/cn.mjs +13 -0
- package/dist/utils/index.d.mts +7 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.js +409 -0
- package/dist/utils/index.mjs +81 -0
- package/dist/utils/merge-classes.d.mts +12 -0
- package/dist/utils/merge-classes.d.ts +12 -0
- package/dist/utils/merge-classes.js +233 -0
- package/dist/utils/merge-classes.mjs +51 -0
- package/dist/utils/object.d.mts +13 -0
- package/dist/utils/object.d.ts +13 -0
- package/dist/utils/object.js +98 -0
- package/dist/utils/object.mjs +12 -0
- package/dist/utils/theme.d.mts +9 -0
- package/dist/utils/theme.d.ts +9 -0
- package/dist/utils/theme.js +30 -0
- package/dist/utils/theme.mjs +6 -0
- package/dist/utils/tv.d.mts +5 -0
- package/dist/utils/tv.d.ts +5 -0
- package/dist/utils/tv.js +235 -0
- package/dist/utils/tv.mjs +13 -0
- package/dist/utils/tw-merge-config.d.mts +25 -0
- package/dist/utils/tw-merge-config.d.ts +25 -0
- package/dist/utils/tw-merge-config.js +216 -0
- package/dist/utils/tw-merge-config.mjs +14 -0
- package/dist/utils/types.d.mts +10 -0
- package/dist/utils/types.d.ts +10 -0
- package/dist/utils/types.js +18 -0
- package/dist/utils/types.mjs +0 -0
- package/dist/utils/variants.d.mts +67 -0
- package/dist/utils/variants.d.ts +67 -0
- package/dist/utils/variants.js +101 -0
- package/dist/utils/variants.mjs +6 -0
- package/package.json +91 -0
- package/plugin.d.ts +1 -0
- package/plugin.js +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/colors/blue.ts
|
|
2
|
+
var blue = {
|
|
3
|
+
50: "#e6f1fe",
|
|
4
|
+
100: "#cce3fd",
|
|
5
|
+
200: "#99c7fb",
|
|
6
|
+
300: "#66aaf9",
|
|
7
|
+
400: "#338ef7",
|
|
8
|
+
500: "#006FEE",
|
|
9
|
+
600: "#005bc4",
|
|
10
|
+
700: "#004493",
|
|
11
|
+
800: "#002e62",
|
|
12
|
+
900: "#001731"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
blue
|
|
17
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// src/utils/variants.ts
|
|
2
|
+
var solid = {
|
|
3
|
+
default: "bg-default text-default-foreground",
|
|
4
|
+
primary: "bg-primary text-primary-foreground",
|
|
5
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
6
|
+
success: "bg-success text-success-foreground",
|
|
7
|
+
warning: "bg-warning text-warning-foreground",
|
|
8
|
+
danger: "bg-danger text-danger-foreground",
|
|
9
|
+
foreground: "bg-foreground text-background"
|
|
10
|
+
};
|
|
11
|
+
var shadow = {
|
|
12
|
+
default: "shadow-lg shadow-default/50 bg-default text-default-foreground",
|
|
13
|
+
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
|
|
14
|
+
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
|
|
15
|
+
success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
|
|
16
|
+
warning: "shadow-lg shadow-warning/40 bg-warning text-warning-foreground",
|
|
17
|
+
danger: "shadow-lg shadow-danger/40 bg-danger text-danger-foreground",
|
|
18
|
+
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
19
|
+
};
|
|
20
|
+
var bordered = {
|
|
21
|
+
default: "bg-transparent border-default text-foreground",
|
|
22
|
+
primary: "bg-transparent border-primary text-primary",
|
|
23
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
24
|
+
success: "bg-transparent border-success text-success",
|
|
25
|
+
warning: "bg-transparent border-warning text-warning",
|
|
26
|
+
danger: "bg-transparent border-danger text-danger",
|
|
27
|
+
foreground: "bg-transparent border-foreground text-foreground"
|
|
28
|
+
};
|
|
29
|
+
var flat = {
|
|
30
|
+
default: "bg-default/40 text-default-700",
|
|
31
|
+
primary: "bg-primary/20 text-primary-600",
|
|
32
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
33
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
34
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
35
|
+
danger: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
36
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
37
|
+
};
|
|
38
|
+
var faded = {
|
|
39
|
+
default: "border-default bg-default-100 text-default-foreground",
|
|
40
|
+
primary: "border-default bg-default-100 text-primary",
|
|
41
|
+
secondary: "border-default bg-default-100 text-secondary",
|
|
42
|
+
success: "border-default bg-default-100 text-success",
|
|
43
|
+
warning: "border-default bg-default-100 text-warning",
|
|
44
|
+
danger: "border-default bg-default-100 text-danger",
|
|
45
|
+
foreground: "border-default bg-default-100 text-foreground"
|
|
46
|
+
};
|
|
47
|
+
var light = {
|
|
48
|
+
default: "bg-transparent text-default-foreground",
|
|
49
|
+
primary: "bg-transparent text-primary",
|
|
50
|
+
secondary: "bg-transparent text-secondary",
|
|
51
|
+
success: "bg-transparent text-success",
|
|
52
|
+
warning: "bg-transparent text-warning",
|
|
53
|
+
danger: "bg-transparent text-danger",
|
|
54
|
+
foreground: "bg-transparent text-foreground"
|
|
55
|
+
};
|
|
56
|
+
var ghost = {
|
|
57
|
+
default: "border-default text-default-foreground",
|
|
58
|
+
primary: "border-primary text-primary",
|
|
59
|
+
secondary: "border-secondary text-secondary",
|
|
60
|
+
success: "border-success text-success",
|
|
61
|
+
warning: "border-warning text-warning",
|
|
62
|
+
danger: "border-danger text-danger",
|
|
63
|
+
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
64
|
+
};
|
|
65
|
+
var colorVariants = {
|
|
66
|
+
solid,
|
|
67
|
+
shadow,
|
|
68
|
+
bordered,
|
|
69
|
+
flat,
|
|
70
|
+
faded,
|
|
71
|
+
light,
|
|
72
|
+
ghost
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export {
|
|
76
|
+
colorVariants
|
|
77
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// src/utilities/transition.ts
|
|
2
|
+
var DEFAULT_TRANSITION_DURATION = "250ms";
|
|
3
|
+
var transition_default = {
|
|
4
|
+
/**
|
|
5
|
+
* Transition utilities
|
|
6
|
+
*/
|
|
7
|
+
".transition-background": {
|
|
8
|
+
"transition-property": "background",
|
|
9
|
+
"transition-timing-function": "ease",
|
|
10
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
11
|
+
},
|
|
12
|
+
".transition-colors-opacity": {
|
|
13
|
+
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
14
|
+
"transition-timing-function": "ease",
|
|
15
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
16
|
+
},
|
|
17
|
+
".transition-width": {
|
|
18
|
+
"transition-property": "width",
|
|
19
|
+
"transition-timing-function": "ease",
|
|
20
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
21
|
+
},
|
|
22
|
+
".transition-height": {
|
|
23
|
+
"transition-property": "height",
|
|
24
|
+
"transition-timing-function": "ease",
|
|
25
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
26
|
+
},
|
|
27
|
+
".transition-size": {
|
|
28
|
+
"transition-property": "width, height",
|
|
29
|
+
"transition-timing-function": "ease",
|
|
30
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
31
|
+
},
|
|
32
|
+
".transition-left": {
|
|
33
|
+
"transition-property": "left",
|
|
34
|
+
"transition-timing-function": "ease",
|
|
35
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
36
|
+
},
|
|
37
|
+
".transition-transform-opacity": {
|
|
38
|
+
"transition-property": "transform, scale, opacity rotate",
|
|
39
|
+
"transition-timing-function": "ease",
|
|
40
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
41
|
+
},
|
|
42
|
+
".transition-transform-background": {
|
|
43
|
+
"transition-property": "transform, scale, background",
|
|
44
|
+
"transition-timing-function": "ease",
|
|
45
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
46
|
+
},
|
|
47
|
+
".transition-transform-colors": {
|
|
48
|
+
"transition-property": "transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke",
|
|
49
|
+
"transition-timing-function": "ease",
|
|
50
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
51
|
+
},
|
|
52
|
+
".transition-transform-colors-opacity": {
|
|
53
|
+
"transition-property": "transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
54
|
+
"transition-timing-function": "ease",
|
|
55
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
DEFAULT_TRANSITION_DURATION,
|
|
61
|
+
transition_default
|
|
62
|
+
};
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import {
|
|
2
|
+
baseStyles
|
|
3
|
+
} from "./chunk-JGY6VQQQ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
isBaseTheme
|
|
6
|
+
} from "./chunk-D2XMP2NC.mjs";
|
|
7
|
+
import {
|
|
8
|
+
utilities
|
|
9
|
+
} from "./chunk-7V3PIXOO.mjs";
|
|
10
|
+
import {
|
|
11
|
+
semanticColors
|
|
12
|
+
} from "./chunk-JC3ABGTC.mjs";
|
|
13
|
+
import {
|
|
14
|
+
flattenThemeObject
|
|
15
|
+
} from "./chunk-5ICJA2GK.mjs";
|
|
16
|
+
import {
|
|
17
|
+
commonColors
|
|
18
|
+
} from "./chunk-NTTT6BHX.mjs";
|
|
19
|
+
import {
|
|
20
|
+
darkLayout,
|
|
21
|
+
defaultLayout,
|
|
22
|
+
lightLayout
|
|
23
|
+
} from "./chunk-HUBDRSA4.mjs";
|
|
24
|
+
import {
|
|
25
|
+
animations
|
|
26
|
+
} from "./chunk-KXPLHLA6.mjs";
|
|
27
|
+
|
|
28
|
+
// src/plugin.ts
|
|
29
|
+
import Color from "color";
|
|
30
|
+
import plugin from "tailwindcss/plugin.js";
|
|
31
|
+
import deepMerge from "deepmerge";
|
|
32
|
+
import { omit, kebabCase, mapKeys } from "@sytechui/shared-utils";
|
|
33
|
+
var DEFAULT_PREFIX = "heroui";
|
|
34
|
+
var parsedColorsCache = {};
|
|
35
|
+
var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
36
|
+
const resolved = {
|
|
37
|
+
variants: [],
|
|
38
|
+
utilities: {},
|
|
39
|
+
colors: {},
|
|
40
|
+
baseStyles: {}
|
|
41
|
+
};
|
|
42
|
+
for (const [themeName, { extend, layout, colors }] of Object.entries(themes)) {
|
|
43
|
+
let cssSelector = `.${themeName}`;
|
|
44
|
+
const scheme = themeName === "light" || themeName === "dark" ? themeName : extend;
|
|
45
|
+
let baseSelector = "";
|
|
46
|
+
if (themeName === defaultTheme) {
|
|
47
|
+
baseSelector = `:root, [data-theme=${themeName}]`;
|
|
48
|
+
}
|
|
49
|
+
baseSelector && (resolved.baseStyles[baseSelector] = scheme ? {
|
|
50
|
+
"color-scheme": scheme
|
|
51
|
+
} : {});
|
|
52
|
+
resolved.utilities[cssSelector] = scheme ? {
|
|
53
|
+
"color-scheme": scheme
|
|
54
|
+
} : {};
|
|
55
|
+
const flatColors = flattenThemeObject(colors);
|
|
56
|
+
const flatLayout = layout ? mapKeys(layout, (_, key) => kebabCase(key)) : {};
|
|
57
|
+
resolved.variants.push({
|
|
58
|
+
name: themeName,
|
|
59
|
+
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
60
|
+
});
|
|
61
|
+
for (const [colorName, colorValue] of Object.entries(flatColors)) {
|
|
62
|
+
if (!colorValue) return;
|
|
63
|
+
try {
|
|
64
|
+
const parsedColor = parsedColorsCache[colorValue] || Color(colorValue).hsl().round(2).array();
|
|
65
|
+
parsedColorsCache[colorValue] = parsedColor;
|
|
66
|
+
const [h, s, l, defaultAlphaValue] = parsedColor;
|
|
67
|
+
const herouiColorVariable = `--${prefix}-${colorName}`;
|
|
68
|
+
resolved.utilities[cssSelector][herouiColorVariable] = `${h} ${s}% ${l}%`;
|
|
69
|
+
baseSelector && (resolved.baseStyles[baseSelector][herouiColorVariable] = `${h} ${s}% ${l}%`);
|
|
70
|
+
resolved.colors[colorName] = `hsl(var(${herouiColorVariable}) / ${defaultAlphaValue != null ? defaultAlphaValue : "<alpha-value>"})`;
|
|
71
|
+
} catch (error) {
|
|
72
|
+
console.log("error", error == null ? void 0 : error.message);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
for (const [key, value] of Object.entries(flatLayout)) {
|
|
76
|
+
if (!value) return;
|
|
77
|
+
const layoutVariablePrefix = `--${prefix}-${key}`;
|
|
78
|
+
if (typeof value === "object") {
|
|
79
|
+
for (const [nestedKey, nestedValue] of Object.entries(value)) {
|
|
80
|
+
const nestedLayoutVariable = `${layoutVariablePrefix}-${nestedKey}`;
|
|
81
|
+
resolved.utilities[cssSelector][nestedLayoutVariable] = nestedValue;
|
|
82
|
+
baseSelector && (resolved.baseStyles[baseSelector][nestedLayoutVariable] = nestedValue);
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
const formattedValue = layoutVariablePrefix.includes("opacity") && typeof value === "number" ? value.toString().replace(/^0\./, ".") : value;
|
|
86
|
+
resolved.utilities[cssSelector][layoutVariablePrefix] = formattedValue;
|
|
87
|
+
baseSelector && (resolved.baseStyles[baseSelector][layoutVariablePrefix] = formattedValue);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return resolved;
|
|
92
|
+
};
|
|
93
|
+
var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
94
|
+
const resolved = resolveConfig(themes, defaultTheme, prefix);
|
|
95
|
+
const createStripeGradient = (stripeColor, backgroundColor) => `linear-gradient(45deg, hsl(var(--${prefix}-${stripeColor})) 25%, hsl(var(--${prefix}-${backgroundColor})) 25%, hsl(var(--${prefix}-${backgroundColor})) 50%, hsl(var(--${prefix}-${stripeColor})) 50%, hsl(var(--${prefix}-${stripeColor})) 75%, hsl(var(--${prefix}-${backgroundColor})) 75%, hsl(var(--${prefix}-${backgroundColor})))`;
|
|
96
|
+
return plugin(
|
|
97
|
+
({ addBase, addUtilities, addVariant }) => {
|
|
98
|
+
addBase({
|
|
99
|
+
[":root, [data-theme]"]: {
|
|
100
|
+
...baseStyles(prefix)
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
addBase({ ...resolved == null ? void 0 : resolved.baseStyles });
|
|
104
|
+
addUtilities({ ...resolved == null ? void 0 : resolved.utilities, ...utilities });
|
|
105
|
+
resolved == null ? void 0 : resolved.variants.forEach((variant) => {
|
|
106
|
+
addVariant(variant.name, variant.definition);
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
// extend the colors config
|
|
110
|
+
{
|
|
111
|
+
theme: {
|
|
112
|
+
extend: {
|
|
113
|
+
// @ts-ignore
|
|
114
|
+
colors: {
|
|
115
|
+
...addCommonColors ? commonColors : {},
|
|
116
|
+
...resolved == null ? void 0 : resolved.colors
|
|
117
|
+
},
|
|
118
|
+
scale: {
|
|
119
|
+
"80": "0.8",
|
|
120
|
+
"85": "0.85"
|
|
121
|
+
},
|
|
122
|
+
height: {
|
|
123
|
+
divider: `var(--${prefix}-divider-weight)`
|
|
124
|
+
},
|
|
125
|
+
width: {
|
|
126
|
+
divider: `var(--${prefix}-divider-weight)`
|
|
127
|
+
},
|
|
128
|
+
borderRadius: {
|
|
129
|
+
small: `var(--${prefix}-radius-small)`,
|
|
130
|
+
medium: `var(--${prefix}-radius-medium)`,
|
|
131
|
+
large: `var(--${prefix}-radius-large)`
|
|
132
|
+
},
|
|
133
|
+
opacity: {
|
|
134
|
+
hover: `var(--${prefix}-hover-opacity)`,
|
|
135
|
+
disabled: `var(--${prefix}-disabled-opacity)`
|
|
136
|
+
},
|
|
137
|
+
borderWidth: {
|
|
138
|
+
small: `var(--${prefix}-border-width-small)`,
|
|
139
|
+
medium: `var(--${prefix}-border-width-medium)`,
|
|
140
|
+
large: `var(--${prefix}-border-width-large)`,
|
|
141
|
+
1: "1px",
|
|
142
|
+
1.5: "1.5px",
|
|
143
|
+
3: "3px",
|
|
144
|
+
5: "5px"
|
|
145
|
+
},
|
|
146
|
+
boxShadow: {
|
|
147
|
+
small: `var(--${prefix}-box-shadow-small)`,
|
|
148
|
+
medium: `var(--${prefix}-box-shadow-medium)`,
|
|
149
|
+
large: `var(--${prefix}-box-shadow-large)`
|
|
150
|
+
},
|
|
151
|
+
backgroundSize: {
|
|
152
|
+
"stripe-size": "1.25rem 1.25rem"
|
|
153
|
+
},
|
|
154
|
+
backgroundImage: {
|
|
155
|
+
"stripe-gradient-default": createStripeGradient("default-200", "default-400"),
|
|
156
|
+
"stripe-gradient-primary": createStripeGradient("primary-200", "primary"),
|
|
157
|
+
"stripe-gradient-secondary": createStripeGradient("secondary-200", "secondary"),
|
|
158
|
+
"stripe-gradient-success": createStripeGradient("success-200", "success"),
|
|
159
|
+
"stripe-gradient-warning": createStripeGradient("warning-200", "warning"),
|
|
160
|
+
"stripe-gradient-danger": createStripeGradient("danger-200", "danger")
|
|
161
|
+
},
|
|
162
|
+
transitionDuration: {
|
|
163
|
+
0: "0ms",
|
|
164
|
+
250: "250ms",
|
|
165
|
+
400: "400ms"
|
|
166
|
+
},
|
|
167
|
+
transitionTimingFunction: {
|
|
168
|
+
"soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
|
|
169
|
+
},
|
|
170
|
+
...animations
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
};
|
|
176
|
+
var heroui = (config = {}) => {
|
|
177
|
+
var _a, _b, _c, _d;
|
|
178
|
+
const {
|
|
179
|
+
themes: themeObject = {},
|
|
180
|
+
defaultTheme = "light",
|
|
181
|
+
layout: userLayout,
|
|
182
|
+
defaultExtendTheme = "light",
|
|
183
|
+
prefix: defaultPrefix = DEFAULT_PREFIX,
|
|
184
|
+
addCommonColors = false
|
|
185
|
+
} = config;
|
|
186
|
+
const userLightColors = ((_a = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _a.colors) || {};
|
|
187
|
+
const userDarkColors = ((_b = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _b.colors) || {};
|
|
188
|
+
const defaultLayoutObj = userLayout && typeof userLayout === "object" ? deepMerge(defaultLayout, userLayout) : defaultLayout;
|
|
189
|
+
const baseLayouts = {
|
|
190
|
+
light: {
|
|
191
|
+
...defaultLayoutObj,
|
|
192
|
+
...lightLayout
|
|
193
|
+
},
|
|
194
|
+
dark: {
|
|
195
|
+
...defaultLayoutObj,
|
|
196
|
+
...darkLayout
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
let otherThemes = omit(themeObject, ["light", "dark"]) || {};
|
|
200
|
+
Object.entries(otherThemes).forEach(([themeName, { extend, colors, layout }]) => {
|
|
201
|
+
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
202
|
+
const baseColors = semanticColors[baseTheme];
|
|
203
|
+
otherThemes[themeName].colors = colors && typeof colors === "object" ? deepMerge(baseColors, colors) : baseColors;
|
|
204
|
+
const baseLayout = extend ? baseLayouts[extend] : defaultLayoutObj;
|
|
205
|
+
otherThemes[themeName].layout = layout && typeof layout === "object" ? deepMerge(baseLayout, layout) : baseLayout;
|
|
206
|
+
});
|
|
207
|
+
const light = {
|
|
208
|
+
layout: deepMerge(baseLayouts.light, ((_c = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _c.layout) || {}),
|
|
209
|
+
colors: deepMerge(semanticColors.light, userLightColors)
|
|
210
|
+
};
|
|
211
|
+
const dark = {
|
|
212
|
+
layout: deepMerge(baseLayouts.dark, ((_d = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _d.layout) || {}),
|
|
213
|
+
colors: deepMerge(semanticColors.dark, userDarkColors)
|
|
214
|
+
};
|
|
215
|
+
const themes = {
|
|
216
|
+
light,
|
|
217
|
+
dark,
|
|
218
|
+
...otherThemes
|
|
219
|
+
};
|
|
220
|
+
return corePlugin(themes, defaultTheme, defaultPrefix, addCommonColors);
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export {
|
|
224
|
+
heroui
|
|
225
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
utilities
|
|
3
|
+
} from "./chunk-7V3PIXOO.mjs";
|
|
4
|
+
|
|
5
|
+
// src/utils/tw-merge-config.ts
|
|
6
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
7
|
+
var twMergeConfig = {
|
|
8
|
+
theme: {
|
|
9
|
+
spacing: ["divider"],
|
|
10
|
+
radius: COMMON_UNITS
|
|
11
|
+
},
|
|
12
|
+
classGroups: {
|
|
13
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
14
|
+
opacity: [{ opacity: ["disabled"] }],
|
|
15
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
16
|
+
"border-w": [{ border: COMMON_UNITS }],
|
|
17
|
+
"bg-image": [
|
|
18
|
+
"bg-stripe-gradient-default",
|
|
19
|
+
"bg-stripe-gradient-primary",
|
|
20
|
+
"bg-stripe-gradient-secondary",
|
|
21
|
+
"bg-stripe-gradient-success",
|
|
22
|
+
"bg-stripe-gradient-warning",
|
|
23
|
+
"bg-stripe-gradient-danger"
|
|
24
|
+
],
|
|
25
|
+
transition: Object.keys(utilities).filter((key) => key.includes(".transition")).map((key) => key.replace(".", ""))
|
|
26
|
+
// remove the dot from the key, .transition-background -> transition-background
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
COMMON_UNITS,
|
|
32
|
+
twMergeConfig
|
|
33
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// src/default-layout.ts
|
|
2
|
+
var defaultLayout = {
|
|
3
|
+
dividerWeight: "1px",
|
|
4
|
+
disabledOpacity: ".5",
|
|
5
|
+
fontSize: {
|
|
6
|
+
tiny: "0.75rem",
|
|
7
|
+
small: "0.875rem",
|
|
8
|
+
medium: "1rem",
|
|
9
|
+
large: "1.125rem"
|
|
10
|
+
},
|
|
11
|
+
lineHeight: {
|
|
12
|
+
tiny: "1rem",
|
|
13
|
+
small: "1.25rem",
|
|
14
|
+
medium: "1.5rem",
|
|
15
|
+
large: "1.75rem"
|
|
16
|
+
},
|
|
17
|
+
radius: {
|
|
18
|
+
small: "8px",
|
|
19
|
+
medium: "12px",
|
|
20
|
+
large: "14px"
|
|
21
|
+
},
|
|
22
|
+
borderWidth: {
|
|
23
|
+
small: "1px",
|
|
24
|
+
medium: "2px",
|
|
25
|
+
large: "3px"
|
|
26
|
+
},
|
|
27
|
+
boxShadow: {
|
|
28
|
+
small: "0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
|
|
29
|
+
medium: "0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
|
|
30
|
+
large: "0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var lightLayout = {
|
|
34
|
+
hoverOpacity: ".8"
|
|
35
|
+
};
|
|
36
|
+
var darkLayout = {
|
|
37
|
+
hoverOpacity: ".9",
|
|
38
|
+
boxShadow: {
|
|
39
|
+
small: "0px 0px 5px 0px rgb(0 0 0 / 0.05), 0px 2px 10px 0px rgb(0 0 0 / 0.2), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
|
|
40
|
+
medium: "0px 0px 15px 0px rgb(0 0 0 / 0.06), 0px 2px 30px 0px rgb(0 0 0 / 0.22), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
|
|
41
|
+
large: "0px 0px 30px 0px rgb(0 0 0 / 0.07), 0px 30px 60px 0px rgb(0 0 0 / 0.26), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)"
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
defaultLayout,
|
|
47
|
+
lightLayout,
|
|
48
|
+
darkLayout
|
|
49
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import {
|
|
2
|
+
swapColorValues
|
|
3
|
+
} from "./chunk-5ICJA2GK.mjs";
|
|
4
|
+
import {
|
|
5
|
+
commonColors
|
|
6
|
+
} from "./chunk-NTTT6BHX.mjs";
|
|
7
|
+
|
|
8
|
+
// src/colors/semantic.ts
|
|
9
|
+
import { readableColor } from "color2k";
|
|
10
|
+
var base = {
|
|
11
|
+
light: {
|
|
12
|
+
background: {
|
|
13
|
+
DEFAULT: "#FFFFFF"
|
|
14
|
+
},
|
|
15
|
+
foreground: {
|
|
16
|
+
...commonColors.zinc,
|
|
17
|
+
DEFAULT: "#11181C"
|
|
18
|
+
},
|
|
19
|
+
divider: {
|
|
20
|
+
DEFAULT: "rgba(17, 17, 17, 0.15)"
|
|
21
|
+
},
|
|
22
|
+
focus: {
|
|
23
|
+
DEFAULT: commonColors.blue[500]
|
|
24
|
+
},
|
|
25
|
+
overlay: {
|
|
26
|
+
DEFAULT: "#000000"
|
|
27
|
+
},
|
|
28
|
+
content1: {
|
|
29
|
+
DEFAULT: "#FFFFFF",
|
|
30
|
+
foreground: "#11181C"
|
|
31
|
+
},
|
|
32
|
+
content2: {
|
|
33
|
+
DEFAULT: commonColors.zinc[100],
|
|
34
|
+
foreground: commonColors.zinc[800]
|
|
35
|
+
},
|
|
36
|
+
content3: {
|
|
37
|
+
DEFAULT: commonColors.zinc[200],
|
|
38
|
+
foreground: commonColors.zinc[700]
|
|
39
|
+
},
|
|
40
|
+
content4: {
|
|
41
|
+
DEFAULT: commonColors.zinc[300],
|
|
42
|
+
foreground: commonColors.zinc[600]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
dark: {
|
|
46
|
+
background: {
|
|
47
|
+
DEFAULT: "#000000"
|
|
48
|
+
},
|
|
49
|
+
foreground: {
|
|
50
|
+
...swapColorValues(commonColors.zinc),
|
|
51
|
+
DEFAULT: "#ECEDEE"
|
|
52
|
+
},
|
|
53
|
+
focus: {
|
|
54
|
+
DEFAULT: commonColors.blue[500]
|
|
55
|
+
},
|
|
56
|
+
overlay: {
|
|
57
|
+
DEFAULT: "#000000"
|
|
58
|
+
},
|
|
59
|
+
divider: {
|
|
60
|
+
DEFAULT: "rgba(255, 255, 255, 0.15)"
|
|
61
|
+
},
|
|
62
|
+
content1: {
|
|
63
|
+
DEFAULT: commonColors.zinc[900],
|
|
64
|
+
foreground: commonColors.zinc[50]
|
|
65
|
+
},
|
|
66
|
+
content2: {
|
|
67
|
+
DEFAULT: commonColors.zinc[800],
|
|
68
|
+
foreground: commonColors.zinc[100]
|
|
69
|
+
},
|
|
70
|
+
content3: {
|
|
71
|
+
DEFAULT: commonColors.zinc[700],
|
|
72
|
+
foreground: commonColors.zinc[200]
|
|
73
|
+
},
|
|
74
|
+
content4: {
|
|
75
|
+
DEFAULT: commonColors.zinc[600],
|
|
76
|
+
foreground: commonColors.zinc[300]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var themeColorsLight = {
|
|
81
|
+
...base.light,
|
|
82
|
+
default: {
|
|
83
|
+
...commonColors.zinc,
|
|
84
|
+
foreground: readableColor(commonColors.zinc[300]),
|
|
85
|
+
DEFAULT: commonColors.zinc[300]
|
|
86
|
+
},
|
|
87
|
+
primary: {
|
|
88
|
+
...commonColors.blue,
|
|
89
|
+
foreground: readableColor(commonColors.blue[500]),
|
|
90
|
+
DEFAULT: commonColors.blue[500]
|
|
91
|
+
},
|
|
92
|
+
secondary: {
|
|
93
|
+
...commonColors.purple,
|
|
94
|
+
foreground: readableColor(commonColors.purple[500]),
|
|
95
|
+
DEFAULT: commonColors.purple[500]
|
|
96
|
+
},
|
|
97
|
+
success: {
|
|
98
|
+
...commonColors.green,
|
|
99
|
+
foreground: readableColor(commonColors.green[500]),
|
|
100
|
+
DEFAULT: commonColors.green[500]
|
|
101
|
+
},
|
|
102
|
+
warning: {
|
|
103
|
+
...commonColors.yellow,
|
|
104
|
+
foreground: readableColor(commonColors.yellow[500]),
|
|
105
|
+
DEFAULT: commonColors.yellow[500]
|
|
106
|
+
},
|
|
107
|
+
danger: {
|
|
108
|
+
...commonColors.red,
|
|
109
|
+
foreground: commonColors.white,
|
|
110
|
+
DEFAULT: commonColors.red[500]
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var themeColorsDark = {
|
|
114
|
+
...base.dark,
|
|
115
|
+
default: {
|
|
116
|
+
...swapColorValues(commonColors.zinc),
|
|
117
|
+
foreground: readableColor(commonColors.zinc[700]),
|
|
118
|
+
DEFAULT: commonColors.zinc[700]
|
|
119
|
+
},
|
|
120
|
+
primary: {
|
|
121
|
+
...swapColorValues(commonColors.blue),
|
|
122
|
+
foreground: readableColor(commonColors.blue[500]),
|
|
123
|
+
DEFAULT: commonColors.blue[500]
|
|
124
|
+
},
|
|
125
|
+
secondary: {
|
|
126
|
+
...swapColorValues(commonColors.purple),
|
|
127
|
+
foreground: readableColor(commonColors.purple[400]),
|
|
128
|
+
DEFAULT: commonColors.purple[400]
|
|
129
|
+
},
|
|
130
|
+
success: {
|
|
131
|
+
...swapColorValues(commonColors.green),
|
|
132
|
+
foreground: readableColor(commonColors.green[500]),
|
|
133
|
+
DEFAULT: commonColors.green[500]
|
|
134
|
+
},
|
|
135
|
+
warning: {
|
|
136
|
+
...swapColorValues(commonColors.yellow),
|
|
137
|
+
foreground: readableColor(commonColors.yellow[500]),
|
|
138
|
+
DEFAULT: commonColors.yellow[500]
|
|
139
|
+
},
|
|
140
|
+
danger: {
|
|
141
|
+
...swapColorValues(commonColors.red),
|
|
142
|
+
foreground: commonColors.white,
|
|
143
|
+
DEFAULT: commonColors.red[500]
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
var semanticColors = {
|
|
147
|
+
light: themeColorsLight,
|
|
148
|
+
dark: themeColorsDark
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export {
|
|
152
|
+
themeColorsLight,
|
|
153
|
+
themeColorsDark,
|
|
154
|
+
semanticColors
|
|
155
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-PGQDBCOS.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/spacer.ts
|
|
6
|
+
var spacer = tv({
|
|
7
|
+
base: "w-px h-px inline-block",
|
|
8
|
+
variants: {
|
|
9
|
+
isInline: {
|
|
10
|
+
true: "inline-block",
|
|
11
|
+
false: "block"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
isInline: false
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
spacer
|
|
21
|
+
};
|