@gemologic/sheen 0.1.0-rc.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 (271) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +32 -0
  3. package/dist/core.d.ts +52 -0
  4. package/dist/core.js +29 -0
  5. package/dist/formisch.d.ts +5 -0
  6. package/dist/formisch.js +22 -0
  7. package/dist/forms.d.ts +34 -0
  8. package/dist/forms.js +18 -0
  9. package/dist/index.d.ts +144 -0
  10. package/dist/index.js +75 -0
  11. package/dist/layout/Layout.d.ts +28 -0
  12. package/dist/layout/Layout.js +121 -0
  13. package/dist/metadata.d.ts +46 -0
  14. package/dist/metadata.js +47 -0
  15. package/dist/navigation.d.ts +30 -0
  16. package/dist/navigation.js +16 -0
  17. package/dist/overlays.d.ts +28 -0
  18. package/dist/overlays.js +15 -0
  19. package/dist/primitives/Accordion.d.ts +16 -0
  20. package/dist/primitives/Accordion.js +223 -0
  21. package/dist/primitives/ActivityTimeline.d.ts +20 -0
  22. package/dist/primitives/ActivityTimeline.js +104 -0
  23. package/dist/primitives/AlertDialog.d.ts +7 -0
  24. package/dist/primitives/AlertDialog.js +8 -0
  25. package/dist/primitives/Avatar.d.ts +22 -0
  26. package/dist/primitives/Avatar.js +115 -0
  27. package/dist/primitives/Breadcrumb.d.ts +11 -0
  28. package/dist/primitives/Breadcrumb.js +66 -0
  29. package/dist/primitives/Button.d.ts +11 -0
  30. package/dist/primitives/Button.js +59 -0
  31. package/dist/primitives/ButtonGroup.d.ts +7 -0
  32. package/dist/primitives/ButtonGroup.js +33 -0
  33. package/dist/primitives/Checkbox.d.ts +22 -0
  34. package/dist/primitives/Checkbox.js +93 -0
  35. package/dist/primitives/CheckboxGroup.d.ts +18 -0
  36. package/dist/primitives/CheckboxGroup.js +122 -0
  37. package/dist/primitives/Collapsible.d.ts +9 -0
  38. package/dist/primitives/Collapsible.js +72 -0
  39. package/dist/primitives/Combobox.d.ts +41 -0
  40. package/dist/primitives/Combobox.js +684 -0
  41. package/dist/primitives/CommandPalette.d.ts +42 -0
  42. package/dist/primitives/CommandPalette.js +319 -0
  43. package/dist/primitives/ConfirmDialog.d.ts +11 -0
  44. package/dist/primitives/ConfirmDialog.js +42 -0
  45. package/dist/primitives/ContextMenu.d.ts +16 -0
  46. package/dist/primitives/ContextMenu.js +132 -0
  47. package/dist/primitives/DescriptionList.d.ts +11 -0
  48. package/dist/primitives/DescriptionList.js +44 -0
  49. package/dist/primitives/Dialog.d.ts +21 -0
  50. package/dist/primitives/Dialog.js +141 -0
  51. package/dist/primitives/Drawer.d.ts +9 -0
  52. package/dist/primitives/Drawer.js +21 -0
  53. package/dist/primitives/DropdownMenu.d.ts +59 -0
  54. package/dist/primitives/DropdownMenu.js +441 -0
  55. package/dist/primitives/EditableTextField.d.ts +11 -0
  56. package/dist/primitives/EditableTextField.js +126 -0
  57. package/dist/primitives/EmptyState.d.ts +7 -0
  58. package/dist/primitives/EmptyState.js +45 -0
  59. package/dist/primitives/Field.d.ts +18 -0
  60. package/dist/primitives/Field.js +72 -0
  61. package/dist/primitives/FileDropzone.d.ts +40 -0
  62. package/dist/primitives/FileDropzone.js +261 -0
  63. package/dist/primitives/IconButton.d.ts +8 -0
  64. package/dist/primitives/IconButton.js +34 -0
  65. package/dist/primitives/Input.d.ts +7 -0
  66. package/dist/primitives/Input.js +55 -0
  67. package/dist/primitives/InputGroup.d.ts +7 -0
  68. package/dist/primitives/InputGroup.js +73 -0
  69. package/dist/primitives/Link.d.ts +7 -0
  70. package/dist/primitives/Link.js +35 -0
  71. package/dist/primitives/LinkTooltip.d.ts +11 -0
  72. package/dist/primitives/LinkTooltip.js +88 -0
  73. package/dist/primitives/NavList.d.ts +17 -0
  74. package/dist/primitives/NavList.js +143 -0
  75. package/dist/primitives/Notice.d.ts +8 -0
  76. package/dist/primitives/Notice.js +64 -0
  77. package/dist/primitives/NumberField.d.ts +22 -0
  78. package/dist/primitives/NumberField.js +177 -0
  79. package/dist/primitives/Pagination.d.ts +12 -0
  80. package/dist/primitives/Pagination.js +127 -0
  81. package/dist/primitives/Popover.d.ts +12 -0
  82. package/dist/primitives/Popover.js +103 -0
  83. package/dist/primitives/Progress.d.ts +17 -0
  84. package/dist/primitives/Progress.js +98 -0
  85. package/dist/primitives/RadioGroup.d.ts +19 -0
  86. package/dist/primitives/RadioGroup.js +173 -0
  87. package/dist/primitives/Resizable.d.ts +36 -0
  88. package/dist/primitives/Resizable.js +196 -0
  89. package/dist/primitives/ScrollArea.d.ts +6 -0
  90. package/dist/primitives/ScrollArea.js +178 -0
  91. package/dist/primitives/SearchInput.d.ts +12 -0
  92. package/dist/primitives/SearchInput.js +89 -0
  93. package/dist/primitives/SegmentedControl.d.ts +25 -0
  94. package/dist/primitives/SegmentedControl.js +188 -0
  95. package/dist/primitives/Select.d.ts +24 -0
  96. package/dist/primitives/Select.js +320 -0
  97. package/dist/primitives/Separator.d.ts +6 -0
  98. package/dist/primitives/Separator.js +31 -0
  99. package/dist/primitives/ShortcutPending.d.ts +6 -0
  100. package/dist/primitives/ShortcutPending.js +40 -0
  101. package/dist/primitives/ShortcutProvider.d.ts +32 -0
  102. package/dist/primitives/ShortcutProvider.js +172 -0
  103. package/dist/primitives/ShortcutScope.d.ts +6 -0
  104. package/dist/primitives/ShortcutScope.js +29 -0
  105. package/dist/primitives/ShortcutSheet.d.ts +5 -0
  106. package/dist/primitives/ShortcutSheet.js +87 -0
  107. package/dist/primitives/Skeleton.d.ts +5 -0
  108. package/dist/primitives/Skeleton.js +23 -0
  109. package/dist/primitives/Slider.d.ts +35 -0
  110. package/dist/primitives/Slider.js +210 -0
  111. package/dist/primitives/Spinner.d.ts +7 -0
  112. package/dist/primitives/Spinner.js +44 -0
  113. package/dist/primitives/Status.d.ts +15 -0
  114. package/dist/primitives/Status.js +78 -0
  115. package/dist/primitives/Stepper.d.ts +32 -0
  116. package/dist/primitives/Stepper.js +147 -0
  117. package/dist/primitives/Surface.d.ts +11 -0
  118. package/dist/primitives/Surface.js +58 -0
  119. package/dist/primitives/Switch.d.ts +4 -0
  120. package/dist/primitives/Switch.js +7 -0
  121. package/dist/primitives/Table.d.ts +23 -0
  122. package/dist/primitives/Table.js +101 -0
  123. package/dist/primitives/Tabs.d.ts +17 -0
  124. package/dist/primitives/Tabs.js +157 -0
  125. package/dist/primitives/TagInput.d.ts +33 -0
  126. package/dist/primitives/TagInput.js +288 -0
  127. package/dist/primitives/Textarea.d.ts +8 -0
  128. package/dist/primitives/Textarea.js +106 -0
  129. package/dist/primitives/Toast.d.ts +10 -0
  130. package/dist/primitives/Toast.js +78 -0
  131. package/dist/primitives/Toaster.d.ts +9 -0
  132. package/dist/primitives/Toaster.js +183 -0
  133. package/dist/primitives/Tooltip.d.ts +13 -0
  134. package/dist/primitives/Tooltip.js +84 -0
  135. package/dist/primitives/Tree.d.ts +23 -0
  136. package/dist/primitives/Tree.js +275 -0
  137. package/dist/primitives/Typography.d.ts +16 -0
  138. package/dist/primitives/Typography.js +82 -0
  139. package/dist/primitives/boolean-input-state.d.ts +14 -0
  140. package/dist/primitives/boolean-input-state.js +39 -0
  141. package/dist/primitives/button-variants.d.ts +9 -0
  142. package/dist/primitives/button-variants.js +7 -0
  143. package/dist/primitives/choice-options.d.ts +7 -0
  144. package/dist/primitives/choice-options.js +35 -0
  145. package/dist/primitives/create-confirm.d.ts +15 -0
  146. package/dist/primitives/create-confirm.js +49 -0
  147. package/dist/primitives/create-toaster.d.ts +51 -0
  148. package/dist/primitives/create-toaster.js +87 -0
  149. package/dist/primitives/link-focus.d.ts +2 -0
  150. package/dist/primitives/link-focus.js +38 -0
  151. package/dist/primitives/menu-focus.d.ts +3 -0
  152. package/dist/primitives/menu-focus.js +32 -0
  153. package/dist/primitives/tooltip-layer.d.ts +14 -0
  154. package/dist/primitives/tooltip-layer.js +84 -0
  155. package/dist/theme/ThemeProvider.d.ts +59 -0
  156. package/dist/theme/ThemeProvider.js +239 -0
  157. package/dist/theme/intl.d.ts +6 -0
  158. package/dist/theme/intl.js +13 -0
  159. package/dist/theme/keyboard-script.d.ts +2 -0
  160. package/dist/theme/keyboard-script.js +6 -0
  161. package/dist/theme/layers.d.ts +7 -0
  162. package/dist/theme/layers.js +23 -0
  163. package/dist/theme/messages.d.ts +235 -0
  164. package/dist/theme/messages.js +115 -0
  165. package/dist/theme/script.d.ts +9 -0
  166. package/dist/theme/script.js +49 -0
  167. package/dist/theme/state.d.ts +27 -0
  168. package/dist/theme/state.js +55 -0
  169. package/dist/utils/browser-status.d.ts +5 -0
  170. package/dist/utils/browser-status.js +22 -0
  171. package/dist/utils/cn.d.ts +3 -0
  172. package/dist/utils/cn.js +7 -0
  173. package/dist/utils/optimistic.d.ts +6 -0
  174. package/dist/utils/optimistic.js +16 -0
  175. package/dist/utils/polymorphic.d.ts +1 -0
  176. package/dist/utils/shortcut-platform.d.ts +2 -0
  177. package/dist/utils/shortcut-platform.js +10 -0
  178. package/dist/utils/shortcut-registry.d.ts +61 -0
  179. package/dist/utils/shortcut-registry.js +186 -0
  180. package/package.json +100 -0
  181. package/src/core.ts +55 -0
  182. package/src/formisch.ts +28 -0
  183. package/src/forms.ts +34 -0
  184. package/src/index.ts +144 -0
  185. package/src/layout/Layout.tsx +43 -0
  186. package/src/metadata.d.ts +46 -0
  187. package/src/metadata.ts +66 -0
  188. package/src/navigation.ts +30 -0
  189. package/src/overlays.ts +28 -0
  190. package/src/primitives/Accordion.tsx +145 -0
  191. package/src/primitives/ActivityTimeline.tsx +72 -0
  192. package/src/primitives/AlertDialog.tsx +8 -0
  193. package/src/primitives/Avatar.tsx +85 -0
  194. package/src/primitives/Breadcrumb.tsx +41 -0
  195. package/src/primitives/Button.tsx +27 -0
  196. package/src/primitives/ButtonGroup.tsx +18 -0
  197. package/src/primitives/Checkbox.tsx +51 -0
  198. package/src/primitives/CheckboxGroup.tsx +73 -0
  199. package/src/primitives/Collapsible.tsx +43 -0
  200. package/src/primitives/Combobox.tsx +402 -0
  201. package/src/primitives/CommandPalette.tsx +234 -0
  202. package/src/primitives/ConfirmDialog.tsx +25 -0
  203. package/src/primitives/ContextMenu.tsx +100 -0
  204. package/src/primitives/DescriptionList.tsx +26 -0
  205. package/src/primitives/Dialog.tsx +81 -0
  206. package/src/primitives/Drawer.tsx +26 -0
  207. package/src/primitives/DropdownMenu.tsx +221 -0
  208. package/src/primitives/EditableTextField.tsx +91 -0
  209. package/src/primitives/EmptyState.tsx +21 -0
  210. package/src/primitives/Field.tsx +38 -0
  211. package/src/primitives/FileDropzone.tsx +189 -0
  212. package/src/primitives/IconButton.tsx +22 -0
  213. package/src/primitives/Input.tsx +17 -0
  214. package/src/primitives/InputGroup.tsx +23 -0
  215. package/src/primitives/Link.tsx +19 -0
  216. package/src/primitives/LinkTooltip.tsx +31 -0
  217. package/src/primitives/NavList.tsx +58 -0
  218. package/src/primitives/Notice.tsx +25 -0
  219. package/src/primitives/NumberField.tsx +168 -0
  220. package/src/primitives/Pagination.tsx +64 -0
  221. package/src/primitives/Popover.tsx +44 -0
  222. package/src/primitives/Progress.tsx +62 -0
  223. package/src/primitives/RadioGroup.tsx +104 -0
  224. package/src/primitives/Resizable.tsx +170 -0
  225. package/src/primitives/ScrollArea.tsx +115 -0
  226. package/src/primitives/SearchInput.tsx +98 -0
  227. package/src/primitives/SegmentedControl.tsx +140 -0
  228. package/src/primitives/Select.tsx +171 -0
  229. package/src/primitives/Separator.tsx +13 -0
  230. package/src/primitives/ShortcutPending.tsx +21 -0
  231. package/src/primitives/ShortcutProvider.tsx +179 -0
  232. package/src/primitives/ShortcutScope.tsx +17 -0
  233. package/src/primitives/ShortcutSheet.tsx +35 -0
  234. package/src/primitives/Skeleton.tsx +12 -0
  235. package/src/primitives/Slider.tsx +153 -0
  236. package/src/primitives/Spinner.tsx +19 -0
  237. package/src/primitives/Status.tsx +33 -0
  238. package/src/primitives/Stepper.tsx +106 -0
  239. package/src/primitives/Surface.tsx +21 -0
  240. package/src/primitives/Switch.tsx +9 -0
  241. package/src/primitives/Table.tsx +57 -0
  242. package/src/primitives/Tabs.tsx +96 -0
  243. package/src/primitives/TagInput.tsx +282 -0
  244. package/src/primitives/Textarea.tsx +77 -0
  245. package/src/primitives/Toast.tsx +36 -0
  246. package/src/primitives/Toaster.tsx +175 -0
  247. package/src/primitives/Tooltip.tsx +41 -0
  248. package/src/primitives/Tree.tsx +256 -0
  249. package/src/primitives/Typography.tsx +39 -0
  250. package/src/primitives/boolean-input-state.ts +65 -0
  251. package/src/primitives/button-variants.ts +20 -0
  252. package/src/primitives/choice-options.ts +39 -0
  253. package/src/primitives/create-confirm.tsx +56 -0
  254. package/src/primitives/create-toaster.ts +128 -0
  255. package/src/primitives/link-focus.ts +38 -0
  256. package/src/primitives/menu-focus.ts +43 -0
  257. package/src/primitives/tooltip-layer.tsx +53 -0
  258. package/src/styles.css +655 -0
  259. package/src/theme/ThemeProvider.tsx +215 -0
  260. package/src/theme/intl.ts +14 -0
  261. package/src/theme/keyboard-script.ts +4 -0
  262. package/src/theme/layers.ts +16 -0
  263. package/src/theme/messages.ts +157 -0
  264. package/src/theme/script.ts +70 -0
  265. package/src/theme/state.ts +48 -0
  266. package/src/utils/browser-status.ts +36 -0
  267. package/src/utils/cn.ts +5 -0
  268. package/src/utils/optimistic.ts +22 -0
  269. package/src/utils/polymorphic.ts +1 -0
  270. package/src/utils/shortcut-platform.ts +4 -0
  271. package/src/utils/shortcut-registry.ts +216 -0
@@ -0,0 +1,288 @@
1
+ import { useTheme as e } from "../theme/ThemeProvider.js";
2
+ import { cn as t } from "../utils/cn.js";
3
+ import { Button as n } from "./Button.js";
4
+ import { createComponent as r, delegateEvents as i, effect as a, insert as o, memo as s, mergeProps as c, setAttribute as l, spread as u, template as d, use as f } from "solid-js/web";
5
+ import { For as p, Show as m, createEffect as h, createSignal as g, createUniqueId as _, onCleanup as v, onMount as y, splitProps as b } from "solid-js";
6
+ //#region src/primitives/TagInput.tsx
7
+ var x = /*#__PURE__*/ d("<span aria-hidden=true> *"), ee = /*#__PURE__*/ d("<span class=sheen-field-description>"), te = /*#__PURE__*/ d("<div><label class=sheen-field-label></label><div class=sheen-tag-input-control><ul class=sheen-tag-input-values></ul><input type=text class=sheen-tag-input-editor autocomplete=off></div><select class=sheen-select-native aria-hidden=true tabindex=-1 multiple></select><span class=sheen-tag-input-instructions></span><span class=sheen-tag-input-announcer role=status aria-live=polite aria-atomic=true>"), ne = /*#__PURE__*/ d("<li class=sheen-tag-input-value><span class=sheen-tag-input-value-label>"), re = /*#__PURE__*/ d("<option selected>"), ie = /*#__PURE__*/ d("<span class=sheen-field-error role=alert>");
8
+ function S(e, t) {
9
+ let n = /* @__PURE__ */ new Set();
10
+ for (let r of e) {
11
+ if (!r.trim()) throw Error(`${t}: values must be nonempty`);
12
+ if (n.has(r)) throw Error(`${t}: duplicate value ${JSON.stringify(r)}`);
13
+ n.add(r);
14
+ }
15
+ }
16
+ function C(e, t) {
17
+ return e.length === t.length && e.every((e, n) => e === t[n]);
18
+ }
19
+ function w(i) {
20
+ let d = e(), w = _(), [T, E] = b(i, [
21
+ "id",
22
+ "ref",
23
+ "inputRef",
24
+ "class",
25
+ "label",
26
+ "name",
27
+ "form",
28
+ "value",
29
+ "defaultValue",
30
+ "onValueChange",
31
+ "validate",
32
+ "onValidationError",
33
+ "normalize",
34
+ "placeholder",
35
+ "description",
36
+ "error",
37
+ "disabled",
38
+ "readOnly",
39
+ "required",
40
+ "commitKeys",
41
+ "aria-describedby",
42
+ "aria-label",
43
+ "aria-labelledby"
44
+ ]), D = [...T.defaultValue ?? []];
45
+ S(D, "TagInput defaultValue");
46
+ let [O, ae] = g(D), [k, A] = g(""), [j, M] = g(!1), [N, P] = g(!1), [F, I] = g(), [L, R] = g(""), z, B, V = !1, H = 0, U, W = /* @__PURE__ */ new Map(), G = () => {
47
+ let e = T.value === void 0 ? O() : T.value;
48
+ return S(e, "TagInput value"), e;
49
+ }, oe = () => [
50
+ T.description ? `${w}-description` : "",
51
+ T.error || F() ? `${w}-error` : "",
52
+ T["aria-describedby"]
53
+ ].filter(Boolean).join(" ") || void 0, K = (e) => {
54
+ S(e, "TagInput value"), !C(e, G()) && (T.value === void 0 && ae([...e]), T.onValueChange?.([...e]));
55
+ }, q = () => {
56
+ H += 1, U?.abort(), U = void 0, P(!1);
57
+ }, J = (e) => {
58
+ e !== k() && A(e), z && z.value !== e && (z.value = e);
59
+ }, Y = (e, t) => {
60
+ R(""), queueMicrotask(() => {
61
+ V || R(e.replaceAll("{value}", t));
62
+ });
63
+ }, X = (e, t) => {
64
+ if (T.disabled || T.readOnly) return;
65
+ let n = G(), r = n.indexOf(e);
66
+ r < 0 || (q(), K(n.filter((t) => t !== e)), Y(d.messages().tagRemoved, e), t && queueMicrotask(() => {
67
+ let e = G()[Math.min(r, Math.max(0, G().length - 1))];
68
+ e ? W.get(e)?.focus({ preventScroll: !0 }) : z?.focus({ preventScroll: !0 });
69
+ }));
70
+ }, Z = (e, t) => {
71
+ if (T.disabled || T.readOnly) return;
72
+ let n = [...G()], r = n.indexOf(e);
73
+ if (r < 0) return;
74
+ let i = Math.max(0, Math.min(n.length - 1, t));
75
+ r !== i && (q(), n.splice(r, 1), n.splice(i, 0, e), K(n), Y(d.messages().tagMoved, e), queueMicrotask(() => W.get(e)?.focus({ preventScroll: !0 })));
76
+ }, se = async () => {
77
+ if (T.disabled || T.readOnly || N()) return;
78
+ let e = (T.normalize ?? ((e) => e.trim()))(k());
79
+ if (!e) return;
80
+ if (G().includes(e)) {
81
+ I(d.messages().tagDuplicate.replaceAll("{value}", e));
82
+ return;
83
+ }
84
+ I(void 0);
85
+ let t = H + 1;
86
+ H = t, U?.abort();
87
+ let n = new AbortController();
88
+ U = n, P(!0);
89
+ try {
90
+ let r = T.validate ? await T.validate(e, { values: [...G()] }, n.signal) : { kind: "accepted" };
91
+ if (V || n.signal.aborted || t !== H) return;
92
+ if (r.kind === "rejected") {
93
+ I(r.message);
94
+ return;
95
+ }
96
+ let i = r.value === void 0 ? e : r.value;
97
+ if (!i.trim()) {
98
+ I(d.messages().tagValidationFailed);
99
+ return;
100
+ }
101
+ if (G().includes(i)) {
102
+ I(d.messages().tagDuplicate.replaceAll("{value}", i));
103
+ return;
104
+ }
105
+ K([...G(), i]), J(""), Y(d.messages().tagAdded, i);
106
+ } catch (e) {
107
+ if (V || n.signal.aborted || t !== H) return;
108
+ I(d.messages().tagValidationFailed), T.onValidationError?.(e);
109
+ } finally {
110
+ !V && t === H && (U = void 0, P(!1));
111
+ }
112
+ }, ce = (e) => {
113
+ q(), I(void 0), A(e.currentTarget.value);
114
+ }, le = (e) => {
115
+ if (!(e.isComposing || j())) {
116
+ if ((T.commitKeys ?? ["Enter", ","]).includes(e.key)) {
117
+ k().trim() && e.preventDefault(), se();
118
+ return;
119
+ }
120
+ if (e.key === "Backspace" && !k() && G().length > 0) {
121
+ let e = G().at(-1);
122
+ e && X(e, !1);
123
+ } else if (e.key === "ArrowLeft" && !k()) {
124
+ let t = G().at(-1);
125
+ t && (e.preventDefault(), W.get(t)?.focus({ preventScroll: !0 }));
126
+ }
127
+ }
128
+ }, ue = (e, t) => {
129
+ if (e.key === "Delete" || e.key === "Backspace") {
130
+ e.preventDefault(), X(t, !0);
131
+ return;
132
+ }
133
+ if (!e.altKey) return;
134
+ let n = G().indexOf(t);
135
+ if (n < 0) return;
136
+ let r = !!e.currentTarget.closest("[dir=\"rtl\"]");
137
+ e.key === "Home" ? (e.preventDefault(), Z(t, 0)) : e.key === "End" ? (e.preventDefault(), Z(t, G().length - 1)) : e.key === "ArrowLeft" ? (e.preventDefault(), Z(t, n + (r ? 1 : -1))) : e.key === "ArrowRight" && (e.preventDefault(), Z(t, n + (r ? -1 : 1)));
138
+ }, Q = () => {
139
+ if (!B) return;
140
+ let e = new Set(G());
141
+ for (let t of B.options) t.selected = e.has(t.value);
142
+ };
143
+ h(() => {
144
+ G(), Q();
145
+ }), y(() => {
146
+ let e = z, t = e?.ownerDocument, n = t?.defaultView;
147
+ if (!e || !t || !n) return;
148
+ e.value !== k() && A(e.value);
149
+ let r = /* @__PURE__ */ new Set(), i = (t) => {
150
+ if (t.target !== B?.form && t.target !== e.form) return;
151
+ let i = n.setTimeout(() => {
152
+ r.delete(i), !(V || t.defaultPrevented) && (q(), I(void 0), J(""), T.value === void 0 && K(D), Q());
153
+ }, 0);
154
+ r.add(i);
155
+ };
156
+ t.addEventListener("reset", i, !0), v(() => {
157
+ t.removeEventListener("reset", i, !0);
158
+ for (let e of r) n.clearTimeout(e);
159
+ });
160
+ }), v(() => {
161
+ V = !0, H += 1, U?.abort();
162
+ });
163
+ let $ = () => T.error ?? F();
164
+ return (() => {
165
+ var e = te(), i = e.firstChild, h = i.nextSibling, g = h.firstChild, _ = g.nextSibling, y = h.nextSibling, b = y.nextSibling, S = b.nextSibling;
166
+ f((e) => {
167
+ typeof T.ref == "function" && T.ref(e);
168
+ }, e), u(e, c(E, {
169
+ get id() {
170
+ return T.id ?? w;
171
+ },
172
+ get class() {
173
+ return t("sheen-field sheen-tag-input", T.class);
174
+ },
175
+ get "data-invalid"() {
176
+ return $() ? "true" : void 0;
177
+ },
178
+ get "data-disabled"() {
179
+ return T.disabled || void 0;
180
+ },
181
+ get "data-readonly"() {
182
+ return T.readOnly || void 0;
183
+ },
184
+ get "data-pending"() {
185
+ return N() || void 0;
186
+ }
187
+ }), !1, !0), l(i, "id", `${w}-label`), l(i, "for", `${w}-input`), o(i, () => T.label, null), o(i, r(m, {
188
+ get when() {
189
+ return T.required;
190
+ },
191
+ get children() {
192
+ return x();
193
+ }
194
+ }), null), h.$$click = (e) => {
195
+ e.target === e.currentTarget && z?.focus();
196
+ }, o(g, r(p, {
197
+ get each() {
198
+ return G();
199
+ },
200
+ children: (e) => (v(() => W.delete(e)), (() => {
201
+ var t = ne(), i = t.firstChild;
202
+ return l(t, "data-tag-value", e), o(i, e), o(t, r(n, {
203
+ ref: (t) => W.set(e, t),
204
+ class: "sheen-tag-input-remove",
205
+ size: "xs",
206
+ get disabled() {
207
+ return T.disabled;
208
+ },
209
+ get "aria-disabled"() {
210
+ return T.readOnly || void 0;
211
+ },
212
+ get "aria-label"() {
213
+ return `${d.messages().remove} ${e}`;
214
+ },
215
+ "aria-describedby": `${w}-reorder`,
216
+ onKeyDown: (t) => ue(t, e),
217
+ onClick: () => X(e, !0),
218
+ get children() {
219
+ return d.messages().remove;
220
+ }
221
+ }), null), t;
222
+ })())
223
+ })), _.addEventListener("compositionend", (e) => {
224
+ M(!1), A(e.currentTarget.value);
225
+ }), _.addEventListener("compositionstart", () => M(!0)), _.$$keydown = le, _.$$input = ce, f((e) => {
226
+ z = e, typeof T.inputRef == "function" && T.inputRef(e);
227
+ }, _), l(_, "id", `${w}-input`), y.addEventListener("change", (e) => {
228
+ T.readOnly || K([...e.currentTarget.selectedOptions].map((e) => e.value)), Q();
229
+ }), y.addEventListener("invalid", (e) => {
230
+ e.preventDefault(), z?.focus();
231
+ });
232
+ var C = B;
233
+ return typeof C == "function" ? f(C, y) : B = y, o(y, r(p, {
234
+ get each() {
235
+ return G();
236
+ },
237
+ children: (e) => (() => {
238
+ var t = re();
239
+ return t.value = e, o(t, e), t;
240
+ })()
241
+ })), l(b, "id", `${w}-reorder`), o(b, () => d.messages().tagReorderInstructions), o(e, r(m, {
242
+ get when() {
243
+ return T.description;
244
+ },
245
+ get children() {
246
+ var e = ee();
247
+ return l(e, "id", `${w}-description`), o(e, () => T.description), e;
248
+ }
249
+ }), S), o(e, r(m, {
250
+ get when() {
251
+ return $();
252
+ },
253
+ children: (e) => (() => {
254
+ var t = ie();
255
+ return l(t, "id", `${w}-error`), o(t, e), t;
256
+ })()
257
+ }), S), o(S, (() => {
258
+ var e = s(() => !!N());
259
+ return () => e() ? d.messages().tagValidating : L();
260
+ })()), a((e) => {
261
+ var t = d.messages().tagValues, n = G().length === 0 ? T.placeholder : void 0, r = T.disabled, i = T.readOnly, a = T["aria-label"], o = T["aria-labelledby"] ?? `${w}-label`, s = oe(), c = $() ? !0 : void 0, u = T.required || void 0, f = N() || void 0, p = T.name, m = T.form, h = T.required, v = T.disabled, b = T.label;
262
+ return t !== e.e && l(g, "aria-label", e.e = t), n !== e.t && l(_, "placeholder", e.t = n), r !== e.a && (_.disabled = e.a = r), i !== e.o && (_.readOnly = e.o = i), a !== e.i && l(_, "aria-label", e.i = a), o !== e.n && l(_, "aria-labelledby", e.n = o), s !== e.s && l(_, "aria-describedby", e.s = s), c !== e.h && l(_, "aria-invalid", e.h = c), u !== e.r && l(_, "aria-required", e.r = u), f !== e.d && l(_, "aria-busy", e.d = f), p !== e.l && l(y, "name", e.l = p), m !== e.u && l(y, "form", e.u = m), h !== e.c && (y.required = e.c = h), v !== e.w && (y.disabled = e.w = v), b !== e.m && l(y, "aria-label", e.m = b), e;
263
+ }, {
264
+ e: void 0,
265
+ t: void 0,
266
+ a: void 0,
267
+ o: void 0,
268
+ i: void 0,
269
+ n: void 0,
270
+ s: void 0,
271
+ h: void 0,
272
+ r: void 0,
273
+ d: void 0,
274
+ l: void 0,
275
+ u: void 0,
276
+ c: void 0,
277
+ w: void 0,
278
+ m: void 0
279
+ }), a(() => _.value = k()), e;
280
+ })();
281
+ }
282
+ i([
283
+ "click",
284
+ "input",
285
+ "keydown"
286
+ ]);
287
+ //#endregion
288
+ export { w as TagInput };
@@ -0,0 +1,8 @@
1
+ import type { JSX } from "solid-js";
2
+ export interface TextareaProps extends Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, "children"> {
3
+ label: string;
4
+ description?: string;
5
+ error?: string;
6
+ autoResize?: boolean;
7
+ }
8
+ export declare function Textarea(props: TextareaProps): JSX.Element;
@@ -0,0 +1,106 @@
1
+ import { useTheme as e } from "../theme/ThemeProvider.js";
2
+ import { cn as t } from "../utils/cn.js";
3
+ import { Field as n } from "./Field.js";
4
+ import { createComponent as r, insert as i, isServer as a, memo as o, mergeProps as s, spread as c, template as l, use as u } from "solid-js/web";
5
+ import { createEffect as d, onCleanup as f, onMount as p, splitProps as m } from "solid-js";
6
+ //#region src/primitives/Textarea.tsx
7
+ var h = /*#__PURE__*/ l("<textarea>");
8
+ function g(l) {
9
+ let g = e(), [_, v] = m(l, [
10
+ "label",
11
+ "id",
12
+ "class",
13
+ "description",
14
+ "error",
15
+ "required",
16
+ "disabled",
17
+ "aria-describedby",
18
+ "aria-invalid",
19
+ "autoResize",
20
+ "onInput",
21
+ "ref",
22
+ "value",
23
+ "rows"
24
+ ]), y, b = !1, x, S = !1, C = "", w = () => {
25
+ if (x = void 0, y && b) {
26
+ if (!_.autoResize) {
27
+ S && (y.style.blockSize = C), S = !1;
28
+ return;
29
+ }
30
+ y.getClientRects().length && (S || (C = y.style.blockSize), S = !0, y.style.blockSize = "auto", y.style.blockSize = `${y.scrollHeight + y.offsetHeight - y.clientHeight}px`);
31
+ }
32
+ }, T = () => {
33
+ b && y && x === void 0 && (x = y.ownerDocument.defaultView?.requestAnimationFrame(w));
34
+ };
35
+ p(() => {
36
+ if (!y) return;
37
+ b = !0;
38
+ let e = y, t = -1, n = new ResizeObserver((e) => {
39
+ let n = e[0]?.contentRect.width;
40
+ n !== void 0 && n !== t && (t = n, T());
41
+ });
42
+ n.observe(e);
43
+ let r = e.ownerDocument.fonts;
44
+ r.ready.then(T), r.addEventListener("loadingdone", T);
45
+ let i = (t) => {
46
+ t.target === e.form && T();
47
+ };
48
+ e.ownerDocument.addEventListener("reset", i, !0), T(), f(() => {
49
+ b = !1, n.disconnect(), r.removeEventListener("loadingdone", T), e.ownerDocument.removeEventListener("reset", i, !0), x !== void 0 && e.ownerDocument.defaultView?.cancelAnimationFrame(x);
50
+ });
51
+ }), d(() => {
52
+ _.value, _.rows, _.autoResize, g.state(), T();
53
+ });
54
+ let E = (e) => {
55
+ let t = _.onInput;
56
+ typeof t == "function" ? t(e) : t && t[0](t[1], e), T();
57
+ }, D = () => _.value === void 0 ? void 0 : `\n${_.value}`;
58
+ return r(n, {
59
+ get label() {
60
+ return _.label;
61
+ },
62
+ get controlId() {
63
+ return _.id;
64
+ },
65
+ get description() {
66
+ return _.description;
67
+ },
68
+ get error() {
69
+ return _.error;
70
+ },
71
+ get required() {
72
+ return _.required;
73
+ },
74
+ get disabled() {
75
+ return _.disabled;
76
+ },
77
+ children: (e) => (() => {
78
+ var n = h();
79
+ return u((e) => {
80
+ y = e, typeof _.ref == "function" && _.ref(e);
81
+ }, n), c(n, s(v, e, {
82
+ get value() {
83
+ return a ? void 0 : _.value;
84
+ },
85
+ get rows() {
86
+ return _.rows ?? 3;
87
+ },
88
+ get "data-autoresize"() {
89
+ return _.autoResize || void 0;
90
+ },
91
+ onInput: E,
92
+ get "aria-describedby"() {
93
+ return [e["aria-describedby"], _["aria-describedby"]].filter(Boolean).join(" ") || void 0;
94
+ },
95
+ get "aria-invalid"() {
96
+ return o(() => !!_.error)() ? !0 : _["aria-invalid"];
97
+ },
98
+ get class() {
99
+ return t("sheen-input sheen-textarea", _.class);
100
+ }
101
+ }), !1, !0), i(n, () => a ? D() : void 0), n;
102
+ })()
103
+ });
104
+ }
105
+ //#endregion
106
+ export { g as Textarea };
@@ -0,0 +1,10 @@
1
+ import type { JSX } from "solid-js";
2
+ import type { ToastNotification } from "./create-toaster.ts";
3
+ export interface ToastProps {
4
+ notification: ToastNotification;
5
+ onAction: () => void;
6
+ onDismiss: () => void;
7
+ class?: string;
8
+ }
9
+ /** Message card. Its presenter owns live announcements, lifetime, and removal. */
10
+ export declare function Toast(props: ToastProps): JSX.Element;
@@ -0,0 +1,78 @@
1
+ import { useTheme as e } from "../theme/ThemeProvider.js";
2
+ import { cn as t } from "../utils/cn.js";
3
+ import { Button as n } from "./Button.js";
4
+ import { className as r, createComponent as i, effect as a, insert as o, memo as s, setAttribute as c, template as l } from "solid-js/web";
5
+ import { Show as u, createUniqueId as d } from "solid-js";
6
+ //#region src/primitives/Toast.tsx
7
+ var f = /*#__PURE__*/ l("<p class=sheen-toast-description>"), p = /*#__PURE__*/ l("<p class=sheen-toast-error>"), m = /*#__PURE__*/ l("<div role=group><strong class=sheen-toast-title>"), h = /*#__PURE__*/ l("<span class=sheen-toast-pending>"), g = /*#__PURE__*/ l("<div class=sheen-toast-actions>");
8
+ function _(l) {
9
+ let _ = e(), v = d(), y = () => l.notification.options, b = () => l.notification.state === "pending", x = () => l.notification.state === "failed", S = () => [y().description ? `${v}-description` : "", x() && y().action ? `${v}-error` : ""].filter(Boolean).join(" ") || void 0;
10
+ return (() => {
11
+ var e = m(), d = e.firstChild;
12
+ return c(e, "aria-labelledby", `${v}-title`), c(d, "id", `${v}-title`), o(d, () => y().title), o(e, i(n, {
13
+ class: "sheen-toast-close",
14
+ size: "sm",
15
+ get "aria-label"() {
16
+ return _.messages().close;
17
+ },
18
+ onClick: () => l.onDismiss(),
19
+ get children() {
20
+ return _.messages().close;
21
+ }
22
+ }), null), o(e, i(u, {
23
+ get when() {
24
+ return y().description;
25
+ },
26
+ get children() {
27
+ var e = f();
28
+ return c(e, "id", `${v}-description`), o(e, () => y().description), e;
29
+ }
30
+ }), null), o(e, i(u, {
31
+ get when() {
32
+ return s(() => !!x())() && y().action;
33
+ },
34
+ get children() {
35
+ var e = p();
36
+ return c(e, "id", `${v}-error`), o(e, () => y().action?.errorMessage), e;
37
+ }
38
+ }), null), o(e, i(u, {
39
+ get when() {
40
+ return y().action;
41
+ },
42
+ children: (e) => (() => {
43
+ var t = g();
44
+ return o(t, i(n, {
45
+ variant: "outline",
46
+ size: "sm",
47
+ get loading() {
48
+ return b();
49
+ },
50
+ onClick: () => l.onAction(),
51
+ get children() {
52
+ return s(() => !!x())() ? e().retryLabel ?? _.messages().retry : e().label;
53
+ }
54
+ }), null), o(t, i(u, {
55
+ get when() {
56
+ return b();
57
+ },
58
+ get children() {
59
+ var e = h();
60
+ return o(e, () => _.messages().loading), e;
61
+ }
62
+ }), null), t;
63
+ })()
64
+ }), null), a((n) => {
65
+ var i = t("sheen-toast", l.class), a = S(), o = b() || void 0, s = b() || void 0, u = x() || void 0, d = x() ? "danger" : y().tone;
66
+ return i !== n.e && r(e, n.e = i), a !== n.t && c(e, "aria-describedby", n.t = a), o !== n.a && c(e, "aria-busy", n.a = o), s !== n.o && c(e, "data-pending", n.o = s), u !== n.i && c(e, "data-invalid", n.i = u), d !== n.n && c(e, "data-tone", n.n = d), n;
67
+ }, {
68
+ e: void 0,
69
+ t: void 0,
70
+ a: void 0,
71
+ o: void 0,
72
+ i: void 0,
73
+ n: void 0
74
+ }), e;
75
+ })();
76
+ }
77
+ //#endregion
78
+ export { _ as Toast };
@@ -0,0 +1,9 @@
1
+ import type { JSX } from "solid-js";
2
+ import type { ToastController } from "./create-toaster.ts";
3
+ export interface ToasterProps {
4
+ controller: ToastController;
5
+ limit?: number;
6
+ label?: string;
7
+ class?: string;
8
+ }
9
+ export declare function Toaster(props: ToasterProps): JSX.Element;
@@ -0,0 +1,183 @@
1
+ import { useTheme as e } from "../theme/ThemeProvider.js";
2
+ import { cn as t } from "../utils/cn.js";
3
+ import { toasterPresenter as n } from "./create-toaster.js";
4
+ import { Toast as r } from "./Toast.js";
5
+ import { Portal as i, className as a, createComponent as o, delegateEvents as s, effect as c, insert as l, setAttribute as u, setStyleProperty as d, template as f, use as p } from "solid-js/web";
6
+ import { For as m, Show as h, createEffect as g, createMemo as _, createSignal as v, onCleanup as y, onMount as b } from "solid-js";
7
+ //#region src/primitives/Toaster.tsx
8
+ var x = /*#__PURE__*/ f("<li class=sheen-toast-entry>"), S = /*#__PURE__*/ f("<div role=region tabindex=-1 data-kb-top-layer=true><div class=sheen-toast-announcer role=status aria-live=polite aria-atomic=true></div><div class=sheen-toast-announcer role=alert aria-atomic=true></div><ol class=sheen-toast-list>");
9
+ function C(e) {
10
+ let t, n = e.entry.lifetime, i = () => {
11
+ if (t?.contains(t.ownerDocument.activeElement)) {
12
+ let t = e.entry.opener;
13
+ if (t?.isConnected && !t.closest("[inert]") && (t.focus({ preventScroll: !0 }), t.ownerDocument.activeElement === t)) return;
14
+ e.fallback();
15
+ }
16
+ }, a = () => {
17
+ i(), e.controller.dismiss(e.entry.notification.id);
18
+ }, s = () => {
19
+ t?.contains(t.ownerDocument.activeElement) && t.querySelector(".sheen-toast-close")?.focus({ preventScroll: !0 }), e.controller.runAction(e.entry.notification.id);
20
+ };
21
+ return g(() => {
22
+ let t = e.entry.notification.options;
23
+ if (t !== n.options && (n.options = t, n.remaining = t.duration ?? 0), !e.entry.open || e.paused || e.entry.notification.state !== "idle" || n.options.duration === null) return;
24
+ let r = performance.now(), i = window.setTimeout(a, n.remaining);
25
+ y(() => {
26
+ window.clearTimeout(i), n.remaining = Math.max(0, n.remaining - (performance.now() - r));
27
+ });
28
+ }), g(() => {
29
+ if (e.entry.open || !t) return;
30
+ i();
31
+ let n = !1, r = t.getAnimations();
32
+ Promise.allSettled(r.map((e) => e.finished)).then(() => {
33
+ !n && !e.entry.open && e.onExit();
34
+ }), y(() => {
35
+ n = !0;
36
+ });
37
+ }), (() => {
38
+ var n = x();
39
+ n.$$keydown = (e) => {
40
+ e.key === "Escape" && !e.defaultPrevented && (e.preventDefault(), e.stopPropagation(), a());
41
+ }, n.addEventListener("animationend", (t) => {
42
+ t.target === t.currentTarget && !e.entry.open && e.onExit();
43
+ });
44
+ var i = t;
45
+ return typeof i == "function" ? p(i, n) : t = n, l(n, o(r, {
46
+ get notification() {
47
+ return e.entry.notification;
48
+ },
49
+ onDismiss: a,
50
+ onAction: s
51
+ })), c((t) => {
52
+ var r = e.entry.open, i = !e.entry.open || void 0, a = !e.entry.open;
53
+ return r !== t.e && u(n, "data-open", t.e = r), i !== t.t && u(n, "aria-hidden", t.t = i), a !== t.a && (n.inert = t.a = a), t;
54
+ }, {
55
+ e: void 0,
56
+ t: void 0,
57
+ a: void 0
58
+ }), n;
59
+ })();
60
+ }
61
+ function w(r) {
62
+ let s = e();
63
+ _(() => (y(r.controller[n]()), r.controller));
64
+ let [f, x] = v(), [w, T] = v([]), [E, D] = v(!1), [O, k] = v(!1), [A, j] = v(!1), [M, N] = v(""), [P, F] = v(""), I = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map(), z, B = !1, V = _(() => {
65
+ let e = r.limit ?? 3;
66
+ if (!Number.isSafeInteger(e) || e < 1) throw Error("Toaster: limit must be a positive integer");
67
+ return e;
68
+ });
69
+ g(() => {
70
+ let e = r.controller.notifications(), t = new Map(e.map((e) => [e.id, e]));
71
+ for (let e of L.keys()) t.has(e) || L.delete(e);
72
+ let n = w(), i = n.map((e, n) => {
73
+ let r = t.get(e.notification.id), i = r !== void 0 && n < V(), a = r ?? e.notification;
74
+ return a === e.notification && i === e.open ? e : {
75
+ ...e,
76
+ notification: a,
77
+ open: i
78
+ };
79
+ });
80
+ for (let t of e) {
81
+ if (i.length >= V()) break;
82
+ if (i.some((e) => e.notification.id === t.id)) continue;
83
+ let e = typeof document > "u" ? null : document.activeElement, n = typeof HTMLElement < "u" && e instanceof HTMLElement ? e : void 0, r = L.get(t.id) ?? {
84
+ options: t.options,
85
+ remaining: t.options.duration ?? 0
86
+ };
87
+ L.set(t.id, r), i.push({
88
+ notification: t,
89
+ lifetime: r,
90
+ open: !0,
91
+ opener: n
92
+ });
93
+ }
94
+ (i.length !== n.length || i.some((e, t) => e !== n[t])) && T(i);
95
+ }), g(() => {
96
+ if (!f()) return;
97
+ let e = new Set(w().filter((e) => e.open).map((e) => e.notification.id));
98
+ for (let t of I.keys()) e.has(t) || (I.delete(t), R.delete(t), N(""), F(""));
99
+ for (let e of w()) {
100
+ if (!e.open) continue;
101
+ let t = e.notification, n = t.options, r = [
102
+ n.title,
103
+ n.description,
104
+ t.state === "pending" ? s.messages().loading : t.state === "failed" ? n.action?.errorMessage : n.action?.label
105
+ ].filter(Boolean).join(" "), i = JSON.stringify([r, n.priority]);
106
+ I.get(t.id) !== i && (I.set(t.id, i), R.set(t.id, {
107
+ text: r,
108
+ priority: n.priority
109
+ }));
110
+ }
111
+ R.size && z === void 0 && (N(""), F(""), z = requestAnimationFrame(() => {
112
+ z = requestAnimationFrame(() => {
113
+ if (z = void 0, B) return;
114
+ let e = new Set(w().filter((e) => e.open).map((e) => e.notification.id)), t = [...R].filter(([t]) => e.has(t)).map(([, e]) => e);
115
+ R.clear(), N(t.filter((e) => e.priority === "polite").map((e) => e.text).join(" ")), F(t.filter((e) => e.priority === "assertive").map((e) => e.text).join(" "));
116
+ });
117
+ }));
118
+ }), b(() => {
119
+ let e = () => j(document.hidden || !document.hasFocus());
120
+ e();
121
+ let t = () => j(!0);
122
+ document.addEventListener("visibilitychange", e), window.addEventListener("focus", e), window.addEventListener("blur", t), y(() => {
123
+ document.removeEventListener("visibilitychange", e), window.removeEventListener("focus", e), window.removeEventListener("blur", t);
124
+ });
125
+ }), y(() => {
126
+ B = !0, z !== void 0 && cancelAnimationFrame(z);
127
+ });
128
+ let H = _(() => new Map(w().map((e) => [e.notification.id, e]))), U = (e) => {
129
+ I.delete(e), R.delete(e), T((t) => t.filter((t) => t.notification.id !== e));
130
+ };
131
+ return o(h, {
132
+ get when() {
133
+ return s.portal();
134
+ },
135
+ children: (e) => o(i, {
136
+ get mount() {
137
+ return e();
138
+ },
139
+ get children() {
140
+ var e = S(), n = e.firstChild, i = n.nextSibling, g = i.nextSibling;
141
+ return e.$$focusout = (e) => {
142
+ (!(e.relatedTarget instanceof Node) || !e.currentTarget.contains(e.relatedTarget)) && k(!1);
143
+ }, e.$$focusin = () => k(!0), e.addEventListener("pointerleave", () => D(!1)), e.addEventListener("pointerenter", () => D(!0)), p(x, e), l(n, M), l(i, P), l(g, o(m, {
144
+ get each() {
145
+ return [...H().keys()];
146
+ },
147
+ children: (e) => o(h, {
148
+ get when() {
149
+ return H().get(e);
150
+ },
151
+ children: (t) => o(C, {
152
+ get entry() {
153
+ return t();
154
+ },
155
+ get controller() {
156
+ return r.controller;
157
+ },
158
+ get paused() {
159
+ return E() || O() || A();
160
+ },
161
+ onExit: () => U(e),
162
+ fallback: () => f()?.focus({ preventScroll: !0 })
163
+ })
164
+ })
165
+ })), c((n) => {
166
+ var i = r.label ?? s.messages().notifications, o = t("sheen-toaster", r.class), c = s.layers.aboveAll();
167
+ return i !== n.e && u(e, "aria-label", n.e = i), o !== n.t && a(e, n.t = o), c !== n.a && d(e, "z-index", n.a = c), n;
168
+ }, {
169
+ e: void 0,
170
+ t: void 0,
171
+ a: void 0
172
+ }), e;
173
+ }
174
+ })
175
+ });
176
+ }
177
+ s([
178
+ "keydown",
179
+ "focusin",
180
+ "focusout"
181
+ ]);
182
+ //#endregion
183
+ export { w as Toaster };