@tangible/ui 0.2.32 → 0.2.33
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/StepIndicator/StepIndicator.js +13 -28
- package/components/StepIndicator/label.d.ts +13 -0
- package/components/StepIndicator/label.js +29 -0
- package/components/StepIndicator/types.d.ts +13 -0
- package/components/StepIndicator/types.js +1 -0
- package/components/StepList/StepList.js +38 -11
- package/components/StepList/index.d.ts +2 -1
- package/components/StepList/index.js +1 -0
- package/components/StepList/types.d.ts +33 -1
- package/components/StepList/types.js +11 -1
- package/components/index.d.ts +4 -4
- package/components/index.js +2 -2
- package/figma-tokens.json +1 -1
- package/package.json +1 -1
- package/skills/building-with-tui/SKILL.md +4 -3
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +53 -7
- package/styles/all.expanded.unlayered.css +53 -7
- package/styles/all.unlayered.css +1 -1
- package/styles/components/step-indicator.scss +74 -11
- package/styles/components/step-list.scss +27 -1
- package/tui-manifest.json +18 -3
package/styles/all.expanded.css
CHANGED
|
@@ -470,7 +470,11 @@
|
|
|
470
470
|
--tui-nav-menu-flyout-item-weight-ancestor
|
|
471
471
|
--tui-nav-menu-flyout-item-fg-disabled
|
|
472
472
|
*/
|
|
473
|
-
/* @tui-tokens
|
|
473
|
+
/* @tui-tokens
|
|
474
|
+
--tui-step-indicator-track
|
|
475
|
+
--tui-step-indicator-attention
|
|
476
|
+
--tui-step-indicator-surface
|
|
477
|
+
*/
|
|
474
478
|
/* @tui-tokens
|
|
475
479
|
--tui-search-input-button-radius
|
|
476
480
|
*/
|
|
@@ -7922,6 +7926,13 @@
|
|
|
7922
7926
|
}
|
|
7923
7927
|
:where(.tui-interface) .tui-step-indicator {
|
|
7924
7928
|
display: inline-flex;
|
|
7929
|
+
position: relative;
|
|
7930
|
+
}
|
|
7931
|
+
:where(.tui-interface) .tui-step-indicator .tui-progress {
|
|
7932
|
+
--_track: var(
|
|
7933
|
+
--tui-step-indicator-track,
|
|
7934
|
+
var(--_indicator-track, var(--tui-progress-track, var(--tui-color-border-control)))
|
|
7935
|
+
);
|
|
7925
7936
|
}
|
|
7926
7937
|
:where(.tui-interface) .tui-step-indicator.is-size-xs .tui-progress {
|
|
7927
7938
|
font-size: 8px;
|
|
@@ -7935,8 +7946,8 @@
|
|
|
7935
7946
|
:where(.tui-interface) .tui-step-indicator.is-size-lg .tui-progress {
|
|
7936
7947
|
font-size: 20px;
|
|
7937
7948
|
}
|
|
7938
|
-
:where(.tui-interface) .tui-step-indicator.is-status-locked.has-icon, :where(.tui-interface) .tui-step-indicator.is-status-not-started.has-icon {
|
|
7939
|
-
--
|
|
7949
|
+
:where(.tui-interface) .tui-step-indicator.is-status-locked.has-icon .tui-progress, :where(.tui-interface) .tui-step-indicator.is-status-not-started.has-icon .tui-progress {
|
|
7950
|
+
--_fill: var(--_track);
|
|
7940
7951
|
}
|
|
7941
7952
|
:where(.tui-interface) .tui-step-indicator .tui-progress.is-mode-circle .tui-progress__label.is-inside {
|
|
7942
7953
|
font-size: 1.2em;
|
|
@@ -7957,12 +7968,32 @@
|
|
|
7957
7968
|
:where(.tui-interface) .tui-step-indicator.is-status-complete .tui-icon {
|
|
7958
7969
|
color: var(--tui-color-fg-on-accent);
|
|
7959
7970
|
}
|
|
7960
|
-
:where(.tui-interface) .tui-step-indicator.is-status-locked {
|
|
7961
|
-
--tui-progress-track: var(--tui-color-border);
|
|
7962
|
-
}
|
|
7963
7971
|
:where(.tui-interface) .tui-step-indicator.is-status-locked .tui-icon {
|
|
7964
7972
|
color: var(--tui-color-fg-muted);
|
|
7965
7973
|
}
|
|
7974
|
+
:where(.tui-interface) .tui-step-indicator__attention {
|
|
7975
|
+
position: absolute;
|
|
7976
|
+
inset-block-start: 0;
|
|
7977
|
+
inset-inline-end: 0;
|
|
7978
|
+
inline-size: 36%;
|
|
7979
|
+
aspect-ratio: 1;
|
|
7980
|
+
min-inline-size: 6px;
|
|
7981
|
+
border-radius: 50%;
|
|
7982
|
+
background-color: var(--tui-step-indicator-attention, var(--tui-theme-warning-base));
|
|
7983
|
+
box-shadow: 0 0 0 1.5px var(--_indicator-surface, var(--tui-step-indicator-surface, var(--tui-color-bg)));
|
|
7984
|
+
translate: 20% -20%;
|
|
7985
|
+
pointer-events: none;
|
|
7986
|
+
}
|
|
7987
|
+
@media (forced-colors: active) {
|
|
7988
|
+
:where(.tui-interface) .tui-step-indicator__attention {
|
|
7989
|
+
forced-color-adjust: none;
|
|
7990
|
+
background-color: CanvasText;
|
|
7991
|
+
box-shadow: 0 0 0 1.5px Canvas;
|
|
7992
|
+
}
|
|
7993
|
+
}
|
|
7994
|
+
:where(.tui-interface) .tui-step-indicator:dir(rtl) .tui-step-indicator__attention {
|
|
7995
|
+
translate: -20% -20%;
|
|
7996
|
+
}
|
|
7966
7997
|
:where(.tui-interface) .tui-steplist__list {
|
|
7967
7998
|
--_gap: var(--tui-steplist-gap, var(--tui-spacing-xs));
|
|
7968
7999
|
list-style: none;
|
|
@@ -7997,8 +8028,9 @@
|
|
|
7997
8028
|
transition-duration: var(--tui-motion-duration);
|
|
7998
8029
|
transition-timing-function: var(--tui-motion-timing);
|
|
7999
8030
|
}
|
|
8000
|
-
:where(.tui-interface) .tui-steplist__item:hover:not([aria-disabled=true]):not(:disabled) {
|
|
8031
|
+
:where(.tui-interface) .tui-steplist__item:hover:not([aria-disabled=true]):not(:disabled):not(.is-static) {
|
|
8001
8032
|
background-color: var(--_hover-bg);
|
|
8033
|
+
--_indicator-surface: var(--_hover-bg);
|
|
8002
8034
|
}
|
|
8003
8035
|
:where(.tui-interface) .tui-steplist__item:focus-visible {
|
|
8004
8036
|
outline: var(--tui-focus-ring-width) solid var(--tui-focus-ring-color);
|
|
@@ -8008,12 +8040,26 @@
|
|
|
8008
8040
|
:where(.tui-interface) .tui-steplist__item.is-current, :where(.tui-interface) .tui-steplist__item[aria-current] {
|
|
8009
8041
|
background-color: var(--_current-bg);
|
|
8010
8042
|
border-left-color: var(--_current-border);
|
|
8043
|
+
--_indicator-surface: var(--_current-bg);
|
|
8044
|
+
--_indicator-track: var(--tui-color-fg-muted);
|
|
8045
|
+
}
|
|
8046
|
+
@media (forced-colors: active) {
|
|
8047
|
+
:where(.tui-interface) .tui-steplist__item {
|
|
8048
|
+
border-left-color: Canvas;
|
|
8049
|
+
}
|
|
8050
|
+
:where(.tui-interface) .tui-steplist__item.is-current, :where(.tui-interface) .tui-steplist__item[aria-current] {
|
|
8051
|
+
border-left-color: Highlight;
|
|
8052
|
+
}
|
|
8053
|
+
}
|
|
8054
|
+
:where(.tui-interface) .tui-steplist__item.is-static {
|
|
8055
|
+
cursor: default;
|
|
8011
8056
|
}
|
|
8012
8057
|
:where(.tui-interface) .tui-steplist__item.is-disabled, :where(.tui-interface) .tui-steplist__item[aria-disabled=true], :where(.tui-interface) .tui-steplist__item:disabled {
|
|
8013
8058
|
cursor: not-allowed;
|
|
8014
8059
|
opacity: var(--tui-opacity-disabled);
|
|
8015
8060
|
}
|
|
8016
8061
|
:where(.tui-interface) .tui-steplist__indicator {
|
|
8062
|
+
display: flex;
|
|
8017
8063
|
flex-shrink: 0;
|
|
8018
8064
|
margin-top: 0.325em;
|
|
8019
8065
|
}
|
|
@@ -470,7 +470,11 @@
|
|
|
470
470
|
--tui-nav-menu-flyout-item-weight-ancestor
|
|
471
471
|
--tui-nav-menu-flyout-item-fg-disabled
|
|
472
472
|
*/
|
|
473
|
-
/* @tui-tokens
|
|
473
|
+
/* @tui-tokens
|
|
474
|
+
--tui-step-indicator-track
|
|
475
|
+
--tui-step-indicator-attention
|
|
476
|
+
--tui-step-indicator-surface
|
|
477
|
+
*/
|
|
474
478
|
/* @tui-tokens
|
|
475
479
|
--tui-search-input-button-radius
|
|
476
480
|
*/
|
|
@@ -7922,6 +7926,13 @@
|
|
|
7922
7926
|
}
|
|
7923
7927
|
:where(.tui-interface) .tui-step-indicator {
|
|
7924
7928
|
display: inline-flex;
|
|
7929
|
+
position: relative;
|
|
7930
|
+
}
|
|
7931
|
+
:where(.tui-interface) .tui-step-indicator .tui-progress {
|
|
7932
|
+
--_track: var(
|
|
7933
|
+
--tui-step-indicator-track,
|
|
7934
|
+
var(--_indicator-track, var(--tui-progress-track, var(--tui-color-border-control)))
|
|
7935
|
+
);
|
|
7925
7936
|
}
|
|
7926
7937
|
:where(.tui-interface) .tui-step-indicator.is-size-xs .tui-progress {
|
|
7927
7938
|
font-size: 8px;
|
|
@@ -7935,8 +7946,8 @@
|
|
|
7935
7946
|
:where(.tui-interface) .tui-step-indicator.is-size-lg .tui-progress {
|
|
7936
7947
|
font-size: 20px;
|
|
7937
7948
|
}
|
|
7938
|
-
:where(.tui-interface) .tui-step-indicator.is-status-locked.has-icon, :where(.tui-interface) .tui-step-indicator.is-status-not-started.has-icon {
|
|
7939
|
-
--
|
|
7949
|
+
:where(.tui-interface) .tui-step-indicator.is-status-locked.has-icon .tui-progress, :where(.tui-interface) .tui-step-indicator.is-status-not-started.has-icon .tui-progress {
|
|
7950
|
+
--_fill: var(--_track);
|
|
7940
7951
|
}
|
|
7941
7952
|
:where(.tui-interface) .tui-step-indicator .tui-progress.is-mode-circle .tui-progress__label.is-inside {
|
|
7942
7953
|
font-size: 1.2em;
|
|
@@ -7957,12 +7968,32 @@
|
|
|
7957
7968
|
:where(.tui-interface) .tui-step-indicator.is-status-complete .tui-icon {
|
|
7958
7969
|
color: var(--tui-color-fg-on-accent);
|
|
7959
7970
|
}
|
|
7960
|
-
:where(.tui-interface) .tui-step-indicator.is-status-locked {
|
|
7961
|
-
--tui-progress-track: var(--tui-color-border);
|
|
7962
|
-
}
|
|
7963
7971
|
:where(.tui-interface) .tui-step-indicator.is-status-locked .tui-icon {
|
|
7964
7972
|
color: var(--tui-color-fg-muted);
|
|
7965
7973
|
}
|
|
7974
|
+
:where(.tui-interface) .tui-step-indicator__attention {
|
|
7975
|
+
position: absolute;
|
|
7976
|
+
inset-block-start: 0;
|
|
7977
|
+
inset-inline-end: 0;
|
|
7978
|
+
inline-size: 36%;
|
|
7979
|
+
aspect-ratio: 1;
|
|
7980
|
+
min-inline-size: 6px;
|
|
7981
|
+
border-radius: 50%;
|
|
7982
|
+
background-color: var(--tui-step-indicator-attention, var(--tui-theme-warning-base));
|
|
7983
|
+
box-shadow: 0 0 0 1.5px var(--_indicator-surface, var(--tui-step-indicator-surface, var(--tui-color-bg)));
|
|
7984
|
+
translate: 20% -20%;
|
|
7985
|
+
pointer-events: none;
|
|
7986
|
+
}
|
|
7987
|
+
@media (forced-colors: active) {
|
|
7988
|
+
:where(.tui-interface) .tui-step-indicator__attention {
|
|
7989
|
+
forced-color-adjust: none;
|
|
7990
|
+
background-color: CanvasText;
|
|
7991
|
+
box-shadow: 0 0 0 1.5px Canvas;
|
|
7992
|
+
}
|
|
7993
|
+
}
|
|
7994
|
+
:where(.tui-interface) .tui-step-indicator:dir(rtl) .tui-step-indicator__attention {
|
|
7995
|
+
translate: -20% -20%;
|
|
7996
|
+
}
|
|
7966
7997
|
:where(.tui-interface) .tui-steplist__list {
|
|
7967
7998
|
--_gap: var(--tui-steplist-gap, var(--tui-spacing-xs));
|
|
7968
7999
|
list-style: none;
|
|
@@ -7997,8 +8028,9 @@
|
|
|
7997
8028
|
transition-duration: var(--tui-motion-duration);
|
|
7998
8029
|
transition-timing-function: var(--tui-motion-timing);
|
|
7999
8030
|
}
|
|
8000
|
-
:where(.tui-interface) .tui-steplist__item:hover:not([aria-disabled=true]):not(:disabled) {
|
|
8031
|
+
:where(.tui-interface) .tui-steplist__item:hover:not([aria-disabled=true]):not(:disabled):not(.is-static) {
|
|
8001
8032
|
background-color: var(--_hover-bg);
|
|
8033
|
+
--_indicator-surface: var(--_hover-bg);
|
|
8002
8034
|
}
|
|
8003
8035
|
:where(.tui-interface) .tui-steplist__item:focus-visible {
|
|
8004
8036
|
outline: var(--tui-focus-ring-width) solid var(--tui-focus-ring-color);
|
|
@@ -8008,12 +8040,26 @@
|
|
|
8008
8040
|
:where(.tui-interface) .tui-steplist__item.is-current, :where(.tui-interface) .tui-steplist__item[aria-current] {
|
|
8009
8041
|
background-color: var(--_current-bg);
|
|
8010
8042
|
border-left-color: var(--_current-border);
|
|
8043
|
+
--_indicator-surface: var(--_current-bg);
|
|
8044
|
+
--_indicator-track: var(--tui-color-fg-muted);
|
|
8045
|
+
}
|
|
8046
|
+
@media (forced-colors: active) {
|
|
8047
|
+
:where(.tui-interface) .tui-steplist__item {
|
|
8048
|
+
border-left-color: Canvas;
|
|
8049
|
+
}
|
|
8050
|
+
:where(.tui-interface) .tui-steplist__item.is-current, :where(.tui-interface) .tui-steplist__item[aria-current] {
|
|
8051
|
+
border-left-color: Highlight;
|
|
8052
|
+
}
|
|
8053
|
+
}
|
|
8054
|
+
:where(.tui-interface) .tui-steplist__item.is-static {
|
|
8055
|
+
cursor: default;
|
|
8011
8056
|
}
|
|
8012
8057
|
:where(.tui-interface) .tui-steplist__item.is-disabled, :where(.tui-interface) .tui-steplist__item[aria-disabled=true], :where(.tui-interface) .tui-steplist__item:disabled {
|
|
8013
8058
|
cursor: not-allowed;
|
|
8014
8059
|
opacity: var(--tui-opacity-disabled);
|
|
8015
8060
|
}
|
|
8016
8061
|
:where(.tui-interface) .tui-steplist__indicator {
|
|
8062
|
+
display: flex;
|
|
8017
8063
|
flex-shrink: 0;
|
|
8018
8064
|
margin-top: 0.325em;
|
|
8019
8065
|
}
|