@nextui-org/theme 0.0.0-dev-v2-20230326012034

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 (181) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -0
  3. package/colors.d.ts +1 -0
  4. package/colors.js +1 -0
  5. package/dist/animations/index.d.ts +57 -0
  6. package/dist/animations/index.js +84 -0
  7. package/dist/animations/index.mjs +6 -0
  8. package/dist/chunk-37PIXVP4.mjs +33 -0
  9. package/dist/chunk-45FXWIO6.mjs +70 -0
  10. package/dist/chunk-5OE5CWK6.mjs +84 -0
  11. package/dist/chunk-5SJ7B53O.mjs +0 -0
  12. package/dist/chunk-5Z3NCB7W.mjs +391 -0
  13. package/dist/chunk-7BYRB2YS.mjs +386 -0
  14. package/dist/chunk-7MQD7UA2.mjs +16 -0
  15. package/dist/chunk-B5S7HT6N.mjs +44 -0
  16. package/dist/chunk-CMYR6AOY.mjs +0 -0
  17. package/dist/chunk-CO6ANWRA.mjs +125 -0
  18. package/dist/chunk-CRCBVLUP.mjs +38 -0
  19. package/dist/chunk-D4TJV7NY.mjs +206 -0
  20. package/dist/chunk-DCEG5LGX.mjs +17 -0
  21. package/dist/chunk-FS36US4S.mjs +25 -0
  22. package/dist/chunk-HHWXPWYN.mjs +13 -0
  23. package/dist/chunk-IJCHUO4J.mjs +38 -0
  24. package/dist/chunk-K7LK7NCE.mjs +0 -0
  25. package/dist/chunk-KZJBCC2H.mjs +17 -0
  26. package/dist/chunk-L2OL7R23.mjs +17 -0
  27. package/dist/chunk-LGGZKBOO.mjs +77 -0
  28. package/dist/chunk-M63AFAHO.mjs +0 -0
  29. package/dist/chunk-MLH3XSY7.mjs +14 -0
  30. package/dist/chunk-NJQP2VWT.mjs +160 -0
  31. package/dist/chunk-OIVGIOVG.mjs +9 -0
  32. package/dist/chunk-OR5PUD24.mjs +17 -0
  33. package/dist/chunk-OSARGUKT.mjs +326 -0
  34. package/dist/chunk-QIC7EALL.mjs +277 -0
  35. package/dist/chunk-QMP2FDFR.mjs +240 -0
  36. package/dist/chunk-QPN3H4E3.mjs +60 -0
  37. package/dist/chunk-RD42SVXB.mjs +90 -0
  38. package/dist/chunk-T3GWIVAM.mjs +17 -0
  39. package/dist/chunk-TV7EJNXI.mjs +457 -0
  40. package/dist/chunk-U77YMEWM.mjs +13 -0
  41. package/dist/chunk-VB4T62HR.mjs +159 -0
  42. package/dist/chunk-VKFQ7EZN.mjs +17 -0
  43. package/dist/chunk-WQEDQHKX.mjs +0 -0
  44. package/dist/chunk-Y37XC5QN.mjs +169 -0
  45. package/dist/chunk-Y4YW5MKL.mjs +17 -0
  46. package/dist/chunk-Y52EXP4A.mjs +142 -0
  47. package/dist/chunk-YYBLBQIV.mjs +16 -0
  48. package/dist/chunk-YZYGFPNK.mjs +17 -0
  49. package/dist/chunk-Z5OKZPNV.mjs +190 -0
  50. package/dist/colors/blue.d.ts +14 -0
  51. package/dist/colors/blue.js +41 -0
  52. package/dist/colors/blue.mjs +6 -0
  53. package/dist/colors/common.d.ts +91 -0
  54. package/dist/colors/common.js +140 -0
  55. package/dist/colors/common.mjs +13 -0
  56. package/dist/colors/cyan.d.ts +14 -0
  57. package/dist/colors/cyan.js +41 -0
  58. package/dist/colors/cyan.mjs +6 -0
  59. package/dist/colors/green.d.ts +14 -0
  60. package/dist/colors/green.js +41 -0
  61. package/dist/colors/green.mjs +6 -0
  62. package/dist/colors/index.d.ts +97 -0
  63. package/dist/colors/index.js +306 -0
  64. package/dist/colors/index.mjs +23 -0
  65. package/dist/colors/pink.d.ts +14 -0
  66. package/dist/colors/pink.js +41 -0
  67. package/dist/colors/pink.mjs +6 -0
  68. package/dist/colors/purple.d.ts +14 -0
  69. package/dist/colors/purple.js +41 -0
  70. package/dist/colors/purple.mjs +6 -0
  71. package/dist/colors/red.d.ts +14 -0
  72. package/dist/colors/red.js +41 -0
  73. package/dist/colors/red.mjs +6 -0
  74. package/dist/colors/semantic.d.ts +10 -0
  75. package/dist/colors/semantic.js +298 -0
  76. package/dist/colors/semantic.mjs +19 -0
  77. package/dist/colors/types.d.ts +37 -0
  78. package/dist/colors/types.js +18 -0
  79. package/dist/colors/types.mjs +1 -0
  80. package/dist/colors/yellow.d.ts +14 -0
  81. package/dist/colors/yellow.js +41 -0
  82. package/dist/colors/yellow.mjs +6 -0
  83. package/dist/colors.d.ts +4 -0
  84. package/dist/colors.js +306 -0
  85. package/dist/colors.mjs +24 -0
  86. package/dist/components/accordion-item.d.ts +135 -0
  87. package/dist/components/accordion-item.js +122 -0
  88. package/dist/components/accordion-item.mjs +10 -0
  89. package/dist/components/accordion.d.ts +30 -0
  90. package/dist/components/accordion.js +40 -0
  91. package/dist/components/accordion.mjs +6 -0
  92. package/dist/components/avatar-group.d.ts +26 -0
  93. package/dist/components/avatar-group.js +38 -0
  94. package/dist/components/avatar-group.mjs +6 -0
  95. package/dist/components/avatar.d.ts +211 -0
  96. package/dist/components/avatar.js +315 -0
  97. package/dist/components/avatar.mjs +10 -0
  98. package/dist/components/badge.d.ts +235 -0
  99. package/dist/components/badge.js +487 -0
  100. package/dist/components/badge.mjs +10 -0
  101. package/dist/components/button-group.d.ts +26 -0
  102. package/dist/components/button-group.js +41 -0
  103. package/dist/components/button-group.mjs +6 -0
  104. package/dist/components/button.d.ts +122 -0
  105. package/dist/components/button.js +429 -0
  106. package/dist/components/button.mjs +10 -0
  107. package/dist/components/card.d.ts +239 -0
  108. package/dist/components/card.js +222 -0
  109. package/dist/components/card.mjs +10 -0
  110. package/dist/components/checkbox-group.d.ts +32 -0
  111. package/dist/components/checkbox-group.js +37 -0
  112. package/dist/components/checkbox-group.mjs +6 -0
  113. package/dist/components/checkbox.d.ts +226 -0
  114. package/dist/components/checkbox.js +192 -0
  115. package/dist/components/checkbox.mjs +10 -0
  116. package/dist/components/chip.d.ts +274 -0
  117. package/dist/components/chip.js +560 -0
  118. package/dist/components/chip.mjs +10 -0
  119. package/dist/components/code.d.ts +68 -0
  120. package/dist/components/code.js +140 -0
  121. package/dist/components/code.mjs +10 -0
  122. package/dist/components/drip.d.ts +14 -0
  123. package/dist/components/drip.js +33 -0
  124. package/dist/components/drip.mjs +6 -0
  125. package/dist/components/index.d.ts +24 -0
  126. package/dist/components/index.js +3442 -0
  127. package/dist/components/index.mjs +95 -0
  128. package/dist/components/link.d.ts +74 -0
  129. package/dist/components/link.js +117 -0
  130. package/dist/components/link.mjs +10 -0
  131. package/dist/components/pagination.d.ts +201 -0
  132. package/dist/components/pagination.js +489 -0
  133. package/dist/components/pagination.mjs +10 -0
  134. package/dist/components/radio-group.d.ts +32 -0
  135. package/dist/components/radio-group.js +37 -0
  136. package/dist/components/radio-group.mjs +6 -0
  137. package/dist/components/radio.d.ts +271 -0
  138. package/dist/components/radio.js +201 -0
  139. package/dist/components/radio.mjs +10 -0
  140. package/dist/components/snippet.d.ts +184 -0
  141. package/dist/components/snippet.js +343 -0
  142. package/dist/components/snippet.mjs +10 -0
  143. package/dist/components/spinner.d.ts +192 -0
  144. package/dist/components/spinner.js +149 -0
  145. package/dist/components/spinner.mjs +6 -0
  146. package/dist/components/toggle.d.ts +197 -0
  147. package/dist/components/toggle.js +191 -0
  148. package/dist/components/toggle.mjs +10 -0
  149. package/dist/components/tooltip.d.ts +176 -0
  150. package/dist/components/tooltip.js +373 -0
  151. package/dist/components/tooltip.mjs +10 -0
  152. package/dist/components/user.d.ts +40 -0
  153. package/dist/components/user.js +57 -0
  154. package/dist/components/user.mjs +10 -0
  155. package/dist/index.d.ts +35 -0
  156. package/dist/index.js +3747 -0
  157. package/dist/index.mjs +138 -0
  158. package/dist/plugin.d.ts +38 -0
  159. package/dist/plugin.js +564 -0
  160. package/dist/plugin.mjs +151 -0
  161. package/dist/utilities/index.d.ts +72 -0
  162. package/dist/utilities/index.js +94 -0
  163. package/dist/utilities/index.mjs +6 -0
  164. package/dist/utils/index.d.ts +4 -0
  165. package/dist/utils/index.js +144 -0
  166. package/dist/utils/index.mjs +20 -0
  167. package/dist/utils/object.d.ts +4 -0
  168. package/dist/utils/object.js +58 -0
  169. package/dist/utils/object.mjs +8 -0
  170. package/dist/utils/styles.d.ts +20 -0
  171. package/dist/utils/styles.js +66 -0
  172. package/dist/utils/styles.mjs +14 -0
  173. package/dist/utils/types.d.ts +10 -0
  174. package/dist/utils/types.js +18 -0
  175. package/dist/utils/types.mjs +1 -0
  176. package/dist/utils/variants.d.ts +67 -0
  177. package/dist/utils/variants.js +101 -0
  178. package/dist/utils/variants.mjs +6 -0
  179. package/package.json +85 -0
  180. package/plugin.d.ts +1 -0
  181. package/plugin.js +1 -0
package/dist/colors.js ADDED
@@ -0,0 +1,306 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // src/colors.ts
27
+ var colors_exports = {};
28
+ __export(colors_exports, {
29
+ colors: () => colors,
30
+ commonColors: () => commonColors,
31
+ semanticColors: () => semanticColors
32
+ });
33
+ module.exports = __toCommonJS(colors_exports);
34
+
35
+ // src/colors/blue.ts
36
+ var blue = {
37
+ 50: "#e6f1fe",
38
+ 100: "#cce3fd",
39
+ 200: "#99c7fb",
40
+ 300: "#66aaf9",
41
+ 400: "#338ef7",
42
+ 500: "#0072f5",
43
+ 600: "#005bc4",
44
+ 700: "#004493",
45
+ 800: "#002e62",
46
+ 900: "#001731"
47
+ };
48
+
49
+ // src/colors/green.ts
50
+ var green = {
51
+ 50: "#e8faf0",
52
+ 100: "#d1f4e0",
53
+ 200: "#a2e9c1",
54
+ 300: "#74dfa2",
55
+ 400: "#45d483",
56
+ 500: "#17c964",
57
+ 600: "#12a150",
58
+ 700: "#0e793c",
59
+ 800: "#095028",
60
+ 900: "#052814"
61
+ };
62
+
63
+ // src/colors/pink.ts
64
+ var pink = {
65
+ 50: "#ffedfa",
66
+ 100: "#ffdcf5",
67
+ 200: "#ffb8eb",
68
+ 300: "#ff95e1",
69
+ 400: "#ff71d7",
70
+ 500: "#ff4ecd",
71
+ 600: "#cc3ea4",
72
+ 700: "#992f7b",
73
+ 800: "#661f52",
74
+ 900: "#331029"
75
+ };
76
+
77
+ // src/colors/purple.ts
78
+ var purple = {
79
+ 50: "#f2eafa",
80
+ 100: "#e4d4f4",
81
+ 200: "#c9a9e9",
82
+ 300: "#ae7ede",
83
+ 400: "#9353d3",
84
+ 500: "#7828c8",
85
+ 600: "#6020a0",
86
+ 700: "#481878",
87
+ 800: "#301050",
88
+ 900: "#180828"
89
+ };
90
+
91
+ // src/colors/red.ts
92
+ var red = {
93
+ 50: "#fee7ef",
94
+ 100: "#fdd0df",
95
+ 200: "#faa0bf",
96
+ 300: "#f871a0",
97
+ 400: "#f54180",
98
+ 500: "#f31260",
99
+ 600: "#c20e4d",
100
+ 700: "#920b3a",
101
+ 800: "#610726",
102
+ 900: "#310413"
103
+ };
104
+
105
+ // src/colors/yellow.ts
106
+ var yellow = {
107
+ 50: "#fef6e9",
108
+ 100: "#fdedd3",
109
+ 200: "#fbdba7",
110
+ 300: "#f9c97c",
111
+ 400: "#f7b750",
112
+ 500: "#f5a524",
113
+ 600: "#c4841d",
114
+ 700: "#936316",
115
+ 800: "#62420e",
116
+ 900: "#312107"
117
+ };
118
+
119
+ // src/colors/cyan.ts
120
+ var cyan = {
121
+ 50: "#F0FCFF",
122
+ 100: "#E6FAFE",
123
+ 200: "#D7F8FE",
124
+ 300: "#C3F4FD",
125
+ 400: "#A5EEFD",
126
+ 500: "#7EE7FC",
127
+ 600: "#06B7DB",
128
+ 700: "#09AACD",
129
+ 800: "#0E8AAA",
130
+ 900: "#053B48"
131
+ };
132
+
133
+ // src/colors/common.ts
134
+ var commonColors = {
135
+ white: "#ffffff",
136
+ black: "#000000",
137
+ blue,
138
+ green,
139
+ pink,
140
+ purple,
141
+ red,
142
+ yellow,
143
+ cyan
144
+ };
145
+
146
+ // src/colors/semantic.ts
147
+ var import_colors = __toESM(require("tailwindcss/colors"));
148
+ var import_color2k = require("color2k");
149
+
150
+ // src/utils/object.ts
151
+ function swapColorValues(colors2) {
152
+ const swappedColors = {};
153
+ const keys = Object.keys(colors2);
154
+ const length = keys.length;
155
+ for (let i = 0; i < length / 2; i++) {
156
+ const key1 = keys[i];
157
+ const key2 = keys[length - 1 - i];
158
+ swappedColors[key1] = colors2[key2];
159
+ swappedColors[key2] = colors2[key1];
160
+ }
161
+ if (length % 2 !== 0) {
162
+ const middleKey = keys[Math.floor(length / 2)];
163
+ swappedColors[middleKey] = colors2[middleKey];
164
+ }
165
+ return swappedColors;
166
+ }
167
+
168
+ // src/colors/semantic.ts
169
+ var base = {
170
+ light: {
171
+ background: {
172
+ DEFAULT: "#ffffff"
173
+ },
174
+ foreground: {
175
+ DEFAULT: "#11181C"
176
+ },
177
+ border: {
178
+ DEFAULT: "#00000026"
179
+ },
180
+ content1: {
181
+ DEFAULT: import_colors.default.zinc[50],
182
+ contrastText: import_colors.default.zinc[900]
183
+ },
184
+ content2: {
185
+ DEFAULT: import_colors.default.zinc[100],
186
+ contrastText: import_colors.default.zinc[800]
187
+ },
188
+ content3: {
189
+ DEFAULT: import_colors.default.zinc[200],
190
+ contrastText: import_colors.default.zinc[700]
191
+ },
192
+ content4: {
193
+ DEFAULT: import_colors.default.zinc[300],
194
+ contrastText: import_colors.default.zinc[600]
195
+ }
196
+ },
197
+ dark: {
198
+ background: {
199
+ DEFAULT: "#000000"
200
+ },
201
+ foreground: {
202
+ DEFAULT: "#ECEDEE"
203
+ },
204
+ border: {
205
+ DEFAULT: "#ffffff26"
206
+ },
207
+ content1: {
208
+ DEFAULT: import_colors.default.zinc[900],
209
+ contrastText: import_colors.default.zinc[50]
210
+ },
211
+ content2: {
212
+ DEFAULT: import_colors.default.zinc[800],
213
+ contrastText: import_colors.default.zinc[100]
214
+ },
215
+ content3: {
216
+ DEFAULT: import_colors.default.zinc[700],
217
+ contrastText: import_colors.default.zinc[200]
218
+ },
219
+ content4: {
220
+ DEFAULT: import_colors.default.zinc[600],
221
+ contrastText: import_colors.default.zinc[300]
222
+ }
223
+ }
224
+ };
225
+ var semanticColorsLight = {
226
+ ...base.light,
227
+ neutral: {
228
+ ...import_colors.default.zinc,
229
+ contrastText: (0, import_color2k.readableColor)(import_colors.default.zinc[300]),
230
+ DEFAULT: import_colors.default.zinc[300]
231
+ },
232
+ primary: {
233
+ ...commonColors.blue,
234
+ contrastText: commonColors.white,
235
+ DEFAULT: commonColors.blue[500]
236
+ },
237
+ secondary: {
238
+ ...commonColors.purple,
239
+ contrastText: commonColors.white,
240
+ DEFAULT: commonColors.purple[500]
241
+ },
242
+ success: {
243
+ ...commonColors.green,
244
+ contrastText: commonColors.white,
245
+ DEFAULT: commonColors.green[500]
246
+ },
247
+ warning: {
248
+ ...commonColors.yellow,
249
+ contrastText: commonColors.white,
250
+ DEFAULT: commonColors.yellow[500]
251
+ },
252
+ danger: {
253
+ ...commonColors.red,
254
+ contrastText: commonColors.white,
255
+ DEFAULT: commonColors.red[500]
256
+ }
257
+ };
258
+ var semanticColorsDark = {
259
+ ...base.dark,
260
+ neutral: {
261
+ ...swapColorValues(import_colors.default.zinc),
262
+ contrastText: (0, import_color2k.readableColor)(import_colors.default.zinc[700]),
263
+ DEFAULT: import_colors.default.zinc[700]
264
+ },
265
+ primary: {
266
+ ...swapColorValues(commonColors.blue),
267
+ DEFAULT: commonColors.blue[500],
268
+ contrastText: commonColors.white
269
+ },
270
+ secondary: {
271
+ ...swapColorValues(commonColors.purple),
272
+ contrastText: commonColors.white,
273
+ DEFAULT: commonColors.purple[400]
274
+ },
275
+ success: {
276
+ ...swapColorValues(commonColors.green),
277
+ contrastText: (0, import_color2k.readableColor)(commonColors.green[500]),
278
+ DEFAULT: commonColors.green[500]
279
+ },
280
+ warning: {
281
+ ...swapColorValues(commonColors.yellow),
282
+ contrastText: (0, import_color2k.readableColor)(commonColors.yellow[500]),
283
+ DEFAULT: commonColors.yellow[500]
284
+ },
285
+ danger: {
286
+ ...swapColorValues(commonColors.red),
287
+ contrastText: commonColors.white,
288
+ DEFAULT: commonColors.red[500]
289
+ }
290
+ };
291
+ var semanticColors = {
292
+ light: semanticColorsLight,
293
+ dark: semanticColorsDark
294
+ };
295
+
296
+ // src/colors/index.ts
297
+ var colors = {
298
+ ...commonColors,
299
+ ...semanticColors
300
+ };
301
+ // Annotate the CommonJS export names for ESM import in node:
302
+ 0 && (module.exports = {
303
+ colors,
304
+ commonColors,
305
+ semanticColors
306
+ });
@@ -0,0 +1,24 @@
1
+ import "./chunk-WQEDQHKX.mjs";
2
+ import {
3
+ colors
4
+ } from "./chunk-7MQD7UA2.mjs";
5
+ import {
6
+ semanticColors
7
+ } from "./chunk-Y52EXP4A.mjs";
8
+ import "./chunk-37PIXVP4.mjs";
9
+ import "./chunk-M63AFAHO.mjs";
10
+ import {
11
+ commonColors
12
+ } from "./chunk-CRCBVLUP.mjs";
13
+ import "./chunk-DCEG5LGX.mjs";
14
+ import "./chunk-L2OL7R23.mjs";
15
+ import "./chunk-YZYGFPNK.mjs";
16
+ import "./chunk-Y4YW5MKL.mjs";
17
+ import "./chunk-KZJBCC2H.mjs";
18
+ import "./chunk-T3GWIVAM.mjs";
19
+ import "./chunk-OR5PUD24.mjs";
20
+ export {
21
+ colors,
22
+ commonColors,
23
+ semanticColors
24
+ };
@@ -0,0 +1,135 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
+
5
+ /**
6
+ * AccordionItem wrapper **Tailwind Variants** component
7
+ *
8
+ * const {base, heading, indicator, trigger, leftIndicator, title, subtitle, content } = accordionItem({...})
9
+ *
10
+ * @example
11
+ * <div className={base())}>
12
+ * <div className={heading())}>
13
+ * <button className={trigger())}>
14
+ * <div className={leftIndicator()}>
15
+ * // content
16
+ * </div>
17
+ * <div className={titleWrapper()}>
18
+ * <h3 className={title())}>Title</h3>
19
+ * <span className={subtitle())}>Subtitle</span>
20
+ * </div>
21
+ * <span className={indicator())}>Indicator</span>
22
+ * </button>
23
+ * </div>
24
+ * <div className={content())}>Content</div>
25
+ * </div>
26
+ */
27
+ declare const accordionItem: tailwind_variants.TVReturnType<{
28
+ isCompact: {
29
+ true: {
30
+ base: string;
31
+ trigger: string;
32
+ title: string;
33
+ subtitle: string;
34
+ indicator: string;
35
+ content: string;
36
+ };
37
+ };
38
+ isDisabled: {
39
+ true: {
40
+ base: string;
41
+ };
42
+ };
43
+ isFocusVisible: {
44
+ true: {
45
+ trigger: string[];
46
+ };
47
+ };
48
+ hideDivider: {
49
+ true: {
50
+ base: string;
51
+ };
52
+ };
53
+ hideIndicator: {
54
+ true: {
55
+ indicator: string;
56
+ };
57
+ };
58
+ disableAnimation: {
59
+ true: {
60
+ content: string;
61
+ };
62
+ false: {
63
+ indicator: string;
64
+ };
65
+ };
66
+ disableIndicatorAnimation: {
67
+ true: {
68
+ indicator: string;
69
+ };
70
+ false: {
71
+ indicator: string;
72
+ };
73
+ };
74
+ }, unknown, {
75
+ base: string[];
76
+ heading: string;
77
+ trigger: string;
78
+ leftIndicator: string;
79
+ indicator: string;
80
+ titleWrapper: string;
81
+ title: string;
82
+ subtitle: string;
83
+ content: string;
84
+ }, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
85
+ isCompact: {
86
+ true: {
87
+ base: string;
88
+ trigger: string;
89
+ title: string;
90
+ subtitle: string;
91
+ indicator: string;
92
+ content: string;
93
+ };
94
+ };
95
+ isDisabled: {
96
+ true: {
97
+ base: string;
98
+ };
99
+ };
100
+ isFocusVisible: {
101
+ true: {
102
+ trigger: string[];
103
+ };
104
+ };
105
+ hideDivider: {
106
+ true: {
107
+ base: string;
108
+ };
109
+ };
110
+ hideIndicator: {
111
+ true: {
112
+ indicator: string;
113
+ };
114
+ };
115
+ disableAnimation: {
116
+ true: {
117
+ content: string;
118
+ };
119
+ false: {
120
+ indicator: string;
121
+ };
122
+ };
123
+ disableIndicatorAnimation: {
124
+ true: {
125
+ indicator: string;
126
+ };
127
+ false: {
128
+ indicator: string;
129
+ };
130
+ };
131
+ }, unknown>>;
132
+ type AccordionItemVariantProps = VariantProps<typeof accordionItem>;
133
+ type AccordionItemSlots = keyof ReturnType<typeof accordionItem>;
134
+
135
+ export { AccordionItemSlots, AccordionItemVariantProps, accordionItem };
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/accordion-item.ts
21
+ var accordion_item_exports = {};
22
+ __export(accordion_item_exports, {
23
+ accordionItem: () => accordionItem
24
+ });
25
+ module.exports = __toCommonJS(accordion_item_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+
28
+ // src/utils/styles.ts
29
+ var ringClasses = [
30
+ "outline-none",
31
+ "ring-2",
32
+ "!ring-primary",
33
+ "ring-offset-2",
34
+ "ring-offset-background",
35
+ "dark:ring-offset-background-dark"
36
+ ];
37
+
38
+ // src/components/accordion-item.ts
39
+ var accordionItem = (0, import_tailwind_variants.tv)({
40
+ slots: {
41
+ base: [
42
+ "py-2",
43
+ "border-neutral",
44
+ "[&:not(:last-of-type)]:border-b",
45
+ "group-[.is-splitted]:px-4",
46
+ "dark:group-[.is-splitted]:bg-content1",
47
+ "group-[.is-splitted]:shadow-lg",
48
+ "group-[.is-splitted]:rounded-lg",
49
+ "group-[.is-splitted]:border",
50
+ "group-[.is-splitted]:border-neutral-100"
51
+ ],
52
+ heading: "",
53
+ trigger: "py-2 flex w-full gap-3 outline-none items-center",
54
+ leftIndicator: "flex-shrink-0",
55
+ indicator: "text-neutral-400",
56
+ titleWrapper: "flex-1 flex flex-col text-left",
57
+ title: "text-foreground text-lg",
58
+ subtitle: "text-sm text-neutral-500 font-normal",
59
+ content: "py-2"
60
+ },
61
+ variants: {
62
+ isCompact: {
63
+ true: {
64
+ base: "py-1",
65
+ trigger: "py-1",
66
+ title: "text-base",
67
+ subtitle: "text-xs",
68
+ indicator: "text-base",
69
+ content: "py-1"
70
+ }
71
+ },
72
+ isDisabled: {
73
+ true: {
74
+ base: "opacity-50 pointer-events-none"
75
+ }
76
+ },
77
+ isFocusVisible: {
78
+ true: {
79
+ trigger: [...ringClasses]
80
+ }
81
+ },
82
+ hideDivider: {
83
+ true: {
84
+ base: "!border-b-0"
85
+ }
86
+ },
87
+ hideIndicator: {
88
+ true: {
89
+ indicator: "hidden"
90
+ }
91
+ },
92
+ disableAnimation: {
93
+ true: {
94
+ content: "hidden data-[open=true]:block"
95
+ },
96
+ false: {
97
+ indicator: "transition-transform"
98
+ }
99
+ },
100
+ disableIndicatorAnimation: {
101
+ true: {
102
+ indicator: "transition-none"
103
+ },
104
+ false: {
105
+ indicator: "rotate-0 data-[open=true]:-rotate-90"
106
+ }
107
+ }
108
+ },
109
+ defaultVariants: {
110
+ size: "md",
111
+ radius: "lg",
112
+ isDisabled: false,
113
+ hideDivider: false,
114
+ hideIndicator: false,
115
+ disableAnimation: false,
116
+ disableIndicatorAnimation: false
117
+ }
118
+ });
119
+ // Annotate the CommonJS export names for ESM import in node:
120
+ 0 && (module.exports = {
121
+ accordionItem
122
+ });
@@ -0,0 +1,10 @@
1
+ import {
2
+ accordionItem
3
+ } from "../chunk-RD42SVXB.mjs";
4
+ import "../chunk-CMYR6AOY.mjs";
5
+ import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-LGGZKBOO.mjs";
7
+ import "../chunk-IJCHUO4J.mjs";
8
+ export {
9
+ accordionItem
10
+ };
@@ -0,0 +1,30 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
+
5
+ /**
6
+ * Accordion wrapper **Tailwind Variants** component
7
+ *
8
+ * const styles = accordion({...})
9
+ *
10
+ * @example
11
+ * <div role="group" className={styles())}>
12
+ * // avatar elements
13
+ * </div>
14
+ */
15
+ declare const accordion: tailwind_variants.TVReturnType<{
16
+ variant: {
17
+ shadow: string;
18
+ bordered: string;
19
+ splitted: string;
20
+ };
21
+ }, unknown, undefined, undefined, "px-2", tailwind_variants_dist_config.TVConfig<{
22
+ variant: {
23
+ shadow: string;
24
+ bordered: string;
25
+ splitted: string;
26
+ };
27
+ }, unknown>>;
28
+ type AccordionGroupVariantProps = VariantProps<typeof accordion>;
29
+
30
+ export { AccordionGroupVariantProps, accordion };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/accordion.ts
21
+ var accordion_exports = {};
22
+ __export(accordion_exports, {
23
+ accordion: () => accordion
24
+ });
25
+ module.exports = __toCommonJS(accordion_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var accordion = (0, import_tailwind_variants.tv)({
28
+ base: "px-2",
29
+ variants: {
30
+ variant: {
31
+ shadow: "px-4 shadow-lg rounded-xl dark:bg-content1 border border-neutral-100",
32
+ bordered: "px-4 border border-neutral rounded-lg",
33
+ splitted: "group is-splitted flex flex-col gap-2"
34
+ }
35
+ }
36
+ });
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ accordion
40
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ accordion
3
+ } from "../chunk-YYBLBQIV.mjs";
4
+ export {
5
+ accordion
6
+ };
@@ -0,0 +1,26 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
+
5
+ /**
6
+ * AvatarGroup wrapper **Tailwind Variants** component
7
+ *
8
+ * const styles = avatarGroup({...})
9
+ *
10
+ * @example
11
+ * <div role="group" className={styles())}>
12
+ * // avatar elements
13
+ * </div>
14
+ */
15
+ declare const avatarGroup: tailwind_variants.TVReturnType<{
16
+ isGrid: {
17
+ true: string;
18
+ };
19
+ }, unknown, undefined, undefined, "flex items-center justify-center h-auto w-max-content", tailwind_variants_dist_config.TVConfig<{
20
+ isGrid: {
21
+ true: string;
22
+ };
23
+ }, unknown>>;
24
+ type AvatarGroupVariantProps = VariantProps<typeof avatarGroup>;
25
+
26
+ export { AvatarGroupVariantProps, avatarGroup };