@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,82 @@
|
|
|
1
|
+
export declare const Gap: {
|
|
2
|
+
readonly Quark: "quark";
|
|
3
|
+
readonly Nano: "nano";
|
|
4
|
+
readonly ExtraSmall: "xs";
|
|
5
|
+
readonly Small: "sm";
|
|
6
|
+
readonly Medium: "md";
|
|
7
|
+
readonly Large: "lg";
|
|
8
|
+
};
|
|
9
|
+
export type Gap = (typeof Gap)[keyof typeof Gap];
|
|
10
|
+
export declare const Align: {
|
|
11
|
+
readonly Start: "start";
|
|
12
|
+
readonly End: "end";
|
|
13
|
+
readonly Center: "center";
|
|
14
|
+
readonly Stretch: "stretch";
|
|
15
|
+
readonly SpaceAround: "space-around";
|
|
16
|
+
readonly SpaceBetween: "space-between";
|
|
17
|
+
readonly SpaceEvenly: "space-evenly";
|
|
18
|
+
};
|
|
19
|
+
export type Align = (typeof Align)[keyof typeof Align];
|
|
20
|
+
export interface RowsProps {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface GapProps {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: Gap;
|
|
28
|
+
options: Gap[];
|
|
29
|
+
}
|
|
30
|
+
export interface VGapProps {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface HGapProps {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface WidthProps {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
}
|
|
42
|
+
export interface HeightProps {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
}
|
|
46
|
+
export interface HorizontalAlignProps {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: Align;
|
|
49
|
+
options: Align[];
|
|
50
|
+
}
|
|
51
|
+
export interface VerticalAlignProps {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: Align;
|
|
54
|
+
options: Align[];
|
|
55
|
+
}
|
|
56
|
+
export interface GridLayoutProps {
|
|
57
|
+
rows?: string;
|
|
58
|
+
gap?: Gap;
|
|
59
|
+
vGap?: boolean;
|
|
60
|
+
hGap?: boolean;
|
|
61
|
+
width?: string;
|
|
62
|
+
height?: string;
|
|
63
|
+
horizontalAlign?: Align;
|
|
64
|
+
verticalAlign?: Align;
|
|
65
|
+
children: React.ReactNode;
|
|
66
|
+
}
|
|
67
|
+
export interface GridLayoutConfig {
|
|
68
|
+
name: string;
|
|
69
|
+
class: string;
|
|
70
|
+
props: {
|
|
71
|
+
rows: RowsProps;
|
|
72
|
+
gap: GapProps;
|
|
73
|
+
vGap: VGapProps;
|
|
74
|
+
hGap: HGapProps;
|
|
75
|
+
width: WidthProps;
|
|
76
|
+
height: HeightProps;
|
|
77
|
+
horizontalAlign: HorizontalAlignProps;
|
|
78
|
+
verticalAlign: VerticalAlignProps;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
declare const GridLayoutConfig: GridLayoutConfig;
|
|
82
|
+
export default GridLayoutConfig;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export interface DsGridLayoutProps {
|
|
4
|
+
children: JSX.Element | JSX.Element[];
|
|
5
|
+
rows?: string;
|
|
6
|
+
gap?: string;
|
|
7
|
+
vGap?: boolean;
|
|
8
|
+
hGap?: boolean;
|
|
9
|
+
horizontalAlign?: string;
|
|
10
|
+
verticalAlign?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
height?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const DsGridLayout: {
|
|
15
|
+
({ children, rows, gap, vGap, hGap, horizontalAlign, verticalAlign, width, height, }: DsGridLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
propTypes: {
|
|
17
|
+
children: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
|
|
18
|
+
rows: PropTypes.Requireable<string>;
|
|
19
|
+
gap: PropTypes.Requireable<import('./GridLayout.config').Gap>;
|
|
20
|
+
vGap: PropTypes.Requireable<boolean>;
|
|
21
|
+
hGap: PropTypes.Requireable<boolean>;
|
|
22
|
+
width: PropTypes.Requireable<string>;
|
|
23
|
+
height: PropTypes.Requireable<string>;
|
|
24
|
+
horizontalAlign: PropTypes.Requireable<import('./GridLayout.config').Align>;
|
|
25
|
+
verticalAlign: PropTypes.Requireable<import('./GridLayout.config').Align>;
|
|
26
|
+
};
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
export default DsGridLayout;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ThemeProviderProps } from '../../molecules/ThemeProvider';
|
|
2
|
+
import { DsGridLayoutProps } 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 & DsGridLayoutProps>;
|
|
9
|
+
parameters: {
|
|
10
|
+
theme: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const SpacerSize: {
|
|
2
|
+
readonly None: "none";
|
|
3
|
+
readonly Quark: "quark";
|
|
4
|
+
readonly Nano: "nano";
|
|
5
|
+
readonly XXXS: "xxxs";
|
|
6
|
+
readonly XXS: "xxs";
|
|
7
|
+
readonly XS: "xs";
|
|
8
|
+
readonly SM: "sm";
|
|
9
|
+
};
|
|
10
|
+
export type SpacerSize = (typeof SpacerSize)[keyof typeof SpacerSize];
|
|
11
|
+
export interface SpacerProps {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: SpacerSize;
|
|
14
|
+
options: SpacerSize[];
|
|
15
|
+
}
|
|
16
|
+
export interface SpacerConfig {
|
|
17
|
+
name: string;
|
|
18
|
+
class: string;
|
|
19
|
+
props: {
|
|
20
|
+
vertical: SpacerProps;
|
|
21
|
+
horizontal: SpacerProps;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare const SpacerConfig: SpacerConfig;
|
|
25
|
+
export default SpacerConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
|
|
3
|
+
export interface DsSpacerProps {
|
|
4
|
+
vertical?: string;
|
|
5
|
+
horizontal?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const DsSpacer: {
|
|
8
|
+
({ vertical, horizontal, }: DsSpacerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
propTypes: {
|
|
10
|
+
vertical: PropTypes.Requireable<import('./Spacer.config').SpacerSize>;
|
|
11
|
+
horizontal: PropTypes.Requireable<import('./Spacer.config').SpacerSize>;
|
|
12
|
+
};
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default DsSpacer;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DsSpacerProps } 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, DsSpacerProps>;
|
|
8
|
+
args: {
|
|
9
|
+
vertical: import('./Spacer.config').SpacerSize;
|
|
10
|
+
horizontal: import('./Spacer.config').SpacerSize;
|
|
11
|
+
};
|
|
12
|
+
parameters: {
|
|
13
|
+
theme: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const Space: {
|
|
2
|
+
readonly None: "none";
|
|
3
|
+
readonly Quark: "quark";
|
|
4
|
+
readonly Nano: "nano";
|
|
5
|
+
readonly ExtraSmall: "xs";
|
|
6
|
+
readonly Small: "sm";
|
|
7
|
+
readonly Medium: "md";
|
|
8
|
+
readonly Large: "lg";
|
|
9
|
+
};
|
|
10
|
+
export type Space = (typeof Space)[keyof typeof Space];
|
|
11
|
+
export interface SpaceProps {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default?: Space;
|
|
14
|
+
options?: Space[];
|
|
15
|
+
}
|
|
16
|
+
export interface WrapperConfig {
|
|
17
|
+
name: string;
|
|
18
|
+
class: string;
|
|
19
|
+
props: {
|
|
20
|
+
space: SpaceProps;
|
|
21
|
+
top: SpaceProps;
|
|
22
|
+
right: SpaceProps;
|
|
23
|
+
bottom: SpaceProps;
|
|
24
|
+
left: SpaceProps;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
declare const WrapperConfig: WrapperConfig;
|
|
28
|
+
export default WrapperConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface DsWrapperProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
space?: string;
|
|
6
|
+
top?: string;
|
|
7
|
+
right?: string;
|
|
8
|
+
bottom?: string;
|
|
9
|
+
left?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const DsWrapper: {
|
|
12
|
+
({ children, space, top, right, bottom, left, }: DsWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default DsWrapper;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DsWrapperProps } 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, DsWrapperProps>;
|
|
8
|
+
parameters: {
|
|
9
|
+
theme: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const Custom: {
|
|
13
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsWrapperProps>;
|
|
14
|
+
parameters: {
|
|
15
|
+
theme: string;
|
|
16
|
+
};
|
|
17
|
+
args: {
|
|
18
|
+
left: string;
|
|
19
|
+
top: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DsTwoColumns } from './templates/TwoColumns';
|
|
2
|
+
import { DsNotificationList } from './organisms/NotificationList';
|
|
3
|
+
import { ThemeProvider } from './molecules/ThemeProvider';
|
|
4
|
+
import { DsTabs } from './molecules/Tabs';
|
|
5
|
+
import { DsTable } from './molecules/Table';
|
|
6
|
+
import { DsStepper } from './molecules/Stepper';
|
|
7
|
+
import { DsPasswordConfirmation } from './molecules/PasswordConfirmation';
|
|
8
|
+
import { DsNotification } from './molecules/Notification';
|
|
9
|
+
import { DsModal } from './molecules/Modal';
|
|
10
|
+
import { DsInlineEditable } from './molecules/InlineEditable';
|
|
11
|
+
import { DsIndicator } from './molecules/Indicator';
|
|
12
|
+
import { DsEditableSelect } from './molecules/EditableSelect';
|
|
13
|
+
import { DsActiveTags } from './molecules/ActiveTags';
|
|
14
|
+
import { DsAccordion } from './molecules/Accordion';
|
|
15
|
+
import { DsWrapper } from './bosons/Wrapper';
|
|
16
|
+
import { DsSpacer } from './bosons/Spacer';
|
|
17
|
+
import { DsGridElement, DsGridLayout } from './bosons/GridLayout';
|
|
18
|
+
import { DsFlexLayout, DsFlexElement } from './bosons/FlexLayout';
|
|
19
|
+
import { DsContainer } from './bosons/Container';
|
|
20
|
+
import { DsTooltip } from './atoms/Tooltip';
|
|
21
|
+
import { DsTextArea } from './atoms/TextArea';
|
|
22
|
+
import { DsSubtitle } from './atoms/Subtitle';
|
|
23
|
+
import { DsSelect } from './atoms/Select';
|
|
24
|
+
import { DsProgress } from './atoms/Progress';
|
|
25
|
+
import { DsParagraph } from './atoms/Paragraph';
|
|
26
|
+
import { DsOption } from './atoms/Option';
|
|
27
|
+
import { DsLoading } from './atoms/Loading';
|
|
28
|
+
import { DsInput } from './atoms/Input';
|
|
29
|
+
import { DsIcon } from './atoms/Icon';
|
|
30
|
+
import { DsHR } from './atoms/HorizontalRule';
|
|
31
|
+
import { DsHeading } from './atoms/Heading';
|
|
32
|
+
import { DsCheckbox } from './atoms/Checkbox';
|
|
33
|
+
import { DsCard } from './atoms/Card';
|
|
34
|
+
import { DsCaption } from './atoms/Caption';
|
|
35
|
+
import { DsButton } from './atoms/Button';
|
|
36
|
+
|
|
37
|
+
export { DsAccordion, DsButton, DsCaption, DsCard, DsCheckbox, DsContainer, DsFlexElement, DsFlexLayout, DsGridElement, DsGridLayout, DsHeading, DsHR, DsIcon, DsIndicator, DsInlineEditable, DsInput, DsLoading, DsModal, DsNotification, DsNotificationList, DsOption, DsParagraph, DsSelect, DsSpacer, DsStepper, DsSubtitle, DsTable, DsTabs, DsTextArea, DsTooltip, DsTwoColumns, DsWrapper, DsProgress, DsPasswordConfirmation, DsEditableSelect, DsActiveTags, ThemeProvider, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DsAccordionItems } from '../../../types/types';
|
|
2
|
+
|
|
3
|
+
export interface OpenItemListIndexProps {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface ItemsProps {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: DsAccordionItems[];
|
|
10
|
+
}
|
|
11
|
+
export interface ActiveItemProps {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
}
|
|
15
|
+
export interface AccordionConfig {
|
|
16
|
+
name: string;
|
|
17
|
+
class: string;
|
|
18
|
+
props: {
|
|
19
|
+
openItemListIndex: OpenItemListIndexProps;
|
|
20
|
+
items: ItemsProps;
|
|
21
|
+
activeItem: ActiveItemProps;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare const AccordionConfig: AccordionConfig;
|
|
25
|
+
export default AccordionConfig;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DsAccordionItems } from '../../../types/types';
|
|
2
|
+
import { default as PropTypes } from 'prop-types';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
items: DsAccordionItems[];
|
|
6
|
+
activeItem?: number | null;
|
|
7
|
+
onClick?: (index: number) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const DsAccordion: {
|
|
10
|
+
({ items, activeItem, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
items: PropTypes.Requireable<any[]>;
|
|
13
|
+
activeItem: PropTypes.Requireable<number>;
|
|
14
|
+
};
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export default DsAccordion;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DsAccordionItemProps } from '../../../types/types';
|
|
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, DsAccordionItemProps>;
|
|
8
|
+
args: {};
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface TitleProps {
|
|
2
|
+
type: StringConstructor;
|
|
3
|
+
default: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ContentProps {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DisabledProps {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ActiveProps {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface AccordionItemConfig {
|
|
18
|
+
name: string;
|
|
19
|
+
class: string;
|
|
20
|
+
props: {
|
|
21
|
+
title: TitleProps;
|
|
22
|
+
content: ContentProps;
|
|
23
|
+
disabled: DisabledProps;
|
|
24
|
+
active: ActiveProps;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
declare const AccordionItemConfig: AccordionItemConfig;
|
|
28
|
+
export default AccordionItemConfig;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DsAccordionItemProps } from '../../../types/types';
|
|
2
|
+
import { default as PropTypes } from 'prop-types';
|
|
3
|
+
|
|
4
|
+
declare const DsAccordionItem: {
|
|
5
|
+
({ title, content, onToggle, active, disabled, }: DsAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
propTypes: {
|
|
7
|
+
active: PropTypes.Requireable<boolean>;
|
|
8
|
+
title: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
9
|
+
content: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
10
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
11
|
+
};
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export default DsAccordionItem;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface TitleProps {
|
|
2
|
+
type: StringConstructor;
|
|
3
|
+
default: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ActiveTagsProps {
|
|
6
|
+
type: ArrayConstructor;
|
|
7
|
+
default: unknown[];
|
|
8
|
+
}
|
|
9
|
+
export interface HandleTagCloseProps {
|
|
10
|
+
type: FunctionConstructor;
|
|
11
|
+
default: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface ActiveTagsConfig {
|
|
14
|
+
name: string;
|
|
15
|
+
class: string;
|
|
16
|
+
props: {
|
|
17
|
+
title: TitleProps;
|
|
18
|
+
activeTags: ActiveTagsProps;
|
|
19
|
+
handleTagClose: HandleTagCloseProps;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
declare const ActiveTagsConfig: ActiveTagsConfig;
|
|
23
|
+
export default ActiveTagsConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface Tag {
|
|
2
|
+
id: string;
|
|
3
|
+
text: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
hiddenClose?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface DsActiveTagsProps {
|
|
8
|
+
title: string;
|
|
9
|
+
activeTags: Tag[];
|
|
10
|
+
handleTagClose: (_indexToRemove: number) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const DsActiveTags: {
|
|
13
|
+
({ title, activeTags, handleTagClose, }: DsActiveTagsProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export default DsActiveTags;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DsActiveTagsProps } from './ActiveTags';
|
|
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, DsActiveTagsProps>;
|
|
8
|
+
args: {
|
|
9
|
+
title: string;
|
|
10
|
+
activeTags: {
|
|
11
|
+
text: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
title: string;
|
|
14
|
+
}[];
|
|
15
|
+
handleTagClose: import('@storybook/addon-actions').HandlerFunction;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
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 interface Option {
|
|
8
|
+
label: string;
|
|
9
|
+
value?: string | number;
|
|
10
|
+
name?: string;
|
|
11
|
+
id?: string | number;
|
|
12
|
+
}
|
|
13
|
+
export interface TestIdProps {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
}
|
|
17
|
+
export interface LabelProps {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
}
|
|
21
|
+
export interface DisabledProps {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface LoadingProps {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
}
|
|
28
|
+
export interface AnimatedProps {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface PlaceholderProps {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IconProps {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: undefined;
|
|
39
|
+
}
|
|
40
|
+
export interface NameProps {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
}
|
|
44
|
+
export interface NoOptionsMessageProps {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
}
|
|
48
|
+
export interface OptionsProps {
|
|
49
|
+
type: ArrayConstructor;
|
|
50
|
+
default: never[];
|
|
51
|
+
}
|
|
52
|
+
export interface StatusProps {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ValueProps {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
}
|
|
60
|
+
export interface SizeProps {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
options: Size[];
|
|
63
|
+
default: Size;
|
|
64
|
+
}
|
|
65
|
+
export interface OnChangeHandlerProps {
|
|
66
|
+
type: FunctionConstructor;
|
|
67
|
+
default: () => void;
|
|
68
|
+
}
|
|
69
|
+
export interface OnBlurHandlerProps {
|
|
70
|
+
type: FunctionConstructor;
|
|
71
|
+
default: () => void;
|
|
72
|
+
}
|
|
73
|
+
export interface OnFocusHandlerProps {
|
|
74
|
+
type: FunctionConstructor;
|
|
75
|
+
default: () => void;
|
|
76
|
+
}
|
|
77
|
+
export interface OnSelectHandlerProps {
|
|
78
|
+
type: FunctionConstructor;
|
|
79
|
+
default: () => void;
|
|
80
|
+
}
|
|
81
|
+
export interface EditableSelectConfig {
|
|
82
|
+
name: string;
|
|
83
|
+
class: string;
|
|
84
|
+
props: {
|
|
85
|
+
label: LabelProps;
|
|
86
|
+
testId: TestIdProps;
|
|
87
|
+
animated: AnimatedProps;
|
|
88
|
+
loading: LoadingProps;
|
|
89
|
+
disabled: DisabledProps;
|
|
90
|
+
icon: IconProps;
|
|
91
|
+
name: NameProps;
|
|
92
|
+
noOptionsMessage: NoOptionsMessageProps;
|
|
93
|
+
options: OptionsProps;
|
|
94
|
+
status: StatusProps;
|
|
95
|
+
value: ValueProps;
|
|
96
|
+
size: SizeProps;
|
|
97
|
+
onChangeHandler: OnChangeHandlerProps;
|
|
98
|
+
onBlurHandler: OnBlurHandlerProps;
|
|
99
|
+
onFocusHandler: OnFocusHandlerProps;
|
|
100
|
+
onSelectHandler: OnSelectHandlerProps;
|
|
101
|
+
placeholder: PlaceholderProps;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
declare const EditableSelectConfig: EditableSelectConfig;
|
|
105
|
+
export default EditableSelectConfig;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Option } from './EditableSelect.config';
|
|
2
|
+
|
|
3
|
+
export interface DsEditableSelectProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
size?: string;
|
|
9
|
+
options?: Option[];
|
|
10
|
+
onChangeHandler?: (event: React.ChangeEvent<HTMLInputElement> | React.FormEvent<HTMLInputElement>) => void;
|
|
11
|
+
onSelectHandler?: (selectedOption: object) => void;
|
|
12
|
+
icon?: string;
|
|
13
|
+
noOptionsMessage?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
status?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
animated?: boolean;
|
|
19
|
+
onBlurHandler?: () => void;
|
|
20
|
+
onFocusHandler?: () => void;
|
|
21
|
+
}
|
|
22
|
+
declare const DsEditableSelect: {
|
|
23
|
+
({ label, name, testId, value, options, size, onChangeHandler, onSelectHandler, icon, noOptionsMessage, disabled, status, onBlurHandler, onFocusHandler, animated, placeholder, loading, }: DsEditableSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
export default DsEditableSelect;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DsEditableSelectProps } 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, DsEditableSelectProps>;
|
|
8
|
+
args: {
|
|
9
|
+
label: string;
|
|
10
|
+
name: string;
|
|
11
|
+
options: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const Disabled: {
|
|
18
|
+
render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsEditableSelectProps>;
|
|
19
|
+
args: {
|
|
20
|
+
name: string;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|