@tangible/ui 0.2.13 → 0.2.15

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.
Files changed (35) hide show
  1. package/components/DatePicker/DatePicker.d.ts +19 -1
  2. package/components/DatePicker/DatePicker.js +73 -16
  3. package/components/DatePicker/DateRangePicker.d.ts +19 -1
  4. package/components/DatePicker/DateRangePicker.js +77 -23
  5. package/components/DatePicker/PickerTrigger.d.ts +38 -0
  6. package/components/DatePicker/PickerTrigger.js +57 -0
  7. package/components/DatePicker/index.d.ts +3 -3
  8. package/components/DatePicker/index.js +2 -2
  9. package/components/DatePicker/types.d.ts +65 -2
  10. package/components/Modal/Modal.d.ts +1 -1
  11. package/components/Modal/Modal.js +49 -9
  12. package/components/Popover/Popover.js +13 -0
  13. package/components/SecretInput/SecretInput.d.ts +9 -0
  14. package/components/SecretInput/SecretInput.js +146 -0
  15. package/components/SecretInput/index.d.ts +3 -0
  16. package/components/SecretInput/index.js +2 -0
  17. package/components/SecretInput/types.d.ts +138 -0
  18. package/components/SecretInput/types.js +11 -0
  19. package/components/index.d.ts +3 -1
  20. package/components/index.js +2 -1
  21. package/figma-tokens.json +1 -1
  22. package/package.json +5 -1
  23. package/skills/building-with-tui/SKILL.md +66 -2
  24. package/styles/all.css +1 -1
  25. package/styles/all.expanded.css +92 -0
  26. package/styles/all.expanded.unlayered.css +92 -0
  27. package/styles/all.unlayered.css +1 -1
  28. package/styles/components/_bundle.scss +3 -1
  29. package/styles/components/search-input.scss +1 -1
  30. package/styles/components/secret-input.scss +156 -0
  31. package/styles/components/text-input.scss +32 -0
  32. package/styles/core.css +1 -1
  33. package/styles/core.unlayered.css +1 -1
  34. package/styles/utilities/_index.scss +8 -0
  35. package/tui-manifest.json +111 -2
@@ -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;
@@ -7394,6 +7476,12 @@
7394
7476
  :where(.tui-interface) .tui-input-group__suffix .tui-icon {
7395
7477
  font-size: 1em;
7396
7478
  }
7479
+ :where(.tui-interface) .tui-input-group__prefix > .tui-button,
7480
+ :where(.tui-interface) .tui-input-group__prefix > .tui-icon-button,
7481
+ :where(.tui-interface) .tui-input-group__suffix > .tui-button,
7482
+ :where(.tui-interface) .tui-input-group__suffix > .tui-icon-button {
7483
+ margin-block: calc(-1 * var(--_py));
7484
+ }
7397
7485
  :where(.tui-interface) .tui-input-group__prefix.is-text,
7398
7486
  :where(.tui-interface) .tui-input-group__suffix.is-text {
7399
7487
  background-color: var(--tui-color-bg-surface);
@@ -8352,6 +8440,10 @@
8352
8440
  display: none !important;
8353
8441
  -webkit-appearance: none !important;
8354
8442
  }
8443
+ .tui-interface .tui-input-reset::-ms-reveal,
8444
+ .tui-interface .tui-input-reset input::-ms-reveal {
8445
+ display: none !important;
8446
+ }
8355
8447
  .tui-interface .tui-input-reset::-webkit-inner-spin-button, .tui-interface .tui-input-reset::-webkit-outer-spin-button,
8356
8448
  .tui-interface .tui-input-reset input::-webkit-inner-spin-button,
8357
8449
  .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;
@@ -7394,6 +7476,12 @@
7394
7476
  :where(.tui-interface) .tui-input-group__suffix .tui-icon {
7395
7477
  font-size: 1em;
7396
7478
  }
7479
+ :where(.tui-interface) .tui-input-group__prefix > .tui-button,
7480
+ :where(.tui-interface) .tui-input-group__prefix > .tui-icon-button,
7481
+ :where(.tui-interface) .tui-input-group__suffix > .tui-button,
7482
+ :where(.tui-interface) .tui-input-group__suffix > .tui-icon-button {
7483
+ margin-block: calc(-1 * var(--_py));
7484
+ }
7397
7485
  :where(.tui-interface) .tui-input-group__prefix.is-text,
7398
7486
  :where(.tui-interface) .tui-input-group__suffix.is-text {
7399
7487
  background-color: var(--tui-color-bg-surface);
@@ -8352,6 +8440,10 @@
8352
8440
  display: none !important;
8353
8441
  -webkit-appearance: none !important;
8354
8442
  }
8443
+ .tui-interface .tui-input-reset::-ms-reveal,
8444
+ .tui-interface .tui-input-reset input::-ms-reveal {
8445
+ display: none !important;
8446
+ }
8355
8447
  .tui-interface .tui-input-reset::-webkit-inner-spin-button, .tui-interface .tui-input-reset::-webkit-outer-spin-button,
8356
8448
  .tui-interface .tui-input-reset input::-webkit-inner-spin-button,
8357
8449
  .tui-interface .tui-input-reset input::-webkit-outer-spin-button {