@tangible/ui 0.2.12 → 0.2.14

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.
@@ -376,6 +376,11 @@
376
376
  --tui-search-select-option-bg-selected
377
377
  */
378
378
  /* @tui-tokens
379
+ --tui-secret-input-set-fg
380
+ --tui-secret-input-button-radius
381
+ --tui-secret-input-bg-locked
382
+ */
383
+ /* @tui-tokens
379
384
  --tui-steplist-gap
380
385
  --tui-steplist-padding
381
386
  --tui-steplist-radius
@@ -6354,6 +6359,76 @@
6354
6359
  :where(.tui-interface) .tui-search-input__submit:focus-visible {
6355
6360
  color: var(--tui-color-fg);
6356
6361
  }
6362
+ .tui-interface .tui-secret-input.is-set .tui-secret-input__input::placeholder {
6363
+ color: var(--tui-secret-input-set-fg, var(--tui-color-fg-muted));
6364
+ opacity: 1;
6365
+ }
6366
+ .tui-interface .tui-secret-input.is-locked {
6367
+ --_bg: var(
6368
+ --tui-secret-input-bg-locked,
6369
+ var(--tui-input-bg-readonly, var(--tui-color-bg-muted))
6370
+ );
6371
+ cursor: default;
6372
+ }
6373
+ .tui-interface .tui-secret-input.is-locked .tui-secret-input__input {
6374
+ cursor: default;
6375
+ }
6376
+ @media (forced-colors: active) {
6377
+ .tui-interface .tui-secret-input.is-locked {
6378
+ border-color: GrayText;
6379
+ }
6380
+ }
6381
+ .tui-interface .tui-secret-input__lock {
6382
+ color: var(--tui-color-fg-muted);
6383
+ }
6384
+ :where(.tui-interface) .tui-secret-input__reveal {
6385
+ display: inline-flex;
6386
+ align-items: center;
6387
+ justify-content: center;
6388
+ flex: none;
6389
+ min-inline-size: 1.5rem;
6390
+ min-block-size: 1.5rem;
6391
+ padding: 0.1875em;
6392
+ margin-block: calc(-1 * var(--_py, var(--tui-spacing-xxs)));
6393
+ border: 0;
6394
+ border-radius: var(--tui-secret-input-button-radius, var(--tui-radius-full, 999px));
6395
+ background: transparent;
6396
+ color: var(--tui-color-fg-secondary);
6397
+ cursor: pointer;
6398
+ line-height: 0;
6399
+ transition-duration: var(--tui-motion-duration);
6400
+ transition-timing-function: var(--tui-motion-timing);
6401
+ transition-property: color, background-color, outline-color;
6402
+ }
6403
+ :where(.tui-interface) .tui-secret-input__reveal .tui-icon {
6404
+ font-size: 1.125em;
6405
+ }
6406
+ @media (hover: hover) {
6407
+ :where(.tui-interface) .tui-secret-input__reveal:hover {
6408
+ color: var(--tui-color-fg);
6409
+ }
6410
+ }
6411
+ :where(.tui-interface) .tui-secret-input__reveal:focus-visible {
6412
+ color: var(--tui-color-fg);
6413
+ outline: var(--tui-focus-ring-width) solid var(--tui-focus-ring-color);
6414
+ outline-offset: var(--tui-focus-ring-offset);
6415
+ }
6416
+ :where(.tui-interface) .tui-secret-input__reveal[data-revealed=true] {
6417
+ background-color: var(--tui-color-fill-subtle);
6418
+ color: var(--tui-color-fg);
6419
+ }
6420
+ @media (forced-colors: active) {
6421
+ :where(.tui-interface) .tui-secret-input__reveal {
6422
+ color: ButtonText;
6423
+ }
6424
+ :where(.tui-interface) .tui-secret-input__reveal[data-revealed=true] {
6425
+ background-color: Highlight;
6426
+ color: HighlightText;
6427
+ }
6428
+ :where(.tui-interface) .tui-secret-input__reveal:focus-visible {
6429
+ outline-color: Highlight;
6430
+ }
6431
+ }
6357
6432
  :where(.tui-interface) .tui-segmented {
6358
6433
  --_gap: var(--tui-segmented-gap, 0.5em);
6359
6434
  --_padding: var(--tui-segmented-padding, 0.5em);
@@ -7336,6 +7411,13 @@
7336
7411
  border: none;
7337
7412
  border-radius: 0;
7338
7413
  background: transparent;
7414
+ }
7415
+ :where(.tui-interface) .tui-input-group .tui-input[readonly],
7416
+ :where(.tui-interface) .tui-input-group input[readonly] {
7417
+ background-color: transparent;
7418
+ }
7419
+ :where(.tui-interface) .tui-input-group .tui-input,
7420
+ :where(.tui-interface) .tui-input-group input {
7339
7421
  padding-inline: 0;
7340
7422
  padding-block: 0;
7341
7423
  min-height: 0;
@@ -8352,6 +8434,10 @@
8352
8434
  display: none !important;
8353
8435
  -webkit-appearance: none !important;
8354
8436
  }
8437
+ .tui-interface .tui-input-reset::-ms-reveal,
8438
+ .tui-interface .tui-input-reset input::-ms-reveal {
8439
+ display: none !important;
8440
+ }
8355
8441
  .tui-interface .tui-input-reset::-webkit-inner-spin-button, .tui-interface .tui-input-reset::-webkit-outer-spin-button,
8356
8442
  .tui-interface .tui-input-reset input::-webkit-inner-spin-button,
8357
8443
  .tui-interface .tui-input-reset input::-webkit-outer-spin-button {
@@ -376,6 +376,11 @@
376
376
  --tui-search-select-option-bg-selected
377
377
  */
378
378
  /* @tui-tokens
379
+ --tui-secret-input-set-fg
380
+ --tui-secret-input-button-radius
381
+ --tui-secret-input-bg-locked
382
+ */
383
+ /* @tui-tokens
379
384
  --tui-steplist-gap
380
385
  --tui-steplist-padding
381
386
  --tui-steplist-radius
@@ -6354,6 +6359,76 @@
6354
6359
  :where(.tui-interface) .tui-search-input__submit:focus-visible {
6355
6360
  color: var(--tui-color-fg);
6356
6361
  }
6362
+ .tui-interface .tui-secret-input.is-set .tui-secret-input__input::placeholder {
6363
+ color: var(--tui-secret-input-set-fg, var(--tui-color-fg-muted));
6364
+ opacity: 1;
6365
+ }
6366
+ .tui-interface .tui-secret-input.is-locked {
6367
+ --_bg: var(
6368
+ --tui-secret-input-bg-locked,
6369
+ var(--tui-input-bg-readonly, var(--tui-color-bg-muted))
6370
+ );
6371
+ cursor: default;
6372
+ }
6373
+ .tui-interface .tui-secret-input.is-locked .tui-secret-input__input {
6374
+ cursor: default;
6375
+ }
6376
+ @media (forced-colors: active) {
6377
+ .tui-interface .tui-secret-input.is-locked {
6378
+ border-color: GrayText;
6379
+ }
6380
+ }
6381
+ .tui-interface .tui-secret-input__lock {
6382
+ color: var(--tui-color-fg-muted);
6383
+ }
6384
+ :where(.tui-interface) .tui-secret-input__reveal {
6385
+ display: inline-flex;
6386
+ align-items: center;
6387
+ justify-content: center;
6388
+ flex: none;
6389
+ min-inline-size: 1.5rem;
6390
+ min-block-size: 1.5rem;
6391
+ padding: 0.1875em;
6392
+ margin-block: calc(-1 * var(--_py, var(--tui-spacing-xxs)));
6393
+ border: 0;
6394
+ border-radius: var(--tui-secret-input-button-radius, var(--tui-radius-full, 999px));
6395
+ background: transparent;
6396
+ color: var(--tui-color-fg-secondary);
6397
+ cursor: pointer;
6398
+ line-height: 0;
6399
+ transition-duration: var(--tui-motion-duration);
6400
+ transition-timing-function: var(--tui-motion-timing);
6401
+ transition-property: color, background-color, outline-color;
6402
+ }
6403
+ :where(.tui-interface) .tui-secret-input__reveal .tui-icon {
6404
+ font-size: 1.125em;
6405
+ }
6406
+ @media (hover: hover) {
6407
+ :where(.tui-interface) .tui-secret-input__reveal:hover {
6408
+ color: var(--tui-color-fg);
6409
+ }
6410
+ }
6411
+ :where(.tui-interface) .tui-secret-input__reveal:focus-visible {
6412
+ color: var(--tui-color-fg);
6413
+ outline: var(--tui-focus-ring-width) solid var(--tui-focus-ring-color);
6414
+ outline-offset: var(--tui-focus-ring-offset);
6415
+ }
6416
+ :where(.tui-interface) .tui-secret-input__reveal[data-revealed=true] {
6417
+ background-color: var(--tui-color-fill-subtle);
6418
+ color: var(--tui-color-fg);
6419
+ }
6420
+ @media (forced-colors: active) {
6421
+ :where(.tui-interface) .tui-secret-input__reveal {
6422
+ color: ButtonText;
6423
+ }
6424
+ :where(.tui-interface) .tui-secret-input__reveal[data-revealed=true] {
6425
+ background-color: Highlight;
6426
+ color: HighlightText;
6427
+ }
6428
+ :where(.tui-interface) .tui-secret-input__reveal:focus-visible {
6429
+ outline-color: Highlight;
6430
+ }
6431
+ }
6357
6432
  :where(.tui-interface) .tui-segmented {
6358
6433
  --_gap: var(--tui-segmented-gap, 0.5em);
6359
6434
  --_padding: var(--tui-segmented-padding, 0.5em);
@@ -7336,6 +7411,13 @@
7336
7411
  border: none;
7337
7412
  border-radius: 0;
7338
7413
  background: transparent;
7414
+ }
7415
+ :where(.tui-interface) .tui-input-group .tui-input[readonly],
7416
+ :where(.tui-interface) .tui-input-group input[readonly] {
7417
+ background-color: transparent;
7418
+ }
7419
+ :where(.tui-interface) .tui-input-group .tui-input,
7420
+ :where(.tui-interface) .tui-input-group input {
7339
7421
  padding-inline: 0;
7340
7422
  padding-block: 0;
7341
7423
  min-height: 0;
@@ -8352,6 +8434,10 @@
8352
8434
  display: none !important;
8353
8435
  -webkit-appearance: none !important;
8354
8436
  }
8437
+ .tui-interface .tui-input-reset::-ms-reveal,
8438
+ .tui-interface .tui-input-reset input::-ms-reveal {
8439
+ display: none !important;
8440
+ }
8355
8441
  .tui-interface .tui-input-reset::-webkit-inner-spin-button, .tui-interface .tui-input-reset::-webkit-outer-spin-button,
8356
8442
  .tui-interface .tui-input-reset input::-webkit-inner-spin-button,
8357
8443
  .tui-interface .tui-input-reset input::-webkit-outer-spin-button {