@hussmartinez/ui 0.3.0 → 0.4.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" | "delete" | "download" | "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" | "split" | "stop" | "undo" | "upload" | "volume" | "warning" | "zoom-in" | "zoom-out";
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";
204
204
 
205
205
  /**
206
206
  * The built-in light theme.
package/dist/react.d.ts CHANGED
@@ -174,6 +174,13 @@ export declare function CloseIcon(props: IconProps): ReactElement;
174
174
  */
175
175
  export declare type ColorMode = "light" | "dark" | "system";
176
176
 
177
+ /**
178
+ * The `crop` icon: Lucide's `crop`.
179
+ *
180
+ * @public
181
+ */
182
+ export declare function CropIcon(props: IconProps): ReactElement;
183
+
177
184
  /**
178
185
  * The `delete` icon: Lucide's `trash`.
179
186
  *
@@ -260,6 +267,20 @@ export declare interface DialogProps extends Omit<DialogHTMLAttributes<HTMLDialo
260
267
  */
261
268
  export declare function DownloadIcon(props: IconProps): ReactElement;
262
269
 
270
+ /**
271
+ * The `fade-in` icon: Lucide's `chart-no-axes-column-increasing`.
272
+ *
273
+ * @public
274
+ */
275
+ export declare function FadeInIcon(props: IconProps): ReactElement;
276
+
277
+ /**
278
+ * The `fade-out` icon: Lucide's `chart-no-axes-column-decreasing`.
279
+ *
280
+ * @public
281
+ */
282
+ export declare function FadeOutIcon(props: IconProps): ReactElement;
283
+
263
284
  /**
264
285
  * A label, an optional description and an optional error, wired to one
265
286
  * control: the label names it, and the description and error describe it.
@@ -431,6 +452,27 @@ export declare interface FileRejection {
431
452
  readonly reason: "type" | "count" | "directory";
432
453
  }
433
454
 
455
+ /**
456
+ * The `fit` icon: Lucide's `scan`.
457
+ *
458
+ * @public
459
+ */
460
+ export declare function FitIcon(props: IconProps): ReactElement;
461
+
462
+ /**
463
+ * The `flip-horizontal` icon: Lucide's `triangles-centerline-dashed-vertical`.
464
+ *
465
+ * @public
466
+ */
467
+ export declare function FlipHorizontalIcon(props: IconProps): ReactElement;
468
+
469
+ /**
470
+ * The `flip-vertical` icon: Lucide's `triangles-centerline-dashed-horizontal`.
471
+ *
472
+ * @public
473
+ */
474
+ export declare function FlipVerticalIcon(props: IconProps): ReactElement;
475
+
434
476
  /**
435
477
  * The `highlighter` icon: Lucide's `highlighter`.
436
478
  *
@@ -479,7 +521,7 @@ export declare type IconComponent = (props: IconProps) => ReactElement;
479
521
  *
480
522
  * @public
481
523
  */
482
- export declare type IconName = "add" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "close" | "delete" | "download" | "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" | "split" | "stop" | "undo" | "upload" | "volume" | "warning" | "zoom-in" | "zoom-out";
524
+ 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";
483
525
 
484
526
  /**
485
527
  * Props of every icon. SVG attributes are passed through.
@@ -886,6 +928,13 @@ export declare interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputE
886
928
  readonly label?: string | undefined;
887
929
  }
888
930
 
931
+ /**
932
+ * The `snap` icon: Lucide's `magnet`.
933
+ *
934
+ * @public
935
+ */
936
+ export declare function SnapIcon(props: IconProps): ReactElement;
937
+
889
938
  /**
890
939
  * Shows that something is loading, for an unknown time. It's an
891
940
  * indeterminate progress bar to assistive technology, named by `label`.
@@ -1203,6 +1252,20 @@ export declare const ToolbarSeparator: ForwardRefExoticComponent<ToolbarSeparato
1203
1252
  */
1204
1253
  export declare type ToolbarSeparatorProps = Omit<HTMLAttributes<HTMLHRElement>, "children">;
1205
1254
 
1255
+ /**
1256
+ * The `trim-end` icon: Lucide's `arrow-left-from-line`.
1257
+ *
1258
+ * @public
1259
+ */
1260
+ export declare function TrimEndIcon(props: IconProps): ReactElement;
1261
+
1262
+ /**
1263
+ * The `trim-start` icon: Lucide's `arrow-right-from-line`.
1264
+ *
1265
+ * @public
1266
+ */
1267
+ export declare function TrimStartIcon(props: IconProps): ReactElement;
1268
+
1206
1269
  /**
1207
1270
  * Messages that include `ui`'s text: any sdk-core `Messages` object whose
1208
1271
  * catalogue spreads `uiMessages`.
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.3.0";
12
+ return "0.4.0";
13
13
  }
14
14
  function checkSingleCopy() {
15
15
  if (checked || !(typeof process !== "undefined" && process.env.NODE_ENV !== "production")) return;
@@ -999,6 +999,9 @@ function ChevronRightIcon(props) {
999
999
  function CloseIcon(props) {
1000
1000
  return renderIcon("close", [["path", { d: "M18 6 6 18" }], ["path", { d: "m6 6 12 12" }]], false, props);
1001
1001
  }
1002
+ function CropIcon(props) {
1003
+ return renderIcon("crop", [["path", { d: "M6 2v14a2 2 0 0 0 2 2h14" }], ["path", { d: "M18 22V8a2 2 0 0 0-2-2H2" }]], false, props);
1004
+ }
1002
1005
  function DeleteIcon(props) {
1003
1006
  return renderIcon("delete", [
1004
1007
  ["path", { d: "M10 11v6" }],
@@ -1015,6 +1018,48 @@ function DownloadIcon(props) {
1015
1018
  ["path", { d: "m7 10 5 5 5-5" }]
1016
1019
  ], false, props);
1017
1020
  }
1021
+ function FadeInIcon(props) {
1022
+ return renderIcon("fade-in", [
1023
+ ["path", { d: "M5 21v-6" }],
1024
+ ["path", { d: "M12 21V9" }],
1025
+ ["path", { d: "M19 21V3" }]
1026
+ ], false, props);
1027
+ }
1028
+ function FadeOutIcon(props) {
1029
+ return renderIcon("fade-out", [
1030
+ ["path", { d: "M5 21V3" }],
1031
+ ["path", { d: "M12 21V9" }],
1032
+ ["path", { d: "M19 21v-6" }]
1033
+ ], false, props);
1034
+ }
1035
+ function FitIcon(props) {
1036
+ return renderIcon("fit", [
1037
+ ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2" }],
1038
+ ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2" }],
1039
+ ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2" }],
1040
+ ["path", { d: "M7 21H5a2 2 0 0 1-2-2v-2" }]
1041
+ ], false, props);
1042
+ }
1043
+ function FlipHorizontalIcon(props) {
1044
+ return renderIcon("flip-horizontal", [
1045
+ ["path", { d: "M12 14v2" }],
1046
+ ["path", { d: "M12 20v2" }],
1047
+ ["path", { d: "M12 2v2" }],
1048
+ ["path", { d: "M12 8v2" }],
1049
+ ["path", { d: "M20.288 16.703A1 1 0 0022 16V8a1 1 0 00-1.712-.703l-3.99 3.991a1 1 0 00-.001 1.424z" }],
1050
+ ["path", { d: "M3.712 16.703A1 1 0 012 16V8a1 1 0 011.712-.703l3.99 3.991a1 1 0 01.001 1.424z" }]
1051
+ ], false, props);
1052
+ }
1053
+ function FlipVerticalIcon(props) {
1054
+ return renderIcon("flip-vertical", [
1055
+ ["path", { d: "M10 12H8" }],
1056
+ ["path", { d: "M16 12h-2" }],
1057
+ ["path", { d: "M22 12h-2" }],
1058
+ ["path", { d: "M4 12H2" }],
1059
+ ["path", { d: "M7.298 20.288A1 1 0 008 22h8a1 1 0 00.703-1.712l-3.991-3.99a1 1 0 00-1.424-.001z" }],
1060
+ ["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" }]
1061
+ ], false, props);
1062
+ }
1018
1063
  function HighlighterIcon(props) {
1019
1064
  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);
1020
1065
  }
@@ -1146,6 +1191,13 @@ function SkipBackIcon(props) {
1146
1191
  function SkipForwardIcon(props) {
1147
1192
  return renderIcon("skip-forward", [["path", { d: "M21 4v16" }], ["path", { d: "M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z" }]], false, props);
1148
1193
  }
1194
+ function SnapIcon(props) {
1195
+ return renderIcon("snap", [
1196
+ ["path", { d: "m12 15 4 4" }],
1197
+ ["path", { d: "M2.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.029-6.029a1 1 0 1 1 3 3l-6.029 6.029a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.365-6.367A1 1 0 0 0 8.716 4.282z" }],
1198
+ ["path", { d: "m5 8 4 4" }]
1199
+ ], false, props);
1200
+ }
1149
1201
  function SplitIcon(props) {
1150
1202
  return renderIcon("split", [
1151
1203
  ["circle", {
@@ -1172,6 +1224,20 @@ function StopIcon(props) {
1172
1224
  rx: "2"
1173
1225
  }]], false, props);
1174
1226
  }
1227
+ function TrimEndIcon(props) {
1228
+ return renderIcon("trim-end", [
1229
+ ["path", { d: "m9 6-6 6 6 6" }],
1230
+ ["path", { d: "M3 12h14" }],
1231
+ ["path", { d: "M21 19V5" }]
1232
+ ], false, props);
1233
+ }
1234
+ function TrimStartIcon(props) {
1235
+ return renderIcon("trim-start", [
1236
+ ["path", { d: "M3 5v14" }],
1237
+ ["path", { d: "M21 12H7" }],
1238
+ ["path", { d: "m15 18 6-6-6-6" }]
1239
+ ], false, props);
1240
+ }
1175
1241
  function UndoIcon(props) {
1176
1242
  return renderIcon("undo", [["path", { d: "M9 14 4 9l5-5" }], ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" }]], true, props);
1177
1243
  }
@@ -1282,6 +1348,6 @@ function ThemeProvider(props) {
1282
1348
  }), children]
1283
1349
  });
1284
1350
  }
1285
- export { AddIcon, AnnouncerProvider, Button, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CloseIcon, DeleteIcon, Dialog, DownloadIcon, Field, FileDropZone, 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, Spinner, SplitIcon, StopIcon, ThemeProvider, ToggleButton, Toolbar, ToolbarGroup, ToolbarSeparator, UiMessagesProvider, UndoIcon, UploadIcon, VisuallyHidden, VolumeIcon, WarningIcon, ZoomInIcon, ZoomOutIcon, uiMessages, useAnnounce, useUiMessages };
1351
+ 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, ThemeProvider, ToggleButton, Toolbar, ToolbarGroup, ToolbarSeparator, TrimEndIcon, TrimStartIcon, UiMessagesProvider, UndoIcon, UploadIcon, VisuallyHidden, VolumeIcon, WarningIcon, ZoomInIcon, ZoomOutIcon, uiMessages, useAnnounce, useUiMessages };
1286
1352
 
1287
1353
  //# sourceMappingURL=react.js.map