@rovula/ui 0.1.3 → 0.1.4
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/cjs/bundle.css +144 -40
- package/dist/cjs/bundle.js +4 -4
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +3 -0
- package/dist/cjs/types/components/InputFilter/InputFilter.stories.d.ts +3 -0
- package/dist/cjs/types/components/MaskedTextInput/MaskedTextInput.d.ts +3 -0
- package/dist/cjs/types/components/MaskedTextInput/MaskedTextInput.stories.d.ts +6 -0
- package/dist/cjs/types/components/PasswordInput/PasswordInput.stories.d.ts +3 -0
- package/dist/cjs/types/components/Search/Search.stories.d.ts +3 -0
- package/dist/cjs/types/components/Switch/Switch.d.ts +3 -1
- package/dist/cjs/types/components/Switch/Switch.stories.d.ts +12 -4
- package/dist/cjs/types/components/Switch/Switch.styles.d.ts +7 -0
- package/dist/cjs/types/components/TextInput/TextInput.d.ts +6 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +9 -0
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +4 -0
- package/dist/cjs/types/components/Toast/Toast.d.ts +1 -0
- package/dist/cjs/types/components/Toast/Toast.stories.d.ts +14 -0
- package/dist/cjs/types/components/Toast/Toast.styles.d.ts +1 -0
- package/dist/components/Switch/Switch.js +4 -17
- package/dist/components/Switch/Switch.stories.js +12 -2
- package/dist/components/Switch/Switch.styles.js +39 -0
- package/dist/components/TextInput/TextInput.js +28 -7
- package/dist/components/TextInput/TextInput.stories.js +13 -0
- package/dist/components/TextInput/TextInput.styles.js +22 -0
- package/dist/components/Toast/Toast.js +5 -5
- package/dist/components/Toast/Toast.stories.js +11 -2
- package/dist/components/Toast/Toast.styles.js +38 -6
- package/dist/components/Toast/Toaster.js +17 -1
- package/dist/esm/bundle.css +144 -40
- package/dist/esm/bundle.js +4 -4
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +3 -0
- package/dist/esm/types/components/InputFilter/InputFilter.stories.d.ts +3 -0
- package/dist/esm/types/components/MaskedTextInput/MaskedTextInput.d.ts +3 -0
- package/dist/esm/types/components/MaskedTextInput/MaskedTextInput.stories.d.ts +6 -0
- package/dist/esm/types/components/PasswordInput/PasswordInput.stories.d.ts +3 -0
- package/dist/esm/types/components/Search/Search.stories.d.ts +3 -0
- package/dist/esm/types/components/Switch/Switch.d.ts +3 -1
- package/dist/esm/types/components/Switch/Switch.stories.d.ts +12 -4
- package/dist/esm/types/components/Switch/Switch.styles.d.ts +7 -0
- package/dist/esm/types/components/TextInput/TextInput.d.ts +6 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +9 -0
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +4 -0
- package/dist/esm/types/components/Toast/Toast.d.ts +1 -0
- package/dist/esm/types/components/Toast/Toast.stories.d.ts +14 -0
- package/dist/esm/types/components/Toast/Toast.styles.d.ts +1 -0
- package/dist/index.d.ts +13 -1
- package/dist/src/theme/global.css +191 -87
- package/package.json +1 -1
- package/src/components/Switch/Switch.stories.tsx +33 -2
- package/src/components/Switch/Switch.styles.ts +48 -0
- package/src/components/Switch/Switch.tsx +68 -45
- package/src/components/TextInput/TextInput.stories.tsx +82 -0
- package/src/components/TextInput/TextInput.styles.ts +22 -0
- package/src/components/TextInput/TextInput.tsx +40 -11
- package/src/components/Toast/Toast.stories.tsx +12 -2
- package/src/components/Toast/Toast.styles.tsx +38 -6
- package/src/components/Toast/Toast.tsx +7 -7
- package/src/components/Toast/Toaster.tsx +26 -4
- package/src/theme/themes/xspector/baseline.css +0 -1
- package/src/theme/tokens/components/switch.css +10 -11
- package/src/theme/themes/xspector/components/switch.css +0 -30
|
@@ -298,7 +298,9 @@ declare const meta: {
|
|
|
298
298
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
299
299
|
form?: string | undefined | undefined;
|
|
300
300
|
list?: string | undefined | undefined;
|
|
301
|
+
status?: "default" | "warning" | "error" | undefined;
|
|
301
302
|
step?: number | string | undefined | undefined;
|
|
303
|
+
warning?: boolean | undefined;
|
|
302
304
|
title?: string | undefined | undefined;
|
|
303
305
|
startIcon?: React.ReactNode;
|
|
304
306
|
endIcon?: React.ReactNode;
|
|
@@ -363,6 +365,7 @@ declare const meta: {
|
|
|
363
365
|
readOnly?: boolean | undefined | undefined;
|
|
364
366
|
src?: string | undefined | undefined;
|
|
365
367
|
iconMode?: "flat" | "solid" | undefined;
|
|
368
|
+
warningMessage?: string | undefined;
|
|
366
369
|
keepCloseIconOnValue?: boolean | undefined;
|
|
367
370
|
keepFooterSpace?: boolean | undefined;
|
|
368
371
|
labelClassName?: string | undefined;
|
|
@@ -285,7 +285,9 @@ declare const meta: {
|
|
|
285
285
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
286
286
|
form?: string | undefined | undefined;
|
|
287
287
|
list?: string | undefined | undefined;
|
|
288
|
+
status?: "default" | "warning" | "error" | undefined;
|
|
288
289
|
step?: number | string | undefined | undefined;
|
|
290
|
+
warning?: boolean | undefined;
|
|
289
291
|
title?: string | undefined | undefined;
|
|
290
292
|
startIcon?: React.ReactNode;
|
|
291
293
|
endIcon?: React.ReactNode;
|
|
@@ -350,6 +352,7 @@ declare const meta: {
|
|
|
350
352
|
readOnly?: boolean | undefined | undefined;
|
|
351
353
|
src?: string | undefined | undefined;
|
|
352
354
|
iconMode?: "flat" | "solid" | undefined;
|
|
355
|
+
warningMessage?: string | undefined;
|
|
353
356
|
keepCloseIconOnValue?: boolean | undefined;
|
|
354
357
|
keepFooterSpace?: boolean | undefined;
|
|
355
358
|
labelClassName?: string | undefined;
|
|
@@ -40,9 +40,12 @@ export declare const MaskedTextInput: React.ForwardRefExoticComponent<{
|
|
|
40
40
|
type?: React.HTMLInputTypeAttribute;
|
|
41
41
|
helperText?: string;
|
|
42
42
|
errorMessage?: string;
|
|
43
|
+
warningMessage?: string;
|
|
44
|
+
status?: "default" | "warning" | "error";
|
|
43
45
|
fullwidth?: boolean;
|
|
44
46
|
disabled?: boolean;
|
|
45
47
|
error?: boolean;
|
|
48
|
+
warning?: boolean;
|
|
46
49
|
required?: boolean;
|
|
47
50
|
isFloatingLabel?: boolean;
|
|
48
51
|
keepCloseIconOnValue?: boolean;
|
|
@@ -11,9 +11,12 @@ declare const meta: {
|
|
|
11
11
|
type?: React.HTMLInputTypeAttribute;
|
|
12
12
|
helperText?: string;
|
|
13
13
|
errorMessage?: string;
|
|
14
|
+
warningMessage?: string;
|
|
15
|
+
status?: "default" | "warning" | "error";
|
|
14
16
|
fullwidth?: boolean;
|
|
15
17
|
disabled?: boolean;
|
|
16
18
|
error?: boolean;
|
|
19
|
+
warning?: boolean;
|
|
17
20
|
required?: boolean;
|
|
18
21
|
isFloatingLabel?: boolean;
|
|
19
22
|
keepCloseIconOnValue?: boolean;
|
|
@@ -58,9 +61,12 @@ declare const meta: {
|
|
|
58
61
|
type?: React.HTMLInputTypeAttribute | undefined;
|
|
59
62
|
helperText?: string | undefined;
|
|
60
63
|
errorMessage?: string | undefined;
|
|
64
|
+
warningMessage?: string | undefined;
|
|
65
|
+
status?: "default" | "warning" | "error" | undefined;
|
|
61
66
|
fullwidth?: boolean | undefined;
|
|
62
67
|
disabled?: boolean | undefined;
|
|
63
68
|
error?: boolean | undefined;
|
|
69
|
+
warning?: boolean | undefined;
|
|
64
70
|
required?: boolean | undefined;
|
|
65
71
|
isFloatingLabel?: boolean | undefined;
|
|
66
72
|
keepCloseIconOnValue?: boolean | undefined;
|
|
@@ -244,7 +244,9 @@ declare const meta: {
|
|
|
244
244
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
245
245
|
form?: string | undefined | undefined;
|
|
246
246
|
list?: string | undefined | undefined;
|
|
247
|
+
status?: "default" | "warning" | "error" | undefined;
|
|
247
248
|
step?: number | string | undefined | undefined;
|
|
249
|
+
warning?: boolean | undefined;
|
|
248
250
|
error?: boolean | undefined;
|
|
249
251
|
size?: "sm" | "md" | "lg" | undefined;
|
|
250
252
|
disabled?: boolean | undefined;
|
|
@@ -319,6 +321,7 @@ declare const meta: {
|
|
|
319
321
|
iconMode?: "flat" | "solid" | undefined;
|
|
320
322
|
helperText?: string | undefined;
|
|
321
323
|
errorMessage?: string | undefined;
|
|
324
|
+
warningMessage?: string | undefined;
|
|
322
325
|
keepCloseIconOnValue?: boolean | undefined;
|
|
323
326
|
keepFooterSpace?: boolean | undefined;
|
|
324
327
|
labelClassName?: string | undefined;
|
|
@@ -279,7 +279,9 @@ declare const meta: {
|
|
|
279
279
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
280
280
|
form?: string | undefined | undefined;
|
|
281
281
|
list?: string | undefined | undefined;
|
|
282
|
+
status?: "default" | "warning" | "error" | undefined;
|
|
282
283
|
step?: number | string | undefined | undefined;
|
|
284
|
+
warning?: boolean | undefined;
|
|
283
285
|
title?: string | undefined | undefined;
|
|
284
286
|
startIcon?: React.ReactNode;
|
|
285
287
|
endIcon?: React.ReactNode;
|
|
@@ -344,6 +346,7 @@ declare const meta: {
|
|
|
344
346
|
readOnly?: boolean | undefined | undefined;
|
|
345
347
|
src?: string | undefined | undefined;
|
|
346
348
|
iconMode?: "flat" | "solid" | undefined;
|
|
349
|
+
warningMessage?: string | undefined;
|
|
347
350
|
keepCloseIconOnValue?: boolean | undefined;
|
|
348
351
|
keepFooterSpace?: boolean | undefined;
|
|
349
352
|
labelClassName?: string | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
3
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> &
|
|
3
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
4
|
+
forceHover?: boolean;
|
|
5
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
4
6
|
export { Switch };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-switch").SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> &
|
|
4
|
+
component: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-switch").SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
5
|
+
forceHover?: boolean;
|
|
6
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
5
7
|
tags: string[];
|
|
6
8
|
parameters: {
|
|
7
9
|
layout: string;
|
|
@@ -288,14 +290,20 @@ declare const meta: {
|
|
|
288
290
|
required?: boolean | undefined;
|
|
289
291
|
asChild?: boolean | undefined;
|
|
290
292
|
onCheckedChange?: ((checked: boolean) => void) | undefined;
|
|
293
|
+
forceHover?: boolean | undefined;
|
|
291
294
|
ref?: React.LegacyRef<HTMLButtonElement> | undefined;
|
|
292
295
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
293
296
|
};
|
|
294
297
|
export default meta;
|
|
295
298
|
export declare const Default: {
|
|
296
299
|
args: {
|
|
297
|
-
checked:
|
|
298
|
-
disabled:
|
|
300
|
+
checked: false;
|
|
301
|
+
disabled: false;
|
|
299
302
|
};
|
|
300
|
-
render: (args:
|
|
303
|
+
render: (args: Omit<import("@radix-ui/react-switch").SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
304
|
+
forceHover?: boolean;
|
|
305
|
+
} & React.RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
306
|
+
};
|
|
307
|
+
export declare const FigmaPreview: {
|
|
308
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
301
309
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const switchRootVariants: (props?: ({
|
|
2
|
+
forceHover?: boolean | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const switchThumbVariants: (props?: ({
|
|
5
|
+
forceHover?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const switchThumbHaloVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -9,9 +9,12 @@ export type InputProps = {
|
|
|
9
9
|
type?: React.HTMLInputTypeAttribute;
|
|
10
10
|
helperText?: string;
|
|
11
11
|
errorMessage?: string;
|
|
12
|
+
warningMessage?: string;
|
|
13
|
+
status?: "default" | "warning" | "error";
|
|
12
14
|
fullwidth?: boolean;
|
|
13
15
|
disabled?: boolean;
|
|
14
16
|
error?: boolean;
|
|
17
|
+
warning?: boolean;
|
|
15
18
|
required?: boolean;
|
|
16
19
|
isFloatingLabel?: boolean;
|
|
17
20
|
keepCloseIconOnValue?: boolean;
|
|
@@ -44,9 +47,12 @@ export declare const TextInput: React.ForwardRefExoticComponent<{
|
|
|
44
47
|
type?: React.HTMLInputTypeAttribute;
|
|
45
48
|
helperText?: string;
|
|
46
49
|
errorMessage?: string;
|
|
50
|
+
warningMessage?: string;
|
|
51
|
+
status?: "default" | "warning" | "error";
|
|
47
52
|
fullwidth?: boolean;
|
|
48
53
|
disabled?: boolean;
|
|
49
54
|
error?: boolean;
|
|
55
|
+
warning?: boolean;
|
|
50
56
|
required?: boolean;
|
|
51
57
|
isFloatingLabel?: boolean;
|
|
52
58
|
keepCloseIconOnValue?: boolean;
|
|
@@ -11,9 +11,12 @@ declare const meta: {
|
|
|
11
11
|
type?: React.HTMLInputTypeAttribute;
|
|
12
12
|
helperText?: string;
|
|
13
13
|
errorMessage?: string;
|
|
14
|
+
warningMessage?: string;
|
|
15
|
+
status?: "default" | "warning" | "error";
|
|
14
16
|
fullwidth?: boolean;
|
|
15
17
|
disabled?: boolean;
|
|
16
18
|
error?: boolean;
|
|
19
|
+
warning?: boolean;
|
|
17
20
|
required?: boolean;
|
|
18
21
|
isFloatingLabel?: boolean;
|
|
19
22
|
keepCloseIconOnValue?: boolean;
|
|
@@ -50,9 +53,12 @@ declare const meta: {
|
|
|
50
53
|
type?: React.HTMLInputTypeAttribute | undefined;
|
|
51
54
|
helperText?: string | undefined;
|
|
52
55
|
errorMessage?: string | undefined;
|
|
56
|
+
warningMessage?: string | undefined;
|
|
57
|
+
status?: "default" | "warning" | "error" | undefined;
|
|
53
58
|
fullwidth?: boolean | undefined;
|
|
54
59
|
disabled?: boolean | undefined;
|
|
55
60
|
error?: boolean | undefined;
|
|
61
|
+
warning?: boolean | undefined;
|
|
56
62
|
required?: boolean | undefined;
|
|
57
63
|
isFloatingLabel?: boolean | undefined;
|
|
58
64
|
keepCloseIconOnValue?: boolean | undefined;
|
|
@@ -406,3 +412,6 @@ export declare const KeepFooterSpace: {
|
|
|
406
412
|
};
|
|
407
413
|
render: () => import("react/jsx-runtime").JSX.Element;
|
|
408
414
|
};
|
|
415
|
+
export declare const FeedbackApiCompatibility: {
|
|
416
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
417
|
+
};
|
|
@@ -5,6 +5,7 @@ export declare const inputVariant: (props?: ({
|
|
|
5
5
|
fullwidth?: boolean | null | undefined;
|
|
6
6
|
disabled?: boolean | null | undefined;
|
|
7
7
|
error?: boolean | null | undefined;
|
|
8
|
+
warning?: boolean | null | undefined;
|
|
8
9
|
hasClearIcon?: boolean | null | undefined;
|
|
9
10
|
hasSearchIcon?: boolean | null | undefined;
|
|
10
11
|
leftSectionIcon?: boolean | null | undefined;
|
|
@@ -22,6 +23,7 @@ export declare const helperTextVariant: (props?: ({
|
|
|
22
23
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
23
24
|
disabled?: boolean | null | undefined;
|
|
24
25
|
error?: boolean | null | undefined;
|
|
26
|
+
warning?: boolean | null | undefined;
|
|
25
27
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
26
28
|
export declare const inlineEndIconWrapperVariant: (props?: ({
|
|
27
29
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -36,6 +38,7 @@ export declare const segmentedIconWrapperVariant: (props?: ({
|
|
|
36
38
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
37
39
|
rounded?: "none" | "normal" | "full" | null | undefined;
|
|
38
40
|
error?: boolean | null | undefined;
|
|
41
|
+
warning?: boolean | null | undefined;
|
|
39
42
|
position?: "end" | "start" | null | undefined;
|
|
40
43
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
41
44
|
export declare const iconWrapperVariant: (props?: ({
|
|
@@ -51,5 +54,6 @@ export declare const sectionIconWrapperVariant: (props?: ({
|
|
|
51
54
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
52
55
|
rounded?: "none" | "normal" | "full" | null | undefined;
|
|
53
56
|
error?: boolean | null | undefined;
|
|
57
|
+
warning?: boolean | null | undefined;
|
|
54
58
|
position?: "end" | "start" | null | undefined;
|
|
55
59
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -7,6 +7,7 @@ declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive
|
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLOListElement>>;
|
|
8
8
|
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
9
9
|
variant?: "default" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
10
|
+
showBorder?: boolean | null | undefined;
|
|
10
11
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
11
12
|
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
13
|
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,10 +3,18 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
|
|
5
5
|
variant?: "default" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
6
|
+
showBorder?: boolean | null | undefined;
|
|
6
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
7
8
|
tags: string[];
|
|
8
9
|
parameters: {
|
|
9
10
|
layout: string;
|
|
11
|
+
backgrounds: {
|
|
12
|
+
default: string;
|
|
13
|
+
values: {
|
|
14
|
+
name: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
10
18
|
};
|
|
11
19
|
decorators: ((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
12
20
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
@@ -323,6 +331,7 @@ declare const meta: {
|
|
|
323
331
|
};
|
|
324
332
|
}>, "currentTarget">) => void) | undefined;
|
|
325
333
|
variant?: "default" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
334
|
+
showBorder?: boolean | null | undefined;
|
|
326
335
|
ref?: React.LegacyRef<HTMLLIElement> | undefined;
|
|
327
336
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
328
337
|
};
|
|
@@ -341,15 +350,20 @@ export declare const Simple: {
|
|
|
341
350
|
control: "select";
|
|
342
351
|
options: string[];
|
|
343
352
|
};
|
|
353
|
+
showBorder: {
|
|
354
|
+
control: "boolean";
|
|
355
|
+
};
|
|
344
356
|
};
|
|
345
357
|
args: {
|
|
346
358
|
variant: "default";
|
|
347
359
|
contentMode: "horizontal";
|
|
348
360
|
position: "top-center";
|
|
361
|
+
showBorder: false;
|
|
349
362
|
};
|
|
350
363
|
render: (args: {
|
|
351
364
|
variant: "default" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
352
365
|
contentMode: "horizontal" | "vertical";
|
|
366
|
+
showBorder: boolean;
|
|
353
367
|
position?: "top-center" | "top-left" | "top-right" | "bottom-center" | "bottom-left" | "bottom-right" | undefined;
|
|
354
368
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
355
369
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const toastVariants: (props?: ({
|
|
2
2
|
variant?: "default" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
3
|
+
showBorder?: boolean | null | undefined;
|
|
3
4
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
5
|
export declare const toastViewportVariants: (props?: ({
|
|
5
6
|
position?: "top-center" | "top-left" | "top-right" | "bottom-center" | "bottom-left" | "bottom-right" | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -56,9 +56,12 @@ type InputProps = {
|
|
|
56
56
|
type?: React__default.HTMLInputTypeAttribute;
|
|
57
57
|
helperText?: string;
|
|
58
58
|
errorMessage?: string;
|
|
59
|
+
warningMessage?: string;
|
|
60
|
+
status?: "default" | "warning" | "error";
|
|
59
61
|
fullwidth?: boolean;
|
|
60
62
|
disabled?: boolean;
|
|
61
63
|
error?: boolean;
|
|
64
|
+
warning?: boolean;
|
|
62
65
|
required?: boolean;
|
|
63
66
|
isFloatingLabel?: boolean;
|
|
64
67
|
keepCloseIconOnValue?: boolean;
|
|
@@ -91,9 +94,12 @@ declare const TextInput: React__default.ForwardRefExoticComponent<{
|
|
|
91
94
|
type?: React__default.HTMLInputTypeAttribute;
|
|
92
95
|
helperText?: string;
|
|
93
96
|
errorMessage?: string;
|
|
97
|
+
warningMessage?: string;
|
|
98
|
+
status?: "default" | "warning" | "error";
|
|
94
99
|
fullwidth?: boolean;
|
|
95
100
|
disabled?: boolean;
|
|
96
101
|
error?: boolean;
|
|
102
|
+
warning?: boolean;
|
|
97
103
|
required?: boolean;
|
|
98
104
|
isFloatingLabel?: boolean;
|
|
99
105
|
keepCloseIconOnValue?: boolean;
|
|
@@ -142,9 +148,12 @@ declare const MaskedTextInput: React__default.ForwardRefExoticComponent<{
|
|
|
142
148
|
type?: React__default.HTMLInputTypeAttribute;
|
|
143
149
|
helperText?: string;
|
|
144
150
|
errorMessage?: string;
|
|
151
|
+
warningMessage?: string;
|
|
152
|
+
status?: "default" | "warning" | "error";
|
|
145
153
|
fullwidth?: boolean;
|
|
146
154
|
disabled?: boolean;
|
|
147
155
|
error?: boolean;
|
|
156
|
+
warning?: boolean;
|
|
148
157
|
required?: boolean;
|
|
149
158
|
isFloatingLabel?: boolean;
|
|
150
159
|
keepCloseIconOnValue?: boolean;
|
|
@@ -820,7 +829,9 @@ interface CustomSliderProps extends React.ComponentPropsWithoutRef<typeof Slider
|
|
|
820
829
|
declare const Slider: React.ForwardRefExoticComponent<CustomSliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
821
830
|
type SliderProps = React.ComponentProps<typeof Slider>;
|
|
822
831
|
|
|
823
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> &
|
|
832
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
833
|
+
forceHover?: boolean;
|
|
834
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
824
835
|
|
|
825
836
|
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
826
837
|
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -871,6 +882,7 @@ declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive
|
|
|
871
882
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLOListElement>>;
|
|
872
883
|
declare const Toast$1: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
873
884
|
variant?: "default" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
885
|
+
showBorder?: boolean | null | undefined;
|
|
874
886
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
875
887
|
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
876
888
|
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|