@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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
4
4
 
5
+ ## 0.1.0-alpha.40 (2026-12-03)
6
+
7
+ A password field can show what is typed, and a host can tell the browser what may fill a field.
8
+
9
+ - `TextField`: `reveal: { show, hide }` draws an eye at a password field's end that shows the typed text and hides it again, keeping the value. It names the field it controls, and its name says what a press does next, so it carries no pressed state. It is as wide as the field is high (a full touch target under a coarse pointer), and the field's text keeps clear of it. It is not drawn on a field that is not a password, on one that is read-only or pinned, or without its two names. (#159)
10
+ - `TextField`: `autoComplete` is passed to the input as given, so a host can follow a server's `new-password`. (#159)
11
+ - `Icon`: `eye` and `eye-off`, read from the server's `eye` and `eye-slash`. (#159)
12
+
5
13
  ## 0.1.0-alpha.39 (2026-12-02)
6
14
 
7
15
  A refused phone action says why on a press, and an avatar for no one shows no letters.
@@ -41,6 +41,17 @@ export interface TextFieldProps extends FieldFrame, Constraints {
41
41
  */
42
42
  readonly pinned?: ReactNode;
43
43
  readonly name?: string;
44
+ /** What the browser may fill the field with (`new-password`, `email`, `off`), as the server declares it. */
45
+ readonly autoComplete?: string;
46
+ /**
47
+ * A password field's show and hide button, by its two names: an eye at the field's end that shows what is typed and
48
+ * hides it again. Its name says what a press does next (show, then hide), so it is a plain button, not a pressed
49
+ * toggle. Without the names a password field has none.
50
+ */
51
+ readonly reveal?: {
52
+ readonly show: string;
53
+ readonly hide: string;
54
+ };
44
55
  }
45
56
  /**
46
57
  * A date or time value written out in a locale, as the wall-clock value it is (no time zone is applied); the value
@@ -53,7 +64,7 @@ export declare function writtenOut(type: TextFieldType, value: string, locale: s
53
64
  * input's own (`min`, `max`, `step`, `minlength`, `maxlength`, `required`). A date or time that is read-only or pinned
54
65
  * is written out in the person's locale, and keeps its ISO value in `data-value`.
55
66
  */
56
- export declare function TextField({ label, help, error, disabled, readOnly, pinned, value, onChange, placeholder, type, name, locale, min, max, step, minLength, maxLength, required }: TextFieldProps): ReactNode;
67
+ export declare function TextField({ label, help, error, disabled, readOnly, pinned, value, onChange, placeholder, type, name, locale, min, max, step, minLength, maxLength, required, autoComplete, reveal }: TextFieldProps): ReactNode;
57
68
  export interface TextAreaProps extends FieldFrame, Pick<Constraints, 'minLength' | 'maxLength' | 'required'> {
58
69
  readonly value: string;
59
70
  readonly onChange?: (value: string) => void;
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  /** The icons the Workspace draws: one stroke style, 24 units, coloured by the text around them. */
3
- export type IconName = 'mail' | 'chat' | 'phone' | 'calendar' | 'file' | 'image' | 'search' | 'bell' | 'pencil' | 'star' | 'send' | 'inbox' | 'archive' | 'trash' | 'paperclip' | 'mic' | 'speaker' | 'user-plus' | 'phone-off' | 'video' | 'info' | 'chevron-down' | 'chevron-left' | 'plus' | 'folder' | 'check' | 'server' | 'reply' | 'more' | 'download' | 'print' | 'open-separately' | 'important' | 'forward' | 'refresh' | 'file-code' | 'mail-open' | 'copy' | 'user' | 'folder-plus' | 'folder-x' | 'user-check' | 'user-x' | 'upload' | 'users' | 'settings' | 'hash' | 'funnel';
3
+ export type IconName = 'mail' | 'chat' | 'phone' | 'calendar' | 'file' | 'image' | 'search' | 'bell' | 'pencil' | 'star' | 'send' | 'inbox' | 'archive' | 'trash' | 'paperclip' | 'mic' | 'speaker' | 'user-plus' | 'phone-off' | 'video' | 'info' | 'chevron-down' | 'chevron-left' | 'plus' | 'folder' | 'check' | 'server' | 'reply' | 'more' | 'download' | 'print' | 'open-separately' | 'important' | 'forward' | 'refresh' | 'file-code' | 'mail-open' | 'copy' | 'user' | 'folder-plus' | 'folder-x' | 'user-check' | 'user-x' | 'upload' | 'users' | 'settings' | 'hash' | 'funnel' | 'eye' | 'eye-off';
4
4
  export interface IconProps {
5
5
  readonly name: IconName;
6
6
  readonly size?: number;