@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,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  groupDataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/spacer.ts
6
6
  var spacer = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/spinner.ts
6
6
  var spinner = tv({
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses,
9
9
  translateCenterClasses
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/circular-progress.ts
6
6
  var circularProgress = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/image.ts
6
6
  var image = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/divider.ts
6
6
  var divider = tv({
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
  import {
8
8
  ringClasses
9
9
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
9
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/drip.ts
6
6
  var drip = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  groupDataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses,
6
6
  groupDataFocusVisibleClasses
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -35,7 +35,6 @@ var accordionItem = tv({
35
35
  heading: "",
36
36
  trigger: [
37
37
  "flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",
38
- "data-[pressed=true]:opacity-disabled",
39
38
  ...dataFocusVisibleClasses
40
39
  ],
41
40
  startContent: "flex-shrink-0",
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
 
8
8
  // src/components/snippet.ts
9
9
  var snippet = tv({
@@ -1,9 +1,9 @@
1
- import {
2
- commonColors
3
- } from "./chunk-NTTT6BHX.mjs";
4
1
  import {
5
2
  swapColorValues
6
3
  } from "./chunk-KUNVFLXJ.mjs";
4
+ import {
5
+ commonColors
6
+ } from "./chunk-IAS3SFA4.mjs";
7
7
 
8
8
  // src/colors/semantic.ts
9
9
  import { readableColor } from "color2k";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,5 +1,6 @@
1
1
  // src/default-layout.ts
2
2
  var defaultLayout = {
3
+ spacingUnit: 4,
3
4
  disabledOpacity: ".5",
4
5
  dividerWeight: "1px",
5
6
  fontSize: {
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
 
8
8
  // src/components/code.ts
9
9
  var code = tv({
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
9
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/progress.ts
6
6
  var progress = tv(
@@ -1,15 +1,17 @@
1
+ import {
2
+ createSpacingUnits,
3
+ generateSpacingScale,
4
+ isBaseTheme
5
+ } from "./chunk-XA5ALA4E.mjs";
1
6
  import {
2
7
  utilities
3
8
  } from "./chunk-UNQJ7BRW.mjs";
4
9
  import {
5
- isBaseTheme
6
- } from "./chunk-D2XMP2NC.mjs";
10
+ baseStyles
11
+ } from "./chunk-G2ZSNGR5.mjs";
7
12
  import {
8
13
  semanticColors
9
- } from "./chunk-5E5D6JLO.mjs";
10
- import {
11
- commonColors
12
- } from "./chunk-NTTT6BHX.mjs";
14
+ } from "./chunk-G4RCK475.mjs";
13
15
  import {
14
16
  flattenThemeObject
15
17
  } from "./chunk-KUNVFLXJ.mjs";
@@ -18,13 +20,13 @@ import {
18
20
  defaultLayout,
19
21
  layouts,
20
22
  lightLayout
21
- } from "./chunk-LXHWZ5PE.mjs";
23
+ } from "./chunk-HK6FLMPL.mjs";
22
24
  import {
23
25
  animations
24
26
  } from "./chunk-DMASP6FA.mjs";
25
27
  import {
26
- baseStyles
27
- } from "./chunk-G2ZSNGR5.mjs";
28
+ commonColors
29
+ } from "./chunk-IAS3SFA4.mjs";
28
30
 
29
31
  // src/plugin.ts
30
32
  import Color from "color";
@@ -89,6 +91,14 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
89
91
  const layoutVariable = `--${prefix}-${key}-${k}`;
90
92
  resolved.utilities[cssSelector][layoutVariable] = v;
91
93
  });
94
+ } else if (key === "spacing-unit") {
95
+ const layoutVariable = `--${prefix}-${key}`;
96
+ resolved.utilities[cssSelector][layoutVariable] = value;
97
+ const spacingScale = generateSpacingScale(Number(value));
98
+ forEach(spacingScale, (v, k) => {
99
+ const layoutVariable2 = `--${prefix}-${key}-${k}`;
100
+ resolved.utilities[cssSelector][layoutVariable2] = v;
101
+ });
92
102
  } else {
93
103
  const layoutVariable = `--${prefix}-${key}`;
94
104
  resolved.utilities[cssSelector][layoutVariable] = value;
@@ -124,20 +134,27 @@ var corePlugin = (themes = {}, defaultTheme, prefix, omitCommonColors) => {
124
134
  width: {
125
135
  divider: `var(--${prefix}-divider-weight)`
126
136
  },
137
+ spacing: {
138
+ unit: `var(--${prefix}-spacing-unit)`,
139
+ ...createSpacingUnits(prefix)
140
+ },
127
141
  minWidth: {
128
- 1: "0.25rem",
129
- 2: "0.5rem",
130
- 3: "0.75rem",
131
- "3.5": "0.875rem",
132
- 4: "1rem",
133
- 5: "1.25rem",
134
- 6: "1.5rem",
135
- 7: "1.75rem",
136
- 8: "2rem",
137
- 9: "2.25rem",
138
- 10: "2.5rem",
139
- 11: "2.75rem",
140
- 12: "3rem"
142
+ "unit-1": `var(--${prefix}-spacing-unit)`,
143
+ "unit-2": `var(--${prefix}-spacing-unit-2`,
144
+ "unit-3": `var(--${prefix}-spacing-unit-3)`,
145
+ "unit-3.5": `var(--${prefix}-spacing-unit-3_5)`,
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)`
141
158
  },
142
159
  fontSize: {
143
160
  tiny: [`var(--${prefix}-font-size-tiny)`, `var(--${prefix}-line-height-tiny)`],
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
9
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  semanticColors
3
- } from "./chunk-5E5D6JLO.mjs";
3
+ } from "./chunk-G4RCK475.mjs";
4
4
  import {
5
5
  commonColors
6
- } from "./chunk-NTTT6BHX.mjs";
6
+ } from "./chunk-IAS3SFA4.mjs";
7
7
 
8
8
  // src/colors/index.ts
9
9
  var colors = {
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
9
  } from "./chunk-G2ZSNGR5.mjs";
@@ -40,9 +40,9 @@ var button = tv({
40
40
  ghost: "border-medium bg-transparent"
41
41
  },
42
42
  size: {
43
- sm: "px-3 min-w-[4rem] h-8 text-small gap-2 rounded-small",
44
- md: "px-4 min-w-[5rem] h-10 text-small gap-2 rounded-medium",
45
- lg: "px-6 min-w-[6rem] h-12 text-medium gap-3 rounded-large"
43
+ sm: "px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",
44
+ md: "px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",
45
+ lg: "px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"
46
46
  },
47
47
  color: {
48
48
  default: "",
@@ -72,8 +72,8 @@ var button = tv({
72
72
  true: "[&:not(:first-child):not(:last-child)]:rounded-none"
73
73
  },
74
74
  isIconOnly: {
75
- true: "px-0 !gap-0",
76
- false: "[&>svg]:max-w-[2em]"
75
+ true: "px-unit-0 !gap-unit-0",
76
+ false: "[&>svg]:max-w-[theme(spacing.unit-8]"
77
77
  },
78
78
  disableAnimation: {
79
79
  true: "!transition-none",
@@ -324,22 +324,22 @@ var button = tv({
324
324
  {
325
325
  isInGroup: true,
326
326
  variant: ["bordered", "ghost"],
327
- class: "[&:not(:first-child)]:ml-[calc(theme(borderWidth.2)*-1)]"
327
+ class: "[&:not(:first-child)]:ml-[calc(theme(borderWidth.medium)*-1)]"
328
328
  },
329
329
  {
330
330
  isIconOnly: true,
331
331
  size: "sm",
332
- class: "min-w-8 w-8 h-8"
332
+ class: "min-w-unit-8 w-unit-8 h-unit-8"
333
333
  },
334
334
  {
335
335
  isIconOnly: true,
336
336
  size: "md",
337
- class: "min-w-10 w-10 h-10"
337
+ class: "min-w-unit-10 w-unit-10 h-unit-10"
338
338
  },
339
339
  {
340
340
  isIconOnly: true,
341
341
  size: "lg",
342
- class: "min-w-12 w-12 h-12"
342
+ class: "min-w-unit-12 w-unit-12 h-unit-12"
343
343
  }
344
344
  ]
345
345
  });
@@ -1,9 +1,9 @@
1
- import {
2
- tv
3
- } from "./chunk-GMMETTYU.mjs";
4
1
  import {
5
2
  colorVariants
6
3
  } from "./chunk-2PIR7DFM.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UX2EEVVM.mjs";
7
7
 
8
8
  // src/components/badge.ts
9
9
  var badge = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/skeleton.ts
6
6
  var skeleton = tv({
@@ -1,3 +1,7 @@
1
+ import {
2
+ mappedSpacingScaleKeys
3
+ } from "./chunk-WA5F6AED.mjs";
4
+
1
5
  // src/utils/tv.ts
2
6
  import { tv as tvBase } from "tailwind-variants";
3
7
  var COMMON_UNITS = ["small", "medium", "large"];
@@ -11,7 +15,7 @@ var tv = (options, config) => {
11
15
  theme: {
12
16
  ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
13
17
  opacity: ["disabled"],
14
- spacing: ["divider"],
18
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
15
19
  borderWidth: COMMON_UNITS,
16
20
  borderRadius: COMMON_UNITS
17
21
  },
@@ -0,0 +1,57 @@
1
+ // src/types.ts
2
+ var spacingScaleKeys = [
3
+ "0",
4
+ "xs",
5
+ "sm",
6
+ "md",
7
+ "lg",
8
+ "xl",
9
+ "2xl",
10
+ "3xl",
11
+ "4xl",
12
+ "5xl",
13
+ "6xl",
14
+ "7xl",
15
+ "8xl",
16
+ "9xl",
17
+ "1",
18
+ "2",
19
+ "3",
20
+ "3.5",
21
+ "4",
22
+ "5",
23
+ "6",
24
+ "7",
25
+ "8",
26
+ "9",
27
+ "10",
28
+ "11",
29
+ "12",
30
+ "13",
31
+ "14",
32
+ "15",
33
+ "16",
34
+ "17",
35
+ "18",
36
+ "20",
37
+ "24",
38
+ "28",
39
+ "32",
40
+ "36",
41
+ "40",
42
+ "44",
43
+ "48",
44
+ "52",
45
+ "56",
46
+ "60",
47
+ "64",
48
+ "72",
49
+ "80",
50
+ "96"
51
+ ];
52
+ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
53
+
54
+ export {
55
+ spacingScaleKeys,
56
+ mappedSpacingScaleKeys
57
+ };
@@ -0,0 +1,62 @@
1
+ import {
2
+ spacingScaleKeys
3
+ } from "./chunk-WA5F6AED.mjs";
4
+
5
+ // src/utils/theme.ts
6
+ var isBaseTheme = (theme) => theme === "light" || theme === "dark";
7
+ var baseScale = [1, 2, 3, 3.5, 4, 5, 6, 7, 8, 9, 10, 11, 12];
8
+ var extendedScale = [20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 72, 80, 96];
9
+ var generateSpacingScale = (spacingUnit) => {
10
+ const scaleLabels = {
11
+ xs: 2,
12
+ sm: 3,
13
+ md: 4,
14
+ lg: 5.5,
15
+ xl: 9,
16
+ "2xl": 12,
17
+ "3xl": 20,
18
+ "4xl": 30,
19
+ "5xl": 56,
20
+ "6xl": 72,
21
+ "7xl": 96,
22
+ "8xl": 128,
23
+ "9xl": 160
24
+ };
25
+ const scale = { 0: "0px" };
26
+ Object.entries(scaleLabels).forEach(([label, multiplier]) => {
27
+ scale[label] = multiplier ? `${spacingUnit * multiplier}px` : `${spacingUnit}px`;
28
+ });
29
+ baseScale.forEach((i) => {
30
+ let key = `${i}`;
31
+ if (key.includes(".")) {
32
+ const [first, second] = key.split(".");
33
+ key = `${first}_${second}`;
34
+ }
35
+ scale[key] = `${spacingUnit * i}px`;
36
+ });
37
+ extendedScale.forEach((i) => {
38
+ const key = `${i}`;
39
+ scale[key] = `${spacingUnit * i}px`;
40
+ });
41
+ return scale;
42
+ };
43
+ function createSpacingUnits(prefix) {
44
+ let result = spacingScaleKeys.reduce((acc, key) => {
45
+ let value = `var(--${prefix}-spacing-unit-${key})`;
46
+ if (key.includes(".")) {
47
+ const [first, second] = key.split(".");
48
+ value = `var(--${prefix}-spacing-unit-${first}_${second})`;
49
+ }
50
+ return {
51
+ ...acc,
52
+ [`unit-${key}`]: value
53
+ };
54
+ }, {});
55
+ return result;
56
+ }
57
+
58
+ export {
59
+ isBaseTheme,
60
+ generateSpacingScale,
61
+ createSpacingUnits
62
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
 
5
5
  // src/components/kbd.ts
6
6
  var kbd = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-GMMETTYU.mjs";
3
+ } from "./chunk-UX2EEVVM.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-G2ZSNGR5.mjs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  commonColors
3
- } from "../chunk-NTTT6BHX.mjs";
4
- import "../chunk-DCEG5LGX.mjs";
5
- import "../chunk-L2OL7R23.mjs";
6
- import "../chunk-YZYGFPNK.mjs";
3
+ } from "../chunk-IAS3SFA4.mjs";
7
4
  import "../chunk-JUEOCLA3.mjs";
8
5
  import "../chunk-3LKKH4AR.mjs";
9
- import "../chunk-GHZ36ATJ.mjs";
10
6
  import "../chunk-T3GWIVAM.mjs";
11
7
  import "../chunk-OR5PUD24.mjs";
8
+ import "../chunk-DCEG5LGX.mjs";
9
+ import "../chunk-L2OL7R23.mjs";
10
+ import "../chunk-YZYGFPNK.mjs";
11
+ import "../chunk-GHZ36ATJ.mjs";
12
12
  export {
13
13
  commonColors
14
14
  };