@tangible/ui 0.2.42 → 0.2.44
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/IconButton/IconButton.js +5 -2
- package/components/IconButton/IconButtonCore.js +16 -4
- package/components/IconButton/badge.d.ts +20 -0
- package/components/IconButton/badge.js +22 -0
- package/components/IconButton/types.d.ts +54 -2
- package/components/IconButton/types.js +2 -0
- package/components/Pager/Pager.js +5 -2
- package/components/Table/BulkActionsBar.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/skills/building-with-tui/SKILL.md +30 -0
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +75 -16
- package/styles/all.expanded.unlayered.css +75 -16
- package/styles/all.unlayered.css +1 -1
- package/styles/components/button.scss +18 -11
- package/styles/components/icon-button.scss +76 -4
- package/styles/components/modal.scss +12 -1
- package/styles/components/table.scss +10 -0
- package/tui-manifest.json +25 -5
- package/utils/scroll-lock.js +51 -5
- package/vanilla/modal.min.js +1 -1
- package/vanilla/styles.css +1 -1
- package/vanilla/styles.unlayered.css +1 -1
package/styles/all.expanded.css
CHANGED
|
@@ -257,6 +257,9 @@
|
|
|
257
257
|
--tui-icon-button-fg-interact
|
|
258
258
|
--tui-icon-button-bg-pressed
|
|
259
259
|
--tui-icon-button-fg-pressed
|
|
260
|
+
--tui-icon-button-badge-bg
|
|
261
|
+
--tui-icon-button-badge-fg
|
|
262
|
+
--tui-icon-button-badge-ring
|
|
260
263
|
*/
|
|
261
264
|
/* @tui-tokens
|
|
262
265
|
--tui-icon-tile-size
|
|
@@ -2014,27 +2017,28 @@
|
|
|
2014
2017
|
@media (forced-colors: active) {
|
|
2015
2018
|
.tui-interface .tui-button {
|
|
2016
2019
|
forced-color-adjust: none;
|
|
2017
|
-
background-color:
|
|
2018
|
-
color:
|
|
2019
|
-
border-color: CanvasText;
|
|
2020
|
+
background-color: Canvas !important;
|
|
2021
|
+
color: CanvasText !important;
|
|
2022
|
+
border-color: CanvasText !important;
|
|
2020
2023
|
}
|
|
2021
2024
|
.tui-interface .tui-button:is(:hover, :active) {
|
|
2022
|
-
background-color: Highlight;
|
|
2023
|
-
|
|
2025
|
+
background-color: Highlight !important;
|
|
2026
|
+
color: Canvas !important;
|
|
2027
|
+
border-color: Highlight !important;
|
|
2024
2028
|
}
|
|
2025
2029
|
.tui-interface .tui-button:focus-visible {
|
|
2026
2030
|
outline: 2px solid Highlight;
|
|
2027
2031
|
outline-offset: 2px;
|
|
2028
2032
|
}
|
|
2029
2033
|
.tui-interface .tui-button.is-style-link {
|
|
2030
|
-
background-color: transparent;
|
|
2031
|
-
color: LinkText;
|
|
2032
|
-
border-color: transparent;
|
|
2034
|
+
background-color: transparent !important;
|
|
2035
|
+
color: LinkText !important;
|
|
2036
|
+
border-color: transparent !important;
|
|
2033
2037
|
}
|
|
2034
|
-
.tui-interface .tui-button[disabled], .tui-interface .tui-button.is-disabled {
|
|
2035
|
-
color: GrayText;
|
|
2036
|
-
border-color: GrayText;
|
|
2037
|
-
background-color: Canvas;
|
|
2038
|
+
.tui-interface .tui-button[disabled], .tui-interface .tui-button[aria-disabled=true], .tui-interface .tui-button.is-disabled {
|
|
2039
|
+
color: GrayText !important;
|
|
2040
|
+
border-color: GrayText !important;
|
|
2041
|
+
background-color: Canvas !important;
|
|
2038
2042
|
}
|
|
2039
2043
|
}
|
|
2040
2044
|
.tui-interface input[type=file]::file-selector-button {
|
|
@@ -5770,6 +5774,41 @@
|
|
|
5770
5774
|
.tui-interface .tui-icon-button[aria-busy=true] .tui-icon {
|
|
5771
5775
|
visibility: hidden;
|
|
5772
5776
|
}
|
|
5777
|
+
.tui-interface .tui-icon-button__badge {
|
|
5778
|
+
--_badge-bg: var(--tui-icon-button-badge-bg, var(--tui-theme-primary-base));
|
|
5779
|
+
--_badge-fg: var(--tui-icon-button-badge-fg, var(--tui-theme-primary-on-base));
|
|
5780
|
+
--_badge-ring: var(--tui-icon-button-badge-ring, var(--tui-color-bg));
|
|
5781
|
+
--_badge-h: 1rem;
|
|
5782
|
+
--_icon-inset: calc(var(--_size) * 0.125);
|
|
5783
|
+
position: absolute;
|
|
5784
|
+
z-index: 1;
|
|
5785
|
+
inset-block-start: calc(var(--_icon-inset) - var(--_badge-h) / 3);
|
|
5786
|
+
inset-inline-start: calc(50% + var(--_size) * 0.075);
|
|
5787
|
+
box-sizing: border-box;
|
|
5788
|
+
min-inline-size: var(--_badge-h);
|
|
5789
|
+
block-size: var(--_badge-h);
|
|
5790
|
+
padding-inline: var(--tui-spacing-xxs);
|
|
5791
|
+
display: inline-flex;
|
|
5792
|
+
align-items: center;
|
|
5793
|
+
justify-content: center;
|
|
5794
|
+
border-radius: var(--tui-radius-full);
|
|
5795
|
+
background-color: var(--_badge-bg);
|
|
5796
|
+
color: var(--_badge-fg);
|
|
5797
|
+
box-shadow: 0 0 0 2px var(--_badge-ring);
|
|
5798
|
+
font-size: calc(11 * var(--tui-typography-size-multiplier, 0.0625rem));
|
|
5799
|
+
font-weight: var(--tui-typography-weight-semibold, 600);
|
|
5800
|
+
font-variant-numeric: tabular-nums;
|
|
5801
|
+
line-height: 1;
|
|
5802
|
+
white-space: nowrap;
|
|
5803
|
+
}
|
|
5804
|
+
.tui-interface .tui-icon-button__badge.is-dot {
|
|
5805
|
+
--_badge-h: 0.5rem;
|
|
5806
|
+
padding: 0;
|
|
5807
|
+
}
|
|
5808
|
+
.tui-interface .tui-icon-button.is-size-xs .tui-icon-button__badge:not(.is-dot) {
|
|
5809
|
+
--_badge-h: 0.875rem;
|
|
5810
|
+
font-size: calc(10 * var(--tui-typography-size-multiplier, 0.0625rem));
|
|
5811
|
+
}
|
|
5773
5812
|
.tui-interface .tui-icon-button__spinner {
|
|
5774
5813
|
position: absolute;
|
|
5775
5814
|
width: 1em;
|
|
@@ -5786,21 +5825,28 @@
|
|
|
5786
5825
|
}
|
|
5787
5826
|
}
|
|
5788
5827
|
@media (forced-colors: active) {
|
|
5789
|
-
.tui-icon-button {
|
|
5828
|
+
.tui-interface .tui-icon-button {
|
|
5790
5829
|
forced-color-adjust: none;
|
|
5791
5830
|
background-color: Canvas;
|
|
5792
5831
|
color: CanvasText;
|
|
5793
5832
|
border-color: CanvasText;
|
|
5794
5833
|
}
|
|
5795
|
-
.tui-icon-button:is(:hover, :active) {
|
|
5834
|
+
.tui-interface .tui-icon-button:is(:hover, :active) {
|
|
5796
5835
|
background-color: Highlight;
|
|
5797
5836
|
color: Canvas;
|
|
5798
5837
|
}
|
|
5799
|
-
.tui-icon-
|
|
5838
|
+
.tui-interface .tui-icon-button__badge {
|
|
5839
|
+
forced-color-adjust: none;
|
|
5840
|
+
background-color: CanvasText;
|
|
5841
|
+
color: Canvas;
|
|
5842
|
+
box-shadow: none;
|
|
5843
|
+
outline: 2px solid Canvas;
|
|
5844
|
+
}
|
|
5845
|
+
.tui-interface .tui-icon-button:focus-visible {
|
|
5800
5846
|
outline: 2px solid Highlight;
|
|
5801
5847
|
outline-offset: 2px;
|
|
5802
5848
|
}
|
|
5803
|
-
.tui-icon-button:is(:disabled, [aria-disabled=true]) {
|
|
5849
|
+
.tui-interface .tui-icon-button:is(:disabled, [aria-disabled=true]) {
|
|
5804
5850
|
color: GrayText;
|
|
5805
5851
|
border-color: GrayText;
|
|
5806
5852
|
background-color: Canvas;
|
|
@@ -6163,6 +6209,12 @@
|
|
|
6163
6209
|
.tui-modal-open {
|
|
6164
6210
|
overflow: hidden;
|
|
6165
6211
|
}
|
|
6212
|
+
.tui-modal-open.tui-scroll-lock-pad-right {
|
|
6213
|
+
padding-right: var(--tui-scroll-lock-pad) !important;
|
|
6214
|
+
}
|
|
6215
|
+
.tui-modal-open.tui-scroll-lock-pad-left {
|
|
6216
|
+
padding-left: var(--tui-scroll-lock-pad) !important;
|
|
6217
|
+
}
|
|
6166
6218
|
.tui-interface .tui-move-handle {
|
|
6167
6219
|
--_size: var(--tui-move-handle-size, 40px);
|
|
6168
6220
|
--_icon-size: var(--tui-move-handle-icon-size, calc(var(--_size) * 0.6));
|
|
@@ -8765,11 +8817,18 @@
|
|
|
8765
8817
|
}
|
|
8766
8818
|
:where(.tui-interface) .tui-table__bulkActions {
|
|
8767
8819
|
display: flex;
|
|
8820
|
+
flex-wrap: wrap;
|
|
8768
8821
|
align-items: center;
|
|
8769
8822
|
gap: var(--tui-spacing-sm);
|
|
8770
8823
|
padding-inline: var(--_padding);
|
|
8771
8824
|
padding-block: var(--_padding);
|
|
8772
8825
|
}
|
|
8826
|
+
:where(.tui-interface) .tui-table__bulkActions__actions {
|
|
8827
|
+
display: flex;
|
|
8828
|
+
flex-wrap: wrap;
|
|
8829
|
+
align-items: center;
|
|
8830
|
+
gap: var(--tui-spacing-xs);
|
|
8831
|
+
}
|
|
8773
8832
|
:where(.tui-interface) .tui-table input[type=checkbox] {
|
|
8774
8833
|
accent-color: var(--tui-theme-primary-base);
|
|
8775
8834
|
}
|
|
@@ -257,6 +257,9 @@
|
|
|
257
257
|
--tui-icon-button-fg-interact
|
|
258
258
|
--tui-icon-button-bg-pressed
|
|
259
259
|
--tui-icon-button-fg-pressed
|
|
260
|
+
--tui-icon-button-badge-bg
|
|
261
|
+
--tui-icon-button-badge-fg
|
|
262
|
+
--tui-icon-button-badge-ring
|
|
260
263
|
*/
|
|
261
264
|
/* @tui-tokens
|
|
262
265
|
--tui-icon-tile-size
|
|
@@ -2014,27 +2017,28 @@
|
|
|
2014
2017
|
@media (forced-colors: active) {
|
|
2015
2018
|
.tui-interface .tui-button {
|
|
2016
2019
|
forced-color-adjust: none;
|
|
2017
|
-
background-color:
|
|
2018
|
-
color:
|
|
2019
|
-
border-color: CanvasText;
|
|
2020
|
+
background-color: Canvas !important;
|
|
2021
|
+
color: CanvasText !important;
|
|
2022
|
+
border-color: CanvasText !important;
|
|
2020
2023
|
}
|
|
2021
2024
|
.tui-interface .tui-button:is(:hover, :active) {
|
|
2022
|
-
background-color: Highlight;
|
|
2023
|
-
|
|
2025
|
+
background-color: Highlight !important;
|
|
2026
|
+
color: Canvas !important;
|
|
2027
|
+
border-color: Highlight !important;
|
|
2024
2028
|
}
|
|
2025
2029
|
.tui-interface .tui-button:focus-visible {
|
|
2026
2030
|
outline: 2px solid Highlight;
|
|
2027
2031
|
outline-offset: 2px;
|
|
2028
2032
|
}
|
|
2029
2033
|
.tui-interface .tui-button.is-style-link {
|
|
2030
|
-
background-color: transparent;
|
|
2031
|
-
color: LinkText;
|
|
2032
|
-
border-color: transparent;
|
|
2034
|
+
background-color: transparent !important;
|
|
2035
|
+
color: LinkText !important;
|
|
2036
|
+
border-color: transparent !important;
|
|
2033
2037
|
}
|
|
2034
|
-
.tui-interface .tui-button[disabled], .tui-interface .tui-button.is-disabled {
|
|
2035
|
-
color: GrayText;
|
|
2036
|
-
border-color: GrayText;
|
|
2037
|
-
background-color: Canvas;
|
|
2038
|
+
.tui-interface .tui-button[disabled], .tui-interface .tui-button[aria-disabled=true], .tui-interface .tui-button.is-disabled {
|
|
2039
|
+
color: GrayText !important;
|
|
2040
|
+
border-color: GrayText !important;
|
|
2041
|
+
background-color: Canvas !important;
|
|
2038
2042
|
}
|
|
2039
2043
|
}
|
|
2040
2044
|
.tui-interface input[type=file]::file-selector-button {
|
|
@@ -5770,6 +5774,41 @@
|
|
|
5770
5774
|
.tui-interface .tui-icon-button[aria-busy=true] .tui-icon {
|
|
5771
5775
|
visibility: hidden;
|
|
5772
5776
|
}
|
|
5777
|
+
.tui-interface .tui-icon-button__badge {
|
|
5778
|
+
--_badge-bg: var(--tui-icon-button-badge-bg, var(--tui-theme-primary-base));
|
|
5779
|
+
--_badge-fg: var(--tui-icon-button-badge-fg, var(--tui-theme-primary-on-base));
|
|
5780
|
+
--_badge-ring: var(--tui-icon-button-badge-ring, var(--tui-color-bg));
|
|
5781
|
+
--_badge-h: 1rem;
|
|
5782
|
+
--_icon-inset: calc(var(--_size) * 0.125);
|
|
5783
|
+
position: absolute;
|
|
5784
|
+
z-index: 1;
|
|
5785
|
+
inset-block-start: calc(var(--_icon-inset) - var(--_badge-h) / 3);
|
|
5786
|
+
inset-inline-start: calc(50% + var(--_size) * 0.075);
|
|
5787
|
+
box-sizing: border-box;
|
|
5788
|
+
min-inline-size: var(--_badge-h);
|
|
5789
|
+
block-size: var(--_badge-h);
|
|
5790
|
+
padding-inline: var(--tui-spacing-xxs);
|
|
5791
|
+
display: inline-flex;
|
|
5792
|
+
align-items: center;
|
|
5793
|
+
justify-content: center;
|
|
5794
|
+
border-radius: var(--tui-radius-full);
|
|
5795
|
+
background-color: var(--_badge-bg);
|
|
5796
|
+
color: var(--_badge-fg);
|
|
5797
|
+
box-shadow: 0 0 0 2px var(--_badge-ring);
|
|
5798
|
+
font-size: calc(11 * var(--tui-typography-size-multiplier, 0.0625rem));
|
|
5799
|
+
font-weight: var(--tui-typography-weight-semibold, 600);
|
|
5800
|
+
font-variant-numeric: tabular-nums;
|
|
5801
|
+
line-height: 1;
|
|
5802
|
+
white-space: nowrap;
|
|
5803
|
+
}
|
|
5804
|
+
.tui-interface .tui-icon-button__badge.is-dot {
|
|
5805
|
+
--_badge-h: 0.5rem;
|
|
5806
|
+
padding: 0;
|
|
5807
|
+
}
|
|
5808
|
+
.tui-interface .tui-icon-button.is-size-xs .tui-icon-button__badge:not(.is-dot) {
|
|
5809
|
+
--_badge-h: 0.875rem;
|
|
5810
|
+
font-size: calc(10 * var(--tui-typography-size-multiplier, 0.0625rem));
|
|
5811
|
+
}
|
|
5773
5812
|
.tui-interface .tui-icon-button__spinner {
|
|
5774
5813
|
position: absolute;
|
|
5775
5814
|
width: 1em;
|
|
@@ -5786,21 +5825,28 @@
|
|
|
5786
5825
|
}
|
|
5787
5826
|
}
|
|
5788
5827
|
@media (forced-colors: active) {
|
|
5789
|
-
.tui-icon-button {
|
|
5828
|
+
.tui-interface .tui-icon-button {
|
|
5790
5829
|
forced-color-adjust: none;
|
|
5791
5830
|
background-color: Canvas;
|
|
5792
5831
|
color: CanvasText;
|
|
5793
5832
|
border-color: CanvasText;
|
|
5794
5833
|
}
|
|
5795
|
-
.tui-icon-button:is(:hover, :active) {
|
|
5834
|
+
.tui-interface .tui-icon-button:is(:hover, :active) {
|
|
5796
5835
|
background-color: Highlight;
|
|
5797
5836
|
color: Canvas;
|
|
5798
5837
|
}
|
|
5799
|
-
.tui-icon-
|
|
5838
|
+
.tui-interface .tui-icon-button__badge {
|
|
5839
|
+
forced-color-adjust: none;
|
|
5840
|
+
background-color: CanvasText;
|
|
5841
|
+
color: Canvas;
|
|
5842
|
+
box-shadow: none;
|
|
5843
|
+
outline: 2px solid Canvas;
|
|
5844
|
+
}
|
|
5845
|
+
.tui-interface .tui-icon-button:focus-visible {
|
|
5800
5846
|
outline: 2px solid Highlight;
|
|
5801
5847
|
outline-offset: 2px;
|
|
5802
5848
|
}
|
|
5803
|
-
.tui-icon-button:is(:disabled, [aria-disabled=true]) {
|
|
5849
|
+
.tui-interface .tui-icon-button:is(:disabled, [aria-disabled=true]) {
|
|
5804
5850
|
color: GrayText;
|
|
5805
5851
|
border-color: GrayText;
|
|
5806
5852
|
background-color: Canvas;
|
|
@@ -6163,6 +6209,12 @@
|
|
|
6163
6209
|
.tui-modal-open {
|
|
6164
6210
|
overflow: hidden;
|
|
6165
6211
|
}
|
|
6212
|
+
.tui-modal-open.tui-scroll-lock-pad-right {
|
|
6213
|
+
padding-right: var(--tui-scroll-lock-pad) !important;
|
|
6214
|
+
}
|
|
6215
|
+
.tui-modal-open.tui-scroll-lock-pad-left {
|
|
6216
|
+
padding-left: var(--tui-scroll-lock-pad) !important;
|
|
6217
|
+
}
|
|
6166
6218
|
.tui-interface .tui-move-handle {
|
|
6167
6219
|
--_size: var(--tui-move-handle-size, 40px);
|
|
6168
6220
|
--_icon-size: var(--tui-move-handle-icon-size, calc(var(--_size) * 0.6));
|
|
@@ -8765,11 +8817,18 @@
|
|
|
8765
8817
|
}
|
|
8766
8818
|
:where(.tui-interface) .tui-table__bulkActions {
|
|
8767
8819
|
display: flex;
|
|
8820
|
+
flex-wrap: wrap;
|
|
8768
8821
|
align-items: center;
|
|
8769
8822
|
gap: var(--tui-spacing-sm);
|
|
8770
8823
|
padding-inline: var(--_padding);
|
|
8771
8824
|
padding-block: var(--_padding);
|
|
8772
8825
|
}
|
|
8826
|
+
:where(.tui-interface) .tui-table__bulkActions__actions {
|
|
8827
|
+
display: flex;
|
|
8828
|
+
flex-wrap: wrap;
|
|
8829
|
+
align-items: center;
|
|
8830
|
+
gap: var(--tui-spacing-xs);
|
|
8831
|
+
}
|
|
8773
8832
|
:where(.tui-interface) .tui-table input[type=checkbox] {
|
|
8774
8833
|
accent-color: var(--tui-theme-primary-base);
|
|
8775
8834
|
}
|