@coolms/ui-react 0.1.0-alpha.39 → 0.1.0-alpha.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.39",
3
+ "version": "0.1.0-alpha.40",
4
4
  "description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/kit.css CHANGED
@@ -878,3 +878,17 @@
878
878
  .cms-pane-toolbar__action { min-height: var(--cms-touch-target-min, 44px); }
879
879
  .cms-pane-toolbar__action--bare, .cms-pane-toolbar__more { min-width: var(--cms-touch-target-min, 44px); min-height: var(--cms-touch-target-min, 44px); }
880
880
  }
881
+
882
+ /* A password field's show and hide button: an eye at the field's end, the field's text kept clear of it. */
883
+ .cms-input-reveal { position: relative; display: flex; align-items: center; }
884
+ /* The button is as wide as the field is high, and fills its height: the control height, which the tokens raise from 40px
885
+ to 44px under a coarse pointer, so on a touch screen it is a full touch target. */
886
+ .cms-input-reveal .cms-input { flex: 1; min-width: 0; padding-inline-end: calc(var(--cms-control-height-md) + 2px); }
887
+ .cms-input-reveal__button {
888
+ position: absolute; inset-block: 1px; inset-inline-end: 1px; width: var(--cms-control-height-md);
889
+ display: inline-flex; align-items: center; justify-content: center;
890
+ border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); cursor: pointer;
891
+ }
892
+ .cms-input-reveal__button:hover:not(:disabled) { color: var(--cms-text); }
893
+ .cms-input-reveal__button:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
894
+ .cms-input-reveal__button:disabled { cursor: not-allowed; }