@nextui-org/theme 0.0.0-dev-v2-20230706030638 → 0.0.0-dev-v2-20230707003639
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-MBMVULBL.mjs → chunk-2743AVRX.mjs} +1 -1
- package/dist/{chunk-W6DVXJB3.mjs → chunk-2F6XVFNG.mjs} +1 -1
- package/dist/{chunk-PSEUPXFL.mjs → chunk-3FPSND7Y.mjs} +1 -1
- package/dist/{chunk-K7J53FGN.mjs → chunk-3PXNVHIV.mjs} +3 -3
- package/dist/{chunk-WAAJG22Y.mjs → chunk-4KW5BSMS.mjs} +1 -1
- package/dist/{chunk-LDBYFTHC.mjs → chunk-5KVXZCV5.mjs} +1 -1
- package/dist/{chunk-UODOTC2G.mjs → chunk-5KZVRSWU.mjs} +1 -1
- package/dist/{chunk-ETX5K2PY.mjs → chunk-65C2OLPQ.mjs} +3 -3
- package/dist/{chunk-JKWIX3WW.mjs → chunk-7IAKEIIF.mjs} +3 -3
- package/dist/{chunk-AGUZRGXC.mjs → chunk-AUEC3MBX.mjs} +1 -1
- package/dist/{chunk-RVVPQOCN.mjs → chunk-BF7L7DAN.mjs} +1 -1
- package/dist/{chunk-OFWUJFG6.mjs → chunk-CLQQQIUB.mjs} +1 -1
- package/dist/{chunk-SQCHLZL7.mjs → chunk-CNRS36CD.mjs} +1 -1
- package/dist/{chunk-QMVL7T5G.mjs → chunk-CWKXWCSG.mjs} +1 -1
- package/dist/{chunk-UZZPYFGR.mjs → chunk-DNEMDRDM.mjs} +1 -2
- package/dist/{chunk-GZVAQ5VD.mjs → chunk-EPRBHGUM.mjs} +3 -3
- package/dist/{chunk-5E5D6JLO.mjs → chunk-G4RCK475.mjs} +3 -3
- package/dist/{chunk-GCKY7FII.mjs → chunk-GQA532YJ.mjs} +1 -1
- package/dist/{chunk-NXGPICRI.mjs → chunk-HI7JD7LI.mjs} +1 -1
- package/dist/{chunk-LXHWZ5PE.mjs → chunk-HK6FLMPL.mjs} +1 -0
- package/dist/{chunk-5LSACMFO.mjs → chunk-HM7DVYU6.mjs} +3 -3
- package/dist/{chunk-QA5I3ZAL.mjs → chunk-IFPTEK2Y.mjs} +3 -3
- package/dist/{chunk-CJRYUKCX.mjs → chunk-K7DMXP26.mjs} +1 -1
- package/dist/{chunk-524WVPFR.mjs → chunk-KYJT42RN.mjs} +1 -1
- package/dist/{chunk-K2ENZAOR.mjs → chunk-LUKNKAXA.mjs} +39 -22
- package/dist/{chunk-NHCMORGO.mjs → chunk-ODPWKAVD.mjs} +3 -3
- package/dist/{chunk-Y6DYRIUN.mjs → chunk-OOFFFIO2.mjs} +1 -1
- package/dist/{chunk-DPUIOS3A.mjs → chunk-QZTWGJ72.mjs} +2 -2
- package/dist/{chunk-2OJQTQ24.mjs → chunk-TRZLWKEX.mjs} +12 -12
- package/dist/{chunk-L7XBTQSM.mjs → chunk-U27H53NM.mjs} +3 -3
- package/dist/{chunk-IWEUZYJF.mjs → chunk-UHGUD5JU.mjs} +1 -1
- package/dist/{chunk-GMMETTYU.mjs → chunk-UX2EEVVM.mjs} +5 -1
- package/dist/chunk-WA5F6AED.mjs +57 -0
- package/dist/chunk-XA5ALA4E.mjs +62 -0
- package/dist/{chunk-ICPFKWB4.mjs → chunk-Y7SYYSA5.mjs} +1 -1
- package/dist/{chunk-TXDV4YYI.mjs → chunk-YHUCLCWM.mjs} +1 -1
- package/dist/{chunk-FJYKXAF3.mjs → chunk-YQFJ7SOU.mjs} +1 -1
- package/dist/colors/common.mjs +5 -5
- package/dist/colors/index.mjs +8 -8
- package/dist/colors/semantic.mjs +7 -7
- package/dist/colors.mjs +8 -8
- package/dist/components/accordion.js +56 -2
- package/dist/components/accordion.mjs +3 -2
- package/dist/components/avatar.js +56 -1
- package/dist/components/avatar.mjs +3 -2
- package/dist/components/badge.js +56 -1
- package/dist/components/badge.mjs +3 -2
- package/dist/components/button.d.ts +20 -20
- package/dist/components/button.js +65 -10
- package/dist/components/button.mjs +3 -2
- package/dist/components/card.js +56 -1
- package/dist/components/card.mjs +3 -2
- package/dist/components/checkbox.js +56 -1
- package/dist/components/checkbox.mjs +3 -2
- package/dist/components/chip.js +56 -1
- package/dist/components/chip.mjs +3 -2
- package/dist/components/circular-progress.js +56 -1
- package/dist/components/circular-progress.mjs +3 -2
- package/dist/components/code.js +56 -1
- package/dist/components/code.mjs +3 -2
- package/dist/components/divider.js +56 -1
- package/dist/components/divider.mjs +3 -2
- package/dist/components/drip.js +56 -1
- package/dist/components/drip.mjs +3 -2
- package/dist/components/dropdown.js +56 -1
- package/dist/components/dropdown.mjs +3 -2
- package/dist/components/image.js +56 -1
- package/dist/components/image.mjs +3 -2
- package/dist/components/index.js +65 -11
- package/dist/components/index.mjs +54 -53
- package/dist/components/input.js +56 -1
- package/dist/components/input.mjs +3 -2
- package/dist/components/kbd.js +56 -1
- package/dist/components/kbd.mjs +3 -2
- package/dist/components/link.js +56 -1
- package/dist/components/link.mjs +3 -2
- package/dist/components/modal.js +56 -1
- package/dist/components/modal.mjs +3 -2
- package/dist/components/navbar.js +56 -1
- package/dist/components/navbar.mjs +3 -2
- package/dist/components/pagination.js +56 -1
- package/dist/components/pagination.mjs +3 -2
- package/dist/components/popover.js +56 -1
- package/dist/components/popover.mjs +3 -2
- package/dist/components/progress.js +56 -1
- package/dist/components/progress.mjs +3 -2
- package/dist/components/radio.js +56 -1
- package/dist/components/radio.mjs +3 -2
- package/dist/components/skeleton.js +56 -1
- package/dist/components/skeleton.mjs +3 -2
- package/dist/components/snippet.js +56 -1
- package/dist/components/snippet.mjs +3 -2
- package/dist/components/spacer.js +56 -1
- package/dist/components/spacer.mjs +3 -2
- package/dist/components/spinner.js +56 -1
- package/dist/components/spinner.mjs +3 -2
- package/dist/components/table.js +56 -1
- package/dist/components/table.mjs +3 -2
- package/dist/components/tabs.js +56 -1
- package/dist/components/tabs.mjs +3 -2
- package/dist/components/toggle.js +56 -1
- package/dist/components/toggle.mjs +3 -2
- package/dist/components/user.js +56 -1
- package/dist/components/user.mjs +3 -2
- package/dist/default-layout.js +1 -0
- package/dist/default-layout.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +148 -24
- package/dist/index.mjs +85 -79
- package/dist/plugin.js +132 -13
- package/dist/plugin.mjs +14 -13
- package/dist/types.d.ts +11 -1
- package/dist/types.js +64 -0
- package/dist/types.mjs +8 -0
- package/dist/utils/theme.d.ts +3 -1
- package/dist/utils/theme.js +109 -0
- package/dist/utils/theme.mjs +6 -1
- package/dist/utils/tv.js +56 -1
- package/dist/utils/tv.mjs +2 -1
- package/package.json +1 -1
- package/dist/chunk-D2XMP2NC.mjs +0 -6
- package/dist/{chunk-NTTT6BHX.mjs → chunk-IAS3SFA4.mjs} +12 -12
package/dist/colors/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QZTWGJ72.mjs";
|
|
4
4
|
import {
|
|
5
5
|
semanticColors
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-G4RCK475.mjs";
|
|
7
|
+
import "../chunk-KUNVFLXJ.mjs";
|
|
7
8
|
import "../chunk-M63AFAHO.mjs";
|
|
8
9
|
import {
|
|
9
10
|
commonColors
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-DCEG5LGX.mjs";
|
|
12
|
-
import "../chunk-L2OL7R23.mjs";
|
|
13
|
-
import "../chunk-YZYGFPNK.mjs";
|
|
11
|
+
} from "../chunk-IAS3SFA4.mjs";
|
|
14
12
|
import "../chunk-JUEOCLA3.mjs";
|
|
15
13
|
import "../chunk-3LKKH4AR.mjs";
|
|
16
|
-
import "../chunk-GHZ36ATJ.mjs";
|
|
17
14
|
import "../chunk-T3GWIVAM.mjs";
|
|
18
15
|
import "../chunk-OR5PUD24.mjs";
|
|
19
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-DCEG5LGX.mjs";
|
|
17
|
+
import "../chunk-L2OL7R23.mjs";
|
|
18
|
+
import "../chunk-YZYGFPNK.mjs";
|
|
19
|
+
import "../chunk-GHZ36ATJ.mjs";
|
|
20
20
|
export {
|
|
21
21
|
colors,
|
|
22
22
|
commonColors,
|
package/dist/colors/semantic.mjs
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
semanticColors,
|
|
3
3
|
themeColorsDark,
|
|
4
4
|
themeColorsLight
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-L2OL7R23.mjs";
|
|
9
|
-
import "../chunk-YZYGFPNK.mjs";
|
|
5
|
+
} from "../chunk-G4RCK475.mjs";
|
|
6
|
+
import "../chunk-KUNVFLXJ.mjs";
|
|
7
|
+
import "../chunk-IAS3SFA4.mjs";
|
|
10
8
|
import "../chunk-JUEOCLA3.mjs";
|
|
11
9
|
import "../chunk-3LKKH4AR.mjs";
|
|
12
|
-
import "../chunk-GHZ36ATJ.mjs";
|
|
13
10
|
import "../chunk-T3GWIVAM.mjs";
|
|
14
11
|
import "../chunk-OR5PUD24.mjs";
|
|
15
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-DCEG5LGX.mjs";
|
|
13
|
+
import "../chunk-L2OL7R23.mjs";
|
|
14
|
+
import "../chunk-YZYGFPNK.mjs";
|
|
15
|
+
import "../chunk-GHZ36ATJ.mjs";
|
|
16
16
|
export {
|
|
17
17
|
semanticColors,
|
|
18
18
|
themeColorsDark,
|
package/dist/colors.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "./chunk-WQEDQHKX.mjs";
|
|
2
2
|
import {
|
|
3
3
|
colors
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QZTWGJ72.mjs";
|
|
5
5
|
import {
|
|
6
6
|
semanticColors
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G4RCK475.mjs";
|
|
8
|
+
import "./chunk-KUNVFLXJ.mjs";
|
|
8
9
|
import "./chunk-M63AFAHO.mjs";
|
|
9
10
|
import {
|
|
10
11
|
commonColors
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-DCEG5LGX.mjs";
|
|
13
|
-
import "./chunk-L2OL7R23.mjs";
|
|
14
|
-
import "./chunk-YZYGFPNK.mjs";
|
|
12
|
+
} from "./chunk-IAS3SFA4.mjs";
|
|
15
13
|
import "./chunk-JUEOCLA3.mjs";
|
|
16
14
|
import "./chunk-3LKKH4AR.mjs";
|
|
17
|
-
import "./chunk-GHZ36ATJ.mjs";
|
|
18
15
|
import "./chunk-T3GWIVAM.mjs";
|
|
19
16
|
import "./chunk-OR5PUD24.mjs";
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-DCEG5LGX.mjs";
|
|
18
|
+
import "./chunk-L2OL7R23.mjs";
|
|
19
|
+
import "./chunk-YZYGFPNK.mjs";
|
|
20
|
+
import "./chunk-GHZ36ATJ.mjs";
|
|
21
21
|
export {
|
|
22
22
|
colors,
|
|
23
23
|
commonColors,
|
|
@@ -27,6 +27,61 @@ module.exports = __toCommonJS(accordion_exports);
|
|
|
27
27
|
|
|
28
28
|
// src/utils/tv.ts
|
|
29
29
|
var import_tailwind_variants = require("tailwind-variants");
|
|
30
|
+
|
|
31
|
+
// src/types.ts
|
|
32
|
+
var spacingScaleKeys = [
|
|
33
|
+
"0",
|
|
34
|
+
"xs",
|
|
35
|
+
"sm",
|
|
36
|
+
"md",
|
|
37
|
+
"lg",
|
|
38
|
+
"xl",
|
|
39
|
+
"2xl",
|
|
40
|
+
"3xl",
|
|
41
|
+
"4xl",
|
|
42
|
+
"5xl",
|
|
43
|
+
"6xl",
|
|
44
|
+
"7xl",
|
|
45
|
+
"8xl",
|
|
46
|
+
"9xl",
|
|
47
|
+
"1",
|
|
48
|
+
"2",
|
|
49
|
+
"3",
|
|
50
|
+
"3.5",
|
|
51
|
+
"4",
|
|
52
|
+
"5",
|
|
53
|
+
"6",
|
|
54
|
+
"7",
|
|
55
|
+
"8",
|
|
56
|
+
"9",
|
|
57
|
+
"10",
|
|
58
|
+
"11",
|
|
59
|
+
"12",
|
|
60
|
+
"13",
|
|
61
|
+
"14",
|
|
62
|
+
"15",
|
|
63
|
+
"16",
|
|
64
|
+
"17",
|
|
65
|
+
"18",
|
|
66
|
+
"20",
|
|
67
|
+
"24",
|
|
68
|
+
"28",
|
|
69
|
+
"32",
|
|
70
|
+
"36",
|
|
71
|
+
"40",
|
|
72
|
+
"44",
|
|
73
|
+
"48",
|
|
74
|
+
"52",
|
|
75
|
+
"56",
|
|
76
|
+
"60",
|
|
77
|
+
"64",
|
|
78
|
+
"72",
|
|
79
|
+
"80",
|
|
80
|
+
"96"
|
|
81
|
+
];
|
|
82
|
+
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
83
|
+
|
|
84
|
+
// src/utils/tv.ts
|
|
30
85
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
31
86
|
var tv = (options, config) => {
|
|
32
87
|
var _a, _b, _c;
|
|
@@ -38,7 +93,7 @@ var tv = (options, config) => {
|
|
|
38
93
|
theme: {
|
|
39
94
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
40
95
|
opacity: ["disabled"],
|
|
41
|
-
spacing: ["divider"],
|
|
96
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
42
97
|
borderWidth: COMMON_UNITS,
|
|
43
98
|
borderRadius: COMMON_UNITS
|
|
44
99
|
},
|
|
@@ -93,7 +148,6 @@ var accordionItem = tv({
|
|
|
93
148
|
heading: "",
|
|
94
149
|
trigger: [
|
|
95
150
|
"flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",
|
|
96
|
-
"data-[pressed=true]:opacity-disabled",
|
|
97
151
|
...dataFocusVisibleClasses
|
|
98
152
|
],
|
|
99
153
|
startContent: "flex-shrink-0",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion,
|
|
3
3
|
accordionItem
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-GMMETTYU.mjs";
|
|
4
|
+
} from "../chunk-DNEMDRDM.mjs";
|
|
6
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
7
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
8
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
+
import "../chunk-UX2EEVVM.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
|
+
import "../chunk-WA5F6AED.mjs";
|
|
10
11
|
export {
|
|
11
12
|
accordion,
|
|
12
13
|
accordionItem
|
|
@@ -27,6 +27,61 @@ module.exports = __toCommonJS(avatar_exports);
|
|
|
27
27
|
|
|
28
28
|
// src/utils/tv.ts
|
|
29
29
|
var import_tailwind_variants = require("tailwind-variants");
|
|
30
|
+
|
|
31
|
+
// src/types.ts
|
|
32
|
+
var spacingScaleKeys = [
|
|
33
|
+
"0",
|
|
34
|
+
"xs",
|
|
35
|
+
"sm",
|
|
36
|
+
"md",
|
|
37
|
+
"lg",
|
|
38
|
+
"xl",
|
|
39
|
+
"2xl",
|
|
40
|
+
"3xl",
|
|
41
|
+
"4xl",
|
|
42
|
+
"5xl",
|
|
43
|
+
"6xl",
|
|
44
|
+
"7xl",
|
|
45
|
+
"8xl",
|
|
46
|
+
"9xl",
|
|
47
|
+
"1",
|
|
48
|
+
"2",
|
|
49
|
+
"3",
|
|
50
|
+
"3.5",
|
|
51
|
+
"4",
|
|
52
|
+
"5",
|
|
53
|
+
"6",
|
|
54
|
+
"7",
|
|
55
|
+
"8",
|
|
56
|
+
"9",
|
|
57
|
+
"10",
|
|
58
|
+
"11",
|
|
59
|
+
"12",
|
|
60
|
+
"13",
|
|
61
|
+
"14",
|
|
62
|
+
"15",
|
|
63
|
+
"16",
|
|
64
|
+
"17",
|
|
65
|
+
"18",
|
|
66
|
+
"20",
|
|
67
|
+
"24",
|
|
68
|
+
"28",
|
|
69
|
+
"32",
|
|
70
|
+
"36",
|
|
71
|
+
"40",
|
|
72
|
+
"44",
|
|
73
|
+
"48",
|
|
74
|
+
"52",
|
|
75
|
+
"56",
|
|
76
|
+
"60",
|
|
77
|
+
"64",
|
|
78
|
+
"72",
|
|
79
|
+
"80",
|
|
80
|
+
"96"
|
|
81
|
+
];
|
|
82
|
+
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
83
|
+
|
|
84
|
+
// src/utils/tv.ts
|
|
30
85
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
31
86
|
var tv = (options, config) => {
|
|
32
87
|
var _a, _b, _c;
|
|
@@ -38,7 +93,7 @@ var tv = (options, config) => {
|
|
|
38
93
|
theme: {
|
|
39
94
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
40
95
|
opacity: ["disabled"],
|
|
41
|
-
spacing: ["divider"],
|
|
96
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
42
97
|
borderWidth: COMMON_UNITS,
|
|
43
98
|
borderRadius: COMMON_UNITS
|
|
44
99
|
},
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
avatar,
|
|
3
3
|
avatarGroup
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-GMMETTYU.mjs";
|
|
4
|
+
} from "../chunk-3PXNVHIV.mjs";
|
|
6
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
7
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
8
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
+
import "../chunk-UX2EEVVM.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
|
+
import "../chunk-WA5F6AED.mjs";
|
|
10
11
|
export {
|
|
11
12
|
avatar,
|
|
12
13
|
avatarGroup
|
package/dist/components/badge.js
CHANGED
|
@@ -26,6 +26,61 @@ module.exports = __toCommonJS(badge_exports);
|
|
|
26
26
|
|
|
27
27
|
// src/utils/tv.ts
|
|
28
28
|
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
|
|
30
|
+
// src/types.ts
|
|
31
|
+
var spacingScaleKeys = [
|
|
32
|
+
"0",
|
|
33
|
+
"xs",
|
|
34
|
+
"sm",
|
|
35
|
+
"md",
|
|
36
|
+
"lg",
|
|
37
|
+
"xl",
|
|
38
|
+
"2xl",
|
|
39
|
+
"3xl",
|
|
40
|
+
"4xl",
|
|
41
|
+
"5xl",
|
|
42
|
+
"6xl",
|
|
43
|
+
"7xl",
|
|
44
|
+
"8xl",
|
|
45
|
+
"9xl",
|
|
46
|
+
"1",
|
|
47
|
+
"2",
|
|
48
|
+
"3",
|
|
49
|
+
"3.5",
|
|
50
|
+
"4",
|
|
51
|
+
"5",
|
|
52
|
+
"6",
|
|
53
|
+
"7",
|
|
54
|
+
"8",
|
|
55
|
+
"9",
|
|
56
|
+
"10",
|
|
57
|
+
"11",
|
|
58
|
+
"12",
|
|
59
|
+
"13",
|
|
60
|
+
"14",
|
|
61
|
+
"15",
|
|
62
|
+
"16",
|
|
63
|
+
"17",
|
|
64
|
+
"18",
|
|
65
|
+
"20",
|
|
66
|
+
"24",
|
|
67
|
+
"28",
|
|
68
|
+
"32",
|
|
69
|
+
"36",
|
|
70
|
+
"40",
|
|
71
|
+
"44",
|
|
72
|
+
"48",
|
|
73
|
+
"52",
|
|
74
|
+
"56",
|
|
75
|
+
"60",
|
|
76
|
+
"64",
|
|
77
|
+
"72",
|
|
78
|
+
"80",
|
|
79
|
+
"96"
|
|
80
|
+
];
|
|
81
|
+
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
82
|
+
|
|
83
|
+
// src/utils/tv.ts
|
|
29
84
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
30
85
|
var tv = (options, config) => {
|
|
31
86
|
var _a, _b, _c;
|
|
@@ -37,7 +92,7 @@ var tv = (options, config) => {
|
|
|
37
92
|
theme: {
|
|
38
93
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
39
94
|
opacity: ["disabled"],
|
|
40
|
-
spacing: ["divider"],
|
|
95
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
41
96
|
borderWidth: COMMON_UNITS,
|
|
42
97
|
borderRadius: COMMON_UNITS
|
|
43
98
|
},
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badge
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-GMMETTYU.mjs";
|
|
3
|
+
} from "../chunk-U27H53NM.mjs";
|
|
5
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
6
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
+
import "../chunk-UX2EEVVM.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
|
+
import "../chunk-WA5F6AED.mjs";
|
|
9
10
|
export {
|
|
10
11
|
badge
|
|
11
12
|
};
|
|
@@ -29,9 +29,9 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
29
29
|
ghost: "border-medium bg-transparent";
|
|
30
30
|
};
|
|
31
31
|
size: {
|
|
32
|
-
sm: "px-3 min-w-
|
|
33
|
-
md: "px-4 min-w-
|
|
34
|
-
lg: "px-6 min-w-
|
|
32
|
+
sm: "px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small";
|
|
33
|
+
md: "px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium";
|
|
34
|
+
lg: "px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large";
|
|
35
35
|
};
|
|
36
36
|
color: {
|
|
37
37
|
default: "";
|
|
@@ -61,8 +61,8 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
61
61
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none";
|
|
62
62
|
};
|
|
63
63
|
isIconOnly: {
|
|
64
|
-
true: "px-0 !gap-0";
|
|
65
|
-
false: "[&>svg]:max-w-[
|
|
64
|
+
true: "px-unit-0 !gap-unit-0";
|
|
65
|
+
false: "[&>svg]:max-w-[theme(spacing.unit-8]";
|
|
66
66
|
};
|
|
67
67
|
disableAnimation: {
|
|
68
68
|
true: "!transition-none";
|
|
@@ -79,9 +79,9 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
79
79
|
ghost: "border-medium bg-transparent";
|
|
80
80
|
};
|
|
81
81
|
size: {
|
|
82
|
-
sm: "px-3 min-w-
|
|
83
|
-
md: "px-4 min-w-
|
|
84
|
-
lg: "px-6 min-w-
|
|
82
|
+
sm: "px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small";
|
|
83
|
+
md: "px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium";
|
|
84
|
+
lg: "px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large";
|
|
85
85
|
};
|
|
86
86
|
color: {
|
|
87
87
|
default: "";
|
|
@@ -111,8 +111,8 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
111
111
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none";
|
|
112
112
|
};
|
|
113
113
|
isIconOnly: {
|
|
114
|
-
true: "px-0 !gap-0";
|
|
115
|
-
false: "[&>svg]:max-w-[
|
|
114
|
+
true: "px-unit-0 !gap-unit-0";
|
|
115
|
+
false: "[&>svg]:max-w-[theme(spacing.unit-8]";
|
|
116
116
|
};
|
|
117
117
|
disableAnimation: {
|
|
118
118
|
true: "!transition-none";
|
|
@@ -129,9 +129,9 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
129
129
|
ghost: "border-medium bg-transparent";
|
|
130
130
|
};
|
|
131
131
|
size: {
|
|
132
|
-
sm: "px-3 min-w-
|
|
133
|
-
md: "px-4 min-w-
|
|
134
|
-
lg: "px-6 min-w-
|
|
132
|
+
sm: "px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small";
|
|
133
|
+
md: "px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium";
|
|
134
|
+
lg: "px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large";
|
|
135
135
|
};
|
|
136
136
|
color: {
|
|
137
137
|
default: "";
|
|
@@ -161,8 +161,8 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
161
161
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none";
|
|
162
162
|
};
|
|
163
163
|
isIconOnly: {
|
|
164
|
-
true: "px-0 !gap-0";
|
|
165
|
-
false: "[&>svg]:max-w-[
|
|
164
|
+
true: "px-unit-0 !gap-unit-0";
|
|
165
|
+
false: "[&>svg]:max-w-[theme(spacing.unit-8]";
|
|
166
166
|
};
|
|
167
167
|
disableAnimation: {
|
|
168
168
|
true: "!transition-none";
|
|
@@ -179,9 +179,9 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
179
179
|
ghost: "border-medium bg-transparent";
|
|
180
180
|
};
|
|
181
181
|
size: {
|
|
182
|
-
sm: "px-3 min-w-
|
|
183
|
-
md: "px-4 min-w-
|
|
184
|
-
lg: "px-6 min-w-
|
|
182
|
+
sm: "px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small";
|
|
183
|
+
md: "px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium";
|
|
184
|
+
lg: "px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large";
|
|
185
185
|
};
|
|
186
186
|
color: {
|
|
187
187
|
default: "";
|
|
@@ -211,8 +211,8 @@ declare const button: tailwind_variants.TVReturnType<{
|
|
|
211
211
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none";
|
|
212
212
|
};
|
|
213
213
|
isIconOnly: {
|
|
214
|
-
true: "px-0 !gap-0";
|
|
215
|
-
false: "[&>svg]:max-w-[
|
|
214
|
+
true: "px-unit-0 !gap-unit-0";
|
|
215
|
+
false: "[&>svg]:max-w-[theme(spacing.unit-8]";
|
|
216
216
|
};
|
|
217
217
|
disableAnimation: {
|
|
218
218
|
true: "!transition-none";
|
|
@@ -27,6 +27,61 @@ module.exports = __toCommonJS(button_exports);
|
|
|
27
27
|
|
|
28
28
|
// src/utils/tv.ts
|
|
29
29
|
var import_tailwind_variants = require("tailwind-variants");
|
|
30
|
+
|
|
31
|
+
// src/types.ts
|
|
32
|
+
var spacingScaleKeys = [
|
|
33
|
+
"0",
|
|
34
|
+
"xs",
|
|
35
|
+
"sm",
|
|
36
|
+
"md",
|
|
37
|
+
"lg",
|
|
38
|
+
"xl",
|
|
39
|
+
"2xl",
|
|
40
|
+
"3xl",
|
|
41
|
+
"4xl",
|
|
42
|
+
"5xl",
|
|
43
|
+
"6xl",
|
|
44
|
+
"7xl",
|
|
45
|
+
"8xl",
|
|
46
|
+
"9xl",
|
|
47
|
+
"1",
|
|
48
|
+
"2",
|
|
49
|
+
"3",
|
|
50
|
+
"3.5",
|
|
51
|
+
"4",
|
|
52
|
+
"5",
|
|
53
|
+
"6",
|
|
54
|
+
"7",
|
|
55
|
+
"8",
|
|
56
|
+
"9",
|
|
57
|
+
"10",
|
|
58
|
+
"11",
|
|
59
|
+
"12",
|
|
60
|
+
"13",
|
|
61
|
+
"14",
|
|
62
|
+
"15",
|
|
63
|
+
"16",
|
|
64
|
+
"17",
|
|
65
|
+
"18",
|
|
66
|
+
"20",
|
|
67
|
+
"24",
|
|
68
|
+
"28",
|
|
69
|
+
"32",
|
|
70
|
+
"36",
|
|
71
|
+
"40",
|
|
72
|
+
"44",
|
|
73
|
+
"48",
|
|
74
|
+
"52",
|
|
75
|
+
"56",
|
|
76
|
+
"60",
|
|
77
|
+
"64",
|
|
78
|
+
"72",
|
|
79
|
+
"80",
|
|
80
|
+
"96"
|
|
81
|
+
];
|
|
82
|
+
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
83
|
+
|
|
84
|
+
// src/utils/tv.ts
|
|
30
85
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
31
86
|
var tv = (options, config) => {
|
|
32
87
|
var _a, _b, _c;
|
|
@@ -38,7 +93,7 @@ var tv = (options, config) => {
|
|
|
38
93
|
theme: {
|
|
39
94
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
40
95
|
opacity: ["disabled"],
|
|
41
|
-
spacing: ["divider"],
|
|
96
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
42
97
|
borderWidth: COMMON_UNITS,
|
|
43
98
|
borderRadius: COMMON_UNITS
|
|
44
99
|
},
|
|
@@ -169,9 +224,9 @@ var button = tv({
|
|
|
169
224
|
ghost: "border-medium bg-transparent"
|
|
170
225
|
},
|
|
171
226
|
size: {
|
|
172
|
-
sm: "px-3 min-w-
|
|
173
|
-
md: "px-4 min-w-
|
|
174
|
-
lg: "px-6 min-w-
|
|
227
|
+
sm: "px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",
|
|
228
|
+
md: "px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",
|
|
229
|
+
lg: "px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"
|
|
175
230
|
},
|
|
176
231
|
color: {
|
|
177
232
|
default: "",
|
|
@@ -201,8 +256,8 @@ var button = tv({
|
|
|
201
256
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
202
257
|
},
|
|
203
258
|
isIconOnly: {
|
|
204
|
-
true: "px-0 !gap-0",
|
|
205
|
-
false: "[&>svg]:max-w-[
|
|
259
|
+
true: "px-unit-0 !gap-unit-0",
|
|
260
|
+
false: "[&>svg]:max-w-[theme(spacing.unit-8]"
|
|
206
261
|
},
|
|
207
262
|
disableAnimation: {
|
|
208
263
|
true: "!transition-none",
|
|
@@ -453,22 +508,22 @@ var button = tv({
|
|
|
453
508
|
{
|
|
454
509
|
isInGroup: true,
|
|
455
510
|
variant: ["bordered", "ghost"],
|
|
456
|
-
class: "[&:not(:first-child)]:ml-[calc(theme(borderWidth.
|
|
511
|
+
class: "[&:not(:first-child)]:ml-[calc(theme(borderWidth.medium)*-1)]"
|
|
457
512
|
},
|
|
458
513
|
{
|
|
459
514
|
isIconOnly: true,
|
|
460
515
|
size: "sm",
|
|
461
|
-
class: "min-w-8 w-8 h-8"
|
|
516
|
+
class: "min-w-unit-8 w-unit-8 h-unit-8"
|
|
462
517
|
},
|
|
463
518
|
{
|
|
464
519
|
isIconOnly: true,
|
|
465
520
|
size: "md",
|
|
466
|
-
class: "min-w-10 w-10 h-10"
|
|
521
|
+
class: "min-w-unit-10 w-unit-10 h-unit-10"
|
|
467
522
|
},
|
|
468
523
|
{
|
|
469
524
|
isIconOnly: true,
|
|
470
525
|
size: "lg",
|
|
471
|
-
class: "min-w-12 w-12 h-12"
|
|
526
|
+
class: "min-w-unit-12 w-unit-12 h-unit-12"
|
|
472
527
|
}
|
|
473
528
|
]
|
|
474
529
|
});
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button,
|
|
3
3
|
buttonGroup
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-GMMETTYU.mjs";
|
|
4
|
+
} from "../chunk-TRZLWKEX.mjs";
|
|
6
5
|
import "../chunk-CMYR6AOY.mjs";
|
|
7
6
|
import "../chunk-K7LK7NCE.mjs";
|
|
8
7
|
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
+
import "../chunk-UX2EEVVM.mjs";
|
|
9
9
|
import "../chunk-G2ZSNGR5.mjs";
|
|
10
|
+
import "../chunk-WA5F6AED.mjs";
|
|
10
11
|
export {
|
|
11
12
|
button,
|
|
12
13
|
buttonGroup
|
package/dist/components/card.js
CHANGED
|
@@ -26,6 +26,61 @@ module.exports = __toCommonJS(card_exports);
|
|
|
26
26
|
|
|
27
27
|
// src/utils/tv.ts
|
|
28
28
|
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
|
|
30
|
+
// src/types.ts
|
|
31
|
+
var spacingScaleKeys = [
|
|
32
|
+
"0",
|
|
33
|
+
"xs",
|
|
34
|
+
"sm",
|
|
35
|
+
"md",
|
|
36
|
+
"lg",
|
|
37
|
+
"xl",
|
|
38
|
+
"2xl",
|
|
39
|
+
"3xl",
|
|
40
|
+
"4xl",
|
|
41
|
+
"5xl",
|
|
42
|
+
"6xl",
|
|
43
|
+
"7xl",
|
|
44
|
+
"8xl",
|
|
45
|
+
"9xl",
|
|
46
|
+
"1",
|
|
47
|
+
"2",
|
|
48
|
+
"3",
|
|
49
|
+
"3.5",
|
|
50
|
+
"4",
|
|
51
|
+
"5",
|
|
52
|
+
"6",
|
|
53
|
+
"7",
|
|
54
|
+
"8",
|
|
55
|
+
"9",
|
|
56
|
+
"10",
|
|
57
|
+
"11",
|
|
58
|
+
"12",
|
|
59
|
+
"13",
|
|
60
|
+
"14",
|
|
61
|
+
"15",
|
|
62
|
+
"16",
|
|
63
|
+
"17",
|
|
64
|
+
"18",
|
|
65
|
+
"20",
|
|
66
|
+
"24",
|
|
67
|
+
"28",
|
|
68
|
+
"32",
|
|
69
|
+
"36",
|
|
70
|
+
"40",
|
|
71
|
+
"44",
|
|
72
|
+
"48",
|
|
73
|
+
"52",
|
|
74
|
+
"56",
|
|
75
|
+
"60",
|
|
76
|
+
"64",
|
|
77
|
+
"72",
|
|
78
|
+
"80",
|
|
79
|
+
"96"
|
|
80
|
+
];
|
|
81
|
+
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
82
|
+
|
|
83
|
+
// src/utils/tv.ts
|
|
29
84
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
30
85
|
var tv = (options, config) => {
|
|
31
86
|
var _a, _b, _c;
|
|
@@ -37,7 +92,7 @@ var tv = (options, config) => {
|
|
|
37
92
|
theme: {
|
|
38
93
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
39
94
|
opacity: ["disabled"],
|
|
40
|
-
spacing: ["divider"],
|
|
95
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
41
96
|
borderWidth: COMMON_UNITS,
|
|
42
97
|
borderRadius: COMMON_UNITS
|
|
43
98
|
},
|
package/dist/components/card.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
card
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-GMMETTYU.mjs";
|
|
3
|
+
} from "../chunk-CLQQQIUB.mjs";
|
|
5
4
|
import "../chunk-CMYR6AOY.mjs";
|
|
6
5
|
import "../chunk-K7LK7NCE.mjs";
|
|
7
6
|
import "../chunk-2PIR7DFM.mjs";
|
|
7
|
+
import "../chunk-UX2EEVVM.mjs";
|
|
8
8
|
import "../chunk-G2ZSNGR5.mjs";
|
|
9
|
+
import "../chunk-WA5F6AED.mjs";
|
|
9
10
|
export {
|
|
10
11
|
card
|
|
11
12
|
};
|