@nextui-org/theme 2.2.11 → 2.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
- package/dist/{chunk-TA7PDZUG.mjs → chunk-2TAKWWRG.mjs} +1 -1
- package/dist/chunk-3XDFZGUJ.mjs +216 -0
- package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
- package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
- package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
- package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
- package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
- package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
- package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
- package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
- package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
- package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
- package/dist/chunk-EP7KPCL3.mjs +62 -0
- package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
- package/dist/{chunk-KUKJUMC3.mjs → chunk-FB2NWPDB.mjs} +4 -4
- package/dist/{chunk-ARYJFX77.mjs → chunk-FJGKW3ZE.mjs} +10 -10
- package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
- package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
- package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
- package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
- package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
- package/dist/{chunk-22SLLLIZ.mjs → chunk-HNRFZTEX.mjs} +3 -3
- package/dist/{chunk-M3GQ3DWZ.mjs → chunk-HZ7J23VD.mjs} +6 -3
- package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
- package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
- package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
- package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
- package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
- package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
- package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
- package/dist/{chunk-JYFVXE5E.mjs → chunk-LVAEW6WR.mjs} +3 -3
- package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
- package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
- package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
- package/dist/{chunk-WGH4WKVU.mjs → chunk-QFGVVQRM.mjs} +2 -2
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-QWWVIX6M.mjs → chunk-TNFNBUPA.mjs} +5 -4
- package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
- package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
- package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
- package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
- package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
- package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
- package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
- package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
- package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
- package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
- package/dist/components/accordion.js +8 -1
- package/dist/components/accordion.mjs +5 -5
- package/dist/components/alert.d.ts +344 -0
- package/dist/components/alert.js +355 -0
- package/dist/components/alert.mjs +12 -0
- package/dist/components/autocomplete.js +8 -1
- package/dist/components/autocomplete.mjs +3 -3
- package/dist/components/avatar.js +13 -6
- package/dist/components/avatar.mjs +5 -5
- package/dist/components/badge.js +13 -6
- package/dist/components/badge.mjs +5 -5
- package/dist/components/breadcrumbs.js +9 -2
- package/dist/components/breadcrumbs.mjs +5 -5
- package/dist/components/button.js +17 -7
- package/dist/components/button.mjs +5 -5
- package/dist/components/calendar.js +8 -1
- package/dist/components/calendar.mjs +5 -5
- package/dist/components/card.js +8 -1
- package/dist/components/card.mjs +5 -5
- package/dist/components/checkbox.js +11 -4
- package/dist/components/checkbox.mjs +5 -5
- package/dist/components/chip.js +13 -6
- package/dist/components/chip.mjs +5 -5
- package/dist/components/circular-progress.js +8 -1
- package/dist/components/circular-progress.mjs +3 -3
- package/dist/components/code.js +13 -6
- package/dist/components/code.mjs +5 -5
- package/dist/components/date-input.js +10 -3
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +9 -2
- package/dist/components/date-picker.mjs +3 -3
- package/dist/components/divider.js +8 -1
- package/dist/components/divider.mjs +3 -3
- package/dist/components/drawer.d.ts +358 -0
- package/dist/components/drawer.js +130 -0
- package/dist/components/drawer.mjs +8 -0
- package/dist/components/drip.js +8 -1
- package/dist/components/drip.mjs +3 -3
- package/dist/components/dropdown.js +8 -1
- package/dist/components/dropdown.mjs +5 -5
- package/dist/components/image.js +8 -1
- package/dist/components/image.mjs +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +367 -55
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +12 -4
- package/dist/components/input.mjs +5 -5
- package/dist/components/kbd.js +8 -1
- package/dist/components/kbd.mjs +3 -3
- package/dist/components/link.js +8 -1
- package/dist/components/link.mjs +5 -5
- package/dist/components/listbox.js +8 -1
- package/dist/components/listbox.mjs +5 -5
- package/dist/components/menu.js +8 -1
- package/dist/components/menu.mjs +5 -5
- package/dist/components/modal.js +9 -4
- package/dist/components/modal.mjs +5 -5
- package/dist/components/navbar.js +8 -1
- package/dist/components/navbar.mjs +5 -5
- package/dist/components/pagination.js +13 -6
- package/dist/components/pagination.mjs +5 -5
- package/dist/components/popover.js +13 -6
- package/dist/components/popover.mjs +5 -5
- package/dist/components/progress.js +44 -2
- package/dist/components/progress.mjs +3 -3
- package/dist/components/radio.js +10 -3
- package/dist/components/radio.mjs +5 -5
- package/dist/components/scroll-shadow.js +8 -1
- package/dist/components/scroll-shadow.mjs +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/components/select.js +13 -3
- package/dist/components/select.mjs +5 -5
- package/dist/components/skeleton.js +8 -1
- package/dist/components/skeleton.mjs +3 -3
- package/dist/components/slider.js +8 -1
- package/dist/components/slider.mjs +5 -5
- package/dist/components/snippet.js +13 -6
- package/dist/components/snippet.mjs +5 -5
- package/dist/components/spacer.js +8 -1
- package/dist/components/spacer.mjs +3 -3
- package/dist/components/spinner.js +8 -1
- package/dist/components/spinner.mjs +3 -3
- package/dist/components/table.js +29 -22
- package/dist/components/table.mjs +5 -5
- package/dist/components/tabs.js +13 -6
- package/dist/components/tabs.mjs +5 -5
- package/dist/components/toggle.js +17 -10
- package/dist/components/toggle.mjs +5 -5
- package/dist/components/user.d.ts +26 -27
- package/dist/components/user.js +8 -1
- package/dist/components/user.mjs +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +392 -69
- package/dist/index.mjs +74 -66
- package/dist/plugin.js +24 -13
- package/dist/plugin.mjs +4 -4
- package/dist/utilities/custom.d.ts +5 -0
- package/dist/utilities/custom.js +5 -0
- package/dist/utilities/custom.mjs +1 -1
- package/dist/utilities/index.d.ts +5 -0
- package/dist/utilities/index.js +5 -0
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.js +9 -2
- package/dist/utils/cn.mjs +2 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +14 -7
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/tv.js +8 -1
- package/dist/utils/tv.mjs +2 -2
- package/dist/utils/tw-merge-config.d.ts +17 -3
- package/dist/utils/tw-merge-config.js +8 -1
- package/dist/utils/tw-merge-config.mjs +1 -1
- package/dist/utils/variants.js +5 -5
- package/dist/utils/variants.mjs +1 -1
- package/package.json +3 -12
- /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/date-input.ts
|
|
6
6
|
var dateInput = tv({
|
|
@@ -151,13 +151,13 @@ var dateInput = tv({
|
|
|
151
151
|
outside: {
|
|
152
152
|
base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
|
|
153
153
|
label: "w-full text-foreground",
|
|
154
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
154
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
155
155
|
},
|
|
156
156
|
"outside-left": {
|
|
157
157
|
base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
|
|
158
158
|
label: "relative text-foreground",
|
|
159
159
|
inputWrapper: "relative flex-1",
|
|
160
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
160
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
161
161
|
},
|
|
162
162
|
inside: {
|
|
163
163
|
label: "w-full text-tiny cursor-text",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/components/select.ts
|
|
9
9
|
var select = tv({
|
|
10
10
|
slots: {
|
|
11
|
-
base: ["group inline-flex flex-col relative
|
|
11
|
+
base: ["group inline-flex flex-col relative"],
|
|
12
12
|
label: [
|
|
13
13
|
"block",
|
|
14
14
|
"absolute",
|
|
@@ -25,7 +25,7 @@ var select = tv({
|
|
|
25
25
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
26
26
|
selectorIcon: "absolute end-3 w-4 h-4",
|
|
27
27
|
spinner: "absolute end-3",
|
|
28
|
-
value: ["text-foreground-500", "font-normal", "w-full", "text-
|
|
28
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-start"],
|
|
29
29
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
30
30
|
listbox: "",
|
|
31
31
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -146,6 +146,9 @@ var select = tv({
|
|
|
146
146
|
fullWidth: {
|
|
147
147
|
true: {
|
|
148
148
|
base: "w-full"
|
|
149
|
+
},
|
|
150
|
+
false: {
|
|
151
|
+
base: "min-w-40"
|
|
149
152
|
}
|
|
150
153
|
},
|
|
151
154
|
isDisabled: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/progress.ts
|
|
6
6
|
var progress = tv(
|
|
@@ -75,7 +75,7 @@ var progress = tv(
|
|
|
75
75
|
},
|
|
76
76
|
isStriped: {
|
|
77
77
|
true: {
|
|
78
|
-
indicator: "bg-stripe-gradient bg-
|
|
78
|
+
indicator: "bg-stripe-gradient-default bg-stripe-size"
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
isIndeterminate: {
|
|
@@ -110,6 +110,41 @@ var progress = tv(
|
|
|
110
110
|
class: {
|
|
111
111
|
indicator: "!transition-none motion-reduce:transition-none"
|
|
112
112
|
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
color: "primary",
|
|
116
|
+
isStriped: true,
|
|
117
|
+
class: {
|
|
118
|
+
indicator: "bg-stripe-gradient-primary bg-stripe-size"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
color: "secondary",
|
|
123
|
+
isStriped: true,
|
|
124
|
+
class: {
|
|
125
|
+
indicator: "bg-stripe-gradient-secondary bg-stripe-size"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
color: "success",
|
|
130
|
+
isStriped: true,
|
|
131
|
+
class: {
|
|
132
|
+
indicator: "bg-stripe-gradient-success bg-stripe-size"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
color: "warning",
|
|
137
|
+
isStriped: true,
|
|
138
|
+
class: {
|
|
139
|
+
indicator: "bg-stripe-gradient-warning bg-stripe-size"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
color: "danger",
|
|
144
|
+
isStriped: true,
|
|
145
|
+
class: {
|
|
146
|
+
indicator: "bg-stripe-gradient-danger bg-stripe-size"
|
|
147
|
+
}
|
|
113
148
|
}
|
|
114
149
|
]
|
|
115
150
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -18,7 +18,7 @@ var breadcrumbItem = tv({
|
|
|
18
18
|
"tap-highlight-transparent",
|
|
19
19
|
...dataFocusVisibleClasses
|
|
20
20
|
],
|
|
21
|
-
separator: "text-default-400 px-1"
|
|
21
|
+
separator: "text-default-400 px-1 rtl:rotate-180"
|
|
22
22
|
},
|
|
23
23
|
variants: {
|
|
24
24
|
color: {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-D2XMP2NC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
utilities
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XZMJGJQX.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_TRANSITION_DURATION
|
|
9
9
|
} from "./chunk-WN6AL2BX.mjs";
|
|
@@ -31,12 +31,8 @@ import {
|
|
|
31
31
|
// src/plugin.ts
|
|
32
32
|
import Color from "color";
|
|
33
33
|
import plugin from "tailwindcss/plugin.js";
|
|
34
|
-
import get from "lodash.get";
|
|
35
|
-
import omit from "lodash.omit";
|
|
36
|
-
import forEach from "lodash.foreach";
|
|
37
|
-
import mapKeys from "lodash.mapkeys";
|
|
38
|
-
import kebabCase from "lodash.kebabcase";
|
|
39
34
|
import deepMerge from "deepmerge";
|
|
35
|
+
import { omit, kebabCase, mapKeys } from "@nextui-org/shared-utils";
|
|
40
36
|
var DEFAULT_PREFIX = "nextui";
|
|
41
37
|
var parsedColorsCache = {};
|
|
42
38
|
var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
@@ -55,7 +51,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
55
51
|
"color-scheme": scheme
|
|
56
52
|
} : {};
|
|
57
53
|
const flatColors = flattenThemeObject(colors);
|
|
58
|
-
const flatLayout = layout ? mapKeys(layout, (
|
|
54
|
+
const flatLayout = layout ? mapKeys(layout, (_, key) => kebabCase(key)) : {};
|
|
59
55
|
resolved.variants.push({
|
|
60
56
|
name: themeName,
|
|
61
57
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
@@ -105,6 +101,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
105
101
|
};
|
|
106
102
|
var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
107
103
|
const resolved = resolveConfig(themes, defaultTheme, prefix);
|
|
104
|
+
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})))`;
|
|
108
105
|
return plugin(
|
|
109
106
|
({ addBase, addUtilities, addVariant }) => {
|
|
110
107
|
addBase({
|
|
@@ -163,8 +160,16 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
163
160
|
medium: `var(--${prefix}-box-shadow-medium)`,
|
|
164
161
|
large: `var(--${prefix}-box-shadow-large)`
|
|
165
162
|
},
|
|
163
|
+
backgroundSize: {
|
|
164
|
+
"stripe-size": "1.25rem 1.25rem"
|
|
165
|
+
},
|
|
166
166
|
backgroundImage: {
|
|
167
|
-
"stripe-gradient": "
|
|
167
|
+
"stripe-gradient-default": createStripeGradient("default-200", "default-400"),
|
|
168
|
+
"stripe-gradient-primary": createStripeGradient("primary-200", "primary"),
|
|
169
|
+
"stripe-gradient-secondary": createStripeGradient("secondary-200", "secondary"),
|
|
170
|
+
"stripe-gradient-success": createStripeGradient("success-200", "success"),
|
|
171
|
+
"stripe-gradient-warning": createStripeGradient("warning-200", "warning"),
|
|
172
|
+
"stripe-gradient-danger": createStripeGradient("danger-200", "danger")
|
|
168
173
|
},
|
|
169
174
|
transitionDuration: {
|
|
170
175
|
0: "0ms",
|
|
@@ -182,6 +187,7 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
182
187
|
);
|
|
183
188
|
};
|
|
184
189
|
var nextui = (config = {}) => {
|
|
190
|
+
var _a, _b, _c, _d;
|
|
185
191
|
const {
|
|
186
192
|
themes: themeObject = {},
|
|
187
193
|
defaultTheme = "light",
|
|
@@ -190,8 +196,8 @@ var nextui = (config = {}) => {
|
|
|
190
196
|
prefix: defaultPrefix = DEFAULT_PREFIX,
|
|
191
197
|
addCommonColors = false
|
|
192
198
|
} = config;
|
|
193
|
-
const userLightColors =
|
|
194
|
-
const userDarkColors =
|
|
199
|
+
const userLightColors = ((_a = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _a.colors) || {};
|
|
200
|
+
const userDarkColors = ((_b = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _b.colors) || {};
|
|
195
201
|
const defaultLayoutObj = userLayout && typeof userLayout === "object" ? deepMerge(defaultLayout, userLayout) : defaultLayout;
|
|
196
202
|
const baseLayouts = {
|
|
197
203
|
light: {
|
|
@@ -204,7 +210,7 @@ var nextui = (config = {}) => {
|
|
|
204
210
|
}
|
|
205
211
|
};
|
|
206
212
|
let otherThemes = omit(themeObject, ["light", "dark"]) || {};
|
|
207
|
-
forEach(
|
|
213
|
+
Object.entries(otherThemes).forEach(([themeName, { extend, colors, layout }]) => {
|
|
208
214
|
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
209
215
|
if (colors && typeof colors === "object") {
|
|
210
216
|
otherThemes[themeName].colors = deepMerge(semanticColors[baseTheme], colors);
|
|
@@ -217,11 +223,11 @@ var nextui = (config = {}) => {
|
|
|
217
223
|
}
|
|
218
224
|
});
|
|
219
225
|
const light = {
|
|
220
|
-
layout: deepMerge(baseLayouts.light,
|
|
226
|
+
layout: deepMerge(baseLayouts.light, ((_c = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _c.layout) || {}),
|
|
221
227
|
colors: deepMerge(semanticColors.light, userLightColors)
|
|
222
228
|
};
|
|
223
229
|
const dark = {
|
|
224
|
-
layout: deepMerge(baseLayouts.dark,
|
|
230
|
+
layout: deepMerge(baseLayouts.dark, ((_d = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _d.layout) || {}),
|
|
225
231
|
colors: deepMerge(semanticColors.dark, userDarkColors)
|
|
226
232
|
};
|
|
227
233
|
const themes = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
groupDataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -77,14 +77,14 @@ var radio = tv({
|
|
|
77
77
|
md: {
|
|
78
78
|
wrapper: "w-5 h-5",
|
|
79
79
|
control: "w-2 h-2",
|
|
80
|
-
labelWrapper: "
|
|
80
|
+
labelWrapper: "ms-2",
|
|
81
81
|
label: "text-medium",
|
|
82
82
|
description: "text-small"
|
|
83
83
|
},
|
|
84
84
|
lg: {
|
|
85
85
|
wrapper: "w-6 h-6",
|
|
86
86
|
control: "w-2.5 h-2.5",
|
|
87
|
-
labelWrapper: "
|
|
87
|
+
labelWrapper: "ms-2",
|
|
88
88
|
label: "text-large",
|
|
89
89
|
description: "text-medium"
|
|
90
90
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -44,9 +44,7 @@ var modal = tv({
|
|
|
44
44
|
"outline-none",
|
|
45
45
|
"select-none",
|
|
46
46
|
"top-1",
|
|
47
|
-
"
|
|
48
|
-
"rtl:left-1",
|
|
49
|
-
"rtl:right-[unset]",
|
|
47
|
+
"end-1",
|
|
50
48
|
"p-2",
|
|
51
49
|
"text-foreground-500",
|
|
52
50
|
"rounded-full",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/date-picker.ts
|
|
6
6
|
var datePicker = tv({
|
|
7
7
|
slots: {
|
|
8
8
|
base: "group w-full",
|
|
9
|
-
selectorButton: "-
|
|
9
|
+
selectorButton: "-mx-2 text-inherit",
|
|
10
10
|
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
|
|
11
11
|
popoverContent: "p-0 w-full",
|
|
12
12
|
calendar: "w-[calc(var(--visible-months)_*_var(--calendar-width))] shadow-none",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses,
|
|
6
6
|
groupDataFocusVisibleClasses
|
|
@@ -168,11 +168,12 @@ var input = tv({
|
|
|
168
168
|
fullWidth: {
|
|
169
169
|
true: {
|
|
170
170
|
base: "w-full"
|
|
171
|
-
}
|
|
171
|
+
},
|
|
172
|
+
false: {}
|
|
172
173
|
},
|
|
173
174
|
isClearable: {
|
|
174
175
|
true: {
|
|
175
|
-
input: "peer
|
|
176
|
+
input: "peer pe-6 input-search-cancel-button-none",
|
|
176
177
|
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
177
178
|
}
|
|
178
179
|
},
|
|
@@ -191,7 +192,7 @@ var input = tv({
|
|
|
191
192
|
},
|
|
192
193
|
isRequired: {
|
|
193
194
|
true: {
|
|
194
|
-
label: "after:content-['*'] after:text-danger after:
|
|
195
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
195
196
|
}
|
|
196
197
|
},
|
|
197
198
|
isMultiline: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
transition_default
|
|
3
|
+
} from "./chunk-WN6AL2BX.mjs";
|
|
1
4
|
import {
|
|
2
5
|
custom_default
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W5UU3F46.mjs";
|
|
4
7
|
import {
|
|
5
8
|
scrollbar_hide_default
|
|
6
9
|
} from "./chunk-4Z22WXZX.mjs";
|
|
7
|
-
import {
|
|
8
|
-
transition_default
|
|
9
|
-
} from "./chunk-WN6AL2BX.mjs";
|
|
10
10
|
|
|
11
11
|
// src/utilities/index.ts
|
|
12
12
|
var utilities = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colorVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GQT3YUX3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
tv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
7
7
|
import {
|
|
8
8
|
collapseAdjacentVariantBorders,
|
|
9
9
|
dataFocusVisibleClasses
|
|
@@ -308,7 +308,10 @@ var button = tv({
|
|
|
308
308
|
{
|
|
309
309
|
variant: "ghost",
|
|
310
310
|
color: "danger",
|
|
311
|
-
class: [
|
|
311
|
+
class: [
|
|
312
|
+
colorVariants.ghost.danger,
|
|
313
|
+
"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"
|
|
314
|
+
]
|
|
312
315
|
},
|
|
313
316
|
{
|
|
314
317
|
isInGroup: true,
|
|
@@ -40,7 +40,14 @@ var twMergeConfig = {
|
|
|
40
40
|
classGroups: {
|
|
41
41
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
42
42
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
43
|
-
"bg-image": [
|
|
43
|
+
"bg-image": [
|
|
44
|
+
"bg-stripe-gradient-default",
|
|
45
|
+
"bg-stripe-gradient-primary",
|
|
46
|
+
"bg-stripe-gradient-secondary",
|
|
47
|
+
"bg-stripe-gradient-success",
|
|
48
|
+
"bg-stripe-gradient-warning",
|
|
49
|
+
"bg-stripe-gradient-danger"
|
|
50
|
+
]
|
|
44
51
|
}
|
|
45
52
|
};
|
|
46
53
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion,
|
|
3
3
|
accordionItem
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-HIFLYEAM.mjs";
|
|
5
5
|
import "../chunk-IV3K5WDK.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-GQT3YUX3.mjs";
|
|
7
|
+
import "../chunk-46U6G7UJ.mjs";
|
|
8
|
+
import "../chunk-UWE6H66T.mjs";
|
|
9
|
+
import "../chunk-GIXI35A3.mjs";
|
|
10
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
11
11
|
export {
|
|
12
12
|
accordion,
|