automoby-kit 1.0.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.
Files changed (39) hide show
  1. package/README.md +172 -0
  2. package/dist/index.cjs.js +3022 -0
  3. package/dist/index.cjs.js.map +1 -0
  4. package/dist/index.esm.js +3006 -0
  5. package/dist/index.esm.js.map +1 -0
  6. package/dist/types/components/Accordion/Accordion.d.ts +25 -0
  7. package/dist/types/components/Accordion/Accordion.stories.d.ts +174 -0
  8. package/dist/types/components/Backdrop/Backdrop.d.ts +20 -0
  9. package/dist/types/components/Backdrop/Backdrop.stories.d.ts +9 -0
  10. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +13 -0
  11. package/dist/types/components/Breadcrumb/Breadcrumb.stories.d.ts +176 -0
  12. package/dist/types/components/Button/Button.d.ts +13 -0
  13. package/dist/types/components/Button/Button.stories.d.ts +100 -0
  14. package/dist/types/components/Chips/Chips.d.ts +37 -0
  15. package/dist/types/components/Chips/Chips.stories.d.ts +90 -0
  16. package/dist/types/components/Divider/Divider.d.ts +25 -0
  17. package/dist/types/components/Divider/Divider.stories.d.ts +88 -0
  18. package/dist/types/components/Drawer/Drawer.d.ts +12 -0
  19. package/dist/types/components/Drawer/Drawer.stories.d.ts +115 -0
  20. package/dist/types/components/Input/Input.d.ts +16 -0
  21. package/dist/types/components/Input/Input.stories.d.ts +130 -0
  22. package/dist/types/components/Menu/Menu.d.ts +39 -0
  23. package/dist/types/components/Menu/Menu.stories.d.ts +89 -0
  24. package/dist/types/components/Pagination/Pagination.d.ts +8 -0
  25. package/dist/types/components/Pagination/Pagination.stories.d.ts +61 -0
  26. package/dist/types/components/ProtectedComponent.d.ts +5 -0
  27. package/dist/types/components/RadioGroup/RadioGroup.d.ts +55 -0
  28. package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts +86 -0
  29. package/dist/types/components/Tabs/Tabs.d.ts +43 -0
  30. package/dist/types/components/Tabs/Tabs.stories.d.ts +66 -0
  31. package/dist/types/components/Typography/Typography.d.ts +9 -0
  32. package/dist/types/components/Typography/Typography.stories.d.ts +57 -0
  33. package/dist/types/contexts/MobileContext.d.ts +13 -0
  34. package/dist/types/contexts/index.d.ts +2 -0
  35. package/dist/types/index.d.ts +33 -0
  36. package/dist/types/licensing/LicenseManager.d.ts +41 -0
  37. package/dist/types/licensing/index.d.ts +30 -0
  38. package/dist/types/utils/cn.d.ts +2 -0
  39. package/package.json +90 -0
@@ -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,12 @@
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
+ declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
12
+ export { Drawer };
@@ -0,0 +1,115 @@
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
+ children: {
36
+ table: {
37
+ disable: boolean;
38
+ };
39
+ };
40
+ onClose: {
41
+ table: {
42
+ disable: boolean;
43
+ };
44
+ };
45
+ className: {
46
+ table: {
47
+ disable: boolean;
48
+ };
49
+ };
50
+ };
51
+ };
52
+ export default _default;
53
+ export declare const Default: {
54
+ ({ triggerButtonText, ...args }: StoryArgs): import("react/jsx-runtime").JSX.Element;
55
+ storyName: string;
56
+ args: {
57
+ direction: string;
58
+ fullScreen: boolean;
59
+ triggerButtonText: string;
60
+ };
61
+ };
62
+ export declare const TopDirection: {
63
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
64
+ storyName: string;
65
+ args: {
66
+ direction: string;
67
+ triggerButtonText: string;
68
+ fullScreen: boolean;
69
+ };
70
+ };
71
+ export declare const LeftDirection: {
72
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
73
+ storyName: string;
74
+ args: {
75
+ direction: string;
76
+ triggerButtonText: string;
77
+ fullScreen: boolean;
78
+ };
79
+ };
80
+ export declare const RightDirection: {
81
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
82
+ storyName: string;
83
+ args: {
84
+ direction: string;
85
+ triggerButtonText: string;
86
+ fullScreen: boolean;
87
+ };
88
+ };
89
+ export declare const FullScreenDrawer: {
90
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
91
+ storyName: string;
92
+ args: {
93
+ fullScreen: boolean;
94
+ triggerButtonText: string;
95
+ direction: string;
96
+ };
97
+ };
98
+ export declare const NavigationDrawer: {
99
+ ({ triggerButtonText, ...args }: StoryArgs): import("react/jsx-runtime").JSX.Element;
100
+ storyName: string;
101
+ args: {
102
+ direction: string;
103
+ fullScreen: boolean;
104
+ triggerButtonText: string;
105
+ };
106
+ };
107
+ export declare const MobileVersion: {
108
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
109
+ storyName: string;
110
+ args: {
111
+ direction: string;
112
+ triggerButtonText: string;
113
+ fullScreen: boolean;
114
+ };
115
+ };
@@ -0,0 +1,16 @@
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
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'id'>;
9
+ declare const Input: React.ForwardRefExoticComponent<{
10
+ state?: "default" | "disabled" | "error";
11
+ label: string;
12
+ helperText?: string;
13
+ startIcon?: ReactNode;
14
+ endIcon?: ReactNode;
15
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id"> & React.RefAttributes<HTMLInputElement>>;
16
+ export { Input };
@@ -0,0 +1,130 @@
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
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "id"> & import("react").RefAttributes<HTMLInputElement>>;
14
+ parameters: {
15
+ docs: {
16
+ description: {
17
+ component: string;
18
+ };
19
+ };
20
+ };
21
+ argTypes: {
22
+ state: {
23
+ name: string;
24
+ control: {
25
+ type: string;
26
+ };
27
+ options: string[];
28
+ };
29
+ label: {
30
+ name: string;
31
+ control: {
32
+ type: string;
33
+ };
34
+ };
35
+ initialValue: {
36
+ name: string;
37
+ control: {
38
+ type: string;
39
+ };
40
+ };
41
+ helperText: {
42
+ name: string;
43
+ control: {
44
+ type: string;
45
+ };
46
+ };
47
+ isMobile: {
48
+ name: string;
49
+ control: {
50
+ type: string;
51
+ };
52
+ };
53
+ startIcon: {
54
+ table: {
55
+ disable: boolean;
56
+ };
57
+ };
58
+ endIcon: {
59
+ table: {
60
+ disable: boolean;
61
+ };
62
+ };
63
+ value: {
64
+ table: {
65
+ disable: boolean;
66
+ };
67
+ };
68
+ onChange: {
69
+ table: {
70
+ disable: boolean;
71
+ };
72
+ };
73
+ };
74
+ };
75
+ export default _default;
76
+ export declare const Default: {
77
+ ({ initialValue, ...args }: StoryArgs): import("react/jsx-runtime").JSX.Element;
78
+ storyName: string;
79
+ args: {
80
+ state: string;
81
+ label: string;
82
+ initialValue: string;
83
+ helperText: string;
84
+ isMobile: boolean;
85
+ };
86
+ };
87
+ export declare const ErrorState: {
88
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
89
+ storyName: string;
90
+ args: {
91
+ state: string;
92
+ label: string;
93
+ initialValue: string;
94
+ helperText: string;
95
+ isMobile: boolean;
96
+ };
97
+ };
98
+ export declare const DisabledState: {
99
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
100
+ storyName: string;
101
+ args: {
102
+ state: string;
103
+ label: string;
104
+ helperText: string;
105
+ initialValue: string;
106
+ isMobile: boolean;
107
+ };
108
+ };
109
+ export declare const WithIcons: {
110
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
111
+ storyName: string;
112
+ args: {
113
+ state: string;
114
+ label: string;
115
+ initialValue: string;
116
+ helperText: string;
117
+ isMobile: boolean;
118
+ };
119
+ };
120
+ export declare const MobileVersion: {
121
+ (args: StoryArgs): import("react/jsx-runtime").JSX.Element;
122
+ storyName: string;
123
+ args: {
124
+ isMobile: boolean;
125
+ label: string;
126
+ helperText: string;
127
+ state: string;
128
+ initialValue: string;
129
+ };
130
+ };
@@ -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,8 @@
1
+ export interface UnifiedPaginationProps {
2
+ pageCount: number;
3
+ page?: number;
4
+ defaultPage?: number;
5
+ onPageChange?: (page: number) => void;
6
+ className?: string;
7
+ }
8
+ export declare const Pagination: React.FC<UnifiedPaginationProps>;
@@ -0,0 +1,61 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: import("react").FC<import("@/components/Pagination/Pagination").UnifiedPaginationProps>;
4
+ parameters: {
5
+ docs: {
6
+ description: {
7
+ component: string;
8
+ };
9
+ };
10
+ };
11
+ argTypes: {
12
+ pageCount: {
13
+ name: string;
14
+ control: {
15
+ type: string;
16
+ min: number;
17
+ max: number;
18
+ };
19
+ defaultValue: number;
20
+ };
21
+ defaultPage: {
22
+ name: string;
23
+ control: {
24
+ type: string;
25
+ min: number;
26
+ max: number;
27
+ };
28
+ defaultValue: number;
29
+ };
30
+ page: {
31
+ name: string;
32
+ control: {
33
+ type: string;
34
+ min: number;
35
+ max: number;
36
+ };
37
+ defaultValue: undefined;
38
+ };
39
+ };
40
+ };
41
+ export default _default;
42
+ type StoryProps = {
43
+ pageCount: number;
44
+ defaultPage: number;
45
+ };
46
+ export declare const Uncontrolled: {
47
+ ({ pageCount, defaultPage }: StoryProps): import("react/jsx-runtime").JSX.Element;
48
+ storyName: string;
49
+ args: {
50
+ pageCount: number;
51
+ defaultPage: number;
52
+ };
53
+ };
54
+ export declare const Controlled: {
55
+ ({ pageCount, defaultPage }: StoryProps): import("react/jsx-runtime").JSX.Element;
56
+ storyName: string;
57
+ args: {
58
+ pageCount: number;
59
+ defaultPage: number;
60
+ };
61
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ /**
3
+ * Higher-order component that protects components with license validation
4
+ */
5
+ export declare function withLicenseProtection<T extends object>(Component: React.ComponentType<T>, componentName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<unknown>>;
@@ -0,0 +1,55 @@
1
+ import React from 'react';
2
+ export interface RadioOption {
3
+ /**
4
+ * Unique identifier for the radio option
5
+ */
6
+ id: string;
7
+ /**
8
+ * Display label for the option
9
+ */
10
+ label: string;
11
+ /**
12
+ * Optional icon element
13
+ */
14
+ icon?: React.ReactNode;
15
+ /**
16
+ * Whether this option is disabled
17
+ */
18
+ disabled?: boolean;
19
+ }
20
+ export interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
21
+ /**
22
+ * Array of radio options
23
+ */
24
+ options: RadioOption[];
25
+ /**
26
+ * Currently selected option ID
27
+ */
28
+ value?: string;
29
+ /**
30
+ * Callback when selection changes
31
+ */
32
+ onChange?: (value: string) => void;
33
+ /**
34
+ * Name attribute for the radio group
35
+ */
36
+ name: string;
37
+ /**
38
+ * Whether the entire group is disabled
39
+ */
40
+ disabled?: boolean;
41
+ /**
42
+ * Custom class name
43
+ */
44
+ className?: string;
45
+ /**
46
+ * Override mobile detection for testing
47
+ */
48
+ isMobile?: boolean;
49
+ /**
50
+ * Layout direction of radio options
51
+ */
52
+ direction?: 'vertical' | 'horizontal';
53
+ }
54
+ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
55
+ export { RadioGroup };