@mailstep/design-system 0.1.4-beta.6 → 0.1.4-beta.7

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 (343) hide show
  1. package/build/2b1ddee3e1b3cc7f.png +0 -0
  2. package/build/Blocks/CornerDialog/CornerDialog.js +25 -0
  3. package/build/Blocks/CornerDialog/CornerDialog.js.map +1 -0
  4. package/build/Blocks/CornerDialog/styles.js +33 -0
  5. package/build/Blocks/CornerDialog/styles.js.map +1 -0
  6. package/build/Blocks/CornerDialog/utils.js +18 -0
  7. package/build/Blocks/CornerDialog/utils.js.map +1 -0
  8. package/build/Blocks/ImageList/ImageList.js +27 -0
  9. package/build/Blocks/ImageList/ImageList.js.map +1 -0
  10. package/build/Blocks/ImageList/components/AddPhoto/index.js +34 -0
  11. package/build/Blocks/ImageList/components/AddPhoto/index.js.map +1 -0
  12. package/build/Blocks/ImageList/components/AddPhoto/styles.js +16 -0
  13. package/build/Blocks/ImageList/components/AddPhoto/styles.js.map +1 -0
  14. package/build/Blocks/ImageList/components/CloseButton/index.js +14 -0
  15. package/build/Blocks/ImageList/components/CloseButton/index.js.map +1 -0
  16. package/build/Blocks/ImageList/components/CloseButton/styles.js +14 -0
  17. package/build/Blocks/ImageList/components/CloseButton/styles.js.map +1 -0
  18. package/build/Blocks/ImageList/components/ImageElement/index.js +17 -0
  19. package/build/Blocks/ImageList/components/ImageElement/index.js.map +1 -0
  20. package/build/Blocks/ImageList/components/ImageElement/styles.js +15 -0
  21. package/build/Blocks/ImageList/components/ImageElement/styles.js.map +1 -0
  22. package/build/Blocks/ImageList/components/ImageTag/index.js +15 -0
  23. package/build/Blocks/ImageList/components/ImageTag/index.js.map +1 -0
  24. package/build/Blocks/ImageList/components/ImageTag/styles.js +14 -0
  25. package/build/Blocks/ImageList/components/ImageTag/styles.js.map +1 -0
  26. package/build/Blocks/ImageList/styles.js +14 -0
  27. package/build/Blocks/ImageList/styles.js.map +1 -0
  28. package/build/Blocks/LightBox/LightBox.js +22 -0
  29. package/build/Blocks/LightBox/LightBox.js.map +1 -0
  30. package/build/Blocks/LightBox/hooks/useLightBox.js +24 -0
  31. package/build/Blocks/LightBox/hooks/useLightBox.js.map +1 -0
  32. package/build/Blocks/LightBox/styles.js +18 -0
  33. package/build/Blocks/LightBox/styles.js.map +1 -0
  34. package/build/Blocks/Modal/Modal.js +42 -0
  35. package/build/Blocks/Modal/Modal.js.map +1 -0
  36. package/build/Blocks/Modal/hooks/useClickOutside.js +36 -0
  37. package/build/Blocks/Modal/hooks/useClickOutside.js.map +1 -0
  38. package/build/Blocks/Modal/hooks/useModal.js +21 -0
  39. package/build/Blocks/Modal/hooks/useModal.js.map +1 -0
  40. package/build/Blocks/Modal/styles.js +60 -0
  41. package/build/Blocks/Modal/styles.js.map +1 -0
  42. package/build/Blocks/Modal/utils.js +17 -0
  43. package/build/Blocks/Modal/utils.js.map +1 -0
  44. package/build/Blocks/Tabs/Tabs.js +26 -0
  45. package/build/Blocks/Tabs/Tabs.js.map +1 -0
  46. package/build/Blocks/Tabs/hooks/useTabs.js +16 -0
  47. package/build/Blocks/Tabs/hooks/useTabs.js.map +1 -0
  48. package/build/Blocks/Tabs/styles.js +26 -0
  49. package/build/Blocks/Tabs/styles.js.map +1 -0
  50. package/build/Elements/Alert/Alert.js +37 -0
  51. package/build/Elements/Alert/Alert.js.map +1 -0
  52. package/build/Elements/Alert/styles.js +47 -0
  53. package/build/Elements/Alert/styles.js.map +1 -0
  54. package/build/Elements/Avatar/Avatar.js +21 -0
  55. package/build/Elements/Avatar/Avatar.js.map +1 -0
  56. package/build/Elements/Badge/Badge.js +45 -0
  57. package/build/Elements/Badge/Badge.js.map +1 -0
  58. package/build/Elements/BorderedBox/BorderedBox.js +19 -0
  59. package/build/Elements/BorderedBox/BorderedBox.js.map +1 -0
  60. package/build/Elements/Button/Button.js +14 -0
  61. package/build/Elements/Button/Button.js.map +1 -0
  62. package/build/Elements/Button/styles.js +58 -0
  63. package/build/Elements/Button/styles.js.map +1 -0
  64. package/build/Elements/Card/Card.js +26 -0
  65. package/build/Elements/Card/Card.js.map +1 -0
  66. package/build/Elements/Card/styles.js +44 -0
  67. package/build/Elements/Card/styles.js.map +1 -0
  68. package/build/Elements/Dropdown/Dropdown.js +33 -0
  69. package/build/Elements/Dropdown/Dropdown.js.map +1 -0
  70. package/build/Elements/ErrorMessage/ErrorMessage.js +22 -0
  71. package/build/Elements/ErrorMessage/ErrorMessage.js.map +1 -0
  72. package/build/Elements/Icon/Icon.js +254 -0
  73. package/build/Elements/Icon/Icon.js.map +1 -0
  74. package/build/Elements/Icon/icons/FlagCZ.js +9 -0
  75. package/build/Elements/Icon/icons/FlagCZ.js.map +1 -0
  76. package/build/Elements/Icon/icons/FlagUSA.js +9 -0
  77. package/build/Elements/Icon/icons/FlagUSA.js.map +1 -0
  78. package/build/Elements/Image/Image.js +21 -0
  79. package/build/Elements/Image/Image.js.map +1 -0
  80. package/build/Elements/Label/Label.js +24 -0
  81. package/build/Elements/Label/Label.js.map +1 -0
  82. package/build/Elements/Line/Line.js +31 -0
  83. package/build/Elements/Line/Line.js.map +1 -0
  84. package/build/Elements/Link/Link.js +51 -0
  85. package/build/Elements/Link/Link.js.map +1 -0
  86. package/build/Elements/Logo/Logo.js +68 -0
  87. package/build/Elements/Logo/Logo.js.map +1 -0
  88. package/build/Elements/Logo/assets/mailship/logo_black.png.js +6 -0
  89. package/build/Elements/Logo/assets/mailship/logo_black.png.js.map +1 -0
  90. package/build/Elements/Logo/assets/mailship/logo_m.png.js +6 -0
  91. package/build/Elements/Logo/assets/mailship/logo_m.png.js.map +1 -0
  92. package/build/Elements/Logo/assets/mailship/logo_white.png.js +6 -0
  93. package/build/Elements/Logo/assets/mailship/logo_white.png.js.map +1 -0
  94. package/build/Elements/Logo/assets/mailship/mailship-logo.svg.js +8 -0
  95. package/build/Elements/Logo/assets/mailship/mailship-logo.svg.js.map +1 -0
  96. package/build/Elements/Logo/assets/mailstep/mailstep_black.svg.js +8 -0
  97. package/build/Elements/Logo/assets/mailstep/mailstep_black.svg.js.map +1 -0
  98. package/build/Elements/Logo/assets/mailstep/mailstep_white.svg.js +8 -0
  99. package/build/Elements/Logo/assets/mailstep/mailstep_white.svg.js.map +1 -0
  100. package/build/Elements/Logo/assets/mailstock/mailstock.svg.js +8 -0
  101. package/build/Elements/Logo/assets/mailstock/mailstock.svg.js.map +1 -0
  102. package/build/Elements/Logo/assets/mailwise/mailwiseLogo.svg.js +8 -0
  103. package/build/Elements/Logo/assets/mailwise/mailwiseLogo.svg.js.map +1 -0
  104. package/build/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg.js +8 -0
  105. package/build/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg.js.map +1 -0
  106. package/build/Elements/Logo/assets/mailwrap/mailwrapLogo.svg.js +8 -0
  107. package/build/Elements/Logo/assets/mailwrap/mailwrapLogo.svg.js.map +1 -0
  108. package/build/Elements/Pagination/Pagination.js +40 -0
  109. package/build/Elements/Pagination/Pagination.js.map +1 -0
  110. package/build/Elements/Pagination/styled.js +38 -0
  111. package/build/Elements/Pagination/styled.js.map +1 -0
  112. package/build/Elements/Paragraph/Paragraph.js +8 -0
  113. package/build/Elements/Paragraph/Paragraph.js.map +1 -0
  114. package/build/Elements/Portal/index.js +23 -0
  115. package/build/Elements/Portal/index.js.map +1 -0
  116. package/build/Elements/ProgressBar/ProgressBar.js +14 -0
  117. package/build/Elements/ProgressBar/ProgressBar.js.map +1 -0
  118. package/build/Elements/ProgressBar/styles.js +28 -0
  119. package/build/Elements/ProgressBar/styles.js.map +1 -0
  120. package/build/Elements/SimpleLink/SimpleLink.js +23 -0
  121. package/build/Elements/SimpleLink/SimpleLink.js.map +1 -0
  122. package/build/Elements/SpaceAround/SpaceAround.js +37 -0
  123. package/build/Elements/SpaceAround/SpaceAround.js.map +1 -0
  124. package/build/Elements/Spinner/Spinner.js +27 -0
  125. package/build/Elements/Spinner/Spinner.js.map +1 -0
  126. package/build/Elements/Spinner/styles.js +28 -0
  127. package/build/Elements/Spinner/styles.js.map +1 -0
  128. package/build/Elements/Tag/Tag.js +68 -0
  129. package/build/Elements/Tag/Tag.js.map +1 -0
  130. package/build/Elements/Tag/palletes.js +15 -0
  131. package/build/Elements/Tag/palletes.js.map +1 -0
  132. package/build/Elements/Text/Text.js +10 -0
  133. package/build/Elements/Text/Text.js.map +1 -0
  134. package/build/Elements/Toast/Toast.js +29 -0
  135. package/build/Elements/Toast/Toast.js.map +1 -0
  136. package/build/Elements/Toggle/Toggle.js +36 -0
  137. package/build/Elements/Toggle/Toggle.js.map +1 -0
  138. package/build/Elements/Typography/Typography.js +49 -0
  139. package/build/Elements/Typography/Typography.js.map +1 -0
  140. package/build/Forms/Checkbox/Checkbox.js +17 -0
  141. package/build/Forms/Checkbox/Checkbox.js.map +1 -0
  142. package/build/Forms/Checkbox/styles.js +37 -0
  143. package/build/Forms/Checkbox/styles.js.map +1 -0
  144. package/build/Forms/Input/Input.js +45 -0
  145. package/build/Forms/Input/Input.js.map +1 -0
  146. package/build/Forms/Input/styles.js +71 -0
  147. package/build/Forms/Input/styles.js.map +1 -0
  148. package/build/Forms/RadioButton/RadioButton.js +13 -0
  149. package/build/Forms/RadioButton/RadioButton.js.map +1 -0
  150. package/build/Forms/RadioButton/styles.js +27 -0
  151. package/build/Forms/RadioButton/styles.js.map +1 -0
  152. package/build/ThemeProvider/ThemeProvider.js +13 -0
  153. package/build/ThemeProvider/ThemeProvider.js.map +1 -0
  154. package/build/ThemeProvider/themes/default.js +147 -0
  155. package/build/ThemeProvider/themes/default.js.map +1 -0
  156. package/build/ThemeProvider/themes/index.js +14 -0
  157. package/build/ThemeProvider/themes/index.js.map +1 -0
  158. package/build/ThemeProvider/themes/light.js +11 -0
  159. package/build/ThemeProvider/themes/light.js.map +1 -0
  160. package/build/ThemeProvider/themes/mailwise.js +218 -0
  161. package/build/ThemeProvider/themes/mailwise.js.map +1 -0
  162. package/build/ba2267d1dea00b65.png +0 -0
  163. package/build/dts/Blocks/CornerDialog/CornerDialog.d.ts +3 -0
  164. package/build/dts/Blocks/CornerDialog/index.d.ts +2 -0
  165. package/build/dts/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +14 -0
  166. package/build/dts/Blocks/CornerDialog/styles.d.ts +12 -0
  167. package/build/dts/Blocks/CornerDialog/types.d.ts +16 -0
  168. package/build/dts/Blocks/CornerDialog/utils.d.ts +3 -0
  169. package/build/dts/Blocks/ImageList/ImageList.d.ts +3 -0
  170. package/build/dts/Blocks/ImageList/components/AddPhoto/index.d.ts +7 -0
  171. package/build/dts/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -0
  172. package/build/dts/Blocks/ImageList/components/CloseButton/index.d.ts +6 -0
  173. package/build/dts/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -0
  174. package/build/dts/Blocks/ImageList/components/ImageElement/index.d.ts +9 -0
  175. package/build/dts/Blocks/ImageList/components/ImageElement/styles.d.ts +2 -0
  176. package/build/dts/Blocks/ImageList/components/ImageTag/index.d.ts +6 -0
  177. package/build/dts/Blocks/ImageList/components/ImageTag/styles.d.ts +1 -0
  178. package/build/dts/Blocks/ImageList/index.d.ts +4 -0
  179. package/build/dts/Blocks/ImageList/styles.d.ts +1 -0
  180. package/build/dts/Blocks/ImageList/types.d.ts +12 -0
  181. package/build/dts/Blocks/LightBox/LightBox.d.ts +4 -0
  182. package/build/dts/Blocks/LightBox/hooks/useLightBox.d.ts +2 -0
  183. package/build/dts/Blocks/LightBox/index.d.ts +3 -0
  184. package/build/dts/Blocks/LightBox/styles.d.ts +3 -0
  185. package/build/dts/Blocks/LightBox/types.d.ts +24 -0
  186. package/build/dts/Blocks/Modal/Modal.d.ts +3 -0
  187. package/build/dts/Blocks/Modal/hooks/useClickOutside.d.ts +3 -0
  188. package/build/dts/Blocks/Modal/hooks/useModal.d.ts +2 -0
  189. package/build/dts/Blocks/Modal/index.d.ts +4 -0
  190. package/build/dts/Blocks/Modal/stories/Modal.stories.d.ts +26 -0
  191. package/build/dts/Blocks/Modal/styles.d.ts +22 -0
  192. package/build/dts/Blocks/Modal/types.d.ts +45 -0
  193. package/build/dts/Blocks/Modal/utils.d.ts +3 -0
  194. package/build/dts/Blocks/Tabs/TabContent.d.ts +2 -0
  195. package/build/dts/Blocks/Tabs/Tabs.d.ts +3 -0
  196. package/build/dts/Blocks/Tabs/hooks/useTabs.d.ts +2 -0
  197. package/build/dts/Blocks/Tabs/index.d.ts +3 -0
  198. package/build/dts/Blocks/Tabs/stories/Tabs.stories.d.ts +13 -0
  199. package/build/dts/Blocks/Tabs/styles.d.ts +8 -0
  200. package/build/dts/Blocks/Tabs/types.d.ts +27 -0
  201. package/build/dts/Elements/Alert/Alert.d.ts +3 -0
  202. package/build/dts/Elements/Alert/index.d.ts +2 -0
  203. package/build/dts/Elements/Alert/stories/Alert.stories.d.ts +17 -0
  204. package/build/dts/Elements/Alert/styles.d.ts +44 -0
  205. package/build/dts/Elements/Alert/types.d.ts +18 -0
  206. package/build/dts/Elements/Avatar/Avatar.d.ts +3 -0
  207. package/build/dts/Elements/Avatar/index.d.ts +1 -0
  208. package/build/dts/Elements/Avatar/stories/Avatar.stories.d.ts +12 -0
  209. package/build/dts/Elements/Avatar/types.d.ts +8 -0
  210. package/build/dts/Elements/Badge/Badge.d.ts +12 -0
  211. package/build/dts/Elements/Badge/index.d.ts +2 -0
  212. package/build/dts/Elements/Badge/stories/Badge.stories.d.ts +12 -0
  213. package/build/dts/Elements/BorderedBox/BorderedBox.d.ts +4 -0
  214. package/build/dts/Elements/BorderedBox/index.d.ts +2 -0
  215. package/build/dts/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +11 -0
  216. package/build/dts/Elements/BorderedBox/types.d.ts +6 -0
  217. package/build/dts/Elements/Button/Button.d.ts +4 -0
  218. package/build/dts/Elements/Button/index.d.ts +4 -0
  219. package/build/dts/Elements/Button/stories/Button.stories.d.ts +20 -0
  220. package/build/dts/Elements/Button/styles.d.ts +19 -0
  221. package/build/dts/Elements/Button/types.d.ts +22 -0
  222. package/build/dts/Elements/Card/Card.d.ts +7 -0
  223. package/build/dts/Elements/Card/index.d.ts +1 -0
  224. package/build/dts/Elements/Card/stories/Card.stories.d.ts +16 -0
  225. package/build/dts/Elements/Card/stories/CardComponent.stories.d.ts +12 -0
  226. package/build/dts/Elements/Card/styles.d.ts +14 -0
  227. package/build/dts/Elements/Card/types.d.ts +21 -0
  228. package/build/dts/Elements/Dropdown/Dropdown.d.ts +4 -0
  229. package/build/dts/Elements/Dropdown/index.d.ts +2 -0
  230. package/build/dts/Elements/Dropdown/stories/Dropdown.stories.d.ts +11 -0
  231. package/build/dts/Elements/Dropdown/types.d.ts +10 -0
  232. package/build/dts/Elements/ErrorMessage/ErrorMessage.d.ts +4 -0
  233. package/build/dts/Elements/ErrorMessage/index.d.ts +2 -0
  234. package/build/dts/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +12 -0
  235. package/build/dts/Elements/ErrorMessage/types.d.ts +5 -0
  236. package/build/dts/Elements/Icon/BadgeIcon.d.ts +7 -0
  237. package/build/dts/Elements/Icon/Icon.d.ts +9 -0
  238. package/build/dts/Elements/Icon/icons/FlagCZ.d.ts +3 -0
  239. package/build/dts/Elements/Icon/icons/FlagUSA.d.ts +3 -0
  240. package/build/dts/Elements/Icon/icons/index.d.ts +2 -0
  241. package/build/dts/Elements/Icon/index.d.ts +5 -0
  242. package/build/dts/Elements/Icon/stories/BadgeIcon.stories.d.ts +24 -0
  243. package/build/dts/Elements/Icon/stories/Icon.stories.d.ts +16 -0
  244. package/build/dts/Elements/Icon/types.d.ts +22 -0
  245. package/build/dts/Elements/Image/Image.d.ts +4 -0
  246. package/build/dts/Elements/Image/index.d.ts +2 -0
  247. package/build/dts/Elements/Image/stories/Image.stories.d.ts +14 -0
  248. package/build/dts/Elements/Image/types.d.ts +18 -0
  249. package/build/dts/Elements/Label/Label.d.ts +6 -0
  250. package/build/dts/Elements/Label/index.d.ts +1 -0
  251. package/build/dts/Elements/Label/stories/Label.stories.d.ts +13 -0
  252. package/build/dts/Elements/Line/Line.d.ts +3 -0
  253. package/build/dts/Elements/Line/index.d.ts +2 -0
  254. package/build/dts/Elements/Line/stories/Line.stories.d.ts +16 -0
  255. package/build/dts/Elements/Line/types.d.ts +12 -0
  256. package/build/dts/Elements/Link/Link.d.ts +29 -0
  257. package/build/dts/Elements/Link/index.d.ts +2 -0
  258. package/build/dts/Elements/Link/stories/Link.stories.d.ts +42 -0
  259. package/build/dts/Elements/Logo/Logo.d.ts +4 -0
  260. package/build/dts/Elements/Logo/index.d.ts +2 -0
  261. package/build/dts/Elements/Logo/stories/Logo.stories.d.ts +34 -0
  262. package/build/dts/Elements/Logo/types.d.ts +10 -0
  263. package/build/dts/Elements/Pagination/Pagination.d.ts +9 -0
  264. package/build/dts/Elements/Pagination/index.d.ts +2 -0
  265. package/build/dts/Elements/Pagination/stories/Pagination.stories.d.ts +12 -0
  266. package/build/dts/Elements/Pagination/styled.d.ts +15 -0
  267. package/build/dts/Elements/Paragraph/Paragraph.d.ts +2 -0
  268. package/build/dts/Elements/Paragraph/index.d.ts +2 -0
  269. package/build/dts/Elements/Paragraph/stories/Paragraph.stories.d.ts +17 -0
  270. package/build/dts/Elements/Portal/index.d.ts +4 -0
  271. package/build/dts/Elements/ProgressBar/ProgressBar.d.ts +10 -0
  272. package/build/dts/Elements/ProgressBar/index.d.ts +2 -0
  273. package/build/dts/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +19 -0
  274. package/build/dts/Elements/ProgressBar/styles.d.ts +9 -0
  275. package/build/dts/Elements/SimpleLink/SimpleLink.d.ts +19 -0
  276. package/build/dts/Elements/SimpleLink/index.d.ts +2 -0
  277. package/build/dts/Elements/SpaceAround/SpaceAround.d.ts +4 -0
  278. package/build/dts/Elements/SpaceAround/index.d.ts +3 -0
  279. package/build/dts/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +12 -0
  280. package/build/dts/Elements/SpaceAround/types.d.ts +14 -0
  281. package/build/dts/Elements/Spinner/Spinner.d.ts +14 -0
  282. package/build/dts/Elements/Spinner/index.d.ts +2 -0
  283. package/build/dts/Elements/Spinner/stories/Spinner.stories.d.ts +19 -0
  284. package/build/dts/Elements/Spinner/styles.d.ts +4 -0
  285. package/build/dts/Elements/Spinner/types.d.ts +7 -0
  286. package/build/dts/Elements/Tag/Tag.d.ts +3 -0
  287. package/build/dts/Elements/Tag/index.d.ts +3 -0
  288. package/build/dts/Elements/Tag/palletes.d.ts +5 -0
  289. package/build/dts/Elements/Tag/stories/Tag.stories.d.ts +19 -0
  290. package/build/dts/Elements/Tag/stories/components/predefinedTags.d.ts +3 -0
  291. package/build/dts/Elements/Tag/types.d.ts +16 -0
  292. package/build/dts/Elements/Text/Text.d.ts +4 -0
  293. package/build/dts/Elements/Text/index.d.ts +3 -0
  294. package/build/dts/Elements/Text/stories/Text.stories.d.ts +16 -0
  295. package/build/dts/Elements/Text/types.d.ts +13 -0
  296. package/build/dts/Elements/Toast/Toast.d.ts +12 -0
  297. package/build/dts/Elements/Toast/index.d.ts +3 -0
  298. package/build/dts/Elements/Toggle/Toggle.d.ts +4 -0
  299. package/build/dts/Elements/Toggle/index.d.ts +2 -0
  300. package/build/dts/Elements/Toggle/stories/Toggle.stories.d.ts +14 -0
  301. package/build/dts/Elements/Toggle/types.d.ts +21 -0
  302. package/build/dts/Elements/Typography/Typography.d.ts +118 -0
  303. package/build/dts/Elements/Typography/index.d.ts +1 -0
  304. package/build/dts/Elements/Typography/stories/Typography.stories.d.ts +20 -0
  305. package/build/dts/Forms/Checkbox/Checkbox.d.ts +4 -0
  306. package/build/dts/Forms/Checkbox/index.d.ts +2 -0
  307. package/build/dts/Forms/Checkbox/stories/Checkbox.stories.d.ts +14 -0
  308. package/build/dts/Forms/Checkbox/styles.d.ts +11 -0
  309. package/build/dts/Forms/Checkbox/types.d.ts +16 -0
  310. package/build/dts/Forms/Input/Input.d.ts +3 -0
  311. package/build/dts/Forms/Input/index.d.ts +4 -0
  312. package/build/dts/Forms/Input/stories/Input.stories.d.ts +17 -0
  313. package/build/dts/Forms/Input/styles.d.ts +31 -0
  314. package/build/dts/Forms/Input/types.d.ts +49 -0
  315. package/build/dts/Forms/RadioButton/RadioButton.d.ts +4 -0
  316. package/build/dts/Forms/RadioButton/index.d.ts +2 -0
  317. package/build/dts/Forms/RadioButton/stories/RadioButton.stories.d.ts +14 -0
  318. package/build/dts/Forms/RadioButton/styles.d.ts +10 -0
  319. package/build/dts/Forms/RadioButton/types.d.ts +12 -0
  320. package/build/dts/ThemeProvider/ThemeProvider.d.ts +3 -0
  321. package/build/dts/ThemeProvider/index.d.ts +5 -0
  322. package/build/dts/ThemeProvider/themes/default.d.ts +141 -0
  323. package/build/dts/ThemeProvider/themes/index.d.ts +350 -0
  324. package/build/dts/ThemeProvider/themes/light.d.ts +3 -0
  325. package/build/dts/ThemeProvider/themes/mailwise.d.ts +207 -0
  326. package/build/dts/ThemeProvider/types.d.ts +50 -0
  327. package/build/dts/index.d.ts +35 -0
  328. package/build/dts/utils/CreateRgba/createRgba.d.ts +3 -0
  329. package/build/dts/utils/CreateRgba/types.d.ts +1 -0
  330. package/build/dts/utils/KeyPress/KeyPress.d.ts +3 -0
  331. package/build/dts/utils/KeyPress/KeyPress.stories.d.ts +10 -0
  332. package/build/dts/utils/KeyPress/index.d.ts +2 -0
  333. package/build/dts/utils/KeyPress/types.d.ts +6 -0
  334. package/build/dts/utils/index.d.ts +3 -0
  335. package/build/index.js +110 -0
  336. package/build/index.js.map +1 -0
  337. package/build/utils/CreateRgba/createRgba.js +30 -0
  338. package/build/utils/CreateRgba/createRgba.js.map +1 -0
  339. package/build/utils/KeyPress/KeyPress.js +22 -0
  340. package/build/utils/KeyPress/KeyPress.js.map +1 -0
  341. package/build/utils/KeyPress/index.js +8 -0
  342. package/build/utils/KeyPress/index.js.map +1 -0
  343. package/package.json +2 -2
@@ -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,3 @@
1
+ import { CreateRgba } from './types';
2
+ export declare const createRgba: CreateRgba;
3
+ export default createRgba;
@@ -0,0 +1 @@
1
+ export type CreateRgba = (color: string, alpha: number) => string;
@@ -0,0 +1,3 @@
1
+ import { KeyPress } from './types';
2
+ declare const OnKeyPress: KeyPress;
3
+ export default OnKeyPress;
@@ -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;
@@ -0,0 +1,2 @@
1
+ import KeyPress from './KeyPress';
2
+ export default KeyPress;
@@ -0,0 +1,6 @@
1
+ type KeyPressProps = {
2
+ action: () => void;
3
+ keyCode: number;
4
+ };
5
+ export type KeyPress = (props: KeyPressProps) => null;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import createRgba from './CreateRgba/createRgba';
2
+ import KeyPress from './KeyPress';
3
+ export { createRgba, KeyPress };
package/build/index.js ADDED
@@ -0,0 +1,110 @@
1
+ 'use strict';
2
+
3
+ var CornerDialog = require('./Blocks/CornerDialog/CornerDialog.js');
4
+ var ImageList = require('./Blocks/ImageList/ImageList.js');
5
+ var LightBox = require('./Blocks/LightBox/LightBox.js');
6
+ var useLightBox = require('./Blocks/LightBox/hooks/useLightBox.js');
7
+ var Modal = require('./Blocks/Modal/Modal.js');
8
+ var useModal = require('./Blocks/Modal/hooks/useModal.js');
9
+ var useClickOutside = require('./Blocks/Modal/hooks/useClickOutside.js');
10
+ var Tabs = require('./Blocks/Tabs/Tabs.js');
11
+ var useTabs = require('./Blocks/Tabs/hooks/useTabs.js');
12
+ var Alert = require('./Elements/Alert/Alert.js');
13
+ var Avatar = require('./Elements/Avatar/Avatar.js');
14
+ var Badge = require('./Elements/Badge/Badge.js');
15
+ var BorderedBox = require('./Elements/BorderedBox/BorderedBox.js');
16
+ var Button = require('./Elements/Button/Button.js');
17
+ var Card = require('./Elements/Card/Card.js');
18
+ var Dropdown = require('./Elements/Dropdown/Dropdown.js');
19
+ var ErrorMessage = require('./Elements/ErrorMessage/ErrorMessage.js');
20
+ var Icon = require('./Elements/Icon/Icon.js');
21
+ var FlagUSA = require('./Elements/Icon/icons/FlagUSA.js');
22
+ var FlagCZ = require('./Elements/Icon/icons/FlagCZ.js');
23
+ var Image = require('./Elements/Image/Image.js');
24
+ var Label = require('./Elements/Label/Label.js');
25
+ var Line = require('./Elements/Line/Line.js');
26
+ var Link = require('./Elements/Link/Link.js');
27
+ var Logo = require('./Elements/Logo/Logo.js');
28
+ var Pagination = require('./Elements/Pagination/Pagination.js');
29
+ var Paragraph = require('./Elements/Paragraph/Paragraph.js');
30
+ var index = require('./Elements/Portal/index.js');
31
+ var ProgressBar = require('./Elements/ProgressBar/ProgressBar.js');
32
+ var SimpleLink = require('./Elements/SimpleLink/SimpleLink.js');
33
+ var SpaceAround = require('./Elements/SpaceAround/SpaceAround.js');
34
+ var Spinner = require('./Elements/Spinner/Spinner.js');
35
+ var Tag = require('./Elements/Tag/Tag.js');
36
+ var palletes = require('./Elements/Tag/palletes.js');
37
+ var Toast = require('./Elements/Toast/Toast.js');
38
+ var Toggle = require('./Elements/Toggle/Toggle.js');
39
+ var Typography = require('./Elements/Typography/Typography.js');
40
+ var Checkbox = require('./Forms/Checkbox/Checkbox.js');
41
+ var Input = require('./Forms/Input/Input.js');
42
+ var RadioButton = require('./Forms/RadioButton/RadioButton.js');
43
+ var ThemeProvider = require('./ThemeProvider/ThemeProvider.js');
44
+ var index$1 = require('./ThemeProvider/themes/index.js');
45
+ var createRgba = require('./utils/CreateRgba/createRgba.js');
46
+ var KeyPress = require('./utils/KeyPress/KeyPress.js');
47
+
48
+
49
+
50
+ exports.CornerDialog = CornerDialog.CornerDialog;
51
+ exports.ImageList = ImageList.ImageList;
52
+ exports.LightBox = LightBox.LightBox;
53
+ exports.useLightBox = useLightBox.useLightBox;
54
+ exports.Modal = Modal.Modal;
55
+ exports.useModal = useModal.useModal;
56
+ exports.useClickOutside = useClickOutside.useClickOutside;
57
+ exports.Tabs = Tabs.Tabs;
58
+ exports.useTabs = useTabs.useTabs;
59
+ exports.Alert = Alert;
60
+ exports.Avatar = Avatar.Avatar;
61
+ exports.Badge = Badge;
62
+ exports.BorderedBox = BorderedBox;
63
+ exports.Button = Button;
64
+ exports.Card = Card.Card;
65
+ exports.CardBody = Card.CardBody;
66
+ exports.CardImage = Card.CardImage;
67
+ exports.Dropdown = Dropdown;
68
+ exports.ErrorMessage = ErrorMessage;
69
+ exports.Icon = Icon.default;
70
+ exports.iconDictionary = Icon.iconDictionary;
71
+ exports.FlagUSA = FlagUSA.FlagUSA;
72
+ exports.FlagCZ = FlagCZ.FlagCZ;
73
+ exports.Image = Image;
74
+ exports.FieldLabel = Label.FieldLabel;
75
+ exports.Label = Label.Label;
76
+ exports.Line = Line;
77
+ exports.Link = Link;
78
+ exports.Logo = Logo;
79
+ exports.Pagination = Pagination;
80
+ exports.Paragraph = Paragraph;
81
+ exports.Portal = index.Portal;
82
+ exports.ProgressBar = ProgressBar;
83
+ exports.SimpleLink = SimpleLink;
84
+ exports.SpaceAroundWrap = SpaceAround;
85
+ exports.Spinner = Spinner.Spinner;
86
+ exports.Tag = Tag.Tag;
87
+ exports.palletes = palletes.palletes;
88
+ exports.Toast = Toast;
89
+ exports.Toggle = Toggle;
90
+ exports.H1 = Typography.H1;
91
+ exports.H2 = Typography.H2;
92
+ exports.H3 = Typography.H3;
93
+ exports.H4 = Typography.H4;
94
+ exports.H5 = Typography.H5;
95
+ exports.H6 = Typography.H6;
96
+ exports.H7 = Typography.H7;
97
+ exports.Paragraph1 = Typography.Paragraph1;
98
+ exports.Paragraph2 = Typography.Paragraph2;
99
+ exports.Paragraph3 = Typography.Paragraph3;
100
+ exports.Paragraph4 = Typography.Paragraph4;
101
+ exports.Paragraph5 = Typography.Paragraph5;
102
+ exports.Text = Typography.Text;
103
+ exports.Checkbox = Checkbox;
104
+ exports.Input = Input.Input;
105
+ exports.RadioButton = RadioButton;
106
+ exports.ThemeProvider = ThemeProvider;
107
+ exports.themes = index$1;
108
+ exports.createRgba = createRgba.createRgba;
109
+ exports.KeyPress = KeyPress;
110
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('react/jsx-runtime');
6
+ require('@xstyled/styled-components');
7
+ var index = require('../../ThemeProvider/themes/index.js');
8
+ var getOr = require('lodash/fp/getOr');
9
+
10
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
+
12
+ var getOr__default = /*#__PURE__*/_interopDefaultCompat(getOr);
13
+
14
+ var createRgba = function (color, alpha) {
15
+ color = getOr__default.default(false, "colors[".concat(color, "]"), index.default) || color;
16
+ if (/^rgb/.test(color)) {
17
+ return "rgba(".concat(color.substring(color.indexOf('(') + 1, color.length - 1), ", ").concat(alpha, ")");
18
+ }
19
+ if (/^#/.test(color)) {
20
+ var r = parseInt("0x".concat(color.substr(1, 2)));
21
+ var g = parseInt("0x".concat(color.substr(3, 2)));
22
+ var b = parseInt("0x".concat(color.substr(5, 2)));
23
+ return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
24
+ }
25
+ return color;
26
+ };
27
+
28
+ exports.createRgba = createRgba;
29
+ exports.default = createRgba;
30
+ //# sourceMappingURL=createRgba.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRgba.js","sources":["../../../packages/ui/utils/CreateRgba/createRgba.ts"],"sourcesContent":["import { themes } from '../../ThemeProvider';\nimport getOr from 'lodash/fp/getOr';\nexport var createRgba = function (color, alpha) {\n color = getOr(false, \"colors[\".concat(color, \"]\"), themes.default) || color;\n if (/^rgb/.test(color)) {\n return \"rgba(\".concat(color.substring(color.indexOf('(') + 1, color.length - 1), \", \").concat(alpha, \")\");\n }\n if (/^#/.test(color)) {\n var r = parseInt(\"0x\".concat(color.substr(1, 2)));\n var g = parseInt(\"0x\".concat(color.substr(3, 2)));\n var b = parseInt(\"0x\".concat(color.substr(5, 2)));\n return \"rgba(\".concat(r, \", \").concat(g, \", \").concat(b, \", \").concat(alpha, \")\");\n }\n return color;\n};\nexport default createRgba;\n//# sourceMappingURL=createRgba.js.map"],"names":["getOr","themes"],"mappings":";;;;;;;;;;;;;AAEU,IAAC,UAAU,GAAG,UAAU,KAAK,EAAE,KAAK,EAAE;AAChD,IAAI,KAAK,GAAGA,sBAAK,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,EAAEC,KAAM,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC;AAChF,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AAC5B,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAClH,KAAK;AACL,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AAC1B,QAAQ,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,QAAQ,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,QAAQ,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,OAAO,KAAK,CAAC;AACjB;;;;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ var OnKeyPress = function (_a) {
6
+ var action = _a.action, keyCode = _a.keyCode;
7
+ var testKeyCode = React.useCallback(function (event) {
8
+ if (event.keyCode === keyCode) {
9
+ action();
10
+ }
11
+ }, [keyCode, action]);
12
+ React.useEffect(function () {
13
+ document.addEventListener('keydown', testKeyCode, false);
14
+ return function () {
15
+ document.removeEventListener('keydown', testKeyCode, false);
16
+ };
17
+ }, [testKeyCode]);
18
+ return null;
19
+ };
20
+
21
+ module.exports = OnKeyPress;
22
+ //# sourceMappingURL=KeyPress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyPress.js","sources":["../../../packages/ui/utils/KeyPress/KeyPress.tsx"],"sourcesContent":["import { useEffect, useCallback } from 'react';\nvar OnKeyPress = function (_a) {\n var action = _a.action, keyCode = _a.keyCode;\n var testKeyCode = useCallback(function (event) {\n if (event.keyCode === keyCode) {\n action();\n }\n }, [keyCode, action]);\n useEffect(function () {\n document.addEventListener('keydown', testKeyCode, false);\n return function () {\n document.removeEventListener('keydown', testKeyCode, false);\n };\n }, [testKeyCode]);\n return null;\n};\nexport default OnKeyPress;\n//# sourceMappingURL=KeyPress.js.map"],"names":["useCallback","useEffect"],"mappings":";;;;AACG,IAAC,UAAU,GAAG,UAAU,EAAE,EAAE;AAC/B,IAAI,IAAI,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;AACjD,IAAI,IAAI,WAAW,GAAGA,iBAAW,CAAC,UAAU,KAAK,EAAE;AACnD,QAAQ,IAAI,KAAK,CAAC,OAAO,KAAK,OAAO,EAAE;AACvC,YAAY,MAAM,EAAE,CAAC;AACrB,SAAS;AACT,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAC1B,IAAIC,eAAS,CAAC,YAAY;AAC1B,QAAQ,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;AACjE,QAAQ,OAAO,YAAY;AAC3B,YAAY,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;AACxE,SAAS,CAAC;AACV,KAAK,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;AACtB,IAAI,OAAO,IAAI,CAAC;AAChB;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var KeyPress = require('./KeyPress.js');
4
+
5
+
6
+
7
+ module.exports = KeyPress;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.1.4-beta.6",
3
+ "version": "0.1.4-beta.7",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
7
7
  "module": "./build/index.es.js",
8
8
  "types": "./build/index.d.ts",
9
9
  "files": [
10
- "build/packages/ui"
10
+ "build"
11
11
  ],
12
12
  "scripts": {
13
13
  "storybook": "storybook dev -p 6006",