@akad/design-system 0.0.1-beta.14
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/css/aon-theme.css +1 -0
- package/css/bees-theme.css +1 -0
- package/css/bmc-theme.css +1 -0
- package/css/default-theme.css +1 -0
- package/css/linker-theme.css +1 -0
- package/css/oggi-theme.css +1 -0
- package/css/package.json +5 -0
- package/css/streetgo-theme.css +1 -0
- package/css/vite.svg +1 -0
- package/package.json +11 -0
- package/react/components/atoms/Button/Button.config.d.ts +94 -0
- package/react/components/atoms/Button/Button.d.ts +35 -0
- package/react/components/atoms/Button/Button.stories.d.ts +17 -0
- package/react/components/atoms/Button/Button.test.d.ts +1 -0
- package/react/components/atoms/Button/index.d.ts +4 -0
- package/react/components/atoms/Caption/Caption.config.d.ts +6 -0
- package/react/components/atoms/Caption/Caption.d.ts +18 -0
- package/react/components/atoms/Caption/Caption.stories.d.ts +9 -0
- package/react/components/atoms/Caption/Caption.test.d.ts +1 -0
- package/react/components/atoms/Caption/index.d.ts +4 -0
- package/react/components/atoms/Card/Card.config.d.ts +76 -0
- package/react/components/atoms/Card/Card.d.ts +23 -0
- package/react/components/atoms/Card/Card.stories.d.ts +23 -0
- package/react/components/atoms/Card/Card.test.d.ts +1 -0
- package/react/components/atoms/Card/index.d.ts +4 -0
- package/react/components/atoms/Checkbox/Checkbox.config.d.ts +62 -0
- package/react/components/atoms/Checkbox/Checkbox.d.ts +5 -0
- package/react/components/atoms/Checkbox/Checkbox.stories.d.ts +23 -0
- package/react/components/atoms/Checkbox/Checkbox.test.d.ts +1 -0
- package/react/components/atoms/Checkbox/index.d.ts +5 -0
- package/react/components/atoms/Heading/Heading.config.d.ts +23 -0
- package/react/components/atoms/Heading/Heading.d.ts +19 -0
- package/react/components/atoms/Heading/Heading.stories.d.ts +48 -0
- package/react/components/atoms/Heading/Heading.test.d.ts +1 -0
- package/react/components/atoms/Heading/index.d.ts +4 -0
- package/react/components/atoms/HorizontalRule/HorizontalRule.config.d.ts +32 -0
- package/react/components/atoms/HorizontalRule/HorizontalRule.d.ts +15 -0
- package/react/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +9 -0
- package/react/components/atoms/HorizontalRule/HorizontalRule.test.d.ts +1 -0
- package/react/components/atoms/HorizontalRule/index.d.ts +4 -0
- package/react/components/atoms/Icon/Icon.config.d.ts +129 -0
- package/react/components/atoms/Icon/Icon.d.ts +35 -0
- package/react/components/atoms/Icon/Icon.stories.d.ts +19 -0
- package/react/components/atoms/Icon/Icon.test.d.ts +1 -0
- package/react/components/atoms/Icon/index.d.ts +4 -0
- package/react/components/atoms/Input/Input.config.d.ts +151 -0
- package/react/components/atoms/Input/Input.d.ts +30 -0
- package/react/components/atoms/Input/Input.stories.d.ts +23 -0
- package/react/components/atoms/Input/Input.test.d.ts +1 -0
- package/react/components/atoms/Input/index.d.ts +4 -0
- package/react/components/atoms/Input/mask.d.ts +42 -0
- package/react/components/atoms/Loading/Loading.config.d.ts +54 -0
- package/react/components/atoms/Loading/Loading.d.ts +24 -0
- package/react/components/atoms/Loading/Loading.stories.d.ts +11 -0
- package/react/components/atoms/Loading/Loading.test.d.ts +1 -0
- package/react/components/atoms/Loading/index.d.ts +4 -0
- package/react/components/atoms/Option/Option.config.d.ts +53 -0
- package/react/components/atoms/Option/Option.d.ts +30 -0
- package/react/components/atoms/Option/Option.stories.d.ts +12 -0
- package/react/components/atoms/Option/Option.test.d.ts +1 -0
- package/react/components/atoms/Option/index.d.ts +4 -0
- package/react/components/atoms/Paragraph/Paragraph.config.d.ts +20 -0
- package/react/components/atoms/Paragraph/Paragraph.d.ts +19 -0
- package/react/components/atoms/Paragraph/Paragraph.stories.d.ts +21 -0
- package/react/components/atoms/Paragraph/Paragraph.test.d.ts +1 -0
- package/react/components/atoms/Paragraph/index.d.ts +4 -0
- package/react/components/atoms/Progress/Progress.config.d.ts +31 -0
- package/react/components/atoms/Progress/Progress.d.ts +16 -0
- package/react/components/atoms/Progress/Progress.stories.d.ts +13 -0
- package/react/components/atoms/Progress/Progress.test.d.ts +1 -0
- package/react/components/atoms/Progress/index.d.ts +4 -0
- package/react/components/atoms/Select/Select.config.d.ts +125 -0
- package/react/components/atoms/Select/Select.d.ts +25 -0
- package/react/components/atoms/Select/Select.stories.d.ts +27 -0
- package/react/components/atoms/Select/Select.test.d.ts +1 -0
- package/react/components/atoms/Select/index.d.ts +4 -0
- package/react/components/atoms/Subtitle/Subtitle.config.d.ts +19 -0
- package/react/components/atoms/Subtitle/Subtitle.d.ts +13 -0
- package/react/components/atoms/Subtitle/Subtitle.stories.d.ts +23 -0
- package/react/components/atoms/Subtitle/Subtitle.test.d.ts +1 -0
- package/react/components/atoms/Subtitle/index.d.ts +4 -0
- package/react/components/atoms/TextArea/TextArea.config.d.ts +132 -0
- package/react/components/atoms/TextArea/TextArea.d.ts +31 -0
- package/react/components/atoms/TextArea/TextArea.stories.d.ts +27 -0
- package/react/components/atoms/TextArea/TextArea.test.d.ts +1 -0
- package/react/components/atoms/TextArea/index.d.ts +4 -0
- package/react/components/atoms/Tooltip/Tooltip.config.d.ts +38 -0
- package/react/components/atoms/Tooltip/Tooltip.d.ts +20 -0
- package/react/components/atoms/Tooltip/Tooltip.stories.d.ts +46 -0
- package/react/components/atoms/Tooltip/Tooltip.test.d.ts +1 -0
- package/react/components/atoms/Tooltip/index.d.ts +4 -0
- package/react/components/bosons/Container/Container.config.d.ts +13 -0
- package/react/components/bosons/Container/Container.d.ts +20 -0
- package/react/components/bosons/Container/Container.stories.d.ts +20 -0
- package/react/components/bosons/Container/Container.test.d.ts +1 -0
- package/react/components/bosons/Container/index.d.ts +4 -0
- package/react/components/bosons/FlexLayout/FlexElement.config.d.ts +20 -0
- package/react/components/bosons/FlexLayout/FlexElement.d.ts +27 -0
- package/react/components/bosons/FlexLayout/FlexLayout.config.d.ts +100 -0
- package/react/components/bosons/FlexLayout/FlexLayout.d.ts +28 -0
- package/react/components/bosons/FlexLayout/FlexLayout.stories.d.ts +20 -0
- package/react/components/bosons/FlexLayout/FlexLayout.test.d.ts +1 -0
- package/react/components/bosons/FlexLayout/index.d.ts +5 -0
- package/react/components/bosons/GridLayout/GridElement.config.d.ts +17 -0
- package/react/components/bosons/GridLayout/GridElement.d.ts +9 -0
- package/react/components/bosons/GridLayout/GridElement.test.d.ts +1 -0
- package/react/components/bosons/GridLayout/GridLayout.config.d.ts +82 -0
- package/react/components/bosons/GridLayout/GridLayout.d.ts +29 -0
- package/react/components/bosons/GridLayout/GridLayout.stories.d.ts +12 -0
- package/react/components/bosons/GridLayout/GridLayout.test.d.ts +1 -0
- package/react/components/bosons/GridLayout/index.d.ts +5 -0
- package/react/components/bosons/Spacer/Spacer.config.d.ts +25 -0
- package/react/components/bosons/Spacer/Spacer.d.ts +15 -0
- package/react/components/bosons/Spacer/Spacer.stories.d.ts +15 -0
- package/react/components/bosons/Spacer/Spacer.test.d.ts +1 -0
- package/react/components/bosons/Spacer/index.d.ts +4 -0
- package/react/components/bosons/Wrapper/Wrapper.config.d.ts +28 -0
- package/react/components/bosons/Wrapper/Wrapper.d.ts +15 -0
- package/react/components/bosons/Wrapper/Wrapper.stories.d.ts +21 -0
- package/react/components/bosons/Wrapper/Wrapper.test.d.ts +1 -0
- package/react/components/bosons/Wrapper/index.d.ts +4 -0
- package/react/components/index.d.ts +37 -0
- package/react/components/molecules/Accordion/Accordion.config.d.ts +25 -0
- package/react/components/molecules/Accordion/Accordion.d.ts +17 -0
- package/react/components/molecules/Accordion/Accordion.stories.d.ts +9 -0
- package/react/components/molecules/Accordion/Accordion.test.d.ts +1 -0
- package/react/components/molecules/Accordion/AccordionItem.config.d.ts +28 -0
- package/react/components/molecules/Accordion/AccordionItem.d.ts +14 -0
- package/react/components/molecules/Accordion/index.d.ts +5 -0
- package/react/components/molecules/ActiveTags/ActiveTags.config.d.ts +23 -0
- package/react/components/molecules/ActiveTags/ActiveTags.d.ts +16 -0
- package/react/components/molecules/ActiveTags/ActiveTags.stories.d.ts +17 -0
- package/react/components/molecules/ActiveTags/ActiveTags.test.d.ts +1 -0
- package/react/components/molecules/ActiveTags/index.d.ts +4 -0
- package/react/components/molecules/EditableSelect/EditableSelect.config.d.ts +105 -0
- package/react/components/molecules/EditableSelect/EditableSelect.d.ts +26 -0
- package/react/components/molecules/EditableSelect/EditableSelect.stories.d.ts +24 -0
- package/react/components/molecules/EditableSelect/EditableSelect.test.d.ts +1 -0
- package/react/components/molecules/EditableSelect/index.d.ts +4 -0
- package/react/components/molecules/Indicator/Indicator.config.d.ts +18 -0
- package/react/components/molecules/Indicator/Indicator.d.ts +6 -0
- package/react/components/molecules/Indicator/Indicator.stories.d.ts +12 -0
- package/react/components/molecules/Indicator/Indicator.test.d.ts +1 -0
- package/react/components/molecules/Indicator/index.d.ts +4 -0
- package/react/components/molecules/InlineEditable/InlineEditable.config.d.ts +73 -0
- package/react/components/molecules/InlineEditable/InlineEditable.d.ts +20 -0
- package/react/components/molecules/InlineEditable/InlineEditable.stories.d.ts +17 -0
- package/react/components/molecules/InlineEditable/InlineEditable.test.d.ts +1 -0
- package/react/components/molecules/InlineEditable/index.d.ts +4 -0
- package/react/components/molecules/Modal/Modal.config.d.ts +41 -0
- package/react/components/molecules/Modal/Modal.d.ts +31 -0
- package/react/components/molecules/Modal/Modal.stories.d.ts +45 -0
- package/react/components/molecules/Modal/Modal.test.d.ts +1 -0
- package/react/components/molecules/Modal/index.d.ts +4 -0
- package/react/components/molecules/Notification/Notification.config.d.ts +77 -0
- package/react/components/molecules/Notification/Notification.d.ts +7 -0
- package/react/components/molecules/Notification/Notification.stories.d.ts +90 -0
- package/react/components/molecules/Notification/Notification.test.d.ts +1 -0
- package/react/components/molecules/Notification/index.d.ts +5 -0
- package/react/components/molecules/PasswordConfirmation/PasswordConfirmartion.test.d.ts +1 -0
- package/react/components/molecules/PasswordConfirmation/PasswordConfirmation.config.d.ts +27 -0
- package/react/components/molecules/PasswordConfirmation/PasswordConfirmation.d.ts +31 -0
- package/react/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +14 -0
- package/react/components/molecules/PasswordConfirmation/index.d.ts +4 -0
- package/react/components/molecules/Stepper/Stepper.config.d.ts +18 -0
- package/react/components/molecules/Stepper/Stepper.d.ts +12 -0
- package/react/components/molecules/Stepper/Stepper.stories.d.ts +23 -0
- package/react/components/molecules/Stepper/Stepper.test.d.ts +1 -0
- package/react/components/molecules/Stepper/index.d.ts +4 -0
- package/react/components/molecules/Table/Table.config.d.ts +23 -0
- package/react/components/molecules/Table/Table.d.ts +7 -0
- package/react/components/molecules/Table/Table.stories.d.ts +12 -0
- package/react/components/molecules/Table/Table.test.d.ts +1 -0
- package/react/components/molecules/Table/Table.types.d.ts +21 -0
- package/react/components/molecules/Table/TableRow.d.ts +7 -0
- package/react/components/molecules/Table/dataTable.mock.d.ts +5 -0
- package/react/components/molecules/Table/index.d.ts +5 -0
- package/react/components/molecules/Tabs/Tab.d.ts +5 -0
- package/react/components/molecules/Tabs/Tab.test.d.ts +1 -0
- package/react/components/molecules/Tabs/Tabs.config.d.ts +45 -0
- package/react/components/molecules/Tabs/Tabs.d.ts +12 -0
- package/react/components/molecules/Tabs/Tabs.stories.d.ts +24 -0
- package/react/components/molecules/Tabs/Tabs.test.d.ts +1 -0
- package/react/components/molecules/Tabs/index.d.ts +6 -0
- package/react/components/molecules/ThemeProvider/ThemeProvider.config.d.ts +30 -0
- package/react/components/molecules/ThemeProvider/ThemeProvider.d.ts +17 -0
- package/react/components/molecules/ThemeProvider/ThemeProvider.test.d.ts +1 -0
- package/react/components/molecules/ThemeProvider/index.d.ts +4 -0
- package/react/components/organisms/NotificationList/NotificationList.config.d.ts +33 -0
- package/react/components/organisms/NotificationList/NotificationList.d.ts +21 -0
- package/react/components/organisms/NotificationList/NotificationList.stories.d.ts +27 -0
- package/react/components/organisms/NotificationList/NotificationList.test.d.ts +1 -0
- package/react/components/organisms/NotificationList/index.d.ts +4 -0
- package/react/components/templates/TwoColumns/TwoColumns.config.d.ts +7 -0
- package/react/components/templates/TwoColumns/TwoColumns.d.ts +19 -0
- package/react/components/templates/TwoColumns/TwoColumns.test.d.ts +1 -0
- package/react/components/templates/TwoColumns/index.d.ts +5 -0
- package/react/decorators/storybook.d.ts +3 -0
- package/react/decorators/storybook.test.d.ts +1 -0
- package/react/main.d.ts +1 -0
- package/react/package.json +13 -0
- package/react/react-lib.js +6816 -0
- package/react/react-lib.umd.cjs +20 -0
- package/react/types/types.d.ts +43 -0
- package/react/vite.svg +1 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DsSubtitleProps } from '.';
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const ComponentProps: Meta;
|
|
5
|
+
export default ComponentProps;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSubtitleProps>;
|
|
8
|
+
args: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const Small: {
|
|
13
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSubtitleProps>;
|
|
14
|
+
args: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const Large: {
|
|
19
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSubtitleProps>;
|
|
20
|
+
args: {
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
export declare const Size: {
|
|
2
|
+
readonly Small: "small";
|
|
3
|
+
readonly Medium: "medium";
|
|
4
|
+
readonly Large: "large";
|
|
5
|
+
};
|
|
6
|
+
export type Size = (typeof Size)[keyof typeof Size];
|
|
7
|
+
export declare const Type: {
|
|
8
|
+
readonly Text: "text";
|
|
9
|
+
};
|
|
10
|
+
export type Type = (typeof Type)[keyof typeof Type];
|
|
11
|
+
export declare const Status: {
|
|
12
|
+
readonly None: "";
|
|
13
|
+
readonly Error: "error";
|
|
14
|
+
readonly Success: "success";
|
|
15
|
+
};
|
|
16
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
17
|
+
export declare const Resize: {
|
|
18
|
+
readonly None: "none";
|
|
19
|
+
readonly Both: "both";
|
|
20
|
+
readonly Horizontal: "horizontal";
|
|
21
|
+
readonly Vertical: "vertical";
|
|
22
|
+
readonly Block: "block";
|
|
23
|
+
readonly Inline: "inline";
|
|
24
|
+
};
|
|
25
|
+
export type Resize = (typeof Resize)[keyof typeof Resize];
|
|
26
|
+
export interface NameProps {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
required: true;
|
|
29
|
+
}
|
|
30
|
+
export interface TestIdProps {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
}
|
|
34
|
+
export interface TypeProps {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: Type;
|
|
37
|
+
options: Type[];
|
|
38
|
+
}
|
|
39
|
+
export interface AnimatedProps {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface DisabledProps {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface SizeProps {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: Size;
|
|
50
|
+
options: Size[];
|
|
51
|
+
}
|
|
52
|
+
export interface LabelProps {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
}
|
|
56
|
+
export interface PlaceholderProps {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ValueProps {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
}
|
|
64
|
+
export interface MinLengthProps {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
default: number | undefined;
|
|
67
|
+
}
|
|
68
|
+
export interface MaxLengthProps {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: number | undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface RowsProps {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: number;
|
|
75
|
+
}
|
|
76
|
+
export interface StatusProps {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: Status;
|
|
79
|
+
options: Status[];
|
|
80
|
+
}
|
|
81
|
+
export interface FeedbackProps {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
}
|
|
85
|
+
export interface DescriptionProps {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
}
|
|
89
|
+
export interface IconProps {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
}
|
|
93
|
+
export interface TooltipProps {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
}
|
|
97
|
+
export interface ResizeProps {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: Resize;
|
|
100
|
+
options: Resize[];
|
|
101
|
+
}
|
|
102
|
+
export interface OnChangeHandlerProps {
|
|
103
|
+
type: FunctionConstructor;
|
|
104
|
+
default: () => void;
|
|
105
|
+
}
|
|
106
|
+
export interface TextAreaConfig {
|
|
107
|
+
name: string;
|
|
108
|
+
class: string;
|
|
109
|
+
props: {
|
|
110
|
+
name: NameProps;
|
|
111
|
+
testId: TestIdProps;
|
|
112
|
+
type: TypeProps;
|
|
113
|
+
animated: AnimatedProps;
|
|
114
|
+
disabled: DisabledProps;
|
|
115
|
+
size: SizeProps;
|
|
116
|
+
label: LabelProps;
|
|
117
|
+
placeholder: PlaceholderProps;
|
|
118
|
+
value: ValueProps;
|
|
119
|
+
minLength: MinLengthProps;
|
|
120
|
+
maxLength: MaxLengthProps;
|
|
121
|
+
rows: RowsProps;
|
|
122
|
+
status: StatusProps;
|
|
123
|
+
feedback: FeedbackProps;
|
|
124
|
+
description: DescriptionProps;
|
|
125
|
+
icon: IconProps;
|
|
126
|
+
tooltip: TooltipProps;
|
|
127
|
+
resize: ResizeProps;
|
|
128
|
+
onChangeHandler: OnChangeHandlerProps;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
declare const TextAreaConfig: TextAreaConfig;
|
|
132
|
+
export default TextAreaConfig;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface DsTextAreaProps extends React.HTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
name?: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
animated?: boolean;
|
|
8
|
+
size?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value?: string | undefined | null;
|
|
12
|
+
minLength?: number;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
rows?: number;
|
|
15
|
+
cols?: number;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
status?: string;
|
|
19
|
+
feedback?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
onChangeHandler?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
23
|
+
onBlurHandler?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
24
|
+
onKeyDownHandler?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
25
|
+
onFocusHandler?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
26
|
+
resize: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
}
|
|
30
|
+
declare const DsTextArea: React.ForwardRefExoticComponent<DsTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
31
|
+
export default DsTextArea;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ThemeProviderProps } from '../../molecules/ThemeProvider';
|
|
2
|
+
import { DsTextAreaProps } from '.';
|
|
3
|
+
import { Meta } from '@storybook/react';
|
|
4
|
+
|
|
5
|
+
declare const ComponentProps: Meta;
|
|
6
|
+
export default ComponentProps;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsTextAreaProps>;
|
|
9
|
+
args: {
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
value: string;
|
|
14
|
+
minLength: number | undefined;
|
|
15
|
+
maxLength: number | undefined;
|
|
16
|
+
rows: number;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
animated: boolean;
|
|
19
|
+
size: import('./TextArea.config').Size;
|
|
20
|
+
icon: string;
|
|
21
|
+
tooltip: string;
|
|
22
|
+
status: import('./TextArea.config').Status;
|
|
23
|
+
feedback: string;
|
|
24
|
+
resize: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const Position: {
|
|
2
|
+
readonly Top: "top";
|
|
3
|
+
readonly Right: "right";
|
|
4
|
+
readonly Bottom: "bottom";
|
|
5
|
+
readonly Left: "left";
|
|
6
|
+
};
|
|
7
|
+
export type Position = (typeof Position)[keyof typeof Position];
|
|
8
|
+
export declare const Placement: {
|
|
9
|
+
readonly Center: "center";
|
|
10
|
+
readonly End: "end";
|
|
11
|
+
readonly Initial: "initial";
|
|
12
|
+
};
|
|
13
|
+
export type Placement = (typeof Placement)[keyof typeof Placement];
|
|
14
|
+
export interface PositionProps {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: Position;
|
|
17
|
+
options: Position[];
|
|
18
|
+
}
|
|
19
|
+
export interface PlacementProps {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: Placement;
|
|
22
|
+
options: Placement[];
|
|
23
|
+
}
|
|
24
|
+
export interface TextProps {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
}
|
|
28
|
+
export interface TooltipConfig {
|
|
29
|
+
name: string;
|
|
30
|
+
class: string;
|
|
31
|
+
props: {
|
|
32
|
+
position: PositionProps;
|
|
33
|
+
placement: PlacementProps;
|
|
34
|
+
text: TextProps;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
declare const TooltipConfig: TooltipConfig;
|
|
38
|
+
export default TooltipConfig;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { default as PropTypes } from 'prop-types';
|
|
3
|
+
|
|
4
|
+
export interface DsTooltipProps {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
position?: string;
|
|
7
|
+
placement?: string;
|
|
8
|
+
text?: string | ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const DsTooltip: {
|
|
12
|
+
({ children, position, placement, text, className, }: DsTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
|
+
position: PropTypes.Requireable<string>;
|
|
15
|
+
placement: PropTypes.Requireable<string>;
|
|
16
|
+
text: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
17
|
+
};
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
export default DsTooltip;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DsTooltipProps } from '.';
|
|
2
|
+
import { DsIconProps } from '../Icon';
|
|
3
|
+
import { Meta } from '@storybook/react';
|
|
4
|
+
|
|
5
|
+
declare const ComponentProps: Meta;
|
|
6
|
+
export default ComponentProps;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps & DsIconProps>;
|
|
9
|
+
args: {
|
|
10
|
+
text: string;
|
|
11
|
+
position: import('./Tooltip.config').Position;
|
|
12
|
+
placement: import('./Tooltip.config').Placement;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const Top: {
|
|
16
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps & DsIconProps>;
|
|
17
|
+
args: {
|
|
18
|
+
position: string;
|
|
19
|
+
text: string;
|
|
20
|
+
placement: import('./Tooltip.config').Placement;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const Bottom: {
|
|
24
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps & DsIconProps>;
|
|
25
|
+
args: {
|
|
26
|
+
position: string;
|
|
27
|
+
text: string;
|
|
28
|
+
placement: import('./Tooltip.config').Placement;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const Right: {
|
|
32
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps & DsIconProps>;
|
|
33
|
+
args: {
|
|
34
|
+
position: string;
|
|
35
|
+
text: string;
|
|
36
|
+
placement: import('./Tooltip.config').Placement;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const Left: {
|
|
40
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps & DsIconProps>;
|
|
41
|
+
args: {
|
|
42
|
+
position: string;
|
|
43
|
+
text: string;
|
|
44
|
+
placement: import('./Tooltip.config').Placement;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface FluidProps {
|
|
2
|
+
type: BooleanConstructor;
|
|
3
|
+
default: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface ContainerConfig {
|
|
6
|
+
name: string;
|
|
7
|
+
class: string;
|
|
8
|
+
props: {
|
|
9
|
+
fluid: FluidProps;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
declare const ContainerConfig: ContainerConfig;
|
|
13
|
+
export default ContainerConfig;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as PropTypes } from 'prop-types';
|
|
3
|
+
|
|
4
|
+
export interface DsContainerProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
fluid?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: object;
|
|
9
|
+
}
|
|
10
|
+
declare const DsContainer: {
|
|
11
|
+
({ children, fluid, className, style, }: DsContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
propTypes: {
|
|
13
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
|
+
fluid: PropTypes.Requireable<boolean>;
|
|
15
|
+
className: PropTypes.Requireable<string>;
|
|
16
|
+
style: PropTypes.Requireable<object>;
|
|
17
|
+
};
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
export default DsContainer;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DsContainerProps } from '.';
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const ComponentProps: Meta;
|
|
5
|
+
export default ComponentProps;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsContainerProps>;
|
|
8
|
+
parameters: {
|
|
9
|
+
theme: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const ContainerFluid: {
|
|
13
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsContainerProps>;
|
|
14
|
+
parameters: {
|
|
15
|
+
theme: string;
|
|
16
|
+
};
|
|
17
|
+
args: {
|
|
18
|
+
fluid: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface FlexProps {
|
|
2
|
+
type: StringConstructor;
|
|
3
|
+
default: string;
|
|
4
|
+
required: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ClassNameProps {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
required: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface FlexElementConfig {
|
|
12
|
+
name: string;
|
|
13
|
+
class: string;
|
|
14
|
+
props: {
|
|
15
|
+
flex: FlexProps;
|
|
16
|
+
className: ClassNameProps;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
declare const FlexElementConfig: FlexElementConfig;
|
|
20
|
+
export default FlexElementConfig;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export interface DsFlexElementProps {
|
|
4
|
+
children: JSX.Element | JSX.Element[];
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* @description Flex values for flexbox item. It joins flex-grow, flex-basis & flex-shrink (optional) properties.
|
|
8
|
+
* Flex value can be "none" too.
|
|
9
|
+
* @property {string} flex-grow - a string property to define flex-grow
|
|
10
|
+
* @property {string} flex-shrink - a string property to define flex-shrink
|
|
11
|
+
* @property {string} flex-basis - an optional string property to define flex-basis
|
|
12
|
+
* @value [ none | ${flex-grow} ${flex-shrink} | ${flex-grow} ${flex-shrink} ${flex-basis} ]
|
|
13
|
+
* @example
|
|
14
|
+
* <DsFlexElemnt flex="0 1 auto" />
|
|
15
|
+
* <DsFlexElemnt flex="0 1" />
|
|
16
|
+
*/
|
|
17
|
+
flex?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const DsFlexElement: {
|
|
20
|
+
({ children, flex, className, }: DsFlexElementProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
propTypes: {
|
|
22
|
+
className: PropTypes.Requireable<string>;
|
|
23
|
+
flex: PropTypes.Requireable<string>;
|
|
24
|
+
};
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export default DsFlexElement;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export declare const JustifyContent: {
|
|
2
|
+
readonly Stretch: "stretch";
|
|
3
|
+
readonly FlexStart: "flex-start";
|
|
4
|
+
readonly FlexEnd: "flex-end";
|
|
5
|
+
readonly Center: "center";
|
|
6
|
+
readonly SpaceAround: "space-around";
|
|
7
|
+
readonly SpaceBetween: "space-between";
|
|
8
|
+
};
|
|
9
|
+
export type JustifyContent = (typeof JustifyContent)[keyof typeof JustifyContent];
|
|
10
|
+
export declare const AlignItems: {
|
|
11
|
+
readonly Stretch: "stretch";
|
|
12
|
+
readonly FlexStart: "flex-start";
|
|
13
|
+
readonly FlexEnd: "flex-end";
|
|
14
|
+
readonly Center: "center";
|
|
15
|
+
};
|
|
16
|
+
export type AlignItems = (typeof AlignItems)[keyof typeof AlignItems];
|
|
17
|
+
export declare const FlexDirection: {
|
|
18
|
+
readonly Row: "row";
|
|
19
|
+
readonly Column: "column";
|
|
20
|
+
readonly RowReverse: "row-reverse";
|
|
21
|
+
readonly ColumnReverse: "column-reverse";
|
|
22
|
+
};
|
|
23
|
+
export type FlexDirection = (typeof FlexDirection)[keyof typeof FlexDirection];
|
|
24
|
+
export declare const FlexWrap: {
|
|
25
|
+
readonly NoWrap: "nowrap";
|
|
26
|
+
readonly Wrap: "wrap";
|
|
27
|
+
readonly WrapReverse: "wrap-reverse";
|
|
28
|
+
};
|
|
29
|
+
export type FlexWrap = (typeof FlexWrap)[keyof typeof FlexWrap];
|
|
30
|
+
export declare const Gap: {
|
|
31
|
+
readonly Quark: "quark";
|
|
32
|
+
readonly Nano: "nano";
|
|
33
|
+
readonly XXXS: "xxxs";
|
|
34
|
+
readonly XXS: "xxs";
|
|
35
|
+
readonly XS: "xs";
|
|
36
|
+
readonly SM: "sm";
|
|
37
|
+
readonly MD: "md";
|
|
38
|
+
readonly LG: "lg";
|
|
39
|
+
readonly XL: "xl";
|
|
40
|
+
readonly XXL: "xxl";
|
|
41
|
+
readonly XXXL: "xxxl";
|
|
42
|
+
};
|
|
43
|
+
export type Gap = (typeof Gap)[keyof typeof Gap];
|
|
44
|
+
export interface JustifyContentProps {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: JustifyContent;
|
|
47
|
+
required: true;
|
|
48
|
+
options: JustifyContent[];
|
|
49
|
+
}
|
|
50
|
+
export interface AlignItemsProps {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: AlignItems;
|
|
53
|
+
required: true;
|
|
54
|
+
options: AlignItems[];
|
|
55
|
+
}
|
|
56
|
+
export interface FlexDirectionProps {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: FlexDirection;
|
|
59
|
+
required: true;
|
|
60
|
+
options: FlexDirection[];
|
|
61
|
+
}
|
|
62
|
+
export interface FlexWrapProps {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: FlexWrap;
|
|
65
|
+
required: false;
|
|
66
|
+
options: FlexWrap[];
|
|
67
|
+
}
|
|
68
|
+
export interface ClassNameProps {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
}
|
|
72
|
+
export interface WidthProps {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
}
|
|
76
|
+
export interface HeightProps {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
}
|
|
80
|
+
export interface GapProps {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
options: Gap[];
|
|
84
|
+
}
|
|
85
|
+
export interface FlexLayoutConfig {
|
|
86
|
+
name: string;
|
|
87
|
+
class: string;
|
|
88
|
+
props: {
|
|
89
|
+
justifyContent: JustifyContentProps;
|
|
90
|
+
alignItems: AlignItemsProps;
|
|
91
|
+
flexDirection: FlexDirectionProps;
|
|
92
|
+
flexWrap: FlexWrapProps;
|
|
93
|
+
className: ClassNameProps;
|
|
94
|
+
width: WidthProps;
|
|
95
|
+
height: HeightProps;
|
|
96
|
+
gap: GapProps;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
declare const FlexLayoutConfig: FlexLayoutConfig;
|
|
100
|
+
export default FlexLayoutConfig;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export interface DsFlexLayoutProps {
|
|
4
|
+
children: JSX.Element | JSX.Element[];
|
|
5
|
+
className?: string;
|
|
6
|
+
justifyContent?: string;
|
|
7
|
+
alignItems?: string;
|
|
8
|
+
flexDirection?: string;
|
|
9
|
+
flexWrap?: string;
|
|
10
|
+
width?: string;
|
|
11
|
+
height?: string;
|
|
12
|
+
gap?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const DsFlexLayout: {
|
|
15
|
+
({ children, className, justifyContent, alignItems, flexDirection, flexWrap, width, height, gap, }: DsFlexLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
propTypes: {
|
|
17
|
+
className: PropTypes.Requireable<string>;
|
|
18
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
19
|
+
alignItems: PropTypes.Requireable<string>;
|
|
20
|
+
flexDirection: PropTypes.Requireable<string>;
|
|
21
|
+
flexWrap: PropTypes.Requireable<string>;
|
|
22
|
+
width: PropTypes.Requireable<string>;
|
|
23
|
+
height: PropTypes.Requireable<string>;
|
|
24
|
+
gap: PropTypes.Requireable<string>;
|
|
25
|
+
};
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
export default DsFlexLayout;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DsFlexLayoutProps } from '.';
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const componentProps: Meta;
|
|
5
|
+
export default componentProps;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFlexLayoutProps>;
|
|
8
|
+
};
|
|
9
|
+
export declare const WithComponents: {
|
|
10
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFlexLayoutProps>;
|
|
11
|
+
parameters: {
|
|
12
|
+
theme: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const WithFlexGrow: {
|
|
16
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFlexLayoutProps>;
|
|
17
|
+
parameters: {
|
|
18
|
+
theme: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface GridProps {
|
|
2
|
+
row: string;
|
|
3
|
+
col: string;
|
|
4
|
+
}
|
|
5
|
+
export interface GridElementProps {
|
|
6
|
+
type: ObjectConstructor;
|
|
7
|
+
default: GridProps;
|
|
8
|
+
}
|
|
9
|
+
export interface GridElementConfig {
|
|
10
|
+
name: string;
|
|
11
|
+
class: string;
|
|
12
|
+
props: {
|
|
13
|
+
grid: GridElementProps;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const GridElementConfig: GridElementConfig;
|
|
17
|
+
export default GridElementConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DsGridElementProps } from '../../../types/types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
type DsGridElementType = {
|
|
5
|
+
children: string | React.ReactElement;
|
|
6
|
+
grid: DsGridElementProps;
|
|
7
|
+
};
|
|
8
|
+
declare const DsGridElement: React.FC<DsGridElementType>;
|
|
9
|
+
export default DsGridElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|