@vokality/design-system 5.1.1 → 6.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.
- package/CHANGELOG.md +13 -0
- package/README.md +22 -1
- package/dist/appearance.d.ts +6 -0
- package/dist/appearance.js +1 -0
- package/dist/chat.d.ts +3 -1
- package/dist/components/Accordion/Accordion.d.ts +9 -6
- package/dist/components/Accordion/Accordion.js +4 -8
- package/dist/components/AppShell/AppShell.js +1 -1
- package/dist/components/Badge/Badge.d.ts +5 -1
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Button/Button.d.ts +11 -10
- package/dist/components/Button/Button.js +6 -14
- package/dist/components/ChatPanel/transcript.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/Combobox/Combobox.d.ts +3 -0
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/ListPanel.d.ts +3 -1
- package/dist/components/Combobox/ListPanel.js +2 -2
- package/dist/components/Container/Container.d.ts +7 -4
- package/dist/components/Container/Container.js +3 -4
- package/dist/components/DatePicker/DatePicker.d.ts +3 -0
- package/dist/components/DatePicker/DatePicker.js +3 -3
- package/dist/components/Dialog/Dialog.d.ts +2 -4
- package/dist/components/Dialog/Dialog.js +2 -3
- package/dist/components/Grid/Grid.d.ts +3 -3
- package/dist/components/Heading/Heading.d.ts +14 -9
- package/dist/components/Heading/Heading.js +6 -5
- package/dist/components/IconButton/IconButton.d.ts +7 -7
- package/dist/components/IconButton/IconButton.js +2 -10
- package/dist/components/Inline/Inline.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +6 -1
- package/dist/components/Input/Input.js +3 -3
- package/dist/components/Link/Link.d.ts +18 -3
- package/dist/components/Link/Link.js +7 -7
- package/dist/components/Menu/Menu.d.ts +27 -8
- package/dist/components/Menu/Menu.js +6 -11
- package/dist/components/MultiSelect/MultiSelect.d.ts +3 -0
- package/dist/components/MultiSelect/MultiSelect.js +3 -3
- package/dist/components/OtpInput/OtpInput.d.ts +16 -15
- package/dist/components/OtpInput/OtpInput.js +10 -8
- package/dist/components/PageHeader/PageHeader.d.ts +2 -2
- package/dist/components/PageHeader/PageHeader.js +2 -2
- package/dist/components/Popover/Popover.d.ts +16 -7
- package/dist/components/Popover/Popover.js +4 -3
- package/dist/components/Progress/Progress.d.ts +10 -10
- package/dist/components/Progress/Progress.js +8 -12
- package/dist/components/Prose/Prose.d.ts +4 -3
- package/dist/components/Prose/Prose.js +2 -2
- package/dist/components/Radio/Radio.d.ts +3 -3
- package/dist/components/Radio/Radio.js +4 -3
- package/dist/components/RadioGroup/RadioGroup.d.ts +7 -2
- package/dist/components/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/SearchInput/SearchInput.d.ts +6 -1
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +8 -8
- package/dist/components/SegmentedControl/SegmentedControl.js +4 -3
- package/dist/components/Select/Select.d.ts +4 -9
- package/dist/components/Select/Select.js +2 -7
- package/dist/components/Slider/Slider.d.ts +26 -19
- package/dist/components/Slider/Slider.js +20 -25
- package/dist/components/Sparkline/Sparkline.d.ts +2 -2
- package/dist/components/Sparkline/Sparkline.js +3 -3
- package/dist/components/Stack/Stack.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +11 -9
- package/dist/components/Tabs/Tabs.js +5 -5
- package/dist/components/Text/Text.d.ts +12 -5
- package/dist/components/Text/Text.js +3 -3
- package/dist/components/Textarea/Textarea.d.ts +2 -0
- package/dist/components/Textarea/Textarea.js +3 -3
- package/dist/components/TimePicker/TimePicker.d.ts +2 -0
- package/dist/components/TimePicker/TimePicker.js +5 -5
- package/dist/components/Tooltip/Tooltip.d.ts +11 -6
- package/dist/components/Tooltip/Tooltip.js +5 -3
- package/dist/components.css +274 -130
- package/dist/internal/choice.d.ts +7 -2
- package/dist/internal/choice.js +4 -4
- package/dist/lib/space.d.ts +2 -1
- package/dist/lib/space.js +2 -6
- package/dist/tokens.css +2 -0
- package/dist/tokens.dtcg.json +10 -0
- package/dist/tokens.json +10 -0
- package/dist/types.d.ts +4 -3
- package/dist/typography.d.ts +8 -0
- package/dist/typography.js +34 -0
- package/dist/vokality.css +276 -130
- package/dist/vokality.iife.js +1945 -1863
- package/docs/brand.md +6 -2
- package/docs/components/Accordion/README.md +5 -2
- package/docs/components/Badge/README.md +2 -2
- package/docs/components/Button/README.md +15 -11
- package/docs/components/Checkbox/README.md +4 -0
- package/docs/components/Combobox/README.md +6 -0
- package/docs/components/Container/README.md +2 -1
- package/docs/components/DatePicker/README.md +6 -0
- package/docs/components/Dialog/README.md +2 -2
- package/docs/components/Grid/README.md +2 -1
- package/docs/components/Heading/README.md +4 -2
- package/docs/components/IconButton/README.md +7 -3
- package/docs/components/Inline/README.md +3 -3
- package/docs/components/Input/README.md +6 -0
- package/docs/components/Link/README.md +3 -1
- package/docs/components/Menu/README.md +7 -1
- package/docs/components/MultiSelect/README.md +8 -0
- package/docs/components/NumberInput/README.md +6 -0
- package/docs/components/OtpInput/README.md +10 -2
- package/docs/components/PageHeader/README.md +1 -1
- package/docs/components/PasswordInput/README.md +6 -0
- package/docs/components/Popover/README.md +6 -2
- package/docs/components/Progress/README.md +2 -2
- package/docs/components/Prose/README.md +1 -1
- package/docs/components/Radio/README.md +4 -0
- package/docs/components/RadioGroup/README.md +4 -0
- package/docs/components/SearchInput/README.md +6 -0
- package/docs/components/SegmentedControl/README.md +4 -1
- package/docs/components/Select/README.md +8 -3
- package/docs/components/Slider/README.md +13 -3
- package/docs/components/Sparkline/README.md +1 -1
- package/docs/components/Stack/README.md +1 -1
- package/docs/components/Switch/README.md +4 -0
- package/docs/components/Tabs/README.md +3 -1
- package/docs/components/Text/README.md +6 -3
- package/docs/components/Textarea/README.md +4 -0
- package/docs/components/ThemeProvider/README.md +1 -1
- package/docs/components/TimePicker/README.md +6 -0
- package/docs/components/Tooltip/README.md +4 -3
- package/package.json +9 -1
- package/skills/vokality-design-system/SKILL.md +1 -1
package/dist/vokality.css
CHANGED
|
@@ -270,6 +270,8 @@
|
|
|
270
270
|
--topbar-height: 56px;
|
|
271
271
|
--control-height: 44px;
|
|
272
272
|
--control-height-xs: 24px;
|
|
273
|
+
--control-height-sm: 32px;
|
|
274
|
+
--control-height-md: 44px;
|
|
273
275
|
--control-font-size: 1rem;
|
|
274
276
|
--control-padding-block: 0.6rem;
|
|
275
277
|
--button-height: 40px;
|
|
@@ -378,7 +380,7 @@ body {
|
|
|
378
380
|
/* Icon */
|
|
379
381
|
.vk-icon { display: block; flex-shrink: 0; }
|
|
380
382
|
|
|
381
|
-
/*
|
|
383
|
+
/* Native action button; appearance is shared through data-vk-color and data-vk-variant. */
|
|
382
384
|
.vk-btn {
|
|
383
385
|
display: inline-flex;
|
|
384
386
|
align-items: stretch;
|
|
@@ -393,6 +395,7 @@ body {
|
|
|
393
395
|
letter-spacing: 0.14em;
|
|
394
396
|
text-transform: uppercase;
|
|
395
397
|
line-height: 1.25;
|
|
398
|
+
border: 1px solid transparent;
|
|
396
399
|
border-radius: var(--radius, 0);
|
|
397
400
|
text-decoration: none;
|
|
398
401
|
cursor: pointer;
|
|
@@ -401,82 +404,40 @@ body {
|
|
|
401
404
|
color var(--motion-normal) var(--ease-standard);
|
|
402
405
|
}
|
|
403
406
|
.vk-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
|
|
404
|
-
.vk-btn-primary {
|
|
405
|
-
font-weight: 700;
|
|
406
|
-
color: var(--primary-foreground);
|
|
407
|
-
background: var(--primary);
|
|
408
|
-
border: 1px solid var(--primary);
|
|
409
|
-
}
|
|
410
|
-
.vk-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
|
|
411
|
-
.vk-btn-outline {
|
|
412
|
-
font-weight: 600;
|
|
413
|
-
color: var(--foreground);
|
|
414
|
-
background: transparent;
|
|
415
|
-
border: 1px solid var(--primary);
|
|
416
|
-
}
|
|
417
|
-
.vk-btn-outline:hover { background: var(--primary-tint); border-color: var(--primary-hover); }
|
|
418
|
-
.vk-btn-ghost {
|
|
419
|
-
font-weight: 600;
|
|
420
|
-
color: var(--foreground);
|
|
421
|
-
background: transparent;
|
|
422
|
-
border: 1px solid transparent;
|
|
423
|
-
}
|
|
424
|
-
.vk-btn-ghost:hover { background: var(--primary-tint); }
|
|
425
|
-
.vk-btn-sm { min-height: var(--button-height-sm, 32px); font-size: 0.6875rem; }
|
|
426
|
-
.vk-btn-sm .vk-btn-label { padding: 0.4rem 0.75rem 0.4rem 0.85rem; }
|
|
427
|
-
.vk-btn-sm .vk-btn-label:only-child { padding-right: 0.85rem; }
|
|
428
|
-
.vk-btn-sm .vk-btn-glyph { width: 1.85rem; }
|
|
429
407
|
.vk-btn-label { display: inline-flex; align-items: center; padding: 0.65rem 1.1rem 0.65rem 1.25rem; }
|
|
430
408
|
.vk-btn-label:only-child { padding-right: 1.25rem; }
|
|
431
|
-
.vk-btn-glyph {
|
|
432
|
-
|
|
433
|
-
align-items: center;
|
|
434
|
-
justify-content: center;
|
|
435
|
-
align-self: stretch;
|
|
436
|
-
width: 2.25rem;
|
|
437
|
-
flex-shrink: 0;
|
|
438
|
-
}
|
|
439
|
-
.vk-btn-outline .vk-btn-glyph { color: var(--primary); }
|
|
440
|
-
.vk-btn-outline:hover .vk-btn-glyph { color: var(--primary-hover); }
|
|
441
|
-
@media (max-width: 40rem) {
|
|
442
|
-
.vk-btn { width: 100%; justify-content: space-between; }
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
/* A named record can be an action without adopting an uppercase action label. */
|
|
446
|
-
.vk-btn-text {
|
|
409
|
+
.vk-btn-glyph { display: flex; align-items: center; justify-content: center; align-self: stretch; width: 2.25rem; flex-shrink: 0; }
|
|
410
|
+
.vk-btn[data-vk-variant="text"] {
|
|
447
411
|
width: auto;
|
|
448
|
-
min-height: var(--button-height-sm);
|
|
412
|
+
min-height: var(--button-height-sm, 32px);
|
|
449
413
|
justify-content: flex-start;
|
|
450
414
|
font-size: var(--text-sm);
|
|
451
415
|
font-weight: 500;
|
|
452
416
|
letter-spacing: normal;
|
|
453
417
|
text-transform: none;
|
|
454
418
|
text-align: left;
|
|
455
|
-
color: var(--foreground);
|
|
456
|
-
background: transparent;
|
|
457
|
-
border: 1px solid transparent;
|
|
458
419
|
}
|
|
459
|
-
.vk-btn-
|
|
460
|
-
|
|
461
|
-
.vk-btn-text .vk-btn-glyph { width: auto; padding-left: var(--space-xs); }
|
|
462
|
-
.vk-btn-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
color: var(--muted-subtle);
|
|
470
|
-
background: transparent;
|
|
471
|
-
text-decoration: none;
|
|
420
|
+
.vk-btn[data-vk-variant="text"] .vk-btn-label,
|
|
421
|
+
.vk-btn[data-vk-variant="text"] .vk-btn-label:only-child { padding: var(--space-xs) 0; }
|
|
422
|
+
.vk-btn[data-vk-variant="text"] .vk-btn-glyph { width: auto; padding-left: var(--space-xs); }
|
|
423
|
+
.vk-btn[data-vk-size="sm"] { font-size: 0.6875rem; }
|
|
424
|
+
.vk-btn[data-vk-size="sm"] .vk-btn-label { padding: 0.4rem 0.75rem 0.4rem 0.85rem; }
|
|
425
|
+
.vk-btn[data-vk-size="sm"] .vk-btn-label:only-child { padding-right: 0.85rem; }
|
|
426
|
+
.vk-btn[data-vk-size="sm"] .vk-btn-glyph { width: 1.85rem; }
|
|
427
|
+
.vk-btn[data-vk-variant="text"][data-vk-size="sm"] { font-size: var(--text-sm); }
|
|
428
|
+
@media (max-width: 40rem) {
|
|
429
|
+
.vk-btn:not([data-vk-variant="text"]):not([data-vk-size="xs"]) { width: 100%; justify-content: space-between; }
|
|
472
430
|
}
|
|
473
|
-
|
|
474
|
-
.vk-btn
|
|
475
|
-
.vk-btn-
|
|
476
|
-
|
|
477
|
-
.vk-btn
|
|
431
|
+
@media (pointer: fine) and (not (any-pointer: coarse)) {
|
|
432
|
+
.vk-btn[data-vk-size="xs"] { width: auto; font-size: 0.6875rem; }
|
|
433
|
+
.vk-btn[data-vk-size="xs"] .vk-btn-label,
|
|
434
|
+
.vk-btn[data-vk-size="xs"] .vk-btn-label:only-child { padding: 0 var(--space-sm); }
|
|
435
|
+
.vk-btn[data-vk-size="xs"] .vk-btn-glyph { width: var(--control-height); }
|
|
436
|
+
.vk-btn[data-vk-variant="text"][data-vk-size="xs"] { font-size: var(--text-xs); }
|
|
437
|
+
.vk-btn[data-vk-variant="text"][data-vk-size="xs"] .vk-btn-label,
|
|
438
|
+
.vk-btn[data-vk-variant="text"][data-vk-size="xs"] .vk-btn-label:only-child { padding: 0; }
|
|
439
|
+
.vk-btn[data-vk-variant="text"][data-vk-size="xs"] .vk-btn-glyph { width: auto; }
|
|
478
440
|
}
|
|
479
|
-
|
|
480
441
|
/* Square glyph */
|
|
481
442
|
@keyframes vk-glyph-blink {
|
|
482
443
|
0%, 72%, 100% { opacity: 1; filter: brightness(1); }
|
|
@@ -843,7 +804,7 @@ body {
|
|
|
843
804
|
color: var(--foreground);
|
|
844
805
|
}
|
|
845
806
|
|
|
846
|
-
/*
|
|
807
|
+
/* Native square action button. */
|
|
847
808
|
.vk-icon-btn {
|
|
848
809
|
display: inline-flex;
|
|
849
810
|
align-items: center;
|
|
@@ -852,26 +813,14 @@ body {
|
|
|
852
813
|
width: var(--button-height, 40px);
|
|
853
814
|
height: var(--button-height, 40px);
|
|
854
815
|
padding: 0;
|
|
855
|
-
color: var(--foreground);
|
|
856
|
-
background: transparent;
|
|
857
816
|
border: 1px solid transparent;
|
|
858
817
|
border-radius: var(--radius, 0);
|
|
859
818
|
cursor: pointer;
|
|
860
819
|
text-decoration: none;
|
|
861
820
|
transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
|
|
862
821
|
}
|
|
863
|
-
.vk-icon-btn:hover { background: var(--primary-tint); }
|
|
864
|
-
.vk-icon-btn-outline { border-color: var(--muted-subtle); }
|
|
865
|
-
.vk-icon-btn-outline:hover { border-color: var(--primary-hover); }
|
|
866
822
|
.vk-icon-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
867
|
-
|
|
868
|
-
.vk-icon-btn:disabled { cursor: not-allowed; color: var(--muted-subtle); background: transparent; }
|
|
869
|
-
.vk-icon-btn-outline:disabled { border-style: dashed; border-color: var(--muted-subtle); }
|
|
870
|
-
@media (forced-colors: active) {
|
|
871
|
-
.vk-icon-btn:disabled { color: GrayText; }
|
|
872
|
-
.vk-icon-btn-outline:disabled { border-color: GrayText; }
|
|
873
|
-
}
|
|
874
|
-
|
|
823
|
+
.vk-icon-btn[data-vk-size="xs"] .vk-icon { width: 16px; height: 16px; }
|
|
875
824
|
/* Dismiss and remove buttons inside alerts, toasts and upload rows keep a 16px glyph. */
|
|
876
825
|
.vk-alert-close .vk-icon, .vk-upload-item .vk-icon-btn .vk-icon { width: 16px; height: 16px; }
|
|
877
826
|
/* Link */
|
|
@@ -888,15 +837,21 @@ body {
|
|
|
888
837
|
}
|
|
889
838
|
.vk-link:hover { color: var(--primary-hover); text-decoration-color: currentColor; }
|
|
890
839
|
.vk-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
891
|
-
.vk-link-
|
|
840
|
+
.vk-link:not([data-vk-variant]) { color: var(--vk-color-fg); }
|
|
841
|
+
.vk-link[data-vk-color="neutral"].vk-emphasis-muted:not([data-vk-variant]) { color: var(--muted-foreground); text-decoration-color: currentColor; }
|
|
842
|
+
.vk-link[data-vk-color="neutral"].vk-emphasis-subtle:not([data-vk-variant]) { color: var(--muted-subtle); text-decoration-color: currentColor; }
|
|
843
|
+
.vk-link.vk-btn { text-decoration: none; align-items: stretch; gap: 0; }
|
|
844
|
+
.vk-link.vk-btn .vk-btn-label { gap: var(--space-xs); align-items: center; }
|
|
892
845
|
.vk-link-icon { align-self: center; }
|
|
893
846
|
|
|
847
|
+
|
|
848
|
+
.vk-link:not([data-vk-variant]):hover { color: var(--vk-color-hover); text-decoration-color: currentColor; }
|
|
894
849
|
/* Form fields */
|
|
895
850
|
.vk-field { display: grid; gap: 0.4rem; min-width: 0; }
|
|
896
851
|
.vk-field-optional { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted-subtle); }
|
|
897
852
|
.vk-field-hint { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-subtle); }
|
|
898
853
|
/* muted-subtle reaches AA only on background and card; raised surfaces use the stronger muted ink. */
|
|
899
|
-
:is(.vk-dialog, .vk-drawer, .vk-popover) .vk-field-hint { color: var(--muted-foreground); }
|
|
854
|
+
:is(.vk-dialog, .vk-drawer, .vk-popover) :is(.vk-field-hint, .vk-field-optional) { color: var(--muted-foreground); }
|
|
900
855
|
.vk-input:disabled { cursor: not-allowed; color: var(--muted-subtle); background: transparent; border-style: dashed; }
|
|
901
856
|
/* Only real fields: :read-only also matches every non-editable element, such as the select trigger. */
|
|
902
857
|
input.vk-input:read-only, textarea.vk-input:read-only { background: transparent; }
|
|
@@ -1113,6 +1068,25 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1113
1068
|
/* Checkbox glyphs follow the state supplied by Radix. */
|
|
1114
1069
|
.vk-choice-box:not([data-state="indeterminate"]) .vk-choice-dash,
|
|
1115
1070
|
.vk-choice-box[data-state="indeterminate"] .vk-choice-check { display: none; }
|
|
1071
|
+
|
|
1072
|
+
/* Explicit appearance belongs to the styled label; Radix continues to own state. */
|
|
1073
|
+
@media (forced-colors: none) {
|
|
1074
|
+
.vk-choice[data-vk-color]:not(.vk-choice-disabled):hover :is(.vk-choice-box, .vk-switch-track) { border-color: var(--vk-color-hover); }
|
|
1075
|
+
.vk-choice[data-vk-color]:not(.vk-choice-disabled) .vk-choice-box:is([data-state="checked"], [data-state="indeterminate"]),
|
|
1076
|
+
.vk-choice[data-vk-color]:not(.vk-choice-disabled) .vk-choice-input:checked + .vk-choice-box { border-color: var(--vk-color-fg); }
|
|
1077
|
+
.vk-choice[data-vk-color]:not(.vk-choice-disabled) .vk-choice-box:not(.vk-choice-box-radio):is([data-state="checked"], [data-state="indeterminate"]),
|
|
1078
|
+
.vk-choice[data-vk-color]:not(.vk-choice-disabled) .vk-switch-track[data-state="checked"] { background: var(--vk-color-solid); border-color: var(--vk-color-solid); color: var(--vk-color-on-solid); }
|
|
1079
|
+
.vk-choice[data-vk-color]:not(.vk-choice-disabled) .vk-choice-dot { background: var(--vk-color-fg); }
|
|
1080
|
+
.vk-choice[data-vk-color]:not(.vk-choice-disabled) .vk-switch-thumb[data-state="checked"] { background: var(--vk-color-on-solid); }
|
|
1081
|
+
}
|
|
1082
|
+
.vk-choice[data-vk-size] { min-height: var(--control-height); --vk-choice-box-size: 18px; }
|
|
1083
|
+
.vk-choice[data-vk-size="xs"] { --vk-choice-box-size: 14px; }
|
|
1084
|
+
.vk-choice[data-vk-size="sm"] { --vk-choice-box-size: 16px; }
|
|
1085
|
+
.vk-choice[data-vk-size] .vk-choice-box { width: var(--vk-choice-box-size); height: var(--vk-choice-box-size); }
|
|
1086
|
+
.vk-choice[data-vk-size] :is(.vk-choice-label, .vk-choice-description) { font-size: var(--control-font-size); }
|
|
1087
|
+
.vk-choice[data-vk-size] .vk-switch-track { width: calc(var(--vk-choice-box-size) * 2); height: calc(var(--vk-choice-box-size) + 2px); }
|
|
1088
|
+
.vk-choice[data-vk-size] .vk-switch-thumb { width: calc(var(--vk-choice-box-size) - 4px); height: calc(var(--vk-choice-box-size) - 4px); }
|
|
1089
|
+
.vk-choice[data-vk-size] .vk-switch-thumb[data-state="checked"] { transform: translateX(var(--vk-choice-box-size)); }
|
|
1116
1090
|
/* Tag */
|
|
1117
1091
|
.vk-tag {
|
|
1118
1092
|
display: inline-flex;
|
|
@@ -1296,15 +1270,12 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1296
1270
|
.vk-day[aria-disabled="true"]:hover { border-color: transparent; }
|
|
1297
1271
|
.vk-day-selected[aria-disabled="true"] { color: var(--primary-foreground); border-color: var(--primary); }
|
|
1298
1272
|
|
|
1299
|
-
/* Badge
|
|
1300
|
-
.vk-badge-
|
|
1301
|
-
.vk-badge-
|
|
1302
|
-
.vk-badge-
|
|
1303
|
-
.vk-
|
|
1304
|
-
.vk-badge-danger { color: var(--danger); border-color: var(--danger-line); }
|
|
1305
|
-
.vk-table .vk-icon-btn { width: var(--button-height-sm, 32px); height: var(--button-height-sm, 32px); }
|
|
1273
|
+
/* Badge palettes use the shared appearance recipe. */
|
|
1274
|
+
.vk-badge[data-vk-color] { color: var(--vk-color-fg); border-color: var(--vk-color-border); }
|
|
1275
|
+
.vk-badge[data-vk-variant="solid"] { color: var(--vk-color-on-solid); background: var(--vk-color-solid); border-color: var(--vk-color-solid); }
|
|
1276
|
+
.vk-badge[data-vk-variant="soft"] { color: var(--vk-color-on-soft); background: var(--vk-color-bg); }
|
|
1277
|
+
.vk-table .vk-icon-btn:not([data-vk-size]) { width: var(--button-height-sm, 32px); height: var(--button-height-sm, 32px); }
|
|
1306
1278
|
.vk-table td:has(.vk-menu-root) { padding-top: 0.25rem; padding-bottom: 0.25rem; }
|
|
1307
|
-
|
|
1308
1279
|
/* Utilities */
|
|
1309
1280
|
.vk-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
1310
1281
|
.vk-choice-mixed .vk-choice-box { background: var(--primary); border-color: var(--primary); }
|
|
@@ -1473,10 +1444,6 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1473
1444
|
.vk-overlay[data-state], .vk-dialog[data-state], .vk-popover-panel[data-state], .vk-shell-scrim[data-state], .vk-shell-sidebar[data-state] { animation: none; }
|
|
1474
1445
|
}
|
|
1475
1446
|
|
|
1476
|
-
/* Danger button */
|
|
1477
|
-
.vk-btn-danger { font-weight: 700; color: var(--on-status); background: var(--danger); border: 1px solid var(--danger); }
|
|
1478
|
-
.vk-btn-danger:hover { background: color-mix(in srgb, var(--danger) 88%, var(--foreground)); }
|
|
1479
|
-
|
|
1480
1447
|
/* Tabs (Radix Tabs: data-state=active|inactive and data-disabled set by Radix) */
|
|
1481
1448
|
.vk-tablist { display: flex; gap: 1.75rem; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
|
|
1482
1449
|
/* A tab list that scrolls fades the edge with more tabs behind it, since its scrollbar is hidden. */
|
|
@@ -1525,6 +1492,13 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1525
1492
|
|
|
1526
1493
|
/* Radix forceMount preserves content; inactive panels remain visually and accessibly hidden. */
|
|
1527
1494
|
.vk-tabpanel[data-state="inactive"] { display: none; }
|
|
1495
|
+
|
|
1496
|
+
/* Directional keyboard behavior and the visual arrangement share Radix's orientation. */
|
|
1497
|
+
.vk-tabs[data-orientation="vertical"] { display: flex; gap: var(--space-lg); }
|
|
1498
|
+
.vk-tablist[data-orientation="vertical"] { flex-direction: column; flex-shrink: 0; gap: 0; overflow-x: visible; border-bottom: 0; border-inline-end: 1px solid var(--border-subtle); mask-image: none; animation: none; }
|
|
1499
|
+
.vk-tablist[data-orientation="vertical"] .vk-tab { padding: var(--space-sm) var(--space-md); text-align: start; }
|
|
1500
|
+
.vk-tablist[data-orientation="vertical"] .vk-tab::after { left: auto; right: auto; top: 0; bottom: 0; inset-inline-end: -1px; width: 2px; height: auto; }
|
|
1501
|
+
.vk-tabpanel[data-orientation="vertical"] { min-width: 0; padding-top: 0; }
|
|
1528
1502
|
/* Segmented control (Radix RadioGroup: each segment is an item with data-state) */
|
|
1529
1503
|
.vk-segmented { display: inline-flex; box-sizing: border-box; width: fit-content; min-width: 0; max-width: 100%; border: 1px solid var(--border-subtle); border-radius: var(--radius, 0); }
|
|
1530
1504
|
.vk-segment {
|
|
@@ -1532,7 +1506,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1532
1506
|
align-items: center;
|
|
1533
1507
|
gap: 0.4rem;
|
|
1534
1508
|
min-width: 0;
|
|
1535
|
-
min-height:
|
|
1509
|
+
min-height: calc(var(--button-height, 40px) - 2px);
|
|
1536
1510
|
padding: 0 0.9rem;
|
|
1537
1511
|
font: inherit;
|
|
1538
1512
|
font-size: var(--text-sm);
|
|
@@ -1545,15 +1519,149 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1545
1519
|
}
|
|
1546
1520
|
.vk-segment:first-child { border-left: 0; }
|
|
1547
1521
|
.vk-segment:hover { color: var(--foreground); }
|
|
1548
|
-
.vk-segment[data-state="checked"] { color: var(--foreground); background: var(--primary-tint); box-shadow: inset 0 -2px 0 var(--primary); }
|
|
1549
1522
|
.vk-segment:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; position: relative; }
|
|
1550
1523
|
.vk-segment:disabled { color: var(--muted-subtle); cursor: not-allowed; }
|
|
1551
|
-
.vk-segmented-sm .vk-segment {
|
|
1524
|
+
.vk-segmented[data-vk-size="sm"] .vk-segment { padding: 0 0.65rem; font-size: 0.8125rem; }
|
|
1525
|
+
.vk-segmented[data-vk-size="xs"] .vk-segment { padding: 0 var(--space-sm); font-size: var(--text-xs); }
|
|
1552
1526
|
|
|
1553
1527
|
@media (max-width: 28rem) {
|
|
1554
1528
|
.vk-segment { padding-inline: 0.65rem; }
|
|
1555
1529
|
}
|
|
1556
1530
|
|
|
1531
|
+
|
|
1532
|
+
.vk-segmented[data-orientation="vertical"] { flex-direction: column; }
|
|
1533
|
+
.vk-segmented[data-orientation="vertical"] .vk-segment { border-left: 0; border-top: 1px solid var(--border-subtle); }
|
|
1534
|
+
.vk-segmented[data-orientation="vertical"] .vk-segment:first-child { border-top: 0; }
|
|
1535
|
+
/* Semantic palette recipes. Components share color roles, never raw palette values. */
|
|
1536
|
+
:where([data-vk-color]) { --vk-color-on-soft: var(--vk-color-fg); }
|
|
1537
|
+
:where([data-vk-color="neutral"]) {
|
|
1538
|
+
--vk-color-fg: var(--foreground);
|
|
1539
|
+
--vk-color-bg: var(--card);
|
|
1540
|
+
--vk-color-border: var(--border);
|
|
1541
|
+
--vk-color-solid: var(--foreground);
|
|
1542
|
+
--vk-color-on-solid: var(--background);
|
|
1543
|
+
--vk-color-hover: var(--muted-foreground);
|
|
1544
|
+
}
|
|
1545
|
+
:where([data-vk-color="primary"]) {
|
|
1546
|
+
--vk-color-fg: var(--primary);
|
|
1547
|
+
--vk-color-bg: var(--primary-tint);
|
|
1548
|
+
--vk-color-border: var(--primary-line);
|
|
1549
|
+
--vk-color-solid: var(--primary);
|
|
1550
|
+
--vk-color-on-solid: var(--primary-foreground);
|
|
1551
|
+
--vk-color-hover: var(--primary-hover);
|
|
1552
|
+
--vk-color-on-soft: var(--primary-hover);
|
|
1553
|
+
}
|
|
1554
|
+
:where([data-vk-color="info"]) {
|
|
1555
|
+
--vk-color-fg: var(--info);
|
|
1556
|
+
--vk-color-bg: var(--info-tint);
|
|
1557
|
+
--vk-color-border: var(--info-line);
|
|
1558
|
+
--vk-color-solid: var(--info);
|
|
1559
|
+
--vk-color-on-solid: var(--on-status);
|
|
1560
|
+
--vk-color-hover: color-mix(in srgb, var(--info) 88%, var(--foreground));
|
|
1561
|
+
}
|
|
1562
|
+
:where([data-vk-color="success"]) {
|
|
1563
|
+
--vk-color-fg: var(--success);
|
|
1564
|
+
--vk-color-bg: var(--success-tint);
|
|
1565
|
+
--vk-color-border: var(--success-line);
|
|
1566
|
+
--vk-color-solid: var(--success);
|
|
1567
|
+
--vk-color-on-solid: var(--on-status);
|
|
1568
|
+
--vk-color-hover: color-mix(in srgb, var(--success) 88%, var(--foreground));
|
|
1569
|
+
}
|
|
1570
|
+
:where([data-vk-color="warning"]) {
|
|
1571
|
+
--vk-color-fg: var(--warning);
|
|
1572
|
+
--vk-color-bg: var(--warning-tint);
|
|
1573
|
+
--vk-color-border: var(--warning-line);
|
|
1574
|
+
--vk-color-solid: var(--warning);
|
|
1575
|
+
--vk-color-on-solid: var(--on-status);
|
|
1576
|
+
--vk-color-hover: color-mix(in srgb, var(--warning) 88%, var(--foreground));
|
|
1577
|
+
}
|
|
1578
|
+
:where([data-vk-color="danger"]) {
|
|
1579
|
+
--vk-color-fg: var(--danger);
|
|
1580
|
+
--vk-color-bg: var(--danger-tint);
|
|
1581
|
+
--vk-color-border: var(--danger-line);
|
|
1582
|
+
--vk-color-solid: var(--danger);
|
|
1583
|
+
--vk-color-on-solid: var(--on-status);
|
|
1584
|
+
--vk-color-hover: color-mix(in srgb, var(--danger) 88%, var(--foreground));
|
|
1585
|
+
}
|
|
1586
|
+
:where([data-vk-color="info"]), :where([data-vk-color="success"]), :where([data-vk-color="warning"]), :where([data-vk-color="danger"]) {
|
|
1587
|
+
--vk-color-on-soft: var(--vk-color-hover);
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
/* Color and treatment are independent. Primary actions retain the system's neutral label on outline, ghost and text. */
|
|
1591
|
+
:is(.vk-btn, .vk-icon-btn) {
|
|
1592
|
+
--vk-action-fg: var(--vk-color-fg);
|
|
1593
|
+
font-weight: 600;
|
|
1594
|
+
color: var(--vk-action-fg);
|
|
1595
|
+
background: transparent;
|
|
1596
|
+
}
|
|
1597
|
+
:is(.vk-btn, .vk-icon-btn):where([data-vk-color="primary"]) { --vk-action-fg: var(--foreground); }
|
|
1598
|
+
:is(.vk-btn, .vk-icon-btn):where([data-vk-variant="solid"]) {
|
|
1599
|
+
color: var(--vk-color-on-solid);
|
|
1600
|
+
background: var(--vk-color-solid);
|
|
1601
|
+
border-color: var(--vk-color-solid);
|
|
1602
|
+
font-weight: 700;
|
|
1603
|
+
}
|
|
1604
|
+
:is(.vk-btn, .vk-icon-btn):where([data-vk-variant="soft"]) {
|
|
1605
|
+
color: var(--vk-color-on-soft);
|
|
1606
|
+
background: var(--vk-color-bg);
|
|
1607
|
+
border-color: transparent;
|
|
1608
|
+
}
|
|
1609
|
+
:is(.vk-btn, .vk-icon-btn):where([data-vk-variant="outline"]) { border-color: var(--vk-color-solid); }
|
|
1610
|
+
.vk-icon-btn:where([data-vk-color="primary"]):where([data-vk-variant="outline"]) { border-color: var(--muted-subtle); }
|
|
1611
|
+
:is(.vk-btn, .vk-icon-btn):where(:hover, :active, [data-state="open"]):where(:not(:disabled)) {
|
|
1612
|
+
color: var(--vk-color-on-soft);
|
|
1613
|
+
background: var(--vk-color-bg);
|
|
1614
|
+
border-color: var(--vk-color-hover);
|
|
1615
|
+
}
|
|
1616
|
+
:is(.vk-btn, .vk-icon-btn):where([data-vk-color="primary"]):is(:where([data-vk-variant="outline"]), :where([data-vk-variant="ghost"])):where(:hover, :active, [data-state="open"]):where(:not(:disabled)) { color: var(--foreground); }
|
|
1617
|
+
:is(.vk-btn, .vk-icon-btn):where([data-vk-variant="solid"]):where(:hover, :active, [data-state="open"]):where(:not(:disabled)) {
|
|
1618
|
+
color: var(--vk-color-on-solid);
|
|
1619
|
+
background: var(--vk-color-hover);
|
|
1620
|
+
border-color: var(--vk-color-hover);
|
|
1621
|
+
}
|
|
1622
|
+
:is(.vk-btn, .vk-icon-btn):is(:where([data-vk-variant="ghost"]), :where([data-vk-variant="text"])):where(:hover, :active, [data-state="open"]):where(:not(:disabled)) { border-color: transparent; }
|
|
1623
|
+
.vk-btn:where([data-vk-variant="outline"]) .vk-btn-glyph { color: var(--vk-color-fg); }
|
|
1624
|
+
.vk-btn:where([data-vk-variant="text"]) { font-weight: 500; }
|
|
1625
|
+
.vk-btn:where([data-vk-variant="text"]):where(:hover, :active, [data-state="open"]):where(:not(:disabled)) {
|
|
1626
|
+
color: var(--vk-color-hover);
|
|
1627
|
+
background: transparent;
|
|
1628
|
+
text-decoration: underline;
|
|
1629
|
+
text-underline-offset: var(--space-xs);
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
/* SegmentedControl selects one item; the group holds the semantic palette. */
|
|
1633
|
+
.vk-segmented .vk-segment:where([data-state="checked"]) { color: var(--vk-color-fg); }
|
|
1634
|
+
.vk-segmented:where([data-vk-variant="solid"]) .vk-segment:where([data-state="checked"]) { color: var(--vk-color-on-solid); background: var(--vk-color-solid); }
|
|
1635
|
+
.vk-segmented:where([data-vk-variant="soft"]) .vk-segment:where([data-state="checked"]) {
|
|
1636
|
+
color: var(--foreground);
|
|
1637
|
+
background: var(--vk-color-bg);
|
|
1638
|
+
box-shadow: inset 0 -2px 0 var(--vk-color-solid);
|
|
1639
|
+
}
|
|
1640
|
+
.vk-segmented:where([data-vk-variant="outline"]) .vk-segment:where([data-state="checked"]) { box-shadow: inset 0 0 0 1px var(--vk-color-solid); }
|
|
1641
|
+
.vk-segmented .vk-segment:disabled { color: var(--muted-subtle); cursor: not-allowed; }
|
|
1642
|
+
|
|
1643
|
+
/* Availability is independent from color and treatment; busy actions retain their fill. */
|
|
1644
|
+
:is(.vk-btn, .vk-icon-btn):disabled:not(.vk-btn-loading) {
|
|
1645
|
+
color: var(--muted-subtle);
|
|
1646
|
+
background: transparent;
|
|
1647
|
+
cursor: not-allowed;
|
|
1648
|
+
text-decoration: none;
|
|
1649
|
+
}
|
|
1650
|
+
:is(.vk-btn, .vk-icon-btn):is(:where([data-vk-variant="solid"]), :where([data-vk-variant="soft"]), :where([data-vk-variant="outline"])):disabled:not(.vk-btn-loading) {
|
|
1651
|
+
border: 1px dashed var(--muted-subtle);
|
|
1652
|
+
}
|
|
1653
|
+
.vk-btn:disabled:not(.vk-btn-loading) .vk-btn-glyph { color: inherit; }
|
|
1654
|
+
.vk-btn-loading:disabled { cursor: progress; opacity: 0.7; }
|
|
1655
|
+
@media (forced-colors: active) {
|
|
1656
|
+
:is(.vk-btn, .vk-icon-btn):disabled:not(.vk-btn-loading) { color: GrayText; border-color: GrayText; }
|
|
1657
|
+
.vk-segmented:where([data-vk-variant]) .vk-segment:where([data-state="checked"]) {
|
|
1658
|
+
forced-color-adjust: none;
|
|
1659
|
+
color: HighlightText;
|
|
1660
|
+
background: Highlight;
|
|
1661
|
+
box-shadow: none;
|
|
1662
|
+
}
|
|
1663
|
+
.vk-segmented:where([data-vk-variant]) .vk-segment:where([data-state="checked"]):disabled { color: GrayText; background: Canvas; outline: 1px solid GrayText; }
|
|
1664
|
+
}
|
|
1557
1665
|
/* Breadcrumbs */
|
|
1558
1666
|
.vk-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
|
|
1559
1667
|
.vk-breadcrumbs li { display: inline-flex; align-items: center; }
|
|
@@ -1694,18 +1802,15 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1694
1802
|
.vk-accordion-panel[data-state] { animation: none; }
|
|
1695
1803
|
}
|
|
1696
1804
|
/* Progress (Radix Progress: data-state indeterminate | loading | complete on the track), spinner, skeleton */
|
|
1697
|
-
.vk-progress {
|
|
1698
|
-
.vk-progress-success { --vk-tone: var(--success); }
|
|
1699
|
-
.vk-progress-warning { --vk-tone: var(--warning); }
|
|
1700
|
-
.vk-progress-danger { --vk-tone: var(--danger); }
|
|
1805
|
+
.vk-progress { display: grid; gap: 0.45rem; }
|
|
1701
1806
|
.vk-progress-row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); }
|
|
1702
1807
|
.vk-progress-label { color: var(--foreground); }
|
|
1703
1808
|
.vk-progress-value { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
1704
1809
|
.vk-progress-track { position: relative; height: 6px; overflow: hidden; background: var(--card); border: 1px solid var(--border-subtle); }
|
|
1705
|
-
.vk-progress-fill { height: 100%; background: var(--vk-
|
|
1810
|
+
.vk-progress-fill { height: 100%; background: var(--vk-color-fg); transition: width var(--motion-normal) var(--ease-standard); }
|
|
1706
1811
|
.vk-progress-track[data-state="indeterminate"] {
|
|
1707
1812
|
background-color: var(--card);
|
|
1708
|
-
background-image: repeating-linear-gradient(-45deg, transparent, transparent 4px, var(--vk-
|
|
1813
|
+
background-image: repeating-linear-gradient(-45deg, transparent, transparent 4px, var(--vk-color-fg) 4px, var(--vk-color-fg) 6px);
|
|
1709
1814
|
background-size: 17px 100%;
|
|
1710
1815
|
animation: vk-hatch-move 0.6s linear infinite;
|
|
1711
1816
|
}
|
|
@@ -1840,10 +1945,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1840
1945
|
.vk-layout-stack { display: flex; flex-direction: column; min-width: 0; }
|
|
1841
1946
|
.vk-layout-inline { display: flex; min-width: 0; }
|
|
1842
1947
|
.vk-layout-grid { display: grid; min-width: 0; }
|
|
1843
|
-
/* A row that holds a field sizes
|
|
1844
|
-
.vk-layout-inline:has(.vk-input) > .vk-btn { min-height: var(--control-height, 44px); }
|
|
1845
|
-
.vk-layout-inline:has(.vk-input) > .vk-icon-btn { width: var(--control-height, 44px); height: var(--control-height, 44px); }
|
|
1846
|
-
.vk-layout-inline:has(.vk-input) > .vk-segmented .vk-segment { min-height: calc(var(--control-height, 44px) - 2px); }
|
|
1948
|
+
/* A row that holds a field sizes actions without an explicit size to the field, so toolbars and inline forms sit flush at --control-height. */
|
|
1949
|
+
.vk-layout-inline:has(.vk-input) > .vk-btn:not([data-vk-size]) { min-height: var(--control-height, 44px); }
|
|
1950
|
+
.vk-layout-inline:has(.vk-input) > .vk-icon-btn:not([data-vk-size]) { width: var(--control-height, 44px); height: var(--control-height, 44px); }
|
|
1951
|
+
.vk-layout-inline:has(.vk-input) > .vk-segmented:not([data-vk-size]) .vk-segment { min-height: calc(var(--control-height, 44px) - 2px); }
|
|
1847
1952
|
@media (max-width: 40rem) { .vk-layout-grid-fixed { grid-template-columns: 1fr !important; } }
|
|
1848
1953
|
.vk-container { box-sizing: border-box; width: 100%; max-width: var(--content-max); margin-inline: auto; }
|
|
1849
1954
|
.vk-container-prose { max-width: calc(var(--prose-max) + 2 * var(--section-gutter)); }
|
|
@@ -2012,8 +2117,16 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
2012
2117
|
.vk-slider-track[data-disabled] { cursor: not-allowed; }
|
|
2013
2118
|
.vk-slider-fill[data-disabled], .vk-slider-thumb[data-disabled] { background: var(--muted-subtle); cursor: not-allowed; }
|
|
2014
2119
|
.vk-slider-limits { grid-column: 1; display: flex; justify-content: space-between; font-family: var(--font-numeric); font-size: 0.6875rem; color: var(--muted-subtle); }
|
|
2120
|
+
|
|
2121
|
+
/* Radix positions the range and thumbs along the native vertical axis. */
|
|
2122
|
+
.vk-slider[data-orientation="vertical"] { width: max-content; align-items: start; }
|
|
2123
|
+
.vk-slider-track[data-orientation="vertical"] { flex-direction: column; justify-content: center; width: 28px; height: 10rem; }
|
|
2124
|
+
.vk-slider-track[data-orientation="vertical"]::before { left: 50%; right: auto; top: 0; bottom: 0; width: 4px; height: auto; translate: -50% 0; }
|
|
2125
|
+
.vk-slider-fill[data-orientation="vertical"] { left: 50%; top: auto; width: 4px; height: auto; translate: -50% 0; }
|
|
2126
|
+
.vk-slider[data-orientation="vertical"] .vk-slider-limits { flex-direction: column-reverse; gap: var(--space-sm); }
|
|
2015
2127
|
/* One-time code */
|
|
2016
2128
|
.vk-otp { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
2129
|
+
.vk-otp[data-orientation="vertical"] { flex-direction: column; align-items: flex-start; }
|
|
2017
2130
|
.vk-otp-box { width: clamp(24px, calc((100% + 0.5rem) / var(--vk-otp-length, 6) - 0.5rem), 44px); padding: 0; text-align: center; font-family: var(--font-numeric); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
|
|
2018
2131
|
|
|
2019
2132
|
/* Error summary */
|
|
@@ -2179,11 +2292,9 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
2179
2292
|
.vk-weight-medium { font-weight: 500; }
|
|
2180
2293
|
.vk-weight-semibold { font-weight: 600; }
|
|
2181
2294
|
.vk-weight-bold { font-weight: 700; }
|
|
2182
|
-
.vk-
|
|
2183
|
-
.vk-
|
|
2184
|
-
.vk-
|
|
2185
|
-
.vk-tone-danger { color: var(--danger); }
|
|
2186
|
-
.vk-tone-success { color: var(--success); }
|
|
2295
|
+
.vk-emphasis-muted { color: var(--muted-foreground); }
|
|
2296
|
+
.vk-emphasis-subtle { color: var(--muted-subtle); }
|
|
2297
|
+
.vk-text[data-vk-color]:not([data-vk-color="neutral"]), .vk-heading[data-vk-color]:not([data-vk-color="neutral"]) { color: var(--vk-color-fg); }
|
|
2187
2298
|
.vk-code { padding: 0.1em 0.35em; font-family: var(--font-mono); font-size: 0.875em; color: var(--foreground); background: var(--card); border: 1px solid var(--border-subtle); }
|
|
2188
2299
|
.vk-prose { max-width: var(--prose-max); font-size: var(--text-base); line-height: 1.7; color: var(--muted-foreground); }
|
|
2189
2300
|
.vk-prose > :first-child { margin-top: 0; }
|
|
@@ -2483,8 +2594,8 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
2483
2594
|
[data-density="compact"] .vk-prose > :first-child { margin-top: 0; }
|
|
2484
2595
|
[data-density="compact"] .vk-prose > :last-child { margin-bottom: 0; }
|
|
2485
2596
|
[data-density="compact"] .vk-accordion-trigger { font-size: var(--text-sm); padding-block: var(--space-sm); }
|
|
2486
|
-
[data-density="compact"] .vk-btn-text { font-size: var(--text-sm); }
|
|
2487
|
-
[data-density="compact"] .vk-btn:not(
|
|
2597
|
+
[data-density="compact"] .vk-btn[data-vk-variant="text"]:not([data-vk-size]) { font-size: var(--text-sm); }
|
|
2598
|
+
[data-density="compact"] .vk-btn:not([data-vk-size], [data-vk-variant="text"]) .vk-btn-label { padding: var(--space-xs) var(--space-sm); }
|
|
2488
2599
|
[data-density="compact"] .vk-segmented { min-width: 0; max-width: 100%; align-self: flex-start; }
|
|
2489
2600
|
[data-density="compact"] .vk-segment { min-width: 0; min-height: calc(var(--control-height) - 2px); padding: var(--space-xs) var(--space-sm); font-size: var(--text-sm); overflow-wrap: anywhere; }
|
|
2490
2601
|
@container (max-width: 40rem) {
|
|
@@ -2507,26 +2618,61 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
2507
2618
|
@media (pointer: fine) and (not (any-pointer: coarse)) {
|
|
2508
2619
|
[data-density="compact"] { --control-height: 32px; --control-font-size: var(--text-sm); --control-padding-block: var(--space-xs); }
|
|
2509
2620
|
}
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2621
|
+
/* Explicit sizes share one geometry across actions and fields. Omitted sizes keep density defaults. */
|
|
2622
|
+
[data-vk-size] {
|
|
2623
|
+
--control-height: var(--control-height-md);
|
|
2624
|
+
--control-font-size: var(--text-base);
|
|
2625
|
+
--control-padding-block: var(--space-sm);
|
|
2626
|
+
--control-padding-inline: 0.75rem;
|
|
2627
|
+
--control-icon-size: 16px;
|
|
2628
|
+
--control-end-size: var(--control-height);
|
|
2629
|
+
--button-height: var(--control-height);
|
|
2630
|
+
--button-height-sm: var(--control-height);
|
|
2514
2631
|
}
|
|
2515
|
-
/* Extra-small controls for toolbars, record rows and status lines: size="xs" on Button, IconButton,
|
|
2516
|
-
Menu, Popover, SegmentedControl and Select. Fine pointers only; with any coarse pointer they keep the 44px touch target. */
|
|
2517
2632
|
@media (pointer: fine) and (not (any-pointer: coarse)) {
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2633
|
+
[data-vk-size] { --control-end-size: min(32px, var(--control-height)); }
|
|
2634
|
+
[data-vk-size="xs"] {
|
|
2635
|
+
--control-height: var(--control-height-xs);
|
|
2636
|
+
--control-font-size: var(--text-xs);
|
|
2637
|
+
--control-padding-block: 0;
|
|
2638
|
+
--control-padding-inline: var(--space-sm);
|
|
2639
|
+
--control-icon-size: 14px;
|
|
2640
|
+
}
|
|
2641
|
+
[data-vk-size="sm"] {
|
|
2642
|
+
--control-height: var(--control-height-sm);
|
|
2643
|
+
--control-font-size: var(--text-sm);
|
|
2644
|
+
--control-padding-block: var(--space-xs);
|
|
2645
|
+
--control-padding-inline: 0.625rem;
|
|
2646
|
+
}
|
|
2529
2647
|
}
|
|
2648
|
+
/* Size applies to the complete field, including its affixes, icons and trailing controls. */
|
|
2649
|
+
[data-vk-size].vk-search .vk-input { min-height: var(--control-height); }
|
|
2650
|
+
[data-vk-size] :is(.vk-search-icon, .vk-select-icon, .vk-date-icon, .vk-select-check) { width: var(--control-icon-size); height: var(--control-icon-size); }
|
|
2651
|
+
[data-vk-size] :is(.vk-search-icon, .vk-select-icon, .vk-field-clear) { top: calc(var(--control-height) / 2); }
|
|
2652
|
+
[data-vk-size] .vk-search-icon { left: var(--control-padding-inline); }
|
|
2653
|
+
[data-vk-size] .vk-select-icon { right: var(--control-padding-inline); }
|
|
2654
|
+
[data-vk-size] .vk-field-clear { width: var(--control-end-size); height: var(--control-end-size); right: 0; }
|
|
2655
|
+
[data-vk-size] :is(.vk-affix-addon, .vk-affix-button, .vk-stepper-unit) { padding-inline: var(--control-padding-inline); }
|
|
2656
|
+
[data-vk-size] :is(.vk-affix-addon, .vk-stepper-unit) { font-size: var(--control-font-size); }
|
|
2657
|
+
[data-vk-size] .vk-stepper-btn { width: var(--control-height); }
|
|
2658
|
+
[data-vk-size].vk-input, [data-vk-size] .vk-input { padding-inline: var(--control-padding-inline); }
|
|
2659
|
+
/* Reserve space for the leading icon and trailing clear or calendar control. */
|
|
2660
|
+
[data-vk-size] :is(.vk-select-trigger, .vk-combobox-input) { padding-right: calc(var(--control-padding-inline) + var(--control-icon-size) + var(--space-sm)); }
|
|
2661
|
+
[data-vk-size] :is(.vk-search-input, .vk-date-input, .vk-combobox-input:has(+ .vk-field-clear)) { padding-right: calc(var(--control-end-size) + var(--space-xs)); }
|
|
2662
|
+
[data-vk-size] :is(.vk-search-input, .vk-has-lead) { padding-left: calc(var(--control-padding-inline) + var(--control-icon-size) + var(--space-xs)); }
|
|
2663
|
+
[data-vk-size] .vk-date-trigger { padding-right: var(--control-padding-inline); }
|
|
2664
|
+
[data-vk-size].vk-input.vk-textarea { padding-block: var(--control-padding-block); }
|
|
2665
|
+
/* Menus carry their own size because their portal is outside the field's DOM. */
|
|
2666
|
+
[data-vk-size].vk-select-menu { font-size: var(--control-font-size); }
|
|
2667
|
+
[data-vk-size].vk-select-menu .vk-select-option { box-sizing: border-box; min-height: var(--control-height); padding: var(--control-padding-block) var(--control-padding-inline); }
|
|
2668
|
+
[data-vk-size].vk-select-menu .vk-select-option-description { font-size: var(--control-font-size); }
|
|
2669
|
+
/* A multi-value field can grow by rows while each row uses the selected control size. */
|
|
2670
|
+
[data-vk-size].vk-multiselect { --vk-multiselect-item-height: min(26px, calc(var(--control-height) - 2px)); }
|
|
2671
|
+
[data-vk-size] .vk-multiselect-field { padding-block: max(0px, calc((var(--control-height) - var(--vk-multiselect-item-height) - 2px) / 2)); padding-right: calc(var(--control-padding-inline) + var(--control-icon-size) + var(--space-sm)); }
|
|
2672
|
+
[data-vk-size] .vk-multiselect-input { height: var(--vk-multiselect-item-height); }
|
|
2673
|
+
[data-vk-size].vk-multiselect .vk-tag { min-height: var(--vk-multiselect-item-height); padding-block: 0; font-size: var(--control-font-size); }
|
|
2674
|
+
[data-vk-size].vk-multiselect .vk-tag-remove { width: calc(var(--vk-multiselect-item-height) - 2px); height: calc(var(--vk-multiselect-item-height) - 2px); }
|
|
2675
|
+
[data-vk-size].vk-otp .vk-otp-box { width: clamp(24px, calc((100% + 0.5rem) / var(--vk-otp-length, 6) - 0.5rem), var(--control-height)); padding: 0; font-size: var(--control-font-size); }
|
|
2530
2676
|
/* Touch: buttons and rows meet a 44px target in every density (WCAG 2.5.5, Apple HIG); density only tightens fine-pointer layouts. */
|
|
2531
2677
|
@media (any-pointer: coarse) {
|
|
2532
2678
|
:root { --button-height: var(--control-height); --button-height-sm: var(--control-height); }
|