@robuust-digital/vue-components 1.1.0-rc.0 → 1.2.0

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.
@@ -6,416 +6,276 @@
6
6
  export default (theme) => {
7
7
  const customColors = theme('components.button.custom') || {};
8
8
  const customColorStyles = Object.keys(customColors).reduce((acc, colorName) => {
9
- acc[`&.button-custom-${colorName}`] = {
9
+ acc[`&.rvc-button-custom-${colorName}`] = {
10
10
  ...customColors[colorName],
11
- '&:hover': {
12
- ...customColors[colorName].hover,
13
- },
14
-
15
- '&:disabled': {
16
- ...customColors[colorName].disabled,
17
- },
18
-
19
- '.button-icon': {
20
- ...customColors[colorName].icon,
21
- },
22
11
  };
23
12
  return acc;
24
13
  }, {});
25
14
 
26
15
  return {
27
- '.button': {
16
+ ':root': {
17
+ // Custom properties
18
+ '--rvc-button-height': theme('height.9'),
19
+ '--rvc-button-border-width': theme('borderWidth.DEFAULT'),
20
+ '--rvc-button-padding-x': theme('padding.3'),
21
+ '--rvc-button-gap': theme('gap[1.5]'),
22
+ '--rvc-button-border-radius': theme('borderRadius.md'),
23
+ '--rvc-button-font-weight': theme('fontWeight.semibold'),
24
+ '--rvc-button-font-size': theme('fontSize.base.0'),
25
+ '--rvc-button-transition-property': theme('transitionProperty.colors'),
26
+ '--rvc-button-transition-duration': theme('transitionDuration.DEFAULT'),
27
+ '--rvc-button-transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
28
+ '--rvc-button-icon-size': theme('width.5'),
29
+ '--rvc-button-icon-loading-size': theme('width.4'),
30
+ '--rvc-button-icon-loading-animation': theme('animation.spin'),
31
+ '--rvc-button-box-shadow': 'none',
32
+
33
+ // Default color variables
34
+ '--rvc-button-bg-color': '#d9ff00',
35
+ '--rvc-button-color': '#000',
36
+ '--rvc-button-bg-color-hover': '#caf400',
37
+ '--rvc-button-color-hover': '#000',
38
+ '--rvc-button-border-color': theme('colors.transparent'),
39
+ '--rvc-button-border-color-hover': theme('colors.transparent'),
40
+ '--rvc-button-icon-color': theme('colors.slate.500'),
41
+ '--rvc-button-icon-color-hover': theme('colors.slate.950'),
42
+ },
43
+
44
+ '.rvc-button': {
45
+ height: 'var(--rvc-button-height)',
46
+ borderWidth: 'var(--rvc-button-border-width)',
47
+ borderColor: 'var(--rvc-button-border-color)',
48
+ transitionProperty: 'var(--rvc-button-transition-property)',
49
+ transitionDuration: 'var(--rvc-button-transition-duration)',
50
+ transitionTimingFunction: 'var(--rvc-button-transition-timing-function)',
51
+ paddingRight: 'var(--rvc-button-padding-x)',
52
+ paddingLeft: 'var(--rvc-button-padding-x)',
53
+ gap: 'var(--rvc-button-gap)',
54
+ borderRadius: 'var(--rvc-button-border-radius)',
55
+ fontWeight: 'var(--rvc-button-font-weight)',
56
+ fontSize: 'var(--rvc-button-font-size)',
57
+ backgroundColor: 'var(--rvc-button-bg-color)',
58
+ color: 'var(--rvc-button-color)',
59
+ boxShadow: 'var(--rvc-button-box-shadow)',
28
60
  appearance: 'none',
29
- cursor: theme('cursor.pointer'),
61
+ cursor: 'pointer',
30
62
  display: 'inline-flex',
31
63
  alignItems: 'center',
32
64
  justifyContent: 'center',
33
65
  textAlign: 'center',
34
- height: theme('height.fit'),
35
- borderWidth: theme('borderWidth.DEFAULT'),
36
66
  borderStyle: 'solid',
37
- borderColor: theme('colors.transparent'),
38
67
  position: 'relative',
39
- paddingTop: theme('padding.2'),
40
- paddingRight: theme('padding.4'),
41
- paddingBottom: theme('padding.2'),
42
- paddingLeft: theme('padding.4'),
43
- gap: theme('gap.2'),
44
- borderRadius: theme('borderRadius.xl'),
45
- fontWeight: theme('fontWeight.medium'),
46
- fontSize: theme('fontSize.base.0'),
47
68
  whiteSpace: 'nowrap',
48
- transitionProperty: theme('transitionProperty.colors'),
49
- transitionDuration: theme('transitionDuration.300'),
50
- transitionTimingFunction: theme('transitionTimingFunction.DEFAULT'),
51
69
  ...theme('components.button'),
52
70
 
71
+ // Hover state
72
+ '&:hover': {
73
+ backgroundColor: 'var(--rvc-button-bg-color-hover)',
74
+ color: 'var(--rvc-button-color-hover)',
75
+ borderColor: 'var(--rvc-button-border-color-hover)',
76
+
77
+ '.rvc-button-icon': {
78
+ color: 'var(--rvc-button-icon-color-hover)',
79
+ },
80
+ },
81
+
53
82
  // Disabled state
54
83
  '&:disabled': {
55
84
  pointerEvents: 'none',
56
85
  opacity: theme('opacity.50'),
57
- ...theme('components.button.disabled'),
58
86
  },
59
87
 
60
88
  // Icon styling
61
- '.button-icon': {
89
+ '.rvc-button-icon': {
90
+ width: 'var(--rvc-button-icon-size)',
91
+ height: 'var(--rvc-button-icon-size)',
92
+ color: 'var(--rvc-button-icon-color)',
93
+ transitionProperty: 'var(--rvc-button-transition-property)',
94
+ transitionDuration: 'var(--rvc-button-transition-duration)',
95
+ transitionTimingFunction: 'var(--rvc-button-transition-timing-function)',
62
96
  display: 'block',
63
- width: theme('width.5'),
64
- height: theme('height.5'),
65
- flexShrink: theme('flexShrink.0'),
66
- ...theme('components.button.icon'),
97
+ flexShrink: '0',
67
98
 
68
- '&.button-icon-loading': {
69
- animation: theme('animation.spin'),
70
- ...theme('components.button.icon.loading'),
99
+ '&.rvc-button-icon-loading': {
100
+ width: 'var(--rvc-button-icon-loading-size)',
101
+ height: 'var(--rvc-button-icon-loading-size)',
102
+ animation: 'var(--rvc-button-icon-loading-animation)',
71
103
  },
72
104
  },
73
105
 
106
+ // Icon-only styling
107
+ '&.rvc-button-icon-only': {
108
+ padding: 0,
109
+ aspectRatio: '1 / 1',
110
+ },
111
+
74
112
  // Reverse icon
75
- '&.button-reverse': {
113
+ '&.rvc-button-reverse': {
76
114
  flexDirection: 'row-reverse',
77
115
  },
78
116
 
79
117
  // Color variants
80
- '&.button-primary': {
81
- backgroundColor: theme('colors.lime.400'),
82
- color: theme('colors.black'),
118
+ '&.rvc-button-primary': {
83
119
  ...theme('components.button.primary'),
84
-
85
- '&:hover': {
86
- backgroundColor: theme('colors.lime.600'),
87
- color: theme('colors.black'),
88
- ...theme('components.button.primary.hover'),
89
- },
90
-
91
- '&:disabled': {
92
- ...theme('components.button.primary.disabled'),
93
- },
94
-
95
- '.button-icon': {
96
- ...theme('components.button.primary.icon'),
97
- },
98
120
  },
99
- '&.button-primary-soft': {
100
- backgroundColor: theme('colors.lime.200'),
101
- color: theme('colors.lime.600'),
102
- ...theme('components.button.primary-soft'),
103
121
 
104
- '&:hover': {
105
- backgroundColor: theme('colors.lime.300'),
106
- color: theme('colors.700'),
107
- ...theme('components.button.primary-soft.hover'),
108
- },
109
-
110
- '&:disabled': {
111
- ...theme('components.button.primary-soft.disabled'),
112
- },
113
-
114
- '.button-icon': {
115
- ...theme('components.button.primary-soft.icon'),
116
- },
117
- },
118
- '&.button-secondary': {
119
- backgroundColor: theme('colors.indigo.400'),
120
- color: theme('colors.white'),
122
+ '&.rvc-button-secondary': {
123
+ '--rvc-button-bg-color': '#4f46e5',
124
+ '--rvc-button-color': '#fff',
125
+ '--rvc-button-bg-color-hover': '#6366f1',
126
+ '--rvc-button-color-hover': '#fff',
127
+ '--rvc-button-icon-color': theme('colors.slate.300'),
128
+ '--rvc-button-icon-color-hover': '#fff',
121
129
  ...theme('components.button.secondary'),
122
-
123
- '&:hover': {
124
- backgroundColor: theme('colors.indigo.600'),
125
- color: theme('colors.white'),
126
- ...theme('components.button.secondary.hover'),
127
- },
128
-
129
- '&:disabled': {
130
- ...theme('components.button.secondary.disabled'),
131
- },
132
-
133
- '.button-icon': {
134
- ...theme('components.button.secondary.icon'),
135
- },
136
130
  },
137
- '&.button-secondary-soft': {
138
- backgroundColor: theme('colors.indigo.200'),
139
- color: theme('colors.indigo.600'),
140
- ...theme('components.button.secondary-soft'),
141
131
 
142
- '&:hover': {
143
- backgroundColor: theme('colors.indigo.300'),
144
- color: theme('colors.700'),
145
- ...theme('components.button.secondary-soft.hover'),
146
- },
147
-
148
- '&:disabled': {
149
- ...theme('components.button.secondary-soft.disabled'),
150
- },
151
-
152
- '.button-icon': {
153
- ...theme('components.button.secondary-soft.icon'),
154
- },
155
- },
156
- '&.button-tertiary': {
157
- backgroundColor: theme('colors.orange.400'),
158
- color: theme('colors.black'),
132
+ '&.rvc-button-tertiary': {
133
+ '--rvc-button-bg-color': '#475569',
134
+ '--rvc-button-color': '#fff',
135
+ '--rvc-button-bg-color-hover': '#64748b',
136
+ '--rvc-button-color-hover': '#fff',
137
+ '--rvc-button-icon-color': theme('colors.slate.300'),
138
+ '--rvc-button-icon-color-hover': '#fff',
159
139
  ...theme('components.button.tertiary'),
160
-
161
- '&:hover': {
162
- backgroundColor: theme('colors.orange.600'),
163
- color: theme('colors.black'),
164
- ...theme('components.button.tertiary.hover'),
165
- },
166
-
167
- '&:disabled': {
168
- ...theme('components.button.tertiary.disabled'),
169
- },
170
-
171
- '.button-icon': {
172
- ...theme('components.button.tertiary.icon'),
173
- },
174
140
  },
175
- '&.button-tertiary-soft': {
176
- backgroundColor: theme('colors.orange.200'),
177
- color: theme('colors.orange.600'),
178
- ...theme('components.button.tertiary-soft'),
179
-
180
- '&:hover': {
181
- backgroundColor: theme('colors.orange.300'),
182
- color: theme('colors.700'),
183
- ...theme('components.button.tertiary-soft.hover'),
184
- },
185
141
 
186
- '&:disabled': {
187
- ...theme('components.button.tertiary-soft.disabled'),
188
- },
189
-
190
- '.button-icon': {
191
- ...theme('components.button.tertiary-soft.icon'),
192
- },
193
- },
194
- '&.button-light': {
195
- backgroundColor: theme('colors.white'),
196
- color: theme('colors.stone.800'),
197
- borderColor: theme('colors.stone.300'),
142
+ '&.rvc-button-light': {
143
+ '--rvc-button-bg-color': theme('colors.white'),
144
+ '--rvc-button-color': theme('colors.black'),
145
+ '--rvc-button-bg-color-hover': theme('colors.slate.50'),
146
+ '--rvc-button-color-hover': theme('colors.black'),
147
+ '--rvc-button-border-color': theme('colors.slate.200'),
148
+ '--rvc-button-border-color-hover': theme('colors.slate.200'),
198
149
  ...theme('components.button.light'),
199
-
200
- '&:hover': {
201
- backgroundColor: theme('colors.stone.100'),
202
- color: theme('colors.stone.900'),
203
- ...theme('components.button.light.hover'),
204
- },
205
-
206
- '&:disabled': {
207
- ...theme('components.button.light.disabled'),
208
- },
209
-
210
- '.button-icon': {
211
- ...theme('components.button.light.icon'),
212
- },
213
150
  },
214
- '&.button-dark': {
215
- backgroundColor: theme('colors.black'),
216
- color: theme('colors.white'),
217
- ...theme('components.button.dark'),
218
-
219
- '&:hover': {
220
- backgroundColor: theme('colors.stone.800'),
221
- color: theme('colors.white'),
222
- ...theme('components.button.dark.hover'),
223
- },
224
151
 
225
- '&:disabled': {
226
- ...theme('components.button.dark.disabled'),
227
- },
228
-
229
- '.button-icon': {
230
- ...theme('components.button.dark.icon'),
231
- },
152
+ '&.rvc-button-dark': {
153
+ '--rvc-button-bg-color': theme('colors.slate.950'),
154
+ '--rvc-button-color': theme('colors.white'),
155
+ '--rvc-button-bg-color-hover': theme('colors.slate.800'),
156
+ '--rvc-button-color-hover': theme('colors.white'),
157
+ '--rvc-button-icon-color': theme('colors.slate.300'),
158
+ '--rvc-button-icon-color-hover': theme('colors.white'),
159
+ ...theme('components.button.dark'),
232
160
  },
233
- '&.button-danger': {
234
- backgroundColor: theme('colors.red.600'),
235
- color: theme('colors.white'),
236
- ...theme('components.button.danger'),
237
-
238
- '&:hover': {
239
- backgroundColor: theme('colors.red.700'),
240
- color: theme('colors.white'),
241
- ...theme('components.button.danger.hover'),
242
- },
243
161
 
244
- '&:disabled': {
245
- ...theme('components.button.danger.disabled'),
246
- },
247
-
248
- '.button-icon': {
249
- ...theme('components.button.danger.icon'),
250
- },
162
+ '&.rvc-button-red': {
163
+ '--rvc-button-bg-color': theme('colors.red.600'),
164
+ '--rvc-button-color': theme('colors.white'),
165
+ '--rvc-button-bg-color-hover': theme('colors.red.500'),
166
+ '--rvc-button-color-hover': theme('colors.white'),
167
+ '--rvc-button-icon-color': theme('colors.slate.300'),
168
+ '--rvc-button-icon-color-hover': theme('colors.white'),
169
+ ...theme('components.button.red'),
251
170
  },
252
- '&.button-danger-soft': {
253
- backgroundColor: theme('colors.red.200'),
254
- color: theme('colors.red.600'),
255
- ...theme('components.button.danger-soft'),
256
-
257
- '&:hover': {
258
- backgroundColor: theme('colors.red.300'),
259
- color: theme('colors.700'),
260
- ...theme('components.button.danger-soft.hover'),
261
- },
262
-
263
- '&:disabled': {
264
- ...theme('components.button.danger-soft.disabled'),
265
- },
266
171
 
267
- '.button-icon': {
268
- ...theme('components.button.danger-soft.icon'),
269
- },
172
+ '&.rvc-button-red-soft': {
173
+ '--rvc-button-bg-color': theme('colors.red.50'),
174
+ '--rvc-button-color': theme('colors.red.700'),
175
+ '--rvc-button-bg-color-hover': theme('colors.red.200'),
176
+ '--rvc-button-color-hover': theme('colors.red.700'),
177
+ '--rvc-button-border-color': theme('colors.red.200'),
178
+ '--rvc-button-border-color-hover': theme('colors.red.200'),
179
+ '--rvc-button-icon-color': theme('colors.red.500'),
180
+ '--rvc-button-icon-color-hover': theme('colors.red.700'),
181
+ ...theme('components.button.red-soft'),
270
182
  },
271
- '&.button-warning': {
272
- backgroundColor: theme('colors.yellow.400'),
273
- color: theme('colors.black'),
274
- ...theme('components.button.warning'),
275
-
276
- '&:hover': {
277
- backgroundColor: theme('colors.yellow.300'),
278
- color: theme('colors.black'),
279
- ...theme('components.button.warning.hover'),
280
- },
281
183
 
282
- '&:disabled': {
283
- ...theme('components.button.warning.disabled'),
284
- },
285
-
286
- '.button-icon': {
287
- ...theme('components.button.warning.icon'),
288
- },
184
+ '&.rvc-button-yellow': {
185
+ '--rvc-button-bg-color': theme('colors.yellow.300'),
186
+ '--rvc-button-color': theme('colors.slate.950'),
187
+ '--rvc-button-bg-color-hover': theme('colors.yellow.400'),
188
+ '--rvc-button-color-hover': theme('colors.slate.950'),
189
+ ...theme('components.button.yellow'),
289
190
  },
290
- '&.button-warning-soft': {
291
- backgroundColor: theme('colors.yellow.200'),
292
- color: theme('colors.yellow.600'),
293
- ...theme('components.button.warning-soft'),
294
191
 
295
- '&:hover': {
296
- backgroundColor: theme('colors.yellow.300'),
297
- color: theme('colors.700'),
298
- ...theme('components.button.warning-soft.hover'),
299
- },
300
-
301
- '&:disabled': {
302
- ...theme('components.button.warning-soft.disabled'),
303
- },
304
-
305
- '.button-icon': {
306
- ...theme('components.button.warning-soft.icon'),
307
- },
192
+ '&.rvc-button-yellow-soft': {
193
+ '--rvc-button-bg-color': theme('colors.yellow.50'),
194
+ '--rvc-button-color': theme('colors.yellow.700'),
195
+ '--rvc-button-bg-color-hover': theme('colors.yellow.200'),
196
+ '--rvc-button-color-hover': theme('colors.yellow.700'),
197
+ '--rvc-button-border-color': theme('colors.yellow.200'),
198
+ '--rvc-button-border-color-hover': theme('colors.yellow.200'),
199
+ '--rvc-button-icon-color': theme('colors.yellow.500'),
200
+ '--rvc-button-icon-color-hover': theme('colors.yellow.700'),
201
+ ...theme('components.button.yellow-soft'),
308
202
  },
309
- '&.button-success': {
310
- backgroundColor: theme('colors.green.500'),
311
- color: theme('colors.white'),
312
- ...theme('components.button.success'),
313
203
 
314
- '&:hover': {
315
- backgroundColor: theme('colors.green.700'),
316
- color: theme('colors.white'),
317
- ...theme('components.button.success.hover'),
318
- },
319
-
320
- '&:disabled': {
321
- ...theme('components.button.success.disabled'),
322
- },
323
-
324
- '.button-icon': {
325
- ...theme('components.button.success.icon'),
326
- },
204
+ '&.rvc-button-green': {
205
+ '--rvc-button-bg-color': theme('colors.green.600'),
206
+ '--rvc-button-color': theme('colors.white'),
207
+ '--rvc-button-bg-color-hover': theme('colors.green.500'),
208
+ '--rvc-button-color-hover': theme('colors.white'),
209
+ '--rvc-button-icon-color': theme('colors.slate.300'),
210
+ '--rvc-button-icon-color-hover': theme('colors.white'),
211
+ ...theme('components.button.green'),
327
212
  },
328
- '&.button-success-soft': {
329
- backgroundColor: theme('colors.green.200'),
330
- color: theme('colors.green.600'),
331
- ...theme('components.button.success-soft'),
332
213
 
333
- '&:hover': {
334
- backgroundColor: theme('colors.green.300'),
335
- color: theme('colors.700'),
336
- ...theme('components.button.success-soft.hover'),
337
- },
214
+ '&.rvc-button-green-soft': {
215
+ '--rvc-button-bg-color': theme('colors.green.50'),
216
+ '--rvc-button-color': theme('colors.green.700'),
217
+ '--rvc-button-bg-color-hover': theme('colors.green.200'),
218
+ '--rvc-button-color-hover': theme('colors.green.700'),
219
+ '--rvc-button-border-color': theme('colors.green.200'),
220
+ '--rvc-button-border-color-hover': theme('colors.green.200'),
221
+ '--rvc-button-icon-color': theme('colors.green.500'),
222
+ '--rvc-button-icon-color-hover': theme('colors.green.700'),
223
+ ...theme('components.button.green-soft'),
224
+ },
338
225
 
339
- '&:disabled': {
340
- ...theme('components.button.success-soft.disabled'),
341
- },
226
+ '&.rvc-button-blue': {
227
+ '--rvc-button-bg-color': theme('colors.blue.600'),
228
+ '--rvc-button-color': theme('colors.white'),
229
+ '--rvc-button-bg-color-hover': theme('colors.blue.500'),
230
+ '--rvc-button-color-hover': theme('colors.white'),
231
+ '--rvc-button-icon-color': theme('colors.slate.300'),
232
+ '--rvc-button-icon-color-hover': theme('colors.white'),
233
+ ...theme('components.button.blue'),
234
+ },
342
235
 
343
- '.button-icon': {
344
- ...theme('components.button.success-soft.icon'),
345
- },
236
+ '&.rvc-button-blue-soft': {
237
+ '--rvc-button-bg-color': theme('colors.blue.50'),
238
+ '--rvc-button-color': theme('colors.blue.700'),
239
+ '--rvc-button-bg-color-hover': theme('colors.blue.200'),
240
+ '--rvc-button-color-hover': theme('colors.blue.700'),
241
+ '--rvc-button-border-color': theme('colors.blue.200'),
242
+ '--rvc-button-border-color-hover': theme('colors.blue.200'),
243
+ '--rvc-button-icon-color': theme('colors.blue.500'),
244
+ '--rvc-button-icon-color-hover': theme('colors.blue.700'),
245
+ ...theme('components.button.blue-soft'),
346
246
  },
347
- '&.button-clear': {
348
- backgroundColor: theme('colors.transparent'),
349
- paddingLeft: theme('padding.0'),
350
- paddingRight: theme('padding.0'),
351
- color: theme('colors.stone.600'),
247
+
248
+ '&.rvc-button-clear': {
249
+ '--rvc-button-bg-color': theme('colors.transparent'),
250
+ '--rvc-button-color': theme('colors.indigo.600'),
251
+ '--rvc-button-bg-color-hover': theme('colors.transparent'),
252
+ '--rvc-button-color-hover': theme('colors.indigo.700'),
253
+ '--rvc-button-icon-color': theme('colors.indigo.600'),
254
+ '--rvc-button-icon-color-hover': theme('colors.indigo.700'),
255
+
256
+ paddingLeft: '0',
257
+ paddingRight: '0',
258
+ boxShadow: 'none',
352
259
  ...theme('components.button.clear'),
353
260
 
354
261
  '&:hover': {
355
- color: theme('colors.stone.800'),
356
- ...theme('components.button.clear.hover'),
357
- },
358
-
359
- '&:disabled': {
360
- ...theme('components.button.clear.disabled'),
361
- },
362
-
363
- '.button-icon': {
364
- ...theme('components.button.clear.icon'),
262
+ textDecoration: 'underline',
365
263
  },
366
264
  },
265
+
367
266
  ...customColorStyles,
368
267
 
369
268
  // Size variants
370
- '&.button-xs': {
371
- paddingTop: theme('padding.1'),
372
- paddingRight: theme('padding.2'),
373
- paddingBottom: theme('padding.1'),
374
- paddingLeft: theme('padding.2'),
375
- gap: theme('gap[1.5]'),
376
- borderRadius: theme('borderRadius.md'),
377
- fontWeight: theme('fontWeight.medium'),
378
- fontSize: theme('fontSize.xs.0'),
379
- ...theme('components.button.xs'),
380
-
381
- '.button-icon': {
382
- width: theme('width.3'),
383
- height: theme('height.3'),
384
- ...theme('components.button.xs.icon'),
385
- },
386
- },
387
- '&.button-sm': {
388
- paddingTop: theme('padding[1.5]'),
389
- paddingRight: theme('padding.3'),
390
- paddingBottom: theme('padding[1.5]'),
391
- paddingLeft: theme('padding.3'),
392
- gap: theme('gap.2'),
393
- borderRadius: theme('borderRadius.lg'),
394
- fontWeight: theme('fontWeight.medium'),
395
- fontSize: theme('fontSize.sm.0'),
269
+ '&.rvc-button-sm': {
270
+ '--rvc-button-height': '1.875rem',
271
+ '--rvc-button-padding-x': theme('padding[2.5]'),
272
+ '--rvc-button-font-size': theme('fontSize.sm.0'),
273
+ '--rvc-button-icon-size': theme('width.4'),
274
+ '--rvc-button-icon-loading-size': theme('width.3'),
396
275
  ...theme('components.button.sm'),
397
276
 
398
- '.button-icon': {
399
- width: theme('width.4'),
400
- height: theme('height.4'),
401
- ...theme('components.button.sm.icon'),
402
- },
403
- },
404
- '&.button-lg': {
405
- paddingTop: theme('padding[2.5]'),
406
- paddingRight: theme('padding.6'),
407
- paddingBottom: theme('padding[2.5]'),
408
- paddingLeft: theme('padding.6'),
409
- gap: theme('gap.4'),
410
- borderRadius: theme('borderRadius.2xl'),
411
- fontWeight: theme('fontWeight.medium'),
412
- fontSize: theme('fontSize.lg.0'),
413
- ...theme('components.button.lg'),
414
-
415
- '.button-icon': {
416
- width: theme('width.6'),
417
- height: theme('height.6'),
418
- ...theme('components.button.lg.icon'),
277
+ '&.rvc-button-icon-only': {
278
+ padding: 0,
419
279
  },
420
280
  },
421
281
  },