@hussmartinez/ui 0.7.0 → 0.8.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/index.d.ts CHANGED
@@ -200,7 +200,7 @@ export declare interface ExtendingThemeInput extends ThemeInputBase {
200
200
  *
201
201
  * @public
202
202
  */
203
- export declare type IconName = "add" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "close" | "crop" | "delete" | "download" | "fade-in" | "fade-out" | "fit" | "flip-horizontal" | "flip-vertical" | "highlighter" | "info" | "loop" | "menu" | "more" | "muted" | "open" | "page-grid" | "page-single" | "pan" | "pause" | "pen" | "play" | "redo" | "remove" | "rotate-left" | "rotate-right" | "search" | "select" | "skip-back" | "skip-forward" | "snap" | "split" | "stop" | "trim-end" | "trim-start" | "undo" | "upload" | "volume" | "warning" | "zoom-in" | "zoom-out";
203
+ export declare type IconName = "add" | "arrow" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "close" | "crop" | "delete" | "download" | "duplicate" | "ellipse" | "fade-in" | "fade-out" | "fit" | "flip-horizontal" | "flip-vertical" | "hidden" | "highlighter" | "info" | "layers" | "loop" | "menu" | "more" | "move-down" | "move-up" | "muted" | "open" | "page-add" | "page-grid" | "page-single" | "pan" | "pause" | "pen" | "play" | "rectangle" | "redact" | "redo" | "remove" | "rotate-left" | "rotate-right" | "search" | "select" | "skip-back" | "skip-forward" | "snap" | "split" | "stop" | "text" | "trim-end" | "trim-start" | "undo" | "upload" | "visible" | "volume" | "warning" | "zoom-in" | "zoom-out";
204
204
 
205
205
  /**
206
206
  * The built-in light theme.
package/dist/react.d.ts CHANGED
@@ -62,6 +62,13 @@ export declare interface AnnouncerProviderProps {
62
62
  readonly children?: ReactNode;
63
63
  }
64
64
 
65
+ /**
66
+ * The `arrow` icon: Lucide's `move-up-right`.
67
+ *
68
+ * @public
69
+ */
70
+ export declare function ArrowIcon(props: IconProps): ReactElement;
71
+
65
72
  /**
66
73
  * A button: a native `<button>`, `type="button"` unless you say otherwise.
67
74
  *
@@ -269,6 +276,20 @@ export declare interface DialogProps extends Omit<DialogHTMLAttributes<HTMLDialo
269
276
  */
270
277
  export declare function DownloadIcon(props: IconProps): ReactElement;
271
278
 
279
+ /**
280
+ * The `duplicate` icon: Lucide's `copy`.
281
+ *
282
+ * @public
283
+ */
284
+ export declare function DuplicateIcon(props: IconProps): ReactElement;
285
+
286
+ /**
287
+ * The `ellipse` icon: Lucide's `ellipse`.
288
+ *
289
+ * @public
290
+ */
291
+ export declare function EllipseIcon(props: IconProps): ReactElement;
292
+
272
293
  /**
273
294
  * The `fade-in` icon: Lucide's `chart-no-axes-column-increasing`.
274
295
  *
@@ -475,6 +496,13 @@ export declare function FlipHorizontalIcon(props: IconProps): ReactElement;
475
496
  */
476
497
  export declare function FlipVerticalIcon(props: IconProps): ReactElement;
477
498
 
499
+ /**
500
+ * The `hidden` icon: Lucide's `eye-off`.
501
+ *
502
+ * @public
503
+ */
504
+ export declare function HiddenIcon(props: IconProps): ReactElement;
505
+
478
506
  /**
479
507
  * The `highlighter` icon: Lucide's `highlighter`.
480
508
  *
@@ -523,7 +551,7 @@ export declare type IconComponent = (props: IconProps) => ReactElement;
523
551
  *
524
552
  * @public
525
553
  */
526
- export declare type IconName = "add" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "close" | "crop" | "delete" | "download" | "fade-in" | "fade-out" | "fit" | "flip-horizontal" | "flip-vertical" | "highlighter" | "info" | "loop" | "menu" | "more" | "muted" | "open" | "page-grid" | "page-single" | "pan" | "pause" | "pen" | "play" | "redo" | "remove" | "rotate-left" | "rotate-right" | "search" | "select" | "skip-back" | "skip-forward" | "snap" | "split" | "stop" | "trim-end" | "trim-start" | "undo" | "upload" | "volume" | "warning" | "zoom-in" | "zoom-out";
554
+ export declare type IconName = "add" | "arrow" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "close" | "crop" | "delete" | "download" | "duplicate" | "ellipse" | "fade-in" | "fade-out" | "fit" | "flip-horizontal" | "flip-vertical" | "hidden" | "highlighter" | "info" | "layers" | "loop" | "menu" | "more" | "move-down" | "move-up" | "muted" | "open" | "page-add" | "page-grid" | "page-single" | "pan" | "pause" | "pen" | "play" | "rectangle" | "redact" | "redo" | "remove" | "rotate-left" | "rotate-right" | "search" | "select" | "skip-back" | "skip-forward" | "snap" | "split" | "stop" | "text" | "trim-end" | "trim-start" | "undo" | "upload" | "visible" | "volume" | "warning" | "zoom-in" | "zoom-out";
527
555
 
528
556
  /**
529
557
  * Props of every icon. SVG attributes are passed through.
@@ -546,6 +574,13 @@ export declare interface IconProps extends Omit<SVGProps<SVGSVGElement>, "childr
546
574
  */
547
575
  export declare function InfoIcon(props: IconProps): ReactElement;
548
576
 
577
+ /**
578
+ * The `layers` icon: Lucide's `layers`.
579
+ *
580
+ * @public
581
+ */
582
+ export declare function LayersIcon(props: IconProps): ReactElement;
583
+
549
584
  /**
550
585
  * The `loop` icon: Lucide's `repeat`.
551
586
  *
@@ -567,6 +602,20 @@ export declare function MenuIcon(props: IconProps): ReactElement;
567
602
  */
568
603
  export declare function MoreIcon(props: IconProps): ReactElement;
569
604
 
605
+ /**
606
+ * The `move-down` icon: Lucide's `arrow-down`.
607
+ *
608
+ * @public
609
+ */
610
+ export declare function MoveDownIcon(props: IconProps): ReactElement;
611
+
612
+ /**
613
+ * The `move-up` icon: Lucide's `arrow-up`.
614
+ *
615
+ * @public
616
+ */
617
+ export declare function MoveUpIcon(props: IconProps): ReactElement;
618
+
570
619
  /**
571
620
  * The `muted` icon: Lucide's `volume-x`.
572
621
  *
@@ -661,6 +710,13 @@ export declare interface NumberFieldProps extends Omit<InputHTMLAttributes<HTMLI
661
710
  */
662
711
  export declare function OpenIcon(props: IconProps): ReactElement;
663
712
 
713
+ /**
714
+ * The `page-add` icon: Lucide's `file-plus`.
715
+ *
716
+ * @public
717
+ */
718
+ export declare function PageAddIcon(props: IconProps): ReactElement;
719
+
664
720
  /**
665
721
  * The `page-grid` icon: Lucide's `grid-2x2`.
666
722
  *
@@ -743,6 +799,20 @@ export declare interface ProgressBarProps extends Omit<ProgressHTMLAttributes<HT
743
799
  readonly valueText?: string | undefined;
744
800
  }
745
801
 
802
+ /**
803
+ * The `rectangle` icon: Lucide's `rectangle-horizontal`.
804
+ *
805
+ * @public
806
+ */
807
+ export declare function RectangleIcon(props: IconProps): ReactElement;
808
+
809
+ /**
810
+ * The `redact` icon: Lucide's `rectangle-ellipsis`.
811
+ *
812
+ * @public
813
+ */
814
+ export declare function RedactIcon(props: IconProps): ReactElement;
815
+
746
816
  /**
747
817
  * The `redo` icon: Lucide's `redo-2`, mirrored in right-to-left text.
748
818
  *
@@ -1036,6 +1106,13 @@ export declare interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInp
1036
1106
  */
1037
1107
  export declare type TextFieldType = "text" | "search" | "email" | "url" | "tel" | "password";
1038
1108
 
1109
+ /**
1110
+ * The `text` icon: Lucide's `type`.
1111
+ *
1112
+ * @public
1113
+ */
1114
+ export declare function TextIcon(props: IconProps): ReactElement;
1115
+
1039
1116
  /**
1040
1117
  * A validated theme. Create it with `createTheme`; its values are
1041
1118
  * frozen and safe to write into CSS.
@@ -1496,6 +1573,13 @@ export declare function usePlatform(): Platform;
1496
1573
  */
1497
1574
  export declare function useUiMessages(): UiMessages;
1498
1575
 
1576
+ /**
1577
+ * The `visible` icon: Lucide's `eye`.
1578
+ *
1579
+ * @public
1580
+ */
1581
+ export declare function VisibleIcon(props: IconProps): ReactElement;
1582
+
1499
1583
  /**
1500
1584
  * Content for assistive technology only: hidden on screen, but read out and
1501
1585
  * part of the accessible name of its parent. It has no `unstyled` prop,
package/dist/react.js CHANGED
@@ -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.8.0";
13
13
  }
14
14
  function checkSingleCopy() {
15
15
  if (checked || !(typeof process !== "undefined" && process.env.NODE_ENV !== "production")) return;
@@ -1154,6 +1154,9 @@ function renderIcon(name, nodes, mirror, { label, className, ...props }) {
1154
1154
  function AddIcon(props) {
1155
1155
  return renderIcon("add", [["path", { d: "M5 12h14" }], ["path", { d: "M12 5v14" }]], false, props);
1156
1156
  }
1157
+ function ArrowIcon(props) {
1158
+ return renderIcon("arrow", [["path", { d: "M13 5H19V11" }], ["path", { d: "M19 5L5 19" }]], false, props);
1159
+ }
1157
1160
  function CheckIcon(props) {
1158
1161
  return renderIcon("check", [["path", { d: "M20 6 9 17l-5-5" }]], false, props);
1159
1162
  }
@@ -1188,6 +1191,24 @@ function DownloadIcon(props) {
1188
1191
  ["path", { d: "m7 10 5 5 5-5" }]
1189
1192
  ], false, props);
1190
1193
  }
1194
+ function DuplicateIcon(props) {
1195
+ return renderIcon("duplicate", [["rect", {
1196
+ width: "14",
1197
+ height: "14",
1198
+ x: "8",
1199
+ y: "8",
1200
+ rx: "2",
1201
+ ry: "2"
1202
+ }], ["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);
1203
+ }
1204
+ function EllipseIcon(props) {
1205
+ return renderIcon("ellipse", [["ellipse", {
1206
+ cx: "12",
1207
+ cy: "12",
1208
+ rx: "10",
1209
+ ry: "6"
1210
+ }]], false, props);
1211
+ }
1191
1212
  function FadeInIcon(props) {
1192
1213
  return renderIcon("fade-in", [
1193
1214
  ["path", { d: "M5 21v-6" }],
@@ -1230,6 +1251,14 @@ function FlipVerticalIcon(props) {
1230
1251
  ["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
1252
  ], false, props);
1232
1253
  }
1254
+ function HiddenIcon(props) {
1255
+ return renderIcon("hidden", [
1256
+ ["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" }],
1257
+ ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }],
1258
+ ["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" }],
1259
+ ["path", { d: "m2 2 20 20" }]
1260
+ ], false, props);
1261
+ }
1233
1262
  function HighlighterIcon(props) {
1234
1263
  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
1264
  }
@@ -1244,6 +1273,13 @@ function InfoIcon(props) {
1244
1273
  ["path", { d: "M12 8h.01" }]
1245
1274
  ], false, props);
1246
1275
  }
1276
+ function LayersIcon(props) {
1277
+ return renderIcon("layers", [
1278
+ ["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" }],
1279
+ ["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" }],
1280
+ ["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" }]
1281
+ ], false, props);
1282
+ }
1247
1283
  function LoopIcon(props) {
1248
1284
  return renderIcon("loop", [
1249
1285
  ["path", { d: "m17 2 4 4-4 4" }],
@@ -1278,6 +1314,12 @@ function MoreIcon(props) {
1278
1314
  }]
1279
1315
  ], false, props);
1280
1316
  }
1317
+ function MoveDownIcon(props) {
1318
+ return renderIcon("move-down", [["path", { d: "M12 5v14" }], ["path", { d: "m19 12-7 7-7-7" }]], false, props);
1319
+ }
1320
+ function MoveUpIcon(props) {
1321
+ return renderIcon("move-up", [["path", { d: "m5 12 7-7 7 7" }], ["path", { d: "M12 19V5" }]], false, props);
1322
+ }
1281
1323
  function MutedIcon(props) {
1282
1324
  return renderIcon("muted", [
1283
1325
  ["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 +1330,14 @@ function MutedIcon(props) {
1288
1330
  function OpenIcon(props) {
1289
1331
  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
1332
  }
1333
+ function PageAddIcon(props) {
1334
+ return renderIcon("page-add", [
1335
+ ["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" }],
1336
+ ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }],
1337
+ ["path", { d: "M9 15h6" }],
1338
+ ["path", { d: "M12 18v-6" }]
1339
+ ], false, props);
1340
+ }
1291
1341
  function PageGridIcon(props) {
1292
1342
  return renderIcon("page-grid", [
1293
1343
  ["path", { d: "M12 3v18" }],
@@ -1333,6 +1383,29 @@ function PenIcon(props) {
1333
1383
  function PlayIcon(props) {
1334
1384
  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
1385
  }
1386
+ function RectangleIcon(props) {
1387
+ return renderIcon("rectangle", [["rect", {
1388
+ width: "20",
1389
+ height: "12",
1390
+ x: "2",
1391
+ y: "6",
1392
+ rx: "2"
1393
+ }]], false, props);
1394
+ }
1395
+ function RedactIcon(props) {
1396
+ return renderIcon("redact", [
1397
+ ["rect", {
1398
+ width: "20",
1399
+ height: "12",
1400
+ x: "2",
1401
+ y: "6",
1402
+ rx: "2"
1403
+ }],
1404
+ ["path", { d: "M12 12h.01" }],
1405
+ ["path", { d: "M17 12h.01" }],
1406
+ ["path", { d: "M7 12h.01" }]
1407
+ ], false, props);
1408
+ }
1336
1409
  function RedoIcon(props) {
1337
1410
  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
1411
  }
@@ -1394,6 +1467,13 @@ function StopIcon(props) {
1394
1467
  rx: "2"
1395
1468
  }]], false, props);
1396
1469
  }
1470
+ function TextIcon(props) {
1471
+ return renderIcon("text", [
1472
+ ["path", { d: "M12 4v16" }],
1473
+ ["path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" }],
1474
+ ["path", { d: "M9 20h6" }]
1475
+ ], false, props);
1476
+ }
1397
1477
  function TrimEndIcon(props) {
1398
1478
  return renderIcon("trim-end", [
1399
1479
  ["path", { d: "m9 6-6 6 6 6" }],
@@ -1418,6 +1498,13 @@ function UploadIcon(props) {
1418
1498
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]
1419
1499
  ], false, props);
1420
1500
  }
1501
+ function VisibleIcon(props) {
1502
+ 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", {
1503
+ cx: "12",
1504
+ cy: "12",
1505
+ r: "3"
1506
+ }]], false, props);
1507
+ }
1421
1508
  function VolumeIcon(props) {
1422
1509
  return renderIcon("volume", [
1423
1510
  ["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 +1605,6 @@ function ThemeProvider(props) {
1518
1605
  }), children]
1519
1606
  });
1520
1607
  }
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 };
1608
+ export { AddIcon, AnnouncerProvider, ArrowIcon, Button, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, 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, TextField, TextIcon, ThemeProvider, ToggleButton, Toolbar, ToolbarGroup, ToolbarSeparator, Tooltip, TrimEndIcon, TrimStartIcon, UiMessagesProvider, UndoIcon, UploadIcon, VisibleIcon, VisuallyHidden, VolumeIcon, WarningIcon, ZoomInIcon, ZoomOutIcon, uiMessages, useAnnounce, usePlatform, useUiMessages };
1522
1609
 
1523
1610
  //# sourceMappingURL=react.js.map