@infonomic/uikit 3.11.0 → 5.0.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.
Files changed (48) hide show
  1. package/dist/components/badge/badge_module.css +8 -8
  2. package/dist/components/button/button-group_module.css +2 -2
  3. package/dist/components/button/button_module.css +44 -127
  4. package/dist/components/button/copy-button_module.css +7 -7
  5. package/dist/components/card/card.js +6 -6
  6. package/dist/components/card/card.module.js +12 -6
  7. package/dist/components/card/card_module.css +10 -10
  8. package/dist/components/container/container_module.css +4 -4
  9. package/dist/components/forms/error-text_module.css +2 -6
  10. package/dist/components/forms/help-text_module.css +1 -1
  11. package/dist/components/forms/input-adornment_module.css +3 -3
  12. package/dist/components/forms/input.js +6 -6
  13. package/dist/components/forms/input.module.js +14 -7
  14. package/dist/components/forms/input_module.css +71 -32
  15. package/dist/components/forms/label_module.css +4 -12
  16. package/dist/components/forms/text-area.js +1 -1
  17. package/dist/components/forms/text-area_module.css +1 -1
  18. package/dist/components/section/section_module.css +2 -1
  19. package/dist/styles/components-vanilla.css +1 -0
  20. package/dist/styles/styles.css +1 -1
  21. package/package.json +25 -23
  22. package/src/components/badge/badge.module.css +16 -8
  23. package/src/components/button/button-group.module.css +4 -2
  24. package/src/components/button/button.module.css +136 -143
  25. package/src/components/button/copy-button.module.css +14 -7
  26. package/src/components/card/card-content.astro +1 -1
  27. package/src/components/card/card-description.astro +1 -1
  28. package/src/components/card/card-footer.astro +1 -1
  29. package/src/components/card/card-header.astro +1 -1
  30. package/src/components/card/card-title.astro +1 -1
  31. package/src/components/card/card.astro +2 -2
  32. package/src/components/card/card.module.css +20 -10
  33. package/src/components/card/card.tsx +6 -6
  34. package/src/components/container/container.module.css +8 -4
  35. package/src/components/forms/error-text.module.css +3 -13
  36. package/src/components/forms/help-text.module.css +2 -1
  37. package/src/components/forms/input-adornment.module.css +6 -3
  38. package/src/components/forms/input.astro +6 -6
  39. package/src/components/forms/input.module.css +82 -39
  40. package/src/components/forms/input.tsx +6 -6
  41. package/src/components/forms/label.module.css +6 -19
  42. package/src/components/forms/text-area.module.css +2 -1
  43. package/src/components/forms/text-area.tsx +1 -1
  44. package/src/components/section/section.module.css +3 -1
  45. package/src/styles/functional/colors.css +0 -23
  46. package/src/styles/functional/surfaces.css +4 -4
  47. package/src/styles/functional/typography.css +3 -0
  48. package/src/styles/typography/prose.css +1 -0
@@ -1,7 +1,8 @@
1
1
  @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
2
2
 
3
3
  @layer infonomic-components {
4
- .button {
4
+ .button,
5
+ :global(.button) {
5
6
  border: none;
6
7
  cursor: pointer;
7
8
  font-weight: normal;
@@ -19,104 +20,128 @@
19
20
  }
20
21
 
21
22
  .button:disabled,
22
- .button[disabled] {
23
+ .button[disabled],
24
+ :global(.button):disabled,
25
+ :global(.button)[disabled] {
23
26
  pointer-events: none;
24
27
  }
25
28
 
26
29
  .button:focus,
27
- .button:active {
30
+ .button:active,
31
+ :global(.button):focus,
32
+ :global(.button):active {
28
33
  --ring-offset-color: var(--background);
29
34
  --ring-offset-shadow: var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color);
30
35
  --ring-shadow: var(--ring-inset) 0 0 0 calc(1px + var(--ring-offset-width)) var(--ring-color);
31
36
  box-shadow: var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000);
32
37
  }
33
38
 
34
- .button.square {
39
+ .button.square,
40
+ :global(.button-square) {
35
41
  aspect-ratio: 1 / 1;
36
42
  padding: 0;
37
43
  border-radius: var(--border-radius-sm);
38
44
  }
39
45
 
40
- .button.round {
46
+ .button.round,
47
+ :global(.button-round) {
41
48
  aspect-ratio: 1 / 1;
42
49
  padding: 0;
43
50
  border-radius: var(--border-radius-full);
44
51
  }
45
52
 
46
53
  /* Sizes */
47
- .xs {
54
+ .xs,
55
+ :global(.button-xs) {
48
56
  min-height: 26px;
49
57
  font-size: 0.7rem;
50
58
  padding: 0.2rem 0.4rem;
51
59
  }
52
60
 
53
- .sm {
61
+ .sm,
62
+ :global(.button-sm) {
54
63
  min-height: 32px;
55
64
  font-size: 0.775rem;
56
65
  padding: 0.25rem 0.5rem;
57
66
  }
58
67
 
59
- .md {
68
+ .md,
69
+ :global(.button-md) {
60
70
  min-height: 38px;
61
71
  font-size: 0.95rem;
62
72
  padding: 0.625rem 1.25rem;
63
73
  }
64
74
 
65
- .lg {
75
+ .lg,
76
+ :global(.button-lg) {
66
77
  min-height: 46px;
67
78
  font-size: 1.1rem;
68
79
  padding: 0.75rem 1.5rem;
69
80
  }
70
81
 
71
- .xl {
82
+ .xl,
83
+ :global(.button-xl) {
72
84
  min-height: 54px;
73
85
  font-size: 1.2rem;
74
86
  padding: 0.75rem 1.5rem;
75
87
  }
76
88
 
77
- /* Variants */
78
- .filled {
89
+ /* Variants - Consuming Variables */
90
+ .filled,
91
+ :global(.button-filled) {
79
92
  color: var(--button-variant-filled-foreground);
80
93
  background-color: var(--button-variant-filled);
81
94
  }
82
95
 
83
- .filled:hover {
96
+ .filled:hover,
97
+ :global(.button-filled):hover {
84
98
  background-color: var(--button-variant-filled-hover);
85
99
  }
86
100
 
87
101
  .filled:focus,
88
- .filled:active {
102
+ .filled:active,
103
+ :global(.button-filled):focus,
104
+ :global(.button-filled):active {
89
105
  --ring-color: var(--button-ring-color);
90
106
  }
91
107
 
92
108
  .filled:disabled,
93
- .filled[disabled] {
109
+ .filled[disabled],
110
+ :global(.button-filled):disabled,
111
+ :global(.button-filled)[disabled] {
94
112
  background-color: var(--button-variant-filled-disabled, oklch(from var(--button-variant-filled) calc(l * 1.1) calc(c * 0.85) h));
95
113
  color: var(--button-variant-filled-foreground-disabled, oklch(from var(--button-variant-filled-foreground) calc(l * 0.9) calc(c * 0.85) h));
96
114
  }
97
115
 
98
- .outlined {
116
+ .outlined,
117
+ :global(.button-outlined) {
99
118
  border: 1px solid var(--button-variant-outlined-border);
100
119
  color: var(--button-variant-outlined-foreground);
101
120
  background-color: var(--button-variant-outlined);
102
121
  }
103
122
 
104
123
  .outlined:disabled,
105
- .outlined[disabled] {
124
+ .outlined[disabled],
125
+ :global(.button-outlined):disabled,
126
+ :global(.button-outlined)[disabled] {
106
127
  border-color: var(--button-variant-outlined-border-disabled, oklch(from var(--button-variant-outlined-border) calc(l * 1.5) calc(c * 0.8) h));
107
128
  color: var(--button-variant-outlined-foreground-disabled, oklch(from var(--button-variant-outlined-foreground) calc(l * 1.1) calc(c * 0.7) h));
108
129
  }
109
130
 
110
- .outlined:hover {
131
+ .outlined:hover,
132
+ :global(.button-outlined):hover {
111
133
  background-color: var(--button-variant-outlined-hover);
112
134
  }
113
135
 
114
136
  .outlined:focus,
115
- .outlined:active {
137
+ .outlined:active,
138
+ :global(.button-outlined):focus,
139
+ :global(.button-outlined):active {
116
140
  --ring-color: var(--button-ring-color);
117
141
  }
118
142
 
119
- .gradient {
143
+ .gradient,
144
+ :global(.button-gradient) {
120
145
  color: var(--button-variant-gradient-foreground);
121
146
  background: linear-gradient(45deg,
122
147
  var(--button-variant-gradient-start),
@@ -124,13 +149,16 @@
124
149
  }
125
150
 
126
151
  .gradient:disabled,
127
- .gradient[disabled] {
152
+ .gradient[disabled],
153
+ :global(.button-gradient):disabled,
154
+ :global(.button-gradient)[disabled] {
128
155
  background: unset;
129
156
  background-color: var(--button-variant-gradient-disabled, oklch(from var(--button-variant-gradient-end) calc(l * 1.2) calc(c * 0.85) h));
130
157
  color: var(--button-variant-gradient-foreground-disabled, oklch(from var(--button-variant-gradient-foreground) calc(l * 0.9) calc(c * 0.85) h));
131
158
  }
132
159
 
133
- .gradient:hover {
160
+ .gradient:hover,
161
+ :global(.button-gradient):hover {
134
162
  color: var(--button-variant-gradient-foreground);
135
163
  background: linear-gradient(45deg,
136
164
  var(--button-variant-gradient-start),
@@ -138,301 +166,266 @@
138
166
  }
139
167
 
140
168
  .gradient:focus,
141
- .gradient:active {
169
+ .gradient:active,
170
+ :global(.button-gradient):focus,
171
+ :global(.button-gradient):active {
142
172
  --ring-color: var(--button-ring-color);
143
173
  }
144
174
 
145
- .text {
175
+ .text,
176
+ :global(.button-text) {
146
177
  background-color: var(--button-variant-text);
147
178
  color: var(--button-variant-text-foreground);
148
179
  }
149
180
 
150
181
  .text:disabled,
151
- .text[disabled] {
182
+ .text[disabled],
183
+ :global(.button-text):disabled,
184
+ :global(.button-text)[disabled] {
152
185
  color: oklch(from var(--button-variant-text-foreground) calc(l * 1.5) calc(c * 0.5) h);
153
186
  }
154
187
 
155
- .text:hover {
188
+ .text:hover,
189
+ :global(.button-text):hover {
156
190
  background-color: var(--button-variant-text-hover);
157
191
  }
158
192
 
159
193
  .text:focus,
160
- .text:active {
194
+ .text:active,
195
+ :global(.button-text):focus,
196
+ :global(.button-text):active {
161
197
  --ring-color: var(--button-ring-color);
162
198
  }
163
199
 
164
- /* Intents */
165
- .primary {
200
+ /* Intents - Defining Variables */
201
+ .primary,
202
+ :global(.button-primary) {
166
203
  --button-ring-color: var(--ring-primary);
167
- }
168
-
169
- .primary.filled {
204
+
205
+ /* Filled */
170
206
  --button-variant-filled: var(--fill-primary-strong);
171
207
  --button-variant-filled-foreground: var(--text-on-primary);
172
208
  --button-variant-filled-hover: var(--fill-primary-strong-hover);
173
209
  --button-variant-filled-disabled: var(--fill-primary-strong-disabled);
174
210
  --button-variant-filled-foreground-disabled: var(--text-on-primary-disabled);
175
- }
176
-
177
- .primary.outlined {
211
+
212
+ /* Outlined */
178
213
  --button-variant-outlined: transparent;
179
214
  --button-variant-outlined-foreground: var(--text-primary-strong);
180
215
  --button-variant-outlined-hover: var(--fill-primary-weak);
181
216
  --button-variant-outlined-border: var(--stroke-primary);
182
217
  --button-variant-outlined-border-disabled: var(--stroke-primary-disabled);
183
218
  --button-variant-outlined-foreground-disabled: var(--text-primary-disabled);
184
- }
185
-
186
- .primary.text {
219
+
220
+ /* Text */
187
221
  --button-variant-text: transparent;
188
222
  --button-variant-text-foreground: var(--text-primary-weak);
189
223
  --button-variant-text-hover: var(--fill-primary-weak-hover);
190
- }
191
-
192
- .primary.gradient {
224
+
225
+ /* Gradient */
193
226
  --button-variant-gradient-start: var(--gradient-primary-start);
194
227
  --button-variant-gradient-end: var(--gradient-primary-end);
195
228
  --button-variant-gradient-foreground: var(--gradient-primary-foreground);
196
- --button-variant-gradient-hover: var(--gray-900);
197
229
  --button-variant-gradient-disabled: var(--gradient-primary-disabled);
198
230
  --button-variant-gradient-foreground-disabled: var(--text-on-primary-disabled);
199
231
  }
200
232
 
201
- .secondary {
233
+ .secondary,
234
+ :global(.button-secondary) {
202
235
  --button-ring-color: var(--ring-secondary);
203
- }
204
-
205
- .secondary.filled {
236
+
237
+ /* Filled */
206
238
  --button-variant-filled: var(--fill-secondary-strong);
207
239
  --button-variant-filled-foreground: var(--text-on-secondary);
208
240
  --button-variant-filled-hover: var(--fill-secondary-strong-hover);
209
241
  --button-variant-filled-disabled: var(--fill-secondary-strong-disabled);
210
242
  --button-variant-filled-foreground-disabled: var(--text-on-secondary-disabled);
211
- }
212
-
213
- .secondary.outlined {
243
+
244
+ /* Outlined */
214
245
  --button-variant-outlined: transparent;
215
246
  --button-variant-outlined-foreground: var(--text-secondary-strong);
216
247
  --button-variant-outlined-hover: var(--fill-secondary-weak);
217
248
  --button-variant-outlined-border: var(--stroke-secondary);
218
249
  --button-variant-outlined-border-disabled: var(--stroke-secondary-disabled);
219
250
  --button-variant-outlined-foreground-disabled: var(--text-secondary-disabled);
220
- }
221
-
222
- .secondary.text {
251
+
252
+ /* Text */
223
253
  --button-variant-text: transparent;
224
254
  --button-variant-text-foreground: var(--text-secondary-weak);
225
255
  --button-variant-text-hover: var(--fill-secondary-weak-hover);
226
- }
227
-
228
- .secondary.gradient {
256
+
257
+ /* Gradient */
229
258
  --button-variant-gradient-start: var(--gradient-secondary-start);
230
259
  --button-variant-gradient-end: var(--gradient-secondary-end);
231
260
  --button-variant-gradient-foreground: var(--gradient-secondary-foreground);
232
- --button-variant-gradient-hover: var(--gray-900);
233
261
  --button-variant-gradient-disabled: var(--gradient-secondary-disabled);
234
262
  --button-variant-gradient-foreground-disabled: var(--text-on-secondary-disabled);
235
263
  }
236
264
 
237
- .noeffect {
265
+ .noeffect,
266
+ :global(.button-noeffect) {
238
267
  --button-ring-color: var(--ring-noeffect);
239
- }
240
-
241
- .noeffect.filled {
268
+
269
+ /* Filled */
242
270
  --button-variant-filled: var(--fill-noeffect-strong);
243
271
  --button-variant-filled-foreground: var(--text-on-noeffect);
244
272
  --button-variant-filled-hover: var(--fill-noeffect-strong-hover);
245
273
  --button-variant-filled-disabled: var(--fill-noeffect-strong-disabled);
246
274
  --button-variant-filled-foreground-disabled: var(--text-on-noeffect-disabled);
247
- }
248
-
249
- .noeffect.outlined {
275
+
276
+ /* Outlined */
250
277
  --button-variant-outlined: transparent;
251
278
  --button-variant-outlined-foreground: var(--text-noeffect-strong);
252
279
  --button-variant-outlined-hover: var(--fill-noeffect-weak);
253
280
  --button-variant-outlined-border: var(--stroke-noeffect);
254
281
  --button-variant-outlined-border-disabled: var(--stroke-noeffect-disabled);
255
282
  --button-variant-outlined-foreground-disabled: var(--text-noeffect-disabled);
256
- }
257
-
258
- .noeffect.text {
283
+
284
+ /* Text */
259
285
  --button-variant-text: transparent;
260
286
  --button-variant-text-foreground: var(--text-noeffect-weak);
261
287
  --button-variant-text-hover: var(--fill-noeffect-weak-hover);
262
- }
263
-
264
- .noeffect.gradient {
288
+
289
+ /* Gradient */
265
290
  --button-variant-gradient-start: var(--gradient-noeffect-start);
266
291
  --button-variant-gradient-end: var(--gradient-noeffect-end);
267
292
  --button-variant-gradient-foreground: var(--gradient-noeffect-foreground);
268
- --button-variant-gradient-hover: var(--gradient-noeffect-hover);
269
293
  --button-variant-gradient-disabled: var(--gradient-noeffect-disabled);
270
294
  --button-variant-gradient-foreground-disabled: var(--text-on-noeffect-disabled);
271
295
  }
272
296
 
273
- .success {
297
+ .success,
298
+ :global(.button-success) {
274
299
  --button-ring-color: var(--ring-success);
275
- }
276
-
277
- .success.filled {
300
+
301
+ /* Filled */
278
302
  --button-variant-filled: var(--fill-success-strong);
279
303
  --button-variant-filled-foreground: var(--text-on-success);
280
304
  --button-variant-filled-hover: var(--fill-success-strong-hover);
281
305
  --button-variant-filled-disabled: var(--fill-success-strong-disabled);
282
306
  --button-variant-filled-foreground-disabled: var(--text-on-success-disabled);
283
- }
284
-
285
- .success.outlined {
307
+
308
+ /* Outlined */
286
309
  --button-variant-outlined: transparent;
287
310
  --button-variant-outlined-foreground: var(--text-success-strong);
288
311
  --button-variant-outlined-hover: var(--fill-success-weak);
289
312
  --button-variant-outlined-border: var(--stroke-success);
290
313
  --button-variant-outlined-border-disabled: var(--stroke-success-disabled);
291
314
  --button-variant-outlined-foreground-disabled: var(--text-success-disabled);
292
- }
293
-
294
- .success.text {
315
+
316
+ /* Text */
295
317
  --button-variant-text: transparent;
296
318
  --button-variant-text-foreground: var(--text-success-weak);
297
319
  --button-variant-text-hover: var(--fill-success-weak-hover);
298
- }
299
-
300
- .success.gradient {
320
+
321
+ /* Gradient */
301
322
  --button-variant-gradient-start: var(--gradient-success-start);
302
323
  --button-variant-gradient-end: var(--gradient-success-end);
303
324
  --button-variant-gradient-foreground: var(--gradient-success-foreground);
304
- --button-variant-gradient-hover: var(--gray-900);
305
325
  --button-variant-gradient-disabled: var(--gradient-success-disabled);
306
326
  --button-variant-gradient-foreground-disabled: var(--text-on-success-disabled);
307
327
  }
308
328
 
309
- .info {
329
+ .info,
330
+ :global(.button-info) {
310
331
  --button-ring-color: var(--ring-info);
311
- }
312
-
313
- .info.filled {
332
+
333
+ /* Filled */
314
334
  --button-variant-filled: var(--fill-info-strong);
315
335
  --button-variant-filled-foreground: var(--text-on-info);
316
336
  --button-variant-filled-hover: var(--fill-info-strong-hover);
317
337
  --button-variant-filled-disabled: var(--fill-info-strong-disabled);
318
338
  --button-variant-filled-foreground-disabled: var(--text-on-info-disabled);
319
- }
320
-
321
- .info.outlined {
339
+
340
+ /* Outlined */
322
341
  --button-variant-outlined: transparent;
323
342
  --button-variant-outlined-foreground: var(--text-info-strong);
324
343
  --button-variant-outlined-hover: var(--fill-info-weak);
325
344
  --button-variant-outlined-border: var(--stroke-info);
326
345
  --button-variant-outlined-border-disabled: var(--stroke-info-disabled);
327
346
  --button-variant-outlined-foreground-disabled: var(--text-info-disabled);
328
- }
329
-
330
- .info.text {
347
+
348
+ /* Text */
331
349
  --button-variant-text: transparent;
332
350
  --button-variant-text-foreground: var(--text-info-weak);
333
351
  --button-variant-text-hover: var(--fill-info-weak-hover);
334
- }
335
-
336
- .info.gradient {
352
+
353
+ /* Gradient */
337
354
  --button-variant-gradient-start: var(--gradient-info-start);
338
355
  --button-variant-gradient-end: var(--gradient-info-end);
339
356
  --button-variant-gradient-foreground: var(--gradient-info-foreground);
340
- --button-variant-gradient-hover: var(--gray-900);
341
357
  --button-variant-gradient-disabled: var(--gradient-info-disabled);
342
358
  --button-variant-gradient-foreground-disabled: var(--text-on-info-disabled);
343
359
  }
344
360
 
345
- .warning {
361
+ .warning,
362
+ :global(.button-warning) {
346
363
  --button-ring-color: var(--ring-warning);
347
- }
348
-
349
- .warning.filled {
364
+
365
+ /* Filled */
350
366
  --button-variant-filled: var(--fill-warning-strong);
351
367
  --button-variant-filled-foreground: var(--text-on-warning);
352
368
  --button-variant-filled-hover: var(--fill-warning-strong-hover);
353
369
  --button-variant-filled-disabled: var(--fill-warning-strong-disabled);
354
370
  --button-variant-filled-foreground-disabled: var(--text-on-warning-disabled);
355
- }
356
-
357
- .warning.outlined {
371
+
372
+ /* Outlined */
358
373
  --button-variant-outlined: transparent;
359
374
  --button-variant-outlined-foreground: var(--text-warning-strong);
360
375
  --button-variant-outlined-hover: var(--fill-warning-weak);
361
376
  --button-variant-outlined-border: var(--stroke-warning);
362
377
  --button-variant-outlined-border-disabled: var(--stroke-warning-disabled);
363
378
  --button-variant-outlined-foreground-disabled: var(--text-warning-disabled);
364
- }
365
-
366
- .warning.text {
379
+
380
+ /* Text */
367
381
  --button-variant-text: transparent;
368
382
  --button-variant-text-foreground: var(--text-warning-weak);
369
383
  --button-variant-text-hover: var(--fill-warning-weak-hover);
370
- }
371
-
372
- .warning.gradient {
384
+
385
+ /* Gradient */
373
386
  --button-variant-gradient-start: var(--gradient-warning-start);
374
387
  --button-variant-gradient-end: var(--gradient-warning-end);
375
388
  --button-variant-gradient-foreground: var(--gradient-warning-foreground);
376
- --button-variant-gradient-hover: var(--gray-900);
377
389
  --button-variant-gradient-disabled: var(--gradient-warning-disabled);
378
390
  --button-variant-gradient-foreground-disabled: var(--text-on-warning-disabled);
379
391
  }
380
392
 
381
- .danger {
393
+ .danger,
394
+ :global(.button-danger) {
382
395
  --button-ring-color: var(--ring-danger);
383
- }
384
-
385
- .danger.filled {
396
+
397
+ /* Filled */
386
398
  --button-variant-filled: var(--fill-danger-strong);
387
399
  --button-variant-filled-foreground: var(--text-on-danger);
388
400
  --button-variant-filled-hover: var(--fill-danger-strong-hover);
389
401
  --button-variant-filled-disabled: var(--fill-danger-strong-disabled);
390
402
  --button-variant-filled-foreground-disabled: var(--text-on-danger-disabled);
391
- }
392
-
393
- .danger.outlined {
403
+
404
+ /* Outlined */
394
405
  --button-variant-outlined: transparent;
395
406
  --button-variant-outlined-foreground: var(--text-danger-strong);
396
407
  --button-variant-outlined-hover: var(--fill-danger-weak);
397
408
  --button-variant-outlined-border: var(--stroke-danger);
398
409
  --button-variant-outlined-border-disabled: var(--stroke-danger-disabled);
399
410
  --button-variant-outlined-foreground-disabled: var(--text-danger-disabled);
400
- }
401
-
402
- .danger.text {
411
+
412
+ /* Text */
403
413
  --button-variant-text: transparent;
404
414
  --button-variant-text-foreground: var(--text-danger-weak);
405
415
  --button-variant-text-hover: var(--fill-danger-weak-hover);
406
- }
407
-
408
- .danger.gradient {
416
+
417
+ /* Gradient */
409
418
  --button-variant-gradient-start: var(--gradient-danger-start);
410
419
  --button-variant-gradient-end: var(--gradient-danger-end);
411
420
  --button-variant-gradient-foreground: var(--gradient-danger-foreground);
412
- --button-variant-gradient-hover: var(--gray-900);
413
421
  --button-variant-gradient-disabled: var(--gradient-danger-disabled);
414
422
  --button-variant-gradient-foreground-disabled: var(--text-on-danger-disabled);
415
423
  }
416
424
 
417
425
  /* Full width */
418
- .fullWidth {
426
+ .fullWidth,
427
+ :global(.button-full-width) {
419
428
  width: 100%;
420
429
  display: flex;
421
430
  }
422
-
423
- /* 🌙 Dark via `.dark` class. We rely on the
424
- * consuming application to detect a user's preferred
425
- * color scheme - either by header or cookie, and set
426
- * a root html class accordingly
427
- */
428
- :global(.dark) {
429
-
430
- .button:focus:not(:where([class~="not-dark"], [class~="not-dark"] *)),
431
- .button:active:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
432
- --ring-offset-color: var(--background);
433
- }
434
-
435
- /* ALL INTENTS - Now handled by semantic tokens in theme layer */
436
- /* No overrides needed! Tokens automatically switch in .dark and respect .not-dark */
437
- }
438
431
  }
@@ -1,46 +1,53 @@
1
1
  @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
2
2
 
3
3
  @layer infonomic-components {
4
- .copy-button-container {
4
+ .copy-button-container,
5
+ :global(.copy-button-container) {
5
6
  display: inline-block;
6
7
  }
7
8
 
8
- .copy-button svg {
9
+ .copy-button svg,
10
+ :global(.copy-button) svg {
9
11
  width: 90%;
10
12
  height: 90%;
11
13
  display: block;
12
14
  }
13
15
 
14
16
  /* Sizes */
15
- .xs {
17
+ .xs,
18
+ :global(.copy-button-xs) {
16
19
  width: 26px;
17
20
  height: 26px;
18
21
  min-height: 26px;
19
22
  padding: 0.25rem;
20
23
  }
21
24
 
22
- .sm {
25
+ .sm,
26
+ :global(.copy-button-sm) {
23
27
  width: 32px;
24
28
  height: 32px;
25
29
  min-height: 32px;
26
30
  padding: 0.35rem;
27
31
  }
28
32
 
29
- .md {
33
+ .md,
34
+ :global(.copy-button-md) {
30
35
  width: 38px;
31
36
  height: 38px;
32
37
  min-height: 38px;
33
38
  padding: 0.45rem;
34
39
  }
35
40
 
36
- .lg {
41
+ .lg,
42
+ :global(.copy-button-lg) {
37
43
  width: 46px;
38
44
  height: 46px;
39
45
  min-height: 46px;
40
46
  padding: 0.55rem;
41
47
  }
42
48
 
43
- .xl {
49
+ .xl,
50
+ :global(.copy-button-xl) {
44
51
  width: 54px;
45
52
  height: 54px;
46
53
  min-height: 54px;
@@ -9,6 +9,6 @@ import styles from './card.module.css'
9
9
  const { class: className, ...rest } = Astro.props as Props
10
10
  ---
11
11
 
12
- <div class:list={[styles.cardContent, className]} {...rest}>
12
+ <div class:list={[styles['card-content'], className]} {...rest}>
13
13
  <slot />
14
14
  </div>
@@ -9,6 +9,6 @@ import styles from './card.module.css'
9
9
  const { class: className, ...rest } = Astro.props as Props
10
10
  ---
11
11
 
12
- <div class:list={[styles.cardDescription, className]} {...rest}>
12
+ <div class:list={[styles['card-description'], className]} {...rest}>
13
13
  <slot />
14
14
  </div>
@@ -9,6 +9,6 @@ import styles from './card.module.css'
9
9
  const { class: className, ...rest } = Astro.props as Props
10
10
  ---
11
11
 
12
- <div class:list={[styles.cardFooter, className]} {...rest}>
12
+ <div class:list={[styles['card-footer'], className]} {...rest}>
13
13
  <slot />
14
14
  </div>
@@ -9,6 +9,6 @@ import styles from './card.module.css'
9
9
  const { class: className, ...rest } = Astro.props as Props
10
10
  ---
11
11
 
12
- <div class:list={[styles.cardHeader, className]} {...rest}>
12
+ <div class:list={[styles['card-header'], className]} {...rest}>
13
13
  <slot />
14
14
  </div>
@@ -9,6 +9,6 @@ import styles from './card.module.css'
9
9
  const { class: className, ...rest } = Astro.props as Props
10
10
  ---
11
11
 
12
- <div class:list={[styles.cardTitle, className]} {...rest}>
12
+ <div class:list={[styles['card-title'], className]} {...rest}>
13
13
  <slot />
14
14
  </div>
@@ -28,13 +28,13 @@ const componentType = href != null ? 'a' : as
28
28
  <a
29
29
  href={href}
30
30
  target={target}
31
- class:list={[styles.card, { [styles.cardHover]: hover }, className]}
31
+ class:list={[styles.card, { [styles['card-hover']]: hover }, className]}
32
32
  {...rest}
33
33
  >
34
34
  <slot />
35
35
  </a>
36
36
  ) : (
37
- <div class:list={[styles.card, { [styles.cardHover]: hover }, className]} {...rest}>
37
+ <div class:list={[styles.card, { [styles['card-hover']]: hover }, className]} {...rest}>
38
38
  <slot />
39
39
  </div>
40
40
  )