@newtone-dev/ui-react-web 0.41.0 → 0.42.0

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 (176) hide show
  1. package/README.md +1 -1
  2. package/dist/beside/beside.css +21 -0
  3. package/dist/beside/beside.d.ts +8 -1
  4. package/dist/beside/beside.d.ts.map +1 -1
  5. package/dist/beside/beside.js +2 -2
  6. package/dist/beside/beside.js.map +1 -1
  7. package/dist/body/body.d.ts +3 -0
  8. package/dist/body/body.d.ts.map +1 -1
  9. package/dist/body/body.js +4 -1
  10. package/dist/body/body.js.map +1 -1
  11. package/dist/canvas/canvas.css +25 -0
  12. package/dist/canvas/canvas.d.ts +2 -0
  13. package/dist/canvas/canvas.d.ts.map +1 -1
  14. package/dist/canvas/canvas.js +2 -1
  15. package/dist/canvas/canvas.js.map +1 -1
  16. package/dist/canvas/frame/frame.d.ts +16 -0
  17. package/dist/canvas/frame/frame.d.ts.map +1 -0
  18. package/dist/canvas/frame/frame.js +19 -0
  19. package/dist/canvas/frame/frame.js.map +1 -0
  20. package/dist/canvas/index.d.ts +1 -0
  21. package/dist/canvas/index.d.ts.map +1 -1
  22. package/dist/desktop/bar/apps.d.ts +18 -0
  23. package/dist/desktop/bar/apps.d.ts.map +1 -0
  24. package/dist/desktop/bar/apps.js +16 -0
  25. package/dist/desktop/bar/apps.js.map +1 -0
  26. package/dist/desktop/bar/bar.d.ts +56 -0
  27. package/dist/desktop/bar/bar.d.ts.map +1 -0
  28. package/dist/desktop/bar/bar.js +34 -0
  29. package/dist/desktop/bar/bar.js.map +1 -0
  30. package/dist/desktop/bar/monogram.d.ts +14 -0
  31. package/dist/desktop/bar/monogram.d.ts.map +1 -0
  32. package/dist/desktop/bar/monogram.js +15 -0
  33. package/dist/desktop/bar/monogram.js.map +1 -0
  34. package/dist/desktop/context.d.ts +6 -12
  35. package/dist/desktop/context.d.ts.map +1 -1
  36. package/dist/desktop/context.js.map +1 -1
  37. package/dist/desktop/control/control.d.ts +10 -3
  38. package/dist/desktop/control/control.d.ts.map +1 -1
  39. package/dist/desktop/control/control.js +16 -4
  40. package/dist/desktop/control/control.js.map +1 -1
  41. package/dist/desktop/desktop.css +845 -335
  42. package/dist/desktop/desktop.d.ts +36 -33
  43. package/dist/desktop/desktop.d.ts.map +1 -1
  44. package/dist/desktop/desktop.js +25 -30
  45. package/dist/desktop/desktop.js.map +1 -1
  46. package/dist/desktop/index.d.ts +9 -7
  47. package/dist/desktop/index.d.ts.map +1 -1
  48. package/dist/desktop/index.js +3 -3
  49. package/dist/desktop/index.js.map +1 -1
  50. package/dist/desktop/launcher/launcher.d.ts +107 -0
  51. package/dist/desktop/launcher/launcher.d.ts.map +1 -0
  52. package/dist/desktop/launcher/launcher.js +164 -0
  53. package/dist/desktop/launcher/launcher.js.map +1 -0
  54. package/dist/desktop/menu/menu.d.ts +41 -25
  55. package/dist/desktop/menu/menu.d.ts.map +1 -1
  56. package/dist/desktop/menu/menu.js +86 -48
  57. package/dist/desktop/menu/menu.js.map +1 -1
  58. package/dist/desktop/profile/profile.d.ts +38 -0
  59. package/dist/desktop/profile/profile.d.ts.map +1 -0
  60. package/dist/desktop/profile/profile.js +18 -0
  61. package/dist/desktop/profile/profile.js.map +1 -0
  62. package/dist/desktop/tiles/layout.d.ts +86 -0
  63. package/dist/desktop/tiles/layout.d.ts.map +1 -0
  64. package/dist/desktop/tiles/layout.js +215 -0
  65. package/dist/desktop/tiles/layout.js.map +1 -0
  66. package/dist/desktop/tiles/tiles.d.ts +106 -0
  67. package/dist/desktop/tiles/tiles.d.ts.map +1 -0
  68. package/dist/desktop/tiles/tiles.js +121 -0
  69. package/dist/desktop/tiles/tiles.js.map +1 -0
  70. package/dist/desktop/widget/widget.d.ts +51 -0
  71. package/dist/desktop/widget/widget.d.ts.map +1 -0
  72. package/dist/desktop/widget/widget.js +18 -0
  73. package/dist/desktop/widget/widget.js.map +1 -0
  74. package/dist/field-row/field-row.css +30 -0
  75. package/dist/field-row/field-row.d.ts +12 -0
  76. package/dist/field-row/field-row.d.ts.map +1 -0
  77. package/dist/field-row/field-row.js +10 -0
  78. package/dist/field-row/field-row.js.map +1 -0
  79. package/dist/field-row/index.d.ts +4 -0
  80. package/dist/field-row/index.d.ts.map +1 -0
  81. package/dist/field-row/index.js +3 -0
  82. package/dist/field-row/index.js.map +1 -0
  83. package/dist/file-grid/file-grid.css +33 -1
  84. package/dist/file-grid/file-grid.d.ts +12 -2
  85. package/dist/file-grid/file-grid.d.ts.map +1 -1
  86. package/dist/file-grid/file-grid.js +4 -4
  87. package/dist/file-grid/file-grid.js.map +1 -1
  88. package/dist/framed-icon/art.d.ts +73 -0
  89. package/dist/framed-icon/art.d.ts.map +1 -0
  90. package/dist/framed-icon/art.js +66 -0
  91. package/dist/framed-icon/art.js.map +1 -0
  92. package/dist/framed-icon/framed-icon.css +161 -0
  93. package/dist/framed-icon/framed-icon.d.ts +10 -2
  94. package/dist/framed-icon/framed-icon.d.ts.map +1 -1
  95. package/dist/framed-icon/framed-icon.js +3 -2
  96. package/dist/framed-icon/framed-icon.js.map +1 -1
  97. package/dist/framed-icon/index.d.ts +2 -0
  98. package/dist/framed-icon/index.d.ts.map +1 -1
  99. package/dist/framed-icon/index.js +1 -0
  100. package/dist/framed-icon/index.js.map +1 -1
  101. package/dist/identity/identity.css +7 -0
  102. package/dist/identity/identity.d.ts +50 -12
  103. package/dist/identity/identity.d.ts.map +1 -1
  104. package/dist/identity/identity.js +24 -13
  105. package/dist/identity/identity.js.map +1 -1
  106. package/dist/identity/index.d.ts +2 -2
  107. package/dist/identity/index.d.ts.map +1 -1
  108. package/dist/identity/index.js +1 -1
  109. package/dist/identity/index.js.map +1 -1
  110. package/dist/index.d.ts +12 -6
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +5 -2
  113. package/dist/index.js.map +1 -1
  114. package/dist/nav-list/nav-list.d.ts +5 -1
  115. package/dist/nav-list/nav-list.d.ts.map +1 -1
  116. package/dist/nav-list/nav-list.js +1 -1
  117. package/dist/nav-list/nav-list.js.map +1 -1
  118. package/dist/picker/index.d.ts +4 -0
  119. package/dist/picker/index.d.ts.map +1 -0
  120. package/dist/picker/index.js +3 -0
  121. package/dist/picker/index.js.map +1 -0
  122. package/dist/picker/picker.css +95 -0
  123. package/dist/picker/picker.d.ts +58 -0
  124. package/dist/picker/picker.d.ts.map +1 -0
  125. package/dist/picker/picker.js +106 -0
  126. package/dist/picker/picker.js.map +1 -0
  127. package/dist/row-list/row-list.css +10 -0
  128. package/dist/row-list/row-list.d.ts +3 -1
  129. package/dist/row-list/row-list.d.ts.map +1 -1
  130. package/dist/row-list/row-list.js +2 -2
  131. package/dist/row-list/row-list.js.map +1 -1
  132. package/dist/split/index.d.ts +1 -1
  133. package/dist/split/index.d.ts.map +1 -1
  134. package/dist/split/split.css +136 -0
  135. package/dist/split/split.d.ts +38 -11
  136. package/dist/split/split.d.ts.map +1 -1
  137. package/dist/split/split.js +72 -7
  138. package/dist/split/split.js.map +1 -1
  139. package/dist/text/text.d.ts +6 -2
  140. package/dist/text/text.d.ts.map +1 -1
  141. package/dist/text/text.js.map +1 -1
  142. package/dist/text-field/suggested.d.ts +17 -0
  143. package/dist/text-field/suggested.d.ts.map +1 -0
  144. package/dist/text-field/suggested.js +72 -0
  145. package/dist/text-field/suggested.js.map +1 -0
  146. package/dist/text-field/text-field.css +64 -0
  147. package/dist/text-field/text-field.d.ts +17 -1
  148. package/dist/text-field/text-field.d.ts.map +1 -1
  149. package/dist/text-field/text-field.js +5 -2
  150. package/dist/text-field/text-field.js.map +1 -1
  151. package/dist/tooltip/tooltip.css +17 -0
  152. package/dist/tooltip/tooltip.d.ts +7 -1
  153. package/dist/tooltip/tooltip.d.ts.map +1 -1
  154. package/dist/tooltip/tooltip.js +2 -2
  155. package/dist/tooltip/tooltip.js.map +1 -1
  156. package/package.json +4 -1
  157. package/dist/desktop/clock/clock.d.ts +0 -11
  158. package/dist/desktop/clock/clock.d.ts.map +0 -1
  159. package/dist/desktop/clock/clock.js +0 -20
  160. package/dist/desktop/clock/clock.js.map +0 -1
  161. package/dist/desktop/dock/dock.d.ts +0 -30
  162. package/dist/desktop/dock/dock.d.ts.map +0 -1
  163. package/dist/desktop/dock/dock.js +0 -15
  164. package/dist/desktop/dock/dock.js.map +0 -1
  165. package/dist/desktop/menu-bar/menu-bar.d.ts +0 -18
  166. package/dist/desktop/menu-bar/menu-bar.d.ts.map +0 -1
  167. package/dist/desktop/menu-bar/menu-bar.js +0 -11
  168. package/dist/desktop/menu-bar/menu-bar.js.map +0 -1
  169. package/dist/desktop/spaces/spaces.d.ts +0 -23
  170. package/dist/desktop/spaces/spaces.d.ts.map +0 -1
  171. package/dist/desktop/spaces/spaces.js +0 -8
  172. package/dist/desktop/spaces/spaces.js.map +0 -1
  173. package/dist/desktop/window/window.d.ts +0 -60
  174. package/dist/desktop/window/window.d.ts.map +0 -1
  175. package/dist/desktop/window/window.js +0 -86
  176. package/dist/desktop/window/window.js.map +0 -1
@@ -0,0 +1,72 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useId, useRef, useState } from 'react';
4
+ /**
5
+ * The box of a `TextField` given `suggestions`: a combobox whose list offers values a person can take
6
+ * or type past. Its own file because it holds state (open, which one is active), and `text-field.tsx`
7
+ * wants no client boundary. components/text-field.md, *Suggestions*.
8
+ *
9
+ * It stays uncontrolled, as the field does: a suggestion taken is written into the box the way typing
10
+ * would be, with an `input` event that bubbles, so a form that hears typing hears taking too.
11
+ */
12
+ export function Suggested({ suggestions, label, className, onKeyDown, onFocus, onBlur, onInput, ...rest }) {
13
+ const box = useRef(null);
14
+ const listId = `${useId()}-list`;
15
+ const [open, setOpen] = useState(false);
16
+ // While a person types, the list narrows to what holds their words; opened, it shows every one.
17
+ const [typed, setTyped] = useState(null);
18
+ const [active, setActive] = useState(-1);
19
+ const fold = (s) => s.normalize('NFD').replace(/\p{M}/gu, '').toLowerCase();
20
+ const shown = typed ? suggestions.filter((s) => fold(s).includes(fold(typed)) && s !== typed) : [...suggestions];
21
+ const expanded = open && shown.length > 0;
22
+ function take(s) {
23
+ const el = box.current;
24
+ if (!el)
25
+ return;
26
+ // Through the prototype's setter, so React's own record of the value hears it as typing.
27
+ Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set?.call(el, s);
28
+ el.dispatchEvent(new Event('input', { bubbles: true }));
29
+ setTyped(null);
30
+ setOpen(false);
31
+ setActive(-1);
32
+ }
33
+ function keys(e) {
34
+ onKeyDown?.(e);
35
+ if (e.defaultPrevented)
36
+ return;
37
+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
38
+ e.preventDefault();
39
+ if (!open) {
40
+ setOpen(true);
41
+ setActive(e.key === 'ArrowDown' ? 0 : shown.length - 1);
42
+ return;
43
+ }
44
+ const n = shown.length;
45
+ if (!n)
46
+ return;
47
+ setActive((a) => (e.key === 'ArrowDown' ? (a + 1) % n : (a <= 0 ? n - 1 : a - 1)));
48
+ }
49
+ else if (e.key === 'Enter' && expanded && active >= 0 && shown[active] !== undefined) {
50
+ // Enter takes the one marked; with none marked it is the form's, and submits.
51
+ e.preventDefault();
52
+ take(shown[active]);
53
+ }
54
+ else if (e.key === 'Escape' && expanded) {
55
+ e.preventDefault();
56
+ setOpen(false);
57
+ setActive(-1);
58
+ }
59
+ }
60
+ return (_jsxs("div", { className: "newtone-text-field-holder newtone-text-field-suggested", children: [_jsx("input", { ...rest, ref: box, className: className, role: "combobox", "aria-autocomplete": "list", "aria-expanded": expanded, "aria-controls": listId, "aria-activedescendant": expanded && active >= 0 ? `${listId}-${active}` : undefined, autoComplete: "off", onFocus: (e) => { onFocus?.(e); setTyped(null); setOpen(true); }, onBlur: (e) => { onBlur?.(e); setOpen(false); setActive(-1); }, onClick: () => setOpen(true), onInput: (e) => {
61
+ onInput?.(e);
62
+ // A value taken from the list arrives here too, and is not typing.
63
+ if (e.nativeEvent.isTrusted) {
64
+ setTyped(e.currentTarget.value);
65
+ setOpen(true);
66
+ setActive(-1);
67
+ }
68
+ }, onKeyDown: keys }), _jsx("ul", { id: listId, role: "listbox", "aria-label": label, className: "newtone-text-field-list", hidden: !expanded, children: shown.map((s, i) => (_jsx("li", { id: `${listId}-${i}`, role: "option", "aria-selected": i === active, className: "newtone-text-field-option",
69
+ // Pressing keeps the focus in the box, so the list is not closed by its own press.
70
+ onMouseDown: (e) => e.preventDefault(), onClick: () => take(s), onMouseEnter: () => setActive(i), children: s }, s))) })] }));
71
+ }
72
+ //# sourceMappingURL=suggested.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggested.js","sourceRoot":"","sources":["../../src/text-field/suggested.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAgD,MAAM,OAAO,CAAA;AAE7F;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAC,EACtB,WAAW,EACX,KAAK,EACL,SAAS,EACT,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,GAAG,IAAI,EAOV;IACG,MAAM,GAAG,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAA;IAC1C,MAAM,MAAM,GAAG,GAAG,KAAK,EAAE,OAAO,CAAA;IAChC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACvC,gGAAgG;IAChG,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAA;IACvD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;IAExC,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAA;IACnF,MAAM,KAAK,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S,CAAC,CAAC,CAAC,YAE/B,CAAC,IAVG,CAAC,CAWL,CACR,CAAC,GACD,IACH,CACT,CAAA;AACL,CAAC"}
@@ -96,3 +96,67 @@
96
96
  border-radius: var(--newtone-text-field-multiline-radius);
97
97
  resize: vertical;
98
98
  }
99
+
100
+ /* The label hidden from sight (`labelHidden`), kept as the box's accessible name: the rail's way, shell.css. */
101
+ .newtone-text-field-label--hidden {
102
+ position: absolute;
103
+ inline-size: 1px;
104
+ block-size: 1px;
105
+ overflow: hidden;
106
+ clip-path: inset(50%);
107
+ white-space: nowrap;
108
+ }
109
+
110
+ /* A glyph at the box's start (`icon`): over the box, where its padding was, and the words a glyph and a gap
111
+ * further in. The glyph is 20 (`sm`), the hint's ink, and never takes a click away from the box. */
112
+ .newtone-text-field-holder {
113
+ position: relative;
114
+ display: flex;
115
+ align-items: center;
116
+ }
117
+ .newtone-text-field-icon {
118
+ position: absolute;
119
+ inset-inline-start: var(--newtone-text-field-box-padding-x);
120
+ pointer-events: none;
121
+ }
122
+ .newtone-text-field-box--icon {
123
+ padding-inline-start: calc(var(--newtone-text-field-box-padding-x) + 20px + var(--newtone-space-2) - 1px);
124
+ }
125
+
126
+ /* Suggestions (`suggestions`): a list under the box, over what follows it, as wide as the box. Its own tokens, the
127
+ * `list` group: a surface, a divider rim, the md corner, and the one marked (by arrow or by pointer) filled. Each
128
+ * option is the box's type and inline padding, so a value taken lands where it was read. */
129
+ .newtone-text-field-suggested {
130
+ display: block;
131
+ }
132
+ .newtone-text-field-list {
133
+ position: absolute;
134
+ inset-block-start: calc(100% + var(--newtone-text-field-list-offset));
135
+ inset-inline: 0;
136
+ z-index: 5;
137
+ box-sizing: border-box;
138
+ max-block-size: 18rem;
139
+ overflow: auto;
140
+ margin: 0;
141
+ padding: var(--newtone-text-field-list-padding);
142
+ list-style: none;
143
+ background: var(--newtone-text-field-list-fill);
144
+ border: 1px solid var(--newtone-text-field-list-border);
145
+ border-radius: var(--newtone-text-field-list-radius);
146
+ }
147
+ .newtone-text-field-list[hidden] {
148
+ display: none;
149
+ }
150
+ .newtone-text-field-option {
151
+ padding: var(--newtone-space-2) calc(var(--newtone-text-field-box-padding-x) - var(--newtone-text-field-list-padding) - 1px);
152
+ border-radius: max(0px, calc(var(--newtone-text-field-list-radius) - var(--newtone-text-field-list-padding)));
153
+ color: var(--newtone-text-field-box-text);
154
+ font-family: var(--newtone-text-field-box-family);
155
+ font-weight: var(--newtone-text-field-box-weight);
156
+ font-size: var(--newtone-text-field-box-size);
157
+ line-height: var(--newtone-text-field-box-line-height);
158
+ cursor: pointer;
159
+ }
160
+ .newtone-text-field-option[aria-selected='true'] {
161
+ background: var(--newtone-text-field-list-active-fill);
162
+ }
@@ -10,6 +10,22 @@ interface TextFieldCommon {
10
10
  name: string;
11
11
  /** One line under the label, tied to the box by `aria-describedby`. */
12
12
  hint?: string;
13
+ /**
14
+ * The label kept for assistive technology and hidden from sight, where the box says what it is by
15
+ * itself: a search bar, its glyph and its placeholder. Since 2026-11-01 (HuevOS Contacts' search).
16
+ */
17
+ labelHidden?: boolean;
18
+ /**
19
+ * A glyph at the box's start, by name, in the hint's ink: what the box is for at a glance (`search`).
20
+ * One line only; a `multiline` box takes none. Since 2026-11-01 (HuevOS Contacts' search).
21
+ */
22
+ icon?: string;
23
+ /**
24
+ * Values offered under the box as a person focuses it or types, any of which they can take, or type
25
+ * past: the box stays theirs to write in. One line only, and no `icon` with it. Since 2026-11-01
26
+ * (HuevOS Settings › Profile's *Shown as*). components/text-field.md, *Suggestions*.
27
+ */
28
+ suggestions?: readonly string[];
13
29
  }
14
30
  export type TextFieldProps = TextFieldCommon & ((Omit<InputHTMLAttributes<HTMLInputElement>, 'name' | 'value' | 'onChange'> & {
15
31
  /** One line. `type` passes through, so `email`, `date` and `month` are the browser's. */
@@ -56,6 +72,6 @@ export type TextFieldProps = TextFieldCommon & ((Omit<InputHTMLAttributes<HTMLIn
56
72
  * 362. **This reads its own `text-field.json` group and nothing of `Action`'s**, so the field
57
73
  * and the button agree because both name the same values, and a retune of one moves only one.
58
74
  */
59
- export declare function TextField({ label, name, hint, multiline, className, ...rest }: TextFieldProps): import("react").JSX.Element;
75
+ export declare function TextField({ label, name, hint, labelHidden, icon, multiline, suggestions, className, ...rest }: TextFieldProps): import("react").JSX.Element;
60
76
  export {};
61
77
  //# sourceMappingURL=text-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../src/text-field/text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AAExE,UAAU,eAAe;IACrB,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,cAAc,GAAG,eAAe,GACxC,CACM,CAAC,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,GAAG;IAC1E,yFAAyF;IACzF,SAAS,CAAC,EAAE,KAAK,CAAA;CACpB,CAAC,GACF,CAAC,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,GAAG;IAChF,mEAAmE;IACnE,SAAS,EAAE,IAAI,CAAA;CAClB,CAAC,CACP,CAAA;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,SAAS,CAAC,EACtB,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,SAAiB,EACjB,SAAS,EACT,GAAG,IAAI,EACV,EAAE,cAAc,+BA8ChB"}
1
+ {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../src/text-field/text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AAIxE,UAAU,eAAe;IACrB,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAClC;AAED,MAAM,MAAM,cAAc,GAAG,eAAe,GACxC,CACM,CAAC,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,GAAG;IAC1E,yFAAyF;IACzF,SAAS,CAAC,EAAE,KAAK,CAAA;CACpB,CAAC,GACF,CAAC,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,GAAG;IAChF,mEAAmE;IACnE,SAAS,EAAE,IAAI,CAAA;CAClB,CAAC,CACP,CAAA;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,SAAS,CAAC,EACtB,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,WAAmB,EACnB,IAAI,EACJ,SAAiB,EACjB,WAAW,EACX,SAAS,EACT,GAAG,IAAI,EACV,EAAE,cAAc,+BAoEhB"}
@@ -1,4 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Icon } from '../icon/index.js';
3
+ import { Suggested } from './suggested.js';
2
4
  /**
3
5
  * A labeled box a person types into: a `label`, an optional `hint` under it, and the `<input>`.
4
6
  *
@@ -37,7 +39,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
37
39
  * 362. **This reads its own `text-field.json` group and nothing of `Action`'s**, so the field
38
40
  * and the button agree because both name the same values, and a retune of one moves only one.
39
41
  */
40
- export function TextField({ label, name, hint, multiline = false, className, ...rest }) {
42
+ export function TextField({ label, name, hint, labelHidden = false, icon, multiline = false, suggestions, className, ...rest }) {
41
43
  const id = rest.id ?? `newtone-text-field-${name}`;
42
44
  const hintId = hint === undefined ? undefined : `${id}-hint`;
43
45
  // The caller's own description is kept and the hint is added to it, rather than one replacing
@@ -46,12 +48,13 @@ export function TextField({ label, name, hint, multiline = false, className, ...
46
48
  const classes = [
47
49
  'newtone-text-field-box',
48
50
  multiline ? 'newtone-text-field-box--multiline' : null,
51
+ icon && !multiline ? 'newtone-text-field-box--icon' : null,
49
52
  className,
50
53
  ]
51
54
  .filter(Boolean)
52
55
  .join(' ');
53
56
  // The two casts are `action.tsx`'s: destructuring `multiline` out of the union loses the
54
57
  // narrowing on what is left, and what is left is exactly the attributes of the one element below.
55
- return (_jsxs("div", { className: "newtone-text-field", children: [_jsx("label", { className: "newtone-text-field-label", htmlFor: id, children: label }), hint === undefined ? null : (_jsx("span", { className: "newtone-text-field-hint", id: hintId, children: hint })), multiline ? (_jsx("textarea", { ...rest, className: classes, id: id, name: name, "aria-describedby": describedBy })) : (_jsx("input", { ...rest, className: classes, id: id, name: name, "aria-describedby": describedBy }))] }));
58
+ return (_jsxs("div", { className: "newtone-text-field", children: [_jsx("label", { className: labelHidden ? 'newtone-text-field-label newtone-text-field-label--hidden' : 'newtone-text-field-label', htmlFor: id, children: label }), hint === undefined ? null : (_jsx("span", { className: "newtone-text-field-hint", id: hintId, children: hint })), multiline ? (_jsx("textarea", { ...rest, className: classes, id: id, name: name, "aria-describedby": describedBy })) : suggestions ? (_jsx(Suggested, { ...rest, suggestions: suggestions, label: label, className: classes, id: id, name: name, "aria-describedby": describedBy })) : icon ? (_jsxs("div", { className: "newtone-text-field-holder", children: [_jsx(Icon, { name: icon, size: "sm", tone: "secondary", className: "newtone-text-field-icon", "aria-hidden": "true" }), _jsx("input", { ...rest, className: classes, id: id, name: name, "aria-describedby": describedBy })] })) : (_jsx("input", { ...rest, className: classes, id: id, name: name, "aria-describedby": describedBy }))] }));
56
59
  }
57
60
  //# sourceMappingURL=text-field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../src/text-field/text-field.tsx"],"names":[],"mappings":";AA2BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,SAAS,CAAC,EACtB,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,GAAG,IAAI,EACM;IACb,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,sBAAsB,IAAI,EAAE,CAAA;IAClD,MAAM,MAAM,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAA;IAC5D,8FAA8F;IAC9F,0FAA0F;IAC1F,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,SAAS,CAAA;IAE7F,MAAM,OAAO,GAAG;QACZ,wBAAwB;QACxB,SAAS,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC,IAAI;QACtD,SAAS;KACZ;SACI,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAA;IAEd,yFAAyF;IACzF,kGAAkG;IAClG,OAAO,CACH,eAAK,SAAS,EAAC,oBAAoB,aAC/B,gBAAO,SAAS,EAAC,0BAA0B,EAAC,OAAO,EAAE,EAAE,YAClD,KAAK,GACF,EACP,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACzB,eAAM,SAAS,EAAC,yBAAyB,EAAC,EAAE,EAAE,MAAM,YAC/C,IAAI,GACF,CACV,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EAAE,IAAI,sBACQ,WAAW,GAC/B,CACL,IACC,CACT,CAAA;AACL,CAAC"}
@@ -70,3 +70,20 @@
70
70
  visibility: visible;
71
71
  pointer-events: auto;
72
72
  }
73
+
74
+ /* `place="below"`, from 2026-11-01: hanging under the trigger, its end edge on the trigger's, the tail at its top
75
+ end corner -- for a control at the top end of the screen (Desktop's bars). components/tooltip.md. */
76
+ .newtone-tooltip[data-newtone-tooltip-place='below'] .newtone-tooltip-bubble {
77
+ inset-block: 100% auto;
78
+ inset-inline: auto 0;
79
+ margin-block-start: var(--newtone-space-1);
80
+ border-end-start-radius: var(--newtone-radius-md);
81
+ border-start-end-radius: 0;
82
+ }
83
+ .newtone-tooltip[data-newtone-tooltip-place='below'] .newtone-tooltip-bubble::after {
84
+ inset-block-start: auto;
85
+ inset-block-end: 100%;
86
+ inset-inline: 0;
87
+ inline-size: auto;
88
+ block-size: var(--newtone-space-1);
89
+ }
@@ -25,6 +25,12 @@ export interface TooltipProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'con
25
25
  children: ReactElement<{
26
26
  'aria-describedby'?: string;
27
27
  }>;
28
+ /**
29
+ * Where the bubble springs from. `above` (the default): the trigger's top-right corner, as since 0.9.0. `below`:
30
+ * hanging under the trigger from its bottom end corner, toward its start -- for a control at the top end of the
31
+ * screen, where `above` would fall off it (Desktop's bar controls, 2026-11-01). components/tooltip.md.
32
+ */
33
+ place?: 'above' | 'below';
28
34
  }
29
- export declare function Tooltip({ content, children, className, onKeyDown, onPointerEnter, onPointerLeave, onPointerOver, onBlur, ...rest }: TooltipProps): import("react").JSX.Element;
35
+ export declare function Tooltip({ content, children, place, className, onKeyDown, onPointerEnter, onPointerLeave, onPointerOver, onBlur, ...rest }: TooltipProps): import("react").JSX.Element;
30
36
  //# sourceMappingURL=tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAA;AAId;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC;IAClF,4BAA4B;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,gEAAgE;IAChE,QAAQ,EAAE,YAAY,CAAC;QAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC1D;AAOD,wBAAgB,OAAO,CAAC,EACpB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,SAAS,EACT,cAAc,EACd,cAAc,EACd,aAAa,EACb,MAAM,EACN,GAAG,IAAI,EACV,EAAE,YAAY,+BA4Fd"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAA;AAId;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC;IAClF,4BAA4B;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,gEAAgE;IAChE,QAAQ,EAAE,YAAY,CAAC;QAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACvD;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAC5B;AAOD,wBAAgB,OAAO,CAAC,EACpB,OAAO,EACP,QAAQ,EACR,KAAe,EACf,SAAS,EACT,SAAS,EACT,cAAc,EACd,cAAc,EACd,aAAa,EACb,MAAM,EACN,GAAG,IAAI,EACV,EAAE,YAAY,+BA6Fd"}
@@ -7,7 +7,7 @@ import { Text } from '../text/index.js';
7
7
  const BRIEF = 500;
8
8
  /** PLACEHOLDER -- the longest a bubble lingers after the pointer leaves the trigger. */
9
9
  const LINGER_MAX = 3000;
10
- export function Tooltip({ content, children, className, onKeyDown, onPointerEnter, onPointerLeave, onPointerOver, onBlur, ...rest }) {
10
+ export function Tooltip({ content, children, place = 'above', className, onKeyDown, onPointerEnter, onPointerLeave, onPointerOver, onBlur, ...rest }) {
11
11
  const id = useId();
12
12
  const [dismissed, setDismissed] = useState(false);
13
13
  const [open, setOpen] = useState(false);
@@ -37,7 +37,7 @@ export function Tooltip({ content, children, className, onKeyDown, onPointerEnte
37
37
  document.addEventListener('pointerdown', away);
38
38
  return () => document.removeEventListener('pointerdown', away);
39
39
  }, [touched]);
40
- return (_jsxs("span", { ref: wrapper, className: ['newtone-tooltip', className].filter(Boolean).join(' '), "data-open": open ? '' : undefined, "data-dismissed": dismissed ? '' : undefined, onKeyDown: (event) => {
40
+ return (_jsxs("span", { ref: wrapper, className: ['newtone-tooltip', className].filter(Boolean).join(' '), "data-open": open ? '' : undefined, "data-newtone-tooltip-place": place === 'below' ? 'below' : undefined, "data-dismissed": dismissed ? '' : undefined, onKeyDown: (event) => {
41
41
  if (event.key === 'Escape') {
42
42
  cancel();
43
43
  setOpen(false);
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../src/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EACH,YAAY,EACZ,SAAS,EACT,KAAK,EACL,MAAM,EACN,QAAQ,GAIX,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AA4BvC,mGAAmG;AACnG,MAAM,KAAK,GAAG,GAAG,CAAA;AACjB,wFAAwF;AACxF,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,UAAU,OAAO,CAAC,EACpB,OAAO,EACP,QAAQ,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B,CAAC,EACD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YACd,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,aAA4B,CAAC;gBACjE,YAAY,CAAC,KAAK,CAAC,CAAA;YACvB,MAAM,EAAE,CAAC,KAAK,CAAC,CAAA;QACnB,CAAC,KACG,IAAI,aAEP,YAAY,CAAC,QAAQ,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,EACnD,KAAC,OAAO,IACJ,EAAE,EAAC,MAAM,EACT,KAAK,EAAC,QAAQ,EACd,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,SAAS,EACd,SAAS,EAAC,wBAAwB,YAElC,KAAC,IAAI,IAAC,EAAE,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,YAC1B,OAAO,GACL,GACD,IACP,CACV,CAAA;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtone-dev/ui-react-web",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -337,6 +337,7 @@
337
337
  "./data-list.css": "./dist/data-list/data-list.css",
338
338
  "./feature-card.css": "./dist/feature-card/feature-card.css",
339
339
  "./framed-icon.css": "./dist/framed-icon/framed-icon.css",
340
+ "./identity.css": "./dist/identity/identity.css",
340
341
  "./gallery.css": "./dist/gallery/gallery.css",
341
342
  "./icon.css": "./dist/icon/icon.css",
342
343
  "./icon-link.css": "./dist/icon-link/icon-link.css",
@@ -373,6 +374,8 @@
373
374
  "./status.css": "./dist/status/status.css",
374
375
  "./table.css": "./dist/table/table.css",
375
376
  "./select.css": "./dist/select/select.css",
377
+ "./picker.css": "./dist/picker/picker.css",
378
+ "./field-row.css": "./dist/field-row/field-row.css",
376
379
  "./code-block.css": "./dist/code-block/code-block.css",
377
380
  "./fold.css": "./dist/fold/fold.css",
378
381
  "./side-panel.css": "./dist/side-panel/side-panel.css",
@@ -1,11 +0,0 @@
1
- export interface DesktopClockProps {
2
- /** How the time is written. Omitted, the weekday short and the time to the minute, in the person's own locale. */
3
- format?: Intl.DateTimeFormatOptions;
4
- className?: string;
5
- }
6
- /**
7
- * The time, as the person's own clock writes it, kept to the minute. Empty on the server and on the
8
- * first render, so a page rendered elsewhere never shows another place's time.
9
- */
10
- export declare function DesktopClock({ format, className }: DesktopClockProps): import("react").JSX.Element;
11
- //# sourceMappingURL=clock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clock.d.ts","sourceRoot":"","sources":["../../../src/desktop/clock/clock.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IAC9B,kHAAkH;IAClH,MAAM,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAA;IACnC,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AAID;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,MAAgB,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAkB9E"}
@@ -1,20 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useEffect, useState } from 'react';
4
- import { Text } from '../../text/text.js';
5
- const DEFAULT = { weekday: 'short', hour: 'numeric', minute: '2-digit' };
6
- /**
7
- * The time, as the person's own clock writes it, kept to the minute. Empty on the server and on the
8
- * first render, so a page rendered elsewhere never shows another place's time.
9
- */
10
- export function DesktopClock({ format = DEFAULT, className }) {
11
- const [now, setNow] = useState('');
12
- useEffect(() => {
13
- const write = () => setNow(new Intl.DateTimeFormat(undefined, format).format(new Date()));
14
- write();
15
- const t = setInterval(write, 15_000);
16
- return () => clearInterval(t);
17
- }, [format]);
18
- return (_jsx(Text, { as: "span", scale: "body-sm", figures: "tabular", className: ['newtone-desktop-clock', className].filter(Boolean).join(' '), children: now }));
19
- }
20
- //# sourceMappingURL=clock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clock.js","sourceRoot":"","sources":["../../../src/desktop/clock/clock.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAQzC,MAAM,OAAO,GAA+B,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAA;AAEpG;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,SAAS,EAAqB;IAC3E,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;IAClC,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAA;QACzF,KAAK,EAAE,CAAA;QACP,MAAM,CAAC,GAAG,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACpC,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;IACjC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IACZ,OAAO,CACH,KAAC,IAAI,IACD,EAAE,EAAC,MAAM,EACT,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,SAAS,EACjB,SAAS,EAAE,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAExE,GAAG,GACD,CACV,CAAA;AACL,CAAC"}
@@ -1,30 +0,0 @@
1
- import type { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
- import { type FramedIconShape, type SignagePalette } from '../../framed-icon/framed-icon.js';
3
- export interface DesktopDockProps extends HTMLAttributes<HTMLElement> {
4
- /** Its accessible name. */
5
- label: string;
6
- /** `Desktop.DockItem`s, with `Desktop.DockDivider`s between their groups. */
7
- children?: ReactNode;
8
- }
9
- /** The row of items centred along the bottom of the desktop: glass over the wallpaper. */
10
- export declare function DesktopDock({ label, className, children, ...rest }: DesktopDockProps): import("react").JSX.Element;
11
- export interface DesktopDockItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
12
- /** Its accessible name, and the title shown on hover. */
13
- label: string;
14
- /** Its mark's glyph, an `Icon` name, framed. */
15
- icon: string;
16
- /** An app is `square`; a window put away in the dock is `round`. */
17
- shape?: FramedIconShape;
18
- signage?: SignagePalette;
19
- /** It has a window open: a dot under it. */
20
- running?: boolean;
21
- /** Something new in it: `dot`, or how many (none at 0). */
22
- badge?: 'dot' | number;
23
- /** The badge's accessible words; a count with none is read as part of the label only. */
24
- badgeLabel?: string;
25
- }
26
- /** One app, or one window put away, in the dock. */
27
- export declare function DesktopDockItem({ label, icon, shape, signage, running, badge, badgeLabel, className, ...rest }: DesktopDockItemProps): import("react").JSX.Element;
28
- /** The line between two groups of items. */
29
- export declare function DesktopDockDivider(): import("react").JSX.Element;
30
- //# sourceMappingURL=dock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dock.d.ts","sourceRoot":"","sources":["../../../src/desktop/dock/dock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC5E,OAAO,EAEH,KAAK,eAAe,EACpB,KAAK,cAAc,EACtB,MAAM,kCAAkC,CAAA;AAEzC,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACjE,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,0FAA0F;AAC1F,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,+BAUpF;AAED,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAC9C,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,CACb;IACG,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAA;IACZ,oEAAoE;IACpE,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IACtB,yFAAyF;IACzF,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,oDAAoD;AACpD,wBAAgB,eAAe,CAAC,EAC5B,KAAK,EACL,IAAI,EACJ,KAAgB,EAChB,OAAO,EACP,OAAO,EACP,KAAK,EACL,UAAU,EACV,SAAS,EACT,GAAG,IAAI,EACV,EAAE,oBAAoB,+BAyBtB;AAED,4CAA4C;AAC5C,wBAAgB,kBAAkB,gCAEjC"}
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FramedIcon, } from '../../framed-icon/framed-icon.js';
3
- /** The row of items centred along the bottom of the desktop: glass over the wallpaper. */
4
- export function DesktopDock({ label, className, children, ...rest }) {
5
- return (_jsx("nav", { "aria-label": label, className: ['newtone-desktop-dock', className].filter(Boolean).join(' '), ...rest, children: children }));
6
- }
7
- /** One app, or one window put away, in the dock. */
8
- export function DesktopDockItem({ label, icon, shape = 'square', signage, running, badge, badgeLabel, className, ...rest }) {
9
- return (_jsxs("button", { type: "button", "aria-label": label, title: label, className: ['newtone-desktop-dock-item', className].filter(Boolean).join(' '), ...rest, children: [_jsx(FramedIcon, { icon: icon, shape: shape, signage: signage }), badge === 'dot' ? (_jsx("span", { className: "newtone-desktop-dock-dot", role: badgeLabel ? 'img' : undefined, "aria-label": badgeLabel, "aria-hidden": badgeLabel ? undefined : true })) : badge ? (_jsx("span", { className: "newtone-desktop-dock-count", "aria-hidden": "true", children: badge })) : null, running ? _jsx("span", { className: "newtone-desktop-dock-running", "aria-hidden": "true" }) : null] }));
10
- }
11
- /** The line between two groups of items. */
12
- export function DesktopDockDivider() {
13
- return _jsx("span", { className: "newtone-desktop-dock-divider", "aria-hidden": "true" });
14
- }
15
- //# sourceMappingURL=dock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dock.js","sourceRoot":"","sources":["../../../src/desktop/dock/dock.tsx"],"names":[],"mappings":";AACA,OAAO,EACH,UAAU,GAGb,MAAM,kCAAkC,CAAA;AASzC,0FAA0F;AAC1F,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAoB;IACjF,OAAO,CACH,4BACgB,KAAK,EACjB,SAAS,EAAE,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACpE,IAAI,YAEP,QAAQ,GACP,CACT,CAAA;AACL,CAAC;AAqBD,oDAAoD;AACpD,MAAM,UAAU,eAAe,CAAC,EAC5B,KAAK,EACL,IAAI,EACJ,KAAK,GAAG,QAAQ,EAChB,OAAO,EACP,OAAO,EACP,KAAK,EACL,UAAU,EACV,SAAS,EACT,GAAG,IAAI,EACY;IACnB,OAAO,CACH,kBACI,IAAI,EAAC,QAAQ,gBACD,KAAK,EACjB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,CAAC,2BAA2B,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACzE,IAAI,aAER,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,EACzD,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,CACf,eACI,SAAS,EAAC,0BAA0B,EACpC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,gBACxB,UAAU,iBACT,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,GAC5C,CACL,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CACR,eAAM,SAAS,EAAC,4BAA4B,iBAAa,MAAM,YAC1D,KAAK,GACH,CACV,CAAC,CAAC,CAAC,IAAI,EACP,OAAO,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,8BAA8B,iBAAa,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,IACjF,CACZ,CAAA;AACL,CAAC;AAED,4CAA4C;AAC5C,MAAM,UAAU,kBAAkB;IAC9B,OAAO,eAAM,SAAS,EAAC,8BAA8B,iBAAa,MAAM,GAAG,CAAA;AAC/E,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { HTMLAttributes, ReactNode } from 'react';
2
- export interface DesktopMenuBarProps extends HTMLAttributes<HTMLElement> {
3
- /** Its accessible name. */
4
- label: string;
5
- /** What goes at its end, on the right: `Desktop.Spaces`, controls, `Desktop.Clock`. */
6
- end?: ReactNode;
7
- /** What goes at its start: `Desktop.Menu`s and the name of the app in front. */
8
- children?: ReactNode;
9
- }
10
- /** The row along the top of the desktop: glass over the wallpaper, a start and an end. */
11
- export declare function DesktopMenuBar({ label, end, className, children, ...rest }: DesktopMenuBarProps): import("react").JSX.Element;
12
- export interface DesktopMenuBarTitleProps {
13
- /** The name of the app in front, or the system's when none is. */
14
- children?: ReactNode;
15
- }
16
- /** The name of the app in front, in bold, between the system's menu and the app's. */
17
- export declare function DesktopMenuBarTitle({ children }: DesktopMenuBarTitleProps): import("react").JSX.Element;
18
- //# sourceMappingURL=menu-bar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu-bar.d.ts","sourceRoot":"","sources":["../../../src/desktop/menu-bar/menu-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtD,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACpE,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,uFAAuF;IACvF,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,gFAAgF;IAChF,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,mBAAmB,+BAW/F;AAED,MAAM,WAAW,wBAAwB;IACrC,kEAAkE;IAClE,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,sFAAsF;AACtF,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE,wBAAwB,+BAYzE"}
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text } from '../../text/text.js';
3
- /** The row along the top of the desktop: glass over the wallpaper, a start and an end. */
4
- export function DesktopMenuBar({ label, end, className, children, ...rest }) {
5
- return (_jsxs("header", { "aria-label": label, className: ['newtone-desktop-menu-bar', className].filter(Boolean).join(' '), ...rest, children: [children, end === undefined ? null : _jsx("div", { className: "newtone-desktop-menu-bar-end", children: end })] }));
6
- }
7
- /** The name of the app in front, in bold, between the system's menu and the app's. */
8
- export function DesktopMenuBarTitle({ children }) {
9
- return (_jsx(Text, { as: "span", scale: "body-sm", weight: "bold", lines: 1, className: "newtone-desktop-menu-bar-title", children: children }));
10
- }
11
- //# sourceMappingURL=menu-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu-bar.js","sourceRoot":"","sources":["../../../src/desktop/menu-bar/menu-bar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAWzC,0FAA0F;AAC1F,MAAM,UAAU,cAAc,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAuB;IAC5F,OAAO,CACH,gCACgB,KAAK,EACjB,SAAS,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACxE,IAAI,aAEP,QAAQ,EACR,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,8BAA8B,YAAE,GAAG,GAAO,IAChF,CACZ,CAAA;AACL,CAAC;AAOD,sFAAsF;AACtF,MAAM,UAAU,mBAAmB,CAAC,EAAE,QAAQ,EAA4B;IACtE,OAAO,CACH,KAAC,IAAI,IACD,EAAE,EAAC,MAAM,EACT,KAAK,EAAC,SAAS,EACf,MAAM,EAAC,MAAM,EACb,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,gCAAgC,YAEzC,QAAQ,GACN,CACV,CAAA;AACL,CAAC"}
@@ -1,23 +0,0 @@
1
- export interface DesktopSpacesProps {
2
- /** How many desktops there are, from one to `max`. */
3
- count: number;
4
- /** The one in view, from 0. */
5
- current: number;
6
- onSelect: (n: number) => void;
7
- /** Omitted, none can be added. */
8
- onAdd?: () => void;
9
- /** Omitted, none can be removed. The first is never removed. */
10
- onRemove?: (n: number) => void;
11
- /** At most this many; the add button goes at it. Nine, as the keys 1-9 that would reach them. */
12
- max?: number;
13
- /** Their words, the consumer's: the list's name, each one's (from 1), adding one, removing one. */
14
- labels: {
15
- list: string;
16
- space: (n: number) => string;
17
- add: string;
18
- remove: (n: number) => string;
19
- };
20
- }
21
- /** The numbered desktops in the menu bar: the one in view marked; each but the first can be removed. */
22
- export declare function DesktopSpaces({ count, current, onSelect, onAdd, onRemove, max, labels, }: DesktopSpacesProps): import("react").JSX.Element;
23
- //# sourceMappingURL=spaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spaces.d.ts","sourceRoot":"","sources":["../../../src/desktop/spaces/spaces.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IAC/B,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7B,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,iGAAiG;IACjG,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mGAAmG;IACnG,MAAM,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;QAC5B,GAAG,EAAE,MAAM,CAAA;QACX,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;KAChC,CAAA;CACJ;AAED,wGAAwG;AACxG,wBAAgB,aAAa,CAAC,EAC1B,KAAK,EACL,OAAO,EACP,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,GAAO,EACP,MAAM,GACT,EAAE,kBAAkB,+BA2CpB"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon } from '../../icon/icon.js';
3
- import { Text } from '../../text/text.js';
4
- /** The numbered desktops in the menu bar: the one in view marked; each but the first can be removed. */
5
- export function DesktopSpaces({ count, current, onSelect, onAdd, onRemove, max = 9, labels, }) {
6
- return (_jsxs("nav", { className: "newtone-desktop-spaces", "aria-label": labels.list, children: [Array.from({ length: count }, (_, i) => (_jsxs("span", { className: "newtone-desktop-space", children: [_jsx("button", { type: "button", className: "newtone-desktop-space-button", "aria-current": i === current || undefined, "aria-label": labels.space(i + 1), title: labels.space(i + 1), onClick: () => onSelect(i), children: _jsx(Text, { as: "span", scale: "caption", weight: "medium", children: i + 1 }) }), i > 0 && onRemove ? (_jsx("button", { type: "button", className: "newtone-desktop-space-remove", "aria-label": labels.remove(i + 1), title: labels.remove(i + 1), onClick: () => onRemove(i), children: _jsx(Icon, { name: "close", size: "sm" }) })) : null] }, i))), onAdd && count < max ? (_jsx("button", { type: "button", className: "newtone-desktop-space-button", "aria-label": labels.add, title: labels.add, onClick: onAdd, children: _jsx(Icon, { name: "add", size: "sm" }) })) : null] }));
7
- }
8
- //# sourceMappingURL=spaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spaces.js","sourceRoot":"","sources":["../../../src/desktop/spaces/spaces.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAuBzC,wGAAwG;AACxG,MAAM,UAAU,aAAa,CAAC,EAC1B,KAAK,EACL,OAAO,EACP,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,GAAG,GAAG,CAAC,EACP,MAAM,GACW;IACjB,OAAO,CACH,eAAK,SAAS,EAAC,wBAAwB,gBAAa,MAAM,CAAC,IAAI,aAC1D,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrC,gBAAc,SAAS,EAAC,uBAAuB,aAC3C,iBACI,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,8BAA8B,kBAC1B,CAAC,KAAK,OAAO,IAAI,SAAS,gBAC5B,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAC/B,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAC1B,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAE1B,KAAC,IAAI,IAAC,EAAE,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAC,MAAM,EAAC,QAAQ,YAC1C,CAAC,GAAG,CAAC,GACH,GACF,EACR,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CACjB,iBACI,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,8BAA8B,gBAC5B,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,EAChC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAE1B,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,GAAG,GAC1B,CACZ,CAAC,CAAC,CAAC,IAAI,KAvBD,CAAC,CAwBL,CACV,CAAC,EACD,KAAK,IAAI,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CACpB,iBACI,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,8BAA8B,gBAC5B,MAAM,CAAC,GAAG,EACtB,KAAK,EAAE,MAAM,CAAC,GAAG,EACjB,OAAO,EAAE,KAAK,YAEd,KAAC,IAAI,IAAC,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,GAAG,GACxB,CACZ,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAA;AACL,CAAC"}
@@ -1,60 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import { type DesktopArea } from '../context.js';
3
- /** Where a window stands in the area, and its size, in CSS pixels. */
4
- export interface DesktopWindowFrame {
5
- x: number;
6
- y: number;
7
- w: number;
8
- h: number;
9
- }
10
- export interface DesktopWindowProps {
11
- /** Its name: in its bar, and its accessible name. */
12
- title: string;
13
- /** Its app's glyph, an `Icon` name, before the title. */
14
- icon?: string;
15
- /** Where the consumer keeps it. Drawn kept on the screen (`placeWindow`), however it was stored. */
16
- frame: DesktopWindowFrame;
17
- /** Its order among the windows, the front highest. */
18
- z: number;
19
- /** The window in front: its shadow reaches further, and its bar's mark and title are at full ink. */
20
- front?: boolean;
21
- /** Filling the area, without its corners or side borders. */
22
- zoomed?: boolean;
23
- /** Put away in the dock: not drawn, kept. */
24
- minimized?: boolean;
25
- /** Its controls' words, the consumer's. `back` is the compact bar's way back to the desktop (omitted, `minimize`'s). */
26
- labels: {
27
- minimize: string;
28
- zoom: string;
29
- unzoom: string;
30
- close: string;
31
- back?: string;
32
- };
33
- /** Pressed anywhere while not in front. */
34
- onFocus?: () => void;
35
- /** Moved by its bar, or resized from an edge: only what changed. A resize also unzooms (`onZoomChange(false)`). */
36
- onFrameChange: (to: Partial<DesktopWindowFrame>) => void;
37
- onZoomChange: (zoomed: boolean) => void;
38
- onMinimize: () => void;
39
- onClose: () => void;
40
- /** A `Desktop.Sheet` asking something of this window's app: over what it shows, which is inert under it. */
41
- sheet?: ReactNode;
42
- /** Never smaller. 420 × 280 by default: a title, three controls and a line of a form. */
43
- min?: {
44
- w: number;
45
- h: number;
46
- };
47
- /** What it shows. Its box answers Newtone's breakpoints itself (`data-newtone-breakpoints="container"`), so what is inside sizes to the window, not the screen; a consumer's own rules ask `@container newtone-breakpoints (…)`. */
48
- children?: ReactNode;
49
- }
50
- /** A window's frame as drawn: zoomed it is the area; otherwise sized within its minimum and the area, and kept on the screen. */
51
- export declare function placeWindow(frame: DesktopWindowFrame, area: DesktopArea, zoomed?: boolean, min?: {
52
- w: number;
53
- h: number;
54
- }): DesktopWindowFrame;
55
- /**
56
- * A titled frame at a place and a size: moved by its bar, zoomed by double-clicking it, resized from its
57
- * sides and lower corners; its controls minimize, zoom and close. contracts/desktop.md, *The parts*.
58
- */
59
- export declare function DesktopWindow({ title, icon, frame, z, front, zoomed, minimized, labels, onFocus, onFrameChange, onZoomChange, onMinimize, onClose, sheet, min, children, }: DesktopWindowProps): import("react").JSX.Element;
60
- //# sourceMappingURL=window.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../src/desktop/window/window.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrF,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,eAAe,CAAA;AAE5D,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IAC/B,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,kBAAkB;IAC/B,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oGAAoG;IACpG,KAAK,EAAE,kBAAkB,CAAA;IACzB,sDAAsD;IACtD,CAAC,EAAE,MAAM,CAAA;IACT,qGAAqG;IACrG,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,wHAAwH;IACxH,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACxF,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,mHAAmH;IACnH,aAAa,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAA;IACxD,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IACvC,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,EAAE,MAAM,IAA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