@mw-kit/mw-ui 0.3.4 → 1.0.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 (550) hide show
  1. package/.eslintignore +28 -0
  2. package/.eslintrc.js +35 -0
  3. package/.prettierignore +27 -0
  4. package/.prettierrc.json +10 -0
  5. package/.storybook/main.js +13 -0
  6. package/.storybook/preview.js +21 -0
  7. package/.travis.yml +4 -0
  8. package/.vscode/settings.json +3 -0
  9. package/README.md +46 -40
  10. package/bitbucket-pipelines.yml +69 -0
  11. package/docker-compose.yml +14 -0
  12. package/example/README.md +5 -0
  13. package/example/favicon.ico +0 -0
  14. package/example/index.html +46 -0
  15. package/example/manifest.json +15 -0
  16. package/example/package.json +43 -0
  17. package/example/public/favicon.ico +0 -0
  18. package/example/public/index.html +46 -0
  19. package/example/public/manifest.json +15 -0
  20. package/example/src/App.tsx +47 -0
  21. package/example/src/index.tsx +11 -0
  22. package/example/src/react-app-env.d.ts +1 -0
  23. package/example/src/setupTests.ts +5 -0
  24. package/example/tsconfig.json +30 -0
  25. package/example/yarn.lock +694 -0
  26. package/exec.sh +11 -0
  27. package/hooks/pre-push +3 -0
  28. package/package.json +102 -69
  29. package/public/favicon.ico +0 -0
  30. package/public/index.html +43 -0
  31. package/public/logo192.png +0 -0
  32. package/public/logo512.png +0 -0
  33. package/public/manifest.json +25 -0
  34. package/public/robots.txt +3 -0
  35. package/shell/autotag.sh +169 -0
  36. package/shell/bash.sh +3 -0
  37. package/shell/install.sh +9 -0
  38. package/shell/logs.sh +3 -0
  39. package/shell/npx.sh +3 -0
  40. package/shell/restart.sh +5 -0
  41. package/shell/start.sh +7 -0
  42. package/shell/stop.sh +3 -0
  43. package/shell/tags.sh +24 -0
  44. package/shell/yarn.sh +7 -0
  45. package/src/addons/Portal/index.ts +26 -0
  46. package/src/addons/Portal/interfaces.ts +5 -0
  47. package/src/assets/icons/close.svg +1 -0
  48. package/src/assets/icons/feather/activity.svg +1 -0
  49. package/src/assets/icons/feather/airplay.svg +1 -0
  50. package/src/assets/icons/feather/alert-circle.svg +1 -0
  51. package/src/assets/icons/feather/alert-octagon.svg +1 -0
  52. package/src/assets/icons/feather/alert-triangle.svg +1 -0
  53. package/src/assets/icons/feather/align-center.svg +1 -0
  54. package/src/assets/icons/feather/align-justify.svg +1 -0
  55. package/src/assets/icons/feather/align-left.svg +1 -0
  56. package/src/assets/icons/feather/align-right.svg +1 -0
  57. package/src/assets/icons/feather/anchor.svg +1 -0
  58. package/src/assets/icons/feather/aperture.svg +1 -0
  59. package/src/assets/icons/feather/archive.svg +1 -0
  60. package/src/assets/icons/feather/arrow-down-circle.svg +1 -0
  61. package/src/assets/icons/feather/arrow-down-left.svg +1 -0
  62. package/src/assets/icons/feather/arrow-down-right.svg +1 -0
  63. package/src/assets/icons/feather/arrow-down.svg +1 -0
  64. package/src/assets/icons/feather/arrow-left-circle.svg +1 -0
  65. package/src/assets/icons/feather/arrow-left.svg +1 -0
  66. package/src/assets/icons/feather/arrow-right-circle.svg +1 -0
  67. package/src/assets/icons/feather/arrow-right.svg +1 -0
  68. package/src/assets/icons/feather/arrow-up-circle.svg +1 -0
  69. package/src/assets/icons/feather/arrow-up-left.svg +1 -0
  70. package/src/assets/icons/feather/arrow-up-right.svg +1 -0
  71. package/src/assets/icons/feather/arrow-up.svg +1 -0
  72. package/src/assets/icons/feather/at-sign.svg +1 -0
  73. package/src/assets/icons/feather/award.svg +1 -0
  74. package/src/assets/icons/feather/bar-chart-2.svg +1 -0
  75. package/src/assets/icons/feather/bar-chart.svg +1 -0
  76. package/src/assets/icons/feather/battery-charging.svg +1 -0
  77. package/src/assets/icons/feather/battery.svg +1 -0
  78. package/src/assets/icons/feather/bell-off.svg +1 -0
  79. package/src/assets/icons/feather/bell.svg +1 -0
  80. package/src/assets/icons/feather/bluetooth.svg +1 -0
  81. package/src/assets/icons/feather/bold.svg +1 -0
  82. package/src/assets/icons/feather/book-open.svg +1 -0
  83. package/src/assets/icons/feather/book.svg +1 -0
  84. package/src/assets/icons/feather/bookmark.svg +1 -0
  85. package/src/assets/icons/feather/box.svg +1 -0
  86. package/src/assets/icons/feather/briefcase.svg +1 -0
  87. package/src/assets/icons/feather/calendar.svg +1 -0
  88. package/src/assets/icons/feather/camera-off.svg +1 -0
  89. package/src/assets/icons/feather/camera.svg +1 -0
  90. package/src/assets/icons/feather/cast.svg +1 -0
  91. package/src/assets/icons/feather/check-circle.svg +1 -0
  92. package/src/assets/icons/feather/check-square.svg +1 -0
  93. package/src/assets/icons/feather/check.svg +1 -0
  94. package/src/assets/icons/feather/chevron-down.svg +1 -0
  95. package/src/assets/icons/feather/chevron-left.svg +1 -0
  96. package/src/assets/icons/feather/chevron-right.svg +1 -0
  97. package/src/assets/icons/feather/chevron-up.svg +1 -0
  98. package/src/assets/icons/feather/chevrons-down.svg +1 -0
  99. package/src/assets/icons/feather/chevrons-left.svg +1 -0
  100. package/src/assets/icons/feather/chevrons-right.svg +1 -0
  101. package/src/assets/icons/feather/chevrons-up.svg +1 -0
  102. package/src/assets/icons/feather/chrome.svg +1 -0
  103. package/src/assets/icons/feather/circle.svg +1 -0
  104. package/src/assets/icons/feather/clipboard.svg +1 -0
  105. package/src/assets/icons/feather/clock.svg +1 -0
  106. package/src/assets/icons/feather/cloud-drizzle.svg +1 -0
  107. package/src/assets/icons/feather/cloud-lightning.svg +1 -0
  108. package/src/assets/icons/feather/cloud-off.svg +1 -0
  109. package/src/assets/icons/feather/cloud-rain.svg +1 -0
  110. package/src/assets/icons/feather/cloud-snow.svg +1 -0
  111. package/src/assets/icons/feather/cloud.svg +1 -0
  112. package/src/assets/icons/feather/code.svg +1 -0
  113. package/src/assets/icons/feather/codepen.svg +1 -0
  114. package/src/assets/icons/feather/codesandbox.svg +1 -0
  115. package/src/assets/icons/feather/coffee.svg +1 -0
  116. package/src/assets/icons/feather/columns.svg +1 -0
  117. package/src/assets/icons/feather/command.svg +1 -0
  118. package/src/assets/icons/feather/compass.svg +1 -0
  119. package/src/assets/icons/feather/copy.svg +1 -0
  120. package/src/assets/icons/feather/corner-down-left.svg +1 -0
  121. package/src/assets/icons/feather/corner-down-right.svg +1 -0
  122. package/src/assets/icons/feather/corner-left-down.svg +1 -0
  123. package/src/assets/icons/feather/corner-left-up.svg +1 -0
  124. package/src/assets/icons/feather/corner-right-down.svg +1 -0
  125. package/src/assets/icons/feather/corner-right-up.svg +1 -0
  126. package/src/assets/icons/feather/corner-up-left.svg +1 -0
  127. package/src/assets/icons/feather/corner-up-right.svg +1 -0
  128. package/src/assets/icons/feather/cpu.svg +1 -0
  129. package/src/assets/icons/feather/credit-card.svg +1 -0
  130. package/src/assets/icons/feather/crop.svg +1 -0
  131. package/src/assets/icons/feather/crosshair.svg +1 -0
  132. package/src/assets/icons/feather/database.svg +1 -0
  133. package/src/assets/icons/feather/delete.svg +1 -0
  134. package/src/assets/icons/feather/disc.svg +1 -0
  135. package/src/assets/icons/feather/divide-circle.svg +1 -0
  136. package/src/assets/icons/feather/divide-square.svg +1 -0
  137. package/src/assets/icons/feather/divide.svg +1 -0
  138. package/src/assets/icons/feather/dollar-sign.svg +1 -0
  139. package/src/assets/icons/feather/download-cloud.svg +1 -0
  140. package/src/assets/icons/feather/download.svg +1 -0
  141. package/src/assets/icons/feather/dribbble.svg +1 -0
  142. package/src/assets/icons/feather/droplet.svg +1 -0
  143. package/src/assets/icons/feather/edit-2.svg +1 -0
  144. package/src/assets/icons/feather/edit-3.svg +1 -0
  145. package/src/assets/icons/feather/edit.svg +1 -0
  146. package/src/assets/icons/feather/external-link.svg +1 -0
  147. package/src/assets/icons/feather/eye-off.svg +1 -0
  148. package/src/assets/icons/feather/eye.svg +1 -0
  149. package/src/assets/icons/feather/facebook.svg +1 -0
  150. package/src/assets/icons/feather/fast-forward.svg +1 -0
  151. package/src/assets/icons/feather/feather.svg +1 -0
  152. package/src/assets/icons/feather/figma.svg +1 -0
  153. package/src/assets/icons/feather/file-minus.svg +1 -0
  154. package/src/assets/icons/feather/file-plus.svg +1 -0
  155. package/src/assets/icons/feather/file-text.svg +1 -0
  156. package/src/assets/icons/feather/file.svg +1 -0
  157. package/src/assets/icons/feather/film.svg +1 -0
  158. package/src/assets/icons/feather/filter.svg +1 -0
  159. package/src/assets/icons/feather/flag.svg +1 -0
  160. package/src/assets/icons/feather/folder-minus.svg +1 -0
  161. package/src/assets/icons/feather/folder-plus.svg +1 -0
  162. package/src/assets/icons/feather/folder.svg +1 -0
  163. package/src/assets/icons/feather/framer.svg +1 -0
  164. package/src/assets/icons/feather/frown.svg +1 -0
  165. package/src/assets/icons/feather/gift.svg +1 -0
  166. package/src/assets/icons/feather/git-branch.svg +1 -0
  167. package/src/assets/icons/feather/git-commit.svg +1 -0
  168. package/src/assets/icons/feather/git-merge.svg +1 -0
  169. package/src/assets/icons/feather/git-pull-request.svg +1 -0
  170. package/src/assets/icons/feather/github.svg +1 -0
  171. package/src/assets/icons/feather/gitlab.svg +1 -0
  172. package/src/assets/icons/feather/globe.svg +1 -0
  173. package/src/assets/icons/feather/grid.svg +1 -0
  174. package/src/assets/icons/feather/hard-drive.svg +1 -0
  175. package/src/assets/icons/feather/hash.svg +1 -0
  176. package/src/assets/icons/feather/headphones.svg +1 -0
  177. package/src/assets/icons/feather/heart.svg +1 -0
  178. package/src/assets/icons/feather/help-circle.svg +1 -0
  179. package/src/assets/icons/feather/hexagon.svg +1 -0
  180. package/src/assets/icons/feather/home.svg +1 -0
  181. package/src/assets/icons/feather/image.svg +1 -0
  182. package/src/assets/icons/feather/inbox.svg +1 -0
  183. package/src/assets/icons/feather/index.ts +581 -0
  184. package/src/assets/icons/feather/info.svg +1 -0
  185. package/src/assets/icons/feather/instagram.svg +1 -0
  186. package/src/assets/icons/feather/italic.svg +1 -0
  187. package/src/assets/icons/feather/key.svg +1 -0
  188. package/src/assets/icons/feather/layers.svg +1 -0
  189. package/src/assets/icons/feather/layout.svg +1 -0
  190. package/src/assets/icons/feather/life-buoy.svg +1 -0
  191. package/src/assets/icons/feather/link-2.svg +1 -0
  192. package/src/assets/icons/feather/link.svg +1 -0
  193. package/src/assets/icons/feather/linkedin.svg +1 -0
  194. package/src/assets/icons/feather/list.svg +1 -0
  195. package/src/assets/icons/feather/loader.svg +1 -0
  196. package/src/assets/icons/feather/lock.svg +1 -0
  197. package/src/assets/icons/feather/log-in.svg +1 -0
  198. package/src/assets/icons/feather/log-out.svg +1 -0
  199. package/src/assets/icons/feather/mail.svg +1 -0
  200. package/src/assets/icons/feather/map-pin.svg +1 -0
  201. package/src/assets/icons/feather/map.svg +1 -0
  202. package/src/assets/icons/feather/maximize-2.svg +1 -0
  203. package/src/assets/icons/feather/maximize.svg +1 -0
  204. package/src/assets/icons/feather/meh.svg +1 -0
  205. package/src/assets/icons/feather/menu.svg +1 -0
  206. package/src/assets/icons/feather/message-circle.svg +1 -0
  207. package/src/assets/icons/feather/message-square.svg +1 -0
  208. package/src/assets/icons/feather/mic-off.svg +1 -0
  209. package/src/assets/icons/feather/mic.svg +1 -0
  210. package/src/assets/icons/feather/minimize-2.svg +1 -0
  211. package/src/assets/icons/feather/minimize.svg +1 -0
  212. package/src/assets/icons/feather/minus-circle.svg +1 -0
  213. package/src/assets/icons/feather/minus-square.svg +1 -0
  214. package/src/assets/icons/feather/minus.svg +1 -0
  215. package/src/assets/icons/feather/monitor.svg +1 -0
  216. package/src/assets/icons/feather/moon.svg +1 -0
  217. package/src/assets/icons/feather/more-horizontal.svg +1 -0
  218. package/src/assets/icons/feather/more-vertical.svg +1 -0
  219. package/src/assets/icons/feather/mouse-pointer.svg +1 -0
  220. package/src/assets/icons/feather/move.svg +1 -0
  221. package/src/assets/icons/feather/music.svg +1 -0
  222. package/src/assets/icons/feather/navigation-2.svg +1 -0
  223. package/src/assets/icons/feather/navigation.svg +1 -0
  224. package/src/assets/icons/feather/octagon.svg +1 -0
  225. package/src/assets/icons/feather/package.svg +1 -0
  226. package/src/assets/icons/feather/paperclip.svg +1 -0
  227. package/src/assets/icons/feather/pause-circle.svg +1 -0
  228. package/src/assets/icons/feather/pause.svg +1 -0
  229. package/src/assets/icons/feather/pen-tool.svg +1 -0
  230. package/src/assets/icons/feather/percent.svg +1 -0
  231. package/src/assets/icons/feather/phone-call.svg +1 -0
  232. package/src/assets/icons/feather/phone-forwarded.svg +1 -0
  233. package/src/assets/icons/feather/phone-incoming.svg +1 -0
  234. package/src/assets/icons/feather/phone-missed.svg +1 -0
  235. package/src/assets/icons/feather/phone-off.svg +1 -0
  236. package/src/assets/icons/feather/phone-outgoing.svg +1 -0
  237. package/src/assets/icons/feather/phone.svg +1 -0
  238. package/src/assets/icons/feather/pie-chart.svg +1 -0
  239. package/src/assets/icons/feather/play-circle.svg +1 -0
  240. package/src/assets/icons/feather/play.svg +1 -0
  241. package/src/assets/icons/feather/plus-circle.svg +1 -0
  242. package/src/assets/icons/feather/plus-square.svg +1 -0
  243. package/src/assets/icons/feather/plus.svg +1 -0
  244. package/src/assets/icons/feather/pocket.svg +1 -0
  245. package/src/assets/icons/feather/power.svg +1 -0
  246. package/src/assets/icons/feather/printer.svg +1 -0
  247. package/src/assets/icons/feather/radio.svg +1 -0
  248. package/src/assets/icons/feather/refresh-ccw.svg +1 -0
  249. package/src/assets/icons/feather/refresh-cw.svg +1 -0
  250. package/src/assets/icons/feather/repeat.svg +1 -0
  251. package/src/assets/icons/feather/rewind.svg +1 -0
  252. package/src/assets/icons/feather/rotate-ccw.svg +1 -0
  253. package/src/assets/icons/feather/rotate-cw.svg +1 -0
  254. package/src/assets/icons/feather/rss.svg +1 -0
  255. package/src/assets/icons/feather/save.svg +1 -0
  256. package/src/assets/icons/feather/scissors.svg +1 -0
  257. package/src/assets/icons/feather/search.svg +1 -0
  258. package/src/assets/icons/feather/send.svg +1 -0
  259. package/src/assets/icons/feather/server.svg +1 -0
  260. package/src/assets/icons/feather/settings.svg +1 -0
  261. package/src/assets/icons/feather/share-2.svg +1 -0
  262. package/src/assets/icons/feather/share.svg +1 -0
  263. package/src/assets/icons/feather/shield-off.svg +1 -0
  264. package/src/assets/icons/feather/shield.svg +1 -0
  265. package/src/assets/icons/feather/shopping-bag.svg +1 -0
  266. package/src/assets/icons/feather/shopping-cart.svg +1 -0
  267. package/src/assets/icons/feather/shuffle.svg +1 -0
  268. package/src/assets/icons/feather/sidebar.svg +1 -0
  269. package/src/assets/icons/feather/skip-back.svg +1 -0
  270. package/src/assets/icons/feather/skip-forward.svg +1 -0
  271. package/src/assets/icons/feather/slack.svg +1 -0
  272. package/src/assets/icons/feather/slash.svg +1 -0
  273. package/src/assets/icons/feather/sliders.svg +1 -0
  274. package/src/assets/icons/feather/smartphone.svg +1 -0
  275. package/src/assets/icons/feather/smile.svg +1 -0
  276. package/src/assets/icons/feather/speaker.svg +1 -0
  277. package/src/assets/icons/feather/square.svg +1 -0
  278. package/src/assets/icons/feather/star.svg +1 -0
  279. package/src/assets/icons/feather/stop-circle.svg +1 -0
  280. package/src/assets/icons/feather/sun.svg +1 -0
  281. package/src/assets/icons/feather/sunrise.svg +1 -0
  282. package/src/assets/icons/feather/sunset.svg +1 -0
  283. package/src/assets/icons/feather/table.svg +1 -0
  284. package/src/assets/icons/feather/tablet.svg +1 -0
  285. package/src/assets/icons/feather/tag.svg +1 -0
  286. package/src/assets/icons/feather/target.svg +1 -0
  287. package/src/assets/icons/feather/terminal.svg +1 -0
  288. package/src/assets/icons/feather/thermometer.svg +1 -0
  289. package/src/assets/icons/feather/thumbs-down.svg +1 -0
  290. package/src/assets/icons/feather/thumbs-up.svg +1 -0
  291. package/src/assets/icons/feather/toggle-left.svg +1 -0
  292. package/src/assets/icons/feather/toggle-right.svg +1 -0
  293. package/src/assets/icons/feather/tool.svg +1 -0
  294. package/src/assets/icons/feather/trash-2.svg +1 -0
  295. package/src/assets/icons/feather/trash.svg +1 -0
  296. package/src/assets/icons/feather/trello.svg +1 -0
  297. package/src/assets/icons/feather/trending-down.svg +1 -0
  298. package/src/assets/icons/feather/trending-up.svg +1 -0
  299. package/src/assets/icons/feather/triangle.svg +1 -0
  300. package/src/assets/icons/feather/truck.svg +1 -0
  301. package/src/assets/icons/feather/tv.svg +1 -0
  302. package/src/assets/icons/feather/twitch.svg +1 -0
  303. package/src/assets/icons/feather/twitter.svg +1 -0
  304. package/src/assets/icons/feather/type.svg +1 -0
  305. package/src/assets/icons/feather/umbrella.svg +1 -0
  306. package/src/assets/icons/feather/underline.svg +1 -0
  307. package/src/assets/icons/feather/unlock.svg +1 -0
  308. package/src/assets/icons/feather/upload-cloud.svg +1 -0
  309. package/src/assets/icons/feather/upload.svg +1 -0
  310. package/src/assets/icons/feather/user-check.svg +1 -0
  311. package/src/assets/icons/feather/user-minus.svg +1 -0
  312. package/src/assets/icons/feather/user-plus.svg +1 -0
  313. package/src/assets/icons/feather/user-x.svg +1 -0
  314. package/src/assets/icons/feather/user.svg +1 -0
  315. package/src/assets/icons/feather/users.svg +1 -0
  316. package/src/assets/icons/feather/video-off.svg +1 -0
  317. package/src/assets/icons/feather/video.svg +1 -0
  318. package/src/assets/icons/feather/voicemail.svg +1 -0
  319. package/src/assets/icons/feather/volume-1.svg +1 -0
  320. package/src/assets/icons/feather/volume-2.svg +1 -0
  321. package/src/assets/icons/feather/volume-x.svg +1 -0
  322. package/src/assets/icons/feather/volume.svg +1 -0
  323. package/src/assets/icons/feather/watch.svg +1 -0
  324. package/src/assets/icons/feather/wifi-off.svg +1 -0
  325. package/src/assets/icons/feather/wifi.svg +1 -0
  326. package/src/assets/icons/feather/wind.svg +1 -0
  327. package/src/assets/icons/feather/x-circle.svg +1 -0
  328. package/src/assets/icons/feather/x-octagon.svg +1 -0
  329. package/src/assets/icons/feather/x-square.svg +1 -0
  330. package/src/assets/icons/feather/x.svg +1 -0
  331. package/src/assets/icons/feather/youtube.svg +1 -0
  332. package/src/assets/icons/feather/zap-off.svg +1 -0
  333. package/src/assets/icons/feather/zap.svg +1 -0
  334. package/src/assets/icons/feather/zoom-in.svg +1 -0
  335. package/src/assets/icons/feather/zoom-out.svg +1 -0
  336. package/src/assets/icons/flags/flags.png +0 -0
  337. package/src/assets/icons/flags/index.ts +120 -0
  338. package/src/components/AbsoluteContainer/index.tsx +62 -0
  339. package/src/components/AbsoluteContainer/interfaces.ts +39 -0
  340. package/src/components/AbsoluteContainer/styles.ts +93 -0
  341. package/src/components/Button/constants.ts +17 -0
  342. package/src/components/Button/index.tsx +47 -0
  343. package/src/components/Button/interfaces.ts +33 -0
  344. package/src/components/Button/styles.ts +126 -0
  345. package/src/components/Button/theme.ts +8 -0
  346. package/src/components/Calendar/index.tsx +375 -0
  347. package/src/components/Calendar/interfaces.ts +21 -0
  348. package/src/components/Calendar/styles.ts +161 -0
  349. package/src/components/CalendarInterval/index.tsx +93 -0
  350. package/src/components/CalendarInterval/interfaces.ts +17 -0
  351. package/src/components/CalendarInterval/styles.ts +9 -0
  352. package/src/components/Card/index.tsx +9 -0
  353. package/src/components/Card/interfaces.ts +5 -0
  354. package/src/components/Card/styled.ts +60 -0
  355. package/src/components/Icon/index.tsx +66 -0
  356. package/src/components/Icon/interfaces.ts +42 -0
  357. package/src/components/Icon/styled.ts +64 -0
  358. package/src/components/Indicator/index.tsx +14 -0
  359. package/src/components/Indicator/interfaces.ts +6 -0
  360. package/src/components/Indicator/styles.ts +49 -0
  361. package/src/components/Input/components/Checkbox/index.tsx +35 -0
  362. package/src/components/Input/components/Checkbox/interfaces.ts +27 -0
  363. package/src/components/Input/components/Checkbox/styles.ts +168 -0
  364. package/src/components/Input/components/Date/functions.ts +1 -0
  365. package/src/components/Input/components/Date/index.tsx +188 -0
  366. package/src/components/Input/components/Date/interfaces.ts +10 -0
  367. package/src/components/Input/components/Date/styles.ts +5 -0
  368. package/src/components/Input/components/DatePicker/index.tsx +143 -0
  369. package/src/components/Input/components/DatePicker/interfaces.ts +21 -0
  370. package/src/components/Input/components/DatePicker/styles.ts +64 -0
  371. package/src/components/Input/components/Input/functions.ts +35 -0
  372. package/src/components/Input/components/Input/index.tsx +204 -0
  373. package/src/components/Input/components/Input/interfaces.ts +46 -0
  374. package/src/components/Input/components/Input/styles.ts +140 -0
  375. package/src/components/Input/components/Password/index.tsx +63 -0
  376. package/src/components/Input/components/Password/interfaces.ts +9 -0
  377. package/src/components/Input/components/Phone/countries.ts +107 -0
  378. package/src/components/Input/components/Phone/index.tsx +179 -0
  379. package/src/components/Input/components/Phone/interfaces.ts +47 -0
  380. package/src/components/Input/components/Phone/styles.ts +27 -0
  381. package/src/components/Input/components/RadioButton/index.tsx +28 -0
  382. package/src/components/Input/components/RadioButton/interfaces.ts +16 -0
  383. package/src/components/Input/components/RadioButton/styles.ts +96 -0
  384. package/src/components/Input/components/Range/index.tsx +186 -0
  385. package/src/components/Input/components/Range/interfaces.ts +37 -0
  386. package/src/components/Input/components/Range/styles.ts +218 -0
  387. package/src/components/Input/components/Select/context.ts +8 -0
  388. package/src/components/Input/components/Select/index.tsx +226 -0
  389. package/src/components/Input/components/Select/interfaces.ts +49 -0
  390. package/src/components/Input/components/Select/styles.ts +17 -0
  391. package/src/components/Input/components/Switch/index.tsx +28 -0
  392. package/src/components/Input/components/Switch/interfaces.ts +16 -0
  393. package/src/components/Input/components/Switch/styles.ts +100 -0
  394. package/src/components/Input/components/Time/index.tsx +152 -0
  395. package/src/components/Input/components/Time/interfaces.ts +6 -0
  396. package/src/components/Input/index.tsx +95 -0
  397. package/src/components/Loader/index.ts +55 -0
  398. package/src/components/Loader/interfaces.ts +8 -0
  399. package/src/components/Menu/index.tsx +139 -0
  400. package/src/components/Menu/interfaces.ts +63 -0
  401. package/src/components/Menu/styles.ts +79 -0
  402. package/src/components/Modal/component.tsx +114 -0
  403. package/src/components/Modal/contants.ts +15 -0
  404. package/src/components/Modal/index.ts +18 -0
  405. package/src/components/Modal/interfaces.ts +60 -0
  406. package/src/components/Modal/styles.ts +91 -0
  407. package/src/components/Modal/templates/Audit/index.tsx +45 -0
  408. package/src/components/Modal/templates/Audit/interfaces.ts +17 -0
  409. package/src/components/Modal/templates/Audit/styles.ts +5 -0
  410. package/src/components/Modal/templates/ConfirmDelete/index.tsx +47 -0
  411. package/src/components/Modal/templates/ConfirmDelete/interfaces.ts +16 -0
  412. package/src/components/Modal/templates/ConfirmDelete/styles.ts +5 -0
  413. package/src/components/Modal/templates/ConfirmEdit/index.tsx +51 -0
  414. package/src/components/Modal/templates/ConfirmEdit/interfaces.ts +18 -0
  415. package/src/components/Modal/templates/ConfirmEdit/styles.ts +5 -0
  416. package/src/components/Modal/templates/index.ts +3 -0
  417. package/src/components/Placeholder/components/Template1/index.tsx +27 -0
  418. package/src/components/Placeholder/components/Template1/styles.ts +68 -0
  419. package/src/components/Placeholder/components/Template10/index.tsx +29 -0
  420. package/src/components/Placeholder/components/Template10/styles.ts +79 -0
  421. package/src/components/Placeholder/components/Template2/index.tsx +25 -0
  422. package/src/components/Placeholder/components/Template2/styles.ts +43 -0
  423. package/src/components/Placeholder/components/Template3/index.tsx +18 -0
  424. package/src/components/Placeholder/components/Template3/styles.ts +15 -0
  425. package/src/components/Placeholder/components/Template4/index.tsx +20 -0
  426. package/src/components/Placeholder/components/Template4/styles.ts +50 -0
  427. package/src/components/Placeholder/components/Template5/index.tsx +40 -0
  428. package/src/components/Placeholder/components/Template5/styles.ts +64 -0
  429. package/src/components/Placeholder/components/Template6/index.tsx +33 -0
  430. package/src/components/Placeholder/components/Template6/styles.ts +63 -0
  431. package/src/components/Placeholder/components/Template7/index.tsx +23 -0
  432. package/src/components/Placeholder/components/Template7/styles.ts +73 -0
  433. package/src/components/Placeholder/components/Template8/index.tsx +30 -0
  434. package/src/components/Placeholder/components/Template8/styles.ts +66 -0
  435. package/src/components/Placeholder/components/Template9/index.tsx +20 -0
  436. package/src/components/Placeholder/components/Template9/styles.ts +74 -0
  437. package/src/components/Placeholder/index.tsx +56 -0
  438. package/src/components/Placeholder/interfaces.ts +21 -0
  439. package/src/components/Placeholder/styles.ts +35 -0
  440. package/src/components/ProgressBar/index.tsx +16 -0
  441. package/src/components/ProgressBar/interfaces.ts +4 -0
  442. package/src/components/ProgressBar/styles.ts +51 -0
  443. package/src/components/ScrollContainer/index.tsx +99 -0
  444. package/src/components/ScrollContainer/interfaces.ts +9 -0
  445. package/src/components/Tabs/index.tsx +55 -0
  446. package/src/components/Tabs/interfaces.ts +44 -0
  447. package/src/components/Tabs/styles.ts +65 -0
  448. package/src/components/TextArea/index.tsx +9 -0
  449. package/src/components/TextArea/interfaces.ts +10 -0
  450. package/src/components/TextArea/styles.ts +13 -0
  451. package/src/components/Toast/index.tsx +20 -0
  452. package/src/components/Toast/interfaces.ts +7 -0
  453. package/src/components/Toast/styles.ts +88 -0
  454. package/src/components/index.ts +17 -0
  455. package/src/components/theme.ts +7 -0
  456. package/src/functions/common.ts +3 -0
  457. package/src/functions/formatters.ts +170 -0
  458. package/src/functions/validators.ts +93 -0
  459. package/src/hooks/onClickOut.ts +28 -0
  460. package/src/index.ts +8 -0
  461. package/src/interfaces.ts +4 -0
  462. package/src/stories/components/Input/MwCheckbox/MwCheckBox.stories.tsx +20 -0
  463. package/src/stories/components/Input/MwCheckbox/argTypes.ts +82 -0
  464. package/src/stories/components/Input/MwDate/MwDate.stories.tsx +31 -0
  465. package/src/stories/components/Input/MwDate/argTypes.ts +74 -0
  466. package/src/stories/components/Input/MwDatePicker/MwDatePicker.stories.tsx +33 -0
  467. package/src/stories/components/Input/MwDatePicker/argTypes.ts +6 -0
  468. package/src/stories/components/Input/MwInput/MwInput.stories.tsx +21 -0
  469. package/src/stories/components/Input/MwInput/argTypes.ts +93 -0
  470. package/src/stories/components/Input/MwIntlTel/MwIntlTel.stories.tsx +31 -0
  471. package/src/stories/components/Input/MwIntlTel/argTypes.ts +67 -0
  472. package/src/stories/components/Input/MwPassword/MwPassword.stories.tsx +20 -0
  473. package/src/stories/components/Input/MwPassword/argTypes.ts +51 -0
  474. package/src/stories/components/Input/MwRadioButton/MwSwitch.stories.tsx +22 -0
  475. package/src/stories/components/Input/MwRadioButton/argtypes.ts +81 -0
  476. package/src/stories/components/Input/MwRange/MwRange.stories.tsx +33 -0
  477. package/src/stories/components/Input/MwRange/argTypes.ts +83 -0
  478. package/src/stories/components/Input/MwSelect/MwSelect.stories.tsx +20 -0
  479. package/src/stories/components/Input/MwSelect/argTypes.ts +133 -0
  480. package/src/stories/components/Input/MwSwitch/MwSwitch.stories.tsx +20 -0
  481. package/src/stories/components/Input/MwSwitch/argTypes.ts +73 -0
  482. package/src/stories/components/Input/MwTime/MwTime.stories.tsx +20 -0
  483. package/src/stories/components/Input/MwTime/argTypes.ts +88 -0
  484. package/src/stories/components/MwButton/MwButton.stories.tsx +19 -0
  485. package/src/stories/components/MwButton/argTypes.ts +81 -0
  486. package/src/stories/components/MwCalendar/MwCalendar.stories.tsx +39 -0
  487. package/src/stories/components/MwCalendar/argTypes.ts +15 -0
  488. package/src/stories/components/MwCalendarInterval/MwCalendarInterval.stories.tsx +39 -0
  489. package/src/stories/components/MwCalendarInterval/argTypes.ts +15 -0
  490. package/src/stories/components/MwCard/MwCard.stories.tsx +19 -0
  491. package/src/stories/components/MwCard/argTypes.ts +27 -0
  492. package/src/stories/components/MwIcon/MwIcon.stories.tsx +19 -0
  493. package/src/stories/components/MwIcon/argTypes.ts +48 -0
  494. package/src/stories/components/MwIndicator/MwIndicator.stories.tsx +19 -0
  495. package/src/stories/components/MwIndicator/argTypes.ts +38 -0
  496. package/src/stories/components/MwLoader/MwLoader.stories.tsx +19 -0
  497. package/src/stories/components/MwLoader/argTypes.ts +33 -0
  498. package/src/stories/components/MwModal/MwModal.stories.tsx +81 -0
  499. package/src/stories/components/MwModal/argTypes.ts +71 -0
  500. package/src/stories/components/MwPlaceholder/Template1/MwTemplate1.stories.tsx +23 -0
  501. package/src/stories/components/MwPlaceholder/Template1/argTypes.ts +22 -0
  502. package/src/stories/components/MwPlaceholder/Template10/MwTemplate1.stories.tsx +23 -0
  503. package/src/stories/components/MwPlaceholder/Template10/argTypes.ts +22 -0
  504. package/src/stories/components/MwPlaceholder/Template2/MwTemplate1.stories.tsx +23 -0
  505. package/src/stories/components/MwPlaceholder/Template2/argTypes.ts +22 -0
  506. package/src/stories/components/MwPlaceholder/Template3/MwTemplate1.stories.tsx +23 -0
  507. package/src/stories/components/MwPlaceholder/Template3/argTypes.ts +22 -0
  508. package/src/stories/components/MwPlaceholder/Template4/MwTemplate1.stories.tsx +23 -0
  509. package/src/stories/components/MwPlaceholder/Template4/argTypes.ts +22 -0
  510. package/src/stories/components/MwPlaceholder/Template5/MwTemplate1.stories.tsx +23 -0
  511. package/src/stories/components/MwPlaceholder/Template5/argTypes.ts +22 -0
  512. package/src/stories/components/MwPlaceholder/Template6/MwTemplate1.stories.tsx +23 -0
  513. package/src/stories/components/MwPlaceholder/Template6/argTypes.ts +22 -0
  514. package/src/stories/components/MwPlaceholder/Template7/MwTemplate1.stories.tsx +23 -0
  515. package/src/stories/components/MwPlaceholder/Template7/argTypes.ts +22 -0
  516. package/src/stories/components/MwPlaceholder/Template8/MwTemplate1.stories.tsx +23 -0
  517. package/src/stories/components/MwPlaceholder/Template8/argTypes.ts +22 -0
  518. package/src/stories/components/MwPlaceholder/Template9/MwTemplate1.stories.tsx +23 -0
  519. package/src/stories/components/MwPlaceholder/Template9/argTypes.ts +22 -0
  520. package/src/stories/components/MwProgressBar/MwIndicator.stories.tsx +19 -0
  521. package/src/stories/components/MwProgressBar/argTypes.ts +22 -0
  522. package/src/stories/components/MwTabs/MwTabs.stories.tsx +29 -0
  523. package/src/stories/components/MwTabs/argTypes.ts +78 -0
  524. package/src/stories/components/MwTextArea/MwTextArea.stories.tsx +19 -0
  525. package/src/stories/components/MwTextArea/argTypes.ts +29 -0
  526. package/src/stories/components/MwToast/MwIcon.stories.tsx +19 -0
  527. package/src/stories/components/MwToast/argTypes.ts +45 -0
  528. package/src/stories/examples/Introduction.stories.mdx +219 -0
  529. package/src/stories/examples/assets/code-brackets.svg +1 -0
  530. package/src/stories/examples/assets/colors.svg +1 -0
  531. package/src/stories/examples/assets/comments.svg +1 -0
  532. package/src/stories/examples/assets/direction.svg +1 -0
  533. package/src/stories/examples/assets/flow.svg +1 -0
  534. package/src/stories/examples/assets/plugin.svg +1 -0
  535. package/src/stories/examples/assets/repo.svg +1 -0
  536. package/src/stories/examples/assets/stackalt.svg +1 -0
  537. package/src/stories/interfaces.ts +17 -0
  538. package/src/styled.d.ts +9 -0
  539. package/src/theme/constants.ts +129 -0
  540. package/src/theme/globals.tsx +15 -0
  541. package/src/theme/index.tsx +68 -0
  542. package/src/theme/interfaces.ts +24 -0
  543. package/src/theme/useCssVars.ts +49 -0
  544. package/src/typings.d.ts +20 -0
  545. package/tsconfig.json +23 -0
  546. package/dist/index.d.ts +0 -6
  547. package/dist/index.js +0 -30
  548. package/dist/index.js.map +0 -1
  549. package/dist/index.modern.js +0 -11
  550. package/dist/index.modern.js.map +0 -1
@@ -0,0 +1,27 @@
1
+ import { CardProps } from '../../../components/Card/interfaces'
2
+
3
+ import { ArgTypes } from '../../interfaces'
4
+
5
+ const argTypes: ArgTypes<CardProps> = {
6
+ size: {
7
+ defaultValue: 'small',
8
+ description: 'Specifies the size of the card.',
9
+ table: {
10
+ defaultValue: { summary: 'small' },
11
+ },
12
+ control: 'select',
13
+ },
14
+ borderType: {
15
+ defaultValue: 'info',
16
+ description: 'Specifies the border color',
17
+ table: {
18
+ defaultValue: { summary: 'info' },
19
+ },
20
+ control: 'select',
21
+ },
22
+ children: {
23
+ description: 'React children to fill the card',
24
+ },
25
+ }
26
+
27
+ export default argTypes
@@ -0,0 +1,19 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwIcon as MwIconComponent } from '../../..'
4
+ import argTypes from './argTypes'
5
+
6
+ const Story: ComponentMeta<typeof MwIconComponent> = {
7
+ id: 'MwIcon',
8
+ title: 'Components/MwIcon',
9
+ component: MwIconComponent,
10
+ argTypes: argTypes,
11
+ }
12
+
13
+ export const MwIcon: ComponentStory<typeof MwIconComponent> = (args) => (
14
+ <MwIconComponent {...args} />
15
+ )
16
+
17
+ MwIcon.storyName = 'MwIcon'
18
+
19
+ export default Story
@@ -0,0 +1,48 @@
1
+ import { IconProps } from '../../../components/Icon/interfaces'
2
+ import { ArgTypes } from '../../interfaces'
3
+
4
+ const argTypes: ArgTypes<IconProps> = {
5
+ type: {
6
+ defaultValue: 'feather',
7
+ description: 'Icon type.',
8
+ table: {
9
+ type: {
10
+ summary: 'TypeOptions',
11
+ detail: ['semantic', 'feather', 'svg'].join('\n'),
12
+ },
13
+ },
14
+ control: 'select',
15
+ },
16
+ icon: {
17
+ defaultValue: 'activity',
18
+ description: 'Specifies the icon.',
19
+ table: {},
20
+ control: 'text',
21
+ },
22
+ color: {
23
+ defaultValue: 'green',
24
+ description: 'Specifies the icon color.',
25
+ table: {
26
+ defaultValue: { summary: '"black"' },
27
+ },
28
+ control: 'text',
29
+ },
30
+ width: {
31
+ defaultValue: '24px',
32
+ description: 'Specifies the icon width.',
33
+ table: {
34
+ defaultValue: { summary: '"24px"' },
35
+ },
36
+ control: 'text',
37
+ },
38
+ height: {
39
+ defaultValue: '24px',
40
+ description: 'Specifies the icon height.',
41
+ table: {
42
+ defaultValue: { summary: '"auto"' },
43
+ },
44
+ control: 'text',
45
+ },
46
+ }
47
+
48
+ export default argTypes
@@ -0,0 +1,19 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwIndicator as MwIndicatorComponent } from '../../../'
4
+ import argTypes from './argTypes'
5
+
6
+ const Story: ComponentMeta<typeof MwIndicatorComponent> = {
7
+ id: 'MwIndicator',
8
+ title: 'Components/MwIndicator',
9
+ component: MwIndicatorComponent,
10
+ argTypes: argTypes,
11
+ }
12
+
13
+ export const MwIndicator: ComponentStory<typeof MwIndicatorComponent> = (
14
+ args,
15
+ ) => <MwIndicatorComponent {...args} />
16
+
17
+ MwIndicator.storyName = 'MwIndicator'
18
+
19
+ export default Story
@@ -0,0 +1,38 @@
1
+ import { IndicatorProps } from '../../../components/Indicator/interfaces'
2
+
3
+ import { ArgTypes } from '../../interfaces'
4
+
5
+ const argTypes: ArgTypes<IndicatorProps> = {
6
+ size: {
7
+ defaultValue: 'small',
8
+ description: 'Define size of the bullet',
9
+ table: {
10
+ defaultValue: { summary: 'small' },
11
+ },
12
+ control: 'select',
13
+ },
14
+ type: {
15
+ defaultValue: 'default',
16
+ description: 'Defines the type of the bullet ',
17
+ table: {
18
+ defaultValue: { summary: 'default' },
19
+ },
20
+ control: 'select',
21
+ },
22
+ description: {
23
+ defaultValue: 'Label',
24
+ description: 'Text that will be next to the indicator',
25
+ table: {
26
+ defaultValue: { summary: '' },
27
+ },
28
+ },
29
+ labelColor: {
30
+ defaultValue: '#000',
31
+ description: 'Define the label color',
32
+ table: {
33
+ defaultValue: { summary: '' },
34
+ },
35
+ },
36
+ }
37
+
38
+ export default argTypes
@@ -0,0 +1,19 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwLoader as MwLoaderComponent } from '../../..'
4
+ import argTypes from './argTypes'
5
+
6
+ const Story: ComponentMeta<typeof MwLoaderComponent> = {
7
+ id: 'MwLoader',
8
+ title: 'Components/MwLoader',
9
+ component: MwLoaderComponent,
10
+ argTypes: argTypes,
11
+ }
12
+
13
+ export const MwLoader: ComponentStory<typeof MwLoaderComponent> = (args) => (
14
+ <MwLoaderComponent {...args} />
15
+ )
16
+
17
+ MwLoader.storyName = 'MwLoader'
18
+
19
+ export default Story
@@ -0,0 +1,33 @@
1
+ import { LoaderProps } from '../../../components/Loader/interfaces'
2
+ import { ArgTypes } from '../../interfaces'
3
+
4
+ const argTypes: ArgTypes<LoaderProps> = {
5
+ color: {
6
+ defaultValue: 'blue',
7
+ description: 'Specifies the icon color.',
8
+ table: {
9
+ defaultValue: { summary: '"white"' },
10
+ },
11
+ control: 'text',
12
+ },
13
+ bgColor: {
14
+ defaultValue: 'blue',
15
+ description: 'Specifies the icon color.',
16
+ table: {
17
+ defaultValue: { summary: '"white"' },
18
+ },
19
+ control: 'text',
20
+ },
21
+ size: {
22
+ defaultValue: '43px',
23
+ description: 'Specifies the icon width.',
24
+ control: 'text',
25
+ },
26
+ borderSize: {
27
+ defaultValue: '2px',
28
+ description: 'Specifies the icon width.',
29
+ control: 'text',
30
+ },
31
+ }
32
+
33
+ export default argTypes
@@ -0,0 +1,81 @@
1
+ import React, { useState } from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwModal as MwModalComponent, MwButton } from '../../../components'
4
+ import argTypes from './argTypes'
5
+
6
+ const Story: ComponentMeta<typeof MwModalComponent> = {
7
+ id: 'MwModal',
8
+ title: 'Components/MwModal',
9
+ component: MwModalComponent,
10
+ argTypes: argTypes,
11
+ }
12
+
13
+ export const Default: ComponentStory<typeof MwModalComponent> = (args) => {
14
+ const [open, setOpen] = useState<boolean>(false)
15
+
16
+ return (
17
+ <React.Fragment>
18
+ <MwButton content='Open modal' onClick={() => setOpen(true)} />
19
+
20
+ <MwModalComponent {...args} openState={[open, setOpen]} />
21
+ </React.Fragment>
22
+ )
23
+ }
24
+
25
+ export const Audit: ComponentStory<typeof MwModalComponent.Audit> = (args) => {
26
+ const [open, setOpen] = useState<boolean>(false)
27
+
28
+ return (
29
+ <React.Fragment>
30
+ <MwButton content='Open modal' onClick={() => setOpen(true)} />
31
+
32
+ <MwModalComponent.Audit
33
+ {...args}
34
+ openState={[open, setOpen]}
35
+ cancelAction={() => alert('Cancelar')}
36
+ confirmAction={() => alert('Confirmado')}
37
+ />
38
+ </React.Fragment>
39
+ )
40
+ }
41
+
42
+ export const ConfirmDelete: ComponentStory<
43
+ typeof MwModalComponent.ConfirmDelete
44
+ > = (args) => {
45
+ const [open, setOpen] = useState<boolean>(false)
46
+
47
+ return (
48
+ <React.Fragment>
49
+ <MwButton content='Open modal' onClick={() => setOpen(true)} />
50
+
51
+ <MwModalComponent.ConfirmDelete
52
+ {...args}
53
+ openState={[open, setOpen]}
54
+ cancelAction={() => alert('Cancelar')}
55
+ confirmAction={() => alert('Confirmado')}
56
+ />
57
+ </React.Fragment>
58
+ )
59
+ }
60
+
61
+ export const ConfirmEdit: ComponentStory<
62
+ typeof MwModalComponent.ConfirmEdit
63
+ > = (args) => {
64
+ const [open, setOpen] = useState<boolean>(false)
65
+
66
+ return (
67
+ <React.Fragment>
68
+ <MwButton content='Open modal' onClick={() => setOpen(true)} />
69
+
70
+ <MwModalComponent.ConfirmEdit
71
+ {...args}
72
+ openState={[open, setOpen]}
73
+ homeAction={() => alert('Go Home')}
74
+ cancelAction={() => alert('Cancelar')}
75
+ confirmAction={() => alert('Confirmado')}
76
+ />
77
+ </React.Fragment>
78
+ )
79
+ }
80
+
81
+ export default Story
@@ -0,0 +1,71 @@
1
+ import { ModalProps } from '../../../components/Modal/interfaces'
2
+ import { colors } from '../../../theme/constants'
3
+
4
+ import { ArgTypes } from '../../interfaces'
5
+
6
+ const argTypes: ArgTypes<ModalProps> = {
7
+ size: {
8
+ defaultValue: 'small',
9
+ description: 'Specifies the modal size.',
10
+ table: {
11
+ defaultValue: { summary: '"small"' },
12
+ },
13
+ control: 'select',
14
+ },
15
+ color: {
16
+ defaultValue: 'blue',
17
+ description: 'Define the color of header and default confirm button.',
18
+ table: {
19
+ type: {
20
+ summary: 'ColorOptions',
21
+ detail: Object.keys(colors)
22
+ .map((e) => `"${e}"`)
23
+ .join('\n'),
24
+ },
25
+ defaultValue: { summary: '"blue"' },
26
+ },
27
+ control: 'select',
28
+ },
29
+ title: {
30
+ defaultValue: 'Modal',
31
+ description: 'Title on header of modal.',
32
+ table: {
33
+ defaultValue: { summary: '"Modal"' },
34
+ },
35
+ control: 'string',
36
+ },
37
+ inverted: {
38
+ defaultValue: false,
39
+ description: 'Define if header of modal is inverted.',
40
+ table: {
41
+ defaultValue: { summary: 'false' },
42
+ },
43
+ },
44
+ loading: {
45
+ defaultValue: false,
46
+ description: 'Define if the button is loading.',
47
+ table: {
48
+ defaultValue: { summary: 'false' },
49
+ },
50
+ },
51
+ closeOnClickOutside: {
52
+ defaultValue: false,
53
+ description: 'Close modal if click outside of container.',
54
+ table: {
55
+ defaultValue: { summary: 'false' },
56
+ },
57
+ },
58
+ closeOnEsc: {
59
+ defaultValue: false,
60
+ description: 'Close modal if type ESC key.',
61
+ table: {
62
+ defaultValue: { summary: 'false' },
63
+ },
64
+ },
65
+ footer: { control: false },
66
+ content: { control: false },
67
+ children: { control: false },
68
+ openState: { control: false },
69
+ }
70
+
71
+ export default argTypes
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwPlaceholder as MwPlaceholderComponent } from '../../../..'
4
+ import Template1 from '../../../../components/Placeholder/components/Template1'
5
+
6
+ import argTypes from './argTypes'
7
+
8
+ const Story: ComponentMeta<typeof MwPlaceholderComponent> = {
9
+ id: 'MwTemplate1',
10
+ title: 'Components/Placeholder/type="template1"',
11
+ component: Template1,
12
+ argTypes: argTypes,
13
+ }
14
+
15
+ export const MwPlaceholder: ComponentStory<typeof MwPlaceholderComponent> = (
16
+ args,
17
+ ) => {
18
+ return <MwPlaceholderComponent {...args} />
19
+ }
20
+
21
+ MwPlaceholder.storyName = 'type="template1"'
22
+
23
+ export default Story
@@ -0,0 +1,22 @@
1
+ import { PlaceholderProps } from '../../../../components/Placeholder/interfaces'
2
+
3
+ import { ArgTypes } from '../../../interfaces'
4
+
5
+ const argTypes: ArgTypes<PlaceholderProps> = {
6
+ type: {
7
+ defaultValue: 'template1',
8
+ description: 'template type.',
9
+ table: {
10
+ defaultValue: { summary: 'template1' },
11
+ },
12
+ },
13
+ loading: {
14
+ defaultValue: true,
15
+ description: 'Verify is loading is running',
16
+ table: {
17
+ defaultValue: { summary: 'true' },
18
+ },
19
+ },
20
+ }
21
+
22
+ export default argTypes
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwPlaceholder as MwPlaceholderComponent } from '../../../..'
4
+ import Template10 from '../../../../components/Placeholder/components/Template10'
5
+
6
+ import argTypes from './argTypes'
7
+
8
+ const Story: ComponentMeta<typeof MwPlaceholderComponent> = {
9
+ id: 'MwTemplate10',
10
+ title: 'Components/Placeholder/type="template10"',
11
+ component: Template10,
12
+ argTypes: argTypes,
13
+ }
14
+
15
+ export const MwPlaceholder: ComponentStory<typeof MwPlaceholderComponent> = (
16
+ args,
17
+ ) => {
18
+ return <MwPlaceholderComponent {...args} />
19
+ }
20
+
21
+ MwPlaceholder.storyName = 'type="template10"'
22
+
23
+ export default Story
@@ -0,0 +1,22 @@
1
+ import { PlaceholderProps } from '../../../../components/Placeholder/interfaces'
2
+
3
+ import { ArgTypes } from '../../../interfaces'
4
+
5
+ const argTypes: ArgTypes<PlaceholderProps> = {
6
+ type: {
7
+ defaultValue: 'template10',
8
+ description: 'template type.',
9
+ table: {
10
+ defaultValue: { summary: 'template1' },
11
+ },
12
+ },
13
+ loading: {
14
+ defaultValue: true,
15
+ description: 'Verify is loading is running',
16
+ table: {
17
+ defaultValue: { summary: 'true' },
18
+ },
19
+ },
20
+ }
21
+
22
+ export default argTypes
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwPlaceholder as MwPlaceholderComponent } from '../../../..'
4
+ import Template2 from '../../../../components/Placeholder/components/Template2'
5
+
6
+ import argTypes from './argTypes'
7
+
8
+ const Story: ComponentMeta<typeof MwPlaceholderComponent> = {
9
+ id: 'MwTemplate2',
10
+ title: 'Components/Placeholder/type="template2"',
11
+ component: Template2,
12
+ argTypes: argTypes,
13
+ }
14
+
15
+ export const MwPlaceholder: ComponentStory<typeof MwPlaceholderComponent> = (
16
+ args,
17
+ ) => {
18
+ return <MwPlaceholderComponent {...args} />
19
+ }
20
+
21
+ MwPlaceholder.storyName = 'type="template2"'
22
+
23
+ export default Story
@@ -0,0 +1,22 @@
1
+ import { PlaceholderProps } from '../../../../components/Placeholder/interfaces'
2
+
3
+ import { ArgTypes } from '../../../interfaces'
4
+
5
+ const argTypes: ArgTypes<PlaceholderProps> = {
6
+ type: {
7
+ defaultValue: 'template2',
8
+ description: 'template type.',
9
+ table: {
10
+ defaultValue: { summary: 'template2' },
11
+ },
12
+ },
13
+ loading: {
14
+ defaultValue: true,
15
+ description: 'Verify is loading is running',
16
+ table: {
17
+ defaultValue: { summary: 'true' },
18
+ },
19
+ },
20
+ }
21
+
22
+ export default argTypes
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwPlaceholder as MwPlaceholderComponent } from '../../../..'
4
+ import Template3 from '../../../../components/Placeholder/components/Template3'
5
+
6
+ import argTypes from './argTypes'
7
+
8
+ const Story: ComponentMeta<typeof MwPlaceholderComponent> = {
9
+ id: 'MwTemplate3',
10
+ title: 'Components/Placeholder/type="template3"',
11
+ component: Template3,
12
+ argTypes: argTypes,
13
+ }
14
+
15
+ export const MwPlaceholder: ComponentStory<typeof MwPlaceholderComponent> = (
16
+ args,
17
+ ) => {
18
+ return <MwPlaceholderComponent {...args} />
19
+ }
20
+
21
+ MwPlaceholder.storyName = 'type="template3"'
22
+
23
+ export default Story
@@ -0,0 +1,22 @@
1
+ import { PlaceholderProps } from '../../../../components/Placeholder/interfaces'
2
+
3
+ import { ArgTypes } from '../../../interfaces'
4
+
5
+ const argTypes: ArgTypes<PlaceholderProps> = {
6
+ type: {
7
+ defaultValue: 'template3',
8
+ description: 'template type.',
9
+ table: {
10
+ defaultValue: { summary: 'template2' },
11
+ },
12
+ },
13
+ loading: {
14
+ defaultValue: true,
15
+ description: 'Verify is loading is running',
16
+ table: {
17
+ defaultValue: { summary: 'true' },
18
+ },
19
+ },
20
+ }
21
+
22
+ export default argTypes
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwPlaceholder as MwPlaceholderComponent } from '../../../..'
4
+ import Template4 from '../../../../components/Placeholder/components/Template4'
5
+
6
+ import argTypes from './argTypes'
7
+
8
+ const Story: ComponentMeta<typeof MwPlaceholderComponent> = {
9
+ id: 'MwTemplate4',
10
+ title: 'Components/Placeholder/type="template4"',
11
+ component: Template4,
12
+ argTypes: argTypes,
13
+ }
14
+
15
+ export const MwPlaceholder: ComponentStory<typeof MwPlaceholderComponent> = (
16
+ args,
17
+ ) => {
18
+ return <MwPlaceholderComponent {...args} />
19
+ }
20
+
21
+ MwPlaceholder.storyName = 'type="template4"'
22
+
23
+ export default Story
@@ -0,0 +1,22 @@
1
+ import { PlaceholderProps } from '../../../../components/Placeholder/interfaces'
2
+
3
+ import { ArgTypes } from '../../../interfaces'
4
+
5
+ const argTypes: ArgTypes<PlaceholderProps> = {
6
+ type: {
7
+ defaultValue: 'template4',
8
+ description: 'template type.',
9
+ table: {
10
+ defaultValue: { summary: 'template4' },
11
+ },
12
+ },
13
+ loading: {
14
+ defaultValue: true,
15
+ description: 'Verify is loading is running',
16
+ table: {
17
+ defaultValue: { summary: 'true' },
18
+ },
19
+ },
20
+ }
21
+
22
+ export default argTypes
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwPlaceholder as MwPlaceholderComponent } from '../../../..'
4
+ import Template5 from '../../../../components/Placeholder/components/Template5'
5
+
6
+ import argTypes from './argTypes'
7
+
8
+ const Story: ComponentMeta<typeof MwPlaceholderComponent> = {
9
+ id: 'MwTemplate5',
10
+ title: 'Components/Placeholder/type="template5"',
11
+ component: Template5,
12
+ argTypes: argTypes,
13
+ }
14
+
15
+ export const MwPlaceholder: ComponentStory<typeof MwPlaceholderComponent> = (
16
+ args,
17
+ ) => {
18
+ return <MwPlaceholderComponent {...args} />
19
+ }
20
+
21
+ MwPlaceholder.storyName = 'type="template5"'
22
+
23
+ export default Story
@@ -0,0 +1,22 @@
1
+ import { PlaceholderProps } from '../../../../components/Placeholder/interfaces'
2
+
3
+ import { ArgTypes } from '../../../interfaces'
4
+
5
+ const argTypes: ArgTypes<PlaceholderProps> = {
6
+ type: {
7
+ defaultValue: 'template5',
8
+ description: 'template type.',
9
+ table: {
10
+ defaultValue: { summary: 'template4' },
11
+ },
12
+ },
13
+ loading: {
14
+ defaultValue: true,
15
+ description: 'Verify is loading is running',
16
+ table: {
17
+ defaultValue: { summary: 'true' },
18
+ },
19
+ },
20
+ }
21
+
22
+ export default argTypes
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { MwPlaceholder as MwPlaceholderComponent } from '../../../..'
4
+ import Template6 from '../../../../components/Placeholder/components/Template6'
5
+
6
+ import argTypes from './argTypes'
7
+
8
+ const Story: ComponentMeta<typeof MwPlaceholderComponent> = {
9
+ id: 'MwTemplate6',
10
+ title: 'Components/Placeholder/type="template6"',
11
+ component: Template6,
12
+ argTypes: argTypes,
13
+ }
14
+
15
+ export const MwPlaceholder: ComponentStory<typeof MwPlaceholderComponent> = (
16
+ args,
17
+ ) => {
18
+ return <MwPlaceholderComponent {...args} />
19
+ }
20
+
21
+ MwPlaceholder.storyName = 'type="template6"'
22
+
23
+ export default Story