@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
@@ -0,0 +1,271 @@
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
+ * Radio wrapper **Tailwind Variants** component
7
+ *
8
+ * const {base, wrapper, point, labelWrapper, label, description} = radio({...})
9
+ *
10
+ * @example
11
+ * <label className={base())}>
12
+ * // input
13
+ * <span className={wrapper()} aria-hidden="true" data-checked={checked} data-hover-unchecked={hoverUnchecked}>
14
+ * <span className={point()}/>
15
+ * </span>
16
+ * <div className={labelWrapper()}>
17
+ * <span className={label()}>Label</span>
18
+ * <span className={description()}>Description</span>
19
+ * </div>
20
+ * </label>
21
+ */
22
+ declare const radio: tailwind_variants.TVReturnType<{
23
+ color: {
24
+ neutral: {
25
+ control: string;
26
+ wrapper: string;
27
+ };
28
+ primary: {
29
+ control: string;
30
+ wrapper: string;
31
+ };
32
+ secondary: {
33
+ control: string;
34
+ wrapper: string;
35
+ };
36
+ success: {
37
+ control: string;
38
+ wrapper: string;
39
+ };
40
+ warning: {
41
+ control: string;
42
+ wrapper: string;
43
+ };
44
+ danger: {
45
+ control: string;
46
+ wrapper: string;
47
+ };
48
+ };
49
+ size: {
50
+ xs: {
51
+ wrapper: string;
52
+ control: string;
53
+ labelWrapper: string;
54
+ label: string;
55
+ description: string;
56
+ };
57
+ sm: {
58
+ wrapper: string;
59
+ control: string;
60
+ labelWrapper: string;
61
+ label: string;
62
+ description: string;
63
+ };
64
+ md: {
65
+ wrapper: string;
66
+ control: string;
67
+ labelWrapper: string;
68
+ label: string;
69
+ description: string;
70
+ };
71
+ lg: {
72
+ wrapper: string;
73
+ control: string;
74
+ labelWrapper: string;
75
+ label: string;
76
+ description: string;
77
+ };
78
+ xl: {
79
+ wrapper: string;
80
+ control: string;
81
+ labelWrapper: string;
82
+ label: string;
83
+ description: string;
84
+ };
85
+ };
86
+ radius: {
87
+ none: {
88
+ wrapper: string;
89
+ control: string;
90
+ };
91
+ base: {
92
+ wrapper: string;
93
+ control: string;
94
+ };
95
+ sm: {
96
+ wrapper: string;
97
+ control: string;
98
+ };
99
+ md: {
100
+ wrapper: string;
101
+ control: string;
102
+ };
103
+ lg: {
104
+ wrapper: string;
105
+ control: string;
106
+ };
107
+ xl: {
108
+ wrapper: string;
109
+ control: string;
110
+ };
111
+ full: {
112
+ wrapper: string;
113
+ control: string;
114
+ };
115
+ };
116
+ isDisabled: {
117
+ true: {
118
+ base: string;
119
+ };
120
+ };
121
+ isInvalid: {
122
+ true: {
123
+ control: string;
124
+ wrapper: string;
125
+ label: string;
126
+ description: string;
127
+ };
128
+ };
129
+ isFocusVisible: {
130
+ true: {
131
+ wrapper: string[];
132
+ };
133
+ };
134
+ disableAnimation: {
135
+ true: {};
136
+ false: {
137
+ wrapper: string;
138
+ control: string;
139
+ };
140
+ };
141
+ }, unknown, {
142
+ base: string;
143
+ wrapper: string[];
144
+ labelWrapper: string;
145
+ control: string[];
146
+ label: string;
147
+ description: string;
148
+ }, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
149
+ color: {
150
+ neutral: {
151
+ control: string;
152
+ wrapper: string;
153
+ };
154
+ primary: {
155
+ control: string;
156
+ wrapper: string;
157
+ };
158
+ secondary: {
159
+ control: string;
160
+ wrapper: string;
161
+ };
162
+ success: {
163
+ control: string;
164
+ wrapper: string;
165
+ };
166
+ warning: {
167
+ control: string;
168
+ wrapper: string;
169
+ };
170
+ danger: {
171
+ control: string;
172
+ wrapper: string;
173
+ };
174
+ };
175
+ size: {
176
+ xs: {
177
+ wrapper: string;
178
+ control: string;
179
+ labelWrapper: string;
180
+ label: string;
181
+ description: string;
182
+ };
183
+ sm: {
184
+ wrapper: string;
185
+ control: string;
186
+ labelWrapper: string;
187
+ label: string;
188
+ description: string;
189
+ };
190
+ md: {
191
+ wrapper: string;
192
+ control: string;
193
+ labelWrapper: string;
194
+ label: string;
195
+ description: string;
196
+ };
197
+ lg: {
198
+ wrapper: string;
199
+ control: string;
200
+ labelWrapper: string;
201
+ label: string;
202
+ description: string;
203
+ };
204
+ xl: {
205
+ wrapper: string;
206
+ control: string;
207
+ labelWrapper: string;
208
+ label: string;
209
+ description: string;
210
+ };
211
+ };
212
+ radius: {
213
+ none: {
214
+ wrapper: string;
215
+ control: string;
216
+ };
217
+ base: {
218
+ wrapper: string;
219
+ control: string;
220
+ };
221
+ sm: {
222
+ wrapper: string;
223
+ control: string;
224
+ };
225
+ md: {
226
+ wrapper: string;
227
+ control: string;
228
+ };
229
+ lg: {
230
+ wrapper: string;
231
+ control: string;
232
+ };
233
+ xl: {
234
+ wrapper: string;
235
+ control: string;
236
+ };
237
+ full: {
238
+ wrapper: string;
239
+ control: string;
240
+ };
241
+ };
242
+ isDisabled: {
243
+ true: {
244
+ base: string;
245
+ };
246
+ };
247
+ isInvalid: {
248
+ true: {
249
+ control: string;
250
+ wrapper: string;
251
+ label: string;
252
+ description: string;
253
+ };
254
+ };
255
+ isFocusVisible: {
256
+ true: {
257
+ wrapper: string[];
258
+ };
259
+ };
260
+ disableAnimation: {
261
+ true: {};
262
+ false: {
263
+ wrapper: string;
264
+ control: string;
265
+ };
266
+ };
267
+ }, unknown>>;
268
+ type RadioVariantProps = VariantProps<typeof radio>;
269
+ type RadioSlots = keyof ReturnType<typeof radio>;
270
+
271
+ export { RadioSlots, RadioVariantProps, radio };
@@ -0,0 +1,201 @@
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/radio.ts
21
+ var radio_exports = {};
22
+ __export(radio_exports, {
23
+ radio: () => radio
24
+ });
25
+ module.exports = __toCommonJS(radio_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/radio.ts
39
+ var radio = (0, import_tailwind_variants.tv)({
40
+ slots: {
41
+ base: "relative max-w-fit inline-flex items-center justify-start cursor-pointer",
42
+ wrapper: [
43
+ "relative",
44
+ "inline-flex",
45
+ "items-center",
46
+ "justify-center",
47
+ "flex-shrink-0",
48
+ "overflow-hidden",
49
+ "border-solid",
50
+ "border-2",
51
+ "box-border",
52
+ "border-neutral",
53
+ "data-[hover-unchecked=true]:bg-neutral-100"
54
+ ],
55
+ labelWrapper: "flex flex-col ml-1",
56
+ control: [
57
+ "z-10",
58
+ "w-2",
59
+ "h-2",
60
+ "opacity-0",
61
+ "scale-0",
62
+ "origin-center",
63
+ "data-[checked=true]:opacity-100",
64
+ "data-[checked=true]:scale-100"
65
+ ],
66
+ label: "relative text-foreground select-none",
67
+ description: "relative text-neutral-400"
68
+ },
69
+ variants: {
70
+ color: {
71
+ neutral: {
72
+ control: "bg-neutral-500 text-neutral-contrastText",
73
+ wrapper: "data-[checked=true]:border-neutral-500"
74
+ },
75
+ primary: {
76
+ control: "bg-primary text-primary-contrastText",
77
+ wrapper: "data-[checked=true]:border-primary"
78
+ },
79
+ secondary: {
80
+ control: "bg-secondary text-secondary-contrastText",
81
+ wrapper: "data-[checked=true]:border-secondary"
82
+ },
83
+ success: {
84
+ control: "bg-success text-success-contrastText",
85
+ wrapper: "data-[checked=true]:border-success"
86
+ },
87
+ warning: {
88
+ control: "bg-warning text-warning-contrastText",
89
+ wrapper: "data-[checked=true]:border-warning"
90
+ },
91
+ danger: {
92
+ control: "bg-danger text-danger-contrastText",
93
+ wrapper: "data-[checked=true]:border-danger"
94
+ }
95
+ },
96
+ size: {
97
+ xs: {
98
+ wrapper: "w-3.5 h-3.5",
99
+ control: "w-1 h-1",
100
+ labelWrapper: "ml-1",
101
+ label: "text-xs",
102
+ description: "text-xs"
103
+ },
104
+ sm: {
105
+ wrapper: "w-4 h-4",
106
+ control: "w-1.5 h-1.5",
107
+ labelWrapper: "ml-1",
108
+ label: "text-sm",
109
+ description: "text-xs"
110
+ },
111
+ md: {
112
+ wrapper: "w-5 h-5",
113
+ control: "w-2 h-2",
114
+ labelWrapper: "ml-2",
115
+ label: "text-base",
116
+ description: "text-sm"
117
+ },
118
+ lg: {
119
+ wrapper: "w-6 h-6",
120
+ control: "w-2.5 h-2.5",
121
+ labelWrapper: "ml-2",
122
+ label: "text-lg",
123
+ description: "text-base"
124
+ },
125
+ xl: {
126
+ wrapper: "w-7 h-7",
127
+ control: "w-3 h-3",
128
+ labelWrapper: "ml-3",
129
+ label: "text-xl",
130
+ description: "text-lg"
131
+ }
132
+ },
133
+ radius: {
134
+ none: {
135
+ wrapper: "rounded-none",
136
+ control: "rounded-none"
137
+ },
138
+ base: {
139
+ wrapper: "rounded",
140
+ control: "rounded"
141
+ },
142
+ sm: {
143
+ wrapper: "rounded-sm",
144
+ control: "rounded-sm"
145
+ },
146
+ md: {
147
+ wrapper: "rounded-md",
148
+ control: "rounded-sm"
149
+ },
150
+ lg: {
151
+ wrapper: "rounded-lg",
152
+ control: "rounded"
153
+ },
154
+ xl: {
155
+ wrapper: "rounded-xl",
156
+ control: "rounded-md"
157
+ },
158
+ full: {
159
+ wrapper: "rounded-full",
160
+ control: "rounded-full"
161
+ }
162
+ },
163
+ isDisabled: {
164
+ true: {
165
+ base: "opacity-50 pointer-events-none"
166
+ }
167
+ },
168
+ isInvalid: {
169
+ true: {
170
+ control: "bg-danger text-danger-contrastText",
171
+ wrapper: "border-danger data-[checked=true]:border-danger",
172
+ label: "text-danger",
173
+ description: "text-danger-300"
174
+ }
175
+ },
176
+ isFocusVisible: {
177
+ true: {
178
+ wrapper: [...ringClasses]
179
+ }
180
+ },
181
+ disableAnimation: {
182
+ true: {},
183
+ false: {
184
+ wrapper: "transition-background",
185
+ control: "transition-transform-opacity"
186
+ }
187
+ }
188
+ },
189
+ defaultVariants: {
190
+ color: "primary",
191
+ size: "md",
192
+ radius: "full",
193
+ isDisabled: false,
194
+ isInvalid: false,
195
+ disableAnimation: false
196
+ }
197
+ });
198
+ // Annotate the CommonJS export names for ESM import in node:
199
+ 0 && (module.exports = {
200
+ radio
201
+ });
@@ -0,0 +1,10 @@
1
+ import {
2
+ radio
3
+ } from "../chunk-Y37XC5QN.mjs";
4
+ import "../chunk-CMYR6AOY.mjs";
5
+ import "../chunk-K7LK7NCE.mjs";
6
+ import "../chunk-LGGZKBOO.mjs";
7
+ import "../chunk-IJCHUO4J.mjs";
8
+ export {
9
+ radio
10
+ };
@@ -0,0 +1,184 @@
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
+ * Snippet wrapper **Tailwind Variants** component
7
+ *
8
+ * const {base, pre, copy} = snippet({...})
9
+ *
10
+ * @example
11
+ * <div className={base())}>
12
+ * <pre className={pre()}>
13
+ * // code snippet
14
+ * </pre>
15
+ * <button className={copy()}>
16
+ * <svg>
17
+ * // copy icon
18
+ * </svg>
19
+ * </button>
20
+ * </div>
21
+ */
22
+ declare const snippet: tailwind_variants.TVReturnType<{
23
+ variant: {
24
+ flat: string;
25
+ solid: string;
26
+ bordered: string;
27
+ shadow: string;
28
+ };
29
+ color: {
30
+ neutral: {
31
+ base: string;
32
+ };
33
+ primary: {
34
+ base: string;
35
+ };
36
+ secondary: {
37
+ base: string;
38
+ };
39
+ success: {
40
+ base: string;
41
+ };
42
+ warning: {
43
+ base: string;
44
+ };
45
+ danger: {
46
+ base: string;
47
+ };
48
+ };
49
+ size: {
50
+ xs: {
51
+ base: string;
52
+ };
53
+ sm: {
54
+ base: string;
55
+ };
56
+ md: {
57
+ base: string;
58
+ };
59
+ lg: {
60
+ base: string;
61
+ };
62
+ xl: {
63
+ base: string;
64
+ };
65
+ };
66
+ radius: {
67
+ none: {
68
+ base: string;
69
+ };
70
+ base: {
71
+ base: string;
72
+ };
73
+ sm: {
74
+ base: string;
75
+ };
76
+ md: {
77
+ base: string;
78
+ };
79
+ lg: {
80
+ base: string;
81
+ };
82
+ xl: {
83
+ base: string;
84
+ };
85
+ full: {
86
+ base: string;
87
+ };
88
+ };
89
+ fullWidth: {
90
+ true: {
91
+ base: string;
92
+ };
93
+ };
94
+ isFocusVisible: {
95
+ true: {
96
+ copy: string[];
97
+ };
98
+ };
99
+ }, unknown, {
100
+ base: string;
101
+ pre: string;
102
+ copy: string;
103
+ }, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
104
+ variant: {
105
+ flat: string;
106
+ solid: string;
107
+ bordered: string;
108
+ shadow: string;
109
+ };
110
+ color: {
111
+ neutral: {
112
+ base: string;
113
+ };
114
+ primary: {
115
+ base: string;
116
+ };
117
+ secondary: {
118
+ base: string;
119
+ };
120
+ success: {
121
+ base: string;
122
+ };
123
+ warning: {
124
+ base: string;
125
+ };
126
+ danger: {
127
+ base: string;
128
+ };
129
+ };
130
+ size: {
131
+ xs: {
132
+ base: string;
133
+ };
134
+ sm: {
135
+ base: string;
136
+ };
137
+ md: {
138
+ base: string;
139
+ };
140
+ lg: {
141
+ base: string;
142
+ };
143
+ xl: {
144
+ base: string;
145
+ };
146
+ };
147
+ radius: {
148
+ none: {
149
+ base: string;
150
+ };
151
+ base: {
152
+ base: string;
153
+ };
154
+ sm: {
155
+ base: string;
156
+ };
157
+ md: {
158
+ base: string;
159
+ };
160
+ lg: {
161
+ base: string;
162
+ };
163
+ xl: {
164
+ base: string;
165
+ };
166
+ full: {
167
+ base: string;
168
+ };
169
+ };
170
+ fullWidth: {
171
+ true: {
172
+ base: string;
173
+ };
174
+ };
175
+ isFocusVisible: {
176
+ true: {
177
+ copy: string[];
178
+ };
179
+ };
180
+ }, unknown>>;
181
+ type SnippetVariantProps = VariantProps<typeof snippet>;
182
+ type SnippetSlots = keyof ReturnType<typeof snippet>;
183
+
184
+ export { SnippetSlots, SnippetVariantProps, snippet };