@rimelight/ui 0.0.27 → 0.0.29

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 (39) hide show
  1. package/package.json +14 -13
  2. package/src/components/astro/RLAAccordion.astro +2 -6
  3. package/src/components/astro/RLAButton.astro +7 -23
  4. package/src/components/astro/RLAEmbedYoutube.astro +34 -25
  5. package/src/components/astro/RLAFooter.astro +2 -10
  6. package/src/components/astro/RLAHeader.astro +2 -14
  7. package/src/components/astro/RLAIcon.astro +2 -11
  8. package/src/components/astro/RLALogo.astro +2 -12
  9. package/src/components/astro/RLAPlaceholder.astro +2 -8
  10. package/src/components/astro/RLAScrollToTop.astro +2 -14
  11. package/src/components/astro/RLASection.astro +24 -82
  12. package/src/components/vue/RLVButton.vue +2 -64
  13. package/src/components/vue/RLVFooter.vue +2 -9
  14. package/src/components/vue/RLVHeader.vue +2 -13
  15. package/src/components/vue/RLVIcon.vue +2 -10
  16. package/src/components/vue/RLVLogo.vue +13 -21
  17. package/src/components/vue/RLVPlaceholder.vue +2 -8
  18. package/src/components/vue/RLVScrollToTop.vue +2 -13
  19. package/src/components/vue/RLVSection.vue +2 -19
  20. package/src/env.d.ts +1 -1
  21. package/src/integrations/ui.ts +17 -1
  22. package/src/presets/index.ts +63 -193
  23. package/src/themes/button.theme.ts +180 -511
  24. package/src/themes/embedYoutube.theme.ts +14 -0
  25. package/src/types/components/accordion.ts +15 -0
  26. package/src/types/components/button.ts +71 -0
  27. package/src/types/components/embed-youtube.ts +27 -0
  28. package/src/types/components/footer.ts +15 -0
  29. package/src/types/components/header.ts +31 -0
  30. package/src/types/components/icon.ts +19 -0
  31. package/src/types/components/index.ts +12 -0
  32. package/src/types/components/link.ts +23 -0
  33. package/src/types/components/logo.ts +27 -0
  34. package/src/types/components/navigation.ts +34 -0
  35. package/src/types/components/placeholder.ts +11 -0
  36. package/src/types/components/scroll-to-top.ts +31 -0
  37. package/src/types/components/section.ts +63 -0
  38. package/src/types/index.ts +1 -0
  39. package/src/nuxt-types.ts +0 -3
@@ -1,521 +1,190 @@
1
1
  import { defineTheme } from "../utils/defineTheme"
2
2
 
3
- export default defineTheme({
4
- slots: ["root", "label", "leadingIcon", "trailingIcon"],
5
- base: {
6
- root: [
7
- "inline-flex items-center justify-center gap-4xs rounded-md font-medium ws-nowrap",
8
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
9
- "transition-all outline-none focus-visible:ring-3",
10
- "disabled:pointer-events-none disabled:op-50",
11
- "aria-invalid:border-error-500 aria-invalid:ring-error-500/20"
12
- ],
13
- label: "truncate",
14
- leadingIcon: "shrink-0",
15
- trailingIcon: "shrink-0"
16
- },
17
- variants: {
18
- variant: {
19
- solid: { root: "b shadow-xs" },
20
- outline: { root: "b shadow-xs border" },
21
- soft: { root: "" },
22
- subtle: { root: "" },
23
- ghost: { root: "" },
24
- link: { root: "p-0 h-auto" }
25
- },
26
- color: {
27
- primary: { root: "" },
28
- secondary: { root: "" },
29
- info: { root: "" },
30
- success: { root: "" },
31
- warning: { root: "" },
32
- error: { root: "" },
33
- commentary: { root: "" },
34
- ideation: { root: "" },
35
- source: { root: "" }
36
- },
37
- size: {
38
- xs: {
39
- root: "h-7 px-2xs text-xs [&_svg]:size-3.5",
40
- leadingIcon: "[&_svg]:size-3.5 [&_span]:size-3.5",
41
- trailingIcon: "[&_svg]:size-3.5 [&_span]:size-3.5"
3
+ const defaultColors = [
4
+ "primary",
5
+ "secondary",
6
+ "info",
7
+ "success",
8
+ "warning",
9
+ "error",
10
+ "commentary",
11
+ "ideation",
12
+ "source"
13
+ ]
14
+
15
+ export const createButtonTheme = (colors: string[] = defaultColors) =>
16
+ defineTheme({
17
+ slots: ["root", "label", "leadingIcon", "trailingIcon"],
18
+ base: {
19
+ root: [
20
+ "inline-flex items-center justify-center gap-4xs rounded-md font-medium ws-nowrap",
21
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
22
+ "transition-all outline-none focus-visible:ring-3",
23
+ "disabled:pointer-events-none disabled:op-50",
24
+ "aria-invalid:border-error-500 aria-invalid:ring-error-500/20"
25
+ ],
26
+ label: "truncate",
27
+ leadingIcon: "shrink-0",
28
+ trailingIcon: "shrink-0"
29
+ },
30
+ variants: {
31
+ variant: {
32
+ solid: { root: "shadow-sm border border-transparent" },
33
+ outline: { root: "b shadow-sm border" },
34
+ soft: { root: "" },
35
+ subtle: { root: "" },
36
+ ghost: { root: "" },
37
+ link: { root: "p-0 h-auto no-underline" }
42
38
  },
43
- sm: {
44
- root: "h-8 px-xs text-sm [&_svg]:size-4",
45
- leadingIcon: "[&_svg]:size-4 [&_span]:size-4",
46
- trailingIcon: "[&_svg]:size-4 [&_span]:size-4"
39
+ color: Object.fromEntries(colors.map((color) => [color, { root: "" }])),
40
+ size: {
41
+ xs: {
42
+ root: "h-7 px-2xs text-xs [&_svg]:size-3.5",
43
+ leadingIcon: "[&_svg]:size-3.5 [&_span]:size-3.5",
44
+ trailingIcon: "[&_svg]:size-3.5 [&_span]:size-3.5"
45
+ },
46
+ sm: {
47
+ root: "h-8 px-xs text-sm [&_svg]:size-4",
48
+ leadingIcon: "[&_svg]:size-4 [&_span]:size-4",
49
+ trailingIcon: "[&_svg]:size-4 [&_span]:size-4"
50
+ },
51
+ md: {
52
+ root: "h-9 px-sm text-sm [&_svg]:size-4",
53
+ leadingIcon: "[&_svg]:size-4 [&_span]:size-4",
54
+ trailingIcon: "[&_svg]:size-4 [&_span]:size-4"
55
+ },
56
+ lg: {
57
+ root: "h-10 px-md text-base [&_svg]:size-4.5",
58
+ leadingIcon: "[&_svg]:size-4.5 [&_span]:size-4.5",
59
+ trailingIcon: "[&_svg]:size-4.5 [&_span]:size-4.5"
60
+ },
61
+ xl: {
62
+ root: "h-11 px-lg text-base [&_svg]:size-5",
63
+ leadingIcon: "[&_svg]:size-5 [&_span]:size-5",
64
+ trailingIcon: "[&_svg]:size-5 [&_span]:size-5"
65
+ }
47
66
  },
48
- md: {
49
- root: "h-9 px-sm text-sm [&_svg]:size-4",
50
- leadingIcon: "[&_svg]:size-4 [&_span]:size-4",
51
- trailingIcon: "[&_svg]:size-4 [&_span]:size-4"
67
+ block: {
68
+ true: { root: "w-full justify-center", trailingIcon: "ms-auto" }
52
69
  },
53
- lg: {
54
- root: "h-10 px-md text-base [&_svg]:size-4.5",
55
- leadingIcon: "[&_svg]:size-4.5 [&_span]:size-4.5",
56
- trailingIcon: "[&_svg]:size-4.5 [&_span]:size-4.5"
70
+ square: {
71
+ true: { root: "" }
57
72
  },
58
- xl: {
59
- root: "h-11 px-lg text-base [&_svg]:size-5",
60
- leadingIcon: "[&_svg]:size-5 [&_span]:size-5",
61
- trailingIcon: "[&_svg]:size-5 [&_span]:size-5"
62
- }
63
- },
64
- block: {
65
- true: { root: "w-full justify-center", trailingIcon: "ms-auto" }
66
- },
67
- square: {
68
- true: { root: "" }
69
- },
70
- leading: { true: {} },
71
- trailing: { true: {} },
72
- loading: { true: {} },
73
- active: {
74
- true: { root: "" },
75
- false: { root: "" }
76
- }
77
- },
78
- compoundVariants: [
79
- {
80
- variant: "solid",
81
- color: "primary",
82
- classNames: {
83
- root: "bg-primary text-primary-foreground hover:bg-primary/90 focus-visible:ring-primary/50"
84
- }
85
- },
86
- {
87
- variant: "solid",
88
- color: "secondary",
89
- classNames: {
90
- root: "bg-secondary text-secondary-foreground hover:bg-secondary/90 focus-visible:ring-secondary/50"
91
- }
92
- },
93
- {
94
- variant: "solid",
95
- color: "info",
96
- classNames: {
97
- root: "bg-info text-info-foreground hover:bg-info/90 focus-visible:ring-info/50"
98
- }
99
- },
100
- {
101
- variant: "solid",
102
- color: "success",
103
- classNames: {
104
- root: "bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/50"
105
- }
106
- },
107
- {
108
- variant: "solid",
109
- color: "warning",
110
- classNames: {
111
- root: "bg-warning text-warning-foreground hover:bg-warning/90 focus-visible:ring-warning/50"
112
- }
113
- },
114
- {
115
- variant: "solid",
116
- color: "error",
117
- classNames: {
118
- root: "bg-error text-error-foreground hover:bg-error/90 focus-visible:ring-error/50"
119
- }
120
- },
121
- {
122
- variant: "solid",
123
- color: "commentary",
124
- classNames: {
125
- root: "bg-commentary text-commentary-foreground hover:bg-commentary/90 focus-visible:ring-commentary/50"
126
- }
127
- },
128
- {
129
- variant: "solid",
130
- color: "ideation",
131
- classNames: {
132
- root: "bg-ideation text-ideation-foreground hover:bg-ideation/90 focus-visible:ring-ideation/50"
73
+ leading: { true: {} },
74
+ trailing: { true: {} },
75
+ loading: { true: {} },
76
+ active: {
77
+ true: { root: "" },
78
+ false: { root: "" }
79
+ }
80
+ },
81
+ compoundVariants: [
82
+ ...colors.map((color) => ({
83
+ variant: "solid" as const,
84
+ color,
85
+ classNames: {
86
+ root: `bg-${color}-500 text-white hover:bg-${color}-600 focus-visible:ring-${color}-500/50`
87
+ }
88
+ })),
89
+ ...colors.map((color) => ({
90
+ variant: "outline" as const,
91
+ color,
92
+ classNames: {
93
+ root: `border-${color}-500/20 text-${color}-600 bg-${color}-500/5 hover:bg-${color}-500/10 hover:border-${color}-500/30 focus-visible:ring-${color}-500/40`
94
+ }
95
+ })),
96
+ ...colors.map((color) => ({
97
+ variant: "soft" as const,
98
+ color,
99
+ classNames: {
100
+ root: `text-${color}-600 bg-${color}-500/10 hover:bg-${color}-500/20 focus-visible:ring-${color}-500/40`
101
+ }
102
+ })),
103
+ ...colors.map((color) => ({
104
+ variant: "subtle" as const,
105
+ color,
106
+ classNames: {
107
+ root: `text-${color}-600 bg-${color}-500/10 hover:bg-${color}-500/20 focus-visible:ring-${color}-500/40`
108
+ }
109
+ })),
110
+ ...colors.map((color) => ({
111
+ variant: "ghost" as const,
112
+ color,
113
+ classNames: {
114
+ root: `text-${color}-600 hover:bg-${color}-500/10 focus-visible:ring-${color}-500/40`
115
+ }
116
+ })),
117
+ ...colors.map((color) => ({
118
+ variant: "link" as const,
119
+ color,
120
+ classNames: {
121
+ root: `text-${color}-600 hover:underline hover:decoration-${color}-300`
122
+ }
123
+ })),
124
+ {
125
+ square: true,
126
+ size: "xs",
127
+ classNames: {
128
+ root: "p-1 w-7"
129
+ }
130
+ },
131
+ {
132
+ square: true,
133
+ size: "sm",
134
+ classNames: {
135
+ root: "p-1.5 w-8"
136
+ }
137
+ },
138
+ {
139
+ square: true,
140
+ size: "md",
141
+ classNames: {
142
+ root: "p-1.5 w-9"
143
+ }
144
+ },
145
+ {
146
+ square: true,
147
+ size: "lg",
148
+ classNames: {
149
+ root: "p-2 w-10"
150
+ }
151
+ },
152
+ {
153
+ square: true,
154
+ size: "xl",
155
+ classNames: {
156
+ root: "p-2 w-11"
157
+ }
158
+ },
159
+ {
160
+ loading: true,
161
+ leading: true,
162
+ classNames: {
163
+ leadingIcon: "animate-spin"
164
+ }
165
+ },
166
+ {
167
+ loading: true,
168
+ leading: false,
169
+ trailing: true,
170
+ classNames: {
171
+ trailingIcon: "animate-spin"
172
+ }
173
+ },
174
+ {
175
+ loading: true,
176
+ leading: false,
177
+ trailing: false,
178
+ classNames: {
179
+ trailingIcon: "animate-spin"
180
+ }
133
181
  }
134
- },
135
- {
182
+ ],
183
+ defaultVariants: {
136
184
  variant: "solid",
137
- color: "source",
138
- classNames: {
139
- root: "bg-source text-source-foreground hover:bg-source/90 focus-visible:ring-source/50"
140
- }
141
- },
142
- {
143
- variant: "outline",
144
- color: "primary",
145
- classNames: {
146
- root: "border-primary/20 text-primary-600 bg-primary/5 hover:bg-primary/10 hover:border-primary/30 focus-visible:ring-primary/40"
147
- }
148
- },
149
- {
150
- variant: "outline",
151
- color: "secondary",
152
- classNames: {
153
- root: "border-secondary/20 text-secondary-600 bg-secondary/5 hover:bg-secondary/10 hover:border-secondary/30 focus-visible:ring-secondary/40"
154
- }
155
- },
156
- {
157
- variant: "outline",
158
- color: "info",
159
- classNames: {
160
- root: "border-info/20 text-info-600 bg-info/5 hover:bg-info/10 hover:border-info/30 focus-visible:ring-info/40"
161
- }
162
- },
163
- {
164
- variant: "outline",
165
- color: "success",
166
- classNames: {
167
- root: "border-success/20 text-success-600 bg-success/5 hover:bg-success/10 hover:border-success/30 focus-visible:ring-success/40"
168
- }
169
- },
170
- {
171
- variant: "outline",
172
- color: "warning",
173
- classNames: {
174
- root: "border-warning/20 text-warning-600 bg-warning/5 hover:bg-warning/10 hover:border-warning/30 focus-visible:ring-warning/40"
175
- }
176
- },
177
- {
178
- variant: "outline",
179
- color: "error",
180
- classNames: {
181
- root: "border-error/20 text-error-600 bg-error/5 hover:bg-error/10 hover:border-error/30 focus-visible:ring-error/40"
182
- }
183
- },
184
- {
185
- variant: "outline",
186
- color: "commentary",
187
- classNames: {
188
- root: "border-commentary/20 text-commentary-600 bg-commentary/5 hover:bg-commentary/10 hover:border-commentary/30 focus-visible:ring-commentary/40"
189
- }
190
- },
191
- {
192
- variant: "outline",
193
- color: "ideation",
194
- classNames: {
195
- root: "border-ideation/20 text-ideation-600 bg-ideation/5 hover:bg-ideation/10 hover:border-ideation/30 focus-visible:ring-ideation/40"
196
- }
197
- },
198
- {
199
- variant: "outline",
200
- color: "source",
201
- classNames: {
202
- root: "border-source/20 text-source-600 bg-source/5 hover:bg-source/10 hover:border-source/30 focus-visible:ring-source/40"
203
- }
204
- },
205
- {
206
- variant: "subtle",
207
185
  color: "primary",
208
- classNames: {
209
- root: "text-primary-600 bg-primary/10 hover:bg-primary/20 focus-visible:ring-primary/40"
210
- }
211
- },
212
- {
213
- variant: "subtle",
214
- color: "secondary",
215
- classNames: {
216
- root: "text-secondary-600 bg-secondary/10 hover:bg-secondary/20 focus-visible:ring-secondary/40"
217
- }
218
- },
219
- {
220
- variant: "subtle",
221
- color: "info",
222
- classNames: {
223
- root: "text-info-600 bg-info/10 hover:bg-info/20 focus-visible:ring-info/40"
224
- }
225
- },
226
- {
227
- variant: "subtle",
228
- color: "success",
229
- classNames: {
230
- root: "text-success-600 bg-success/10 hover:bg-success/20 focus-visible:ring-success/40"
231
- }
232
- },
233
- {
234
- variant: "subtle",
235
- color: "warning",
236
- classNames: {
237
- root: "text-warning-600 bg-warning/10 hover:bg-warning/20 focus-visible:ring-warning/40"
238
- }
239
- },
240
- {
241
- variant: "subtle",
242
- color: "error",
243
- classNames: {
244
- root: "text-error-600 bg-error/10 hover:bg-error/20 focus-visible:ring-error/40"
245
- }
246
- },
247
- {
248
- variant: "subtle",
249
- color: "commentary",
250
- classNames: {
251
- root: "text-commentary-600 bg-commentary/10 hover:bg-commentary/20 focus-visible:ring-commentary/40"
252
- }
253
- },
254
- {
255
- variant: "subtle",
256
- color: "ideation",
257
- classNames: {
258
- root: "text-ideation-600 bg-ideation/10 hover:bg-ideation/20 focus-visible:ring-ideation/40"
259
- }
260
- },
261
- {
262
- variant: "subtle",
263
- color: "source",
264
- classNames: {
265
- root: "text-source-600 bg-source/10 hover:bg-source/20 focus-visible:ring-source/40"
266
- }
267
- },
268
- {
269
- variant: "ghost",
270
- color: "primary",
271
- classNames: {
272
- root: "text-primary-600 hover:bg-primary/10 focus-visible:ring-primary/40"
273
- }
274
- },
275
- {
276
- variant: "ghost",
277
- color: "secondary",
278
- classNames: {
279
- root: "text-secondary-600 hover:bg-secondary/10 focus-visible:ring-secondary/40"
280
- }
281
- },
282
- {
283
- variant: "ghost",
284
- color: "info",
285
- classNames: {
286
- root: "text-info-600 hover:bg-info/10 focus-visible:ring-info/40"
287
- }
288
- },
289
- {
290
- variant: "ghost",
291
- color: "success",
292
- classNames: {
293
- root: "text-success-600 hover:bg-success/10 focus-visible:ring-success/40"
294
- }
295
- },
296
- {
297
- variant: "ghost",
298
- color: "warning",
299
- classNames: {
300
- root: "text-warning-600 hover:bg-warning/10 focus-visible:ring-warning/40"
301
- }
302
- },
303
- {
304
- variant: "ghost",
305
- color: "error",
306
- classNames: {
307
- root: "text-error-600 hover:bg-error/10 focus-visible:ring-error/40"
308
- }
309
- },
310
- {
311
- variant: "ghost",
312
- color: "commentary",
313
- classNames: {
314
- root: "text-commentary-600 hover:bg-commentary/10 focus-visible:ring-commentary/40"
315
- }
316
- },
317
- {
318
- variant: "ghost",
319
- color: "ideation",
320
- classNames: {
321
- root: "text-ideation-600 hover:bg-ideation/10 hover:bg-ideation/20 focus-visible:ring-ideation/40"
322
- }
323
- },
324
- {
325
- variant: "ghost",
326
- color: "source",
327
- classNames: {
328
- root: "text-source-600 hover:bg-source/10 focus-visible:ring-source/40"
329
- }
330
- },
331
- {
332
- variant: "link",
333
- color: "primary",
334
- classNames: {
335
- root: "text-primary-600 hover:underline hover:decoration-primary/30"
336
- }
337
- },
338
- {
339
- variant: "link",
340
- color: "secondary",
341
- classNames: {
342
- root: "text-secondary-600 hover:underline hover:decoration-secondary/30"
343
- }
344
- },
345
- {
346
- variant: "link",
347
- color: "info",
348
- classNames: {
349
- root: "text-info-600 hover:underline hover:decoration-info/30"
350
- }
351
- },
352
- {
353
- variant: "link",
354
- color: "success",
355
- classNames: {
356
- root: "text-success-600 hover:underline hover:decoration-success/30"
357
- }
358
- },
359
- {
360
- variant: "link",
361
- color: "warning",
362
- classNames: {
363
- root: "text-warning-600 hover:underline hover:decoration-warning/30"
364
- }
365
- },
366
- {
367
- variant: "link",
368
- color: "error",
369
- classNames: {
370
- root: "text-error-600 hover:underline hover:decoration-error/30"
371
- }
372
- },
373
- {
374
- variant: "link",
375
- color: "commentary",
376
- classNames: {
377
- root: "text-commentary-600 hover:underline hover:decoration-commentary/30"
378
- }
379
- },
380
- {
381
- variant: "link",
382
- color: "ideation",
383
- classNames: {
384
- root: "text-ideation-600 hover:underline hover:decoration-ideation/30"
385
- }
386
- },
387
- {
388
- variant: "link",
389
- color: "source",
390
- classNames: {
391
- root: "text-source-600 hover:underline hover:decoration-source/30"
392
- }
393
- },
394
- {
395
- variant: "soft",
396
- color: "primary",
397
- classNames: {
398
- root: "text-primary-600 bg-primary/10 hover:bg-primary/20 focus-visible:ring-primary/40"
399
- }
400
- },
401
- {
402
- variant: "soft",
403
- color: "secondary",
404
- classNames: {
405
- root: "text-secondary-600 bg-secondary/10 hover:bg-secondary/20 focus-visible:ring-secondary/40"
406
- }
407
- },
408
- {
409
- variant: "soft",
410
- color: "info",
411
- classNames: {
412
- root: "text-info-600 bg-info/10 hover:bg-info/20 focus-visible:ring-info/40"
413
- }
414
- },
415
- {
416
- variant: "soft",
417
- color: "success",
418
- classNames: {
419
- root: "text-success-600 bg-success/10 hover:bg-success/20 focus-visible:ring-success/40"
420
- }
421
- },
422
- {
423
- variant: "soft",
424
- color: "warning",
425
- classNames: {
426
- root: "text-warning-600 bg-warning/10 hover:bg-warning/20 focus-visible:ring-warning/40"
427
- }
428
- },
429
- {
430
- variant: "soft",
431
- color: "error",
432
- classNames: {
433
- root: "text-error-600 bg-error/10 hover:bg-error/20 focus-visible:ring-error/40"
434
- }
435
- },
436
- {
437
- variant: "soft",
438
- color: "commentary",
439
- classNames: {
440
- root: "text-commentary-600 bg-commentary/10 hover:bg-commentary/20 focus-visible:ring-commentary/40"
441
- }
442
- },
443
- {
444
- variant: "soft",
445
- color: "ideation",
446
- classNames: {
447
- root: "text-ideation-600 bg-ideation/10 hover:bg-ideation/20 focus-visible:ring-ideation/40"
448
- }
449
- },
450
- {
451
- variant: "soft",
452
- color: "source",
453
- classNames: {
454
- root: "text-source-600 bg-source/10 hover:bg-source/20 focus-visible:ring-source/40"
455
- }
456
- },
457
- {
458
- square: true,
459
- size: "xs",
460
- classNames: {
461
- root: "p-1 w-7"
462
- }
463
- },
464
- {
465
- square: true,
466
- size: "sm",
467
- classNames: {
468
- root: "p-1.5 w-8"
469
- }
470
- },
471
- {
472
- square: true,
473
- size: "md",
474
- classNames: {
475
- root: "p-1.5 w-9"
476
- }
477
- },
478
- {
479
- square: true,
480
- size: "lg",
481
- classNames: {
482
- root: "p-2 w-10"
483
- }
484
- },
485
- {
486
- square: true,
487
- size: "xl",
488
- classNames: {
489
- root: "p-2 w-11"
490
- }
491
- },
492
- {
493
- loading: true,
494
- leading: true,
495
- classNames: {
496
- leadingIcon: "animate-spin"
497
- }
498
- },
499
- {
500
- loading: true,
501
- leading: false,
502
- trailing: true,
503
- classNames: {
504
- trailingIcon: "animate-spin"
505
- }
506
- },
507
- {
508
- loading: true,
509
- leading: false,
510
- trailing: false,
511
- classNames: {
512
- trailingIcon: "animate-spin"
513
- }
186
+ size: "md"
514
187
  }
515
- ],
516
- defaultVariants: {
517
- variant: "solid",
518
- color: "primary",
519
- size: "md"
520
- }
521
- })
188
+ })
189
+
190
+ export default createButtonTheme()