@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.
Files changed (122) hide show
  1. package/dist/{chunk-MBMVULBL.mjs → chunk-2743AVRX.mjs} +1 -1
  2. package/dist/{chunk-W6DVXJB3.mjs → chunk-2F6XVFNG.mjs} +1 -1
  3. package/dist/{chunk-PSEUPXFL.mjs → chunk-3FPSND7Y.mjs} +1 -1
  4. package/dist/{chunk-K7J53FGN.mjs → chunk-3PXNVHIV.mjs} +3 -3
  5. package/dist/{chunk-WAAJG22Y.mjs → chunk-4KW5BSMS.mjs} +1 -1
  6. package/dist/{chunk-LDBYFTHC.mjs → chunk-5KVXZCV5.mjs} +1 -1
  7. package/dist/{chunk-UODOTC2G.mjs → chunk-5KZVRSWU.mjs} +1 -1
  8. package/dist/{chunk-ETX5K2PY.mjs → chunk-65C2OLPQ.mjs} +3 -3
  9. package/dist/{chunk-JKWIX3WW.mjs → chunk-7IAKEIIF.mjs} +3 -3
  10. package/dist/{chunk-AGUZRGXC.mjs → chunk-AUEC3MBX.mjs} +1 -1
  11. package/dist/{chunk-RVVPQOCN.mjs → chunk-BF7L7DAN.mjs} +1 -1
  12. package/dist/{chunk-OFWUJFG6.mjs → chunk-CLQQQIUB.mjs} +1 -1
  13. package/dist/{chunk-SQCHLZL7.mjs → chunk-CNRS36CD.mjs} +1 -1
  14. package/dist/{chunk-QMVL7T5G.mjs → chunk-CWKXWCSG.mjs} +1 -1
  15. package/dist/{chunk-UZZPYFGR.mjs → chunk-DNEMDRDM.mjs} +1 -2
  16. package/dist/{chunk-GZVAQ5VD.mjs → chunk-EPRBHGUM.mjs} +3 -3
  17. package/dist/{chunk-5E5D6JLO.mjs → chunk-G4RCK475.mjs} +3 -3
  18. package/dist/{chunk-GCKY7FII.mjs → chunk-GQA532YJ.mjs} +1 -1
  19. package/dist/{chunk-NXGPICRI.mjs → chunk-HI7JD7LI.mjs} +1 -1
  20. package/dist/{chunk-LXHWZ5PE.mjs → chunk-HK6FLMPL.mjs} +1 -0
  21. package/dist/{chunk-5LSACMFO.mjs → chunk-HM7DVYU6.mjs} +3 -3
  22. package/dist/{chunk-QA5I3ZAL.mjs → chunk-IFPTEK2Y.mjs} +3 -3
  23. package/dist/{chunk-CJRYUKCX.mjs → chunk-K7DMXP26.mjs} +1 -1
  24. package/dist/{chunk-524WVPFR.mjs → chunk-KYJT42RN.mjs} +1 -1
  25. package/dist/{chunk-K2ENZAOR.mjs → chunk-LUKNKAXA.mjs} +39 -22
  26. package/dist/{chunk-NHCMORGO.mjs → chunk-ODPWKAVD.mjs} +3 -3
  27. package/dist/{chunk-Y6DYRIUN.mjs → chunk-OOFFFIO2.mjs} +1 -1
  28. package/dist/{chunk-DPUIOS3A.mjs → chunk-QZTWGJ72.mjs} +2 -2
  29. package/dist/{chunk-2OJQTQ24.mjs → chunk-TRZLWKEX.mjs} +12 -12
  30. package/dist/{chunk-L7XBTQSM.mjs → chunk-U27H53NM.mjs} +3 -3
  31. package/dist/{chunk-IWEUZYJF.mjs → chunk-UHGUD5JU.mjs} +1 -1
  32. package/dist/{chunk-GMMETTYU.mjs → chunk-UX2EEVVM.mjs} +5 -1
  33. package/dist/chunk-WA5F6AED.mjs +57 -0
  34. package/dist/chunk-XA5ALA4E.mjs +62 -0
  35. package/dist/{chunk-ICPFKWB4.mjs → chunk-Y7SYYSA5.mjs} +1 -1
  36. package/dist/{chunk-TXDV4YYI.mjs → chunk-YHUCLCWM.mjs} +1 -1
  37. package/dist/{chunk-FJYKXAF3.mjs → chunk-YQFJ7SOU.mjs} +1 -1
  38. package/dist/colors/common.mjs +5 -5
  39. package/dist/colors/index.mjs +8 -8
  40. package/dist/colors/semantic.mjs +7 -7
  41. package/dist/colors.mjs +8 -8
  42. package/dist/components/accordion.js +56 -2
  43. package/dist/components/accordion.mjs +3 -2
  44. package/dist/components/avatar.js +56 -1
  45. package/dist/components/avatar.mjs +3 -2
  46. package/dist/components/badge.js +56 -1
  47. package/dist/components/badge.mjs +3 -2
  48. package/dist/components/button.d.ts +20 -20
  49. package/dist/components/button.js +65 -10
  50. package/dist/components/button.mjs +3 -2
  51. package/dist/components/card.js +56 -1
  52. package/dist/components/card.mjs +3 -2
  53. package/dist/components/checkbox.js +56 -1
  54. package/dist/components/checkbox.mjs +3 -2
  55. package/dist/components/chip.js +56 -1
  56. package/dist/components/chip.mjs +3 -2
  57. package/dist/components/circular-progress.js +56 -1
  58. package/dist/components/circular-progress.mjs +3 -2
  59. package/dist/components/code.js +56 -1
  60. package/dist/components/code.mjs +3 -2
  61. package/dist/components/divider.js +56 -1
  62. package/dist/components/divider.mjs +3 -2
  63. package/dist/components/drip.js +56 -1
  64. package/dist/components/drip.mjs +3 -2
  65. package/dist/components/dropdown.js +56 -1
  66. package/dist/components/dropdown.mjs +3 -2
  67. package/dist/components/image.js +56 -1
  68. package/dist/components/image.mjs +3 -2
  69. package/dist/components/index.js +65 -11
  70. package/dist/components/index.mjs +54 -53
  71. package/dist/components/input.js +56 -1
  72. package/dist/components/input.mjs +3 -2
  73. package/dist/components/kbd.js +56 -1
  74. package/dist/components/kbd.mjs +3 -2
  75. package/dist/components/link.js +56 -1
  76. package/dist/components/link.mjs +3 -2
  77. package/dist/components/modal.js +56 -1
  78. package/dist/components/modal.mjs +3 -2
  79. package/dist/components/navbar.js +56 -1
  80. package/dist/components/navbar.mjs +3 -2
  81. package/dist/components/pagination.js +56 -1
  82. package/dist/components/pagination.mjs +3 -2
  83. package/dist/components/popover.js +56 -1
  84. package/dist/components/popover.mjs +3 -2
  85. package/dist/components/progress.js +56 -1
  86. package/dist/components/progress.mjs +3 -2
  87. package/dist/components/radio.js +56 -1
  88. package/dist/components/radio.mjs +3 -2
  89. package/dist/components/skeleton.js +56 -1
  90. package/dist/components/skeleton.mjs +3 -2
  91. package/dist/components/snippet.js +56 -1
  92. package/dist/components/snippet.mjs +3 -2
  93. package/dist/components/spacer.js +56 -1
  94. package/dist/components/spacer.mjs +3 -2
  95. package/dist/components/spinner.js +56 -1
  96. package/dist/components/spinner.mjs +3 -2
  97. package/dist/components/table.js +56 -1
  98. package/dist/components/table.mjs +3 -2
  99. package/dist/components/tabs.js +56 -1
  100. package/dist/components/tabs.mjs +3 -2
  101. package/dist/components/toggle.js +56 -1
  102. package/dist/components/toggle.mjs +3 -2
  103. package/dist/components/user.js +56 -1
  104. package/dist/components/user.mjs +3 -2
  105. package/dist/default-layout.js +1 -0
  106. package/dist/default-layout.mjs +1 -1
  107. package/dist/index.d.ts +1 -1
  108. package/dist/index.js +148 -24
  109. package/dist/index.mjs +85 -79
  110. package/dist/plugin.js +132 -13
  111. package/dist/plugin.mjs +14 -13
  112. package/dist/types.d.ts +11 -1
  113. package/dist/types.js +64 -0
  114. package/dist/types.mjs +8 -0
  115. package/dist/utils/theme.d.ts +3 -1
  116. package/dist/utils/theme.js +109 -0
  117. package/dist/utils/theme.mjs +6 -1
  118. package/dist/utils/tv.js +56 -1
  119. package/dist/utils/tv.mjs +2 -1
  120. package/package.json +1 -1
  121. package/dist/chunk-D2XMP2NC.mjs +0 -6
  122. package/dist/{chunk-NTTT6BHX.mjs → chunk-IAS3SFA4.mjs} +12 -12
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  colors
3
- } from "../chunk-DPUIOS3A.mjs";
3
+ } from "../chunk-QZTWGJ72.mjs";
4
4
  import {
5
5
  semanticColors
6
- } from "../chunk-5E5D6JLO.mjs";
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-NTTT6BHX.mjs";
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-KUNVFLXJ.mjs";
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,
@@ -2,17 +2,17 @@ import {
2
2
  semanticColors,
3
3
  themeColorsDark,
4
4
  themeColorsLight
5
- } from "../chunk-5E5D6JLO.mjs";
6
- import "../chunk-NTTT6BHX.mjs";
7
- import "../chunk-DCEG5LGX.mjs";
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-KUNVFLXJ.mjs";
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-DPUIOS3A.mjs";
4
+ } from "./chunk-QZTWGJ72.mjs";
5
5
  import {
6
6
  semanticColors
7
- } from "./chunk-5E5D6JLO.mjs";
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-NTTT6BHX.mjs";
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-KUNVFLXJ.mjs";
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-UZZPYFGR.mjs";
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-K7J53FGN.mjs";
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
@@ -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-L7XBTQSM.mjs";
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-[4rem] h-8 text-small gap-2 rounded-small";
33
- md: "px-4 min-w-[5rem] h-10 text-small gap-2 rounded-medium";
34
- lg: "px-6 min-w-[6rem] h-12 text-medium gap-3 rounded-large";
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-[2em]";
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-[4rem] h-8 text-small gap-2 rounded-small";
83
- md: "px-4 min-w-[5rem] h-10 text-small gap-2 rounded-medium";
84
- lg: "px-6 min-w-[6rem] h-12 text-medium gap-3 rounded-large";
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-[2em]";
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-[4rem] h-8 text-small gap-2 rounded-small";
133
- md: "px-4 min-w-[5rem] h-10 text-small gap-2 rounded-medium";
134
- lg: "px-6 min-w-[6rem] h-12 text-medium gap-3 rounded-large";
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-[2em]";
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-[4rem] h-8 text-small gap-2 rounded-small";
183
- md: "px-4 min-w-[5rem] h-10 text-small gap-2 rounded-medium";
184
- lg: "px-6 min-w-[6rem] h-12 text-medium gap-3 rounded-large";
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-[2em]";
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-[4rem] h-8 text-small gap-2 rounded-small",
173
- md: "px-4 min-w-[5rem] h-10 text-small gap-2 rounded-medium",
174
- lg: "px-6 min-w-[6rem] h-12 text-medium gap-3 rounded-large"
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-[2em]"
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.2)*-1)]"
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-2OJQTQ24.mjs";
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
@@ -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
  },
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  card
3
- } from "../chunk-OFWUJFG6.mjs";
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
  };