@tangible/ui 0.0.15 → 0.0.17
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/package.json +1 -1
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +33 -12
- package/styles/all.expanded.unlayered.css +33 -12
- package/styles/all.unlayered.css +1 -1
- package/tui-manifest.json +10 -3
package/styles/all.expanded.css
CHANGED
|
@@ -197,6 +197,10 @@
|
|
|
197
197
|
/* @tui-tokens
|
|
198
198
|
--tui-move-handle-size
|
|
199
199
|
--tui-move-handle-icon-size
|
|
200
|
+
--tui-move-handle-fg
|
|
201
|
+
--tui-move-handle-bg
|
|
202
|
+
--tui-move-handle-fg-interact
|
|
203
|
+
--tui-move-handle-bg-interact
|
|
200
204
|
*/
|
|
201
205
|
/* @tui-tokens
|
|
202
206
|
--tui-notice-bg
|
|
@@ -264,8 +268,11 @@
|
|
|
264
268
|
--tui-switch-accent
|
|
265
269
|
--tui-switch-bg
|
|
266
270
|
--tui-switch-border
|
|
271
|
+
--tui-switch-border-width
|
|
267
272
|
--tui-switch-thumb-bg
|
|
273
|
+
--tui-switch-thumb-size
|
|
268
274
|
--tui-switch-track-height
|
|
275
|
+
--tui-switch-track-width
|
|
269
276
|
--tui-switch-size
|
|
270
277
|
--tui-switch-label-color
|
|
271
278
|
--tui-switch-font-size
|
|
@@ -3473,11 +3480,17 @@
|
|
|
3473
3480
|
.tui-interface .tui-move-handle {
|
|
3474
3481
|
--_size: var(--tui-move-handle-size, 40px);
|
|
3475
3482
|
--_icon-size: var(--tui-move-handle-icon-size, calc(var(--_size) * 0.6));
|
|
3476
|
-
--_fg: var(--tui-color-fg-muted);
|
|
3477
|
-
--_bg: var(--tui-color-bg-muted);
|
|
3478
|
-
--_fg-interact: var(
|
|
3479
|
-
|
|
3480
|
-
|
|
3483
|
+
--_fg: var(--tui-move-handle-fg, var(--tui-color-fg-muted));
|
|
3484
|
+
--_bg: var(--tui-move-handle-bg, var(--tui-color-bg-muted));
|
|
3485
|
+
--_fg-interact: var(
|
|
3486
|
+
--tui-move-handle-fg-interact,
|
|
3487
|
+
var(--tui-theme-primary-base)
|
|
3488
|
+
);
|
|
3489
|
+
--_bg-interact: var(
|
|
3490
|
+
--tui-move-handle-bg-interact,
|
|
3491
|
+
var(--tui-theme-primary-subtlest)
|
|
3492
|
+
);
|
|
3493
|
+
--_center-height: calc(var(--_size) * 0.6);
|
|
3481
3494
|
display: inline-flex;
|
|
3482
3495
|
flex-direction: column;
|
|
3483
3496
|
align-items: center;
|
|
@@ -3634,7 +3647,6 @@
|
|
|
3634
3647
|
}
|
|
3635
3648
|
.tui-interface .tui-move-handle.is-size-sm {
|
|
3636
3649
|
--_size: var(--tui-move-handle-size, 32px);
|
|
3637
|
-
--_center-height: 20px;
|
|
3638
3650
|
}
|
|
3639
3651
|
.tui-interface .tui-move-handle.is-locked {
|
|
3640
3652
|
pointer-events: none;
|
|
@@ -4731,7 +4743,15 @@
|
|
|
4731
4743
|
--_border: var(--tui-switch-border, var(--_bg));
|
|
4732
4744
|
--_thumb-bg: var(--tui-switch-thumb-bg, var(--tui-color-bg));
|
|
4733
4745
|
--_track-height: var(--tui-switch-track-height, 1.4285em);
|
|
4734
|
-
--
|
|
4746
|
+
--_track-width: var(--tui-switch-track-width, 2.8575em);
|
|
4747
|
+
--_border-width: var(--tui-switch-border-width, var(--tui-border-width));
|
|
4748
|
+
--_thumb-size: var(
|
|
4749
|
+
--tui-switch-thumb-size,
|
|
4750
|
+
calc(var(--_track-height) - 4px)
|
|
4751
|
+
);
|
|
4752
|
+
--_thumb-inset: calc(
|
|
4753
|
+
(var(--_track-height) - 2 * var(--_border-width) - var(--_thumb-size)) / 2
|
|
4754
|
+
);
|
|
4735
4755
|
font-size: var(--tui-switch-size, var(--tui-typography-size-md));
|
|
4736
4756
|
}
|
|
4737
4757
|
:where(.tui-interface) .tui-switch__track.is-size-sm {
|
|
@@ -4745,10 +4765,10 @@
|
|
|
4745
4765
|
display: inline-flex;
|
|
4746
4766
|
align-items: center;
|
|
4747
4767
|
flex-shrink: 0;
|
|
4748
|
-
width:
|
|
4768
|
+
width: var(--_track-width);
|
|
4749
4769
|
height: var(--_track-height);
|
|
4750
4770
|
border-radius: 9999px;
|
|
4751
|
-
border: var(--
|
|
4771
|
+
border: var(--_border-width) solid var(--_border);
|
|
4752
4772
|
background-color: var(--_bg);
|
|
4753
4773
|
padding: 0;
|
|
4754
4774
|
cursor: pointer;
|
|
@@ -4781,19 +4801,20 @@
|
|
|
4781
4801
|
height: var(--_thumb-size);
|
|
4782
4802
|
border-radius: 50%;
|
|
4783
4803
|
background-color: var(--_thumb-bg);
|
|
4784
|
-
transform: translateX(
|
|
4804
|
+
transform: translateX(var(--_thumb-inset));
|
|
4785
4805
|
transition-duration: var(--tui-motion-duration);
|
|
4786
4806
|
transition-timing-function: var(--tui-motion-timing);
|
|
4787
4807
|
transition-property: transform;
|
|
4788
4808
|
pointer-events: none;
|
|
4789
4809
|
}
|
|
4790
4810
|
:where(.tui-interface) .tui-switch__track[aria-checked=true] .tui-switch__thumb {
|
|
4791
|
-
transform: translateX(calc(2
|
|
4811
|
+
transform: translateX(calc(var(--_track-width) - 2 * var(--_border-width) - var(--_thumb-size) - var(--_thumb-inset)));
|
|
4792
4812
|
}
|
|
4793
4813
|
@media (forced-colors: active) {
|
|
4794
4814
|
:where(.tui-interface) .tui-switch__track {
|
|
4795
4815
|
forced-color-adjust: none;
|
|
4796
|
-
|
|
4816
|
+
--_border-width: 2px;
|
|
4817
|
+
border: var(--_border-width) solid CanvasText;
|
|
4797
4818
|
background-color: Canvas;
|
|
4798
4819
|
}
|
|
4799
4820
|
:where(.tui-interface) .tui-switch__track[aria-checked=true] {
|
|
@@ -197,6 +197,10 @@
|
|
|
197
197
|
/* @tui-tokens
|
|
198
198
|
--tui-move-handle-size
|
|
199
199
|
--tui-move-handle-icon-size
|
|
200
|
+
--tui-move-handle-fg
|
|
201
|
+
--tui-move-handle-bg
|
|
202
|
+
--tui-move-handle-fg-interact
|
|
203
|
+
--tui-move-handle-bg-interact
|
|
200
204
|
*/
|
|
201
205
|
/* @tui-tokens
|
|
202
206
|
--tui-notice-bg
|
|
@@ -264,8 +268,11 @@
|
|
|
264
268
|
--tui-switch-accent
|
|
265
269
|
--tui-switch-bg
|
|
266
270
|
--tui-switch-border
|
|
271
|
+
--tui-switch-border-width
|
|
267
272
|
--tui-switch-thumb-bg
|
|
273
|
+
--tui-switch-thumb-size
|
|
268
274
|
--tui-switch-track-height
|
|
275
|
+
--tui-switch-track-width
|
|
269
276
|
--tui-switch-size
|
|
270
277
|
--tui-switch-label-color
|
|
271
278
|
--tui-switch-font-size
|
|
@@ -3473,11 +3480,17 @@
|
|
|
3473
3480
|
.tui-interface .tui-move-handle {
|
|
3474
3481
|
--_size: var(--tui-move-handle-size, 40px);
|
|
3475
3482
|
--_icon-size: var(--tui-move-handle-icon-size, calc(var(--_size) * 0.6));
|
|
3476
|
-
--_fg: var(--tui-color-fg-muted);
|
|
3477
|
-
--_bg: var(--tui-color-bg-muted);
|
|
3478
|
-
--_fg-interact: var(
|
|
3479
|
-
|
|
3480
|
-
|
|
3483
|
+
--_fg: var(--tui-move-handle-fg, var(--tui-color-fg-muted));
|
|
3484
|
+
--_bg: var(--tui-move-handle-bg, var(--tui-color-bg-muted));
|
|
3485
|
+
--_fg-interact: var(
|
|
3486
|
+
--tui-move-handle-fg-interact,
|
|
3487
|
+
var(--tui-theme-primary-base)
|
|
3488
|
+
);
|
|
3489
|
+
--_bg-interact: var(
|
|
3490
|
+
--tui-move-handle-bg-interact,
|
|
3491
|
+
var(--tui-theme-primary-subtlest)
|
|
3492
|
+
);
|
|
3493
|
+
--_center-height: calc(var(--_size) * 0.6);
|
|
3481
3494
|
display: inline-flex;
|
|
3482
3495
|
flex-direction: column;
|
|
3483
3496
|
align-items: center;
|
|
@@ -3634,7 +3647,6 @@
|
|
|
3634
3647
|
}
|
|
3635
3648
|
.tui-interface .tui-move-handle.is-size-sm {
|
|
3636
3649
|
--_size: var(--tui-move-handle-size, 32px);
|
|
3637
|
-
--_center-height: 20px;
|
|
3638
3650
|
}
|
|
3639
3651
|
.tui-interface .tui-move-handle.is-locked {
|
|
3640
3652
|
pointer-events: none;
|
|
@@ -4731,7 +4743,15 @@
|
|
|
4731
4743
|
--_border: var(--tui-switch-border, var(--_bg));
|
|
4732
4744
|
--_thumb-bg: var(--tui-switch-thumb-bg, var(--tui-color-bg));
|
|
4733
4745
|
--_track-height: var(--tui-switch-track-height, 1.4285em);
|
|
4734
|
-
--
|
|
4746
|
+
--_track-width: var(--tui-switch-track-width, 2.8575em);
|
|
4747
|
+
--_border-width: var(--tui-switch-border-width, var(--tui-border-width));
|
|
4748
|
+
--_thumb-size: var(
|
|
4749
|
+
--tui-switch-thumb-size,
|
|
4750
|
+
calc(var(--_track-height) - 4px)
|
|
4751
|
+
);
|
|
4752
|
+
--_thumb-inset: calc(
|
|
4753
|
+
(var(--_track-height) - 2 * var(--_border-width) - var(--_thumb-size)) / 2
|
|
4754
|
+
);
|
|
4735
4755
|
font-size: var(--tui-switch-size, var(--tui-typography-size-md));
|
|
4736
4756
|
}
|
|
4737
4757
|
:where(.tui-interface) .tui-switch__track.is-size-sm {
|
|
@@ -4745,10 +4765,10 @@
|
|
|
4745
4765
|
display: inline-flex;
|
|
4746
4766
|
align-items: center;
|
|
4747
4767
|
flex-shrink: 0;
|
|
4748
|
-
width:
|
|
4768
|
+
width: var(--_track-width);
|
|
4749
4769
|
height: var(--_track-height);
|
|
4750
4770
|
border-radius: 9999px;
|
|
4751
|
-
border: var(--
|
|
4771
|
+
border: var(--_border-width) solid var(--_border);
|
|
4752
4772
|
background-color: var(--_bg);
|
|
4753
4773
|
padding: 0;
|
|
4754
4774
|
cursor: pointer;
|
|
@@ -4781,19 +4801,20 @@
|
|
|
4781
4801
|
height: var(--_thumb-size);
|
|
4782
4802
|
border-radius: 50%;
|
|
4783
4803
|
background-color: var(--_thumb-bg);
|
|
4784
|
-
transform: translateX(
|
|
4804
|
+
transform: translateX(var(--_thumb-inset));
|
|
4785
4805
|
transition-duration: var(--tui-motion-duration);
|
|
4786
4806
|
transition-timing-function: var(--tui-motion-timing);
|
|
4787
4807
|
transition-property: transform;
|
|
4788
4808
|
pointer-events: none;
|
|
4789
4809
|
}
|
|
4790
4810
|
:where(.tui-interface) .tui-switch__track[aria-checked=true] .tui-switch__thumb {
|
|
4791
|
-
transform: translateX(calc(2
|
|
4811
|
+
transform: translateX(calc(var(--_track-width) - 2 * var(--_border-width) - var(--_thumb-size) - var(--_thumb-inset)));
|
|
4792
4812
|
}
|
|
4793
4813
|
@media (forced-colors: active) {
|
|
4794
4814
|
:where(.tui-interface) .tui-switch__track {
|
|
4795
4815
|
forced-color-adjust: none;
|
|
4796
|
-
|
|
4816
|
+
--_border-width: 2px;
|
|
4817
|
+
border: var(--_border-width) solid CanvasText;
|
|
4797
4818
|
background-color: Canvas;
|
|
4798
4819
|
}
|
|
4799
4820
|
:where(.tui-interface) .tui-switch__track[aria-checked=true] {
|