@hussmartinez/ui 0.7.0 → 0.9.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.
package/dist/react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a as uiMessages, i as warnInDevelopment, n as cssWriterOf, o as UiError, t as isThemePair } from "./shared/pair-DLVFV6vU.js";
2
+ import { a as uiMessages, i as warnInDevelopment, n as cssWriterOf, o as UiError, t as isThemePair } from "./shared/pair-pt-vUVwu.js";
3
3
  import { createMessages, platformOf, sdkCoreMessages } from "@hussmartinez/sdk-core";
4
4
  import { cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useId, useMemo, useRef, useState, useSyncExternalStore, version } from "react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -9,7 +9,7 @@ var REGISTRY = /* @__PURE__ */ Symbol.for("@hussmartinez/ui");
9
9
  var THIS_COPY = {};
10
10
  var checked = false;
11
11
  function ownVersion() {
12
- return "0.7.0";
12
+ return "0.9.0";
13
13
  }
14
14
  function checkSingleCopy() {
15
15
  if (checked || !(typeof process !== "undefined" && process.env.NODE_ENV !== "production")) return;
@@ -144,6 +144,39 @@ var IconButton = /* @__PURE__ */ forwardRef(function IconButton({ label, icon, c
144
144
  startIcon: icon
145
145
  });
146
146
  });
147
+ // src/components/field/field-context.ts
148
+ var FieldContext = /* @__PURE__ */ createContext(void 0);
149
+ var FieldLabelContext = /* @__PURE__ */ createContext(void 0);
150
+ function useFieldLabelId() {
151
+ return useContext(FieldLabelContext);
152
+ }
153
+ function useFieldControl() {
154
+ checkSingleCopy();
155
+ return useContext(FieldContext);
156
+ }
157
+ function joinIds(...ids) {
158
+ const joined = ids.filter(Boolean).join(" ");
159
+ return joined === "" ? void 0 : joined;
160
+ }
161
+ function useFieldProps(own, label) {
162
+ const field = useFieldControl();
163
+ if (!field) return {
164
+ id: own.id,
165
+ "aria-describedby": own["aria-describedby"],
166
+ "aria-invalid": own["aria-invalid"]
167
+ };
168
+ if (label !== void 0 || own["aria-label"] !== void 0) {
169
+ if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") warnInDevelopment("A control inside Field has its own label or aria-label, which replaces the field's visible label for screen readers. Leave it out, and set Field's label instead.");
170
+ }
171
+ if (own.id !== void 0 && own.id !== field.id) {
172
+ if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") warnInDevelopment("A control inside Field has its own id, so the field's label doesn't point at it. Pass the id to Field's controlId instead.");
173
+ }
174
+ return {
175
+ id: own.id ?? field.id,
176
+ "aria-describedby": joinIds(field["aria-describedby"], own["aria-describedby"]),
177
+ "aria-invalid": own["aria-invalid"] ?? field["aria-invalid"]
178
+ };
179
+ }
147
180
  // src/components/messages/UiMessagesProvider.tsx
148
181
  var UiMessagesContext = /* @__PURE__ */ createContext(void 0);
149
182
  var english;
@@ -174,6 +207,170 @@ function useUiLocale() {
174
207
  checkSingleCopy();
175
208
  return useContext(UiMessagesContext)?.locale ?? "en";
176
209
  }
210
+ // src/components/color-field/ColorField.tsx
211
+ var HEX = /^#?(?:([0-9a-f]{3})|([0-9a-f]{6}))$/i;
212
+ function parseHex(text) {
213
+ const match = HEX.exec(text.trim());
214
+ if (!match) return;
215
+ return `#${(match[2] ?? match[1].replace(/./g, "$&$&")).toLowerCase()}`;
216
+ }
217
+ function Fill({ color, className }) {
218
+ return /* @__PURE__ */ jsx("svg", {
219
+ className,
220
+ viewBox: "0 0 1 1",
221
+ preserveAspectRatio: "none",
222
+ "aria-hidden": "true",
223
+ focusable: "false",
224
+ children: /* @__PURE__ */ jsx("rect", {
225
+ width: "1",
226
+ height: "1",
227
+ fill: color
228
+ })
229
+ });
230
+ }
231
+ var ColorField = /* @__PURE__ */ forwardRef(function ColorField({ value: controlled, defaultValue, onValueChange, swatches, label, swatchesLabel, name, form, disabled, className, classNames, unstyled, onBlur, onKeyDown, ...props }, ref) {
232
+ const [uncontrolled, setUncontrolled] = useState(() => parseHex(defaultValue ?? "") ?? "#000000");
233
+ const [draft, setDraft] = useState(null);
234
+ const value = (controlled === void 0 ? void 0 : parseHex(controlled)) ?? uncontrolled;
235
+ const generated = useId();
236
+ const ownLabelId = `${generated}-label`;
237
+ const swatchesLabelId = `${generated}-swatches`;
238
+ const fieldLabelId = useFieldLabelId();
239
+ const swatchesText = useUiText("colorField.swatches");
240
+ const fieldProps = useFieldProps(props, label);
241
+ if (label === void 0 && !props["aria-label"] && !props["aria-labelledby"] && fieldProps.id === void 0) {
242
+ if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") warnInDevelopment("ColorField needs an accessible name: pass label, or put it in a Field. Use text from your message catalogue.");
243
+ }
244
+ const options = [];
245
+ for (const swatch of swatches ?? []) {
246
+ const color = parseHex(swatch.value);
247
+ if (color === void 0) {
248
+ if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") warnInDevelopment(`ColorField skipped the swatch "${swatch.label}": its value isn't a colour such as #1570ef.`);
249
+ } else if (!options.some((option) => option.value === color)) options.push({
250
+ value: color,
251
+ label: swatch.label
252
+ });
253
+ }
254
+ const tabStop = options.find((option) => option.value === value) ?? options[0];
255
+ const commit = (next) => {
256
+ setDraft(null);
257
+ if (next === value) return;
258
+ if (controlled === void 0) setUncontrolled(next);
259
+ onValueChange?.(next);
260
+ };
261
+ const commitDraft = () => {
262
+ if (draft === null) return;
263
+ const parsed = parseHex(draft);
264
+ if (parsed === void 0) setDraft(null);
265
+ else commit(parsed);
266
+ };
267
+ const handleChange = (event) => {
268
+ setDraft(event.currentTarget.value);
269
+ };
270
+ const handleBlur = (event) => {
271
+ commitDraft();
272
+ onBlur?.(event);
273
+ };
274
+ const handleKeyDown = (event) => {
275
+ onKeyDown?.(event);
276
+ if (event.defaultPrevented || event.nativeEvent.isComposing) return;
277
+ if (event.key === "Enter") flushSync(commitDraft);
278
+ else if (event.key === "Escape" && draft !== null) {
279
+ event.preventDefault();
280
+ setDraft(null);
281
+ }
282
+ };
283
+ const handleSwatchKeyDown = (event) => {
284
+ const step = event.key === "ArrowRight" || event.key === "ArrowDown" ? 1 : event.key === "ArrowLeft" || event.key === "ArrowUp" ? -1 : 0;
285
+ if (step === 0 || options.length === 0 || event.altKey || event.ctrlKey || event.metaKey) return;
286
+ event.preventDefault();
287
+ const rtl = getComputedStyle(event.currentTarget).direction === "rtl";
288
+ const horizontal = event.key === "ArrowRight" || event.key === "ArrowLeft";
289
+ const direction = rtl && horizontal ? -step : step;
290
+ const focused = options.findIndex((option) => option.value === event.target.dataset["hmValue"]);
291
+ const next = options[(Math.max(0, focused) + direction + options.length) % options.length];
292
+ if (next) {
293
+ commit(next.value);
294
+ event.currentTarget.querySelector(`[data-hm-value="${CSS.escape(next.value)}"]`)?.focus();
295
+ }
296
+ };
297
+ const groupLabelIds = [fieldLabelId ?? (label === void 0 ? props["aria-labelledby"] : ownLabelId), swatchesLabelId].filter(Boolean).join(" ");
298
+ return /* @__PURE__ */ jsxs("div", {
299
+ ref,
300
+ className: cx("hm-color-field", classNames?.root, className),
301
+ "data-hm-unstyled": unstyledAttribute(unstyled),
302
+ children: [
303
+ /* @__PURE__ */ jsxs("div", {
304
+ className: cx("hm-color-field-control", classNames?.control),
305
+ children: [/* @__PURE__ */ jsx(Fill, {
306
+ color: value,
307
+ className: cx("hm-color-field-preview", classNames?.preview)
308
+ }), /* @__PURE__ */ jsx("input", {
309
+ ...props,
310
+ ...fieldProps,
311
+ type: "text",
312
+ autoComplete: props.autoComplete ?? "off",
313
+ autoCapitalize: props.autoCapitalize ?? "off",
314
+ autoCorrect: props.autoCorrect ?? "off",
315
+ spellCheck: props.spellCheck ?? false,
316
+ maxLength: props.maxLength ?? 7,
317
+ disabled,
318
+ value: draft ?? value,
319
+ "aria-label": label ?? props["aria-label"],
320
+ className: cx("hm-text-field", "hm-color-field-input", classNames?.input),
321
+ "data-hm-unstyled": unstyledAttribute(unstyled),
322
+ onChange: handleChange,
323
+ onBlur: handleBlur,
324
+ onKeyDown: handleKeyDown
325
+ })]
326
+ }),
327
+ options.length === 0 ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
328
+ label === void 0 ? null : /* @__PURE__ */ jsx("span", {
329
+ id: ownLabelId,
330
+ hidden: true,
331
+ children: label
332
+ }),
333
+ /* @__PURE__ */ jsx("span", {
334
+ id: swatchesLabelId,
335
+ hidden: true,
336
+ children: swatchesLabel ?? swatchesText
337
+ }),
338
+ /* @__PURE__ */ jsx("div", {
339
+ role: "radiogroup",
340
+ "aria-labelledby": groupLabelIds,
341
+ "aria-disabled": disabled ? true : void 0,
342
+ className: cx("hm-color-field-swatches", classNames?.swatches),
343
+ onKeyDown: handleSwatchKeyDown,
344
+ children: options.map((option) => {
345
+ const checked = option.value === value;
346
+ return /* @__PURE__ */ jsx("button", {
347
+ type: "button",
348
+ role: "radio",
349
+ "aria-checked": checked,
350
+ "aria-label": option.label,
351
+ disabled,
352
+ tabIndex: option === tabStop ? 0 : -1,
353
+ "data-hm-value": option.value,
354
+ className: cx("hm-color-field-swatch", classNames?.swatch),
355
+ onClick: () => commit(option.value),
356
+ children: /* @__PURE__ */ jsx(Fill, {
357
+ color: option.value,
358
+ className: "hm-color-field-swatch-fill"
359
+ })
360
+ }, option.value);
361
+ })
362
+ })
363
+ ] }),
364
+ name === void 0 ? null : /* @__PURE__ */ jsx("input", {
365
+ type: "hidden",
366
+ name,
367
+ form,
368
+ disabled,
369
+ value
370
+ })
371
+ ]
372
+ });
373
+ });
177
374
  // src/components/dialog/CloseIcon.tsx
178
375
  function CloseIcon$1() {
179
376
  return /* @__PURE__ */ jsx("svg", {
@@ -287,39 +484,11 @@ var Dialog = /* @__PURE__ */ forwardRef(function Dialog({ open, onOpenChange, ti
287
484
  ]
288
485
  });
289
486
  });
290
- // src/components/field/field-context.ts
291
- var FieldContext = /* @__PURE__ */ createContext(void 0);
292
- function useFieldControl() {
293
- checkSingleCopy();
294
- return useContext(FieldContext);
295
- }
296
- function joinIds(...ids) {
297
- const joined = ids.filter(Boolean).join(" ");
298
- return joined === "" ? void 0 : joined;
299
- }
300
- function useFieldProps(own, label) {
301
- const field = useFieldControl();
302
- if (!field) return {
303
- id: own.id,
304
- "aria-describedby": own["aria-describedby"],
305
- "aria-invalid": own["aria-invalid"]
306
- };
307
- if (label !== void 0 || own["aria-label"] !== void 0) {
308
- if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") warnInDevelopment("A control inside Field has its own label or aria-label, which replaces the field's visible label for screen readers. Leave it out, and set Field's label instead.");
309
- }
310
- if (own.id !== void 0 && own.id !== field.id) {
311
- if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") warnInDevelopment("A control inside Field has its own id, so the field's label doesn't point at it. Pass the id to Field's controlId instead.");
312
- }
313
- return {
314
- id: own.id ?? field.id,
315
- "aria-describedby": joinIds(field["aria-describedby"], own["aria-describedby"]),
316
- "aria-invalid": own["aria-invalid"] ?? field["aria-invalid"]
317
- };
318
- }
319
487
  // src/components/field/Field.tsx
320
488
  var Field = /* @__PURE__ */ forwardRef(function Field({ label, description, error, controlId, className, classNames, unstyled, children, ...props }, ref) {
321
489
  const generated = useId();
322
490
  const id = controlId ?? `${generated}-control`;
491
+ const labelId = `${generated}-label`;
323
492
  const descriptionId = `${generated}-description`;
324
493
  const errorId = `${generated}-error`;
325
494
  const hasDescription = description != null && description !== false;
@@ -336,6 +505,7 @@ var Field = /* @__PURE__ */ forwardRef(function Field({ label, description, erro
336
505
  "data-hm-unstyled": unstyledAttribute(unstyled),
337
506
  children: [
338
507
  /* @__PURE__ */ jsx("label", {
508
+ id: labelId,
339
509
  htmlFor: id,
340
510
  className: cx("hm-field-label", classNames?.label),
341
511
  children: label
@@ -347,7 +517,10 @@ var Field = /* @__PURE__ */ forwardRef(function Field({ label, description, erro
347
517
  }) : null,
348
518
  /* @__PURE__ */ jsx(FieldContext.Provider, {
349
519
  value: control,
350
- children: typeof children === "function" ? children(control) : children
520
+ children: /* @__PURE__ */ jsx(FieldLabelContext.Provider, {
521
+ value: labelId,
522
+ children: typeof children === "function" ? children(control) : children
523
+ })
351
524
  }),
352
525
  hasError ? /* @__PURE__ */ jsx("div", {
353
526
  id: errorId,
@@ -800,6 +973,27 @@ var Spinner = /* @__PURE__ */ forwardRef(function Spinner({ label, className, cl
800
973
  "data-hm-unstyled": unstyledAttribute(unstyled)
801
974
  });
802
975
  });
976
+ // src/components/text-area/TextArea.tsx
977
+ var TextArea = /* @__PURE__ */ forwardRef(function TextArea({ rows = 3, onValueChange, onChange, label, className, classNames, unstyled, ...props }, ref) {
978
+ const fieldProps = useFieldProps(props, label);
979
+ if (label === void 0 && !props["aria-label"] && !props["aria-labelledby"] && fieldProps.id === void 0) {
980
+ if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") warnInDevelopment("TextArea needs an accessible name: pass label, or put it in a Field. Use text from your message catalogue.");
981
+ }
982
+ const handleChange = (event) => {
983
+ onChange?.(event);
984
+ onValueChange?.(event.currentTarget.value);
985
+ };
986
+ return /* @__PURE__ */ jsx("textarea", {
987
+ ...props,
988
+ ...fieldProps,
989
+ ref,
990
+ rows,
991
+ "aria-label": label ?? props["aria-label"],
992
+ className: cx("hm-text-field", "hm-text-area", classNames?.root, className),
993
+ "data-hm-unstyled": unstyledAttribute(unstyled),
994
+ onChange: handleChange
995
+ });
996
+ });
803
997
  // src/components/text-field/TextField.tsx
804
998
  var TextField = /* @__PURE__ */ forwardRef(function TextField({ type = "text", onValueChange, onChange, label, className, classNames, unstyled, ...props }, ref) {
805
999
  const fieldProps = useFieldProps(props, label);
@@ -1154,6 +1348,9 @@ function renderIcon(name, nodes, mirror, { label, className, ...props }) {
1154
1348
  function AddIcon(props) {
1155
1349
  return renderIcon("add", [["path", { d: "M5 12h14" }], ["path", { d: "M12 5v14" }]], false, props);
1156
1350
  }
1351
+ function ArrowIcon(props) {
1352
+ return renderIcon("arrow", [["path", { d: "M13 5H19V11" }], ["path", { d: "M19 5L5 19" }]], false, props);
1353
+ }
1157
1354
  function CheckIcon(props) {
1158
1355
  return renderIcon("check", [["path", { d: "M20 6 9 17l-5-5" }]], false, props);
1159
1356
  }
@@ -1188,6 +1385,24 @@ function DownloadIcon(props) {
1188
1385
  ["path", { d: "m7 10 5 5 5-5" }]
1189
1386
  ], false, props);
1190
1387
  }
1388
+ function DuplicateIcon(props) {
1389
+ return renderIcon("duplicate", [["rect", {
1390
+ width: "14",
1391
+ height: "14",
1392
+ x: "8",
1393
+ y: "8",
1394
+ rx: "2",
1395
+ ry: "2"
1396
+ }], ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]], false, props);
1397
+ }
1398
+ function EllipseIcon(props) {
1399
+ return renderIcon("ellipse", [["ellipse", {
1400
+ cx: "12",
1401
+ cy: "12",
1402
+ rx: "10",
1403
+ ry: "6"
1404
+ }]], false, props);
1405
+ }
1191
1406
  function FadeInIcon(props) {
1192
1407
  return renderIcon("fade-in", [
1193
1408
  ["path", { d: "M5 21v-6" }],
@@ -1230,6 +1445,14 @@ function FlipVerticalIcon(props) {
1230
1445
  ["path", { d: "M7.298 3.712A1 1 0 018 2h8a1 1 0 01.703 1.712l-3.991 3.99a1 1 0 01-1.424.001z" }]
1231
1446
  ], false, props);
1232
1447
  }
1448
+ function HiddenIcon(props) {
1449
+ return renderIcon("hidden", [
1450
+ ["path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }],
1451
+ ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }],
1452
+ ["path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }],
1453
+ ["path", { d: "m2 2 20 20" }]
1454
+ ], false, props);
1455
+ }
1233
1456
  function HighlighterIcon(props) {
1234
1457
  return renderIcon("highlighter", [["path", { d: "m9 11-6 6v3h9l3-3" }], ["path", { d: "m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4" }]], false, props);
1235
1458
  }
@@ -1244,6 +1467,13 @@ function InfoIcon(props) {
1244
1467
  ["path", { d: "M12 8h.01" }]
1245
1468
  ], false, props);
1246
1469
  }
1470
+ function LayersIcon(props) {
1471
+ return renderIcon("layers", [
1472
+ ["path", { d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" }],
1473
+ ["path", { d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" }],
1474
+ ["path", { d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" }]
1475
+ ], false, props);
1476
+ }
1247
1477
  function LoopIcon(props) {
1248
1478
  return renderIcon("loop", [
1249
1479
  ["path", { d: "m17 2 4 4-4 4" }],
@@ -1278,6 +1508,12 @@ function MoreIcon(props) {
1278
1508
  }]
1279
1509
  ], false, props);
1280
1510
  }
1511
+ function MoveDownIcon(props) {
1512
+ return renderIcon("move-down", [["path", { d: "M12 5v14" }], ["path", { d: "m19 12-7 7-7-7" }]], false, props);
1513
+ }
1514
+ function MoveUpIcon(props) {
1515
+ return renderIcon("move-up", [["path", { d: "m5 12 7-7 7 7" }], ["path", { d: "M12 19V5" }]], false, props);
1516
+ }
1281
1517
  function MutedIcon(props) {
1282
1518
  return renderIcon("muted", [
1283
1519
  ["path", { d: "M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z" }],
@@ -1288,6 +1524,14 @@ function MutedIcon(props) {
1288
1524
  function OpenIcon(props) {
1289
1525
  return renderIcon("open", [["path", { d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" }]], false, props);
1290
1526
  }
1527
+ function PageAddIcon(props) {
1528
+ return renderIcon("page-add", [
1529
+ ["path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }],
1530
+ ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }],
1531
+ ["path", { d: "M9 15h6" }],
1532
+ ["path", { d: "M12 18v-6" }]
1533
+ ], false, props);
1534
+ }
1291
1535
  function PageGridIcon(props) {
1292
1536
  return renderIcon("page-grid", [
1293
1537
  ["path", { d: "M12 3v18" }],
@@ -1333,6 +1577,29 @@ function PenIcon(props) {
1333
1577
  function PlayIcon(props) {
1334
1578
  return renderIcon("play", [["path", { d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]], false, props);
1335
1579
  }
1580
+ function RectangleIcon(props) {
1581
+ return renderIcon("rectangle", [["rect", {
1582
+ width: "20",
1583
+ height: "12",
1584
+ x: "2",
1585
+ y: "6",
1586
+ rx: "2"
1587
+ }]], false, props);
1588
+ }
1589
+ function RedactIcon(props) {
1590
+ return renderIcon("redact", [
1591
+ ["rect", {
1592
+ width: "20",
1593
+ height: "12",
1594
+ x: "2",
1595
+ y: "6",
1596
+ rx: "2"
1597
+ }],
1598
+ ["path", { d: "M12 12h.01" }],
1599
+ ["path", { d: "M17 12h.01" }],
1600
+ ["path", { d: "M7 12h.01" }]
1601
+ ], false, props);
1602
+ }
1336
1603
  function RedoIcon(props) {
1337
1604
  return renderIcon("redo", [["path", { d: "m15 14 5-5-5-5" }], ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" }]], true, props);
1338
1605
  }
@@ -1394,6 +1661,13 @@ function StopIcon(props) {
1394
1661
  rx: "2"
1395
1662
  }]], false, props);
1396
1663
  }
1664
+ function TextIcon(props) {
1665
+ return renderIcon("text", [
1666
+ ["path", { d: "M12 4v16" }],
1667
+ ["path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" }],
1668
+ ["path", { d: "M9 20h6" }]
1669
+ ], false, props);
1670
+ }
1397
1671
  function TrimEndIcon(props) {
1398
1672
  return renderIcon("trim-end", [
1399
1673
  ["path", { d: "m9 6-6 6 6 6" }],
@@ -1418,6 +1692,13 @@ function UploadIcon(props) {
1418
1692
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]
1419
1693
  ], false, props);
1420
1694
  }
1695
+ function VisibleIcon(props) {
1696
+ return renderIcon("visible", [["path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", {
1697
+ cx: "12",
1698
+ cy: "12",
1699
+ r: "3"
1700
+ }]], false, props);
1701
+ }
1421
1702
  function VolumeIcon(props) {
1422
1703
  return renderIcon("volume", [
1423
1704
  ["path", { d: "M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z" }],
@@ -1518,6 +1799,6 @@ function ThemeProvider(props) {
1518
1799
  }), children]
1519
1800
  });
1520
1801
  }
1521
- export { AddIcon, AnnouncerProvider, Button, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, CropIcon, DeleteIcon, Dialog, DownloadIcon, FadeInIcon, FadeOutIcon, Field, FileDropZone, FitIcon, FlipHorizontalIcon, FlipVerticalIcon, HighlighterIcon, IconButton, InfoIcon, LoopIcon, MenuIcon, MoreIcon, MutedIcon, NumberField, OpenIcon, PageGridIcon, PageSingleIcon, PanIcon, PauseIcon, PenIcon, PlayIcon, ProgressBar, RedoIcon, RemoveIcon, RotateLeftIcon, RotateRightIcon, SearchIcon, SegmentedControl, SelectIcon, SkipBackIcon, SkipForwardIcon, Slider, SnapIcon, Spinner, SplitIcon, StopIcon, TextField, ThemeProvider, ToggleButton, Toolbar, ToolbarGroup, ToolbarSeparator, Tooltip, TrimEndIcon, TrimStartIcon, UiMessagesProvider, UndoIcon, UploadIcon, VisuallyHidden, VolumeIcon, WarningIcon, ZoomInIcon, ZoomOutIcon, uiMessages, useAnnounce, usePlatform, useUiMessages };
1802
+ export { AddIcon, AnnouncerProvider, ArrowIcon, Button, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, ColorField, CropIcon, DeleteIcon, Dialog, DownloadIcon, DuplicateIcon, EllipseIcon, FadeInIcon, FadeOutIcon, Field, FileDropZone, FitIcon, FlipHorizontalIcon, FlipVerticalIcon, HiddenIcon, HighlighterIcon, IconButton, InfoIcon, LayersIcon, LoopIcon, MenuIcon, MoreIcon, MoveDownIcon, MoveUpIcon, MutedIcon, NumberField, OpenIcon, PageAddIcon, PageGridIcon, PageSingleIcon, PanIcon, PauseIcon, PenIcon, PlayIcon, ProgressBar, RectangleIcon, RedactIcon, RedoIcon, RemoveIcon, RotateLeftIcon, RotateRightIcon, SearchIcon, SegmentedControl, SelectIcon, SkipBackIcon, SkipForwardIcon, Slider, SnapIcon, Spinner, SplitIcon, StopIcon, TextArea, TextField, TextIcon, ThemeProvider, ToggleButton, Toolbar, ToolbarGroup, ToolbarSeparator, Tooltip, TrimEndIcon, TrimStartIcon, UiMessagesProvider, UndoIcon, UploadIcon, VisibleIcon, VisuallyHidden, VolumeIcon, WarningIcon, ZoomInIcon, ZoomOutIcon, uiMessages, useAnnounce, usePlatform, useUiMessages };
1522
1803
 
1523
1804
  //# sourceMappingURL=react.js.map