@tangible/ui 0.2.53 → 0.2.54
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/components/Checkbox/Checkbox.js +5 -2
- package/components/DatePicker/DatePicker.js +2 -1
- package/components/DatePicker/DateRangePicker.js +2 -1
- package/components/DatePicker/PickerTrigger.js +2 -1
- package/figma-tokens.json +1 -1
- package/icons/icons.svg +1 -1
- package/icons/sprite-version.js +1 -1
- package/icons/sprite.php +1 -1
- package/package.json +1 -1
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +36 -5
- package/styles/all.expanded.unlayered.css +36 -5
- package/styles/all.unlayered.css +1 -1
- package/styles/components/checkbox.scss +53 -12
- package/tui-manifest.json +3 -2
- package/utils/focus-trap.js +9 -2
- package/utils/tabbable.d.ts +1 -1
- package/utils/tabbable.js +20 -5
- package/vanilla/modal.js +2 -2
- package/vanilla/modal.min.js +1 -1
package/styles/all.expanded.css
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
*/
|
|
63
63
|
/* @tui-tokens
|
|
64
64
|
--tui-checkbox-accent
|
|
65
|
+
--tui-checkbox-icon
|
|
65
66
|
--tui-checkbox-border
|
|
66
67
|
--tui-checkbox-border-hover
|
|
67
68
|
--tui-checkbox-border-invalid
|
|
@@ -2358,10 +2359,12 @@
|
|
|
2358
2359
|
--_border: var(--_border-rest);
|
|
2359
2360
|
--_radius: var(--tui-checkbox-radius, var(--tui-radius-sm));
|
|
2360
2361
|
--_bg: var(--tui-checkbox-bg, var(--tui-color-bg));
|
|
2362
|
+
--_icon: var(--tui-checkbox-icon, var(--tui-theme-primary-on-base));
|
|
2361
2363
|
appearance: none;
|
|
2362
2364
|
margin: 0;
|
|
2363
2365
|
font-size: inherit;
|
|
2364
2366
|
display: inline-block;
|
|
2367
|
+
position: relative;
|
|
2365
2368
|
width: 1em;
|
|
2366
2369
|
min-width: 1em;
|
|
2367
2370
|
height: 1em;
|
|
@@ -2370,10 +2373,25 @@
|
|
|
2370
2373
|
border: var(--tui-border-width) solid var(--_border);
|
|
2371
2374
|
border-radius: var(--_radius);
|
|
2372
2375
|
background-color: var(--_bg);
|
|
2373
|
-
background-size: 75%;
|
|
2374
|
-
background-position: center;
|
|
2375
|
-
background-repeat: no-repeat;
|
|
2376
2376
|
cursor: pointer;
|
|
2377
|
+
print-color-adjust: exact;
|
|
2378
|
+
}
|
|
2379
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2380
|
+
.tui-inline-choice input[type=checkbox])::before {
|
|
2381
|
+
content: "";
|
|
2382
|
+
position: absolute;
|
|
2383
|
+
inset: 0;
|
|
2384
|
+
margin: auto;
|
|
2385
|
+
width: 75%;
|
|
2386
|
+
height: 75%;
|
|
2387
|
+
background-color: var(--_icon);
|
|
2388
|
+
print-color-adjust: exact;
|
|
2389
|
+
-webkit-mask: var(--_icon-shape, none) center/contain no-repeat;
|
|
2390
|
+
mask: var(--_icon-shape, none) center/contain no-repeat;
|
|
2391
|
+
visibility: hidden;
|
|
2392
|
+
}
|
|
2393
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2394
|
+
.tui-inline-choice input[type=checkbox]) {
|
|
2377
2395
|
transition-duration: var(--tui-motion-duration);
|
|
2378
2396
|
transition-timing-function: var(--tui-motion-timing);
|
|
2379
2397
|
transition-property: background-color, border-color;
|
|
@@ -2382,13 +2400,21 @@
|
|
|
2382
2400
|
.tui-inline-choice input[type=checkbox]):checked {
|
|
2383
2401
|
background-color: var(--_accent);
|
|
2384
2402
|
border-color: var(--_accent);
|
|
2385
|
-
|
|
2403
|
+
}
|
|
2404
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2405
|
+
.tui-inline-choice input[type=checkbox]):checked::before {
|
|
2406
|
+
--_icon-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
|
|
2407
|
+
visibility: visible;
|
|
2386
2408
|
}
|
|
2387
2409
|
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2388
2410
|
.tui-inline-choice input[type=checkbox]):indeterminate {
|
|
2389
2411
|
background-color: var(--_accent);
|
|
2390
2412
|
border-color: var(--_accent);
|
|
2391
|
-
|
|
2413
|
+
}
|
|
2414
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2415
|
+
.tui-inline-choice input[type=checkbox]):indeterminate::before {
|
|
2416
|
+
--_icon-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
|
|
2417
|
+
visibility: visible;
|
|
2392
2418
|
}
|
|
2393
2419
|
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2394
2420
|
.tui-inline-choice input[type=checkbox]):hover:not(:disabled) {
|
|
@@ -2435,6 +2461,11 @@
|
|
|
2435
2461
|
.tui-inline-choice input[type=checkbox]) {
|
|
2436
2462
|
forced-color-adjust: auto;
|
|
2437
2463
|
}
|
|
2464
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2465
|
+
.tui-inline-choice input[type=checkbox])::before {
|
|
2466
|
+
forced-color-adjust: none;
|
|
2467
|
+
background-color: CanvasText;
|
|
2468
|
+
}
|
|
2438
2469
|
.tui-interface .tui-inline-choice.is-disabled:has(input[type=checkbox]) > :not(input) {
|
|
2439
2470
|
color: GrayText;
|
|
2440
2471
|
}
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
*/
|
|
63
63
|
/* @tui-tokens
|
|
64
64
|
--tui-checkbox-accent
|
|
65
|
+
--tui-checkbox-icon
|
|
65
66
|
--tui-checkbox-border
|
|
66
67
|
--tui-checkbox-border-hover
|
|
67
68
|
--tui-checkbox-border-invalid
|
|
@@ -2358,10 +2359,12 @@
|
|
|
2358
2359
|
--_border: var(--_border-rest);
|
|
2359
2360
|
--_radius: var(--tui-checkbox-radius, var(--tui-radius-sm));
|
|
2360
2361
|
--_bg: var(--tui-checkbox-bg, var(--tui-color-bg));
|
|
2362
|
+
--_icon: var(--tui-checkbox-icon, var(--tui-theme-primary-on-base));
|
|
2361
2363
|
appearance: none;
|
|
2362
2364
|
margin: 0;
|
|
2363
2365
|
font-size: inherit;
|
|
2364
2366
|
display: inline-block;
|
|
2367
|
+
position: relative;
|
|
2365
2368
|
width: 1em;
|
|
2366
2369
|
min-width: 1em;
|
|
2367
2370
|
height: 1em;
|
|
@@ -2370,10 +2373,25 @@
|
|
|
2370
2373
|
border: var(--tui-border-width) solid var(--_border);
|
|
2371
2374
|
border-radius: var(--_radius);
|
|
2372
2375
|
background-color: var(--_bg);
|
|
2373
|
-
background-size: 75%;
|
|
2374
|
-
background-position: center;
|
|
2375
|
-
background-repeat: no-repeat;
|
|
2376
2376
|
cursor: pointer;
|
|
2377
|
+
print-color-adjust: exact;
|
|
2378
|
+
}
|
|
2379
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2380
|
+
.tui-inline-choice input[type=checkbox])::before {
|
|
2381
|
+
content: "";
|
|
2382
|
+
position: absolute;
|
|
2383
|
+
inset: 0;
|
|
2384
|
+
margin: auto;
|
|
2385
|
+
width: 75%;
|
|
2386
|
+
height: 75%;
|
|
2387
|
+
background-color: var(--_icon);
|
|
2388
|
+
print-color-adjust: exact;
|
|
2389
|
+
-webkit-mask: var(--_icon-shape, none) center/contain no-repeat;
|
|
2390
|
+
mask: var(--_icon-shape, none) center/contain no-repeat;
|
|
2391
|
+
visibility: hidden;
|
|
2392
|
+
}
|
|
2393
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2394
|
+
.tui-inline-choice input[type=checkbox]) {
|
|
2377
2395
|
transition-duration: var(--tui-motion-duration);
|
|
2378
2396
|
transition-timing-function: var(--tui-motion-timing);
|
|
2379
2397
|
transition-property: background-color, border-color;
|
|
@@ -2382,13 +2400,21 @@
|
|
|
2382
2400
|
.tui-inline-choice input[type=checkbox]):checked {
|
|
2383
2401
|
background-color: var(--_accent);
|
|
2384
2402
|
border-color: var(--_accent);
|
|
2385
|
-
|
|
2403
|
+
}
|
|
2404
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2405
|
+
.tui-inline-choice input[type=checkbox]):checked::before {
|
|
2406
|
+
--_icon-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
|
|
2407
|
+
visibility: visible;
|
|
2386
2408
|
}
|
|
2387
2409
|
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2388
2410
|
.tui-inline-choice input[type=checkbox]):indeterminate {
|
|
2389
2411
|
background-color: var(--_accent);
|
|
2390
2412
|
border-color: var(--_accent);
|
|
2391
|
-
|
|
2413
|
+
}
|
|
2414
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2415
|
+
.tui-inline-choice input[type=checkbox]):indeterminate::before {
|
|
2416
|
+
--_icon-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
|
|
2417
|
+
visibility: visible;
|
|
2392
2418
|
}
|
|
2393
2419
|
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2394
2420
|
.tui-inline-choice input[type=checkbox]):hover:not(:disabled) {
|
|
@@ -2435,6 +2461,11 @@
|
|
|
2435
2461
|
.tui-inline-choice input[type=checkbox]) {
|
|
2436
2462
|
forced-color-adjust: auto;
|
|
2437
2463
|
}
|
|
2464
|
+
.tui-interface :is(.tui-inline-choice__control[type=checkbox],
|
|
2465
|
+
.tui-inline-choice input[type=checkbox])::before {
|
|
2466
|
+
forced-color-adjust: none;
|
|
2467
|
+
background-color: CanvasText;
|
|
2468
|
+
}
|
|
2438
2469
|
.tui-interface .tui-inline-choice.is-disabled:has(input[type=checkbox]) > :not(input) {
|
|
2439
2470
|
color: GrayText;
|
|
2440
2471
|
}
|