@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.
Files changed (205) hide show
  1. package/css/aon-theme.css +1 -0
  2. package/css/bees-theme.css +1 -0
  3. package/css/bmc-theme.css +1 -0
  4. package/css/default-theme.css +1 -0
  5. package/css/linker-theme.css +1 -0
  6. package/css/oggi-theme.css +1 -0
  7. package/css/package.json +5 -0
  8. package/css/streetgo-theme.css +1 -0
  9. package/css/vite.svg +1 -0
  10. package/package.json +11 -0
  11. package/react/components/atoms/Button/Button.config.d.ts +94 -0
  12. package/react/components/atoms/Button/Button.d.ts +35 -0
  13. package/react/components/atoms/Button/Button.stories.d.ts +17 -0
  14. package/react/components/atoms/Button/Button.test.d.ts +1 -0
  15. package/react/components/atoms/Button/index.d.ts +4 -0
  16. package/react/components/atoms/Caption/Caption.config.d.ts +6 -0
  17. package/react/components/atoms/Caption/Caption.d.ts +18 -0
  18. package/react/components/atoms/Caption/Caption.stories.d.ts +9 -0
  19. package/react/components/atoms/Caption/Caption.test.d.ts +1 -0
  20. package/react/components/atoms/Caption/index.d.ts +4 -0
  21. package/react/components/atoms/Card/Card.config.d.ts +76 -0
  22. package/react/components/atoms/Card/Card.d.ts +23 -0
  23. package/react/components/atoms/Card/Card.stories.d.ts +23 -0
  24. package/react/components/atoms/Card/Card.test.d.ts +1 -0
  25. package/react/components/atoms/Card/index.d.ts +4 -0
  26. package/react/components/atoms/Checkbox/Checkbox.config.d.ts +62 -0
  27. package/react/components/atoms/Checkbox/Checkbox.d.ts +5 -0
  28. package/react/components/atoms/Checkbox/Checkbox.stories.d.ts +23 -0
  29. package/react/components/atoms/Checkbox/Checkbox.test.d.ts +1 -0
  30. package/react/components/atoms/Checkbox/index.d.ts +5 -0
  31. package/react/components/atoms/Heading/Heading.config.d.ts +23 -0
  32. package/react/components/atoms/Heading/Heading.d.ts +19 -0
  33. package/react/components/atoms/Heading/Heading.stories.d.ts +48 -0
  34. package/react/components/atoms/Heading/Heading.test.d.ts +1 -0
  35. package/react/components/atoms/Heading/index.d.ts +4 -0
  36. package/react/components/atoms/HorizontalRule/HorizontalRule.config.d.ts +32 -0
  37. package/react/components/atoms/HorizontalRule/HorizontalRule.d.ts +15 -0
  38. package/react/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +9 -0
  39. package/react/components/atoms/HorizontalRule/HorizontalRule.test.d.ts +1 -0
  40. package/react/components/atoms/HorizontalRule/index.d.ts +4 -0
  41. package/react/components/atoms/Icon/Icon.config.d.ts +129 -0
  42. package/react/components/atoms/Icon/Icon.d.ts +35 -0
  43. package/react/components/atoms/Icon/Icon.stories.d.ts +19 -0
  44. package/react/components/atoms/Icon/Icon.test.d.ts +1 -0
  45. package/react/components/atoms/Icon/index.d.ts +4 -0
  46. package/react/components/atoms/Input/Input.config.d.ts +151 -0
  47. package/react/components/atoms/Input/Input.d.ts +30 -0
  48. package/react/components/atoms/Input/Input.stories.d.ts +23 -0
  49. package/react/components/atoms/Input/Input.test.d.ts +1 -0
  50. package/react/components/atoms/Input/index.d.ts +4 -0
  51. package/react/components/atoms/Input/mask.d.ts +42 -0
  52. package/react/components/atoms/Loading/Loading.config.d.ts +54 -0
  53. package/react/components/atoms/Loading/Loading.d.ts +24 -0
  54. package/react/components/atoms/Loading/Loading.stories.d.ts +11 -0
  55. package/react/components/atoms/Loading/Loading.test.d.ts +1 -0
  56. package/react/components/atoms/Loading/index.d.ts +4 -0
  57. package/react/components/atoms/Option/Option.config.d.ts +53 -0
  58. package/react/components/atoms/Option/Option.d.ts +30 -0
  59. package/react/components/atoms/Option/Option.stories.d.ts +12 -0
  60. package/react/components/atoms/Option/Option.test.d.ts +1 -0
  61. package/react/components/atoms/Option/index.d.ts +4 -0
  62. package/react/components/atoms/Paragraph/Paragraph.config.d.ts +20 -0
  63. package/react/components/atoms/Paragraph/Paragraph.d.ts +19 -0
  64. package/react/components/atoms/Paragraph/Paragraph.stories.d.ts +21 -0
  65. package/react/components/atoms/Paragraph/Paragraph.test.d.ts +1 -0
  66. package/react/components/atoms/Paragraph/index.d.ts +4 -0
  67. package/react/components/atoms/Progress/Progress.config.d.ts +31 -0
  68. package/react/components/atoms/Progress/Progress.d.ts +16 -0
  69. package/react/components/atoms/Progress/Progress.stories.d.ts +13 -0
  70. package/react/components/atoms/Progress/Progress.test.d.ts +1 -0
  71. package/react/components/atoms/Progress/index.d.ts +4 -0
  72. package/react/components/atoms/Select/Select.config.d.ts +125 -0
  73. package/react/components/atoms/Select/Select.d.ts +25 -0
  74. package/react/components/atoms/Select/Select.stories.d.ts +27 -0
  75. package/react/components/atoms/Select/Select.test.d.ts +1 -0
  76. package/react/components/atoms/Select/index.d.ts +4 -0
  77. package/react/components/atoms/Subtitle/Subtitle.config.d.ts +19 -0
  78. package/react/components/atoms/Subtitle/Subtitle.d.ts +13 -0
  79. package/react/components/atoms/Subtitle/Subtitle.stories.d.ts +23 -0
  80. package/react/components/atoms/Subtitle/Subtitle.test.d.ts +1 -0
  81. package/react/components/atoms/Subtitle/index.d.ts +4 -0
  82. package/react/components/atoms/TextArea/TextArea.config.d.ts +132 -0
  83. package/react/components/atoms/TextArea/TextArea.d.ts +31 -0
  84. package/react/components/atoms/TextArea/TextArea.stories.d.ts +27 -0
  85. package/react/components/atoms/TextArea/TextArea.test.d.ts +1 -0
  86. package/react/components/atoms/TextArea/index.d.ts +4 -0
  87. package/react/components/atoms/Tooltip/Tooltip.config.d.ts +38 -0
  88. package/react/components/atoms/Tooltip/Tooltip.d.ts +20 -0
  89. package/react/components/atoms/Tooltip/Tooltip.stories.d.ts +46 -0
  90. package/react/components/atoms/Tooltip/Tooltip.test.d.ts +1 -0
  91. package/react/components/atoms/Tooltip/index.d.ts +4 -0
  92. package/react/components/bosons/Container/Container.config.d.ts +13 -0
  93. package/react/components/bosons/Container/Container.d.ts +20 -0
  94. package/react/components/bosons/Container/Container.stories.d.ts +20 -0
  95. package/react/components/bosons/Container/Container.test.d.ts +1 -0
  96. package/react/components/bosons/Container/index.d.ts +4 -0
  97. package/react/components/bosons/FlexLayout/FlexElement.config.d.ts +20 -0
  98. package/react/components/bosons/FlexLayout/FlexElement.d.ts +27 -0
  99. package/react/components/bosons/FlexLayout/FlexLayout.config.d.ts +100 -0
  100. package/react/components/bosons/FlexLayout/FlexLayout.d.ts +28 -0
  101. package/react/components/bosons/FlexLayout/FlexLayout.stories.d.ts +20 -0
  102. package/react/components/bosons/FlexLayout/FlexLayout.test.d.ts +1 -0
  103. package/react/components/bosons/FlexLayout/index.d.ts +5 -0
  104. package/react/components/bosons/GridLayout/GridElement.config.d.ts +17 -0
  105. package/react/components/bosons/GridLayout/GridElement.d.ts +9 -0
  106. package/react/components/bosons/GridLayout/GridElement.test.d.ts +1 -0
  107. package/react/components/bosons/GridLayout/GridLayout.config.d.ts +82 -0
  108. package/react/components/bosons/GridLayout/GridLayout.d.ts +29 -0
  109. package/react/components/bosons/GridLayout/GridLayout.stories.d.ts +12 -0
  110. package/react/components/bosons/GridLayout/GridLayout.test.d.ts +1 -0
  111. package/react/components/bosons/GridLayout/index.d.ts +5 -0
  112. package/react/components/bosons/Spacer/Spacer.config.d.ts +25 -0
  113. package/react/components/bosons/Spacer/Spacer.d.ts +15 -0
  114. package/react/components/bosons/Spacer/Spacer.stories.d.ts +15 -0
  115. package/react/components/bosons/Spacer/Spacer.test.d.ts +1 -0
  116. package/react/components/bosons/Spacer/index.d.ts +4 -0
  117. package/react/components/bosons/Wrapper/Wrapper.config.d.ts +28 -0
  118. package/react/components/bosons/Wrapper/Wrapper.d.ts +15 -0
  119. package/react/components/bosons/Wrapper/Wrapper.stories.d.ts +21 -0
  120. package/react/components/bosons/Wrapper/Wrapper.test.d.ts +1 -0
  121. package/react/components/bosons/Wrapper/index.d.ts +4 -0
  122. package/react/components/index.d.ts +37 -0
  123. package/react/components/molecules/Accordion/Accordion.config.d.ts +25 -0
  124. package/react/components/molecules/Accordion/Accordion.d.ts +17 -0
  125. package/react/components/molecules/Accordion/Accordion.stories.d.ts +9 -0
  126. package/react/components/molecules/Accordion/Accordion.test.d.ts +1 -0
  127. package/react/components/molecules/Accordion/AccordionItem.config.d.ts +28 -0
  128. package/react/components/molecules/Accordion/AccordionItem.d.ts +14 -0
  129. package/react/components/molecules/Accordion/index.d.ts +5 -0
  130. package/react/components/molecules/ActiveTags/ActiveTags.config.d.ts +23 -0
  131. package/react/components/molecules/ActiveTags/ActiveTags.d.ts +16 -0
  132. package/react/components/molecules/ActiveTags/ActiveTags.stories.d.ts +17 -0
  133. package/react/components/molecules/ActiveTags/ActiveTags.test.d.ts +1 -0
  134. package/react/components/molecules/ActiveTags/index.d.ts +4 -0
  135. package/react/components/molecules/EditableSelect/EditableSelect.config.d.ts +105 -0
  136. package/react/components/molecules/EditableSelect/EditableSelect.d.ts +26 -0
  137. package/react/components/molecules/EditableSelect/EditableSelect.stories.d.ts +24 -0
  138. package/react/components/molecules/EditableSelect/EditableSelect.test.d.ts +1 -0
  139. package/react/components/molecules/EditableSelect/index.d.ts +4 -0
  140. package/react/components/molecules/Indicator/Indicator.config.d.ts +18 -0
  141. package/react/components/molecules/Indicator/Indicator.d.ts +6 -0
  142. package/react/components/molecules/Indicator/Indicator.stories.d.ts +12 -0
  143. package/react/components/molecules/Indicator/Indicator.test.d.ts +1 -0
  144. package/react/components/molecules/Indicator/index.d.ts +4 -0
  145. package/react/components/molecules/InlineEditable/InlineEditable.config.d.ts +73 -0
  146. package/react/components/molecules/InlineEditable/InlineEditable.d.ts +20 -0
  147. package/react/components/molecules/InlineEditable/InlineEditable.stories.d.ts +17 -0
  148. package/react/components/molecules/InlineEditable/InlineEditable.test.d.ts +1 -0
  149. package/react/components/molecules/InlineEditable/index.d.ts +4 -0
  150. package/react/components/molecules/Modal/Modal.config.d.ts +41 -0
  151. package/react/components/molecules/Modal/Modal.d.ts +31 -0
  152. package/react/components/molecules/Modal/Modal.stories.d.ts +45 -0
  153. package/react/components/molecules/Modal/Modal.test.d.ts +1 -0
  154. package/react/components/molecules/Modal/index.d.ts +4 -0
  155. package/react/components/molecules/Notification/Notification.config.d.ts +77 -0
  156. package/react/components/molecules/Notification/Notification.d.ts +7 -0
  157. package/react/components/molecules/Notification/Notification.stories.d.ts +90 -0
  158. package/react/components/molecules/Notification/Notification.test.d.ts +1 -0
  159. package/react/components/molecules/Notification/index.d.ts +5 -0
  160. package/react/components/molecules/PasswordConfirmation/PasswordConfirmartion.test.d.ts +1 -0
  161. package/react/components/molecules/PasswordConfirmation/PasswordConfirmation.config.d.ts +27 -0
  162. package/react/components/molecules/PasswordConfirmation/PasswordConfirmation.d.ts +31 -0
  163. package/react/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +14 -0
  164. package/react/components/molecules/PasswordConfirmation/index.d.ts +4 -0
  165. package/react/components/molecules/Stepper/Stepper.config.d.ts +18 -0
  166. package/react/components/molecules/Stepper/Stepper.d.ts +12 -0
  167. package/react/components/molecules/Stepper/Stepper.stories.d.ts +23 -0
  168. package/react/components/molecules/Stepper/Stepper.test.d.ts +1 -0
  169. package/react/components/molecules/Stepper/index.d.ts +4 -0
  170. package/react/components/molecules/Table/Table.config.d.ts +23 -0
  171. package/react/components/molecules/Table/Table.d.ts +7 -0
  172. package/react/components/molecules/Table/Table.stories.d.ts +12 -0
  173. package/react/components/molecules/Table/Table.test.d.ts +1 -0
  174. package/react/components/molecules/Table/Table.types.d.ts +21 -0
  175. package/react/components/molecules/Table/TableRow.d.ts +7 -0
  176. package/react/components/molecules/Table/dataTable.mock.d.ts +5 -0
  177. package/react/components/molecules/Table/index.d.ts +5 -0
  178. package/react/components/molecules/Tabs/Tab.d.ts +5 -0
  179. package/react/components/molecules/Tabs/Tab.test.d.ts +1 -0
  180. package/react/components/molecules/Tabs/Tabs.config.d.ts +45 -0
  181. package/react/components/molecules/Tabs/Tabs.d.ts +12 -0
  182. package/react/components/molecules/Tabs/Tabs.stories.d.ts +24 -0
  183. package/react/components/molecules/Tabs/Tabs.test.d.ts +1 -0
  184. package/react/components/molecules/Tabs/index.d.ts +6 -0
  185. package/react/components/molecules/ThemeProvider/ThemeProvider.config.d.ts +30 -0
  186. package/react/components/molecules/ThemeProvider/ThemeProvider.d.ts +17 -0
  187. package/react/components/molecules/ThemeProvider/ThemeProvider.test.d.ts +1 -0
  188. package/react/components/molecules/ThemeProvider/index.d.ts +4 -0
  189. package/react/components/organisms/NotificationList/NotificationList.config.d.ts +33 -0
  190. package/react/components/organisms/NotificationList/NotificationList.d.ts +21 -0
  191. package/react/components/organisms/NotificationList/NotificationList.stories.d.ts +27 -0
  192. package/react/components/organisms/NotificationList/NotificationList.test.d.ts +1 -0
  193. package/react/components/organisms/NotificationList/index.d.ts +4 -0
  194. package/react/components/templates/TwoColumns/TwoColumns.config.d.ts +7 -0
  195. package/react/components/templates/TwoColumns/TwoColumns.d.ts +19 -0
  196. package/react/components/templates/TwoColumns/TwoColumns.test.d.ts +1 -0
  197. package/react/components/templates/TwoColumns/index.d.ts +5 -0
  198. package/react/decorators/storybook.d.ts +3 -0
  199. package/react/decorators/storybook.test.d.ts +1 -0
  200. package/react/main.d.ts +1 -0
  201. package/react/package.json +13 -0
  202. package/react/react-lib.js +6816 -0
  203. package/react/react-lib.umd.cjs +20 -0
  204. package/react/types/types.d.ts +43 -0
  205. package/react/vite.svg +1 -0
@@ -0,0 +1,23 @@
1
+ import { DsInputProps } 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, DsInputProps>;
8
+ args: {
9
+ name: string;
10
+ label: string;
11
+ placeholder: string;
12
+ value: string;
13
+ min: string;
14
+ max: string;
15
+ type: import('./Input.config').InputType;
16
+ disabled: boolean;
17
+ tooltip: string;
18
+ status: import('./Input.config').Status;
19
+ feedback: string;
20
+ hasFeedback: boolean;
21
+ noMargin: boolean;
22
+ };
23
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as DsInput, DsInputProps } from './Input';
2
+
3
+ export { DsInput };
4
+ export type { DsInputProps };
@@ -0,0 +1,42 @@
1
+ import { MaskedOptions } from 'imask';
2
+
3
+ interface MaskedDynamic {
4
+ value: string;
5
+ compiledMasks: MaskedOptions[];
6
+ }
7
+ declare const maskConfig: {
8
+ currency: {
9
+ mask: string;
10
+ blocks: {
11
+ currency: {
12
+ mask: string;
13
+ lazy: boolean;
14
+ blocks: {
15
+ num: {
16
+ mask: NumberConstructor;
17
+ scale: number;
18
+ thousandsSeparator: string;
19
+ padFractionalZeros: boolean;
20
+ normalizeZeros: boolean;
21
+ radix: string;
22
+ mapToRadix: string[];
23
+ };
24
+ };
25
+ };
26
+ };
27
+ };
28
+ document: {
29
+ mask: {
30
+ mask: string;
31
+ startsWith: RegExp;
32
+ maxLength: number;
33
+ }[];
34
+ };
35
+ 'phone-br': {
36
+ mask: {
37
+ mask: string;
38
+ }[];
39
+ dispatch: (appended: string, dynamicMasked: MaskedDynamic) => Partial<Pick<import('imask').Masked<any>, "mask" | "parent" | "prepare" | "prepareChar" | "validate" | "commit" | "format" | "parse" | "overwrite" | "eager" | "skipInvalid" | "autofix">>;
40
+ };
41
+ };
42
+ export default maskConfig;
@@ -0,0 +1,54 @@
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 BackgroundColor: {
8
+ readonly None: "";
9
+ readonly Neutral20: "neutral-20";
10
+ readonly Neutral10: "neutral-10";
11
+ readonly Neutral05: "neutral-05";
12
+ readonly Neutral00: "neutral-00";
13
+ };
14
+ export type BackgroundColor = (typeof BackgroundColor)[keyof typeof BackgroundColor];
15
+ export interface SizeProps {
16
+ type: StringConstructor;
17
+ default: Size;
18
+ options: Size[];
19
+ }
20
+ export interface OpacityProps {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ }
24
+ export interface FullscreenProps {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ }
28
+ export interface BackgroundColorProps {
29
+ type: StringConstructor;
30
+ default: BackgroundColor;
31
+ options: BackgroundColor[];
32
+ }
33
+ export interface IdProps {
34
+ type: StringConstructor;
35
+ default: string;
36
+ }
37
+ export interface TestIdProps {
38
+ type: StringConstructor;
39
+ default: string;
40
+ }
41
+ export interface LoadingConfig {
42
+ name: string;
43
+ class: string;
44
+ props: {
45
+ id: IdProps;
46
+ testId: TestIdProps;
47
+ size: SizeProps;
48
+ opacity: OpacityProps;
49
+ fullscreen: FullscreenProps;
50
+ backgroundColor: BackgroundColorProps;
51
+ };
52
+ }
53
+ declare const LoadingConfig: LoadingConfig;
54
+ export default LoadingConfig;
@@ -0,0 +1,24 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+
3
+ export interface DsLoadingProps {
4
+ id?: string;
5
+ testId?: string;
6
+ className?: string;
7
+ size?: string;
8
+ opacity?: boolean;
9
+ fullscreen?: boolean;
10
+ backgroundColor?: string;
11
+ }
12
+ declare const DsLoading: {
13
+ ({ id, testId, className, size, opacity, fullscreen, backgroundColor, }: DsLoadingProps): import("react/jsx-runtime").JSX.Element;
14
+ propTypes: {
15
+ id: PropTypes.Requireable<string>;
16
+ testId: PropTypes.Requireable<string>;
17
+ size: PropTypes.Requireable<import('./Loading.config').Size>;
18
+ opacity: PropTypes.Requireable<boolean>;
19
+ fullscreen: PropTypes.Requireable<boolean>;
20
+ backgroundColor: PropTypes.Requireable<string>;
21
+ };
22
+ displayName: string;
23
+ };
24
+ export default DsLoading;
@@ -0,0 +1,11 @@
1
+ import { DsLoadingProps } 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, DsLoadingProps>;
8
+ args: {
9
+ size: string;
10
+ };
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as DsLoading, DsLoadingProps } from './Loading';
2
+
3
+ export { DsLoading };
4
+ export type { DsLoadingProps };
@@ -0,0 +1,53 @@
1
+ export interface IdProps {
2
+ type: StringConstructor;
3
+ default: string;
4
+ }
5
+ export interface NameProps {
6
+ type: StringConstructor;
7
+ default: string;
8
+ }
9
+ export interface TestIdProps {
10
+ type: StringConstructor;
11
+ default: string;
12
+ }
13
+ export interface LabelProps {
14
+ type: StringConstructor;
15
+ default: string;
16
+ }
17
+ export interface ValueProps {
18
+ type: StringConstructor;
19
+ default: string;
20
+ }
21
+ export interface DisabledProps {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ }
25
+ export interface DetailProps {
26
+ type: StringConstructor;
27
+ default: string;
28
+ }
29
+ export interface CheckedProps {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ }
33
+ export interface OnChangeHandlerProps {
34
+ type: FunctionConstructor;
35
+ default: () => void;
36
+ }
37
+ export interface OptionConfig {
38
+ name: string;
39
+ class: string;
40
+ props: {
41
+ id: IdProps;
42
+ name: NameProps;
43
+ testId: TestIdProps;
44
+ label: LabelProps;
45
+ value: ValueProps;
46
+ disabled: DisabledProps;
47
+ detail: DetailProps;
48
+ checked: CheckedProps;
49
+ onChangeHandler: OnChangeHandlerProps;
50
+ };
51
+ }
52
+ declare const OptionConfig: OptionConfig;
53
+ export default OptionConfig;
@@ -0,0 +1,30 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { default as PropTypes } from 'prop-types';
3
+
4
+ export interface DsOptionProps extends React.InputHTMLAttributes<HTMLInputElement> {
5
+ id?: string;
6
+ name?: string;
7
+ testId?: string;
8
+ label?: string | ReactNode;
9
+ value?: string;
10
+ disabled?: boolean;
11
+ detail?: string;
12
+ checked?: boolean;
13
+ onChangeHandler: React.ChangeEventHandler<HTMLInputElement>;
14
+ }
15
+ declare const DsOption: {
16
+ ({ id, label, detail, name, testId, disabled, value, checked, onChangeHandler, }: DsOptionProps): import("react/jsx-runtime").JSX.Element;
17
+ propTypes: {
18
+ id: PropTypes.Requireable<string>;
19
+ name: PropTypes.Requireable<string>;
20
+ testId: PropTypes.Requireable<string>;
21
+ label: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
22
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
23
+ detail: PropTypes.Requireable<string>;
24
+ disabled: PropTypes.Requireable<boolean>;
25
+ checked: PropTypes.Requireable<boolean>;
26
+ onChangeHandler: PropTypes.Requireable<(...args: any[]) => any>;
27
+ };
28
+ displayName: string;
29
+ };
30
+ export default DsOption;
@@ -0,0 +1,12 @@
1
+ import { DsOptionProps } 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, DsOptionProps>;
8
+ args: {
9
+ label: string;
10
+ detail: string;
11
+ };
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as DsOption, DsOptionProps } from './Option';
2
+
3
+ export { DsOption };
4
+ export type { DsOptionProps };
@@ -0,0 +1,20 @@
1
+ export declare const ParagraphType: {
2
+ readonly Default: "";
3
+ readonly Large: "large";
4
+ readonly Small: "small";
5
+ };
6
+ export type ParagraphType = (typeof ParagraphType)[keyof typeof ParagraphType];
7
+ export interface ParagraphTypeProps {
8
+ type: StringConstructor;
9
+ default: ParagraphType;
10
+ options: ParagraphType[];
11
+ }
12
+ export interface ParagraphConfig {
13
+ name: string;
14
+ class: string;
15
+ props: {
16
+ type: ParagraphTypeProps;
17
+ };
18
+ }
19
+ declare const ParagraphConfig: ParagraphConfig;
20
+ export default ParagraphConfig;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { default as PropTypes } from 'prop-types';
3
+
4
+ export interface DsParagraphProps {
5
+ children?: React.ReactNode;
6
+ className?: string;
7
+ testId?: string;
8
+ type?: string;
9
+ }
10
+ declare const DsParagraph: {
11
+ ({ children, className, testId, type, }: DsParagraphProps): import("react/jsx-runtime").JSX.Element;
12
+ propTypes: {
13
+ className: PropTypes.Requireable<string>;
14
+ testId: PropTypes.Requireable<string>;
15
+ type: PropTypes.Requireable<import('./Paragraph.config').ParagraphType>;
16
+ };
17
+ displayName: string;
18
+ };
19
+ export default DsParagraph;
@@ -0,0 +1,21 @@
1
+ import { DsParagraphProps } 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, DsParagraphProps>;
8
+ args: {};
9
+ };
10
+ export declare const Small: {
11
+ render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsParagraphProps>;
12
+ args: {
13
+ type: string;
14
+ };
15
+ };
16
+ export declare const Large: {
17
+ render: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsParagraphProps>;
18
+ args: {
19
+ type: string;
20
+ };
21
+ };
@@ -0,0 +1,4 @@
1
+ import { default as DsParagraph, DsParagraphProps } from './Paragraph';
2
+
3
+ export { DsParagraph };
4
+ export type { DsParagraphProps };
@@ -0,0 +1,31 @@
1
+ export declare const Color: {
2
+ readonly Success: "success";
3
+ readonly SuccessDark: "success-dark";
4
+ readonly Warning: "warning";
5
+ readonly Danger: "danger";
6
+ };
7
+ export type Color = (typeof Color)[keyof typeof Color];
8
+ export interface LabelProps {
9
+ type: StringConstructor;
10
+ default: string;
11
+ }
12
+ export interface ProgressProps {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ }
16
+ export interface ColorProps {
17
+ type: StringConstructor;
18
+ default: Color;
19
+ options: Color[];
20
+ }
21
+ export interface ProgressConfig {
22
+ name: string;
23
+ class: string;
24
+ props: {
25
+ label: LabelProps;
26
+ progress: ProgressProps;
27
+ color: ColorProps;
28
+ };
29
+ }
30
+ declare const ProgressConfig: ProgressConfig;
31
+ export default ProgressConfig;
@@ -0,0 +1,16 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+
3
+ export interface DsProgressProps {
4
+ label?: string;
5
+ progress: number;
6
+ color?: string;
7
+ }
8
+ declare const DsProgress: {
9
+ ({ label, progress, color, }: DsProgressProps): import("react/jsx-runtime").JSX.Element;
10
+ propTypes: {
11
+ label: PropTypes.Requireable<string>;
12
+ progress: PropTypes.Requireable<number>;
13
+ color: PropTypes.Requireable<string>;
14
+ };
15
+ };
16
+ export default DsProgress;
@@ -0,0 +1,13 @@
1
+ import { DsProgressProps } 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, DsProgressProps>;
8
+ args: {
9
+ label: string;
10
+ color: string;
11
+ progress: number;
12
+ };
13
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as DsProgress, DsProgressProps } from './Progress';
2
+
3
+ export { DsProgress };
4
+ export type { DsProgressProps };
@@ -0,0 +1,125 @@
1
+ export declare const Size: {
2
+ readonly Small: "sm";
3
+ readonly Medium: "md";
4
+ readonly Large: "lg";
5
+ };
6
+ export type Size = (typeof Size)[keyof typeof Size];
7
+ export declare const Status: {
8
+ readonly Default: "";
9
+ readonly Error: "error";
10
+ readonly Success: "success";
11
+ };
12
+ export type Status = (typeof Status)[keyof typeof Status];
13
+ export declare const TooltipPlacement: {
14
+ readonly Center: "center";
15
+ readonly End: "end";
16
+ readonly Initial: "initial";
17
+ };
18
+ export type TooltipPlacement = (typeof TooltipPlacement)[keyof typeof TooltipPlacement];
19
+ export declare const TooltipPosition: {
20
+ readonly Top: "top";
21
+ readonly Right: "right";
22
+ readonly Bottom: "bottom";
23
+ readonly Left: "left";
24
+ };
25
+ export type TooltipPosition = (typeof TooltipPosition)[keyof typeof TooltipPosition];
26
+ export interface LabelProps {
27
+ type: StringConstructor;
28
+ default: string;
29
+ }
30
+ export interface ClassNameProps {
31
+ type: StringConstructor;
32
+ default: string;
33
+ }
34
+ export interface AnimatedProps {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ }
38
+ export interface DisabledProps {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ }
42
+ export interface MultipleProps {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ }
46
+ export interface NameProps {
47
+ type: StringConstructor;
48
+ default: string;
49
+ }
50
+ export interface TestIdProps {
51
+ type: StringConstructor;
52
+ default: string;
53
+ }
54
+ export interface PlaceholderProps {
55
+ type: StringConstructor;
56
+ }
57
+ export interface OnChangeProps {
58
+ type: FunctionConstructor;
59
+ default: () => void;
60
+ }
61
+ export interface ValueProps {
62
+ type: (BooleanConstructor | StringConstructor | NumberConstructor | undefined)[];
63
+ }
64
+ export interface SizeProps {
65
+ type: StringConstructor;
66
+ options: Size[];
67
+ default: Size;
68
+ }
69
+ export interface StatusProps {
70
+ type: StringConstructor;
71
+ default: Status;
72
+ options: Status[];
73
+ }
74
+ export interface TooltipProps {
75
+ type: StringConstructor;
76
+ default: string;
77
+ }
78
+ export interface TooltipPlacementProps {
79
+ type: StringConstructor;
80
+ default: TooltipPlacement;
81
+ options: TooltipPlacement[];
82
+ }
83
+ export interface TooltipPositionProps {
84
+ type: StringConstructor;
85
+ default: TooltipPosition;
86
+ options: TooltipPosition[];
87
+ }
88
+ export interface FeedbackProps {
89
+ type: StringConstructor;
90
+ default: string;
91
+ }
92
+ interface Option {
93
+ label?: string;
94
+ value?: string | number | readonly string[];
95
+ }
96
+ interface GroupedOption {
97
+ label?: string;
98
+ options: Option[];
99
+ }
100
+ export type SelectOptions = (Option | GroupedOption)[];
101
+ export interface SelectConfig {
102
+ name: string;
103
+ class: string;
104
+ props: {
105
+ label: LabelProps;
106
+ className: ClassNameProps;
107
+ animated: AnimatedProps;
108
+ disabled: DisabledProps;
109
+ multiple: MultipleProps;
110
+ name: NameProps;
111
+ options: SelectOptions;
112
+ testId: TestIdProps;
113
+ placeholder: PlaceholderProps;
114
+ onChange: OnChangeProps;
115
+ value: ValueProps;
116
+ size: SizeProps;
117
+ status: StatusProps;
118
+ tooltip: TooltipProps;
119
+ tooltipPlacement: TooltipPlacementProps;
120
+ tooltipPosition: TooltipPositionProps;
121
+ feedback: FeedbackProps;
122
+ };
123
+ }
124
+ declare const SelectConfig: SelectConfig;
125
+ export default SelectConfig;
@@ -0,0 +1,25 @@
1
+ import { SelectOptions } from './Select.config';
2
+ import { default as React } from 'react';
3
+
4
+ export interface DsSelectProps {
5
+ label: string;
6
+ className?: string;
7
+ disabled?: boolean;
8
+ animated?: boolean;
9
+ multiple?: boolean;
10
+ name?: string;
11
+ testId?: string;
12
+ options: SelectOptions;
13
+ value?: string | number;
14
+ placeholder?: string;
15
+ onChange?: (e: React.ChangeEvent<HTMLSelectElement>, value: string | number) => void;
16
+ onChangeHandler?: (e: React.ChangeEvent<HTMLSelectElement>, value: string | number) => void;
17
+ size?: string;
18
+ status?: string;
19
+ tooltip?: string;
20
+ tooltipPosition?: string;
21
+ tooltipPlacement?: string;
22
+ feedback?: string;
23
+ }
24
+ declare const DsSelect: React.ForwardRefExoticComponent<DsSelectProps & React.RefAttributes<HTMLInputElement>>;
25
+ export default DsSelect;
@@ -0,0 +1,27 @@
1
+ import { DsSelectProps } 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, DsSelectProps>;
8
+ args: {
9
+ label: string;
10
+ disabled: boolean;
11
+ multiple: boolean;
12
+ size: import('./Select.config').Size;
13
+ status: import('./Select.config').Status;
14
+ options: {
15
+ value: string;
16
+ label: string;
17
+ }[];
18
+ className: string;
19
+ animated: boolean;
20
+ name: string;
21
+ testId: string;
22
+ placeholder: string;
23
+ tooltip: string;
24
+ tooltipPlacement: import('./Select.config').TooltipPlacement;
25
+ tooltipPosition: import('./Select.config').TooltipPosition;
26
+ };
27
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { default as DsSelect, DsSelectProps } from './Select';
2
+
3
+ export { DsSelect };
4
+ export type { DsSelectProps };
@@ -0,0 +1,19 @@
1
+ export declare const SubtitleType: {
2
+ readonly Large: "large";
3
+ readonly Small: "small";
4
+ };
5
+ export type SubtitleType = (typeof SubtitleType)[keyof typeof SubtitleType];
6
+ export interface SubtitleTypeProps {
7
+ type: StringConstructor;
8
+ default: SubtitleType;
9
+ options: SubtitleType[];
10
+ }
11
+ export interface SubtitleConfig {
12
+ name: string;
13
+ class: string;
14
+ props: {
15
+ type: SubtitleTypeProps;
16
+ };
17
+ }
18
+ declare const SubtitleConfig: SubtitleConfig;
19
+ export default SubtitleConfig;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface DsSubtitleProps {
4
+ children?: React.ReactNode;
5
+ className?: string;
6
+ testId?: string;
7
+ type?: string;
8
+ }
9
+ declare const DsSubtitle: {
10
+ ({ children, className, testId, type, }: DsSubtitleProps): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ export default DsSubtitle;