@tangible/ui 0.2.39 → 0.2.40
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 +2 -2
- package/components/Avatar/Avatar.js +20 -5
- package/components/Avatar/types.d.ts +15 -0
- package/components/Button/Button.js +10 -3
- package/components/Button/types.d.ts +31 -3
- package/components/Button/types.js +2 -0
- package/components/ColorPicker/ColorField.d.ts +1 -1
- package/components/ColorPicker/ColorField.js +9 -1
- package/components/DatePicker/DateRangePicker.d.ts +1 -0
- package/components/DatePicker/DateRangePicker.js +24 -6
- package/components/DatePicker/PickerTrigger.js +1 -1
- package/components/DatePicker/types.d.ts +20 -3
- package/components/DatePicker/types.js +1 -0
- package/components/IconButton/IconButtonCore.js +13 -5
- package/components/IconButton/index.d.ts +2 -1
- package/components/IconButton/index.js +1 -0
- package/components/IconButton/types.d.ts +37 -2
- package/components/IconButton/types.js +4 -1
- package/components/MultiSelect/MultiSelect.js +9 -3
- package/components/NavMenu/NavMenu.js +37 -3
- package/components/Progress/Progress.js +73 -2
- package/components/Progress/index.d.ts +2 -1
- package/components/Progress/index.js +1 -0
- package/components/Progress/types.d.ts +130 -2
- package/components/Progress/types.js +3 -1
- package/components/Select/Select.js +2 -1
- package/components/Tooltip/Tooltip.js +23 -0
- package/components/index.d.ts +28 -26
- package/components/index.js +10 -10
- package/figma-tokens.json +1 -1
- package/icons/icons.svg +15 -5
- package/icons/lms/index.d.ts +7 -4
- package/icons/lms/index.js +9 -44
- package/icons/lms.svg +4 -4
- package/icons/manifest.json +96 -12
- package/icons/registry.d.ts +20 -0
- package/icons/registry.js +11 -0
- package/icons/searchsync/index.d.ts +21 -0
- package/icons/searchsync/index.js +82 -0
- package/icons/searchsync.svg +9 -0
- package/icons/sprite-registry.js +10 -0
- package/icons/sprite-version.js +1 -1
- package/icons/sprite.d.ts +1 -1
- package/icons/sprite.js +2 -1
- package/icons/sprite.php +3 -2
- package/icons/system/index.d.ts +6 -0
- package/icons/system/index.js +33 -0
- package/icons/system.svg +3 -0
- package/package.json +1 -1
- package/skills/building-with-tui/SKILL.md +77 -30
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +180 -44
- package/styles/all.expanded.unlayered.css +180 -44
- package/styles/all.unlayered.css +1 -1
- package/styles/components/button.scss +18 -0
- package/styles/components/checkbox.scss +21 -13
- package/styles/components/icon-button.scss +44 -25
- package/styles/components/nav-menu.scss +3 -0
- package/styles/components/notice.scss +4 -0
- package/styles/components/progress.scss +96 -0
- package/styles/components/radio.scss +35 -7
- package/styles/components/segmented-control.scss +98 -18
- package/tui-manifest.json +142 -39
- package/utils/portal.d.ts +4 -3
- package/utils/portal.js +16 -2
- package/utils/use-loading-announcer.d.ts +2 -0
- package/utils/use-loading-announcer.js +101 -0
- package/vanilla/styles.css +1 -1
- package/vanilla/styles.unlayered.css +1 -1
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
--tui-checkbox-size
|
|
71
71
|
--tui-checkbox-gap
|
|
72
72
|
--tui-checkbox-label-color
|
|
73
|
+
--tui-checkbox-fg-disabled
|
|
73
74
|
*/
|
|
74
75
|
/* @tui-tokens
|
|
75
76
|
--tui-chip-bg
|
|
@@ -320,6 +321,7 @@
|
|
|
320
321
|
--tui-radio-font-size
|
|
321
322
|
--tui-radio-label-color
|
|
322
323
|
--tui-radio-description-color
|
|
324
|
+
--tui-radio-fg-disabled
|
|
323
325
|
--tui-radio-group-gap
|
|
324
326
|
*/
|
|
325
327
|
/* @tui-tokens
|
|
@@ -343,6 +345,7 @@
|
|
|
343
345
|
--tui-progress-z3-label
|
|
344
346
|
--tui-progress-z4-label
|
|
345
347
|
--tui-progress-z5-label
|
|
348
|
+
--tui-progress-segment-gap
|
|
346
349
|
*/
|
|
347
350
|
/* @tui-tokens
|
|
348
351
|
--tui-segmented-gap
|
|
@@ -357,6 +360,7 @@
|
|
|
357
360
|
--tui-segmented-item-bg-active
|
|
358
361
|
--tui-segmented-item-fg-active
|
|
359
362
|
--tui-segmented-item-border-active
|
|
363
|
+
--tui-segmented-item-fg-disabled
|
|
360
364
|
--tui-segmented-indicator
|
|
361
365
|
--tui-segmented-indicator-size
|
|
362
366
|
*/
|
|
@@ -1685,6 +1689,14 @@
|
|
|
1685
1689
|
.tui-interface .tui-button[data-loading=true] {
|
|
1686
1690
|
pointer-events: none;
|
|
1687
1691
|
}
|
|
1692
|
+
@media not (forced-colors: active) {
|
|
1693
|
+
.tui-interface .tui-button[data-loading=true]:not(:disabled) {
|
|
1694
|
+
opacity: 1;
|
|
1695
|
+
background-color: color-mix(in srgb, var(--_bg) calc(var(--tui-opacity-disabled) * 100%), transparent) !important;
|
|
1696
|
+
color: color-mix(in srgb, var(--_fg) calc(var(--tui-opacity-disabled) * 100%), var(--tui-color-bg)) !important;
|
|
1697
|
+
border-color: color-mix(in srgb, var(--_border) calc(var(--tui-opacity-disabled) * 100%), transparent) !important;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1688
1700
|
.tui-interface .tui-button[data-loading=true] > .tui-icon:first-child {
|
|
1689
1701
|
visibility: hidden;
|
|
1690
1702
|
}
|
|
@@ -2276,13 +2288,10 @@
|
|
|
2276
2288
|
.tui-inline-choice input[type=checkbox]):disabled {
|
|
2277
2289
|
cursor: not-allowed;
|
|
2278
2290
|
}
|
|
2279
|
-
.tui-interface .tui-inline-choice__control[type=checkbox]
|
|
2291
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2292
|
+
.tui-inline-choice input[type=checkbox]):disabled {
|
|
2280
2293
|
opacity: var(--tui-opacity-disabled);
|
|
2281
2294
|
}
|
|
2282
|
-
.tui-interface .tui-inline-choice :is(.tui-inline-choice__control[type=checkbox],
|
|
2283
|
-
input[type=checkbox]):disabled {
|
|
2284
|
-
opacity: 1;
|
|
2285
|
-
}
|
|
2286
2295
|
.tui-interface .tui-inline-choice:has(input[type=checkbox]) {
|
|
2287
2296
|
gap: var(--tui-checkbox-gap, var(--tui-spacing-xs));
|
|
2288
2297
|
}
|
|
@@ -2294,17 +2303,22 @@
|
|
|
2294
2303
|
color: var(--tui-checkbox-label-color, inherit);
|
|
2295
2304
|
}
|
|
2296
2305
|
.tui-interface .tui-inline-choice.is-disabled {
|
|
2297
|
-
opacity: var(--tui-opacity-disabled);
|
|
2298
2306
|
cursor: not-allowed;
|
|
2299
2307
|
}
|
|
2300
2308
|
.tui-interface .tui-inline-choice.is-disabled input {
|
|
2301
2309
|
cursor: not-allowed;
|
|
2302
2310
|
}
|
|
2311
|
+
.tui-interface .tui-inline-choice.is-disabled:has(input[type=checkbox]) > :not(input) {
|
|
2312
|
+
color: var(--tui-checkbox-fg-disabled, var(--tui-color-fg-muted));
|
|
2313
|
+
}
|
|
2303
2314
|
@media (forced-colors: active) {
|
|
2304
2315
|
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2305
2316
|
.tui-inline-choice input[type=checkbox]) {
|
|
2306
2317
|
forced-color-adjust: auto;
|
|
2307
2318
|
}
|
|
2319
|
+
.tui-interface .tui-inline-choice.is-disabled:has(input[type=checkbox]) > :not(input) {
|
|
2320
|
+
color: GrayText;
|
|
2321
|
+
}
|
|
2308
2322
|
}
|
|
2309
2323
|
:where(.tui-interface) .tui-chip {
|
|
2310
2324
|
--_bg: var(--tui-chip-bg, var(--tui-theme-secondary-subtlest));
|
|
@@ -5257,29 +5271,19 @@
|
|
|
5257
5271
|
.tui-interface .tui-icon-button .tui-icon {
|
|
5258
5272
|
font-size: calc(var(--_size) * 0.75);
|
|
5259
5273
|
}
|
|
5260
|
-
.tui-interface .tui-icon-button:hover {
|
|
5261
|
-
--_bg: var(--_bg-interact);
|
|
5262
|
-
--_fg: var(--_fg-interact);
|
|
5263
|
-
}
|
|
5264
|
-
.tui-interface .tui-icon-button:focus-visible {
|
|
5265
|
-
--_bg: var(--_bg-interact);
|
|
5266
|
-
--_fg: var(--_fg-interact);
|
|
5267
|
-
outline: var(--tui-focus-ring-width) solid var(--tui-focus-ring-color);
|
|
5268
|
-
outline-offset: var(--tui-focus-ring-offset);
|
|
5269
|
-
}
|
|
5270
|
-
.tui-interface .tui-icon-button:active {
|
|
5271
|
-
--_bg: var(--_bg-interact);
|
|
5272
|
-
--_fg: var(--_fg-interact);
|
|
5273
|
-
}
|
|
5274
|
-
.tui-interface .tui-icon-button[aria-pressed=true] {
|
|
5275
|
-
--_bg: var(--_bg-pressed);
|
|
5276
|
-
--_fg: var(--_fg-pressed);
|
|
5277
|
-
}
|
|
5278
5274
|
.tui-interface .tui-icon-button:where(:disabled, [aria-disabled=true], .is-disabled) {
|
|
5279
5275
|
pointer-events: none;
|
|
5280
5276
|
cursor: not-allowed;
|
|
5281
5277
|
opacity: var(--tui-opacity-disabled);
|
|
5282
5278
|
}
|
|
5279
|
+
@media not (forced-colors: active) {
|
|
5280
|
+
.tui-interface .tui-icon-button[data-loading=true]:not(:disabled) {
|
|
5281
|
+
opacity: 1;
|
|
5282
|
+
background-color: color-mix(in srgb, var(--_bg) calc(var(--tui-opacity-disabled) * 100%), transparent);
|
|
5283
|
+
color: color-mix(in srgb, var(--_fg) calc(var(--tui-opacity-disabled) * 100%), var(--tui-color-bg));
|
|
5284
|
+
border-color: color-mix(in srgb, var(--_border) calc(var(--tui-opacity-disabled) * 100%), transparent);
|
|
5285
|
+
}
|
|
5286
|
+
}
|
|
5283
5287
|
.tui-interface .tui-icon-button.is-size-xs {
|
|
5284
5288
|
--_size: var(--tui-control-height-xs, 1.5rem);
|
|
5285
5289
|
--_radius: var(--tui-icon-button-radius, var(--tui-radius-sm));
|
|
@@ -5323,6 +5327,24 @@
|
|
|
5323
5327
|
--_bg-interact: var(--tui-icon-button-bg-interact, var(--tui-theme-info-subtlest));
|
|
5324
5328
|
--_bg-pressed: var(--tui-icon-button-bg-pressed, var(--tui-theme-info-subtle));
|
|
5325
5329
|
}
|
|
5330
|
+
.tui-interface .tui-icon-button:hover {
|
|
5331
|
+
--_bg: var(--_bg-interact);
|
|
5332
|
+
--_fg: var(--_fg-interact);
|
|
5333
|
+
}
|
|
5334
|
+
.tui-interface .tui-icon-button:focus-visible {
|
|
5335
|
+
--_bg: var(--_bg-interact);
|
|
5336
|
+
--_fg: var(--_fg-interact);
|
|
5337
|
+
outline: var(--tui-focus-ring-width) solid var(--tui-focus-ring-color);
|
|
5338
|
+
outline-offset: var(--tui-focus-ring-offset);
|
|
5339
|
+
}
|
|
5340
|
+
.tui-interface .tui-icon-button:active {
|
|
5341
|
+
--_bg: var(--_bg-interact);
|
|
5342
|
+
--_fg: var(--_fg-interact);
|
|
5343
|
+
}
|
|
5344
|
+
.tui-interface .tui-icon-button[aria-pressed=true] {
|
|
5345
|
+
--_bg: var(--_bg-pressed);
|
|
5346
|
+
--_fg: var(--_fg-pressed);
|
|
5347
|
+
}
|
|
5326
5348
|
.tui-interface .tui-icon-button.is-style-outline {
|
|
5327
5349
|
--_border: var(--tui-icon-button-border, var(--tui-color-border));
|
|
5328
5350
|
--_bg-interact: var(--tui-icon-button-bg-interact, var(--tui-theme-secondary-subtle));
|
|
@@ -6154,6 +6176,7 @@
|
|
|
6154
6176
|
--_border-width: var(--tui-notice-border-width, var(--tui-border-width, 1px));
|
|
6155
6177
|
overflow: hidden;
|
|
6156
6178
|
padding-inline-start: var(--tui-notice-stripe-width, 4px);
|
|
6179
|
+
isolation: isolate;
|
|
6157
6180
|
}
|
|
6158
6181
|
:where(.tui-interface) .tui-notice.has-stripe::before {
|
|
6159
6182
|
content: "";
|
|
@@ -6454,9 +6477,6 @@
|
|
|
6454
6477
|
flex-wrap: wrap;
|
|
6455
6478
|
gap: var(--_group-gap);
|
|
6456
6479
|
}
|
|
6457
|
-
:where(.tui-interface) .tui-radio-group[aria-disabled=true] {
|
|
6458
|
-
opacity: var(--tui-opacity-disabled);
|
|
6459
|
-
}
|
|
6460
6480
|
:where(.tui-interface) .tui-radio {
|
|
6461
6481
|
--_accent: var(--tui-radio-accent, var(--tui-input-accent, var(--tui-theme-primary-base)));
|
|
6462
6482
|
--_border: var(--tui-radio-border, var(--tui-input-border, var(--tui-color-border-control)));
|
|
@@ -6470,6 +6490,13 @@
|
|
|
6470
6490
|
display: flex;
|
|
6471
6491
|
flex-direction: column;
|
|
6472
6492
|
}
|
|
6493
|
+
:where(.tui-interface) .tui-radio[data-disabled] {
|
|
6494
|
+
--_label-color: var(--tui-radio-fg-disabled, var(--tui-color-fg-muted));
|
|
6495
|
+
--_desc-color: var(--tui-radio-fg-disabled, var(--tui-color-fg-muted));
|
|
6496
|
+
}
|
|
6497
|
+
:where(.tui-interface) .tui-radio[data-disabled] .tui-radio__indicator {
|
|
6498
|
+
opacity: var(--tui-opacity-disabled);
|
|
6499
|
+
}
|
|
6473
6500
|
:where(.tui-interface) .tui-radio:has(.tui-radio__control[aria-checked=true]) .tui-radio__indicator {
|
|
6474
6501
|
border-color: var(--_accent);
|
|
6475
6502
|
}
|
|
@@ -6502,7 +6529,6 @@
|
|
|
6502
6529
|
}
|
|
6503
6530
|
:where(.tui-interface) .tui-radio__control:disabled {
|
|
6504
6531
|
cursor: not-allowed;
|
|
6505
|
-
opacity: var(--tui-opacity-disabled);
|
|
6506
6532
|
pointer-events: none;
|
|
6507
6533
|
}
|
|
6508
6534
|
:where(.tui-interface) .tui-radio__control[aria-disabled=true] {
|
|
@@ -6576,7 +6602,18 @@
|
|
|
6576
6602
|
.tui-inline-choice input[type=radio]):checked {
|
|
6577
6603
|
accent-color: var(--_accent);
|
|
6578
6604
|
}
|
|
6605
|
+
.tui-interface :is(.tui-inline-choice__control[type=radio],
|
|
6606
|
+
.tui-inline-choice input[type=radio]):disabled {
|
|
6607
|
+
opacity: var(--tui-opacity-disabled);
|
|
6608
|
+
}
|
|
6609
|
+
.tui-interface .tui-inline-choice.is-disabled:has(input[type=radio]) > :not(input) {
|
|
6610
|
+
color: var(--tui-radio-fg-disabled, var(--tui-color-fg-muted));
|
|
6611
|
+
}
|
|
6579
6612
|
@media (forced-colors: active) {
|
|
6613
|
+
.tui-interface .tui-radio[data-disabled] :is(.tui-radio__label, .tui-radio__description),
|
|
6614
|
+
.tui-interface .tui-inline-choice.is-disabled:has(input[type=radio]) > :not(input) {
|
|
6615
|
+
color: GrayText;
|
|
6616
|
+
}
|
|
6580
6617
|
:where(.tui-interface) .tui-radio__indicator {
|
|
6581
6618
|
forced-color-adjust: none;
|
|
6582
6619
|
border-color: CanvasText;
|
|
@@ -6862,6 +6899,65 @@
|
|
|
6862
6899
|
:where(.tui-interface) .tui-progress.is-segmented .tui-progress__segment-label-value {
|
|
6863
6900
|
font-weight: 600;
|
|
6864
6901
|
}
|
|
6902
|
+
:where(.tui-interface) .tui-progress.is-breakdown {
|
|
6903
|
+
--_segment-gap: var(
|
|
6904
|
+
--tui-progress-segment-gap,
|
|
6905
|
+
calc(var(--tui-border-width) * 2)
|
|
6906
|
+
);
|
|
6907
|
+
}
|
|
6908
|
+
:where(.tui-interface) .tui-progress.is-breakdown .is-theme-primary {
|
|
6909
|
+
--_segment-fill: var(--tui-theme-primary-strong);
|
|
6910
|
+
}
|
|
6911
|
+
:where(.tui-interface) .tui-progress.is-breakdown .is-theme-secondary {
|
|
6912
|
+
--_segment-fill: var(--tui-theme-secondary-strong);
|
|
6913
|
+
}
|
|
6914
|
+
:where(.tui-interface) .tui-progress.is-breakdown .is-theme-success {
|
|
6915
|
+
--_segment-fill: var(--tui-theme-success-strong);
|
|
6916
|
+
}
|
|
6917
|
+
:where(.tui-interface) .tui-progress.is-breakdown .is-theme-warning {
|
|
6918
|
+
--_segment-fill: var(--tui-theme-warning-strong);
|
|
6919
|
+
}
|
|
6920
|
+
:where(.tui-interface) .tui-progress.is-breakdown .is-theme-danger {
|
|
6921
|
+
--_segment-fill: var(--tui-theme-danger-strong);
|
|
6922
|
+
}
|
|
6923
|
+
:where(.tui-interface) .tui-progress.is-breakdown .is-theme-info {
|
|
6924
|
+
--_segment-fill: var(--tui-theme-info-strong);
|
|
6925
|
+
}
|
|
6926
|
+
:where(.tui-interface) .tui-progress.is-breakdown.is-mode-line .tui-progress__track {
|
|
6927
|
+
gap: var(--_segment-gap);
|
|
6928
|
+
}
|
|
6929
|
+
:where(.tui-interface) .tui-progress.is-breakdown.is-mode-line .tui-progress__bar {
|
|
6930
|
+
flex-shrink: 1;
|
|
6931
|
+
min-inline-size: calc(var(--tui-border-width) * 4);
|
|
6932
|
+
background: var(--_segment-fill) !important;
|
|
6933
|
+
}
|
|
6934
|
+
:where(.tui-interface) .tui-progress.is-breakdown .tui-progress__segment-labels {
|
|
6935
|
+
flex-wrap: wrap;
|
|
6936
|
+
list-style: none;
|
|
6937
|
+
padding: 0;
|
|
6938
|
+
margin-inline: 0;
|
|
6939
|
+
margin-block-end: 0;
|
|
6940
|
+
}
|
|
6941
|
+
:where(.tui-interface) .tui-progress.is-breakdown .tui-progress__segment-label {
|
|
6942
|
+
align-items: center;
|
|
6943
|
+
margin: 0;
|
|
6944
|
+
color: var(--_label);
|
|
6945
|
+
font-weight: normal;
|
|
6946
|
+
}
|
|
6947
|
+
:where(.tui-interface) .tui-progress.is-breakdown .tui-progress__segment-label-text {
|
|
6948
|
+
font-weight: normal;
|
|
6949
|
+
}
|
|
6950
|
+
:where(.tui-interface) .tui-progress.is-breakdown .tui-progress__segment-swatch {
|
|
6951
|
+
flex-shrink: 0;
|
|
6952
|
+
inline-size: 0.75em;
|
|
6953
|
+
block-size: 0.75em;
|
|
6954
|
+
border-radius: var(--tui-radius-sm);
|
|
6955
|
+
background: var(--_segment-fill) !important;
|
|
6956
|
+
}
|
|
6957
|
+
:where(.tui-interface) .tui-progress.is-breakdown .tui-progress__segment-swatch.is-remainder {
|
|
6958
|
+
background: var(--_track) !important;
|
|
6959
|
+
box-shadow: inset 0 0 0 var(--tui-border-width) var(--tui-color-border-control);
|
|
6960
|
+
}
|
|
6865
6961
|
:where(.tui-interface) .tui-progress.is-indeterminate.is-mode-line .tui-progress__bar {
|
|
6866
6962
|
animation: tui-progress-indeterminate 2s ease-in-out infinite backwards;
|
|
6867
6963
|
}
|
|
@@ -6908,6 +7004,17 @@
|
|
|
6908
7004
|
:where(.tui-interface) .tui-progress.is-mode-line .tui-progress__bar {
|
|
6909
7005
|
background: Highlight !important;
|
|
6910
7006
|
}
|
|
7007
|
+
:where(.tui-interface) .tui-progress.is-breakdown.is-mode-line .tui-progress__bar {
|
|
7008
|
+
background: Highlight !important;
|
|
7009
|
+
}
|
|
7010
|
+
:where(.tui-interface) .tui-progress.is-breakdown.is-mode-line .tui-progress__segment-swatch {
|
|
7011
|
+
forced-color-adjust: none;
|
|
7012
|
+
background: Highlight !important;
|
|
7013
|
+
border: 1px solid CanvasText;
|
|
7014
|
+
}
|
|
7015
|
+
:where(.tui-interface) .tui-progress.is-breakdown.is-mode-line .tui-progress__segment-swatch.is-remainder {
|
|
7016
|
+
background: Canvas !important;
|
|
7017
|
+
}
|
|
6911
7018
|
:where(.tui-interface) .tui-progress.is-mode-circle .tui-progress__circle__bar {
|
|
6912
7019
|
forced-color-adjust: none;
|
|
6913
7020
|
background: conic-gradient(Highlight calc(var(--_pct) * 1%), Canvas 0) !important;
|
|
@@ -7091,8 +7198,11 @@
|
|
|
7091
7198
|
}
|
|
7092
7199
|
:where(.tui-interface) .tui-segmented {
|
|
7093
7200
|
--_gap: var(--tui-segmented-gap, 0.5em);
|
|
7094
|
-
--_padding: var(--tui-segmented-padding,
|
|
7095
|
-
--_radius: var(--tui-segmented-radius, var(--tui-radius-
|
|
7201
|
+
--_padding: var(--tui-segmented-padding, 4px);
|
|
7202
|
+
--_radius: var(--tui-segmented-radius, calc(var(--tui-segmented-item-radius, var(--tui-radius-md)) + var(--_padding)));
|
|
7203
|
+
--_h: var(--tui-control-height-md, 2.5rem);
|
|
7204
|
+
--_item-h: calc(var(--_h) - 2 * var(--_padding));
|
|
7205
|
+
--_item-pad-block: 0;
|
|
7096
7206
|
--_bg: var(--tui-segmented-bg, var(--tui-color-bg-muted));
|
|
7097
7207
|
--_fg: var(--tui-segmented-fg, var(--tui-color-fg));
|
|
7098
7208
|
--_border: var(--tui-segmented-border, transparent);
|
|
@@ -7100,7 +7210,7 @@
|
|
|
7100
7210
|
flex-wrap: nowrap;
|
|
7101
7211
|
font-size: var(--tui-control-font-size-md, var(--tui-typography-size-sm));
|
|
7102
7212
|
gap: var(--_gap);
|
|
7103
|
-
padding: var(--_padding);
|
|
7213
|
+
padding: max(0px, var(--_padding) - var(--tui-border-width));
|
|
7104
7214
|
background: var(--_bg);
|
|
7105
7215
|
color: var(--_fg);
|
|
7106
7216
|
border: var(--tui-border-width) solid var(--_border);
|
|
@@ -7112,9 +7222,6 @@
|
|
|
7112
7222
|
:where(.tui-interface) .tui-segmented.is-vertical {
|
|
7113
7223
|
flex-direction: column;
|
|
7114
7224
|
}
|
|
7115
|
-
:where(.tui-interface) .tui-segmented[aria-disabled=true] {
|
|
7116
|
-
opacity: var(--tui-opacity-disabled);
|
|
7117
|
-
}
|
|
7118
7225
|
.tui-interface .tui-segmented.is-variant-pill .tui-segmented__item {
|
|
7119
7226
|
--_item-fg: var(--tui-segmented-item-fg, var(--tui-color-fg));
|
|
7120
7227
|
}
|
|
@@ -7122,17 +7229,23 @@
|
|
|
7122
7229
|
--_bg: transparent;
|
|
7123
7230
|
--_fg: var(--tui-segmented-fg, inherit);
|
|
7124
7231
|
--_border: var(--tui-segmented-border, var(--tui-color-border));
|
|
7232
|
+
--_radius: var(--tui-segmented-radius, var(--tui-radius-full));
|
|
7233
|
+
}
|
|
7234
|
+
:where(.tui-interface) .tui-segmented.is-variant-outline.is-vertical {
|
|
7235
|
+
--_radius: var(--tui-segmented-radius, calc(var(--_item-h) / 2 + var(--_padding)));
|
|
7125
7236
|
}
|
|
7126
7237
|
:where(.tui-interface) .tui-segmented.is-variant-underline {
|
|
7127
7238
|
--_bg: transparent;
|
|
7128
7239
|
--_fg: var(--tui-segmented-fg, inherit);
|
|
7129
7240
|
--_padding: 0;
|
|
7130
7241
|
--_gap: var(--tui-segmented-gap, 1.15em);
|
|
7242
|
+
--_item-h: var(--_h);
|
|
7243
|
+
--_item-pad-block: 0.35em;
|
|
7131
7244
|
border-radius: 0;
|
|
7132
7245
|
border-block-end: var(--tui-border-width) solid var(--tui-color-divider);
|
|
7133
7246
|
}
|
|
7134
7247
|
.tui-interface .tui-segmented__item {
|
|
7135
|
-
--_item-padding: var(--tui-segmented-item-padding,
|
|
7248
|
+
--_item-padding: var(--tui-segmented-item-padding, var(--_item-pad-block) 1.15em);
|
|
7136
7249
|
--_item-radius: var(--tui-segmented-item-radius, var(--tui-radius-md));
|
|
7137
7250
|
--_item-bg: transparent;
|
|
7138
7251
|
--_item-fg: var(--tui-segmented-item-fg, var(--tui-color-fg-muted));
|
|
@@ -7142,7 +7255,7 @@
|
|
|
7142
7255
|
display: inline-flex;
|
|
7143
7256
|
align-items: center;
|
|
7144
7257
|
justify-content: center;
|
|
7145
|
-
min-height: var(--
|
|
7258
|
+
min-height: var(--_item-h);
|
|
7146
7259
|
gap: 0.5em;
|
|
7147
7260
|
padding: var(--_item-padding);
|
|
7148
7261
|
border: none;
|
|
@@ -7176,7 +7289,7 @@
|
|
|
7176
7289
|
}
|
|
7177
7290
|
.tui-interface .tui-segmented.is-variant-outline .tui-segmented__item {
|
|
7178
7291
|
--_item-radius: var(--tui-segmented-item-radius, var(--tui-radius-full));
|
|
7179
|
-
--_item-border:
|
|
7292
|
+
--_item-border: transparent;
|
|
7180
7293
|
--_item-bg-active: var(--tui-segmented-item-bg-active, var(--tui-theme-primary-subtlest));
|
|
7181
7294
|
--_item-fg-active: var(--tui-segmented-item-fg-active, var(--tui-theme-primary-strong));
|
|
7182
7295
|
--_item-border-active: var(--tui-segmented-item-border-active, var(--tui-theme-primary-base));
|
|
@@ -7218,28 +7331,47 @@
|
|
|
7218
7331
|
.tui-interface .tui-segmented.is-variant-underline .tui-segmented__item:focus-visible {
|
|
7219
7332
|
outline-offset: calc(var(--tui-focus-ring-offset) * -1);
|
|
7220
7333
|
}
|
|
7334
|
+
.tui-interface .tui-segmented .tui-segmented__item[data-disabled] {
|
|
7335
|
+
--_item-fg: var(--tui-segmented-item-fg-disabled, var(--tui-color-fg-muted));
|
|
7336
|
+
}
|
|
7337
|
+
@media not (forced-colors: active) {
|
|
7338
|
+
.tui-interface .tui-segmented.is-variant-pill .tui-segmented__item[data-disabled][aria-checked=true] {
|
|
7339
|
+
background: color-mix(in srgb, var(--_item-bg-active) calc(var(--tui-opacity-disabled) * 100%), transparent);
|
|
7340
|
+
}
|
|
7341
|
+
.tui-interface .tui-segmented.is-variant-outline .tui-segmented__item[data-disabled][aria-checked=true] {
|
|
7342
|
+
background: color-mix(in srgb, var(--_item-bg-active) calc(var(--tui-opacity-disabled) * 100%), transparent);
|
|
7343
|
+
border-color: color-mix(in srgb, var(--_item-border-active) calc(var(--tui-opacity-disabled) * 100%), transparent);
|
|
7344
|
+
}
|
|
7345
|
+
.tui-interface .tui-segmented.is-variant-outline .tui-segmented__item[data-disabled]:not([aria-checked=true]) {
|
|
7346
|
+
color: color-mix(in srgb, var(--_item-fg) calc(var(--tui-opacity-disabled) * 100%), transparent);
|
|
7347
|
+
border-color: color-mix(in srgb, var(--_item-border) calc(var(--tui-opacity-disabled) * 100%), transparent);
|
|
7348
|
+
}
|
|
7349
|
+
.tui-interface .tui-segmented.is-variant-underline .tui-segmented__item[data-disabled][aria-checked=true] {
|
|
7350
|
+
border-bottom-color: color-mix(in srgb, var(--_indicator) calc(var(--tui-opacity-disabled) * 100%), transparent);
|
|
7351
|
+
}
|
|
7352
|
+
}
|
|
7221
7353
|
.tui-interface .tui-segmented.is-size-xs {
|
|
7222
7354
|
--_gap: var(--tui-segmented-gap, 0.35em);
|
|
7223
|
-
--_padding: var(--tui-segmented-padding,
|
|
7355
|
+
--_padding: var(--tui-segmented-padding, 2px);
|
|
7356
|
+
--_h: var(--tui-control-height-xs, 1.5rem);
|
|
7224
7357
|
font-size: var(--tui-control-font-size-sm, var(--tui-typography-size-xs));
|
|
7225
7358
|
}
|
|
7226
7359
|
.tui-interface .tui-segmented.is-size-sm {
|
|
7360
|
+
--_h: var(--tui-control-height-sm, 2rem);
|
|
7227
7361
|
font-size: var(--tui-control-font-size-sm, var(--tui-typography-size-xs));
|
|
7228
7362
|
}
|
|
7229
7363
|
.tui-interface .tui-segmented.is-size-lg {
|
|
7364
|
+
--_h: var(--tui-control-height-lg, 3rem);
|
|
7230
7365
|
font-size: var(--tui-control-font-size-lg, var(--tui-typography-size-md));
|
|
7231
7366
|
}
|
|
7232
7367
|
.tui-interface .tui-segmented.is-size-xs .tui-segmented__item {
|
|
7233
|
-
--_item-padding: var(--tui-segmented-item-padding,
|
|
7234
|
-
min-height: var(--tui-control-height-xs, 1.5rem);
|
|
7368
|
+
--_item-padding: var(--tui-segmented-item-padding, var(--_item-pad-block) 0.65em);
|
|
7235
7369
|
}
|
|
7236
7370
|
.tui-interface .tui-segmented.is-size-sm .tui-segmented__item {
|
|
7237
|
-
--_item-padding: var(--tui-segmented-item-padding,
|
|
7238
|
-
min-height: var(--tui-control-height-sm, 2rem);
|
|
7371
|
+
--_item-padding: var(--tui-segmented-item-padding, var(--_item-pad-block) 1em);
|
|
7239
7372
|
}
|
|
7240
7373
|
.tui-interface .tui-segmented.is-size-lg .tui-segmented__item {
|
|
7241
|
-
--_item-padding: var(--tui-segmented-item-padding,
|
|
7242
|
-
min-height: var(--tui-control-height-lg, 3rem);
|
|
7374
|
+
--_item-padding: var(--tui-segmented-item-padding, var(--_item-pad-block) 1.5em);
|
|
7243
7375
|
}
|
|
7244
7376
|
:where(.tui-interface) .tui-segmented__item-icon {
|
|
7245
7377
|
display: inline-flex;
|
|
@@ -7256,6 +7388,9 @@
|
|
|
7256
7388
|
min-width: 0;
|
|
7257
7389
|
}
|
|
7258
7390
|
@media (forced-colors: active) {
|
|
7391
|
+
.tui-interface .tui-segmented .tui-segmented__item[data-disabled]:not([aria-checked=true]) {
|
|
7392
|
+
color: GrayText;
|
|
7393
|
+
}
|
|
7259
7394
|
.tui-interface .tui-segmented__item[aria-checked=true] {
|
|
7260
7395
|
forced-color-adjust: none;
|
|
7261
7396
|
background: Highlight;
|
|
@@ -7881,6 +8016,7 @@
|
|
|
7881
8016
|
align-items: center;
|
|
7882
8017
|
gap: var(--tui-nav-menu-bar-gap, var(--tui-spacing-xs));
|
|
7883
8018
|
}
|
|
8019
|
+
:where(.tui-interface) .tui-nav-menu.is-horizontal > .tui-nav-menu__list,
|
|
7884
8020
|
:where(.tui-interface) .tui-nav-menu.is-horizontal > .tui-nav-menu__group > .tui-nav-menu__list {
|
|
7885
8021
|
flex-direction: row;
|
|
7886
8022
|
flex-wrap: wrap;
|