@assure-one/design-system 1.32.0 → 1.34.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.
- package/README.md +44 -13
- package/codemods/README.md +146 -14
- package/codemods/lib/forms.mjs +253 -0
- package/codemods/lib/jsx-edit.mjs +59 -0
- package/codemods/lib/jsx.mjs +0 -0
- package/codemods/lib/ledger.mjs +18 -6
- package/codemods/lib/registry.mjs +4 -0
- package/codemods/lib/report.mjs +1 -0
- package/codemods/lib/runner.mjs +23 -4
- package/codemods/transforms/cm-02-button-explicit-size.mjs +96 -0
- package/codemods/transforms/cm-12-button-type-submit.mjs +115 -0
- package/codemods/transforms/cm-14-hidden-mirrors.mjs +275 -0
- package/codemods/transforms/cm-20-select-sentinels.mjs +442 -0
- package/dist/css/components.css +7 -0
- package/dist/css/legacy-aliases.css +180 -4
- package/dist/css/shadcn.css +4 -4
- package/dist/css/tailwind.css +66 -3
- package/dist/css/tokens.css +205 -14
- package/dist/index.d.ts +754 -53
- package/dist/index.js +3653 -3484
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/system-BDU18fVg.d.ts +559 -0
- package/dist/testing/index.cjs +12 -5
- package/dist/testing/index.js +12 -5
- package/dist/tokens/index.d.ts +50 -439
- package/dist/tokens/index.js +513 -6
- package/dist/tokens/index.js.map +1 -1
- package/package.json +5 -2
package/dist/css/tailwind.css
CHANGED
|
@@ -172,6 +172,70 @@
|
|
|
172
172
|
--animate-accordion-up: var(--ds-animate-accordion-up);
|
|
173
173
|
--animate-collapsible-down: var(--ds-animate-collapsible-down);
|
|
174
174
|
--animate-collapsible-up: var(--ds-animate-collapsible-up);
|
|
175
|
+
--text-display: var(--ds-text-display);
|
|
176
|
+
--text-display--line-height: var(--ds-text-display--line-height);
|
|
177
|
+
--text-display--letter-spacing: var(--ds-text-display--letter-spacing);
|
|
178
|
+
--text-display--font-weight: var(--ds-text-display--font-weight);
|
|
179
|
+
--text-title-page: var(--ds-text-title-page);
|
|
180
|
+
--text-title-page--line-height: var(--ds-text-title-page--line-height);
|
|
181
|
+
--text-title-page--letter-spacing: var(--ds-text-title-page--letter-spacing);
|
|
182
|
+
--text-title-page--font-weight: var(--ds-text-title-page--font-weight);
|
|
183
|
+
--text-title-section: var(--ds-text-title-section);
|
|
184
|
+
--text-title-section--line-height: var(--ds-text-title-section--line-height);
|
|
185
|
+
--text-title-section--letter-spacing: var(--ds-text-title-section--letter-spacing);
|
|
186
|
+
--text-title-section--font-weight: var(--ds-text-title-section--font-weight);
|
|
187
|
+
--text-title-sub: var(--ds-text-title-sub);
|
|
188
|
+
--text-title-sub--line-height: var(--ds-text-title-sub--line-height);
|
|
189
|
+
--text-title-sub--letter-spacing: var(--ds-text-title-sub--letter-spacing);
|
|
190
|
+
--text-title-sub--font-weight: var(--ds-text-title-sub--font-weight);
|
|
191
|
+
--text-body: var(--ds-text-body);
|
|
192
|
+
--text-body--line-height: var(--ds-text-body--line-height);
|
|
193
|
+
--text-body--letter-spacing: var(--ds-text-body--letter-spacing);
|
|
194
|
+
--text-body--font-weight: var(--ds-text-body--font-weight);
|
|
195
|
+
--text-body-sm: var(--ds-text-body-sm);
|
|
196
|
+
--text-body-sm--line-height: var(--ds-text-body-sm--line-height);
|
|
197
|
+
--text-body-sm--letter-spacing: var(--ds-text-body-sm--letter-spacing);
|
|
198
|
+
--text-body-sm--font-weight: var(--ds-text-body-sm--font-weight);
|
|
199
|
+
--text-label: var(--ds-text-label);
|
|
200
|
+
--text-label--line-height: var(--ds-text-label--line-height);
|
|
201
|
+
--text-label--letter-spacing: var(--ds-text-label--letter-spacing);
|
|
202
|
+
--text-label--font-weight: var(--ds-text-label--font-weight);
|
|
203
|
+
--text-helper: var(--ds-text-helper);
|
|
204
|
+
--text-helper--line-height: var(--ds-text-helper--line-height);
|
|
205
|
+
--text-helper--letter-spacing: var(--ds-text-helper--letter-spacing);
|
|
206
|
+
--text-helper--font-weight: var(--ds-text-helper--font-weight);
|
|
207
|
+
--text-caption: var(--ds-text-caption);
|
|
208
|
+
--text-caption--line-height: var(--ds-text-caption--line-height);
|
|
209
|
+
--text-caption--letter-spacing: var(--ds-text-caption--letter-spacing);
|
|
210
|
+
--text-caption--font-weight: var(--ds-text-caption--font-weight);
|
|
211
|
+
--text-micro: var(--ds-text-micro);
|
|
212
|
+
--text-micro--line-height: var(--ds-text-micro--line-height);
|
|
213
|
+
--text-micro--letter-spacing: var(--ds-text-micro--letter-spacing);
|
|
214
|
+
--text-micro--font-weight: var(--ds-text-micro--font-weight);
|
|
215
|
+
--text-overline: var(--ds-text-overline);
|
|
216
|
+
--text-overline--line-height: var(--ds-text-overline--line-height);
|
|
217
|
+
--text-overline--letter-spacing: var(--ds-text-overline--letter-spacing);
|
|
218
|
+
--text-overline--font-weight: var(--ds-text-overline--font-weight);
|
|
219
|
+
--text-code: var(--ds-text-code);
|
|
220
|
+
--text-code--line-height: var(--ds-text-code--line-height);
|
|
221
|
+
--text-code--letter-spacing: var(--ds-text-code--letter-spacing);
|
|
222
|
+
--text-code--font-weight: var(--ds-text-code--font-weight);
|
|
223
|
+
--radius-ref-xs: var(--ds-ref-radius-xs);
|
|
224
|
+
--radius-ref-sm: var(--ds-ref-radius-sm);
|
|
225
|
+
--radius-ref-md: var(--ds-ref-radius-md);
|
|
226
|
+
--radius-ref-lg: var(--ds-ref-radius-lg);
|
|
227
|
+
--radius-ref-xl: var(--ds-ref-radius-xl);
|
|
228
|
+
--radius-control: var(--ds-radius-control);
|
|
229
|
+
--radius-surface: var(--ds-radius-surface);
|
|
230
|
+
--radius-surface-sm: var(--ds-radius-surface-sm);
|
|
231
|
+
--radius-badge: var(--ds-radius-badge);
|
|
232
|
+
--shadow-flat: var(--ds-elevation-flat);
|
|
233
|
+
--shadow-raised: var(--ds-elevation-raised);
|
|
234
|
+
--shadow-floating: var(--ds-elevation-floating);
|
|
235
|
+
--shadow-overlay: var(--ds-elevation-overlay);
|
|
236
|
+
--color-fg-on-warning: var(--ds-color-feedback-warning-solid-fg);
|
|
237
|
+
--color-fg-on-info: var(--ds-color-feedback-info-solid-fg);
|
|
238
|
+
--shadow-focus-ring-field: var(--ds-shadow-focus-ring-field);
|
|
175
239
|
|
|
176
240
|
/* The namespaced role names of target architecture §9. */
|
|
177
241
|
--color-canvas: var(--ds-color-canvas);
|
|
@@ -226,8 +290,7 @@
|
|
|
226
290
|
--color-feedback-danger-fg-active: var(--ds-color-feedback-danger-fg-active);
|
|
227
291
|
--color-feedback-danger-bg: var(--ds-color-feedback-danger-bg);
|
|
228
292
|
--color-feedback-danger-border: var(--ds-color-feedback-danger-border);
|
|
229
|
-
--radius-control: var(--ds-radius-control);
|
|
230
293
|
--radius-chip: var(--ds-radius-chip);
|
|
231
|
-
--
|
|
232
|
-
--
|
|
294
|
+
--color-feedback-warning-solid-fg: var(--ds-color-feedback-warning-solid-fg);
|
|
295
|
+
--color-feedback-info-solid-fg: var(--ds-color-feedback-info-solid-fg);
|
|
233
296
|
}
|
package/dist/css/tokens.css
CHANGED
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
--ds-color-priority-medium: #7642d6;
|
|
146
146
|
--ds-color-priority-high: #d9820a;
|
|
147
147
|
--ds-color-priority-urgent: var(--ds-color-feedback-danger-fg);
|
|
148
|
-
--ds-focus-ring-color: var(--ds-
|
|
148
|
+
--ds-focus-ring-color: color-mix(in srgb, var(--ds-color-action-brand-bg) 24%, transparent);
|
|
149
149
|
--ds-focus-ring-border: var(--ds-ref-brand-pro-fg);
|
|
150
150
|
--ds-color-chart-1: #4f37c2;
|
|
151
151
|
--ds-color-chart-2: #6549e5;
|
|
@@ -160,10 +160,10 @@
|
|
|
160
160
|
--ds-color-service-audit-bg: var(--ds-ref-brand-audit-bg);
|
|
161
161
|
--ds-color-service-accounting: var(--ds-ref-brand-books-fg);
|
|
162
162
|
--ds-color-service-accounting-bg: var(--ds-ref-brand-books-bg);
|
|
163
|
-
--ds-shadow-focus-ring: 0 0 0 2px var(--ds-focus-ring-
|
|
164
|
-
--ds-shadow-quiet: 0 1px 2px rgba(
|
|
165
|
-
--ds-shadow-card: 0
|
|
166
|
-
--ds-shadow-pop: 0
|
|
163
|
+
--ds-shadow-focus-ring: 0 0 0 2px var(--ds-color-surface), 0 0 0 4px var(--ds-focus-ring-border);
|
|
164
|
+
--ds-shadow-quiet: 0 1px 2px rgba(16, 20, 36, 0.05);
|
|
165
|
+
--ds-shadow-card: 0 1px 2px rgba(16, 20, 36, 0.04), 0 4px 12px -4px rgba(16, 20, 36, 0.08);
|
|
166
|
+
--ds-shadow-pop: 0 0 0 1px rgba(16, 20, 36, 0.03), 0 2px 4px -1px rgba(16, 20, 36, 0.06), 0 12px 28px -6px rgba(16, 20, 36, 0.14);
|
|
167
167
|
--ds-ref-shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
|
|
168
168
|
--ds-ref-shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.06), 0 1px 2px rgba(10, 10, 10, 0.04);
|
|
169
169
|
--ds-ref-shadow-md: 0 4px 8px -2px rgba(10, 10, 10, 0.08), 0 2px 4px -2px rgba(10, 10, 10, 0.05);
|
|
@@ -215,8 +215,8 @@
|
|
|
215
215
|
--ds-z-popover: 400;
|
|
216
216
|
--ds-z-toast: 500;
|
|
217
217
|
--ds-z-tooltip: 600;
|
|
218
|
-
--ds-compat-color-destructive-foreground:
|
|
219
|
-
--ds-compat-color-success-foreground:
|
|
218
|
+
--ds-compat-color-destructive-foreground: var(--ds-color-feedback-danger-solid-fg);
|
|
219
|
+
--ds-compat-color-success-foreground: var(--ds-color-feedback-success-solid-fg);
|
|
220
220
|
--ds-color-feedback-info-fg: var(--ds-color-action-accent-bg-strong);
|
|
221
221
|
--ds-compat-color-brand-soft: #f4f0fe;
|
|
222
222
|
--ds-compat-color-brand-soft-foreground: #4925c9;
|
|
@@ -227,6 +227,156 @@
|
|
|
227
227
|
--ds-compat-radius-md: 5px;
|
|
228
228
|
--ds-compat-radius-lg: 8px;
|
|
229
229
|
--ds-compat-radius-xl: 12px;
|
|
230
|
+
--ds-text-display: clamp(28px, 3.4vw, 38px);
|
|
231
|
+
--ds-text-display--line-height: 1.06;
|
|
232
|
+
--ds-text-display--letter-spacing: -0.028em;
|
|
233
|
+
--ds-text-display--font-weight: 500;
|
|
234
|
+
--ds-text-title-page: 26px;
|
|
235
|
+
--ds-text-title-page--line-height: 1.25;
|
|
236
|
+
--ds-text-title-page--letter-spacing: -0.025em;
|
|
237
|
+
--ds-text-title-page--font-weight: 500;
|
|
238
|
+
--ds-text-title-section: 16px;
|
|
239
|
+
--ds-text-title-section--line-height: 1.25;
|
|
240
|
+
--ds-text-title-section--letter-spacing: -0.022em;
|
|
241
|
+
--ds-text-title-section--font-weight: 500;
|
|
242
|
+
--ds-text-title-sub: 13px;
|
|
243
|
+
--ds-text-title-sub--line-height: 1.3;
|
|
244
|
+
--ds-text-title-sub--letter-spacing: -0.022em;
|
|
245
|
+
--ds-text-title-sub--font-weight: 500;
|
|
246
|
+
--ds-text-body: 14px;
|
|
247
|
+
--ds-text-body--line-height: 1.55;
|
|
248
|
+
--ds-text-body--letter-spacing: 0em;
|
|
249
|
+
--ds-text-body--font-weight: 400;
|
|
250
|
+
--ds-text-body-sm: 13px;
|
|
251
|
+
--ds-text-body-sm--line-height: 1.55;
|
|
252
|
+
--ds-text-body-sm--letter-spacing: 0em;
|
|
253
|
+
--ds-text-body-sm--font-weight: 400;
|
|
254
|
+
--ds-text-label: 13px;
|
|
255
|
+
--ds-text-label--line-height: 1;
|
|
256
|
+
--ds-text-label--letter-spacing: 0em;
|
|
257
|
+
--ds-text-label--font-weight: 500;
|
|
258
|
+
--ds-text-helper: 12px;
|
|
259
|
+
--ds-text-helper--line-height: 1.25;
|
|
260
|
+
--ds-text-helper--letter-spacing: 0em;
|
|
261
|
+
--ds-text-helper--font-weight: 400;
|
|
262
|
+
--ds-text-caption: 11px;
|
|
263
|
+
--ds-text-caption--line-height: 1.55;
|
|
264
|
+
--ds-text-caption--letter-spacing: 0em;
|
|
265
|
+
--ds-text-caption--font-weight: 400;
|
|
266
|
+
--ds-text-micro: 10px;
|
|
267
|
+
--ds-text-micro--line-height: 1.55;
|
|
268
|
+
--ds-text-micro--letter-spacing: 0em;
|
|
269
|
+
--ds-text-micro--font-weight: 500;
|
|
270
|
+
--ds-text-overline: 11px;
|
|
271
|
+
--ds-text-overline--line-height: 1.55;
|
|
272
|
+
--ds-text-overline--letter-spacing: 0.14em;
|
|
273
|
+
--ds-text-overline--font-weight: 400;
|
|
274
|
+
--ds-text-code: 11px;
|
|
275
|
+
--ds-text-code--line-height: 1.55;
|
|
276
|
+
--ds-text-code--letter-spacing: 0em;
|
|
277
|
+
--ds-text-code--font-weight: 400;
|
|
278
|
+
--ds-ref-space-0: 0px;
|
|
279
|
+
--ds-ref-space-0-5: 2px;
|
|
280
|
+
--ds-ref-space-1: 4px;
|
|
281
|
+
--ds-ref-space-1-5: 6px;
|
|
282
|
+
--ds-ref-space-2: 8px;
|
|
283
|
+
--ds-ref-space-2-5: 10px;
|
|
284
|
+
--ds-ref-space-3: 12px;
|
|
285
|
+
--ds-ref-space-4: 16px;
|
|
286
|
+
--ds-ref-space-5: 20px;
|
|
287
|
+
--ds-ref-space-6: 24px;
|
|
288
|
+
--ds-ref-space-8: 32px;
|
|
289
|
+
--ds-ref-space-10: 40px;
|
|
290
|
+
--ds-ref-space-12: 48px;
|
|
291
|
+
--ds-ref-space-16: 64px;
|
|
292
|
+
--ds-ref-space-20: 80px;
|
|
293
|
+
--ds-ref-space-24: 96px;
|
|
294
|
+
--ds-surface-padding-sm: var(--ds-ref-space-4);
|
|
295
|
+
--ds-surface-padding-md: var(--ds-ref-space-5);
|
|
296
|
+
--ds-surface-padding-lg: var(--ds-ref-space-6);
|
|
297
|
+
--ds-stack-gap-xs: var(--ds-ref-space-1);
|
|
298
|
+
--ds-stack-gap-sm: var(--ds-ref-space-1-5);
|
|
299
|
+
--ds-stack-gap-md: var(--ds-ref-space-2);
|
|
300
|
+
--ds-stack-gap-lg: var(--ds-ref-space-3);
|
|
301
|
+
--ds-stack-gap-xl: var(--ds-ref-space-4);
|
|
302
|
+
--ds-layout-section-gap: var(--ds-ref-space-4);
|
|
303
|
+
--ds-layout-page-gap: var(--ds-ref-space-6);
|
|
304
|
+
--ds-icon-size-xs: 12px;
|
|
305
|
+
--ds-icon-size-sm: 14px;
|
|
306
|
+
--ds-icon-size-md: 16px;
|
|
307
|
+
--ds-icon-size-lg: 20px;
|
|
308
|
+
--ds-ref-breakpoint-sm: 40rem;
|
|
309
|
+
--ds-ref-breakpoint-md: 48rem;
|
|
310
|
+
--ds-ref-breakpoint-lg: 64rem;
|
|
311
|
+
--ds-ref-breakpoint-xl: 80rem;
|
|
312
|
+
--ds-ref-breakpoint-2xl: 96rem;
|
|
313
|
+
--ds-ref-radius-xs: 4px;
|
|
314
|
+
--ds-ref-radius-sm: 5px;
|
|
315
|
+
--ds-ref-radius-md: 7px;
|
|
316
|
+
--ds-ref-radius-lg: 8px;
|
|
317
|
+
--ds-ref-radius-xl: 12px;
|
|
318
|
+
--ds-radius-surface-sm: var(--ds-ref-radius-lg);
|
|
319
|
+
--ds-elevation-flat: var(--ds-shadow-quiet);
|
|
320
|
+
--ds-elevation-raised: var(--ds-shadow-card);
|
|
321
|
+
--ds-elevation-floating: var(--ds-shadow-pop);
|
|
322
|
+
--ds-elevation-overlay: 0 2px 6px -2px rgba(16, 20, 36, 0.08), 0 28px 64px -16px rgba(16, 20, 36, 0.28);
|
|
323
|
+
--ds-motion-duration-overlay-exit: var(--ds-ref-duration-fast);
|
|
324
|
+
--ds-motion-presence-name: initial;
|
|
325
|
+
--ds-control-height-xs: 28px;
|
|
326
|
+
--ds-control-height-sm: 32px;
|
|
327
|
+
--ds-control-height-md: 36px;
|
|
328
|
+
--ds-control-height-lg: 40px;
|
|
329
|
+
--ds-control-height-xl: 48px;
|
|
330
|
+
--ds-control-padding-x-xs: 8px;
|
|
331
|
+
--ds-control-padding-x-sm: 12px;
|
|
332
|
+
--ds-control-padding-x-md: 12px;
|
|
333
|
+
--ds-control-padding-x-lg: 16px;
|
|
334
|
+
--ds-control-padding-x-xl: 24px;
|
|
335
|
+
--ds-control-gap-xs: 4px;
|
|
336
|
+
--ds-control-gap-sm: 6px;
|
|
337
|
+
--ds-control-gap-md: 8px;
|
|
338
|
+
--ds-control-gap-lg: 8px;
|
|
339
|
+
--ds-control-gap-xl: 8px;
|
|
340
|
+
--ds-control-font-size-xs: 12px;
|
|
341
|
+
--ds-control-font-size-sm: 13px;
|
|
342
|
+
--ds-control-font-size-md: 13px;
|
|
343
|
+
--ds-control-font-size-lg: 14px;
|
|
344
|
+
--ds-control-font-size-xl: 16px;
|
|
345
|
+
--ds-control-icon-xs: 14px;
|
|
346
|
+
--ds-control-icon-sm: 14px;
|
|
347
|
+
--ds-control-icon-md: 16px;
|
|
348
|
+
--ds-control-icon-lg: 16px;
|
|
349
|
+
--ds-control-icon-xl: 20px;
|
|
350
|
+
--ds-button-height-sm: 32px;
|
|
351
|
+
--ds-button-height-md: 40px;
|
|
352
|
+
--ds-button-height-lg: 48px;
|
|
353
|
+
--ds-button-height-icon-xs: 24px;
|
|
354
|
+
--ds-button-height-icon-sm: 28px;
|
|
355
|
+
--ds-button-height-icon: 40px;
|
|
356
|
+
--ds-input-height-sm: 32px;
|
|
357
|
+
--ds-input-height-md: 36px;
|
|
358
|
+
--ds-input-height-lg: 44px;
|
|
359
|
+
--ds-search-input-height-sm: 32px;
|
|
360
|
+
--ds-search-input-height-md: 36px;
|
|
361
|
+
--ds-search-input-height-lg: 44px;
|
|
362
|
+
--ds-textarea-min-height-sm: 64px;
|
|
363
|
+
--ds-textarea-min-height-md: 80px;
|
|
364
|
+
--ds-textarea-min-height-lg: 96px;
|
|
365
|
+
--ds-multi-filter-pill-height-sm: 32px;
|
|
366
|
+
--ds-multi-filter-pill-height-md: 36px;
|
|
367
|
+
--ds-multi-filter-pill-height-lg: 40px;
|
|
368
|
+
--ds-filter-chip-height-sm: 32px;
|
|
369
|
+
--ds-filter-chip-height-md: 36px;
|
|
370
|
+
--ds-filter-chip-height-lg: 40px;
|
|
371
|
+
--ds-select-height: 36px;
|
|
372
|
+
--ds-search-select-height: 36px;
|
|
373
|
+
--ds-date-picker-height: 36px;
|
|
374
|
+
--ds-date-range-picker-height: 36px;
|
|
375
|
+
--ds-phone-country-input-height: 36px;
|
|
376
|
+
--ds-pagination-height: 28px;
|
|
377
|
+
--ds-color-feedback-warning-solid-fg: #ffffff;
|
|
378
|
+
--ds-color-feedback-info-solid-fg: #ffffff;
|
|
379
|
+
--ds-shadow-focus-ring-field: 0 0 0 3px var(--ds-focus-ring-color);
|
|
230
380
|
}
|
|
231
381
|
|
|
232
382
|
[data-ds-scheme="dark"],
|
|
@@ -335,15 +485,19 @@
|
|
|
335
485
|
--ds-color-service-audit-bg: var(--ds-ref-brand-audit-bg);
|
|
336
486
|
--ds-color-service-accounting: var(--ds-ref-brand-books-fg);
|
|
337
487
|
--ds-color-service-accounting-bg: var(--ds-ref-brand-books-bg);
|
|
338
|
-
--ds-shadow-quiet: 0 1px 2px rgba(0, 0, 0, 0.
|
|
339
|
-
--ds-shadow-card: 0
|
|
340
|
-
--ds-shadow-pop: 0
|
|
488
|
+
--ds-shadow-quiet: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
|
489
|
+
--ds-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 16px -6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
|
490
|
+
--ds-shadow-pop: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.5), 0 14px 32px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
|
341
491
|
--ds-ref-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
|
|
342
492
|
--ds-ref-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
343
493
|
--ds-ref-shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.55), 0 2px 4px -2px rgba(0, 0, 0, 0.45);
|
|
344
494
|
--ds-ref-shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.6), 0 4px 8px -4px rgba(0, 0, 0, 0.5);
|
|
345
495
|
--ds-ref-shadow-xl: 0 20px 40px -12px rgba(0, 0, 0, 0.65), 0 8px 16px -8px rgba(0, 0, 0, 0.5);
|
|
346
496
|
--ds-ref-shadow-2xl: 0 32px 64px -16px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.55);
|
|
497
|
+
--ds-focus-ring-color: color-mix(in srgb, var(--ds-color-action-brand-bg) 40%, transparent);
|
|
498
|
+
--ds-color-feedback-warning-solid-fg: #0a0a0b;
|
|
499
|
+
--ds-color-feedback-info-solid-fg: #0a0a0b;
|
|
500
|
+
--ds-elevation-overlay: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 64px -16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
|
347
501
|
}
|
|
348
502
|
|
|
349
503
|
[data-ds-brand="pro"],
|
|
@@ -365,7 +519,6 @@
|
|
|
365
519
|
--ds-color-action-accent-subtle-bg: var(--ds-ref-brand-pro-bg);
|
|
366
520
|
--ds-color-action-accent-ring: var(--ds-ref-brand-pro-ring);
|
|
367
521
|
--ds-color-action-accent-fg: var(--ds-ref-brand-pro-on-fg);
|
|
368
|
-
--ds-focus-ring-color: var(--ds-ref-brand-pro-ring);
|
|
369
522
|
--ds-focus-ring-border: var(--ds-ref-brand-pro-fg);
|
|
370
523
|
}
|
|
371
524
|
|
|
@@ -388,7 +541,6 @@
|
|
|
388
541
|
--ds-color-action-accent-subtle-bg: var(--ds-ref-brand-audit-bg);
|
|
389
542
|
--ds-color-action-accent-ring: var(--ds-ref-brand-audit-ring);
|
|
390
543
|
--ds-color-action-accent-fg: var(--ds-ref-brand-audit-on-fg);
|
|
391
|
-
--ds-focus-ring-color: var(--ds-ref-brand-audit-ring);
|
|
392
544
|
--ds-focus-ring-border: var(--ds-ref-brand-audit-fg);
|
|
393
545
|
}
|
|
394
546
|
|
|
@@ -411,7 +563,6 @@
|
|
|
411
563
|
--ds-color-action-accent-subtle-bg: var(--ds-ref-brand-books-bg);
|
|
412
564
|
--ds-color-action-accent-ring: var(--ds-ref-brand-books-ring);
|
|
413
565
|
--ds-color-action-accent-fg: var(--ds-ref-brand-books-on-fg);
|
|
414
|
-
--ds-focus-ring-color: var(--ds-ref-brand-books-ring);
|
|
415
566
|
--ds-focus-ring-border: var(--ds-ref-brand-books-fg);
|
|
416
567
|
}
|
|
417
568
|
|
|
@@ -434,6 +585,46 @@
|
|
|
434
585
|
--ds-color-action-accent-subtle-bg: var(--ds-ref-brand-tax-bg);
|
|
435
586
|
--ds-color-action-accent-ring: var(--ds-ref-brand-tax-ring);
|
|
436
587
|
--ds-color-action-accent-fg: var(--ds-ref-brand-tax-on-fg);
|
|
437
|
-
--ds-focus-ring-color: var(--ds-ref-brand-tax-ring);
|
|
438
588
|
--ds-focus-ring-border: var(--ds-ref-brand-tax-fg);
|
|
439
589
|
}
|
|
590
|
+
|
|
591
|
+
[data-ds-density="compact"] {
|
|
592
|
+
--ds-control-height-sm: 28px;
|
|
593
|
+
--ds-control-height-md: 32px;
|
|
594
|
+
--ds-control-height-lg: 36px;
|
|
595
|
+
--ds-control-height-xl: 40px;
|
|
596
|
+
--ds-control-padding-x-sm: 8px;
|
|
597
|
+
--ds-control-padding-x-md: 12px;
|
|
598
|
+
--ds-control-padding-x-lg: 12px;
|
|
599
|
+
--ds-control-padding-x-xl: 16px;
|
|
600
|
+
--ds-control-gap-sm: 4px;
|
|
601
|
+
--ds-control-gap-md: 6px;
|
|
602
|
+
--ds-control-gap-lg: 8px;
|
|
603
|
+
--ds-control-gap-xl: 8px;
|
|
604
|
+
--ds-control-font-size-sm: 12px;
|
|
605
|
+
--ds-control-font-size-md: 13px;
|
|
606
|
+
--ds-control-font-size-lg: 13px;
|
|
607
|
+
--ds-control-font-size-xl: 14px;
|
|
608
|
+
--ds-control-icon-sm: 14px;
|
|
609
|
+
--ds-control-icon-md: 14px;
|
|
610
|
+
--ds-control-icon-lg: 16px;
|
|
611
|
+
--ds-control-icon-xl: 16px;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* Reduced motion, once, at the token level (target architecture §20 rule 4).
|
|
615
|
+
* The durations collapse; presence does not become short, it becomes
|
|
616
|
+
* `none` — ADR-012 decision 4, because a 0.01ms animation still fires
|
|
617
|
+
* animationstart/animationend and delays a Radix unmount by 22–48 ms.
|
|
618
|
+
* This block is part of the namespaced mode only; dist/styles.css keeps
|
|
619
|
+
* the global prefers-reduced-motion rule it ships today. */
|
|
620
|
+
@media (prefers-reduced-motion: reduce) {
|
|
621
|
+
:root {
|
|
622
|
+
--ds-motion-duration-press: 0ms;
|
|
623
|
+
--ds-motion-duration-feedback: 0ms;
|
|
624
|
+
--ds-motion-duration-overlay: 0ms;
|
|
625
|
+
--ds-motion-duration-spatial: 0ms;
|
|
626
|
+
--ds-motion-duration-deliberate: 0ms;
|
|
627
|
+
--ds-motion-duration-overlay-exit: 0ms;
|
|
628
|
+
--ds-motion-presence-name: none;
|
|
629
|
+
}
|
|
630
|
+
}
|