@bigbinary/neetoui 3.7.0-beta.13 → 3.7.0-beta.16
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/CHANGELOG.md +8 -0
- package/formik.js +4 -14
- package/index.css +1 -1
- package/index.d.ts +50 -21
- package/index.js +4 -14
- package/layouts.d.ts +2 -1
- package/layouts.js +5 -5
- package/molecules.js +4 -4
- package/package.json +25 -26
- package/index.esm.js +0 -34
package/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export interface AccordionItemProps {
|
|
|
22
22
|
|
|
23
23
|
export interface ColorPickerProps {
|
|
24
24
|
color: string;
|
|
25
|
+
size: "small" | "medium" | "large";
|
|
25
26
|
onChange: (color: string) => void;
|
|
26
27
|
colorPaletteProps?: {
|
|
27
28
|
color: { from: string; to: string };
|
|
@@ -45,9 +46,9 @@ interface PopupContentProps {
|
|
|
45
46
|
className?: string;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
export type ModalProps = PopupProps & { size?: "
|
|
49
|
+
export type ModalProps = PopupProps & { size?: "small" | "medium" | "large" };
|
|
49
50
|
|
|
50
|
-
export type PaneProps = PopupProps & { size?: "
|
|
51
|
+
export type PaneProps = PopupProps & { size?: "small" | "large" };
|
|
51
52
|
|
|
52
53
|
export interface RadioProps {
|
|
53
54
|
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -66,7 +67,7 @@ export type RadioItemProps = { label: string } & React.DetailedHTMLProps<
|
|
|
66
67
|
>;
|
|
67
68
|
|
|
68
69
|
export type TabProps = {
|
|
69
|
-
size?: "large" | "
|
|
70
|
+
size?: "large" | "small";
|
|
70
71
|
noUnderline?: boolean;
|
|
71
72
|
className?: string;
|
|
72
73
|
} & React.DetailedHTMLProps<
|
|
@@ -85,17 +86,21 @@ export type TabItemProps<S> = {
|
|
|
85
86
|
|
|
86
87
|
export interface ActionDropdownProps {
|
|
87
88
|
label?: string;
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
buttonStyle?: "primary" | "secondary";
|
|
90
|
+
buttonSize?: "small" | "medium" | "large";
|
|
90
91
|
disabled?: boolean;
|
|
91
92
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
92
93
|
className?: string;
|
|
93
94
|
buttonProps?: ButtonProps;
|
|
94
95
|
dropdownProps?: DropdownProps;
|
|
96
|
+
/** @deprecated Prop deprecated. Use `buttonStyle` prop instead*/
|
|
97
|
+
style?: "primary" | "secondary";
|
|
98
|
+
/** @deprecated Prop deprecated. Use `buttonStyle` prop instead*/
|
|
99
|
+
size?: "small" | "medium" | "large";
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
export interface AlertProps {
|
|
98
|
-
size?: "
|
|
103
|
+
size?: "small" | "medium" | "large";
|
|
99
104
|
isOpen?: boolean;
|
|
100
105
|
isSubmitting?: boolean;
|
|
101
106
|
className?: string;
|
|
@@ -112,7 +117,7 @@ export interface AlertProps {
|
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
export type AvatarProps = {
|
|
115
|
-
size?: "small" | "medium" | "large" | "
|
|
120
|
+
size?: "small" | "medium" | "large" | "extraLarge";
|
|
116
121
|
user?: { name: string; imageUrl: string };
|
|
117
122
|
isSquare?: boolean;
|
|
118
123
|
status?: "online" | "idle" | "offline";
|
|
@@ -136,7 +141,7 @@ export interface ButtonProps {
|
|
|
136
141
|
fullWidth?: boolean;
|
|
137
142
|
className?: string;
|
|
138
143
|
disabled?: boolean;
|
|
139
|
-
size?: "
|
|
144
|
+
size?: "small" | "medium" | "large";
|
|
140
145
|
href?: string;
|
|
141
146
|
tooltipProps?: TooltipProps;
|
|
142
147
|
[key: string]: any;
|
|
@@ -167,7 +172,7 @@ export type DatePickerProps = {
|
|
|
167
172
|
defaultValue?: any;
|
|
168
173
|
className?: string;
|
|
169
174
|
label?: string;
|
|
170
|
-
size?: "small" | "large";
|
|
175
|
+
size?: "small" | "medium" | "large";
|
|
171
176
|
dropdownClassName?: string;
|
|
172
177
|
dateFormat?: string;
|
|
173
178
|
timeFormat?: string;
|
|
@@ -188,10 +193,6 @@ export interface DropdownProps {
|
|
|
188
193
|
label?: React.ReactNode;
|
|
189
194
|
isOpen?: boolean;
|
|
190
195
|
onClose?: () => void;
|
|
191
|
-
ulProps?: React.DetailedHTMLProps<
|
|
192
|
-
React.HTMLAttributes<HTMLUListElement>,
|
|
193
|
-
HTMLUListElement
|
|
194
|
-
>;
|
|
195
196
|
position?:
|
|
196
197
|
| "auto"
|
|
197
198
|
| "auto-start"
|
|
@@ -209,10 +210,18 @@ export interface DropdownProps {
|
|
|
209
210
|
| "left-start"
|
|
210
211
|
| "left-end";
|
|
211
212
|
className?: string;
|
|
212
|
-
|
|
213
|
+
buttonSize?: "small" | "medium" | "large";
|
|
214
|
+
buttonStyle?:
|
|
215
|
+
| "primary"
|
|
216
|
+
| "secondary"
|
|
217
|
+
| "text"
|
|
218
|
+
| "danger"
|
|
219
|
+
| "danger-text"
|
|
220
|
+
| "link";
|
|
213
221
|
buttonProps?: ButtonProps;
|
|
214
222
|
customTarget?: React.ReactNode | (() => React.ReactNode);
|
|
215
223
|
disabled?: boolean;
|
|
224
|
+
dropdownProps?: any;
|
|
216
225
|
closeOnEsc?: boolean;
|
|
217
226
|
closeOnSelect?: boolean;
|
|
218
227
|
closeOnOutsideClick?: boolean;
|
|
@@ -220,6 +229,11 @@ export interface DropdownProps {
|
|
|
220
229
|
trigger?: "click" | "hover";
|
|
221
230
|
strategy?: "absolute" | "fixed";
|
|
222
231
|
onClick?: () => void;
|
|
232
|
+
/** @deprecated Prop deprecated. Use `dropdownProps` prop instead*/
|
|
233
|
+
ulProps?: React.DetailedHTMLProps<
|
|
234
|
+
React.HTMLAttributes<HTMLUListElement>,
|
|
235
|
+
HTMLUListElement
|
|
236
|
+
>;
|
|
223
237
|
[key: string]: any;
|
|
224
238
|
}
|
|
225
239
|
|
|
@@ -241,7 +255,7 @@ export interface EmailInputProps {
|
|
|
241
255
|
}
|
|
242
256
|
|
|
243
257
|
export type InputProps = {
|
|
244
|
-
size?: "small" | "large";
|
|
258
|
+
size?: "small" | "medium" | "large";
|
|
245
259
|
label?: string;
|
|
246
260
|
error?: string;
|
|
247
261
|
suffix?: React.ReactNode;
|
|
@@ -286,7 +300,7 @@ export interface PaginationProps {
|
|
|
286
300
|
}
|
|
287
301
|
|
|
288
302
|
export type SelectProps = {
|
|
289
|
-
size?: "small" | "large";
|
|
303
|
+
size?: "small" | "medium" | "large";
|
|
290
304
|
label?: string;
|
|
291
305
|
required?: boolean;
|
|
292
306
|
error?: string;
|
|
@@ -350,12 +364,16 @@ export interface TagProps {
|
|
|
350
364
|
icon?: string | any;
|
|
351
365
|
size?: "small" | "large";
|
|
352
366
|
label?: string;
|
|
353
|
-
|
|
367
|
+
type?: "outline" | "solid";
|
|
354
368
|
onClose?: () => void;
|
|
355
369
|
disabled?: boolean;
|
|
356
370
|
className?: string;
|
|
357
|
-
|
|
358
|
-
|
|
371
|
+
style?: "success" | "warning" | "danger" | "primary" | "inactive";
|
|
372
|
+
indicatorStyle?: "success" | "warning" | "danger" | "primary" | "inactive";
|
|
373
|
+
/** @deprecated Prop deprecated. Use `style` prop instead*/
|
|
374
|
+
color: string;
|
|
375
|
+
/** @deprecated Prop deprecated. Use `indicatorStyle` prop instead*/
|
|
376
|
+
indicatorColor?: string;
|
|
359
377
|
}
|
|
360
378
|
|
|
361
379
|
export type TextareaProps = {
|
|
@@ -377,7 +395,7 @@ export type TimePickerProps = {
|
|
|
377
395
|
className?: string;
|
|
378
396
|
label?: string;
|
|
379
397
|
format?: string;
|
|
380
|
-
size?: "small" | "large";
|
|
398
|
+
size?: "small" | "medium" | "large";
|
|
381
399
|
interval?: {
|
|
382
400
|
hourStep: number;
|
|
383
401
|
minuteStep: number;
|
|
@@ -418,10 +436,21 @@ export interface TooltipProps {
|
|
|
418
436
|
interactive?: boolean;
|
|
419
437
|
hideAfter?: number;
|
|
420
438
|
hideOnTargetExit?: boolean;
|
|
439
|
+
[key: string]: any;
|
|
421
440
|
}
|
|
422
441
|
|
|
423
442
|
export type TypographyProps = {
|
|
424
|
-
style?:
|
|
443
|
+
style?:
|
|
444
|
+
| "h1"
|
|
445
|
+
| "h2"
|
|
446
|
+
| "h3"
|
|
447
|
+
| "h4"
|
|
448
|
+
| "h5"
|
|
449
|
+
| "h6"
|
|
450
|
+
| "body1"
|
|
451
|
+
| "body2"
|
|
452
|
+
| "body3"
|
|
453
|
+
| "nano";
|
|
425
454
|
weight?:
|
|
426
455
|
| "thin"
|
|
427
456
|
| "extralight"
|