@nextui-org/theme 0.0.0-dev-v2-20230714033008 → 0.0.0-dev-v2-20230715020155
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-X66RRFWA.mjs → chunk-2OA2D2OJ.mjs} +12 -3
- package/dist/{chunk-GQCXHDRA.mjs → chunk-2QUE56PB.mjs} +1 -1
- package/dist/{chunk-BTHG2MOO.mjs → chunk-2ZZ5QMHO.mjs} +1 -1
- package/dist/{chunk-NWJ7Y4FY.mjs → chunk-3NXFJ2VH.mjs} +1 -1
- package/dist/{chunk-7VWFPKXY.mjs → chunk-3PTYRMI4.mjs} +1 -1
- package/dist/{chunk-3OO2OG3D.mjs → chunk-66LVDEMB.mjs} +1 -1
- package/dist/{chunk-J2DAFXTJ.mjs → chunk-6AEINX52.mjs} +5 -0
- package/dist/{chunk-USEN2DE7.mjs → chunk-6BLLWSWM.mjs} +1 -1
- package/dist/{chunk-XYK4ELGZ.mjs → chunk-77O7KLUI.mjs} +1 -1
- package/dist/{chunk-DAX4HULG.mjs → chunk-AYHGQSL4.mjs} +1 -1
- package/dist/{chunk-ZLMOQ2CL.mjs → chunk-B55QBA5E.mjs} +1 -1
- package/dist/{chunk-FZB6NELW.mjs → chunk-B66TU4DC.mjs} +1 -1
- package/dist/{chunk-2DNJYASM.mjs → chunk-EC4F6RJF.mjs} +1 -1
- package/dist/{chunk-FTAANQDH.mjs → chunk-ERIVC7UK.mjs} +18 -8
- package/dist/{chunk-NW4JUNKJ.mjs → chunk-ERKNFIKY.mjs} +1 -1
- package/dist/{chunk-4Q5LLWJY.mjs → chunk-EUS2SEYI.mjs} +1 -1
- package/dist/{chunk-5TISNX3V.mjs → chunk-GNLIYZAQ.mjs} +1 -1
- package/dist/{chunk-GGKWZEZ3.mjs → chunk-LQGOKGQV.mjs} +1 -1
- package/dist/{chunk-GRAE3A2P.mjs → chunk-MKYSU3XO.mjs} +1 -1
- package/dist/{chunk-BGAU4FMH.mjs → chunk-NAY2XKLY.mjs} +1 -1
- package/dist/{chunk-7CWAY3O6.mjs → chunk-NQPPVHK4.mjs} +1 -1
- package/dist/{chunk-DK3LBYIW.mjs → chunk-NXGWHM2G.mjs} +1 -1
- package/dist/{chunk-YU23PDLH.mjs → chunk-QX5UKEWK.mjs} +1 -1
- package/dist/{chunk-BSCHFKQW.mjs → chunk-UOD2L4IP.mjs} +1 -1
- package/dist/{chunk-RXPDLLTT.mjs → chunk-VVOIHMB5.mjs} +1 -1
- package/dist/{chunk-EXMWYYBQ.mjs → chunk-WBNF66V7.mjs} +1 -1
- package/dist/{chunk-U4O7CA4C.mjs → chunk-XCWQAA5D.mjs} +1 -1
- package/dist/{chunk-UXQJVK7X.mjs → chunk-XPLXQDB3.mjs} +1 -1
- package/dist/{chunk-VU5BK47Z.mjs → chunk-XY766PDD.mjs} +1 -1
- package/dist/{chunk-HPJYEIT7.mjs → chunk-YSXRNNDV.mjs} +1 -1
- package/dist/{chunk-W4Y7SD3F.mjs → chunk-ZHTSPUDN.mjs} +1 -1
- package/dist/{chunk-NAQMB7Q2.mjs → chunk-ZZIKFGJI.mjs} +22 -16
- package/dist/components/accordion.js +5 -0
- package/dist/components/accordion.mjs +2 -2
- package/dist/components/avatar.js +5 -0
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/badge.js +5 -0
- package/dist/components/badge.mjs +2 -2
- package/dist/components/button.js +5 -0
- package/dist/components/button.mjs +2 -2
- package/dist/components/card.js +5 -0
- package/dist/components/card.mjs +2 -2
- package/dist/components/checkbox.js +5 -0
- package/dist/components/checkbox.mjs +2 -2
- package/dist/components/chip.js +5 -0
- package/dist/components/chip.mjs +2 -2
- package/dist/components/circular-progress.js +5 -0
- package/dist/components/circular-progress.mjs +2 -2
- package/dist/components/code.js +5 -0
- package/dist/components/code.mjs +2 -2
- package/dist/components/divider.js +5 -0
- package/dist/components/divider.mjs +2 -2
- package/dist/components/drip.js +5 -0
- package/dist/components/drip.mjs +2 -2
- package/dist/components/dropdown.js +5 -0
- package/dist/components/dropdown.mjs +2 -2
- package/dist/components/image.js +5 -0
- package/dist/components/image.mjs +2 -2
- package/dist/components/index.js +33 -9
- package/dist/components/index.mjs +31 -31
- package/dist/components/input.d.ts +32 -0
- package/dist/components/input.js +22 -7
- package/dist/components/input.mjs +2 -2
- package/dist/components/kbd.js +5 -0
- package/dist/components/kbd.mjs +2 -2
- package/dist/components/link.js +5 -0
- package/dist/components/link.mjs +2 -2
- package/dist/components/modal.js +5 -0
- package/dist/components/modal.mjs +2 -2
- package/dist/components/navbar.js +5 -0
- package/dist/components/navbar.mjs +2 -2
- package/dist/components/pagination.js +5 -0
- package/dist/components/pagination.mjs +2 -2
- package/dist/components/popover.js +5 -0
- package/dist/components/popover.mjs +2 -2
- package/dist/components/progress.js +5 -0
- package/dist/components/progress.mjs +2 -2
- package/dist/components/radio.js +5 -0
- package/dist/components/radio.mjs +2 -2
- package/dist/components/skeleton.js +5 -0
- package/dist/components/skeleton.mjs +2 -2
- package/dist/components/snippet.js +5 -0
- package/dist/components/snippet.mjs +2 -2
- package/dist/components/spacer.js +5 -0
- package/dist/components/spacer.mjs +2 -2
- package/dist/components/spinner.js +5 -0
- package/dist/components/spinner.mjs +2 -2
- package/dist/components/table.d.ts +24 -0
- package/dist/components/table.js +16 -2
- package/dist/components/table.mjs +2 -2
- package/dist/components/tabs.js +5 -0
- package/dist/components/tabs.mjs +2 -2
- package/dist/components/toggle.js +5 -0
- package/dist/components/toggle.mjs +2 -2
- package/dist/components/user.js +5 -0
- package/dist/components/user.mjs +2 -2
- package/dist/index.js +55 -25
- package/dist/index.mjs +32 -32
- package/dist/plugin.js +22 -16
- package/dist/plugin.mjs +1 -1
- package/dist/utils/tv.js +5 -0
- package/dist/utils/tv.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6AEINX52.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-7XCRZIGF.mjs";
|
|
@@ -53,10 +53,12 @@ var table = tv({
|
|
|
53
53
|
"text-small",
|
|
54
54
|
"font-normal",
|
|
55
55
|
"outline-none",
|
|
56
|
+
"[&>*]:z-1",
|
|
57
|
+
"[&>*]:relative",
|
|
56
58
|
...dataFocusVisibleClasses,
|
|
57
59
|
"before:content-['']",
|
|
58
60
|
"before:absolute",
|
|
59
|
-
"before:z-
|
|
61
|
+
"before:z-0",
|
|
60
62
|
"before:inset-0",
|
|
61
63
|
"before:opacity-0",
|
|
62
64
|
"data-[selected=true]:before:opacity-100",
|
|
@@ -147,9 +149,15 @@ var table = tv({
|
|
|
147
149
|
]
|
|
148
150
|
}
|
|
149
151
|
},
|
|
152
|
+
isCompact: {
|
|
153
|
+
true: {
|
|
154
|
+
td: "py-1"
|
|
155
|
+
},
|
|
156
|
+
false: {}
|
|
157
|
+
},
|
|
150
158
|
isHeaderSticky: {
|
|
151
159
|
true: {
|
|
152
|
-
thead: "sticky top-0 z-
|
|
160
|
+
thead: "sticky top-0 z-20 [&>tr]:first:shadow-small"
|
|
153
161
|
}
|
|
154
162
|
},
|
|
155
163
|
isSelectable: {
|
|
@@ -188,6 +196,7 @@ var table = tv({
|
|
|
188
196
|
shadow: "sm",
|
|
189
197
|
radius: "lg",
|
|
190
198
|
color: "default",
|
|
199
|
+
isCompact: false,
|
|
191
200
|
hideHeader: false,
|
|
192
201
|
isStriped: false,
|
|
193
202
|
fullWidth: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6AEINX52.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses,
|
|
6
6
|
groupDataFocusVisibleClasses
|
|
@@ -9,8 +9,9 @@ import {
|
|
|
9
9
|
// src/components/input.ts
|
|
10
10
|
var input = tv({
|
|
11
11
|
slots: {
|
|
12
|
-
base: "group flex flex-col
|
|
12
|
+
base: "group flex flex-col",
|
|
13
13
|
label: "block text-small font-medium text-foreground-600",
|
|
14
|
+
mainWrapper: "",
|
|
14
15
|
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
15
16
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
16
17
|
input: "w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",
|
|
@@ -29,6 +30,7 @@ var input = tv({
|
|
|
29
30
|
"rounded-full",
|
|
30
31
|
...dataFocusVisibleClasses
|
|
31
32
|
],
|
|
33
|
+
helperWrapper: "flex relative flex-col gap-1.5 pt-1 px-1",
|
|
32
34
|
description: "text-tiny text-foreground-400",
|
|
33
35
|
errorMessage: "text-tiny text-danger"
|
|
34
36
|
},
|
|
@@ -103,17 +105,17 @@ var input = tv({
|
|
|
103
105
|
size: {
|
|
104
106
|
sm: {
|
|
105
107
|
label: "text-tiny",
|
|
106
|
-
inputWrapper: "h-8 px-2 rounded-small",
|
|
108
|
+
inputWrapper: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
107
109
|
input: "text-small",
|
|
108
110
|
clearButton: "text-medium"
|
|
109
111
|
},
|
|
110
112
|
md: {
|
|
111
|
-
inputWrapper: "h-10 rounded-medium",
|
|
113
|
+
inputWrapper: "h-unit-10 min-h-unit-10 rounded-medium",
|
|
112
114
|
input: "text-small",
|
|
113
115
|
clearButton: "text-large"
|
|
114
116
|
},
|
|
115
117
|
lg: {
|
|
116
|
-
inputWrapper: "h-12 rounded-large",
|
|
118
|
+
inputWrapper: "h-unit-12 min-h-unit-12 rounded-large",
|
|
117
119
|
input: "text-medium",
|
|
118
120
|
clearButton: "text-large"
|
|
119
121
|
}
|
|
@@ -137,12 +139,19 @@ var input = tv({
|
|
|
137
139
|
},
|
|
138
140
|
labelPlacement: {
|
|
139
141
|
outside: {
|
|
140
|
-
|
|
142
|
+
base: "data-[has-helper=true]:pb-4",
|
|
143
|
+
label: "text-foreground pb-1.5",
|
|
144
|
+
mainWrapper: "flex flex-col",
|
|
145
|
+
description: "absolute left-1",
|
|
146
|
+
errorMessage: "absolute left-1"
|
|
141
147
|
},
|
|
142
148
|
"outside-left": {
|
|
143
|
-
base: "flex-row items-center flex-
|
|
149
|
+
base: "flex-row items-center flex-nowrap data-[has-helper=true]:pb-4",
|
|
144
150
|
inputWrapper: "flex-1",
|
|
145
|
-
|
|
151
|
+
mainWrapper: "flex flex-col",
|
|
152
|
+
label: "text-foreground pr-2",
|
|
153
|
+
description: "absolute left-1",
|
|
154
|
+
errorMessage: "absolute left-1"
|
|
146
155
|
},
|
|
147
156
|
inside: {
|
|
148
157
|
label: "text-tiny",
|
|
@@ -520,6 +529,7 @@ var input = tv({
|
|
|
520
529
|
class: {
|
|
521
530
|
base: "group relative justify-end",
|
|
522
531
|
label: [
|
|
532
|
+
"pb-0",
|
|
523
533
|
"group-focus-within:left-0",
|
|
524
534
|
"group-[.is-filled]:left-0",
|
|
525
535
|
"group-focus-within:text-foreground",
|
|
@@ -109,6 +109,24 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
109
109
|
};
|
|
110
110
|
var corePlugin = (themes = {}, defaultTheme, prefix, omitCommonColors) => {
|
|
111
111
|
const resolved = resolveConfig(themes, defaultTheme, prefix);
|
|
112
|
+
const minSizes = {
|
|
113
|
+
"unit-1": `var(--${prefix}-spacing-unit)`,
|
|
114
|
+
"unit-2": `var(--${prefix}-spacing-unit-2`,
|
|
115
|
+
"unit-3": `var(--${prefix}-spacing-unit-3)`,
|
|
116
|
+
"unit-3.5": `var(--${prefix}-spacing-unit-3_5)`,
|
|
117
|
+
"unit-4": `var(--${prefix}-spacing-unit-4)`,
|
|
118
|
+
"unit-5": `var(--${prefix}-spacing-unit-5)`,
|
|
119
|
+
"unit-6": `var(--${prefix}-spacing-unit-6)`,
|
|
120
|
+
"unit-7": `var(--${prefix}-spacing-unit-7)`,
|
|
121
|
+
"unit-8": `var(--${prefix}-spacing-unit-8)`,
|
|
122
|
+
"unit-9": `var(--${prefix}-spacing-unit-9)`,
|
|
123
|
+
"unit-10": `var(--${prefix}-spacing-unit-10)`,
|
|
124
|
+
"unit-11": `var(--${prefix}-spacing-unit-11)`,
|
|
125
|
+
"unit-12": `var(--${prefix}-spacing-unit-12)`,
|
|
126
|
+
"unit-16": `var(--${prefix}-spacing-unit-16)`,
|
|
127
|
+
"unit-20": `var(--${prefix}-spacing-unit-20)`,
|
|
128
|
+
"unit-24": `var(--${prefix}-spacing-unit-24)`
|
|
129
|
+
};
|
|
112
130
|
return plugin(
|
|
113
131
|
({ addBase, addUtilities, addVariant }) => {
|
|
114
132
|
addBase({
|
|
@@ -139,22 +157,10 @@ var corePlugin = (themes = {}, defaultTheme, prefix, omitCommonColors) => {
|
|
|
139
157
|
...createSpacingUnits(prefix)
|
|
140
158
|
},
|
|
141
159
|
minWidth: {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"unit-4": `var(--${prefix}-spacing-unit-4)`,
|
|
147
|
-
"unit-5": `var(--${prefix}-spacing-unit-5)`,
|
|
148
|
-
"unit-6": `var(--${prefix}-spacing-unit-6)`,
|
|
149
|
-
"unit-7": `var(--${prefix}-spacing-unit-7)`,
|
|
150
|
-
"unit-8": `var(--${prefix}-spacing-unit-8)`,
|
|
151
|
-
"unit-9": `var(--${prefix}-spacing-unit-9)`,
|
|
152
|
-
"unit-10": `var(--${prefix}-spacing-unit-10)`,
|
|
153
|
-
"unit-11": `var(--${prefix}-spacing-unit-11)`,
|
|
154
|
-
"unit-12": `var(--${prefix}-spacing-unit-12)`,
|
|
155
|
-
"unit-16": `var(--${prefix}-spacing-unit-16)`,
|
|
156
|
-
"unit-20": `var(--${prefix}-spacing-unit-20)`,
|
|
157
|
-
"unit-24": `var(--${prefix}-spacing-unit-24)`
|
|
160
|
+
...minSizes
|
|
161
|
+
},
|
|
162
|
+
minHeight: {
|
|
163
|
+
...minSizes
|
|
158
164
|
},
|
|
159
165
|
fontSize: {
|
|
160
166
|
tiny: [`var(--${prefix}-font-size-tiny)`, `var(--${prefix}-line-height-tiny)`],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion,
|
|
3
3
|
accordionItem
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-MKYSU3XO.mjs";
|
|
5
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6AEINX52.mjs";
|
|
9
9
|
import "../chunk-7XCRZIGF.mjs";
|
|
10
10
|
import "../chunk-WA5F6AED.mjs";
|
|
11
11
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
avatar,
|
|
3
3
|
avatarGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-B66TU4DC.mjs";
|
|
5
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6AEINX52.mjs";
|
|
9
9
|
import "../chunk-7XCRZIGF.mjs";
|
|
10
10
|
import "../chunk-WA5F6AED.mjs";
|
|
11
11
|
export {
|
package/dist/components/badge.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badge
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-XCWQAA5D.mjs";
|
|
4
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
6
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-6AEINX52.mjs";
|
|
8
8
|
import "../chunk-7XCRZIGF.mjs";
|
|
9
9
|
import "../chunk-WA5F6AED.mjs";
|
|
10
10
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button,
|
|
3
3
|
buttonGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AYHGQSL4.mjs";
|
|
5
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6AEINX52.mjs";
|
|
9
9
|
import "../chunk-7XCRZIGF.mjs";
|
|
10
10
|
import "../chunk-WA5F6AED.mjs";
|
|
11
11
|
export {
|
package/dist/components/card.js
CHANGED
package/dist/components/card.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
card
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3NXFJ2VH.mjs";
|
|
4
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
6
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-6AEINX52.mjs";
|
|
8
8
|
import "../chunk-7XCRZIGF.mjs";
|
|
9
9
|
import "../chunk-WA5F6AED.mjs";
|
|
10
10
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkbox,
|
|
3
3
|
checkboxGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VVOIHMB5.mjs";
|
|
5
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6AEINX52.mjs";
|
|
9
9
|
import "../chunk-7XCRZIGF.mjs";
|
|
10
10
|
import "../chunk-WA5F6AED.mjs";
|
|
11
11
|
export {
|
package/dist/components/chip.js
CHANGED
package/dist/components/chip.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chip
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3PTYRMI4.mjs";
|
|
4
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
5
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
6
6
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-6AEINX52.mjs";
|
|
8
8
|
import "../chunk-7XCRZIGF.mjs";
|
|
9
9
|
import "../chunk-WA5F6AED.mjs";
|
|
10
10
|
export {
|