@luscii-healthtech/web-ui 2.12.3 → 2.13.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/components/ButtonV2/ButtonV2.d.ts +2 -2
- package/dist/components/ButtonV2/SecondaryButton.d.ts +3 -3
- package/dist/components/Form/FormImagePicker.d.ts +3 -0
- package/dist/components/Form/FormInput.d.ts +3 -0
- package/dist/components/Form/FormRadioGroup.d.ts +3 -0
- package/dist/components/Form/form.types.d.ts +10 -1
- package/dist/components/ImagePicker/ImageCategory.d.ts +2 -2
- package/dist/components/ImagePicker/ImagePicker.d.ts +7 -3
- package/dist/web-ui.cjs.development.js +801 -23
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +801 -23
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ButtonProps } from "./ButtonProps.type";
|
|
3
|
-
export declare const ButtonV2:
|
|
3
|
+
export declare const ButtonV2: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export declare const SecondaryButton:
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ButtonProps } from "./ButtonProps.type";
|
|
3
|
+
export declare const SecondaryButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FormInputProps } from "./form.types";
|
|
3
|
+
/**
|
|
4
|
+
* Input field that can be used in any react-hook-form context.
|
|
5
|
+
*/
|
|
3
6
|
export declare const FormInput: React.ForwardRefExoticComponent<Pick<FormInputProps, "name" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "clearable" | "isDisabled" | "withPrefix" | "withSuffix" | "icon" | "isError" | "fieldErrors" | "fieldRequired" | "info" | "decoratorClassname"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FormRadioGroupProps } from "./form.types";
|
|
3
|
+
/**
|
|
4
|
+
* Radio Group that can be used in any react-hook-form context.
|
|
5
|
+
*/
|
|
3
6
|
export declare const FormRadioGroup: React.ForwardRefExoticComponent<FormRadioGroupProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -3,6 +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/SelectV2";
|
|
6
|
+
import { ImagePickerProps } from "../ImagePicker/ImagePicker";
|
|
6
7
|
export declare type AllowedTextInputTypes = Extract<HTMLInputTypeAttribute, "email" | "number" | "password" | "text">;
|
|
7
8
|
export interface GenericFormProps<TFieldValues extends FieldValues> {
|
|
8
9
|
fields: FormFieldProps<TFieldValues>[];
|
|
@@ -24,7 +25,7 @@ export interface FormFieldDecoratorProps {
|
|
|
24
25
|
info?: string;
|
|
25
26
|
decoratorClassname?: string;
|
|
26
27
|
}
|
|
27
|
-
export declare type FormFieldProps<TFieldValues> = FormFieldInputProps<TFieldValues> | FormFieldSelectProps<TFieldValues> | FormFieldRadioGroupProps<TFieldValues> | FormFieldRowProps<TFieldValues>;
|
|
28
|
+
export declare type FormFieldProps<TFieldValues> = FormFieldInputProps<TFieldValues> | FormFieldSelectProps<TFieldValues> | FormFieldImagePickerProps<TFieldValues> | FormFieldRadioGroupProps<TFieldValues> | FormFieldRowProps<TFieldValues>;
|
|
28
29
|
export interface FormFieldRowProps<TFieldValues> extends Record<keyof FormFieldGenericProps<never, TFieldValues>, never> {
|
|
29
30
|
type: "row";
|
|
30
31
|
key: string;
|
|
@@ -40,6 +41,10 @@ export interface FormFieldSelectProps<TFieldValues> extends FormFieldGenericProp
|
|
|
40
41
|
type: "select";
|
|
41
42
|
fieldProps: SelectProps;
|
|
42
43
|
}
|
|
44
|
+
export interface FormFieldImagePickerProps<TFieldValues> extends FormFieldGenericProps<Omit<ImagePickerProps, "name">, TFieldValues> {
|
|
45
|
+
type: "imagePicker";
|
|
46
|
+
fieldProps: ImagePickerProps;
|
|
47
|
+
}
|
|
43
48
|
export interface FormFieldDecoratorWithGeneratedProps extends FormFieldDecoratorProps {
|
|
44
49
|
name: string;
|
|
45
50
|
fieldErrors: FieldErrors;
|
|
@@ -55,4 +60,8 @@ export interface FormSelectProps extends Omit<SelectProps, "name">, FormFieldDec
|
|
|
55
60
|
control: Control;
|
|
56
61
|
rules?: Exclude<RegisterOptions, "valueAsNumber" | "valueAsDate" | "setValueAs">;
|
|
57
62
|
}
|
|
63
|
+
export interface FormImagePickerProps extends Omit<ImagePickerProps, "name">, FormFieldDecoratorWithGeneratedProps {
|
|
64
|
+
control: Control;
|
|
65
|
+
rules?: Exclude<RegisterOptions, "valueAsNumber" | "valueAsDate" | "setValueAs">;
|
|
66
|
+
}
|
|
58
67
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MouseEventHandler } from "react";
|
|
2
2
|
export interface CategoryProps {
|
|
3
3
|
folder: string;
|
|
4
4
|
key: string;
|
|
@@ -7,7 +7,7 @@ interface ImageCategoryProps {
|
|
|
7
7
|
category: CategoryProps;
|
|
8
8
|
images: string[];
|
|
9
9
|
highlightedImage: string | null;
|
|
10
|
-
handleImageClick:
|
|
10
|
+
handleImageClick: MouseEventHandler<HTMLSpanElement>;
|
|
11
11
|
isTypeCompact: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const ImageCategory: (props: ImageCategoryProps) => JSX.Element;
|
|
@@ -3,8 +3,9 @@ import { CategoryProps } from "./ImageCategory";
|
|
|
3
3
|
interface TargetProps {
|
|
4
4
|
target: {
|
|
5
5
|
name: string | null | undefined;
|
|
6
|
-
value: string | null | undefined
|
|
7
|
-
|
|
6
|
+
value: string | null | undefined | {
|
|
7
|
+
imageData: string;
|
|
8
|
+
};
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
export interface ImagePickerProps {
|
|
@@ -20,5 +21,8 @@ export interface ImagePickerProps {
|
|
|
20
21
|
isClearButtonVisible?: boolean;
|
|
21
22
|
localisation: Record<"openModalButton" | "selectButton" | "error" | "uploadImage" | "clearSelection" | "cancel" | "search" | "modalTitle", string>;
|
|
22
23
|
}
|
|
23
|
-
export declare const
|
|
24
|
+
export declare const ImagePickerInner: React.VFC<ImagePickerProps & {
|
|
25
|
+
innerRef?: React.Ref<HTMLButtonElement>;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const ImagePicker: React.ForwardRefExoticComponent<ImagePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
28
|
export {};
|