automoby-kit 1.0.12 → 1.0.13
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/README.md +7 -71
- package/dist/cjs/Accordion.js +59 -1
- package/dist/cjs/Backdrop.js +26 -1
- package/dist/cjs/Breadcrumb.js +61 -1
- package/dist/cjs/Button.js +48 -1
- package/dist/cjs/Chips.js +117 -1
- package/dist/cjs/Divider.js +23 -1
- package/dist/cjs/Drawer.js +112 -1
- package/dist/cjs/Input.js +84 -1
- package/dist/cjs/Menu.js +122 -1
- package/dist/cjs/Pagination.js +188 -1
- package/dist/cjs/RadioGroup.js +73 -1
- package/dist/cjs/Tabs.js +54 -1
- package/dist/cjs/Typography.js +63 -1
- package/dist/cjs/chevron-left-COj1qGVo.js +16 -0
- package/dist/{types → cjs}/components/Accordion/Accordion.d.ts +2 -2
- package/dist/{types → cjs}/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/{types → cjs}/components/Chips/Chips.d.ts +5 -5
- package/dist/{types → cjs}/components/Drawer/Drawer.d.ts +2 -2
- package/dist/{types → cjs}/components/Input/Input.d.ts +4 -4
- package/dist/{types → cjs}/components/Input/Input.stories.d.ts +1 -1
- package/dist/{types → cjs}/components/Pagination/Pagination.d.ts +2 -2
- package/dist/{types → cjs}/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/cjs/components/Select/Select.d.ts +17 -0
- package/dist/cjs/components/Select/Select.stories.d.ts +104 -0
- package/dist/{types → cjs}/components/Tabs/Tabs.d.ts +2 -2
- package/dist/{types → cjs}/contexts/MobileContext.d.ts +1 -0
- package/dist/cjs/contexts.js +1491 -1
- package/dist/cjs/createLucideIcon-BTjFFtDc.js +114 -0
- package/dist/cjs/index.d.ts +34 -0
- package/dist/cjs/index.js +52 -1
- package/dist/cjs/utils.js +9 -1
- package/dist/esm/Accordion.js +57 -1
- package/dist/esm/Backdrop.js +24 -1
- package/dist/esm/Breadcrumb.js +59 -1
- package/dist/esm/Button.js +46 -1
- package/dist/esm/Chips.js +112 -1
- package/dist/esm/Divider.js +21 -1
- package/dist/esm/Drawer.js +110 -1
- package/dist/esm/Input.js +82 -1
- package/dist/esm/Menu.js +120 -1
- package/dist/esm/Pagination.js +186 -1
- package/dist/esm/RadioGroup.js +71 -1
- package/dist/esm/Tabs.js +52 -1
- package/dist/esm/Typography.js +60 -1
- package/dist/esm/components/Accordion/Accordion.d.ts +25 -0
- package/dist/esm/components/Accordion/Accordion.stories.d.ts +175 -0
- package/dist/esm/components/Backdrop/Backdrop.d.ts +20 -0
- package/dist/esm/components/Backdrop/Backdrop.stories.d.ts +9 -0
- package/dist/esm/components/Breadcrumb/Breadcrumb.d.ts +16 -0
- package/dist/esm/components/Breadcrumb/Breadcrumb.stories.d.ts +177 -0
- package/dist/esm/components/Button/Button.d.ts +13 -0
- package/dist/esm/components/Button/Button.stories.d.ts +100 -0
- package/dist/esm/components/Chips/Chips.d.ts +37 -0
- package/dist/esm/components/Chips/Chips.stories.d.ts +90 -0
- package/dist/esm/components/Divider/Divider.d.ts +25 -0
- package/dist/esm/components/Divider/Divider.stories.d.ts +88 -0
- package/dist/esm/components/Drawer/Drawer.d.ts +16 -0
- package/dist/esm/components/Drawer/Drawer.stories.d.ts +128 -0
- package/dist/esm/components/Input/Input.d.ts +24 -0
- package/dist/esm/components/Input/Input.stories.d.ts +131 -0
- package/dist/esm/components/Menu/Menu.d.ts +39 -0
- package/dist/esm/components/Menu/Menu.stories.d.ts +89 -0
- package/dist/esm/components/Pagination/Pagination.d.ts +12 -0
- package/dist/esm/components/Pagination/Pagination.stories.d.ts +76 -0
- package/dist/esm/components/RadioGroup/RadioGroup.d.ts +55 -0
- package/dist/esm/components/RadioGroup/RadioGroup.stories.d.ts +86 -0
- package/dist/esm/components/Select/Select.d.ts +17 -0
- package/dist/esm/components/Select/Select.stories.d.ts +104 -0
- package/dist/esm/components/Tabs/Tabs.d.ts +43 -0
- package/dist/esm/components/Tabs/Tabs.stories.d.ts +66 -0
- package/dist/esm/components/Typography/Typography.d.ts +9 -0
- package/dist/esm/components/Typography/Typography.stories.d.ts +57 -0
- package/dist/esm/contexts/MobileContext.d.ts +13 -0
- package/dist/esm/contexts.js +1485 -1
- package/dist/esm/index.d.ts +34 -0
- package/dist/esm/index.js +37 -1
- package/dist/esm/utils/cn.d.ts +2 -0
- package/dist/esm/utils.js +7 -1
- package/package.json +2 -7
- package/dist/cjs/ProtectedComponent.js +0 -1
- package/dist/cjs/licensing.js +0 -1
- package/dist/esm/ProtectedComponent.js +0 -1
- package/dist/esm/licensing.js +0 -1
- package/dist/types/Accordion.js +0 -54
- package/dist/types/Backdrop.js +0 -24
- package/dist/types/Breadcrumb.js +0 -56
- package/dist/types/Button.js +0 -46
- package/dist/types/Chips.js +0 -109
- package/dist/types/Divider.js +0 -21
- package/dist/types/Drawer.js +0 -107
- package/dist/types/Input.js +0 -78
- package/dist/types/Menu.js +0 -120
- package/dist/types/Pagination.js +0 -183
- package/dist/types/ProtectedComponent.js +0 -33
- package/dist/types/RadioGroup.js +0 -68
- package/dist/types/Tabs.js +0 -49
- package/dist/types/Typography.js +0 -60
- package/dist/types/components/ProtectedComponent.d.ts +0 -5
- package/dist/types/contexts.js +0 -1478
- package/dist/types/index.d.ts +0 -36
- package/dist/types/index.js +0 -38
- package/dist/types/licensing/LicenseManager.d.ts +0 -41
- package/dist/types/licensing/index.d.ts +0 -30
- package/dist/types/licensing.js +0 -125
- package/dist/types/utils.js +0 -7
- /package/dist/{types → cjs}/components/Accordion/Accordion.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Backdrop/Backdrop.d.ts +0 -0
- /package/dist/{types → cjs}/components/Backdrop/Backdrop.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Breadcrumb/Breadcrumb.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Button/Button.d.ts +0 -0
- /package/dist/{types → cjs}/components/Button/Button.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Chips/Chips.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Divider/Divider.d.ts +0 -0
- /package/dist/{types → cjs}/components/Divider/Divider.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Drawer/Drawer.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Menu/Menu.d.ts +0 -0
- /package/dist/{types → cjs}/components/Menu/Menu.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Pagination/Pagination.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/RadioGroup/RadioGroup.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Tabs/Tabs.stories.d.ts +0 -0
- /package/dist/{types → cjs}/components/Typography/Typography.d.ts +0 -0
- /package/dist/{types → cjs}/components/Typography/Typography.stories.d.ts +0 -0
- /package/dist/{types → cjs}/utils/cn.d.ts +0 -0
- /package/dist/{types → esm}/chevron-left-Ck6O99eF.js +0 -0
- /package/dist/{types → esm}/createLucideIcon-D-q73LTT.js +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ChipsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The variant/color of the chip
|
|
5
|
+
*/
|
|
6
|
+
variant?: 'purple' | 'red' | 'green' | 'orange' | 'blue' | 'white' | 'disabled';
|
|
7
|
+
/**
|
|
8
|
+
* Size of the chip - affects padding and font size. If not provided, automatically detected from MobileContext
|
|
9
|
+
*/
|
|
10
|
+
size?: 'mobile' | 'desktop';
|
|
11
|
+
/**
|
|
12
|
+
* The text or content to display in the chip
|
|
13
|
+
*/
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the chip is disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Click handler for the chip
|
|
21
|
+
*/
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Click handler for the close icon
|
|
25
|
+
*/
|
|
26
|
+
onIconClick?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Custom CSS class
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
33
|
+
*/
|
|
34
|
+
isMobile?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare const Chips: React.ForwardRefExoticComponent<ChipsProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export default Chips;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.ForwardRefExoticComponent<import("@/components/Chips/Chips").ChipsProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
variant: {
|
|
14
|
+
name: string;
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
options: string[];
|
|
19
|
+
defaultValue: string;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
name: string;
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
options: string[];
|
|
27
|
+
defaultValue: string;
|
|
28
|
+
};
|
|
29
|
+
isMobile: {
|
|
30
|
+
name: string;
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
defaultValue: boolean;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
name: string;
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
defaultValue: boolean;
|
|
42
|
+
};
|
|
43
|
+
children: {
|
|
44
|
+
name: string;
|
|
45
|
+
control: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
defaultValue: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
53
|
+
type StoryProps = {
|
|
54
|
+
variant: 'purple' | 'red' | 'green' | 'orange' | 'blue' | 'white';
|
|
55
|
+
size: 'mobile' | 'desktop';
|
|
56
|
+
isMobile: boolean;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
children: string;
|
|
59
|
+
};
|
|
60
|
+
export declare const Playground: {
|
|
61
|
+
(args: StoryProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
storyName: string;
|
|
63
|
+
args: {
|
|
64
|
+
variant: string;
|
|
65
|
+
size: string;
|
|
66
|
+
isMobile: boolean;
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
children: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export declare const AllVariants: {
|
|
72
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
storyName: string;
|
|
74
|
+
};
|
|
75
|
+
export declare const AutoResponsive: {
|
|
76
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
storyName: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const DisabledStates: {
|
|
80
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
storyName: string;
|
|
82
|
+
};
|
|
83
|
+
export declare const InteractiveExample: {
|
|
84
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
storyName: string;
|
|
86
|
+
};
|
|
87
|
+
export declare const ResponsiveComparison: {
|
|
88
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
storyName: string;
|
|
90
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Width of the divider
|
|
5
|
+
* @default "100%"
|
|
6
|
+
*/
|
|
7
|
+
width?: string | number;
|
|
8
|
+
/**
|
|
9
|
+
* Height (thickness) of the divider
|
|
10
|
+
* @default 1
|
|
11
|
+
*/
|
|
12
|
+
height?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* Orientation of the divider
|
|
15
|
+
* @default "horizontal"
|
|
16
|
+
*/
|
|
17
|
+
orientation?: 'horizontal' | 'vertical';
|
|
18
|
+
/**
|
|
19
|
+
* Color variant of the divider
|
|
20
|
+
* @default "neutral-light"
|
|
21
|
+
*/
|
|
22
|
+
variant?: 'neutral-light' | 'neutral-main' | 'primary';
|
|
23
|
+
}
|
|
24
|
+
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export { Divider };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { DividerProps } from './Divider';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
width: {
|
|
14
|
+
name: string;
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
description: string;
|
|
19
|
+
defaultValue: string;
|
|
20
|
+
};
|
|
21
|
+
height: {
|
|
22
|
+
name: string;
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
description: string;
|
|
27
|
+
defaultValue: number;
|
|
28
|
+
};
|
|
29
|
+
orientation: {
|
|
30
|
+
name: string;
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
options: string[];
|
|
35
|
+
description: string;
|
|
36
|
+
defaultValue: string;
|
|
37
|
+
};
|
|
38
|
+
variant: {
|
|
39
|
+
name: string;
|
|
40
|
+
control: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
options: string[];
|
|
44
|
+
description: string;
|
|
45
|
+
defaultValue: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _default;
|
|
50
|
+
export declare const Default: {
|
|
51
|
+
args: {
|
|
52
|
+
width: string;
|
|
53
|
+
height: number;
|
|
54
|
+
orientation: string;
|
|
55
|
+
variant: string;
|
|
56
|
+
};
|
|
57
|
+
render: (args: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
};
|
|
59
|
+
export declare const Thick: {
|
|
60
|
+
args: {
|
|
61
|
+
width: string;
|
|
62
|
+
height: number;
|
|
63
|
+
orientation: string;
|
|
64
|
+
variant: string;
|
|
65
|
+
};
|
|
66
|
+
render: (args: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
};
|
|
68
|
+
export declare const CustomWidth: {
|
|
69
|
+
args: {
|
|
70
|
+
width: string;
|
|
71
|
+
height: number;
|
|
72
|
+
orientation: string;
|
|
73
|
+
variant: string;
|
|
74
|
+
};
|
|
75
|
+
render: (args: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
};
|
|
77
|
+
export declare const Vertical: {
|
|
78
|
+
args: {
|
|
79
|
+
width: number;
|
|
80
|
+
height: number;
|
|
81
|
+
orientation: string;
|
|
82
|
+
variant: string;
|
|
83
|
+
};
|
|
84
|
+
render: (args: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
};
|
|
86
|
+
export declare const Variants: {
|
|
87
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export type DrawerDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
+
export type DrawerProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
direction?: DrawerDirection;
|
|
6
|
+
fullScreen?: boolean;
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
12
|
+
*/
|
|
13
|
+
isMobile?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export { Drawer };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { DrawerProps } from './Drawer';
|
|
2
|
+
type StoryArgs = DrawerProps & {
|
|
3
|
+
triggerButtonText?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: import("react").ForwardRefExoticComponent<DrawerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
parameters: {
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
argTypes: {
|
|
16
|
+
direction: {
|
|
17
|
+
name: string;
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
options: string[];
|
|
22
|
+
};
|
|
23
|
+
fullScreen: {
|
|
24
|
+
name: string;
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
isOpen: {
|
|
30
|
+
name: string;
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
isMobile: {
|
|
36
|
+
name: string;
|
|
37
|
+
control: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
defaultValue: boolean;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
children: {
|
|
44
|
+
table: {
|
|
45
|
+
disable: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
onClose: {
|
|
49
|
+
table: {
|
|
50
|
+
disable: boolean;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
className: {
|
|
54
|
+
table: {
|
|
55
|
+
disable: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
61
|
+
export declare const Default: {
|
|
62
|
+
({ triggerButtonText, isMobile, ...args }: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
storyName: string;
|
|
64
|
+
args: {
|
|
65
|
+
direction: string;
|
|
66
|
+
isMobile: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export declare const TopDirection: {
|
|
70
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
storyName: string;
|
|
72
|
+
args: {
|
|
73
|
+
direction: string;
|
|
74
|
+
triggerButtonText: string;
|
|
75
|
+
isMobile: boolean;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const LeftDirection: {
|
|
79
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
storyName: string;
|
|
81
|
+
args: {
|
|
82
|
+
direction: string;
|
|
83
|
+
triggerButtonText: string;
|
|
84
|
+
isMobile: boolean;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export declare const RightDirection: {
|
|
88
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
storyName: string;
|
|
90
|
+
args: {
|
|
91
|
+
direction: string;
|
|
92
|
+
triggerButtonText: string;
|
|
93
|
+
isMobile: boolean;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const FullScreenDrawer: {
|
|
97
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
98
|
+
storyName: string;
|
|
99
|
+
args: {
|
|
100
|
+
fullScreen: boolean;
|
|
101
|
+
triggerButtonText: string;
|
|
102
|
+
direction: string;
|
|
103
|
+
isMobile: boolean;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export declare const NavigationDrawer: {
|
|
107
|
+
({ triggerButtonText, isMobile, ...args }: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
storyName: string;
|
|
109
|
+
args: {
|
|
110
|
+
direction: string;
|
|
111
|
+
fullScreen: boolean;
|
|
112
|
+
triggerButtonText: string;
|
|
113
|
+
isMobile: boolean;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export declare const MobileVersion: {
|
|
117
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
storyName: string;
|
|
119
|
+
args: {
|
|
120
|
+
direction: string;
|
|
121
|
+
triggerButtonText: string;
|
|
122
|
+
isMobile: boolean;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export declare const ResponsiveComparison: {
|
|
126
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
127
|
+
storyName: string;
|
|
128
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export type InputProps = {
|
|
3
|
+
state?: 'default' | 'disabled' | 'error';
|
|
4
|
+
label: string;
|
|
5
|
+
helperText?: string;
|
|
6
|
+
startIcon?: ReactNode;
|
|
7
|
+
endIcon?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
10
|
+
*/
|
|
11
|
+
isMobile?: boolean;
|
|
12
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'id'>;
|
|
13
|
+
declare const Input: React.ForwardRefExoticComponent<{
|
|
14
|
+
state?: "default" | "disabled" | "error";
|
|
15
|
+
label: string;
|
|
16
|
+
helperText?: string;
|
|
17
|
+
startIcon?: ReactNode;
|
|
18
|
+
endIcon?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
21
|
+
*/
|
|
22
|
+
isMobile?: boolean;
|
|
23
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id"> & React.RefAttributes<HTMLInputElement>>;
|
|
24
|
+
export { Input };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { InputProps } from './Input';
|
|
2
|
+
type StoryArgs = Omit<InputProps, 'onChange' | 'ref'> & {
|
|
3
|
+
initialValue?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
state?: "default" | "disabled" | "error";
|
|
9
|
+
label: string;
|
|
10
|
+
helperText?: string;
|
|
11
|
+
startIcon?: import("react").ReactNode;
|
|
12
|
+
endIcon?: import("react").ReactNode;
|
|
13
|
+
isMobile?: boolean;
|
|
14
|
+
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "id"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
|
+
parameters: {
|
|
16
|
+
docs: {
|
|
17
|
+
description: {
|
|
18
|
+
component: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
argTypes: {
|
|
23
|
+
state: {
|
|
24
|
+
name: string;
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
options: string[];
|
|
29
|
+
};
|
|
30
|
+
label: {
|
|
31
|
+
name: string;
|
|
32
|
+
control: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
initialValue: {
|
|
37
|
+
name: string;
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
helperText: {
|
|
43
|
+
name: string;
|
|
44
|
+
control: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
isMobile: {
|
|
49
|
+
name: string;
|
|
50
|
+
control: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
startIcon: {
|
|
55
|
+
table: {
|
|
56
|
+
disable: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
endIcon: {
|
|
60
|
+
table: {
|
|
61
|
+
disable: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
value: {
|
|
65
|
+
table: {
|
|
66
|
+
disable: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
onChange: {
|
|
70
|
+
table: {
|
|
71
|
+
disable: boolean;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export default _default;
|
|
77
|
+
export declare const Default: {
|
|
78
|
+
({ initialValue, ...args }: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
storyName: string;
|
|
80
|
+
args: {
|
|
81
|
+
state: string;
|
|
82
|
+
label: string;
|
|
83
|
+
initialValue: string;
|
|
84
|
+
helperText: string;
|
|
85
|
+
isMobile: boolean;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export declare const ErrorState: {
|
|
89
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
storyName: string;
|
|
91
|
+
args: {
|
|
92
|
+
state: string;
|
|
93
|
+
label: string;
|
|
94
|
+
initialValue: string;
|
|
95
|
+
helperText: string;
|
|
96
|
+
isMobile: boolean;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export declare const DisabledState: {
|
|
100
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
storyName: string;
|
|
102
|
+
args: {
|
|
103
|
+
state: string;
|
|
104
|
+
label: string;
|
|
105
|
+
helperText: string;
|
|
106
|
+
initialValue: string;
|
|
107
|
+
isMobile: boolean;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export declare const WithIcons: {
|
|
111
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
storyName: string;
|
|
113
|
+
args: {
|
|
114
|
+
state: string;
|
|
115
|
+
label: string;
|
|
116
|
+
initialValue: string;
|
|
117
|
+
helperText: string;
|
|
118
|
+
isMobile: boolean;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
export declare const MobileVersion: {
|
|
122
|
+
(args: StoryArgs): import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
storyName: string;
|
|
124
|
+
args: {
|
|
125
|
+
isMobile: boolean;
|
|
126
|
+
label: string;
|
|
127
|
+
helperText: string;
|
|
128
|
+
state: string;
|
|
129
|
+
initialValue: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface MenuItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface MenuProps {
|
|
10
|
+
/**
|
|
11
|
+
* The text displayed on the main menu button
|
|
12
|
+
*/
|
|
13
|
+
buttonText: string;
|
|
14
|
+
/**
|
|
15
|
+
* Array of menu items to display in the dropdown
|
|
16
|
+
*/
|
|
17
|
+
items: MenuItem[];
|
|
18
|
+
/**
|
|
19
|
+
* Whether the menu is disabled
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Additional CSS classes for the menu container
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Callback fired when menu open state changes
|
|
28
|
+
*/
|
|
29
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the menu is initially open (controlled mode)
|
|
32
|
+
*/
|
|
33
|
+
isOpen?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Aria label for the menu button
|
|
36
|
+
*/
|
|
37
|
+
'aria-label'?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuItem } from '@/components/Menu/Menu';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("@/components/Menu/Menu").MenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
buttonText: {
|
|
15
|
+
name: string;
|
|
16
|
+
control: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
defaultValue: string;
|
|
20
|
+
};
|
|
21
|
+
disabled: {
|
|
22
|
+
name: string;
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
defaultValue: boolean;
|
|
27
|
+
};
|
|
28
|
+
isOpen: {
|
|
29
|
+
name: string;
|
|
30
|
+
control: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
items: {
|
|
35
|
+
name: string;
|
|
36
|
+
control: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
43
|
+
type StoryProps = {
|
|
44
|
+
buttonText: string;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
isOpen?: boolean;
|
|
47
|
+
items: MenuItem[];
|
|
48
|
+
};
|
|
49
|
+
export declare const Playground: {
|
|
50
|
+
(args: StoryProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
storyName: string;
|
|
52
|
+
args: {
|
|
53
|
+
buttonText: string;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
items: MenuItem[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const DefaultMenu: {
|
|
59
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
storyName: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const WithLinks: {
|
|
63
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
storyName: string;
|
|
65
|
+
};
|
|
66
|
+
export declare const WithDisabledItems: {
|
|
67
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
storyName: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const DisabledMenu: {
|
|
71
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
storyName: string;
|
|
73
|
+
};
|
|
74
|
+
export declare const ManyItems: {
|
|
75
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
storyName: string;
|
|
77
|
+
};
|
|
78
|
+
export declare const ControlledMenu: {
|
|
79
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
storyName: string;
|
|
81
|
+
};
|
|
82
|
+
export declare const ResponsiveDemo: {
|
|
83
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
storyName: string;
|
|
85
|
+
};
|
|
86
|
+
export declare const AccessibilityDemo: {
|
|
87
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
storyName: string;
|
|
89
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface UnifiedPaginationProps {
|
|
2
|
+
pageCount: number;
|
|
3
|
+
page?: number;
|
|
4
|
+
defaultPage?: number;
|
|
5
|
+
onPageChange?: (page: number) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
9
|
+
*/
|
|
10
|
+
isMobile?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Pagination: React.FC<UnifiedPaginationProps>;
|