@min98/ui 1.3.11 → 1.3.19
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/lib/index.cjs +213 -213
- package/lib/index.d.cts +15 -47
- package/lib/index.d.ts +15 -47
- package/lib/index.js +16 -16
- package/package.json +2 -1
package/lib/index.d.cts
CHANGED
|
@@ -170,19 +170,14 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsibleP
|
|
|
170
170
|
|
|
171
171
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
172
172
|
children?: React$1.ReactNode;
|
|
173
|
-
} &
|
|
174
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
175
|
-
} & {
|
|
176
|
-
asChild?: boolean | undefined;
|
|
177
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
173
|
+
} & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
178
174
|
label?: string | undefined;
|
|
179
175
|
shouldFilter?: boolean | undefined;
|
|
180
|
-
filter?: ((value: string, search: string
|
|
176
|
+
filter?: ((value: string, search: string) => number) | undefined;
|
|
181
177
|
defaultValue?: string | undefined;
|
|
182
178
|
value?: string | undefined;
|
|
183
179
|
onValueChange?: ((value: string) => void) | undefined;
|
|
184
180
|
loop?: boolean | undefined;
|
|
185
|
-
disablePointerSelection?: boolean | undefined;
|
|
186
181
|
vimBindings?: boolean | undefined;
|
|
187
182
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
188
183
|
interface CommandDialogProps extends DialogProps$2 {
|
|
@@ -191,59 +186,32 @@ declare const CommandDialog: {
|
|
|
191
186
|
({ children, ...props }: CommandDialogProps): react_jsx_runtime.JSX.Element;
|
|
192
187
|
displayName: string;
|
|
193
188
|
};
|
|
194
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<
|
|
195
|
-
ref?: React$1.Ref<HTMLInputElement> | undefined;
|
|
196
|
-
} & {
|
|
197
|
-
asChild?: boolean | undefined;
|
|
198
|
-
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
189
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type"> & {
|
|
199
190
|
value?: string | undefined;
|
|
200
191
|
onValueChange?: ((search: string) => void) | undefined;
|
|
201
192
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
202
193
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
203
194
|
children?: React$1.ReactNode;
|
|
204
|
-
} &
|
|
205
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
206
|
-
} & {
|
|
207
|
-
asChild?: boolean | undefined;
|
|
208
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
209
|
-
label?: string | undefined;
|
|
210
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
196
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
212
197
|
children?: React$1.ReactNode;
|
|
213
|
-
} &
|
|
214
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
215
|
-
} & {
|
|
216
|
-
asChild?: boolean | undefined;
|
|
217
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
198
|
+
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
218
199
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
219
200
|
children?: React$1.ReactNode;
|
|
220
|
-
} & Omit<
|
|
221
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
222
|
-
} & {
|
|
223
|
-
asChild?: boolean | undefined;
|
|
224
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
201
|
+
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
|
|
225
202
|
heading?: React$1.ReactNode;
|
|
226
203
|
value?: string | undefined;
|
|
227
204
|
forceMount?: boolean | undefined;
|
|
228
205
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
229
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<
|
|
230
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
231
|
-
} & {
|
|
232
|
-
asChild?: boolean | undefined;
|
|
233
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
206
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
234
207
|
alwaysRender?: boolean | undefined;
|
|
235
208
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
236
209
|
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
237
210
|
children?: React$1.ReactNode;
|
|
238
|
-
} & Omit<
|
|
239
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
240
|
-
} & {
|
|
241
|
-
asChild?: boolean | undefined;
|
|
242
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
211
|
+
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
|
|
243
212
|
disabled?: boolean | undefined;
|
|
244
213
|
onSelect?: ((value: string) => void) | undefined;
|
|
245
214
|
value?: string | undefined;
|
|
246
|
-
keywords?: string[] | undefined;
|
|
247
215
|
forceMount?: boolean | undefined;
|
|
248
216
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
249
217
|
declare const CommandShortcut: {
|
|
@@ -753,7 +721,7 @@ interface MultipleSelectProps extends Omit<React__default.ButtonHTMLAttributes<H
|
|
|
753
721
|
onChange?: (value: (string | number | boolean)[]) => void;
|
|
754
722
|
response?: boolean;
|
|
755
723
|
}
|
|
756
|
-
declare const MultipleSelect: React__default.
|
|
724
|
+
declare const MultipleSelect: React__default.ForwardRefExoticComponent<MultipleSelectProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
757
725
|
|
|
758
726
|
interface InputFormProps extends React__default.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
759
727
|
className?: string;
|
|
@@ -769,19 +737,19 @@ interface InputFormProps extends React__default.InputHTMLAttributes<HTMLInputEle
|
|
|
769
737
|
component?: React__default.ReactElement;
|
|
770
738
|
clickIcon?: () => void;
|
|
771
739
|
}
|
|
772
|
-
declare const InputForm: React__default.
|
|
740
|
+
declare const InputForm: React__default.ForwardRefExoticComponent<InputFormProps & React__default.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
773
741
|
|
|
774
742
|
interface DateTimePickerProps {
|
|
775
|
-
|
|
776
|
-
|
|
743
|
+
value?: Date;
|
|
744
|
+
onChange: (date: Date) => void;
|
|
777
745
|
}
|
|
778
746
|
declare const DateTimePicker: {
|
|
779
|
-
({
|
|
747
|
+
({ value, onChange }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
780
748
|
displayName: string;
|
|
781
749
|
};
|
|
782
750
|
|
|
783
751
|
interface DatePickerRangeProps {
|
|
784
|
-
|
|
752
|
+
onChange: (date: DateRange) => void;
|
|
785
753
|
}
|
|
786
754
|
declare const DatePickerRange: React__default.FC<DatePickerRangeProps>;
|
|
787
755
|
|
|
@@ -883,7 +851,7 @@ interface DataTablePropsBase {
|
|
|
883
851
|
pageCount?: number;
|
|
884
852
|
manualPagination?: boolean;
|
|
885
853
|
onPagination?: (arg: any) => void;
|
|
886
|
-
|
|
854
|
+
onSelectRow?: (arg: any) => void;
|
|
887
855
|
actions?: Action[];
|
|
888
856
|
}
|
|
889
857
|
interface DataTableWithPagination extends DataTablePropsBase {
|
package/lib/index.d.ts
CHANGED
|
@@ -170,19 +170,14 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsibleP
|
|
|
170
170
|
|
|
171
171
|
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
172
172
|
children?: React$1.ReactNode;
|
|
173
|
-
} &
|
|
174
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
175
|
-
} & {
|
|
176
|
-
asChild?: boolean | undefined;
|
|
177
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
173
|
+
} & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
178
174
|
label?: string | undefined;
|
|
179
175
|
shouldFilter?: boolean | undefined;
|
|
180
|
-
filter?: ((value: string, search: string
|
|
176
|
+
filter?: ((value: string, search: string) => number) | undefined;
|
|
181
177
|
defaultValue?: string | undefined;
|
|
182
178
|
value?: string | undefined;
|
|
183
179
|
onValueChange?: ((value: string) => void) | undefined;
|
|
184
180
|
loop?: boolean | undefined;
|
|
185
|
-
disablePointerSelection?: boolean | undefined;
|
|
186
181
|
vimBindings?: boolean | undefined;
|
|
187
182
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
188
183
|
interface CommandDialogProps extends DialogProps$2 {
|
|
@@ -191,59 +186,32 @@ declare const CommandDialog: {
|
|
|
191
186
|
({ children, ...props }: CommandDialogProps): react_jsx_runtime.JSX.Element;
|
|
192
187
|
displayName: string;
|
|
193
188
|
};
|
|
194
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<
|
|
195
|
-
ref?: React$1.Ref<HTMLInputElement> | undefined;
|
|
196
|
-
} & {
|
|
197
|
-
asChild?: boolean | undefined;
|
|
198
|
-
}, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
189
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type"> & {
|
|
199
190
|
value?: string | undefined;
|
|
200
191
|
onValueChange?: ((search: string) => void) | undefined;
|
|
201
192
|
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
202
193
|
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
203
194
|
children?: React$1.ReactNode;
|
|
204
|
-
} &
|
|
205
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
206
|
-
} & {
|
|
207
|
-
asChild?: boolean | undefined;
|
|
208
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
209
|
-
label?: string | undefined;
|
|
210
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
196
|
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
212
197
|
children?: React$1.ReactNode;
|
|
213
|
-
} &
|
|
214
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
215
|
-
} & {
|
|
216
|
-
asChild?: boolean | undefined;
|
|
217
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
198
|
+
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
218
199
|
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
219
200
|
children?: React$1.ReactNode;
|
|
220
|
-
} & Omit<
|
|
221
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
222
|
-
} & {
|
|
223
|
-
asChild?: boolean | undefined;
|
|
224
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
201
|
+
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
|
|
225
202
|
heading?: React$1.ReactNode;
|
|
226
203
|
value?: string | undefined;
|
|
227
204
|
forceMount?: boolean | undefined;
|
|
228
205
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
229
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<
|
|
230
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
231
|
-
} & {
|
|
232
|
-
asChild?: boolean | undefined;
|
|
233
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
206
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
234
207
|
alwaysRender?: boolean | undefined;
|
|
235
208
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
236
209
|
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
237
210
|
children?: React$1.ReactNode;
|
|
238
|
-
} & Omit<
|
|
239
|
-
ref?: React$1.Ref<HTMLDivElement> | undefined;
|
|
240
|
-
} & {
|
|
241
|
-
asChild?: boolean | undefined;
|
|
242
|
-
}, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
211
|
+
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
|
|
243
212
|
disabled?: boolean | undefined;
|
|
244
213
|
onSelect?: ((value: string) => void) | undefined;
|
|
245
214
|
value?: string | undefined;
|
|
246
|
-
keywords?: string[] | undefined;
|
|
247
215
|
forceMount?: boolean | undefined;
|
|
248
216
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
249
217
|
declare const CommandShortcut: {
|
|
@@ -753,7 +721,7 @@ interface MultipleSelectProps extends Omit<React__default.ButtonHTMLAttributes<H
|
|
|
753
721
|
onChange?: (value: (string | number | boolean)[]) => void;
|
|
754
722
|
response?: boolean;
|
|
755
723
|
}
|
|
756
|
-
declare const MultipleSelect: React__default.
|
|
724
|
+
declare const MultipleSelect: React__default.ForwardRefExoticComponent<MultipleSelectProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
757
725
|
|
|
758
726
|
interface InputFormProps extends React__default.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
759
727
|
className?: string;
|
|
@@ -769,19 +737,19 @@ interface InputFormProps extends React__default.InputHTMLAttributes<HTMLInputEle
|
|
|
769
737
|
component?: React__default.ReactElement;
|
|
770
738
|
clickIcon?: () => void;
|
|
771
739
|
}
|
|
772
|
-
declare const InputForm: React__default.
|
|
740
|
+
declare const InputForm: React__default.ForwardRefExoticComponent<InputFormProps & React__default.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
773
741
|
|
|
774
742
|
interface DateTimePickerProps {
|
|
775
|
-
|
|
776
|
-
|
|
743
|
+
value?: Date;
|
|
744
|
+
onChange: (date: Date) => void;
|
|
777
745
|
}
|
|
778
746
|
declare const DateTimePicker: {
|
|
779
|
-
({
|
|
747
|
+
({ value, onChange }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
780
748
|
displayName: string;
|
|
781
749
|
};
|
|
782
750
|
|
|
783
751
|
interface DatePickerRangeProps {
|
|
784
|
-
|
|
752
|
+
onChange: (date: DateRange) => void;
|
|
785
753
|
}
|
|
786
754
|
declare const DatePickerRange: React__default.FC<DatePickerRangeProps>;
|
|
787
755
|
|
|
@@ -883,7 +851,7 @@ interface DataTablePropsBase {
|
|
|
883
851
|
pageCount?: number;
|
|
884
852
|
manualPagination?: boolean;
|
|
885
853
|
onPagination?: (arg: any) => void;
|
|
886
|
-
|
|
854
|
+
onSelectRow?: (arg: any) => void;
|
|
887
855
|
actions?: Action[];
|
|
888
856
|
}
|
|
889
857
|
interface DataTableWithPagination extends DataTablePropsBase {
|