@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 { DsCardProps } 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, DsCardProps>;
|
|
8
|
+
args: {
|
|
9
|
+
elevation: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const WithBorder: {
|
|
13
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCardProps>;
|
|
14
|
+
args: {
|
|
15
|
+
borderColor: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const WithBackground: {
|
|
19
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCardProps>;
|
|
20
|
+
args: {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface NameProps {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
}
|
|
7
|
+
export interface TestIdProps {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LabelProps {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DescriptionProps {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
}
|
|
19
|
+
export interface CheckedProps {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ChangeByCheckedProps {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface DisabledProps {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface OnChangeHandlerProps {
|
|
32
|
+
type: FunctionConstructor;
|
|
33
|
+
default: () => void;
|
|
34
|
+
}
|
|
35
|
+
export interface DsCheckboxProps {
|
|
36
|
+
id?: string;
|
|
37
|
+
className?: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
testId?: string;
|
|
40
|
+
label?: string | ReactNode;
|
|
41
|
+
description?: string | ReactNode;
|
|
42
|
+
checked?: boolean;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
changeByChecked?: boolean;
|
|
45
|
+
onChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
46
|
+
}
|
|
47
|
+
export interface CheckboxConfig {
|
|
48
|
+
name: string;
|
|
49
|
+
class: string;
|
|
50
|
+
props: {
|
|
51
|
+
name: NameProps;
|
|
52
|
+
testId: TestIdProps;
|
|
53
|
+
label: LabelProps;
|
|
54
|
+
description: DescriptionProps;
|
|
55
|
+
checked: CheckedProps;
|
|
56
|
+
disabled: DisabledProps;
|
|
57
|
+
changeByChecked: ChangeByCheckedProps;
|
|
58
|
+
onChangeHandler: OnChangeHandlerProps;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
declare const CheckboxConfig: CheckboxConfig;
|
|
62
|
+
export default CheckboxConfig;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DsCheckboxProps } 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, DsCheckboxProps>;
|
|
8
|
+
args: {
|
|
9
|
+
name: string;
|
|
10
|
+
label: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const Disabled: {
|
|
15
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxProps>;
|
|
16
|
+
args: {
|
|
17
|
+
name: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
label: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
decorators: ((Story: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('@storybook/types').Args>) => import("react/jsx-runtime").JSX.Element)[];
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const HeadingType: {
|
|
2
|
+
readonly Heading1: "heading-1";
|
|
3
|
+
readonly Heading2: "heading-2";
|
|
4
|
+
readonly Heading3: "heading-3";
|
|
5
|
+
readonly Heading4: "heading-4";
|
|
6
|
+
readonly Heading5: "heading-5";
|
|
7
|
+
readonly Heading6: "heading-6";
|
|
8
|
+
};
|
|
9
|
+
export type HeadingType = (typeof HeadingType)[keyof typeof HeadingType];
|
|
10
|
+
export interface TypeProps {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: HeadingType;
|
|
13
|
+
options: HeadingType[];
|
|
14
|
+
}
|
|
15
|
+
export interface HeadingConfig {
|
|
16
|
+
name: string;
|
|
17
|
+
class: string;
|
|
18
|
+
props: {
|
|
19
|
+
type: TypeProps;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
declare const HeadingConfig: HeadingConfig;
|
|
23
|
+
export default HeadingConfig;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as PropTypes } from 'prop-types';
|
|
3
|
+
|
|
4
|
+
export interface DsHeadingProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
testId?: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
10
|
+
declare const DsHeading: {
|
|
11
|
+
({ children, testId, type, className, }: DsHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
propTypes: {
|
|
13
|
+
className: PropTypes.Requireable<string>;
|
|
14
|
+
testId: PropTypes.Requireable<string>;
|
|
15
|
+
type: PropTypes.Requireable<import('./Heading.config').HeadingType>;
|
|
16
|
+
};
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export default DsHeading;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ThemeProviderProps } from '../../molecules/ThemeProvider';
|
|
2
|
+
import { DsHeadingProps } 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 & DsHeadingProps>;
|
|
9
|
+
args: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const Heading1: {
|
|
14
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsHeadingProps>;
|
|
15
|
+
args: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const Heading2: {
|
|
20
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsHeadingProps>;
|
|
21
|
+
args: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const Heading3: {
|
|
26
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsHeadingProps>;
|
|
27
|
+
args: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const Heading4: {
|
|
32
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsHeadingProps>;
|
|
33
|
+
args: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const Heading5: {
|
|
38
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsHeadingProps>;
|
|
39
|
+
args: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const Heading6: {
|
|
44
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsHeadingProps>;
|
|
45
|
+
args: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const BorderStyle: {
|
|
2
|
+
readonly None: "";
|
|
3
|
+
readonly Dashed: "dashed";
|
|
4
|
+
readonly Dotted: "dotted";
|
|
5
|
+
};
|
|
6
|
+
export type BorderStyle = (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
7
|
+
export declare const Size: {
|
|
8
|
+
readonly None: "";
|
|
9
|
+
readonly Small: "small";
|
|
10
|
+
readonly Large: "large";
|
|
11
|
+
};
|
|
12
|
+
export type Size = (typeof Size)[keyof typeof Size];
|
|
13
|
+
export interface BorderStyleProps {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: BorderStyle;
|
|
16
|
+
options: BorderStyle[];
|
|
17
|
+
}
|
|
18
|
+
export interface SizeProps {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: Size;
|
|
21
|
+
options: Size[];
|
|
22
|
+
}
|
|
23
|
+
export interface iHRConfig {
|
|
24
|
+
name: string;
|
|
25
|
+
class: string;
|
|
26
|
+
props: {
|
|
27
|
+
borderStyle: BorderStyleProps;
|
|
28
|
+
size: SizeProps;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
declare const HRConfig: iHRConfig;
|
|
32
|
+
export default HRConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export interface DsHRProps {
|
|
4
|
+
size?: string;
|
|
5
|
+
borderStyle?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const DsHR: {
|
|
8
|
+
({ size, borderStyle, }: DsHRProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
propTypes: {
|
|
10
|
+
size: PropTypes.Requireable<import('./HorizontalRule.config').Size>;
|
|
11
|
+
borderStyle: PropTypes.Requireable<import('./HorizontalRule.config').BorderStyle>;
|
|
12
|
+
};
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default DsHR;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DsHRProps } 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, DsHRProps>;
|
|
8
|
+
args: {};
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export declare const Color: {
|
|
2
|
+
readonly Primary: "primary";
|
|
3
|
+
readonly PrimaryLightest: "primary-lightest";
|
|
4
|
+
readonly PrimaryLighter: "primary-lighter";
|
|
5
|
+
readonly PrimaryLight: "primary-light";
|
|
6
|
+
readonly PrimaryDark: "primary-dark";
|
|
7
|
+
readonly PrimaryDarker: "primary-darker";
|
|
8
|
+
readonly Neutral90: "neutral-90";
|
|
9
|
+
readonly Neutral80: "neutral-80";
|
|
10
|
+
readonly Neutral60: "neutral-60";
|
|
11
|
+
readonly Neutral40: "neutral-40";
|
|
12
|
+
readonly Neutral20: "neutral-20";
|
|
13
|
+
readonly Neutral10: "neutral-10";
|
|
14
|
+
readonly Neutral05: "neutral-05";
|
|
15
|
+
readonly Neutral00: "neutral-00";
|
|
16
|
+
readonly Secondary: "secondary";
|
|
17
|
+
readonly SecondaryLightest: "secondary-lightest";
|
|
18
|
+
readonly SecondaryLighter: "secondary-lighter";
|
|
19
|
+
readonly SecondaryLight: "secondary-light";
|
|
20
|
+
readonly SecondaryDark: "secondary-dark";
|
|
21
|
+
readonly SecondaryDarker: "secondary-darker";
|
|
22
|
+
readonly Success: "success";
|
|
23
|
+
readonly SuccessLighter: "success-lighter";
|
|
24
|
+
readonly SuccessLight: "success-light";
|
|
25
|
+
readonly SuccessDark: "success-dark";
|
|
26
|
+
readonly Warning: "warning";
|
|
27
|
+
readonly WarningLighter: "warning-lighter";
|
|
28
|
+
readonly WarningLight: "warning-light";
|
|
29
|
+
readonly WarningDark: "warning-dark";
|
|
30
|
+
readonly Danger: "danger";
|
|
31
|
+
readonly DangerLighter: "danger-lighter";
|
|
32
|
+
readonly DangerLight: "danger-light";
|
|
33
|
+
readonly DangerDark: "danger-dark";
|
|
34
|
+
readonly Info: "info";
|
|
35
|
+
readonly InfoLighter: "info-lighter";
|
|
36
|
+
readonly InfoLight: "info-light";
|
|
37
|
+
readonly InfoDark: "info-dark";
|
|
38
|
+
};
|
|
39
|
+
export type Color = (typeof Color)[keyof typeof Color];
|
|
40
|
+
export declare const Variation: {
|
|
41
|
+
readonly Outlined: "outlined";
|
|
42
|
+
readonly Rounded: "rounded";
|
|
43
|
+
readonly Sharp: "sharp";
|
|
44
|
+
};
|
|
45
|
+
export type Variation = (typeof Variation)[keyof typeof Variation];
|
|
46
|
+
export declare const Size: {
|
|
47
|
+
readonly XXS: "xxs";
|
|
48
|
+
readonly XS: "xs";
|
|
49
|
+
readonly SM: "sm";
|
|
50
|
+
readonly MD: "md";
|
|
51
|
+
readonly LG: "lg";
|
|
52
|
+
readonly XL: "xl";
|
|
53
|
+
readonly XXL: "xxl";
|
|
54
|
+
readonly XXXL: "xxxl";
|
|
55
|
+
readonly Huge: "huge";
|
|
56
|
+
};
|
|
57
|
+
export type Size = (typeof Size)[keyof typeof Size];
|
|
58
|
+
export declare const Weight: {
|
|
59
|
+
readonly Bold: "bold";
|
|
60
|
+
readonly Semibold: "semibold";
|
|
61
|
+
readonly Medium: "medium";
|
|
62
|
+
readonly Regular: "regular";
|
|
63
|
+
readonly Light: "light";
|
|
64
|
+
readonly Extralight: "extralight";
|
|
65
|
+
};
|
|
66
|
+
export type Weight = (typeof Weight)[keyof typeof Weight];
|
|
67
|
+
export interface FontVariationSettings {
|
|
68
|
+
fill: number;
|
|
69
|
+
grad: number;
|
|
70
|
+
weight: number;
|
|
71
|
+
opticalSize: number;
|
|
72
|
+
}
|
|
73
|
+
export interface ColorProps {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: Color;
|
|
76
|
+
options: Color[];
|
|
77
|
+
}
|
|
78
|
+
export interface ImageProps {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
}
|
|
82
|
+
export interface VariationProps {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: Variation;
|
|
85
|
+
options: Variation[];
|
|
86
|
+
}
|
|
87
|
+
export interface SizeProps {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: Size;
|
|
90
|
+
options: Size[];
|
|
91
|
+
}
|
|
92
|
+
export interface FontVariationSettingsProps {
|
|
93
|
+
type: ObjectConstructor;
|
|
94
|
+
default: FontVariationSettings;
|
|
95
|
+
}
|
|
96
|
+
export interface FillProps {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface WeightProps {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: Weight;
|
|
103
|
+
options: Weight[];
|
|
104
|
+
}
|
|
105
|
+
export interface TestIdProps {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
}
|
|
109
|
+
export interface OnClickProps {
|
|
110
|
+
type: FunctionConstructor;
|
|
111
|
+
default: () => void;
|
|
112
|
+
}
|
|
113
|
+
export interface IconConfig {
|
|
114
|
+
name: string;
|
|
115
|
+
class: string;
|
|
116
|
+
props: {
|
|
117
|
+
color: ColorProps;
|
|
118
|
+
image: ImageProps;
|
|
119
|
+
variation: VariationProps;
|
|
120
|
+
size: SizeProps;
|
|
121
|
+
fontVariationSettings: FontVariationSettingsProps;
|
|
122
|
+
fill: FillProps;
|
|
123
|
+
weight: WeightProps;
|
|
124
|
+
testId: TestIdProps;
|
|
125
|
+
onClick: OnClickProps;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
declare const IconConfig: IconConfig;
|
|
129
|
+
export default IconConfig;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import { default as PropTypes } from 'prop-types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param {String} image
|
|
7
|
+
* @param {String} color
|
|
8
|
+
* @param {String} variation
|
|
9
|
+
*
|
|
10
|
+
* @return DsIcon
|
|
11
|
+
*/
|
|
12
|
+
export interface DsIconProps {
|
|
13
|
+
color?: string;
|
|
14
|
+
image?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
size?: string;
|
|
17
|
+
fill?: boolean;
|
|
18
|
+
weight?: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
|
21
|
+
}
|
|
22
|
+
declare const DsIcon: {
|
|
23
|
+
({ image, color, className, size, fill, weight, testId, onClick, }: DsIconProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
propTypes: {
|
|
25
|
+
color: PropTypes.Requireable<import('./Icon.config').Color>;
|
|
26
|
+
image: PropTypes.Requireable<string>;
|
|
27
|
+
fontVariationSettings: PropTypes.Requireable<object>;
|
|
28
|
+
size: PropTypes.Requireable<import('./Icon.config').Size>;
|
|
29
|
+
fill: PropTypes.Requireable<boolean>;
|
|
30
|
+
weight: PropTypes.Requireable<import('./Icon.config').Weight>;
|
|
31
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
};
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
export default DsIcon;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DsIconProps } 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, DsIconProps>;
|
|
8
|
+
args: {
|
|
9
|
+
image: string;
|
|
10
|
+
color: import('./Icon.config').Color;
|
|
11
|
+
size: import('./Icon.config').Size;
|
|
12
|
+
fill: boolean;
|
|
13
|
+
weight: import('./Icon.config').Weight;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const List: {
|
|
17
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsIconProps>;
|
|
18
|
+
args: {};
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export declare const InputType: {
|
|
2
|
+
readonly Text: "text";
|
|
3
|
+
readonly Password: "password";
|
|
4
|
+
readonly Email: "email";
|
|
5
|
+
readonly Date: "date";
|
|
6
|
+
readonly Number: "number";
|
|
7
|
+
};
|
|
8
|
+
export type InputType = (typeof InputType)[keyof typeof InputType];
|
|
9
|
+
export declare const Size: {
|
|
10
|
+
readonly Small: "small";
|
|
11
|
+
readonly Medium: "medium";
|
|
12
|
+
readonly Large: "large";
|
|
13
|
+
};
|
|
14
|
+
export type Size = (typeof Size)[keyof typeof Size];
|
|
15
|
+
export declare const Status: {
|
|
16
|
+
readonly Default: "";
|
|
17
|
+
readonly Error: "error";
|
|
18
|
+
readonly Success: "success";
|
|
19
|
+
};
|
|
20
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
21
|
+
export declare const TooltipPlacement: {
|
|
22
|
+
readonly Center: "center";
|
|
23
|
+
readonly End: "end";
|
|
24
|
+
readonly Initial: "initial";
|
|
25
|
+
};
|
|
26
|
+
export type TooltipPlacement = (typeof TooltipPlacement)[keyof typeof TooltipPlacement];
|
|
27
|
+
export declare const TooltipPosition: {
|
|
28
|
+
readonly Top: "top";
|
|
29
|
+
readonly Right: "right";
|
|
30
|
+
readonly Bottom: "bottom";
|
|
31
|
+
readonly Left: "left";
|
|
32
|
+
};
|
|
33
|
+
export type TooltipPosition = (typeof TooltipPosition)[keyof typeof TooltipPosition];
|
|
34
|
+
export interface NameProps {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface TestIdProps {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
}
|
|
42
|
+
export interface TypeProps {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: InputType;
|
|
45
|
+
options: InputType[];
|
|
46
|
+
}
|
|
47
|
+
export interface AnimatedProps {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface DisabledProps {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface SizeProps {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: Size;
|
|
58
|
+
options: Size[];
|
|
59
|
+
}
|
|
60
|
+
export interface LabelProps {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
}
|
|
64
|
+
export interface PlaceholderProps {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ValueProps {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
}
|
|
72
|
+
export interface MinProps {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
}
|
|
76
|
+
export interface MaxProps {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
}
|
|
80
|
+
export interface StatusProps {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: Status;
|
|
83
|
+
options: Status[];
|
|
84
|
+
}
|
|
85
|
+
export interface FeedbackProps {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
}
|
|
89
|
+
export interface HasFeedbackProps {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
}
|
|
93
|
+
export interface NoMarginProps {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface IconProps {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
}
|
|
101
|
+
export interface TooltipProps {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
}
|
|
105
|
+
export interface TooltipPlacementProps {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: TooltipPlacement;
|
|
108
|
+
options: TooltipPlacement[];
|
|
109
|
+
}
|
|
110
|
+
export interface TooltipPositionProps {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: TooltipPosition;
|
|
113
|
+
options: TooltipPosition[];
|
|
114
|
+
}
|
|
115
|
+
export interface MaskProps {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
}
|
|
119
|
+
export interface OnChangeHandlerProps {
|
|
120
|
+
type: FunctionConstructor;
|
|
121
|
+
default: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
122
|
+
}
|
|
123
|
+
export interface InputConfig {
|
|
124
|
+
name: string;
|
|
125
|
+
class: string;
|
|
126
|
+
props: {
|
|
127
|
+
name: NameProps;
|
|
128
|
+
testId: TestIdProps;
|
|
129
|
+
type: TypeProps;
|
|
130
|
+
animated: AnimatedProps;
|
|
131
|
+
disabled: DisabledProps;
|
|
132
|
+
size: SizeProps;
|
|
133
|
+
label: LabelProps;
|
|
134
|
+
placeholder: PlaceholderProps;
|
|
135
|
+
value: ValueProps;
|
|
136
|
+
min: MinProps;
|
|
137
|
+
max: MaxProps;
|
|
138
|
+
status: StatusProps;
|
|
139
|
+
feedback: FeedbackProps;
|
|
140
|
+
hasFeedback: HasFeedbackProps;
|
|
141
|
+
noMargin: NoMarginProps;
|
|
142
|
+
icon: IconProps;
|
|
143
|
+
tooltip: TooltipProps;
|
|
144
|
+
tooltipPlacement: TooltipPlacementProps;
|
|
145
|
+
tooltipPosition: TooltipPositionProps;
|
|
146
|
+
mask: MaskProps;
|
|
147
|
+
onChangeHandler: OnChangeHandlerProps;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
declare const InputConfig: InputConfig;
|
|
151
|
+
export default InputConfig;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface DsInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
name?: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
animated?: boolean;
|
|
8
|
+
size?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
min?: string;
|
|
13
|
+
max?: string;
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
tooltipPosition?: string;
|
|
16
|
+
tooltipPlacement?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
status?: string;
|
|
19
|
+
feedback?: string;
|
|
20
|
+
hasFeedback?: boolean;
|
|
21
|
+
noMargin?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
mask?: string | object;
|
|
24
|
+
onChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
25
|
+
onBlurHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
26
|
+
onKeyDownHandler?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
27
|
+
onFocusHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
28
|
+
}
|
|
29
|
+
declare const DsInput: React.ForwardRefExoticComponent<DsInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
30
|
+
export default DsInput;
|