@vlrc-fe/components 1.0.0 → 1.0.2
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/ConfirmModal.d.ts +16 -0
- package/dist/ConfirmModal.d.ts.map +1 -0
- package/dist/DataTable/DataTable.d.ts +7 -0
- package/dist/DataTable/DataTable.d.ts.map +1 -0
- package/dist/DataTable/components/DataTablePagination.d.ts +9 -0
- package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -0
- package/dist/DataTable/components/DataTableRowActions.d.ts +6 -0
- package/dist/DataTable/components/DataTableRowActions.d.ts.map +1 -0
- package/dist/DataTable/components/DataTableTable.d.ts +11 -0
- package/dist/DataTable/components/DataTableTable.d.ts.map +1 -0
- package/dist/DataTable/components/DataTableToolbar.d.ts +9 -0
- package/dist/DataTable/components/DataTableToolbar.d.ts.map +1 -0
- package/dist/DataTable/components/DataTableViewOptions.d.ts +6 -0
- package/dist/DataTable/components/DataTableViewOptions.d.ts.map +1 -0
- package/dist/DataTable/index.d.ts +5 -0
- package/dist/DataTable/index.d.ts.map +1 -0
- package/dist/DataTable/render/createColumns.d.ts +6 -0
- package/dist/DataTable/render/createColumns.d.ts.map +1 -0
- package/dist/DataTable/render/defaults.d.ts +10 -0
- package/dist/DataTable/render/defaults.d.ts.map +1 -0
- package/dist/DataTable/types.d.ts +71 -0
- package/dist/DataTable/types.d.ts.map +1 -0
- package/dist/Form/Form.d.ts +14 -0
- package/dist/Form/Form.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/FormDatePicker.d.ts +5 -0
- package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +21 -0
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +23 -0
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/TimeInput.d.ts +11 -0
- package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/TimePicker.d.ts +10 -0
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/index.d.ts +4 -0
- package/dist/Form/FormDatePicker/index.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/types.d.ts +58 -0
- package/dist/Form/FormDatePicker/types.d.ts.map +1 -0
- package/dist/Form/FormDatePicker/useFormDatePicker.d.ts +18 -0
- package/dist/Form/FormDatePicker/useFormDatePicker.d.ts.map +1 -0
- package/dist/Form/FormFileUpload/FileUpload.d.ts +115 -0
- package/dist/Form/FormFileUpload/FileUpload.d.ts.map +1 -0
- package/dist/Form/FormFileUpload/index.d.ts +7 -0
- package/dist/Form/FormFileUpload/index.d.ts.map +1 -0
- package/dist/Form/FormMultiSelect/FormMultiSelect.d.ts +5 -0
- package/dist/Form/FormMultiSelect/FormMultiSelect.d.ts.map +1 -0
- package/dist/Form/FormMultiSelect/index.d.ts +2 -0
- package/dist/Form/FormMultiSelect/index.d.ts.map +1 -0
- package/dist/Form/FormNumberInput/FormNumberInput.d.ts +4 -0
- package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -0
- package/dist/Form/FormNumberInput/StepperControls.d.ts +9 -0
- package/dist/Form/FormNumberInput/StepperControls.d.ts.map +1 -0
- package/dist/Form/FormNumberInput/index.d.ts +4 -0
- package/dist/Form/FormNumberInput/index.d.ts.map +1 -0
- package/dist/Form/FormNumberInput/types.d.ts +20 -0
- package/dist/Form/FormNumberInput/types.d.ts.map +1 -0
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +34 -0
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -0
- package/dist/Form/FormRadioGroup/FormRadio.d.ts +4 -0
- package/dist/Form/FormRadioGroup/FormRadio.d.ts.map +1 -0
- package/dist/Form/FormRadioGroup/index.d.ts +4 -0
- package/dist/Form/FormRadioGroup/index.d.ts.map +1 -0
- package/dist/Form/FormRadioGroup/types.d.ts +25 -0
- package/dist/Form/FormRadioGroup/types.d.ts.map +1 -0
- package/dist/Form/FormRadioGroup/useFormRadio.d.ts +12 -0
- package/dist/Form/FormRadioGroup/useFormRadio.d.ts.map +1 -0
- package/dist/Form/FormSelect/FormSelect.d.ts +7 -0
- package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -0
- package/dist/Form/FormSelect/index.d.ts +4 -0
- package/dist/Form/FormSelect/index.d.ts.map +1 -0
- package/dist/Form/FormSelect/types.d.ts +43 -0
- package/dist/Form/FormSelect/types.d.ts.map +1 -0
- package/dist/Form/FormSelect/useFormSelect.d.ts +16 -0
- package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -0
- package/dist/Form/index.d.ts +8 -0
- package/dist/Form/index.d.ts.map +1 -0
- package/dist/Icons/Icons.d.ts +114 -0
- package/dist/Icons/Icons.d.ts.map +1 -0
- package/dist/Icons/index.d.ts +2 -0
- package/dist/Icons/index.d.ts.map +1 -0
- package/dist/Modal.d.ts +16 -0
- package/dist/Modal.d.ts.map +1 -0
- package/dist/MultiSelect/MultiSelect.d.ts +31 -0
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/dist/MultiSelect/index.d.ts +2 -0
- package/dist/MultiSelect/index.d.ts.map +1 -0
- package/dist/MultiSelect/renderers.d.ts +45 -0
- package/dist/MultiSelect/renderers.d.ts.map +1 -0
- package/dist/MultiSelect/type.d.ts +228 -0
- package/dist/MultiSelect/type.d.ts.map +1 -0
- package/dist/MultiSelect/useMultiSelect.d.ts +52 -0
- package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -0
- package/dist/MultiSelect/utils.d.ts +25 -0
- package/dist/MultiSelect/utils.d.ts.map +1 -0
- package/dist/Select/BaseSelect.d.ts +5 -0
- package/dist/Select/BaseSelect.d.ts.map +1 -0
- package/dist/Select/MultiSelectTags.d.ts +13 -0
- package/dist/Select/MultiSelectTags.d.ts.map +1 -0
- package/dist/Select/index.d.ts +3 -0
- package/dist/Select/index.d.ts.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index41.js +90 -79
- package/dist/index42.cjs +1 -1
- package/dist/lazyLoad.d.ts +5 -0
- package/dist/lazyLoad.d.ts.map +1 -0
- package/dist/ui/accordion.d.ts +8 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/calendar.d.ts +9 -0
- package/dist/ui/calendar.d.ts.map +1 -0
- package/dist/ui/card.d.ts +14 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/checkbox.d.ts +5 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/command.d.ts +19 -0
- package/dist/ui/command.d.ts.map +1 -0
- package/dist/ui/dialog.d.ts +16 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +26 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/field.d.ts +26 -0
- package/dist/ui/field.d.ts.map +1 -0
- package/dist/ui/file-upload.d.ts +88 -0
- package/dist/ui/file-upload.d.ts.map +1 -0
- package/dist/ui/form.d.ts +25 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/index.d.ts +27 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/input.d.ts +4 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/item.d.ts +24 -0
- package/dist/ui/item.d.ts.map +1 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/popover.d.ts +8 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/progress.d.ts +7 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/radio-group.d.ts +6 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/scroll-area.d.ts +6 -0
- package/dist/ui/scroll-area.d.ts.map +1 -0
- package/dist/ui/select.d.ts +16 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/separator.d.ts +5 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/sonner.d.ts +4 -0
- package/dist/ui/sonner.d.ts.map +1 -0
- package/dist/ui/spinner.d.ts +3 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/table.d.ts +11 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/textarea.d.ts +4 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/tooltip.d.ts +8 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface StepperControlsProps {
|
|
2
|
+
onIncrement: () => void;
|
|
3
|
+
onDecrement: () => void;
|
|
4
|
+
disableIncrement: boolean;
|
|
5
|
+
disableDecrement: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function StepperControls({ onIncrement, onDecrement, disableIncrement, disableDecrement }: StepperControlsProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=StepperControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepperControls.d.ts","sourceRoot":"","sources":["../../../src/Form/FormNumberInput/StepperControls.tsx"],"names":[],"mappings":"AAKA,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EACjB,EAAE,oBAAoB,+BAyBtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Form/FormNumberInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
+
import type { NumericFormatProps } from 'react-number-format';
|
|
3
|
+
import type { FormControlProps } from '../types';
|
|
4
|
+
export type FormNumberInputProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TTransformedValues = TFieldValues> = FormControlProps<TFieldValues, TName, TTransformedValues> & Omit<NumericFormatProps<HTMLInputElement>, 'value' | 'onValueChange' | 'name' | 'onChange'> & {
|
|
5
|
+
stepper?: number;
|
|
6
|
+
thousandSeparator?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
minValue?: number;
|
|
11
|
+
maxValue?: number;
|
|
12
|
+
fixedDecimalScale?: boolean;
|
|
13
|
+
decimalScale?: number;
|
|
14
|
+
inputClassName?: string;
|
|
15
|
+
onChange?: (value: number | undefined) => void;
|
|
16
|
+
rules?: ControllerProps<TFieldValues, TName, TTransformedValues>['rules'];
|
|
17
|
+
horizontal?: boolean;
|
|
18
|
+
controlFirst?: boolean;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Form/FormNumberInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM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type { NumericFormatProps } from 'react-number-format';
|
|
4
|
+
type PassthroughProps = Partial<Omit<NumericFormatProps<HTMLInputElement>, 'value' | 'onValueChange' | 'placeholder' | 'max' | 'min' | 'name' | 'onChange'>>;
|
|
5
|
+
type HandlerArgs<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = {
|
|
6
|
+
currentValue: number | undefined;
|
|
7
|
+
field: ControllerRenderProps<TFieldValues, TName>;
|
|
8
|
+
};
|
|
9
|
+
type UseFormNumberInputParams<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = {
|
|
10
|
+
rules?: RegisterOptions<TFieldValues, TName>;
|
|
11
|
+
inputClassName?: string;
|
|
12
|
+
stepper: number;
|
|
13
|
+
min: number;
|
|
14
|
+
max: number;
|
|
15
|
+
onChange?: (value: number | undefined) => void;
|
|
16
|
+
passthroughProps: PassthroughProps;
|
|
17
|
+
};
|
|
18
|
+
export declare function useFormNumberInput<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ rules, inputClassName, stepper, min, max, onChange, passthroughProps }: UseFormNumberInputParams<TFieldValues, TName>): {
|
|
19
|
+
isRequired: boolean;
|
|
20
|
+
enhancedRules: RegisterOptions<TFieldValues, TName> | undefined;
|
|
21
|
+
numericClass: string;
|
|
22
|
+
getHandlers: (args: HandlerArgs<TFieldValues, TName>) => {
|
|
23
|
+
handleIncrement: () => void;
|
|
24
|
+
handleDecrement: () => void;
|
|
25
|
+
handleKeyDown: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
26
|
+
handleBlur: () => void;
|
|
27
|
+
numericOnValueChange: (values: {
|
|
28
|
+
value: string;
|
|
29
|
+
floatValue: number | undefined;
|
|
30
|
+
}) => void;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=useFormNumberInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormNumberInput.d.ts","sourceRoot":"","sources":["../../../src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,EAAE,wBAAwB,CAAC,YAAY,EAAE,KAAK,CAAC,GAAG;IACjD,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,GAAG,SAAS,CAAC;IAChE,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,KAAK;QACvD,eAAe,EAAE,MAAM,IAAI,CAAC;QAC5B,eAAe,EAAE,MAAM,IAAI,CAAC;QAC5B,aAAa,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;QAC5D,UAAU,EAAE,MAAM,IAAI,CAAC;QACvB,oBAAoB,EAAE,CAAC,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,KAAK,IAAI,CAAC;KAC3F,CAAC;CACH,CAyFA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FieldValues } from 'react-hook-form';
|
|
2
|
+
import type { FormRadioProps } from './types';
|
|
3
|
+
export declare function FormRadio<TFieldValues extends FieldValues>({ name, control, label, size, options, onChange, value, rules, disabled, optionType: _optionType, buttonStyle: _buttonStyle, autoHeightMax, showEmpty, hideErrorMessage, className }: FormRadioProps<TFieldValues>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=FormRadio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormRadio.d.ts","sourceRoot":"","sources":["../../../src/Form/FormRadioGroup/FormRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAK9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,wBAAgB,SAAS,CAAC,YAAY,SAAS,WAAW,EAAE,EAC1D,IAAI,EACJ,OAAO,EACP,KAAU,EACV,IAAe,EACf,OAAY,EACZ,QAAQ,EACR,KAAK,EACL,KAAU,EACV,QAAgB,EAChB,UAAU,EAAE,WAAuB,EACnC,WAAW,EAAE,YAAY,EACzB,aAAa,EACb,SAAiB,EACjB,gBAAwB,EACxB,SAAS,EACV,EAAE,cAAc,CAAC,YAAY,CAAC,+BAqD9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Form/FormRadioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Control, FieldPath, FieldPathValue, FieldValues, RegisterOptions } from 'react-hook-form';
|
|
2
|
+
export type RadioSize = 'large' | 'middle' | 'small';
|
|
3
|
+
export type RadioOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface FormRadioProps<TFieldValues extends FieldValues> {
|
|
9
|
+
name: FieldPath<TFieldValues>;
|
|
10
|
+
control: Control<TFieldValues>;
|
|
11
|
+
label?: string;
|
|
12
|
+
size?: RadioSize;
|
|
13
|
+
options?: RadioOption[];
|
|
14
|
+
onChange?: (value?: string) => void;
|
|
15
|
+
value?: FieldPathValue<TFieldValues, FieldPath<TFieldValues>>;
|
|
16
|
+
rules?: RegisterOptions<TFieldValues, FieldPath<TFieldValues>>;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
optionType?: 'default' | 'button';
|
|
19
|
+
buttonStyle?: 'outline' | 'solid';
|
|
20
|
+
autoHeightMax?: number;
|
|
21
|
+
showEmpty?: boolean;
|
|
22
|
+
hideErrorMessage?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Form/FormRadioGroup/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,cAAc,CAAC,YAAY,SAAS,WAAW;IAC9D,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IAC9D,KAAK,CAAC,EAAE,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC,WAAW,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FieldPath, FieldValues, RegisterOptions } from 'react-hook-form';
|
|
2
|
+
import type { FormRadioProps, RadioSize } from './types';
|
|
3
|
+
export type UseFormRadioParams<TFieldValues extends FieldValues> = Pick<FormRadioProps<TFieldValues>, 'rules' | 'value' | 'onChange' | 'showEmpty'>;
|
|
4
|
+
export declare function useFormRadio<TFieldValues extends FieldValues>(params: UseFormRadioParams<TFieldValues>): {
|
|
5
|
+
isRequired: boolean;
|
|
6
|
+
processedRules: RegisterOptions<TFieldValues, FieldPath<TFieldValues>>;
|
|
7
|
+
parseValue: (fieldValue: unknown) => string;
|
|
8
|
+
emitChange: (fieldOnChange: (value: unknown) => void, newValue: string) => void;
|
|
9
|
+
sizeClasses: Record<RadioSize, string>;
|
|
10
|
+
};
|
|
11
|
+
export declare const radioSizeClasses: Record<RadioSize, string>;
|
|
12
|
+
//# sourceMappingURL=useFormRadio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormRadio.d.ts","sourceRoot":"","sources":["../../../src/Form/FormRadioGroup/useFormRadio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,MAAM,kBAAkB,CAAC,YAAY,SAAS,WAAW,IAAI,IAAI,CACrE,cAAc,CAAC,YAAY,CAAC,EAC5B,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAC7C,CAAC;AAEF,wBAAgB,YAAY,CAAC,YAAY,SAAS,WAAW,EAC3D,MAAM,EAAE,kBAAkB,CAAC,YAAY,CAAC,GACvC;IACD,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IACvE,UAAU,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAChF,WAAW,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;CACxC,CAwBA;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAItD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FieldValues } from 'react-hook-form';
|
|
3
|
+
import type { FormMultiSelectProps, FormSingleSelectProps } from './types';
|
|
4
|
+
import type { SelectValue } from '../../Select';
|
|
5
|
+
export declare function FormSelect<TFieldValues extends FieldValues, T extends SelectValue = SelectValue>(props: FormMultiSelectProps<TFieldValues, T>): React.ReactElement;
|
|
6
|
+
export declare function FormSelect<TFieldValues extends FieldValues, T extends SelectValue = SelectValue>(props: FormSingleSelectProps<TFieldValues, T>): React.ReactElement;
|
|
7
|
+
//# sourceMappingURL=FormSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormSelect.d.ts","sourceRoot":"","sources":["../../../src/Form/FormSelect/FormSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,wBAAgB,UAAU,CAAC,YAAY,SAAS,WAAW,EAAE,CAAC,SAAS,WAAW,GAAG,WAAW,EAC9F,KAAK,EAAE,oBAAoB,CAAC,YAAY,EAAE,CAAC,CAAC,GAC3C,KAAK,CAAC,YAAY,CAAC;AACtB,wBAAgB,UAAU,CAAC,YAAY,SAAS,WAAW,EAAE,CAAC,SAAS,WAAW,GAAG,WAAW,EAC9F,KAAK,EAAE,qBAAqB,CAAC,YAAY,EAAE,CAAC,CAAC,GAC5C,KAAK,CAAC,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Form/FormSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Control, FieldPath, FieldValues, RegisterOptions } from 'react-hook-form';
|
|
2
|
+
import type { BaseSelectCommonProps, SelectValue } from '../../Select/type';
|
|
3
|
+
/**
|
|
4
|
+
* Common props for form select
|
|
5
|
+
*/
|
|
6
|
+
export interface FormSelectCommonProps<TFieldValues extends FieldValues, T extends SelectValue = SelectValue> extends BaseSelectCommonProps<T> {
|
|
7
|
+
control: Control<TFieldValues>;
|
|
8
|
+
name: FieldPath<TFieldValues>;
|
|
9
|
+
label?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
rules?: RegisterOptions<TFieldValues, FieldPath<TFieldValues>>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Props for multi-select form field
|
|
15
|
+
*/
|
|
16
|
+
export interface FormMultiSelectProps<TFieldValues extends FieldValues, T extends SelectValue = SelectValue> extends FormSelectCommonProps<TFieldValues, T> {
|
|
17
|
+
isMulti: true;
|
|
18
|
+
onChange?: (value: T[]) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Props for single-select form field
|
|
22
|
+
*/
|
|
23
|
+
export interface FormSingleSelectProps<TFieldValues extends FieldValues, T extends SelectValue = SelectValue> extends FormSelectCommonProps<TFieldValues, T> {
|
|
24
|
+
isMulti?: false;
|
|
25
|
+
onChange?: (value: T | null) => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Union type for FormSelect props
|
|
29
|
+
*/
|
|
30
|
+
export type FormSelectProps<TFieldValues extends FieldValues, T extends SelectValue = SelectValue> = FormMultiSelectProps<TFieldValues, T> | FormSingleSelectProps<TFieldValues, T>;
|
|
31
|
+
/**
|
|
32
|
+
* Props for wrapper components (omitting options since they fetch their own data)
|
|
33
|
+
*/
|
|
34
|
+
export type WrapperSelectProps<TFieldValues extends FieldValues, T extends SelectValue = SelectValue> = Omit<FormSelectProps<TFieldValues, T>, 'options' | 'onSearchTextChange'>;
|
|
35
|
+
/**
|
|
36
|
+
* Utility type to extract single select props for wrappers
|
|
37
|
+
*/
|
|
38
|
+
export type WrapperSingleSelectProps<TFieldValues extends FieldValues, T extends SelectValue = SelectValue> = Omit<FormSingleSelectProps<TFieldValues, T>, 'options' | 'onSearchTextChange'>;
|
|
39
|
+
/**
|
|
40
|
+
* Utility type to extract multi select props for wrappers
|
|
41
|
+
*/
|
|
42
|
+
export type WrapperMultiSelectProps<TFieldValues extends FieldValues, T extends SelectValue = SelectValue> = Omit<FormMultiSelectProps<TFieldValues, T>, 'options' | 'onSearchTextChange'>;
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Form/FormSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACxF,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,qBAAqB,CACpC,YAAY,SAAS,W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G,oBAAoB,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAClC,YAAY,SAAS,WAAW,EAChC,CAAC,SAAS,WAAW,GAAG,WAAW,IACjC,IAAI,CAAC,qBAAqB,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,SAAS,GAAG,oBAAoB,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,MAAM,uBAAuB,CACjC,YAAY,SAAS,WAAW,EAChC,CAAC,SAAS,WAAW,GAAG,WAAW,IACjC,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,SAAS,GAAG,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ControllerRenderProps, FieldPath, FieldValues, RegisterOptions } from 'react-hook-form';
|
|
2
|
+
import type { FormSelectProps } from './types';
|
|
3
|
+
import type { SelectValue } from '../../Select';
|
|
4
|
+
import type { BaseSelectPassThroughProps } from '../../Select/type';
|
|
5
|
+
export declare function useFormSelect<TFieldValues extends FieldValues, T extends SelectValue = SelectValue>(props: FormSelectProps<TFieldValues, T>): {
|
|
6
|
+
readonly isRequired: boolean;
|
|
7
|
+
readonly description: string | undefined;
|
|
8
|
+
readonly enhancedRules: RegisterOptions<TFieldValues, FieldPath<TFieldValues>> | undefined;
|
|
9
|
+
readonly baseSelectProps: BaseSelectPassThroughProps<T>;
|
|
10
|
+
readonly isMulti: boolean;
|
|
11
|
+
readonly createChangeHandlers: (field: ControllerRenderProps<TFieldValues, FieldPath<TFieldValues>>) => {
|
|
12
|
+
onChangeMulti: (value: T[]) => void;
|
|
13
|
+
onChangeSingle: (value: T | null) => void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useFormSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormSelect.d.ts","sourceRoot":"","sources":["../../../src/Form/FormSelect/useFormSelect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEtG,OAAO,KAAK,EAAwB,eAAe,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAQpE,wBAAgB,aAAa,CAC3B,YAAY,SAAS,WAAW,EAChC,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,KAAK,EAAE,eAAe,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG;IAC1C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,aAAa,EAAE,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,GAAG,SAAS,CAAC;IAC3F,QAAQ,CAAC,eAAe,EAAE,0BAA0B,CAAC,CAAC,CAAC,CAAC;IACxD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,oBAAoB,EAAE,CAC7B,KAAK,EAAE,qBAAqB,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,KAChE;QACH,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;QACpC,cAAc,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;KAC3C,CAAC;CACH,CAsFA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { FormInput, FormCheckbox, FormSimpleSelect, FormTextarea } from './Form';
|
|
2
|
+
export { default as FormMultiSelect } from './FormMultiSelect';
|
|
3
|
+
export { default as FormDatePicker } from './FormDatePicker';
|
|
4
|
+
export { default as FormNumberInput } from './FormNumberInput';
|
|
5
|
+
export { default as FormSelect } from './FormSelect';
|
|
6
|
+
export { default as FormRadioGroup } from './FormRadioGroup';
|
|
7
|
+
export { default as FormFileUpload } from './FormFileUpload';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { type LucideProps } from 'lucide-react';
|
|
2
|
+
export declare const Icons: {
|
|
3
|
+
MoonIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
4
|
+
SunIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
5
|
+
Award: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
6
|
+
Cat: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
7
|
+
Dog: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
8
|
+
Fish: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
9
|
+
Rabbit: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
10
|
+
Turtle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
Code: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
12
|
+
Globe: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
13
|
+
Users: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
14
|
+
Star: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
15
|
+
Heart: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
16
|
+
Zap: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
17
|
+
Cpu: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18
|
+
Database: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
19
|
+
Monitor: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
20
|
+
Smartphone: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
21
|
+
Wand: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
22
|
+
WandSparkles: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
23
|
+
Calendar: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
24
|
+
CalendarIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
25
|
+
HardDrive: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
26
|
+
TrendingUp: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
27
|
+
DollarSign: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
28
|
+
Target: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
29
|
+
Shield: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
30
|
+
Mail: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
31
|
+
PieChart: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
32
|
+
Activity: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
33
|
+
Search: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
34
|
+
SearchIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
35
|
+
MessageCircle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
36
|
+
Bot: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
37
|
+
MoreHorizontal: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
38
|
+
Maximize: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
39
|
+
Minimize: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
40
|
+
X: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
41
|
+
XIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
42
|
+
XCircle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
43
|
+
EyeOff: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
44
|
+
Eye: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
45
|
+
Copy: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
46
|
+
Check: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
47
|
+
CheckIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
48
|
+
Clock: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
49
|
+
ChevronUp: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
50
|
+
ChevronDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
51
|
+
ChevronDownIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
52
|
+
ChevronRight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
53
|
+
ChevronLeft: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
54
|
+
Sparkles: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
55
|
+
WandSparklesIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
56
|
+
Play: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
57
|
+
Headphones: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
58
|
+
Brain: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
59
|
+
PenTool: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
60
|
+
BookOpen: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
61
|
+
BarChart3: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
62
|
+
CheckCircle2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
63
|
+
Moon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
64
|
+
Sun: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
65
|
+
CloudUpload: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
66
|
+
LoaderCircleIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
67
|
+
LoaderIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
68
|
+
LoaderPinwheelIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
69
|
+
FileArchiveIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
70
|
+
FileAudioIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
71
|
+
FileCodeIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
72
|
+
FileCogIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
73
|
+
FileIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
74
|
+
FileTextIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
75
|
+
FileVideoIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
76
|
+
Trophy: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
77
|
+
Flame: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
78
|
+
Undo2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
79
|
+
Volume2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
80
|
+
ArrowRight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
81
|
+
ArrowLeft: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
82
|
+
Plus: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
83
|
+
PlusCircle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
84
|
+
Info: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
85
|
+
Square: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
86
|
+
Mic: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
87
|
+
MessageSquare: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
88
|
+
Phone: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
89
|
+
PhoneOff: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
90
|
+
Circle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
91
|
+
Send: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
92
|
+
Loader2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
93
|
+
History: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
94
|
+
Languages: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
95
|
+
Lightbulb: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
96
|
+
FileQuestion: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
97
|
+
Home: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
98
|
+
AlertCircle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
99
|
+
RefreshCcw: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
100
|
+
Settings: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
101
|
+
Camera: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
102
|
+
Folder: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
103
|
+
Image: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
104
|
+
Video: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
105
|
+
Upload: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
106
|
+
UploadCloud: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
107
|
+
Save: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
108
|
+
Palette: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
109
|
+
Type: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
110
|
+
Edit: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
111
|
+
GitHub: ({ ...props }: LucideProps) => import("react").JSX.Element;
|
|
112
|
+
};
|
|
113
|
+
export type IconNames = keyof typeof Icons;
|
|
114
|
+
//# sourceMappingURL=Icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../src/Icons/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EA2GjB,MAAM,cAAc,CAAC;AAGtB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA6GO,WAAW;CAenC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/Modal.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
width?: number | string;
|
|
10
|
+
confirmText?: string;
|
|
11
|
+
cancelText?: string;
|
|
12
|
+
onConfirm?: () => void;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function Modal({ open, title, description, children, footer, width, confirmText, cancelText, isLoading, onCancel, onConfirm }: ModalProps): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../src/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,KAAK,CAAC,EACpB,IAAW,EACX,KAAK,EACL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,KAAW,EACX,WAAwB,EACxB,UAAkB,EAClB,SAAiB,EACjB,QAAQ,EACR,SAAS,EACV,EAAE,UAAU,+BAkCZ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type FunctionComponent, type Ref } from 'react';
|
|
2
|
+
import { type MultiSelectRef } from './type';
|
|
3
|
+
declare const MultiSelect: FunctionComponent<{
|
|
4
|
+
options: any[];
|
|
5
|
+
onValueChange: (value: any[]) => void;
|
|
6
|
+
variant?: string;
|
|
7
|
+
defaultValue?: any[];
|
|
8
|
+
value?: any[];
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
animation?: number;
|
|
11
|
+
animationConfig?: any;
|
|
12
|
+
maxCount?: number;
|
|
13
|
+
modalPopover?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
hideSelectAll?: boolean;
|
|
16
|
+
searchable?: boolean;
|
|
17
|
+
emptyIndicator?: React.ReactNode;
|
|
18
|
+
autoSize?: boolean;
|
|
19
|
+
singleLine?: boolean;
|
|
20
|
+
popoverClassName?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
responsive?: any;
|
|
23
|
+
minWidth?: string;
|
|
24
|
+
maxWidth?: string;
|
|
25
|
+
deduplicateOptions?: boolean;
|
|
26
|
+
resetOnDefaultValueChange?: boolean;
|
|
27
|
+
closeOnSelect?: boolean;
|
|
28
|
+
ref?: Ref<MultiSelectRef>;
|
|
29
|
+
}>;
|
|
30
|
+
export default MultiSelect;
|
|
31
|
+
//# sourceMappingURL=MultiSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../src/MultiSelect/MultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAQzD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C,QAAA,MAAM,WAAW,EAAE,iBAAiB,CAAC;IACnC,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B,CAgMA,CAAC;AAIF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MultiSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type Dispatch, type KeyboardEvent, type ReactNode, type SetStateAction } from 'react';
|
|
2
|
+
import { type AnimationConfig, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps } from './type';
|
|
3
|
+
import { type ResponsiveSettings, type ScreenSize } from './utils';
|
|
4
|
+
export declare const LiveRegion: ({ politeMessage, assertiveMessage }: {
|
|
5
|
+
politeMessage: string;
|
|
6
|
+
assertiveMessage: string;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
|
+
interface SelectedValuesContentProps {
|
|
9
|
+
selectedValues: string[];
|
|
10
|
+
responsiveSettings: ResponsiveSettings;
|
|
11
|
+
screenSize: ScreenSize;
|
|
12
|
+
singleLine: boolean;
|
|
13
|
+
animation: number;
|
|
14
|
+
animationConfig?: AnimationConfig;
|
|
15
|
+
badgeAnimationClass: string;
|
|
16
|
+
variant: MultiSelectProps['variant'];
|
|
17
|
+
getOptionByValue: (value: string) => MultiSelectOption | undefined;
|
|
18
|
+
toggleOption: (value: string) => void;
|
|
19
|
+
clearExtraOptions: () => void;
|
|
20
|
+
handleClear: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const SelectedValuesContent: ({ selectedValues, responsiveSettings, screenSize, singleLine, animation, animationConfig, badgeAnimationClass, variant, getOptionByValue, toggleOption, clearExtraOptions, handleClear }: SelectedValuesContentProps) => import("react").JSX.Element;
|
|
23
|
+
export declare const PlaceholderContent: ({ placeholder }: {
|
|
24
|
+
placeholder: string;
|
|
25
|
+
}) => import("react").JSX.Element;
|
|
26
|
+
interface OptionsContentProps {
|
|
27
|
+
filteredOptions: MultiSelectOption[] | MultiSelectGroup[];
|
|
28
|
+
hideSelectAll: boolean;
|
|
29
|
+
searchValue: string;
|
|
30
|
+
searchable: boolean;
|
|
31
|
+
selectedValues: string[];
|
|
32
|
+
getAllOptions: () => MultiSelectOption[];
|
|
33
|
+
toggleAll: () => void;
|
|
34
|
+
toggleOption: (value: string) => void;
|
|
35
|
+
handleClear: () => void;
|
|
36
|
+
setIsPopoverOpen: Dispatch<SetStateAction<boolean>>;
|
|
37
|
+
handleInputKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
38
|
+
setSearchValue: Dispatch<SetStateAction<string>>;
|
|
39
|
+
multiSelectId: string;
|
|
40
|
+
emptyIndicator?: ReactNode;
|
|
41
|
+
screenSize: ScreenSize;
|
|
42
|
+
}
|
|
43
|
+
export declare const OptionsContent: ({ filteredOptions, hideSelectAll, searchValue, searchable, selectedValues, getAllOptions, toggleAll, toggleOption, handleClear, setIsPopoverOpen, handleInputKeyDown, setSearchValue, multiSelectId, emptyIndicator, screenSize }: OptionsContentProps) => import("react").JSX.Element;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=renderers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderers.d.ts","sourceRoot":"","sources":["../../src/MultiSelect/renderers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAgBf,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAoB,KAAK,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAErF,eAAO,MAAM,UAAU,GAAI,qCAGxB;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,gCASA,CAAC;AAEF,UAAU,0BAA0B;IAClC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACrC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,iBAAiB,GAAG,SAAS,CAAC;IACnE,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,GAAI,0LAanC,0BAA0B,gC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