@mailstep/design-system 0.1.2 → 0.1.3

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 (171) hide show
  1. package/build/dts/Blocks/CornerDialog/CornerDialog.d.ts +3 -0
  2. package/build/dts/Blocks/CornerDialog/index.d.ts +2 -0
  3. package/build/dts/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +14 -0
  4. package/build/dts/Blocks/CornerDialog/styles.d.ts +12 -0
  5. package/build/dts/Blocks/CornerDialog/types.d.ts +16 -0
  6. package/build/dts/Blocks/CornerDialog/utils.d.ts +3 -0
  7. package/build/dts/Blocks/ImageList/ImageList.d.ts +3 -0
  8. package/build/dts/Blocks/ImageList/components/AddPhoto/index.d.ts +7 -0
  9. package/build/dts/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -0
  10. package/build/dts/Blocks/ImageList/components/CloseButton/index.d.ts +6 -0
  11. package/build/dts/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -0
  12. package/build/dts/Blocks/ImageList/components/ImageElement/index.d.ts +9 -0
  13. package/build/dts/Blocks/ImageList/components/ImageElement/styles.d.ts +2 -0
  14. package/build/dts/Blocks/ImageList/components/ImageTag/index.d.ts +6 -0
  15. package/build/dts/Blocks/ImageList/components/ImageTag/styles.d.ts +1 -0
  16. package/build/dts/Blocks/ImageList/index.d.ts +4 -0
  17. package/build/dts/Blocks/ImageList/styles.d.ts +1 -0
  18. package/build/dts/Blocks/ImageList/types.d.ts +12 -0
  19. package/build/dts/Blocks/LightBox/LightBox.d.ts +4 -0
  20. package/build/dts/Blocks/LightBox/hooks/useLightBox.d.ts +2 -0
  21. package/build/dts/Blocks/LightBox/index.d.ts +3 -0
  22. package/build/dts/Blocks/LightBox/styles.d.ts +3 -0
  23. package/build/dts/Blocks/LightBox/types.d.ts +24 -0
  24. package/build/dts/Blocks/Modal/Modal.d.ts +3 -0
  25. package/build/dts/Blocks/Modal/hooks/useClickOutside.d.ts +3 -0
  26. package/build/dts/Blocks/Modal/hooks/useModal.d.ts +2 -0
  27. package/build/dts/Blocks/Modal/index.d.ts +4 -0
  28. package/build/dts/Blocks/Modal/stories/Modal.stories.d.ts +26 -0
  29. package/build/dts/Blocks/Modal/styles.d.ts +22 -0
  30. package/build/dts/Blocks/Modal/types.d.ts +45 -0
  31. package/build/dts/Blocks/Modal/utils.d.ts +3 -0
  32. package/build/dts/Blocks/Tabs/TabContent.d.ts +2 -0
  33. package/build/dts/Blocks/Tabs/Tabs.d.ts +3 -0
  34. package/build/dts/Blocks/Tabs/hooks/useTabs.d.ts +2 -0
  35. package/build/dts/Blocks/Tabs/index.d.ts +3 -0
  36. package/build/dts/Blocks/Tabs/stories/Tabs.stories.d.ts +13 -0
  37. package/build/dts/Blocks/Tabs/styles.d.ts +8 -0
  38. package/build/dts/Blocks/Tabs/types.d.ts +27 -0
  39. package/build/dts/Elements/Alert/Alert.d.ts +3 -0
  40. package/build/dts/Elements/Alert/index.d.ts +2 -0
  41. package/build/dts/Elements/Alert/stories/Alert.stories.d.ts +17 -0
  42. package/build/dts/Elements/Alert/styles.d.ts +44 -0
  43. package/build/dts/Elements/Alert/types.d.ts +18 -0
  44. package/build/dts/Elements/Avatar/Avatar.d.ts +3 -0
  45. package/build/dts/Elements/Avatar/index.d.ts +1 -0
  46. package/build/dts/Elements/Avatar/stories/Avatar.stories.d.ts +12 -0
  47. package/build/dts/Elements/Avatar/types.d.ts +8 -0
  48. package/build/dts/Elements/Badge/Badge.d.ts +12 -0
  49. package/build/dts/Elements/Badge/index.d.ts +2 -0
  50. package/build/dts/Elements/Badge/stories/Badge.stories.d.ts +12 -0
  51. package/build/dts/Elements/BorderedBox/BorderedBox.d.ts +4 -0
  52. package/build/dts/Elements/BorderedBox/index.d.ts +2 -0
  53. package/build/dts/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +11 -0
  54. package/build/dts/Elements/BorderedBox/types.d.ts +6 -0
  55. package/build/dts/Elements/Button/Button.d.ts +4 -0
  56. package/build/dts/Elements/Button/index.d.ts +4 -0
  57. package/build/dts/Elements/Button/stories/Button.stories.d.ts +20 -0
  58. package/build/dts/Elements/Button/styles.d.ts +19 -0
  59. package/build/dts/Elements/Button/types.d.ts +22 -0
  60. package/build/dts/Elements/Card/Card.d.ts +7 -0
  61. package/build/dts/Elements/Card/index.d.ts +1 -0
  62. package/build/dts/Elements/Card/stories/Card.stories.d.ts +16 -0
  63. package/build/dts/Elements/Card/stories/CardComponent.stories.d.ts +12 -0
  64. package/build/dts/Elements/Card/styles.d.ts +14 -0
  65. package/build/dts/Elements/Card/types.d.ts +21 -0
  66. package/build/dts/Elements/Dropdown/Dropdown.d.ts +4 -0
  67. package/build/dts/Elements/Dropdown/index.d.ts +2 -0
  68. package/build/dts/Elements/Dropdown/stories/Dropdown.stories.d.ts +11 -0
  69. package/build/dts/Elements/Dropdown/types.d.ts +10 -0
  70. package/build/dts/Elements/ErrorMessage/ErrorMessage.d.ts +4 -0
  71. package/build/dts/Elements/ErrorMessage/index.d.ts +2 -0
  72. package/build/dts/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +12 -0
  73. package/build/dts/Elements/ErrorMessage/types.d.ts +5 -0
  74. package/build/dts/Elements/Icon/BadgeIcon.d.ts +7 -0
  75. package/build/dts/Elements/Icon/Icon.d.ts +9 -0
  76. package/build/dts/Elements/Icon/icons/FlagCZ.d.ts +3 -0
  77. package/build/dts/Elements/Icon/icons/FlagUSA.d.ts +3 -0
  78. package/build/dts/Elements/Icon/icons/index.d.ts +2 -0
  79. package/build/dts/Elements/Icon/index.d.ts +5 -0
  80. package/build/dts/Elements/Icon/stories/BadgeIcon.stories.d.ts +24 -0
  81. package/build/dts/Elements/Icon/stories/Icon.stories.d.ts +16 -0
  82. package/build/dts/Elements/Icon/types.d.ts +22 -0
  83. package/build/dts/Elements/Image/Image.d.ts +4 -0
  84. package/build/dts/Elements/Image/index.d.ts +2 -0
  85. package/build/dts/Elements/Image/stories/Image.stories.d.ts +14 -0
  86. package/build/dts/Elements/Image/types.d.ts +18 -0
  87. package/build/dts/Elements/Label/Label.d.ts +6 -0
  88. package/build/dts/Elements/Label/index.d.ts +1 -0
  89. package/build/dts/Elements/Label/stories/Label.stories.d.ts +13 -0
  90. package/build/dts/Elements/Line/Line.d.ts +3 -0
  91. package/build/dts/Elements/Line/index.d.ts +2 -0
  92. package/build/dts/Elements/Line/stories/Line.stories.d.ts +16 -0
  93. package/build/dts/Elements/Line/types.d.ts +12 -0
  94. package/build/dts/Elements/Link/Link.d.ts +29 -0
  95. package/build/dts/Elements/Link/index.d.ts +2 -0
  96. package/build/dts/Elements/Link/stories/Link.stories.d.ts +42 -0
  97. package/build/dts/Elements/Logo/Logo.d.ts +4 -0
  98. package/build/dts/Elements/Logo/index.d.ts +2 -0
  99. package/build/dts/Elements/Logo/stories/Logo.stories.d.ts +34 -0
  100. package/build/dts/Elements/Logo/types.d.ts +10 -0
  101. package/build/dts/Elements/Pagination/Pagination.d.ts +9 -0
  102. package/build/dts/Elements/Pagination/index.d.ts +2 -0
  103. package/build/dts/Elements/Pagination/stories/Pagination.stories.d.ts +12 -0
  104. package/build/dts/Elements/Pagination/styled.d.ts +15 -0
  105. package/build/dts/Elements/Paragraph/Paragraph.d.ts +2 -0
  106. package/build/dts/Elements/Paragraph/index.d.ts +2 -0
  107. package/build/dts/Elements/Paragraph/stories/Paragraph.stories.d.ts +17 -0
  108. package/build/dts/Elements/Portal/index.d.ts +4 -0
  109. package/build/dts/Elements/ProgressBar/ProgressBar.d.ts +10 -0
  110. package/build/dts/Elements/ProgressBar/index.d.ts +2 -0
  111. package/build/dts/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +19 -0
  112. package/build/dts/Elements/ProgressBar/styles.d.ts +9 -0
  113. package/build/dts/Elements/SimpleLink/SimpleLink.d.ts +19 -0
  114. package/build/dts/Elements/SimpleLink/index.d.ts +2 -0
  115. package/build/dts/Elements/SpaceAround/SpaceAround.d.ts +4 -0
  116. package/build/dts/Elements/SpaceAround/index.d.ts +3 -0
  117. package/build/dts/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +12 -0
  118. package/build/dts/Elements/SpaceAround/types.d.ts +14 -0
  119. package/build/dts/Elements/Spinner/Spinner.d.ts +14 -0
  120. package/build/dts/Elements/Spinner/index.d.ts +2 -0
  121. package/build/dts/Elements/Spinner/stories/Spinner.stories.d.ts +19 -0
  122. package/build/dts/Elements/Spinner/styles.d.ts +4 -0
  123. package/build/dts/Elements/Spinner/types.d.ts +7 -0
  124. package/build/dts/Elements/Tag/Tag.d.ts +3 -0
  125. package/build/dts/Elements/Tag/index.d.ts +3 -0
  126. package/build/dts/Elements/Tag/palletes.d.ts +5 -0
  127. package/build/dts/Elements/Tag/stories/Tag.stories.d.ts +19 -0
  128. package/build/dts/Elements/Tag/stories/components/predefinedTags.d.ts +3 -0
  129. package/build/dts/Elements/Tag/types.d.ts +16 -0
  130. package/build/dts/Elements/Text/Text.d.ts +4 -0
  131. package/build/dts/Elements/Text/index.d.ts +3 -0
  132. package/build/dts/Elements/Text/stories/Text.stories.d.ts +16 -0
  133. package/build/dts/Elements/Text/types.d.ts +13 -0
  134. package/build/dts/Elements/Toast/Toast.d.ts +12 -0
  135. package/build/dts/Elements/Toast/index.d.ts +3 -0
  136. package/build/dts/Elements/Toggle/Toggle.d.ts +4 -0
  137. package/build/dts/Elements/Toggle/index.d.ts +2 -0
  138. package/build/dts/Elements/Toggle/stories/Toggle.stories.d.ts +14 -0
  139. package/build/dts/Elements/Toggle/types.d.ts +21 -0
  140. package/build/dts/Elements/Typography/Typography.d.ts +118 -0
  141. package/build/dts/Elements/Typography/index.d.ts +1 -0
  142. package/build/dts/Elements/Typography/stories/Typography.stories.d.ts +20 -0
  143. package/build/dts/Forms/Checkbox/Checkbox.d.ts +4 -0
  144. package/build/dts/Forms/Checkbox/index.d.ts +2 -0
  145. package/build/dts/Forms/Checkbox/stories/Checkbox.stories.d.ts +14 -0
  146. package/build/dts/Forms/Checkbox/styles.d.ts +11 -0
  147. package/build/dts/Forms/Checkbox/types.d.ts +16 -0
  148. package/build/dts/Forms/Input/Input.d.ts +3 -0
  149. package/build/dts/Forms/Input/index.d.ts +4 -0
  150. package/build/dts/Forms/Input/stories/Input.stories.d.ts +17 -0
  151. package/build/dts/Forms/Input/styles.d.ts +31 -0
  152. package/build/dts/Forms/Input/types.d.ts +49 -0
  153. package/build/dts/Forms/RadioButton/RadioButton.d.ts +4 -0
  154. package/build/dts/Forms/RadioButton/index.d.ts +2 -0
  155. package/build/dts/Forms/RadioButton/stories/RadioButton.stories.d.ts +14 -0
  156. package/build/dts/Forms/RadioButton/styles.d.ts +10 -0
  157. package/build/dts/Forms/RadioButton/types.d.ts +12 -0
  158. package/build/dts/ThemeProvider/ThemeProvider.d.ts +3 -0
  159. package/build/dts/ThemeProvider/index.d.ts +5 -0
  160. package/build/dts/ThemeProvider/themes/default.d.ts +141 -0
  161. package/build/dts/ThemeProvider/themes/index.d.ts +350 -0
  162. package/build/dts/ThemeProvider/themes/light.d.ts +3 -0
  163. package/build/dts/ThemeProvider/themes/mailwise.d.ts +207 -0
  164. package/build/dts/ThemeProvider/types.d.ts +50 -0
  165. package/build/dts/index.d.ts +35 -0
  166. package/build/dts/utils/KeyPress/KeyPress.stories.d.ts +10 -0
  167. package/build/index.es.js +458 -538
  168. package/build/index.es.js.map +1 -1
  169. package/build/index.js +458 -536
  170. package/build/index.js.map +1 -1
  171. package/package.json +1 -1
@@ -0,0 +1,207 @@
1
+ declare const defaultTheme: {
2
+ screens: {
3
+ _: number;
4
+ xs: number;
5
+ sm: number;
6
+ md: number;
7
+ lg: number;
8
+ xl: number;
9
+ '2xl': number;
10
+ };
11
+ colors: {
12
+ white: string;
13
+ bgLightGray: string;
14
+ bgLightGray1: string;
15
+ lightGray1: string;
16
+ lightGray2: string;
17
+ lightGray3: string;
18
+ lightGray4: string;
19
+ lightGray5: string;
20
+ lightGray6: string;
21
+ lightGray7: string;
22
+ neutral20: string;
23
+ gray: string;
24
+ gray1: string;
25
+ gray2: string;
26
+ gray3: string;
27
+ gray4: string;
28
+ gray5: string;
29
+ neutral300: string;
30
+ blue1: string;
31
+ blue2: string;
32
+ blue3: string;
33
+ blue4: string;
34
+ textPrimary: string;
35
+ typoPrimary: string;
36
+ blue10: string;
37
+ blue20: string;
38
+ blue60: string;
39
+ blue70: string;
40
+ blue80: string;
41
+ blue90: string;
42
+ teal20: string;
43
+ teal40: string;
44
+ teal50: string;
45
+ teal60: string;
46
+ teal70: string;
47
+ teal80: string;
48
+ teal90: string;
49
+ green10: string;
50
+ green20: string;
51
+ green30: string;
52
+ green50: string;
53
+ green60: string;
54
+ green70: string;
55
+ green80: string;
56
+ green90: string;
57
+ green: string;
58
+ successColor: string;
59
+ darkGreen: string;
60
+ orange20: string;
61
+ orange30: string;
62
+ orange50: string;
63
+ orange60: string;
64
+ orange80: string;
65
+ yellow10: string;
66
+ yellow20: string;
67
+ yellow60: string;
68
+ yellow70: string;
69
+ yellow1: string;
70
+ yellow2: string;
71
+ red10: string;
72
+ red20: string;
73
+ red30: string;
74
+ red50: string;
75
+ red1: string;
76
+ red2: string;
77
+ red3: string;
78
+ red60: string;
79
+ red80: string;
80
+ dangerColor: string;
81
+ purple20: string;
82
+ purple40: string;
83
+ purple50: string;
84
+ purple60: string;
85
+ purple80: string;
86
+ purple90: string;
87
+ magenta20: string;
88
+ magenta60: string;
89
+ magenta80: string;
90
+ magenta90: string;
91
+ primary: string;
92
+ black: string;
93
+ error: string;
94
+ secondary: string;
95
+ };
96
+ fonts: {
97
+ primary: string;
98
+ heading: string;
99
+ };
100
+ fontSizes: string[];
101
+ lineHeights: {
102
+ none: number;
103
+ tight: number;
104
+ snug: number;
105
+ normal: number;
106
+ relaxed: number;
107
+ loose: number;
108
+ 3: string;
109
+ 4: string;
110
+ 5: string;
111
+ 6: string;
112
+ 7: string;
113
+ 8: string;
114
+ 9: string;
115
+ 10: string;
116
+ };
117
+ fontWeights: {
118
+ normal: number;
119
+ medium: number;
120
+ semiBold: number;
121
+ bold: number;
122
+ };
123
+ letterSpacings: {
124
+ tighter: string;
125
+ tight: string;
126
+ normal: string;
127
+ wide: string;
128
+ wider: string;
129
+ widest: string;
130
+ };
131
+ borders: {
132
+ slim: string;
133
+ mediumSlim: string;
134
+ medium: string;
135
+ mediumThick: string;
136
+ thick: string;
137
+ };
138
+ radii: {
139
+ none: string;
140
+ sm: string;
141
+ default: string;
142
+ md: string;
143
+ lg: string;
144
+ xl: string;
145
+ '2xl': string;
146
+ '3xl': string;
147
+ full: string;
148
+ };
149
+ shadows: {
150
+ boxShadow: string;
151
+ dropShadow: string;
152
+ inputFocusBoxShadow: string;
153
+ dropdownMenuShadow: string;
154
+ tooltipBoxShadow: string;
155
+ cardShadow: string;
156
+ smooth: string;
157
+ dialogShadow: string;
158
+ tooltipShadow: string;
159
+ headerShadow: string;
160
+ headerShadowB: string;
161
+ headerShadowNotifications: string;
162
+ cornerDialogShadow: string;
163
+ };
164
+ space: {
165
+ px: string;
166
+ 0: string;
167
+ 0.5: string;
168
+ 1: string;
169
+ 1.5: string;
170
+ 2: string;
171
+ 2.5: string;
172
+ 3: string;
173
+ 3.5: string;
174
+ 4: string;
175
+ 5: string;
176
+ 6: string;
177
+ 7: string;
178
+ 8: string;
179
+ 9: string;
180
+ 10: string;
181
+ 11: string;
182
+ 12: string;
183
+ 14: string;
184
+ 16: string;
185
+ 20: string;
186
+ 24: string;
187
+ 28: string;
188
+ 32: string;
189
+ 36: string;
190
+ 40: string;
191
+ 44: string;
192
+ 48: string;
193
+ 52: string;
194
+ 56: string;
195
+ 60: string;
196
+ 64: string;
197
+ 72: string;
198
+ 80: string;
199
+ 96: string;
200
+ };
201
+ transitions: {
202
+ simpleLong: string;
203
+ inputTransition: string;
204
+ };
205
+ zIndices: number[];
206
+ };
207
+ export default defaultTheme;
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ export type Color = {
3
+ [key: string]: string;
4
+ };
5
+ export type Theme = {
6
+ breakpoints?: {
7
+ xs: number;
8
+ sm: number;
9
+ md: number;
10
+ lg: number;
11
+ xl: number;
12
+ };
13
+ colors?: {
14
+ [key: string]: string | Color;
15
+ };
16
+ fonts?: {
17
+ [key: string]: string;
18
+ };
19
+ fontLinks?: string[];
20
+ fontSizes?: string[];
21
+ fontWeights?: {
22
+ [key: string]: number | null;
23
+ };
24
+ letterSpacings?: {
25
+ [key: string]: string | null;
26
+ };
27
+ borders?: {
28
+ [key: string]: string;
29
+ };
30
+ radii?: {
31
+ [key: string]: string;
32
+ };
33
+ shadows?: {
34
+ [key: string]: string;
35
+ };
36
+ spaces?: number[];
37
+ lineHeights?: number[];
38
+ transitions?: {
39
+ [key: string]: string;
40
+ };
41
+ zIndices?: number[];
42
+ };
43
+ export type Themes = {
44
+ [key: string]: Theme;
45
+ };
46
+ export interface Props {
47
+ children: React.ReactNode;
48
+ theme: 'default' | 'light' | 'mailwise';
49
+ preflight?: boolean;
50
+ }
@@ -0,0 +1,35 @@
1
+ export * from './Blocks/CornerDialog';
2
+ export * from './Blocks/ImageList';
3
+ export * from './Blocks/LightBox';
4
+ export * from './Blocks/Modal';
5
+ export * from './Blocks/Tabs';
6
+ export * from './Elements/Alert';
7
+ export * from './Elements/Avatar';
8
+ export * from './Elements/Badge';
9
+ export * from './Elements/BorderedBox';
10
+ export * from './Elements/Button';
11
+ export * from './Elements/Card';
12
+ export * from './Elements/Dropdown';
13
+ export * from './Elements/ErrorMessage';
14
+ export * from './Elements/Icon';
15
+ export * from './Elements/Image';
16
+ export * from './Elements/Label';
17
+ export * from './Elements/Line';
18
+ export * from './Elements/Link';
19
+ export * from './Elements/Logo';
20
+ export * from './Elements/Pagination';
21
+ export * from './Elements/Paragraph';
22
+ export * from './Elements/Portal';
23
+ export * from './Elements/ProgressBar';
24
+ export * from './Elements/SimpleLink';
25
+ export * from './Elements/SpaceAround';
26
+ export * from './Elements/Spinner';
27
+ export * from './Elements/Tag';
28
+ export * from './Elements/Toast';
29
+ export * from './Elements/Toggle';
30
+ export * from './Elements/Typography';
31
+ export * from './Forms/Checkbox';
32
+ export * from './Forms/Input';
33
+ export * from './Forms/RadioButton';
34
+ export * from './ThemeProvider';
35
+ export * from './utils';
@@ -0,0 +1,10 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("./types").KeyPress;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const Default: Story;