@luscii-healthtech/web-ui 18.1.1 → 19.0.1
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/components/Form/FormImagePicker.d.ts +3 -3
- package/dist/components/Form/form.types.d.ts +6 -6
- package/dist/components/MediaPicker/MediaPicker.d.ts +1 -5
- package/dist/index.d.ts +0 -1
- package/dist/index.development.js +32 -36
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +3 -2
- package/dist/components/Icons/templates/component.d.ts +0 -3
- package/dist/components/Icons/templates/index.d.ts +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Control, RegisterOptions } from "react-hook-form/dist/index.ie11";
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
3
|
+
import { MediaPickerFieldConfiguration, FormFieldLabelerWithFormProps } from "./form.types";
|
|
4
|
+
interface FormMediaPickerProps extends MediaPickerFieldConfiguration, FormFieldLabelerWithFormProps {
|
|
5
5
|
control: Control;
|
|
6
6
|
rules?: Exclude<RegisterOptions, "valueAsNumber" | "valueAsDate" | "setValueAs">;
|
|
7
7
|
}
|
|
8
|
-
export declare const FormImagePicker: React.ForwardRefExoticComponent<
|
|
8
|
+
export declare const FormImagePicker: React.ForwardRefExoticComponent<FormMediaPickerProps & React.RefAttributes<any>>;
|
|
9
9
|
export {};
|
|
@@ -3,7 +3,7 @@ import React, { HTMLInputTypeAttribute } from "react";
|
|
|
3
3
|
import { InputProps } from "../Input/Input";
|
|
4
4
|
import { RadioGroupProps } from "../RadioGroup/RadioGroupV2";
|
|
5
5
|
import { SelectProps } from "../Select/Select";
|
|
6
|
-
import {
|
|
6
|
+
import { MediaPickerProps } from "../MediaPicker/MediaPicker";
|
|
7
7
|
import { PartialProperties } from "../../types/general.types";
|
|
8
8
|
import { CheckboxProps } from "../Checkbox/Checkbox";
|
|
9
9
|
import { TextareaProps } from "../Textarea/Textarea";
|
|
@@ -32,7 +32,7 @@ export interface FormFieldLabelerProps {
|
|
|
32
32
|
interface FieldVoidConfiguration extends Partial<FormFieldBaseConfiguration<never>> {
|
|
33
33
|
type: "void";
|
|
34
34
|
}
|
|
35
|
-
export type FormFieldConfiguration<TFieldValues> = FieldInputConfiguration | FieldSelectConfiguration |
|
|
35
|
+
export type FormFieldConfiguration<TFieldValues> = FieldInputConfiguration | FieldSelectConfiguration | FieldMediaPickerConfiguration | FieldRadioGroupConfiguration | FieldRowConfiguration<TFieldValues> | FieldCheckboxConfiguration | FieldCheckboxListConfiguration | FieldTextareaConfiguration | FieldTitleConfiguration | FieldVoidConfiguration;
|
|
36
36
|
/**
|
|
37
37
|
* @backwardscompatibility
|
|
38
38
|
* @deprecated - this is an alias for `FormFieldConfiguration`, for backwards compatibility the name can remain for now, but
|
|
@@ -60,10 +60,10 @@ export interface FieldSelectConfiguration extends FormFieldBaseConfiguration<Sel
|
|
|
60
60
|
type: "select";
|
|
61
61
|
fieldProps: SelectProps;
|
|
62
62
|
}
|
|
63
|
-
export type
|
|
64
|
-
export interface
|
|
65
|
-
type: "
|
|
66
|
-
fieldProps:
|
|
63
|
+
export type MediaPickerFieldConfiguration = PartialProperties<Omit<MediaPickerProps, "name">, "onChange">;
|
|
64
|
+
export interface FieldMediaPickerConfiguration extends FormFieldBaseConfiguration<MediaPickerFieldConfiguration> {
|
|
65
|
+
type: "mediaPicker";
|
|
66
|
+
fieldProps: MediaPickerFieldConfiguration;
|
|
67
67
|
}
|
|
68
68
|
export interface FieldCheckboxConfiguration extends FormFieldBaseConfiguration<Omit<CheckboxProps, "name" | "type">> {
|
|
69
69
|
type: "checkbox";
|
|
@@ -47,10 +47,6 @@ export interface ImagePickerProps {
|
|
|
47
47
|
export declare const ImagePickerInner: React.FC<ImagePickerProps & {
|
|
48
48
|
innerRef?: React.Ref<HTMLButtonElement>;
|
|
49
49
|
}>;
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use MediaPicker instead
|
|
52
|
-
*/
|
|
53
|
-
export declare const ImagePicker: React.ForwardRefExoticComponent<ImagePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
54
50
|
export interface MediaPickerProps {
|
|
55
51
|
name: string;
|
|
56
52
|
media: string[];
|
|
@@ -92,4 +88,4 @@ export interface MediaPickerProps {
|
|
|
92
88
|
isErrorUploading?: boolean;
|
|
93
89
|
localisation: Partial<Record<"openModalButton" | "selectButton" | "error" | "upload" | "clearSelection" | "cancel" | "search" | "unsupportedMediaType" | "modalTitle", string>>;
|
|
94
90
|
}
|
|
95
|
-
export declare const MediaPicker:
|
|
91
|
+
export declare const MediaPicker: React.ForwardRefExoticComponent<MediaPickerProps & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,6 @@ export { Spinner } from "./components/Spinner/Spinner";
|
|
|
52
52
|
export { Steps } from "./components/Steps/Steps";
|
|
53
53
|
export { default as Switcher } from "./components/Switcher/Switcher";
|
|
54
54
|
export { default as Image } from "./components/Image/Image";
|
|
55
|
-
export { ImagePicker } from "./components/MediaPicker/MediaPicker";
|
|
56
55
|
export { MediaPicker, TargetProps } from "./components/MediaPicker/MediaPicker";
|
|
57
56
|
export { default as Tabbar, TabbarProps, TabItemDetails, } from "./components/Tabbar/Tabbar";
|
|
58
57
|
export { Breadcrumbs, BreadcrumbProps } from "./components/Breadcrumbs";
|
|
@@ -285,7 +285,7 @@ var ChartIcon = IconWrapper(SvgChartIcon);
|
|
|
285
285
|
|
|
286
286
|
const SvgChartLineColoredIcon = (props) => React__namespace.default.createElement(
|
|
287
287
|
"svg",
|
|
288
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
288
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 28 28" }, props),
|
|
289
289
|
React__namespace.default.createElement("path", { fill: "#F09", d: "M5 20c-.55 0-1.02-.196-1.412-.587A1.927 1.927 0 0 1 3 18c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 5 16h.263a.64.64 0 0 1 .237.05l4.55-4.55a.642.642 0 0 1-.05-.238V11c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 12 9c.55 0 1.021.196 1.413.587.391.392.587.863.587 1.413 0 .033-.017.2-.05.5l2.55 2.55a.642.642 0 0 1 .238-.05h.524c.075 0 .155.017.238.05l3.55-3.55a.642.642 0 0 1-.05-.238V10c0-.55.196-1.02.587-1.412A1.927 1.927 0 0 1 23 8c.55 0 1.021.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.927 1.927 0 0 1 23 12h-.262a.642.642 0 0 1-.238-.05l-3.55 3.55c.033.083.05.163.05.238V16c0 .55-.196 1.02-.587 1.412A1.927 1.927 0 0 1 17 18c-.55 0-1.02-.196-1.412-.588A1.923 1.923 0 0 1 15 16v-.262c0-.075.017-.155.05-.238l-2.55-2.55a.642.642 0 0 1-.238.05H12c-.033 0-.2-.017-.5-.05L6.95 17.5c.033.083.05.163.05.238V18c0 .55-.196 1.021-.588 1.413A1.925 1.925 0 0 1 5 20Z" }),
|
|
290
290
|
React__namespace.default.createElement("circle", { cx: 12, cy: 11, r: 2, fill: "#FF82AB" }),
|
|
291
291
|
React__namespace.default.createElement("circle", { cx: 5, cy: 18, r: 2, fill: "#FF82AB" }),
|
|
@@ -296,7 +296,7 @@ var ChartLineColoredIcon = IconWrapper(SvgChartLineColoredIcon);
|
|
|
296
296
|
|
|
297
297
|
const SvgChatBoxIcon = (props) => React__namespace.default.createElement(
|
|
298
298
|
"svg",
|
|
299
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
299
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 20 19" }, props),
|
|
300
300
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M18 0H2C.9 0 0 .9 0 2v15.59c0 .89 1.08 1.34 1.71.71L4 16h14c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2Zm-6.43 9.57-1.12 2.44a.5.5 0 0 1-.91 0L8.42 9.57 5.98 8.45a.5.5 0 0 1 0-.91l2.44-1.12 1.12-2.44a.5.5 0 0 1 .91 0l1.12 2.44 2.44 1.12a.5.5 0 0 1 0 .91l-2.44 1.12Z" })
|
|
301
301
|
);
|
|
302
302
|
var ChatBoxIcon = IconWrapper(SvgChatBoxIcon);
|
|
@@ -310,7 +310,7 @@ var CheckIcon = IconWrapper(SvgCheckIcon);
|
|
|
310
310
|
|
|
311
311
|
const SvgChevronDoubleIcon = (props) => React__namespace.default.createElement(
|
|
312
312
|
"svg",
|
|
313
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
313
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 8 14" }, props),
|
|
314
314
|
React__namespace.default.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 0a1 1 0 0 1 .707.293l3 3a1 1 0 0 1-1.414 1.414L4 2.414 1.707 4.707A1 1 0 0 1 .293 3.293l3-3A1 1 0 0 1 4 0ZM.293 9.293a1 1 0 0 1 1.414 0L4 11.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414Z", clipRule: "evenodd" })
|
|
315
315
|
);
|
|
316
316
|
var ChevronDoubleIcon = IconWrapper(SvgChevronDoubleIcon);
|
|
@@ -352,7 +352,7 @@ var DeleteIcon = IconWrapper(SvgDeleteIcon);
|
|
|
352
352
|
|
|
353
353
|
const SvgDownArrowIcon = (props) => React__namespace.default.createElement(
|
|
354
354
|
"svg",
|
|
355
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
355
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 16 16" }, props),
|
|
356
356
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "m12.762 6.57-.48-.382A.944.944 0 0 0 11.696 6a.9.9 0 0 0-.578.188L8 8.663 4.88 6.188A.9.9 0 0 0 4.304 6a.944.944 0 0 0-.584.188l-.475.382C3.08 6.7 3 6.854 3 7.034c0 .183.081.336.244.458l4.178 3.315A.87.87 0 0 0 8 11a.91.91 0 0 0 .584-.193l4.178-3.315A.567.567 0 0 0 13 7.034c0-.177-.08-.331-.238-.464z" })
|
|
357
357
|
);
|
|
358
358
|
var DownArrowIcon = IconWrapper(SvgDownArrowIcon);
|
|
@@ -373,7 +373,7 @@ var EditIcon = IconWrapper(SvgEditIcon);
|
|
|
373
373
|
|
|
374
374
|
const SvgEmptyIcon = (props) => React__namespace.default.createElement(
|
|
375
375
|
"svg",
|
|
376
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
376
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 28 28" }, props),
|
|
377
377
|
React__namespace.default.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M14 22a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0 3c6.075 0 11-4.925 11-11S20.075 3 14 3 3 7.925 3 14s4.925 11 11 11Z", clipRule: "evenodd" }),
|
|
378
378
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M3.414 24.414a2 2 0 0 1 0-2.828L21.148 3.852a2 2 0 1 1 2.829 2.828L6.243 24.414a2 2 0 0 1-2.829 0Z" })
|
|
379
379
|
);
|
|
@@ -381,7 +381,7 @@ var EmptyIcon = IconWrapper(SvgEmptyIcon);
|
|
|
381
381
|
|
|
382
382
|
const SvgEmptyStateDashboardIcon = (props) => React__namespace.default.createElement(
|
|
383
383
|
"svg",
|
|
384
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
384
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 450 300" }, props),
|
|
385
385
|
React__namespace.default.createElement("path", { fill: "#82D6F8", d: "M450 291c0-26.921-5.82-53.578-17.127-78.45-11.307-24.872-27.881-47.471-48.774-66.507-20.893-19.036-45.697-34.136-72.995-44.438C283.806 91.302 254.547 86 225 86c-29.547 0-58.806 5.302-86.104 15.605-27.298 10.302-52.102 25.402-72.995 44.438-20.893 19.036-37.467 41.635-48.774 66.507C5.82 237.422 0 264.079 0 291h450Z" }),
|
|
386
386
|
React__namespace.default.createElement("path", { fill: "#1F2937", d: "M95 73.008C95 65.824 100.824 60 108.008 60h234.146c7.184 0 13.008 5.824 13.008 13.008v150.244c0 7.184-5.824 13.008-13.008 13.008H108.008c-7.184 0-13.008-5.824-13.008-13.008V73.008Z" }),
|
|
387
387
|
React__namespace.default.createElement("path", { fill: "#F9FAFB", d: "M167.846 70.406h172.91a4 4 0 0 1 4 4v147.447a4 4 0 0 1-4 4h-172.91V70.406Z" }),
|
|
@@ -461,21 +461,21 @@ var ExportIcon = IconWrapper(SvgExportIcon);
|
|
|
461
461
|
|
|
462
462
|
const SvgEyeIconSlashed = (props) => React__namespace.default.createElement(
|
|
463
463
|
"svg",
|
|
464
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
464
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 22 20" }, props),
|
|
465
465
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M11 4.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C20.27 5.11 16 2 11 2c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24ZM1.71 1.16a.996.996 0 0 0 0 1.41l1.97 1.97A11.892 11.892 0 0 0 0 9.5C1.73 13.89 6 17 11 17c1.52 0 2.97-.3 4.31-.82l2.72 2.72a.996.996 0 1 0 1.41-1.41L3.13 1.16c-.39-.39-1.03-.39-1.42 0ZM11 14.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L13.14 14c-.65.32-1.37.5-2.14.5Zm2.97-5.33a2.97 2.97 0 0 0-2.64-2.64l2.64 2.64Z" })
|
|
466
466
|
);
|
|
467
467
|
var EyeIconSlashed = IconWrapper(SvgEyeIconSlashed);
|
|
468
468
|
|
|
469
469
|
const SvgEyeIcon = (props) => React__namespace.default.createElement(
|
|
470
470
|
"svg",
|
|
471
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
471
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 22 15" }, props),
|
|
472
472
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M11 0C6 0 1.73 3.11 0 7.5 1.73 11.89 6 15 11 15s9.27-3.11 11-7.5C20.27 3.11 16 0 11 0Zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5Zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3Z" })
|
|
473
473
|
);
|
|
474
474
|
var EyeIcon = IconWrapper(SvgEyeIcon);
|
|
475
475
|
|
|
476
476
|
const SvgGearColoredIcon = (props) => React__namespace.default.createElement(
|
|
477
477
|
"svg",
|
|
478
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
478
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 28 28" }, props),
|
|
479
479
|
React__namespace.default.createElement("path", { fill: "#6670A5", d: "M13.142 2.437a1.062 1.062 0 0 1 1.716 0l2.124 2.916c.235.322.63.486 1.024.424l3.564-.56a1.062 1.062 0 0 1 1.213 1.213l-.56 3.564c-.062.394.102.79.424 1.024l2.916 2.124a1.062 1.062 0 0 1 0 1.716l-2.916 2.124c-.322.235-.486.63-.424 1.024l.56 3.564a1.062 1.062 0 0 1-1.213 1.213l-3.564-.56a1.062 1.062 0 0 0-1.024.424l-2.124 2.916a1.062 1.062 0 0 1-1.716 0l-2.124-2.916a1.062 1.062 0 0 0-1.024-.424l-3.564.56a1.062 1.062 0 0 1-1.213-1.213l.56-3.564a1.062 1.062 0 0 0-.424-1.024l-2.916-2.124a1.062 1.062 0 0 1 0-1.716l2.916-2.124c.322-.235.486-.63.424-1.024l-.56-3.564A1.062 1.062 0 0 1 6.43 5.217l3.564.56c.394.062.79-.102 1.024-.424l2.124-2.916Z" }),
|
|
480
480
|
React__namespace.default.createElement("circle", { cx: 14, cy: 14, r: 4, fill: "#383B6D" })
|
|
481
481
|
);
|
|
@@ -483,14 +483,14 @@ var GearColoredIcon = IconWrapper(SvgGearColoredIcon);
|
|
|
483
483
|
|
|
484
484
|
const SvgGearIcon = (props) => React__namespace.default.createElement(
|
|
485
485
|
"svg",
|
|
486
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
486
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 20 20" }, props),
|
|
487
487
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M17.5 10c0-.23-.01-.45-.03-.68l1.86-1.41c.4-.3.51-.86.26-1.3l-1.87-3.23a.987.987 0 0 0-1.25-.42l-2.15.91c-.37-.26-.76-.49-1.17-.68L12.86.88c-.06-.5-.49-.88-.99-.88H8.14c-.51 0-.94.38-1 .88l-.29 2.31c-.41.19-.8.42-1.17.68l-2.15-.91c-.46-.2-1-.02-1.25.42L.41 6.62c-.25.44-.14.99.26 1.3l1.86 1.41a7.343 7.343 0 0 0 0 1.35L.67 12.09c-.4.3-.51.86-.26 1.3l1.87 3.23c.25.44.79.62 1.25.42l2.15-.91c.37.26.76.49 1.17.68l.29 2.31c.06.5.49.88.99.88h3.73c.5 0 .93-.38.99-.88l.29-2.31c.41-.19.8-.42 1.17-.68l2.15.91c.46.2 1 .02 1.25-.42l1.87-3.23c.25-.44.14-.99-.26-1.3l-1.86-1.41c.03-.23.04-.45.04-.68Zm-7.46 3.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5Z" })
|
|
488
488
|
);
|
|
489
489
|
var GearIcon = IconWrapper(SvgGearIcon);
|
|
490
490
|
|
|
491
491
|
const SvgGroupColoredIcon = (props) => React__namespace.default.createElement(
|
|
492
492
|
"svg",
|
|
493
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
493
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 28 28" }, props),
|
|
494
494
|
React__namespace.default.createElement("path", { fill: "#6ABFA5", d: "M4 22a.965.965 0 0 1-.712-.288A.965.965 0 0 1 3 21v-1.8c0-.567.146-1.088.438-1.563A2.914 2.914 0 0 1 4.6 16.55a14.866 14.866 0 0 1 3.15-1.163A13.776 13.776 0 0 1 11 15c1.1 0 2.183.129 3.25.387 1.067.259 2.117.646 3.15 1.163.483.25.87.612 1.162 1.087.292.475.438.996.438 1.563V21c0 .283-.096.52-.288.712A.965.965 0 0 1 18 22H4Zm7-8c-1.1 0-2.042-.392-2.825-1.175C7.392 12.042 7 11.1 7 10s.392-2.042 1.175-2.825C8.958 6.392 9.9 6 11 6s2.042.392 2.825 1.175C14.608 7.958 15 8.9 15 10s-.392 2.042-1.175 2.825C13.042 13.608 12.1 14 11 14Z" }),
|
|
495
495
|
React__namespace.default.createElement("path", { fill: "#559783", d: "M20.525 22a1.21 1.21 0 0 0 .35-.438 1.35 1.35 0 0 0 .125-.587V19c0-.733-.204-1.438-.612-2.113-.41-.675-.988-1.254-1.738-1.737.85.1 1.65.27 2.4.512s1.45.538 2.1.888c.6.333 1.058.704 1.375 1.112.316.409.475.855.475 1.338v2c0 .283-.096.52-.288.712A.965.965 0 0 1 24 22h-3.475ZM21 10c0 1.1-.392 2.042-1.175 2.825C19.04 13.608 18.1 14 17 14a4.92 4.92 0 0 1-.7-.062 6.181 6.181 0 0 1-.7-.138 5.937 5.937 0 0 0 1.037-1.775C16.879 11.375 17 10.7 17 10s-.121-1.375-.363-2.025A5.937 5.937 0 0 0 15.6 6.2c.233-.083.466-.138.7-.163.233-.025.466-.037.7-.037 1.1 0 2.041.392 2.825 1.175C20.608 7.958 21 8.9 21 10Z" })
|
|
496
496
|
);
|
|
@@ -519,7 +519,7 @@ var HeartIcon = IconWrapper(SvgHeartIcon);
|
|
|
519
519
|
|
|
520
520
|
const SvgImageIcon = (props) => React__namespace.default.createElement(
|
|
521
521
|
"svg",
|
|
522
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
522
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 18 18" }, props),
|
|
523
523
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M18 16V2c0-1.1-.9-2-2-2H2C.9 0 0 .9 0 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2ZM5.9 10.98 8 13.51l3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68a.5.5 0 0 1-.4.8H3.02c-.42 0-.65-.48-.39-.81L5.12 11c.19-.26.57-.27.78-.02Z" })
|
|
524
524
|
);
|
|
525
525
|
var ImageIcon = IconWrapper(SvgImageIcon);
|
|
@@ -562,7 +562,7 @@ var LockIcon = IconWrapper(SvgLockIcon);
|
|
|
562
562
|
|
|
563
563
|
const SvgMessagesIcon = (props) => React__namespace.default.createElement(
|
|
564
564
|
"svg",
|
|
565
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
565
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 28 28" }, props),
|
|
566
566
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M24 3a2 2 0 0 1 2 2v15a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h20Z" }),
|
|
567
567
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M12.586 10.414a2 2 0 0 1 2.828 0l6.172 6.172a2 2 0 0 1 0 2.828l-6.172 6.172a2 2 0 0 1-2.828 0l-6.172-6.172a2 2 0 0 1 0-2.828l6.172-6.172Z" }),
|
|
568
568
|
React__namespace.default.createElement("rect", { width: 18, height: 2, x: 5, y: 6, fill: "#fff", rx: 1 }),
|
|
@@ -573,7 +573,7 @@ var MessagesIcon = IconWrapper(SvgMessagesIcon);
|
|
|
573
573
|
|
|
574
574
|
const SvgMouseIcon = (props) => React__namespace.default.createElement(
|
|
575
575
|
"svg",
|
|
576
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
576
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 15 20" }, props),
|
|
577
577
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M7.5 20c-1.933 0-3.583-.683-4.95-2.05C1.183 16.583.5 14.933.5 13V7c0-1.933.683-3.583 2.05-4.95C3.917.683 5.567 0 7.5 0c1.933 0 3.583.683 4.95 2.05C13.817 3.417 14.5 5.067 14.5 7v6c0 1.933-.683 3.583-2.05 4.95C11.083 19.317 9.433 20 7.5 20Zm1-13h4c0-1.2-.379-2.258-1.137-3.175C10.604 2.908 9.65 2.333 8.5 2.1V7Zm-6 0h4V2.1c-1.15.233-2.104.808-2.863 1.725A4.837 4.837 0 0 0 2.5 7Zm5 11c1.383 0 2.563-.487 3.538-1.462.975-.975 1.462-2.155 1.462-3.538V9h-10v4c0 1.383.488 2.563 1.463 3.538C4.938 17.513 6.117 18 7.5 18Z" })
|
|
578
578
|
);
|
|
579
579
|
var MouseIcon = IconWrapper(SvgMouseIcon);
|
|
@@ -594,14 +594,14 @@ var PageViewIcon = IconWrapper(SvgPageViewIcon);
|
|
|
594
594
|
|
|
595
595
|
const SvgPinIcon = (props) => React__namespace.default.createElement(
|
|
596
596
|
"svg",
|
|
597
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
597
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 14 20" }, props),
|
|
598
598
|
React__namespace.default.createElement("path", { fill: "#64748b", d: "M14 10.87c0-.47-.34-.85-.8-.98A2.997 2.997 0 0 1 11 7V2h1c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1h1v5C3 8.38 2.07 9.54.8 9.89c-.46.13-.8.51-.8.98V11c0 .55.45 1 1 1h4.98L6 19c0 .55.45 1 1 1s1-.45 1-1l-.02-7H13c.55 0 1-.45 1-1v-.13Z" })
|
|
599
599
|
);
|
|
600
600
|
var PinIcon = IconWrapper(SvgPinIcon);
|
|
601
601
|
|
|
602
602
|
const SvgPrintIcon = (props) => React__namespace.default.createElement(
|
|
603
603
|
"svg",
|
|
604
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
604
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24 }, props),
|
|
605
605
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M16.6 5H15V.5a.5.5 0 0 0-.5-.5h-10a.5.5 0 0 0-.5.5V5H2.4A2.4 2.4 0 0 0 0 7.4v5.2A2.4 2.4 0 0 0 2.4 15H5v2.5a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5V15h2.6a2.4 2.4 0 0 0 2.4-2.4V7.4A2.4 2.4 0 0 0 16.6 5zM5 1h9v4H5V1zm8 16H6v-5h7v5zm5-4.4a1.4 1.4 0 0 1-1.4 1.4H14v-2.5a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5V14H2.4A1.4 1.4 0 0 1 1 12.6V7.4A1.4 1.4 0 0 1 2.4 6h14.2A1.4 1.4 0 0 1 18 7.4v5.2z" })
|
|
606
606
|
);
|
|
607
607
|
var PrintIcon = IconWrapper(SvgPrintIcon);
|
|
@@ -623,7 +623,7 @@ var RobotIcon = IconWrapper(SvgRobotIcon);
|
|
|
623
623
|
|
|
624
624
|
const SvgSearchCancelIcon = (props) => React__namespace.default.createElement(
|
|
625
625
|
"svg",
|
|
626
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
626
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 14 14" }, props),
|
|
627
627
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M2.05.637A1 1 0 0 0 .638 2.05L5.587 7l-4.95 4.95a1 1 0 0 0 1.414 1.414L7 8.415l4.95 4.95a1 1 0 0 0 1.414-1.415L8.415 7l4.95-4.949A1 1 0 0 0 11.95.637L7 5.587 2.05.637Z" })
|
|
628
628
|
);
|
|
629
629
|
var SearchCancelIcon = IconWrapper(SvgSearchCancelIcon);
|
|
@@ -668,14 +668,14 @@ var SpaceRocketIcon = IconWrapper(SvgSpaceRocketIcon);
|
|
|
668
668
|
|
|
669
669
|
const SvgStarIcon = (props) => React__namespace.default.createElement(
|
|
670
670
|
"svg",
|
|
671
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
671
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 19 18" }, props),
|
|
672
672
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M8.587 1.05c.352-.791 1.474-.791 1.826 0l1.753 3.93a1 1 0 0 0 .808.588l4.281.452c.86.09 1.207 1.158.565 1.737l-3.198 2.882a1 1 0 0 0-.309.95l.893 4.211c.18.847-.728 1.506-1.478 1.074L10 14.724a1 1 0 0 0-1 0l-3.728 2.15c-.75.432-1.658-.227-1.478-1.074l.893-4.21a1 1 0 0 0-.309-.951L1.18 7.757c-.642-.58-.296-1.646.565-1.737l4.28-.452a1 1 0 0 0 .81-.587l1.752-3.932Z" })
|
|
673
673
|
);
|
|
674
674
|
var StarIcon = IconWrapper(SvgStarIcon);
|
|
675
675
|
|
|
676
676
|
const SvgStatusColoredIcon = (props) => React__namespace.default.createElement(
|
|
677
677
|
"svg",
|
|
678
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
678
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 28 28" }, props),
|
|
679
679
|
React__namespace.default.createElement("rect", { width: 16, height: 24, x: 6, y: 2, fill: "#374151", rx: 2 }),
|
|
680
680
|
React__namespace.default.createElement("circle", { cx: 14, cy: 9, r: 4, fill: "#fff" }),
|
|
681
681
|
React__namespace.default.createElement("circle", { cx: 14, cy: 19, r: 4, fill: "#E86967" })
|
|
@@ -684,7 +684,7 @@ var StatusColoredIcon = IconWrapper(SvgStatusColoredIcon);
|
|
|
684
684
|
|
|
685
685
|
const SvgWarningIcon = (props) => React__namespace.default.createElement(
|
|
686
686
|
"svg",
|
|
687
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width:
|
|
687
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 20 20" }, props),
|
|
688
688
|
React__namespace.default.createElement("path", { fill: "currentColor", d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0Zm0 11c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1Zm1 4H9v-2h2v2Z" })
|
|
689
689
|
);
|
|
690
690
|
var WarningIcon = IconWrapper(SvgWarningIcon);
|
|
@@ -4812,12 +4812,11 @@ const ImagePickerInner = ({
|
|
|
4812
4812
|
)
|
|
4813
4813
|
);
|
|
4814
4814
|
};
|
|
4815
|
-
const
|
|
4816
|
-
const MediaPicker = (props) => {
|
|
4815
|
+
const MediaPicker = React__namespace.default.forwardRef((props, ref) => {
|
|
4817
4816
|
var _a, _b;
|
|
4818
4817
|
const mappedProps = Object.assign(Object.assign({}, props), { preselectedImage: props.preselectedMedia, images: props.media, handleChange: props.onChange, clearImageIndex: props.clearIndex, localisation: Object.assign(Object.assign({}, props.localisation), { uploadImage: (_b = (_a = props.localisation) === null || _a === void 0 ? void 0 : _a.upload) !== null && _b !== void 0 ? _b : "Upload file" }) });
|
|
4819
|
-
return React__namespace.default.createElement(
|
|
4820
|
-
};
|
|
4818
|
+
return React__namespace.default.createElement(ImagePickerInner, Object.assign({}, mappedProps, { innerRef: ref }));
|
|
4819
|
+
});
|
|
4821
4820
|
|
|
4822
4821
|
const TagGroup = ({ children, tags, tagSize = "base", className }) => React__namespace.default.createElement(
|
|
4823
4822
|
"div",
|
|
@@ -5123,18 +5122,16 @@ const FormImagePicker = React__namespace.default.forwardRef((_a, innerRef) => {
|
|
|
5123
5122
|
{ name, fieldErrors, fieldRequired, label, info, decoratorClassname },
|
|
5124
5123
|
React__namespace.default.createElement(index_ie11.Controller, { name, control, rules, render: (field) => {
|
|
5125
5124
|
var _a2;
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
}, []);
|
|
5133
|
-
return React__namespace.default.createElement(ImagePicker, Object.assign({}, fieldProps, field, { handleChange: (e) => {
|
|
5125
|
+
if (fieldProps.preselectedMedia && !field.value) {
|
|
5126
|
+
field.onChange({
|
|
5127
|
+
target: { name, value: fieldProps.preselectedMedia }
|
|
5128
|
+
});
|
|
5129
|
+
}
|
|
5130
|
+
return React__namespace.default.createElement(MediaPicker, Object.assign({}, fieldProps, field, { media: fieldProps.media, onChange: (e) => {
|
|
5134
5131
|
var _a3;
|
|
5135
5132
|
field.onChange(e.target.value);
|
|
5136
|
-
(_a3 = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.
|
|
5137
|
-
},
|
|
5133
|
+
(_a3 = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.onChange) === null || _a3 === void 0 ? void 0 : _a3.call(fieldProps, e);
|
|
5134
|
+
}, preselectedMedia: (_a2 = field.value) !== null && _a2 !== void 0 ? _a2 : fieldProps.preselectedMedia, ref: innerRef }));
|
|
5138
5135
|
} })
|
|
5139
5136
|
);
|
|
5140
5137
|
});
|
|
@@ -5243,7 +5240,7 @@ function FormFieldMapper(formFieldProps, useFormReturn) {
|
|
|
5243
5240
|
return React__namespace.default.createElement(FormInput, Object.assign({ key: name, name }, decoratorProps, { fieldRequired: isRequired(options), fieldErrors: errors }, fieldProps, { control, rules: options, type }));
|
|
5244
5241
|
case "select":
|
|
5245
5242
|
return React__namespace.default.createElement(FormSelect, Object.assign({ key: name }, decoratorProps, { fieldRequired: isRequired(options), fieldErrors: errors }, fieldProps, { control, rules: options, name }));
|
|
5246
|
-
case "
|
|
5243
|
+
case "mediaPicker":
|
|
5247
5244
|
return React__namespace.default.createElement(FormImagePicker, Object.assign({ key: name }, decoratorProps, { fieldRequired: isRequired(options), fieldErrors: errors }, fieldProps, { control, rules: options, name }));
|
|
5248
5245
|
case "radioGroup": {
|
|
5249
5246
|
return React__namespace.default.createElement(FormRadioGroup, Object.assign({ key: name }, decoratorProps, { fieldRequired: isRequired(options), fieldErrors: errors }, fieldProps, { name, rules: options, control }));
|
|
@@ -5765,7 +5762,6 @@ exports.HeartIcon = HeartIcon;
|
|
|
5765
5762
|
exports.Icon = Icon;
|
|
5766
5763
|
exports.Image = Image$1;
|
|
5767
5764
|
exports.ImageIcon = ImageIcon;
|
|
5768
|
-
exports.ImagePicker = ImagePicker;
|
|
5769
5765
|
exports.InfoField = InfoField;
|
|
5770
5766
|
exports.InfoIcon = InfoIcon;
|
|
5771
5767
|
exports.Input = Input;
|