@tangible/ui 0.2.52 → 0.2.53
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/Accordion/Accordion.js +10 -4
- package/components/Checkbox/Checkbox.js +2 -0
- package/components/ColorPicker/ColorField.js +15 -4
- package/components/Field/Field.js +19 -0
- package/components/Pager/Pager.d.ts +2 -1
- package/components/Pager/Pager.js +3 -114
- package/components/Switch/Switch.js +2 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +3 -0
- 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 +9 -1
- package/skills/building-with-tui/SKILL.md +48 -2
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +29 -20
- package/styles/all.expanded.unlayered.css +29 -20
- package/styles/all.unlayered.css +1 -1
- package/styles/components/color-picker.scss +4 -1
- package/styles/components/move-handle.scss +17 -5
- package/styles/core.css +1 -1
- package/styles/core.unlayered.css +1 -1
- package/styles/index.scss +14 -0
- package/tui-manifest.json +4 -3
- package/utils/pager.d.ts +49 -0
- package/utils/pager.js +129 -0
- package/utils/self-labelling.d.ts +12 -0
- package/utils/self-labelling.js +18 -0
- package/vanilla/accordion.d.ts +94 -0
- package/vanilla/accordion.js +317 -0
- package/vanilla/accordion.min.js +1 -0
- package/vanilla/styles.css +1 -1
- package/vanilla/styles.unlayered.css +1 -1
package/styles/all.expanded.css
CHANGED
|
@@ -290,6 +290,7 @@
|
|
|
290
290
|
--tui-move-handle-bg
|
|
291
291
|
--tui-move-handle-fg-interact
|
|
292
292
|
--tui-move-handle-bg-interact
|
|
293
|
+
--tui-move-handle-fg-disabled
|
|
293
294
|
*/
|
|
294
295
|
/* @tui-tokens
|
|
295
296
|
--tui-notice-bg
|
|
@@ -1203,6 +1204,10 @@
|
|
|
1203
1204
|
.tui-interface[data-theme] {
|
|
1204
1205
|
color: var(--tui-color-fg);
|
|
1205
1206
|
}
|
|
1207
|
+
.tui-interface[hidden]:not([hidden=until-found i]),
|
|
1208
|
+
.tui-interface [hidden]:not([hidden=until-found i]) {
|
|
1209
|
+
display: none !important;
|
|
1210
|
+
}
|
|
1206
1211
|
.tui-interface,
|
|
1207
1212
|
.tui-interface *,
|
|
1208
1213
|
.tui-interface *::before,
|
|
@@ -6260,6 +6265,10 @@
|
|
|
6260
6265
|
--tui-move-handle-bg-interact,
|
|
6261
6266
|
var(--tui-theme-primary-subtlest)
|
|
6262
6267
|
);
|
|
6268
|
+
--_fg-disabled: var(
|
|
6269
|
+
--tui-move-handle-fg-disabled,
|
|
6270
|
+
color-mix(in srgb, var(--_fg) 40%, transparent)
|
|
6271
|
+
);
|
|
6263
6272
|
--_center-height: calc(var(--_size) * 0.6);
|
|
6264
6273
|
display: inline-flex;
|
|
6265
6274
|
flex-direction: column;
|
|
@@ -6310,7 +6319,7 @@
|
|
|
6310
6319
|
}
|
|
6311
6320
|
.tui-interface .tui-move-handle__up:disabled, .tui-interface .tui-move-handle__down:disabled {
|
|
6312
6321
|
pointer-events: none;
|
|
6313
|
-
|
|
6322
|
+
color: var(--_fg-disabled);
|
|
6314
6323
|
}
|
|
6315
6324
|
.tui-interface .tui-move-handle__center {
|
|
6316
6325
|
display: flex;
|
|
@@ -6471,34 +6480,34 @@
|
|
|
6471
6480
|
min-height: 24px;
|
|
6472
6481
|
}
|
|
6473
6482
|
@media (forced-colors: active) {
|
|
6474
|
-
.tui-move-handle__up,
|
|
6475
|
-
.tui-move-handle__down,
|
|
6476
|
-
.tui-move-handle__handle,
|
|
6477
|
-
.tui-move-handle.is-handle {
|
|
6483
|
+
.tui-interface .tui-move-handle__up,
|
|
6484
|
+
.tui-interface .tui-move-handle__down,
|
|
6485
|
+
.tui-interface .tui-move-handle__handle,
|
|
6486
|
+
.tui-interface .tui-move-handle.is-handle {
|
|
6478
6487
|
forced-color-adjust: none;
|
|
6479
6488
|
color: CanvasText;
|
|
6480
6489
|
}
|
|
6481
|
-
.tui-move-handle__up:hover, .tui-move-handle__up:active,
|
|
6482
|
-
.tui-move-handle__down:hover,
|
|
6483
|
-
.tui-move-handle__down:active,
|
|
6484
|
-
.tui-move-handle__handle:hover,
|
|
6485
|
-
.tui-move-handle__handle:active,
|
|
6486
|
-
.tui-move-handle.is-handle:hover,
|
|
6487
|
-
.tui-move-handle.is-handle:active {
|
|
6490
|
+
.tui-interface .tui-move-handle__up:hover, .tui-interface .tui-move-handle__up:active,
|
|
6491
|
+
.tui-interface .tui-move-handle__down:hover,
|
|
6492
|
+
.tui-interface .tui-move-handle__down:active,
|
|
6493
|
+
.tui-interface .tui-move-handle__handle:hover,
|
|
6494
|
+
.tui-interface .tui-move-handle__handle:active,
|
|
6495
|
+
.tui-interface .tui-move-handle.is-handle:hover,
|
|
6496
|
+
.tui-interface .tui-move-handle.is-handle:active {
|
|
6488
6497
|
background-color: Highlight;
|
|
6489
6498
|
color: Canvas;
|
|
6490
6499
|
}
|
|
6491
|
-
.tui-move-handle__up:focus-visible,
|
|
6492
|
-
.tui-move-handle__down:focus-visible,
|
|
6493
|
-
.tui-move-handle__handle:focus-visible,
|
|
6494
|
-
.tui-move-handle.is-handle:focus-visible {
|
|
6500
|
+
.tui-interface .tui-move-handle__up:focus-visible,
|
|
6501
|
+
.tui-interface .tui-move-handle__down:focus-visible,
|
|
6502
|
+
.tui-interface .tui-move-handle__handle:focus-visible,
|
|
6503
|
+
.tui-interface .tui-move-handle.is-handle:focus-visible {
|
|
6495
6504
|
outline: 2px solid Highlight;
|
|
6496
6505
|
outline-offset: 2px;
|
|
6497
6506
|
}
|
|
6498
|
-
.tui-move-handle__up:disabled,
|
|
6499
|
-
.tui-move-handle__down:disabled,
|
|
6500
|
-
.tui-move-handle__handle:disabled,
|
|
6501
|
-
.tui-move-handle.is-handle:disabled {
|
|
6507
|
+
.tui-interface .tui-move-handle__up:disabled,
|
|
6508
|
+
.tui-interface .tui-move-handle__down:disabled,
|
|
6509
|
+
.tui-interface .tui-move-handle__handle:disabled,
|
|
6510
|
+
.tui-interface .tui-move-handle.is-handle:disabled {
|
|
6502
6511
|
color: GrayText;
|
|
6503
6512
|
}
|
|
6504
6513
|
}
|
|
@@ -290,6 +290,7 @@
|
|
|
290
290
|
--tui-move-handle-bg
|
|
291
291
|
--tui-move-handle-fg-interact
|
|
292
292
|
--tui-move-handle-bg-interact
|
|
293
|
+
--tui-move-handle-fg-disabled
|
|
293
294
|
*/
|
|
294
295
|
/* @tui-tokens
|
|
295
296
|
--tui-notice-bg
|
|
@@ -1203,6 +1204,10 @@
|
|
|
1203
1204
|
.tui-interface[data-theme] {
|
|
1204
1205
|
color: var(--tui-color-fg);
|
|
1205
1206
|
}
|
|
1207
|
+
.tui-interface[hidden]:not([hidden=until-found i]),
|
|
1208
|
+
.tui-interface [hidden]:not([hidden=until-found i]) {
|
|
1209
|
+
display: none !important;
|
|
1210
|
+
}
|
|
1206
1211
|
.tui-interface,
|
|
1207
1212
|
.tui-interface *,
|
|
1208
1213
|
.tui-interface *::before,
|
|
@@ -6260,6 +6265,10 @@
|
|
|
6260
6265
|
--tui-move-handle-bg-interact,
|
|
6261
6266
|
var(--tui-theme-primary-subtlest)
|
|
6262
6267
|
);
|
|
6268
|
+
--_fg-disabled: var(
|
|
6269
|
+
--tui-move-handle-fg-disabled,
|
|
6270
|
+
color-mix(in srgb, var(--_fg) 40%, transparent)
|
|
6271
|
+
);
|
|
6263
6272
|
--_center-height: calc(var(--_size) * 0.6);
|
|
6264
6273
|
display: inline-flex;
|
|
6265
6274
|
flex-direction: column;
|
|
@@ -6310,7 +6319,7 @@
|
|
|
6310
6319
|
}
|
|
6311
6320
|
.tui-interface .tui-move-handle__up:disabled, .tui-interface .tui-move-handle__down:disabled {
|
|
6312
6321
|
pointer-events: none;
|
|
6313
|
-
|
|
6322
|
+
color: var(--_fg-disabled);
|
|
6314
6323
|
}
|
|
6315
6324
|
.tui-interface .tui-move-handle__center {
|
|
6316
6325
|
display: flex;
|
|
@@ -6471,34 +6480,34 @@
|
|
|
6471
6480
|
min-height: 24px;
|
|
6472
6481
|
}
|
|
6473
6482
|
@media (forced-colors: active) {
|
|
6474
|
-
.tui-move-handle__up,
|
|
6475
|
-
.tui-move-handle__down,
|
|
6476
|
-
.tui-move-handle__handle,
|
|
6477
|
-
.tui-move-handle.is-handle {
|
|
6483
|
+
.tui-interface .tui-move-handle__up,
|
|
6484
|
+
.tui-interface .tui-move-handle__down,
|
|
6485
|
+
.tui-interface .tui-move-handle__handle,
|
|
6486
|
+
.tui-interface .tui-move-handle.is-handle {
|
|
6478
6487
|
forced-color-adjust: none;
|
|
6479
6488
|
color: CanvasText;
|
|
6480
6489
|
}
|
|
6481
|
-
.tui-move-handle__up:hover, .tui-move-handle__up:active,
|
|
6482
|
-
.tui-move-handle__down:hover,
|
|
6483
|
-
.tui-move-handle__down:active,
|
|
6484
|
-
.tui-move-handle__handle:hover,
|
|
6485
|
-
.tui-move-handle__handle:active,
|
|
6486
|
-
.tui-move-handle.is-handle:hover,
|
|
6487
|
-
.tui-move-handle.is-handle:active {
|
|
6490
|
+
.tui-interface .tui-move-handle__up:hover, .tui-interface .tui-move-handle__up:active,
|
|
6491
|
+
.tui-interface .tui-move-handle__down:hover,
|
|
6492
|
+
.tui-interface .tui-move-handle__down:active,
|
|
6493
|
+
.tui-interface .tui-move-handle__handle:hover,
|
|
6494
|
+
.tui-interface .tui-move-handle__handle:active,
|
|
6495
|
+
.tui-interface .tui-move-handle.is-handle:hover,
|
|
6496
|
+
.tui-interface .tui-move-handle.is-handle:active {
|
|
6488
6497
|
background-color: Highlight;
|
|
6489
6498
|
color: Canvas;
|
|
6490
6499
|
}
|
|
6491
|
-
.tui-move-handle__up:focus-visible,
|
|
6492
|
-
.tui-move-handle__down:focus-visible,
|
|
6493
|
-
.tui-move-handle__handle:focus-visible,
|
|
6494
|
-
.tui-move-handle.is-handle:focus-visible {
|
|
6500
|
+
.tui-interface .tui-move-handle__up:focus-visible,
|
|
6501
|
+
.tui-interface .tui-move-handle__down:focus-visible,
|
|
6502
|
+
.tui-interface .tui-move-handle__handle:focus-visible,
|
|
6503
|
+
.tui-interface .tui-move-handle.is-handle:focus-visible {
|
|
6495
6504
|
outline: 2px solid Highlight;
|
|
6496
6505
|
outline-offset: 2px;
|
|
6497
6506
|
}
|
|
6498
|
-
.tui-move-handle__up:disabled,
|
|
6499
|
-
.tui-move-handle__down:disabled,
|
|
6500
|
-
.tui-move-handle__handle:disabled,
|
|
6501
|
-
.tui-move-handle.is-handle:disabled {
|
|
6507
|
+
.tui-interface .tui-move-handle__up:disabled,
|
|
6508
|
+
.tui-interface .tui-move-handle__down:disabled,
|
|
6509
|
+
.tui-interface .tui-move-handle__handle:disabled,
|
|
6510
|
+
.tui-interface .tui-move-handle.is-handle:disabled {
|
|
6502
6511
|
color: GrayText;
|
|
6503
6512
|
}
|
|
6504
6513
|
}
|