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,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var createLucideIcon = require('./createLucideIcon-BTjFFtDc.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-react v0.522.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const __iconNode = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
14
|
+
const ChevronLeft = createLucideIcon.createLucideIcon("chevron-left", __iconNode);
|
|
15
|
+
|
|
16
|
+
exports.ChevronLeft = ChevronLeft;
|
|
@@ -18,8 +18,8 @@ export interface AccordionProps {
|
|
|
18
18
|
id?: string;
|
|
19
19
|
/** Whether the accordion is disabled */
|
|
20
20
|
disabled?: boolean;
|
|
21
|
-
/** Whether the component is in mobile mode */
|
|
22
|
-
isMobile
|
|
21
|
+
/** Whether the component is in mobile mode (optional, auto-detected if not provided) */
|
|
22
|
+
isMobile?: boolean;
|
|
23
23
|
}
|
|
24
24
|
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
25
|
export { Accordion };
|
|
@@ -8,9 +8,9 @@ export interface BreadcrumbProps {
|
|
|
8
8
|
items: BreadcrumbItem[];
|
|
9
9
|
className?: string;
|
|
10
10
|
/**
|
|
11
|
-
* Whether the component is in mobile mode
|
|
11
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
12
12
|
*/
|
|
13
|
-
isMobile
|
|
13
|
+
isMobile?: boolean;
|
|
14
14
|
}
|
|
15
15
|
declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLElement>>;
|
|
16
16
|
export { Breadcrumb };
|
|
@@ -9,7 +9,7 @@ export interface ChipsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
*/
|
|
10
10
|
size?: 'mobile' | 'desktop';
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* The text or content to display in the chip
|
|
13
13
|
*/
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
/**
|
|
@@ -21,17 +21,17 @@ export interface ChipsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
21
21
|
*/
|
|
22
22
|
onClick?: () => void;
|
|
23
23
|
/**
|
|
24
|
-
* Click handler for the
|
|
24
|
+
* Click handler for the close icon
|
|
25
25
|
*/
|
|
26
26
|
onIconClick?: () => void;
|
|
27
27
|
/**
|
|
28
|
-
* Custom class
|
|
28
|
+
* Custom CSS class
|
|
29
29
|
*/
|
|
30
30
|
className?: string;
|
|
31
31
|
/**
|
|
32
|
-
* Whether the component is in mobile mode
|
|
32
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
33
33
|
*/
|
|
34
|
-
isMobile
|
|
34
|
+
isMobile?: boolean;
|
|
35
35
|
}
|
|
36
36
|
export declare const Chips: React.ForwardRefExoticComponent<ChipsProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
37
|
export default Chips;
|
|
@@ -8,9 +8,9 @@ export type DrawerProps = {
|
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
className?: string;
|
|
10
10
|
/**
|
|
11
|
-
* Whether the component is in mobile mode
|
|
11
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
12
12
|
*/
|
|
13
|
-
isMobile
|
|
13
|
+
isMobile?: boolean;
|
|
14
14
|
};
|
|
15
15
|
declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export { Drawer };
|
|
@@ -6,9 +6,9 @@ export type InputProps = {
|
|
|
6
6
|
startIcon?: ReactNode;
|
|
7
7
|
endIcon?: ReactNode;
|
|
8
8
|
/**
|
|
9
|
-
* Whether the component is in mobile mode
|
|
9
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
10
10
|
*/
|
|
11
|
-
isMobile
|
|
11
|
+
isMobile?: boolean;
|
|
12
12
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'id'>;
|
|
13
13
|
declare const Input: React.ForwardRefExoticComponent<{
|
|
14
14
|
state?: "default" | "disabled" | "error";
|
|
@@ -17,8 +17,8 @@ declare const Input: React.ForwardRefExoticComponent<{
|
|
|
17
17
|
startIcon?: ReactNode;
|
|
18
18
|
endIcon?: ReactNode;
|
|
19
19
|
/**
|
|
20
|
-
* Whether the component is in mobile mode
|
|
20
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
21
21
|
*/
|
|
22
|
-
isMobile
|
|
22
|
+
isMobile?: boolean;
|
|
23
23
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id"> & React.RefAttributes<HTMLInputElement>>;
|
|
24
24
|
export { Input };
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
helperText?: string;
|
|
11
11
|
startIcon?: import("react").ReactNode;
|
|
12
12
|
endIcon?: import("react").ReactNode;
|
|
13
|
-
isMobile
|
|
13
|
+
isMobile?: boolean;
|
|
14
14
|
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "id"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
15
|
parameters: {
|
|
16
16
|
docs: {
|
|
@@ -5,8 +5,8 @@ export interface UnifiedPaginationProps {
|
|
|
5
5
|
onPageChange?: (page: number) => void;
|
|
6
6
|
className?: string;
|
|
7
7
|
/**
|
|
8
|
-
* Whether the component is in mobile mode
|
|
8
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
9
9
|
*/
|
|
10
|
-
isMobile
|
|
10
|
+
isMobile?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare const Pagination: React.FC<UnifiedPaginationProps>;
|
|
@@ -43,9 +43,9 @@ export interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
43
43
|
*/
|
|
44
44
|
className?: string;
|
|
45
45
|
/**
|
|
46
|
-
* Whether the component is in mobile mode
|
|
46
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
47
47
|
*/
|
|
48
|
-
isMobile
|
|
48
|
+
isMobile?: boolean;
|
|
49
49
|
/**
|
|
50
50
|
* Layout direction of radio options
|
|
51
51
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
7
|
+
label: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
helperText?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.ForwardRefExoticComponent<import("@/components/Select/Select").SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
label: {
|
|
14
|
+
name: string;
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
};
|
|
20
|
+
placeholder: {
|
|
21
|
+
name: string;
|
|
22
|
+
control: {
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
defaultValue: string;
|
|
26
|
+
};
|
|
27
|
+
value: {
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
control: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
options: string[];
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
name: string;
|
|
37
|
+
control: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
defaultValue: boolean;
|
|
41
|
+
};
|
|
42
|
+
error: {
|
|
43
|
+
name: string;
|
|
44
|
+
control: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
defaultValue: boolean;
|
|
48
|
+
};
|
|
49
|
+
helperText: {
|
|
50
|
+
name: string;
|
|
51
|
+
control: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
58
|
+
type StoryProps = {
|
|
59
|
+
label: string;
|
|
60
|
+
placeholder: string;
|
|
61
|
+
value: string;
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
error: boolean;
|
|
64
|
+
helperText?: string;
|
|
65
|
+
};
|
|
66
|
+
export declare const Playground: {
|
|
67
|
+
(args: StoryProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
storyName: string;
|
|
69
|
+
args: {
|
|
70
|
+
label: string;
|
|
71
|
+
placeholder: string;
|
|
72
|
+
value: string;
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
error: boolean;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare const BasicUsage: {
|
|
78
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
storyName: string;
|
|
80
|
+
};
|
|
81
|
+
export declare const States: {
|
|
82
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
storyName: string;
|
|
84
|
+
};
|
|
85
|
+
export declare const WithHelperText: {
|
|
86
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
storyName: string;
|
|
88
|
+
};
|
|
89
|
+
export declare const MobileView: {
|
|
90
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
storyName: string;
|
|
92
|
+
};
|
|
93
|
+
export declare const LongList: {
|
|
94
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
storyName: string;
|
|
96
|
+
};
|
|
97
|
+
export declare const MultipleSelects: {
|
|
98
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
storyName: string;
|
|
100
|
+
};
|
|
101
|
+
export declare const ControlledVsUncontrolled: {
|
|
102
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
storyName: string;
|
|
104
|
+
};
|
|
@@ -35,9 +35,9 @@ export interface TabsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
35
35
|
*/
|
|
36
36
|
className?: string;
|
|
37
37
|
/**
|
|
38
|
-
* Whether the component is in mobile mode
|
|
38
|
+
* Whether the component is in mobile mode (optional, auto-detected if not provided)
|
|
39
39
|
*/
|
|
40
|
-
isMobile
|
|
40
|
+
isMobile?: boolean;
|
|
41
41
|
}
|
|
42
42
|
declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
43
|
export { Tabs };
|
|
@@ -9,4 +9,5 @@ interface MobileProviderProps {
|
|
|
9
9
|
}
|
|
10
10
|
declare const MobileContext: import("react").Context<MobileContextValue | undefined>;
|
|
11
11
|
export declare const MobileProvider: ({ userAgent, children, }: MobileProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const useMobile: () => boolean;
|
|
12
13
|
export default MobileContext;
|