@tangible/ui 0.2.46 → 0.2.47

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.
@@ -320,6 +320,14 @@
320
320
  --tui-password-input-button-radius
321
321
  */
322
322
  /* @tui-tokens
323
+ --tui-password-strength-track
324
+ --tui-password-strength-weak
325
+ --tui-password-strength-fair
326
+ --tui-password-strength-strong
327
+ --tui-password-strength-bar-size
328
+ --tui-password-strength-gap
329
+ */
330
+ /* @tui-tokens
323
331
  --tui-pager-gap
324
332
  --tui-pager-nav-gap
325
333
  --tui-pager-item-border
@@ -6979,6 +6987,55 @@
6979
6987
  outline-color: Highlight;
6980
6988
  }
6981
6989
  }
6990
+ .tui-interface .tui-password-strength {
6991
+ --_fill: var(--tui-password-strength-weak, var(--tui-theme-danger-base));
6992
+ display: flex;
6993
+ flex-direction: column;
6994
+ gap: var(--tui-spacing-xxs);
6995
+ }
6996
+ .tui-interface .tui-password-strength[data-score="2"] {
6997
+ --_fill: var(--tui-password-strength-fair, var(--tui-theme-warning-base));
6998
+ }
6999
+ .tui-interface .tui-password-strength[data-score="3"], .tui-interface .tui-password-strength[data-score="4"] {
7000
+ --_fill: var(--tui-password-strength-strong, var(--tui-theme-success-base));
7001
+ }
7002
+ .tui-interface .tui-password-strength__bars {
7003
+ display: grid;
7004
+ grid-template-columns: repeat(4, minmax(0, 1fr));
7005
+ gap: var(--tui-password-strength-gap, var(--tui-spacing-xxs));
7006
+ }
7007
+ .tui-interface .tui-password-strength__bar {
7008
+ block-size: var(--tui-password-strength-bar-size, var(--tui-spacing-xxs));
7009
+ border-radius: var(--tui-radius-full, 9999px);
7010
+ background: var(--tui-password-strength-track, var(--tui-color-fill));
7011
+ transition: background-color var(--tui-motion-duration) var(--tui-motion-timing);
7012
+ }
7013
+ .tui-interface .tui-password-strength__bar[data-lit=true] {
7014
+ background: var(--_fill);
7015
+ }
7016
+ @media (forced-colors: active) {
7017
+ .tui-interface .tui-password-strength__bar {
7018
+ forced-color-adjust: none;
7019
+ background: Canvas;
7020
+ border: var(--tui-border-width) solid GrayText;
7021
+ }
7022
+ .tui-interface .tui-password-strength__bar[data-lit=true] {
7023
+ background: CanvasText;
7024
+ border-color: CanvasText;
7025
+ }
7026
+ }
7027
+ .tui-interface .tui-password-strength__text {
7028
+ margin: 0;
7029
+ color: var(--tui-color-fg-secondary);
7030
+ font-size: var(--tui-typography-size-sm);
7031
+ }
7032
+ .tui-interface .tui-password-strength__score {
7033
+ color: var(--tui-color-fg);
7034
+ font-weight: var(--tui-typography-weight-semibold);
7035
+ }
7036
+ .tui-interface .tui-password-strength__feedback {
7037
+ display: block;
7038
+ }
6982
7039
  :where(.tui-interface) .tui-popover {
6983
7040
  --_bg: var(--tui-popover-bg, var(--tui-color-bg-elevated));
6984
7041
  --_fg: var(--tui-popover-fg, var(--tui-color-fg));
@@ -320,6 +320,14 @@
320
320
  --tui-password-input-button-radius
321
321
  */
322
322
  /* @tui-tokens
323
+ --tui-password-strength-track
324
+ --tui-password-strength-weak
325
+ --tui-password-strength-fair
326
+ --tui-password-strength-strong
327
+ --tui-password-strength-bar-size
328
+ --tui-password-strength-gap
329
+ */
330
+ /* @tui-tokens
323
331
  --tui-pager-gap
324
332
  --tui-pager-nav-gap
325
333
  --tui-pager-item-border
@@ -6979,6 +6987,55 @@
6979
6987
  outline-color: Highlight;
6980
6988
  }
6981
6989
  }
6990
+ .tui-interface .tui-password-strength {
6991
+ --_fill: var(--tui-password-strength-weak, var(--tui-theme-danger-base));
6992
+ display: flex;
6993
+ flex-direction: column;
6994
+ gap: var(--tui-spacing-xxs);
6995
+ }
6996
+ .tui-interface .tui-password-strength[data-score="2"] {
6997
+ --_fill: var(--tui-password-strength-fair, var(--tui-theme-warning-base));
6998
+ }
6999
+ .tui-interface .tui-password-strength[data-score="3"], .tui-interface .tui-password-strength[data-score="4"] {
7000
+ --_fill: var(--tui-password-strength-strong, var(--tui-theme-success-base));
7001
+ }
7002
+ .tui-interface .tui-password-strength__bars {
7003
+ display: grid;
7004
+ grid-template-columns: repeat(4, minmax(0, 1fr));
7005
+ gap: var(--tui-password-strength-gap, var(--tui-spacing-xxs));
7006
+ }
7007
+ .tui-interface .tui-password-strength__bar {
7008
+ block-size: var(--tui-password-strength-bar-size, var(--tui-spacing-xxs));
7009
+ border-radius: var(--tui-radius-full, 9999px);
7010
+ background: var(--tui-password-strength-track, var(--tui-color-fill));
7011
+ transition: background-color var(--tui-motion-duration) var(--tui-motion-timing);
7012
+ }
7013
+ .tui-interface .tui-password-strength__bar[data-lit=true] {
7014
+ background: var(--_fill);
7015
+ }
7016
+ @media (forced-colors: active) {
7017
+ .tui-interface .tui-password-strength__bar {
7018
+ forced-color-adjust: none;
7019
+ background: Canvas;
7020
+ border: var(--tui-border-width) solid GrayText;
7021
+ }
7022
+ .tui-interface .tui-password-strength__bar[data-lit=true] {
7023
+ background: CanvasText;
7024
+ border-color: CanvasText;
7025
+ }
7026
+ }
7027
+ .tui-interface .tui-password-strength__text {
7028
+ margin: 0;
7029
+ color: var(--tui-color-fg-secondary);
7030
+ font-size: var(--tui-typography-size-sm);
7031
+ }
7032
+ .tui-interface .tui-password-strength__score {
7033
+ color: var(--tui-color-fg);
7034
+ font-weight: var(--tui-typography-weight-semibold);
7035
+ }
7036
+ .tui-interface .tui-password-strength__feedback {
7037
+ display: block;
7038
+ }
6982
7039
  :where(.tui-interface) .tui-popover {
6983
7040
  --_bg: var(--tui-popover-bg, var(--tui-color-bg-elevated));
6984
7041
  --_fg: var(--tui-popover-fg, var(--tui-color-fg));