@zimyo/ui 1.6.3 → 1.7.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/Card/index.js +1 -1
- package/dist/DatePicker/index.esm.js +2 -2
- package/dist/DatePicker/index.js +2 -2
- package/dist/DateRangePicker/index.esm.js +1 -1
- package/dist/DateRangePicker/index.js +2 -2
- package/dist/Form/index.esm.js +1 -1
- package/dist/Form/index.js +4 -4
- package/dist/Input/index.d.ts +2 -1
- package/dist/Input/index.esm.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.esm.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/Notice/index.esm.js +1 -1
- package/dist/Notice/index.js +1 -1
- package/dist/PopupConfirm/index.d.ts +36 -0
- package/dist/PopupConfirm/index.esm.js +27 -0
- package/dist/PopupConfirm/index.js +27 -0
- package/dist/Radio/index.d.ts +24 -0
- package/dist/Radio/index.esm.js +1 -0
- package/dist/Radio/index.js +1 -0
- package/dist/Select/index.esm.js +2 -2
- package/dist/Select/index.js +2 -2
- package/dist/index.d.ts +25 -280
- package/dist/index.esm.js +1 -27
- package/dist/index.js +1 -27
- package/package.json +8 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,289 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export * from '../dist/Button/index.js';
|
|
2
|
+
export * from '../dist/PopupConfirm/index.js';
|
|
3
|
+
export * from '../dist/Modal/index.js';
|
|
4
|
+
export * from '../dist/Typography/index.js';
|
|
5
|
+
export * from '../dist/Accordion/index.js';
|
|
6
|
+
export * from '../dist/Card/index.js';
|
|
7
|
+
export * from '../dist/RadioGroup/index.js';
|
|
8
|
+
export * from '../dist/Select/index.js';
|
|
9
|
+
export * from '../dist/Switch/index.js';
|
|
10
|
+
export * from '../dist/Tabs/index.js';
|
|
11
|
+
export * from '../dist/Input/index.js';
|
|
12
|
+
export * from '../dist/Notice/index.js';
|
|
13
|
+
export * from '../dist/Badge/index.js';
|
|
14
|
+
export * from '../dist/DateRangePicker/index.js';
|
|
15
|
+
export * from '../dist/DatePicker/index.js';
|
|
16
|
+
export * from '../dist/Form/index.js';
|
|
17
|
+
export * from '../dist/Checkbox/index.js';
|
|
18
|
+
export * from '../dist/CheckboxGroup/index.js';
|
|
19
|
+
export * from '../dist/Radio/index.js';
|
|
20
|
+
export * from '../dist/Popover/index.js';
|
|
21
|
+
import React from 'react';
|
|
9
22
|
import { Theme } from '@mui/material/styles';
|
|
10
23
|
import { ClassValue } from 'clsx';
|
|
11
24
|
|
|
12
|
-
interface ButtonProps extends Omit<ButtonProps$1, 'sx'> {
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
loadingText?: string;
|
|
15
|
-
sx?: SxProps;
|
|
16
|
-
loaderSize?: number;
|
|
17
|
-
loaderPosition?: 'start' | 'end' | 'center';
|
|
18
|
-
}
|
|
19
|
-
declare const Button: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
|
|
21
|
-
interface Option {
|
|
22
|
-
label?: string;
|
|
23
|
-
value?: string | number;
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}
|
|
26
|
-
type SelectSize = "xs" | "sm" | "md" | "lg";
|
|
27
|
-
interface SelectProps<OptionType extends Option> extends Props<OptionType, boolean, GroupBase<OptionType>> {
|
|
28
|
-
label?: string;
|
|
29
|
-
error?: string;
|
|
30
|
-
isClearable?: boolean;
|
|
31
|
-
isSearchable?: boolean;
|
|
32
|
-
className?: string;
|
|
33
|
-
size?: SelectSize;
|
|
34
|
-
required?: boolean;
|
|
35
|
-
valueKey?: string;
|
|
36
|
-
labelKey?: string;
|
|
37
|
-
searchByID?: boolean;
|
|
38
|
-
value?: any;
|
|
39
|
-
floatingLabel?: boolean;
|
|
40
|
-
maxChipVisible?: number;
|
|
41
|
-
}
|
|
42
|
-
declare function Select<OptionType extends Option>({ label, error, className, size, required, valueKey, labelKey, isMulti, value, options, onChange, searchByID, floatingLabel, maxChipVisible, ...props }: SelectProps<OptionType>): react_jsx_runtime.JSX.Element;
|
|
43
|
-
|
|
44
|
-
interface AccordionProps extends Omit<AccordionProps$1, 'sx' | 'onChange' | 'expanded'> {
|
|
45
|
-
type?: 'single' | 'multiple';
|
|
46
|
-
collapsible?: boolean;
|
|
47
|
-
value?: string | string[];
|
|
48
|
-
defaultValue?: string | string[];
|
|
49
|
-
onValueChange?: (value: string | string[]) => void;
|
|
50
|
-
children: React__default.ReactNode;
|
|
51
|
-
sx?: SxProps;
|
|
52
|
-
}
|
|
53
|
-
interface AccordionItemProps extends Omit<AccordionProps$1, 'sx'> {
|
|
54
|
-
value: string;
|
|
55
|
-
children: React__default.ReactNode;
|
|
56
|
-
sx?: SxProps;
|
|
57
|
-
}
|
|
58
|
-
interface AccordionTriggerProps extends Omit<AccordionSummaryProps, 'sx'> {
|
|
59
|
-
children: React__default.ReactNode;
|
|
60
|
-
sx?: SxProps;
|
|
61
|
-
expandIcon?: React__default.ReactNode;
|
|
62
|
-
}
|
|
63
|
-
interface AccordionContentProps extends Omit<AccordionDetailsProps, 'sx'> {
|
|
64
|
-
children: React__default.ReactNode;
|
|
65
|
-
sx?: SxProps;
|
|
66
|
-
}
|
|
67
|
-
declare const Accordion: React__default.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
68
|
-
declare const AccordionItem: React__default.ForwardRefExoticComponent<Omit<AccordionItemProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
69
|
-
declare const AccordionTrigger: React__default.ForwardRefExoticComponent<Omit<AccordionTriggerProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
70
|
-
declare const AccordionContent: React__default.ForwardRefExoticComponent<Omit<AccordionContentProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
71
|
-
|
|
72
|
-
interface SwitchProps extends Omit<SwitchProps$1, 'onChange'> {
|
|
73
|
-
label?: string;
|
|
74
|
-
helperText?: string;
|
|
75
|
-
error?: boolean;
|
|
76
|
-
required?: boolean | number;
|
|
77
|
-
labelPlacement?: 'end' | 'start' | 'bottom' | 'top';
|
|
78
|
-
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
79
|
-
}
|
|
80
|
-
declare const Switch: React__default.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
81
|
-
|
|
82
|
-
interface RadioOption {
|
|
83
|
-
value: string;
|
|
84
|
-
label: string;
|
|
85
|
-
disabled?: boolean;
|
|
86
|
-
description?: string;
|
|
87
|
-
}
|
|
88
|
-
interface RadioGroupProps {
|
|
89
|
-
label?: string;
|
|
90
|
-
options: RadioOption[];
|
|
91
|
-
value?: string;
|
|
92
|
-
defaultValue?: string;
|
|
93
|
-
onChange?: (value: string) => void;
|
|
94
|
-
name?: string;
|
|
95
|
-
disabled?: boolean;
|
|
96
|
-
required?: boolean;
|
|
97
|
-
error?: boolean;
|
|
98
|
-
helperText?: string;
|
|
99
|
-
row?: boolean;
|
|
100
|
-
size?: 'small' | 'medium';
|
|
101
|
-
color?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
102
|
-
sx?: SxProps;
|
|
103
|
-
radioSx?: SxProps;
|
|
104
|
-
labelSx?: SxProps;
|
|
105
|
-
}
|
|
106
|
-
declare const RadioGroup: React__default.ForwardRefExoticComponent<RadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
107
|
-
|
|
108
|
-
interface HeadingProps extends TypographyProps {
|
|
109
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
110
|
-
}
|
|
111
|
-
declare const Heading: ({ level, ...props }: HeadingProps) => react_jsx_runtime.JSX.Element;
|
|
112
|
-
|
|
113
|
-
interface TextProps extends TypographyProps {
|
|
114
|
-
size?: 'sm' | 'md' | 'lg';
|
|
115
|
-
}
|
|
116
|
-
declare const Text: ({ size, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
117
|
-
|
|
118
|
-
declare const Lead: (props: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
119
|
-
|
|
120
|
-
declare const Muted: (props: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
121
|
-
|
|
122
|
-
declare const Strong: (props: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
123
|
-
|
|
124
|
-
declare const Caption: (props: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
125
|
-
|
|
126
|
-
declare const Blockquote: (props: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
127
|
-
|
|
128
|
-
interface CodeProps {
|
|
129
|
-
children: React.ReactNode;
|
|
130
|
-
sx?: SxProps$1;
|
|
131
|
-
}
|
|
132
|
-
declare const Code: ({ children, sx }: CodeProps) => react_jsx_runtime.JSX.Element;
|
|
133
|
-
|
|
134
|
-
interface ModalProps {
|
|
135
|
-
open: boolean;
|
|
136
|
-
onClose: () => void;
|
|
137
|
-
title?: string | any;
|
|
138
|
-
description?: string;
|
|
139
|
-
children?: React$1.ReactNode;
|
|
140
|
-
actions?: React$1.ReactNode;
|
|
141
|
-
showCloseIcon?: boolean;
|
|
142
|
-
maxWidth?: false | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
143
|
-
fullWidth?: boolean;
|
|
144
|
-
fullScreen?: boolean;
|
|
145
|
-
className?: string;
|
|
146
|
-
}
|
|
147
|
-
declare const Modal: React$1.FC<ModalProps>;
|
|
148
|
-
|
|
149
|
-
interface DrawerProps {
|
|
150
|
-
open: boolean;
|
|
151
|
-
onClose: () => void;
|
|
152
|
-
title?: string;
|
|
153
|
-
children: React$1.ReactNode;
|
|
154
|
-
footer?: React$1.ReactNode;
|
|
155
|
-
side?: "left" | "right" | "top" | "bottom";
|
|
156
|
-
className?: string;
|
|
157
|
-
showCloseIcon?: boolean;
|
|
158
|
-
withOverlay?: boolean;
|
|
159
|
-
stickyFooter?: boolean;
|
|
160
|
-
width?: number | string;
|
|
161
|
-
height?: number | string;
|
|
162
|
-
}
|
|
163
|
-
declare const Drawer: React$1.FC<DrawerProps>;
|
|
164
|
-
|
|
165
|
-
type Position = "start" | "end";
|
|
166
|
-
interface CustomColor {
|
|
167
|
-
bg?: string;
|
|
168
|
-
text?: string;
|
|
169
|
-
border?: string;
|
|
170
|
-
}
|
|
171
|
-
interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
172
|
-
label: string;
|
|
173
|
-
icon?: React__default.ReactNode;
|
|
174
|
-
iconPosition?: Position;
|
|
175
|
-
dot?: boolean;
|
|
176
|
-
dotPosition?: Position;
|
|
177
|
-
color?: CustomColor;
|
|
178
|
-
className?: string;
|
|
179
|
-
}
|
|
180
|
-
declare const badgeVariants: (props?: ({
|
|
181
|
-
variant?: "text" | "outlined" | "contained" | null | undefined;
|
|
182
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
183
|
-
type?: "default" | "success" | "error" | "info" | "warning" | null | undefined;
|
|
184
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
185
|
-
declare const Badge: ({ label, icon, iconPosition, dot, dotPosition, variant, size, type, color, className, }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
186
|
-
|
|
187
|
-
type InputSize$2 = "xs" | "sm" | "md" | "lg";
|
|
188
|
-
type InputVariant = "outlined" | "contained";
|
|
189
|
-
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
190
|
-
label?: string;
|
|
191
|
-
floatingLabel?: boolean;
|
|
192
|
-
description?: string;
|
|
193
|
-
error?: string;
|
|
194
|
-
leftIcon?: React$1.ReactNode;
|
|
195
|
-
rightIcon?: React$1.ReactNode;
|
|
196
|
-
size?: InputSize$2;
|
|
197
|
-
variant?: InputVariant;
|
|
198
|
-
allowedPattern?: "number" | "alpha" | RegExp;
|
|
199
|
-
onLeftIconClick?: () => void;
|
|
200
|
-
onRightIconClick?: () => void;
|
|
201
|
-
debounceDelay?: number;
|
|
202
|
-
onDebouncedChange?: (value: string) => void;
|
|
203
|
-
}
|
|
204
|
-
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
205
|
-
|
|
206
|
-
type NoticeVariant = 'success' | 'error' | 'warning' | 'info';
|
|
207
|
-
type NoticeSize = 'sm' | 'md' | 'lg';
|
|
208
|
-
type NoticeStyleType = 'contained' | 'outlined';
|
|
209
|
-
interface NoticeProps {
|
|
210
|
-
title?: string;
|
|
211
|
-
message: string;
|
|
212
|
-
variant?: NoticeVariant;
|
|
213
|
-
size?: NoticeSize;
|
|
214
|
-
styleType?: NoticeStyleType;
|
|
215
|
-
onClose?: () => void;
|
|
216
|
-
className?: string;
|
|
217
|
-
showCloseIcon?: boolean;
|
|
218
|
-
}
|
|
219
|
-
declare const Notice: React$1.FC<NoticeProps>;
|
|
220
|
-
|
|
221
|
-
type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
222
|
-
type DateRange = {
|
|
223
|
-
from: Date;
|
|
224
|
-
to: Date;
|
|
225
|
-
};
|
|
226
|
-
type DisabledDateObject = {
|
|
227
|
-
dayOfWeek: DayOfWeek[];
|
|
228
|
-
} | {
|
|
229
|
-
before: Date;
|
|
230
|
-
} | {
|
|
231
|
-
after: Date;
|
|
232
|
-
} | {
|
|
233
|
-
before: Date;
|
|
234
|
-
after: Date;
|
|
235
|
-
} | DateRange;
|
|
236
|
-
type DisabledProp = boolean | Date | Date[] | DisabledDateObject;
|
|
237
|
-
type InputSize$1 = "xs" | "sm" | "md" | "lg";
|
|
238
|
-
type DatePickerVariant$1 = "outlined" | "contained";
|
|
239
|
-
interface DatePickerProps {
|
|
240
|
-
label?: string;
|
|
241
|
-
value?: Date;
|
|
242
|
-
onChange?: (date: Date | undefined) => void;
|
|
243
|
-
placeholder?: string;
|
|
244
|
-
required?: boolean;
|
|
245
|
-
description?: string;
|
|
246
|
-
error?: string;
|
|
247
|
-
disabled?: boolean;
|
|
248
|
-
variant?: DatePickerVariant$1;
|
|
249
|
-
size?: InputSize$1;
|
|
250
|
-
className?: string;
|
|
251
|
-
disableRange?: DisabledProp;
|
|
252
|
-
floatingLabel?: boolean;
|
|
253
|
-
}
|
|
254
|
-
declare const DatePicker: React$1.FC<DatePickerProps>;
|
|
255
|
-
|
|
256
|
-
type InputSize = "xs" | "sm" | "md" | "lg";
|
|
257
|
-
type DatePickerVariant = "outlined" | "contained";
|
|
258
|
-
interface DateRangePickerProps {
|
|
259
|
-
label?: string;
|
|
260
|
-
value?: {
|
|
261
|
-
from: Date;
|
|
262
|
-
to: Date;
|
|
263
|
-
};
|
|
264
|
-
onChange?: (range: {
|
|
265
|
-
from: Date;
|
|
266
|
-
to: Date;
|
|
267
|
-
} | undefined) => void;
|
|
268
|
-
placeholder?: string;
|
|
269
|
-
required?: boolean;
|
|
270
|
-
description?: string;
|
|
271
|
-
error?: string;
|
|
272
|
-
disabled?: boolean;
|
|
273
|
-
variant?: DatePickerVariant;
|
|
274
|
-
size?: InputSize;
|
|
275
|
-
className?: string;
|
|
276
|
-
floatingLabel?: boolean;
|
|
277
|
-
}
|
|
278
|
-
declare const DateRangePicker: React$1.FC<DateRangePickerProps>;
|
|
279
|
-
|
|
280
25
|
interface UILibraryThemeProviderProps {
|
|
281
|
-
children:
|
|
26
|
+
children: React.ReactNode;
|
|
282
27
|
primaryColor?: string;
|
|
283
28
|
secondaryColor?: string;
|
|
284
29
|
enableCssBaseline?: boolean;
|
|
285
30
|
}
|
|
286
|
-
declare const UILibraryThemeProvider:
|
|
31
|
+
declare const UILibraryThemeProvider: React.FC<UILibraryThemeProviderProps>;
|
|
287
32
|
|
|
288
33
|
declare module '@mui/material/styles' {
|
|
289
34
|
interface Theme {
|
|
@@ -371,5 +116,5 @@ declare const designTokens: {
|
|
|
371
116
|
declare function cn(...inputs: ClassValue[]): string;
|
|
372
117
|
declare function useStableId(prefix?: string): string;
|
|
373
118
|
|
|
374
|
-
export {
|
|
375
|
-
export type {
|
|
119
|
+
export { UILibraryThemeProvider, cn, createCustomTheme, designTokens, theme, useStableId };
|
|
120
|
+
export type { ThemeConfig, UILibraryThemeProviderProps };
|