imbric-theme 0.1.0

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 (397) hide show
  1. package/.babelrc.json +3 -0
  2. package/.commitlintrc.json +3 -0
  3. package/.dockerignore +14 -0
  4. package/.editorconfig +13 -0
  5. package/.eslintignore +1 -0
  6. package/.eslintrc.json +36 -0
  7. package/.huskyrc.json +6 -0
  8. package/.lintstagedrc.json +5 -0
  9. package/.nvmrc +1 -0
  10. package/.prettierignore +1 -0
  11. package/.prettierrc.json +4 -0
  12. package/.releaserc.json +13 -0
  13. package/.storybook/main.js +13 -0
  14. package/.storybook/preview-head.html +2 -0
  15. package/.storybook/preview.js +53 -0
  16. package/.stylelintrc.json +14 -0
  17. package/.vscode/launch.json +15 -0
  18. package/.vscode/settings.json +3 -0
  19. package/CHANGELOG.md +0 -0
  20. package/Dockerfile +17 -0
  21. package/README.md +69 -0
  22. package/atoms/AlertModal/AlertModal.js +69 -0
  23. package/atoms/AlertModal/AlertModal.module.css +3 -0
  24. package/atoms/AlertModal/AlertModal.stories.js +30 -0
  25. package/atoms/AlertModal/constants.js +4 -0
  26. package/atoms/AlertModal/index.js +3 -0
  27. package/atoms/Avatar/Avatar.js +36 -0
  28. package/atoms/Avatar/Avatar.module.css +3 -0
  29. package/atoms/Avatar/Avatar.stories.js +29 -0
  30. package/atoms/Avatar/__snapshots__/Avatar.stories.js.snap +105 -0
  31. package/atoms/Avatar/constants.js +3 -0
  32. package/atoms/Avatar/helpers.js +7 -0
  33. package/atoms/Avatar/index.js +3 -0
  34. package/atoms/Button/Button.js +83 -0
  35. package/atoms/Button/Button.module.css +85 -0
  36. package/atoms/Button/Button.stories.js +47 -0
  37. package/atoms/Button/Button.test.js +60 -0
  38. package/atoms/Button/__snapshots__/Button.stories.js.snap +191 -0
  39. package/atoms/Button/constants.js +3 -0
  40. package/atoms/Button/index.js +3 -0
  41. package/atoms/Card/Card.js +48 -0
  42. package/atoms/Card/Card.module.css +52 -0
  43. package/atoms/Card/Card.stories.js +41 -0
  44. package/atoms/Card/__snapshots__/Card.stories.js.snap +136 -0
  45. package/atoms/Card/constants.js +4 -0
  46. package/atoms/Card/index.js +3 -0
  47. package/atoms/Check/Check.js +28 -0
  48. package/atoms/Check/Check.module.css +11 -0
  49. package/atoms/Check/Check.stories.js +15 -0
  50. package/atoms/Check/__snapshots__/Check.stories.js.snap +67 -0
  51. package/atoms/Check/index.js +2 -0
  52. package/atoms/Checkbox/Checkbox.js +77 -0
  53. package/atoms/Checkbox/Checkbox.module.css +60 -0
  54. package/atoms/Checkbox/Checkbox.stories.js +30 -0
  55. package/atoms/Checkbox/constants.js +1 -0
  56. package/atoms/Checkbox/index.js +3 -0
  57. package/atoms/Divider/Divider.js +22 -0
  58. package/atoms/Divider/Divider.module.css +25 -0
  59. package/atoms/Divider/Divider.stories.js +23 -0
  60. package/atoms/Divider/__snapshots__/Divider.stories.js.snap +22 -0
  61. package/atoms/Divider/constants.js +3 -0
  62. package/atoms/Divider/index.js +3 -0
  63. package/atoms/Heading/Heading.js +37 -0
  64. package/atoms/Heading/Heading.module.css +70 -0
  65. package/atoms/Heading/Heading.stories.js +46 -0
  66. package/atoms/Heading/__snapshots__/Heading.stories.js.snap +189 -0
  67. package/atoms/Heading/constants.js +5 -0
  68. package/atoms/Heading/index.js +3 -0
  69. package/atoms/Icon/Icon.js +66 -0
  70. package/atoms/Icon/Icon.module.css +142 -0
  71. package/atoms/Icon/Icon.stories.js +48 -0
  72. package/atoms/Icon/__snapshots__/Icon.stories.js.snap +1311 -0
  73. package/atoms/Icon/constants.js +1091 -0
  74. package/atoms/Icon/helpers.js +9 -0
  75. package/atoms/Icon/index.js +3 -0
  76. package/atoms/Input/Input.js +229 -0
  77. package/atoms/Input/Input.module.css +83 -0
  78. package/atoms/Input/Input.stories.js +38 -0
  79. package/atoms/Input/__snapshots__/Input.stories.js.snap +101 -0
  80. package/atoms/Input/constants.js +3 -0
  81. package/atoms/Input/index.js +3 -0
  82. package/atoms/Label/Label.js +31 -0
  83. package/atoms/Label/Label.module.css +42 -0
  84. package/atoms/Label/Label.stories.js +26 -0
  85. package/atoms/Label/constants.js +1 -0
  86. package/atoms/Label/index.js +3 -0
  87. package/atoms/LinkItem/LinkItem.js +38 -0
  88. package/atoms/LinkItem/LinkItem.module.css +19 -0
  89. package/atoms/LinkItem/LinkItem.stories.js +30 -0
  90. package/atoms/LinkItem/__snapshots__/Link.stories.js.snap +118 -0
  91. package/atoms/LinkItem/constants.js +5 -0
  92. package/atoms/LinkItem/index.js +3 -0
  93. package/atoms/Loading/Loading.js +30 -0
  94. package/atoms/Loading/Loading.module.css +51 -0
  95. package/atoms/Loading/Loading.stories.js +17 -0
  96. package/atoms/Loading/__snapshots__/Loading.stories.js.snap +26 -0
  97. package/atoms/Loading/index.js +2 -0
  98. package/atoms/Modal/Modal.js +121 -0
  99. package/atoms/Modal/Modal.module.css +142 -0
  100. package/atoms/Modal/Modal.stories.js +43 -0
  101. package/atoms/Modal/__snapshots__/Modal.stories.js.snap +239 -0
  102. package/atoms/Modal/constants.js +1 -0
  103. package/atoms/Modal/index.js +3 -0
  104. package/atoms/Paragraph/Paragraph.js +56 -0
  105. package/atoms/Paragraph/Paragraph.module.css +72 -0
  106. package/atoms/Paragraph/Paragraph.stories.js +52 -0
  107. package/atoms/Paragraph/__snapshots__/Paragraph.stories.js.snap +230 -0
  108. package/atoms/Paragraph/constants.js +5 -0
  109. package/atoms/Paragraph/index.js +3 -0
  110. package/atoms/Picture/Picture.js +47 -0
  111. package/atoms/Picture/Picture.module.css +16 -0
  112. package/atoms/Picture/Picture.stories.js +32 -0
  113. package/atoms/Picture/__snapshots__/Picture.stories.js.snap +156 -0
  114. package/atoms/Picture/index.js +2 -0
  115. package/atoms/Tab/Tab.js +41 -0
  116. package/atoms/Tab/Tab.module.css +17 -0
  117. package/atoms/Tab/Tab.stories.js +27 -0
  118. package/atoms/Tab/constants.js +1 -0
  119. package/atoms/Tab/index.js +3 -0
  120. package/atoms/Textarea/Textarea.js +137 -0
  121. package/atoms/Textarea/Textarea.module.css +54 -0
  122. package/atoms/Textarea/Textarea.stories.js +16 -0
  123. package/atoms/Textarea/__snapshots__/Textarea.stories.js.snap +25 -0
  124. package/atoms/Textarea/index.js +2 -0
  125. package/atoms/Toggle/Toggle.js +56 -0
  126. package/atoms/Toggle/Toggle.module.css +41 -0
  127. package/atoms/Toggle/Toggle.stories.js +21 -0
  128. package/atoms/Toggle/constants.js +1 -0
  129. package/atoms/Toggle/index.js +3 -0
  130. package/codecov.yml +2 -0
  131. package/helpers/storybook.js +29 -0
  132. package/helpers/storybook.test.js +40 -0
  133. package/helpers/styles.js +37 -0
  134. package/helpers/styles.test.js +222 -0
  135. package/hocs/withStyles.js +17 -0
  136. package/hook/useAddColumn.js +40 -0
  137. package/hook/useMedia.js +22 -0
  138. package/hook/useStateDate.js +25 -0
  139. package/hook/useTable.js +54 -0
  140. package/index.js +71 -0
  141. package/jest.config.js +23 -0
  142. package/jest.setup.js +13 -0
  143. package/layout/CenteredContent/CenteredContent.js +30 -0
  144. package/layout/CenteredContent/CenteredContent.module.css +12 -0
  145. package/layout/CenteredContent/CenteredContent.stories.js +22 -0
  146. package/layout/CenteredContent/__snapshots__/CenteredContent.stories.js.snap +27 -0
  147. package/layout/CenteredContent/index.js +2 -0
  148. package/layout/Container/Container.js +29 -0
  149. package/layout/Container/Container.module.css +14 -0
  150. package/layout/Container/Container.stories.js +22 -0
  151. package/layout/Container/__snapshots__/Container.stories.js.snap +27 -0
  152. package/layout/Container/index.js +2 -0
  153. package/layout/DynamicTable/DynamicTable.js +372 -0
  154. package/layout/DynamicTable/DynamicTable.module.css +76 -0
  155. package/layout/DynamicTable/DynamicTable.stories.js +79 -0
  156. package/layout/DynamicTable/constants.js +323 -0
  157. package/layout/DynamicTable/index.js +3 -0
  158. package/layout/FlexColumnContent/FlexColumnContent.js +26 -0
  159. package/layout/FlexColumnContent/FlexColumnContent.module.css +5 -0
  160. package/layout/FlexColumnContent/FlexColumnContent.stories.js +28 -0
  161. package/layout/FlexColumnContent/constants.js +1 -0
  162. package/layout/FlexColumnContent/index.js +3 -0
  163. package/layout/FullHeightContent/FullHeightContent.js +40 -0
  164. package/layout/FullHeightContent/FullHeightContent.module.css +21 -0
  165. package/layout/FullHeightContent/FullHeightContent.stories.js +22 -0
  166. package/layout/FullHeightContent/__snapshots__/FullHeightContent.stories.js.snap +41 -0
  167. package/layout/FullHeightContent/index.js +2 -0
  168. package/layout/Navbar/Navbar.js +247 -0
  169. package/layout/Navbar/Navbar.module.css +35 -0
  170. package/layout/Navbar/Navbar.stories.js +20 -0
  171. package/layout/Navbar/constants.js +35 -0
  172. package/layout/Navbar/index.js +2 -0
  173. package/layout/Sidebar/Sidebar.js +115 -0
  174. package/layout/Sidebar/Sidebar.module.css +387 -0
  175. package/layout/Sidebar/Sidebar.stories.js +28 -0
  176. package/layout/Sidebar/constants.js +228 -0
  177. package/layout/Sidebar/index.js +3 -0
  178. package/layout/Spacer/Spacer.js +40 -0
  179. package/layout/Spacer/Spacer.module.css +12 -0
  180. package/layout/Spacer/Spacer.stories.js +25 -0
  181. package/layout/Spacer/__snapshots__/Spacer.stories.js.snap +97 -0
  182. package/layout/Spacer/components/Horizontal/Horizontal.js +43 -0
  183. package/layout/Spacer/components/Horizontal/Horizontal.stories.js +32 -0
  184. package/layout/Spacer/components/Horizontal/__snapshots__/Horizontal.stories.js.snap +97 -0
  185. package/layout/Spacer/components/Horizontal/index.js +1 -0
  186. package/layout/Spacer/components/Vertical/Vertical.js +31 -0
  187. package/layout/Spacer/components/Vertical/Vertical.stories.js +25 -0
  188. package/layout/Spacer/components/Vertical/__snapshots__/Vertical.stories.js.snap +85 -0
  189. package/layout/Spacer/components/Vertical/index.js +1 -0
  190. package/layout/Spacer/components/index.js +2 -0
  191. package/layout/Spacer/constants.js +5 -0
  192. package/layout/Spacer/helpers.js +3 -0
  193. package/layout/Spacer/index.js +3 -0
  194. package/molecules/Accordion/Accordion.js +70 -0
  195. package/molecules/Accordion/Accordion.module.css +12 -0
  196. package/molecules/Accordion/Accordion.stories.js +31 -0
  197. package/molecules/Accordion/__snapshots__/Accordion.stories.js.snap +228 -0
  198. package/molecules/Accordion/index.js +2 -0
  199. package/molecules/AddButton/AddButton.js +137 -0
  200. package/molecules/AddButton/AddButton.module.css +128 -0
  201. package/molecules/AddButton/AddButton.stories.js +47 -0
  202. package/molecules/AddButton/__snapshots__/AddButton.stories.js.snap +326 -0
  203. package/molecules/AddButton/constants.js +6 -0
  204. package/molecules/AddButton/handlers.js +58 -0
  205. package/molecules/AddButton/handlers.test.js +19 -0
  206. package/molecules/AddButton/helpers.js +6 -0
  207. package/molecules/AddButton/helpers.test.js +41 -0
  208. package/molecules/AddButton/hooks.js +14 -0
  209. package/molecules/AddButton/index.js +3 -0
  210. package/molecules/ButtonIcon/ButtonIcon.js +41 -0
  211. package/molecules/ButtonIcon/ButtonIcon.stories.js +27 -0
  212. package/molecules/ButtonIcon/__snapshots__/ButtonIcon.stories.js.snap +178 -0
  213. package/molecules/ButtonIcon/constants.js +6 -0
  214. package/molecules/ButtonIcon/index.js +2 -0
  215. package/molecules/CardDefault/CardDefault.js +65 -0
  216. package/molecules/CardDefault/CardDefault.module.css +19 -0
  217. package/molecules/CardDefault/CardDefault.stories.js +23 -0
  218. package/molecules/CardDefault/constants.js +1 -0
  219. package/molecules/CardDefault/index.js +3 -0
  220. package/molecules/CardProductTypesBooking/CardProductTypesBooking.js +89 -0
  221. package/molecules/CardProductTypesBooking/CardProductTypesBooking.module.css +118 -0
  222. package/molecules/CardProductTypesBooking/CardProductTypesBooking.stories.js +25 -0
  223. package/molecules/CardProductTypesBooking/constants.js +1 -0
  224. package/molecules/CardProductTypesBooking/index.js +3 -0
  225. package/molecules/CardServiceDetail/CardServiceDetail.js +400 -0
  226. package/molecules/CardServiceDetail/CardServiceDetail.module.css +222 -0
  227. package/molecules/CardServiceDetail/CardServiceDetail.stories.js +23 -0
  228. package/molecules/CardServiceDetail/constants.js +1 -0
  229. package/molecules/CardServiceDetail/index.js +3 -0
  230. package/molecules/CardServices/CardServices.js +461 -0
  231. package/molecules/CardServices/CardServices.module.css +213 -0
  232. package/molecules/CardServices/CardServices.stories.js +41 -0
  233. package/molecules/CardServices/constants.js +5 -0
  234. package/molecules/CardServices/index.js +3 -0
  235. package/molecules/CardServicesFinalized/CardServicesFinalized.js +381 -0
  236. package/molecules/CardServicesFinalized/CardServicesFinalized.module.css +213 -0
  237. package/molecules/CardServicesFinalized/CardServicesFinalized.stories.js +23 -0
  238. package/molecules/CardServicesFinalized/constants.js +1 -0
  239. package/molecules/CardServicesFinalized/index.js +3 -0
  240. package/molecules/CheckList/CheckList.js +135 -0
  241. package/molecules/CheckList/CheckList.module.css +94 -0
  242. package/molecules/CheckList/CheckList.stories.js +25 -0
  243. package/molecules/CheckList/constants.js +23 -0
  244. package/molecules/CheckList/index.js +3 -0
  245. package/molecules/ColumnTable/ColumnTable.js +154 -0
  246. package/molecules/ColumnTable/ColumnTable.module.css +51 -0
  247. package/molecules/ColumnTable/ColumnTable.stories.js +26 -0
  248. package/molecules/ColumnTable/constants.js +117 -0
  249. package/molecules/ColumnTable/index.js +3 -0
  250. package/molecules/DatePicker/DatePicker.js +242 -0
  251. package/molecules/DatePicker/DatePicker.module.css +38 -0
  252. package/molecules/DatePicker/DatePicker.stories.js +23 -0
  253. package/molecules/DatePicker/constants.js +3 -0
  254. package/molecules/DatePicker/index.js +3 -0
  255. package/molecules/DatePickerTime/DatePickerTime.js +133 -0
  256. package/molecules/DatePickerTime/DatePickerTime.module.css +3 -0
  257. package/molecules/DatePickerTime/DatePickerTime.stories.js +18 -0
  258. package/molecules/DatePickerTime/constants.js +1 -0
  259. package/molecules/DatePickerTime/index.js +3 -0
  260. package/molecules/Dropdown/Dropdown.js +62 -0
  261. package/molecules/Dropdown/Dropdown.module.css +52 -0
  262. package/molecules/Dropdown/Dropdown.stories.js +41 -0
  263. package/molecules/Dropdown/__snapshots__/Dropdown.stories.js.snap +181 -0
  264. package/molecules/Dropdown/index.js +2 -0
  265. package/molecules/DynamicSelect/DynamicSelect.js +186 -0
  266. package/molecules/DynamicSelect/DynamicSelect.module.css +10 -0
  267. package/molecules/DynamicSelect/DynamicSelect.stories.js +32 -0
  268. package/molecules/DynamicSelect/constants.js +7 -0
  269. package/molecules/DynamicSelect/index.js +3 -0
  270. package/molecules/Error/Error.js +35 -0
  271. package/molecules/Error/Error.module.css +12 -0
  272. package/molecules/Error/Error.stories.js +18 -0
  273. package/molecules/Error/__snapshots__/Error.stories.js.snap +134 -0
  274. package/molecules/Error/index.js +2 -0
  275. package/molecules/FooterTable/FooterTable.js +166 -0
  276. package/molecules/FooterTable/FooterTable.module.css +63 -0
  277. package/molecules/FooterTable/FooterTable.stories.js +23 -0
  278. package/molecules/FooterTable/constants.js +9 -0
  279. package/molecules/FooterTable/index.js +3 -0
  280. package/molecules/IconLabel/IconLabel.js +83 -0
  281. package/molecules/IconLabel/IconLabel.module.css +16 -0
  282. package/molecules/IconLabel/IconLabel.stories.js +25 -0
  283. package/molecules/IconLabel/__snapshots__/IconLabel.stories.js.snap +211 -0
  284. package/molecules/IconLabel/constants.js +6 -0
  285. package/molecules/IconLabel/index.js +3 -0
  286. package/molecules/InputAutocomplete/InputAutocomplete.js +221 -0
  287. package/molecules/InputAutocomplete/InputAutocomplete.module.css +55 -0
  288. package/molecules/InputAutocomplete/InputAutocomplete.stories.js +23 -0
  289. package/molecules/InputAutocomplete/constants.js +1 -0
  290. package/molecules/InputAutocomplete/index.js +3 -0
  291. package/molecules/ItemMenu/ItemMenu.js +134 -0
  292. package/molecules/ItemMenu/ItemMenu.module.css +363 -0
  293. package/molecules/ItemMenu/ItemMenu.stories.js +42 -0
  294. package/molecules/ItemMenu/constants.js +36 -0
  295. package/molecules/ItemMenu/index.js +3 -0
  296. package/molecules/LoadingError/LoadingError.js +31 -0
  297. package/molecules/LoadingError/LoadingError.stories.js +24 -0
  298. package/molecules/LoadingError/__snapshots__/LoadingError.stories.js.snap +109 -0
  299. package/molecules/LoadingError/index.js +1 -0
  300. package/molecules/RowTable/RowTable.js +928 -0
  301. package/molecules/RowTable/RowTable.module.css +63 -0
  302. package/molecules/RowTable/RowTable.stories.js +26 -0
  303. package/molecules/RowTable/constants.js +798 -0
  304. package/molecules/RowTable/index.js +3 -0
  305. package/molecules/Score/Score.js +61 -0
  306. package/molecules/Score/Score.module.css +11 -0
  307. package/molecules/Score/Score.stories.js +13 -0
  308. package/molecules/Score/__snapshots__/Score.stories.js.snap +100 -0
  309. package/molecules/Score/faces/happy.svg +7 -0
  310. package/molecules/Score/faces/normal.svg +6 -0
  311. package/molecules/Score/faces/sad.svg +6 -0
  312. package/molecules/Score/index.js +2 -0
  313. package/molecules/Tabs/Tabs.js +59 -0
  314. package/molecules/Tabs/Tabs.module.css +13 -0
  315. package/molecules/Tabs/Tabs.stories.js +34 -0
  316. package/molecules/Tabs/constants.js +34 -0
  317. package/molecules/Tabs/index.js +3 -0
  318. package/molecules/Task/Task.js +114 -0
  319. package/molecules/Task/Task.module.css +47 -0
  320. package/molecules/Task/Task.stories.js +47 -0
  321. package/molecules/Task/__snapshots__/Task.stories.js.snap +953 -0
  322. package/molecules/Task/constants.js +1 -0
  323. package/molecules/Task/index.js +3 -0
  324. package/molecules/TaskCounter/TaskCounter.js +74 -0
  325. package/molecules/TaskCounter/TaskCounter.module.css +11 -0
  326. package/molecules/TaskCounter/TaskCounter.stories.js +26 -0
  327. package/molecules/TaskCounter/__snapshots__/TaskCounter.stories.js.snap +177 -0
  328. package/molecules/TaskCounter/index.js +2 -0
  329. package/package.json +119 -0
  330. package/pages/Login/Login.js +102 -0
  331. package/pages/Login/Login.module.css +5 -0
  332. package/pages/Login/Login.stories.js +23 -0
  333. package/pages/Login/constants.js +1 -0
  334. package/pages/Login/index.js +3 -0
  335. package/pages/Login/validation/loginSchema.js +5 -0
  336. package/public/favicon.ico +0 -0
  337. package/public/static/google-maps.png +0 -0
  338. package/public/static/images/folders-folder.svg +26 -0
  339. package/public/static/images/permissions.svg +14 -0
  340. package/public/static/images/reports-results.svg +18 -0
  341. package/public/static/logo.svg +19 -0
  342. package/public/static/logologin.png +0 -0
  343. package/public/static/logologin.svg +16 -0
  344. package/public/static/logologintagos.svg +19 -0
  345. package/public/static/logotipo.svg +50 -0
  346. package/public/static/logotipoS.svg +26 -0
  347. package/public/static/taxisvalencia_logod.png +0 -0
  348. package/scripts/build-tokens.js +40 -0
  349. package/scripts/create-component.js +128 -0
  350. package/storybook.test.js +13 -0
  351. package/styles/GrupoMutua.css +391 -0
  352. package/styles/default.css +391 -0
  353. package/styles/globals.css +1524 -0
  354. package/styles/radiotaxiaragon.css +391 -0
  355. package/styles/spartan.css +391 -0
  356. package/styles/tagos.css +391 -0
  357. package/styles/taxisvalencia.css +391 -0
  358. package/styles/tokens.css +391 -0
  359. package/templates/component/Component.js +22 -0
  360. package/templates/component/Component.module.css +3 -0
  361. package/templates/component/Component.stories.js +23 -0
  362. package/templates/component/constants.js +1 -0
  363. package/templates/component/index.js +3 -0
  364. package/tokens/Token/Helper.js +30 -0
  365. package/tokens/Token/Token.js +13 -0
  366. package/tokens/Token/Token.module.css +64 -0
  367. package/tokens/Token/components/Color.js +21 -0
  368. package/tokens/Token/components/Color.stories.js +126 -0
  369. package/tokens/Token/components/FontFamily.js +24 -0
  370. package/tokens/Token/components/FontFamily.stories.js +32 -0
  371. package/tokens/Token/components/FontSize.js +24 -0
  372. package/tokens/Token/components/FontSize.stories.js +31 -0
  373. package/tokens/Token/components/FontWeight.js +24 -0
  374. package/tokens/Token/components/FontWeight.stories.js +31 -0
  375. package/tokens/Token/components/Spacing.js +24 -0
  376. package/tokens/Token/components/Spacing.stories.js +29 -0
  377. package/tokens/Token/components/__snapshots__/Color.stories.js.snap +7169 -0
  378. package/tokens/Token/components/__snapshots__/FontFamily.stories.js.snap +133 -0
  379. package/tokens/Token/components/__snapshots__/FontSize.stories.js.snap +261 -0
  380. package/tokens/Token/components/__snapshots__/FontWeight.stories.js.snap +317 -0
  381. package/tokens/Token/components/__snapshots__/Spacing.stories.js.snap +229 -0
  382. package/tokens/Token/components/index.js +5 -0
  383. package/tokens/Token/helpers.js +17 -0
  384. package/tokens/Token/index.js +1 -0
  385. package/tokens/index.js +472 -0
  386. package/utils/isEmpty.js +28 -0
  387. package/utils/isEmpty.test.js +125 -0
  388. package/utils/isObject.js +4 -0
  389. package/utils/keyboardCodes.js +6 -0
  390. package/utils/testUtils/matchMediaMock.js +14 -0
  391. package/utils/testUtils/svgrMock.js +2 -0
  392. package/utils/toCapitalize.js +4 -0
  393. package/utils/toKebabCase.js +8 -0
  394. package/utils/toPascalCase.js +20 -0
  395. package/webpack/cssModules.js +30 -0
  396. package/webpack/loadConfigs.js +6 -0
  397. package/webpack/reactInlineSvg.js +22 -0
@@ -0,0 +1,136 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Storyshots Atoms/Card Clickable 1`] = `
4
+ <div
5
+ style={
6
+ Object {
7
+ "alignContent": "flex-start",
8
+ "display": "flex",
9
+ "flexDirection": "column",
10
+ "flexWrap": "wrap",
11
+ "gap": "10px 30px",
12
+ "height": "100%",
13
+ "justifyContent": "flex-start",
14
+ "maxHeight": "auto",
15
+ }
16
+ }
17
+ >
18
+ <div
19
+ className="card color-base size-sm is-clickable"
20
+ >
21
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
22
+ </div>
23
+ </div>
24
+ `;
25
+
26
+ exports[`Storyshots Atoms/Card Colors 1`] = `
27
+ <div
28
+ style={
29
+ Object {
30
+ "alignContent": "flex-start",
31
+ "display": "flex",
32
+ "flexDirection": "column",
33
+ "flexWrap": "wrap",
34
+ "gap": "10px 30px",
35
+ "height": "100%",
36
+ "justifyContent": "flex-start",
37
+ "maxHeight": "auto",
38
+ }
39
+ }
40
+ >
41
+ <div
42
+ className="card color-base size-sm"
43
+ >
44
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
45
+ </div>
46
+ <div
47
+ className="card color-primary size-sm"
48
+ >
49
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
50
+ </div>
51
+ <div
52
+ className="card color-secondary size-sm"
53
+ >
54
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
55
+ </div>
56
+ </div>
57
+ `;
58
+
59
+ exports[`Storyshots Atoms/Card Default 1`] = `
60
+ <div
61
+ style={
62
+ Object {
63
+ "alignContent": "flex-start",
64
+ "display": "flex",
65
+ "flexDirection": "column",
66
+ "flexWrap": "wrap",
67
+ "gap": "10px 30px",
68
+ "height": "100%",
69
+ "justifyContent": "flex-start",
70
+ "maxHeight": "auto",
71
+ }
72
+ }
73
+ >
74
+ <div
75
+ className="card color-base size-sm"
76
+ >
77
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
78
+ </div>
79
+ </div>
80
+ `;
81
+
82
+ exports[`Storyshots Atoms/Card Dragabble 1`] = `
83
+ <div
84
+ style={
85
+ Object {
86
+ "alignContent": "flex-start",
87
+ "display": "flex",
88
+ "flexDirection": "column",
89
+ "flexWrap": "wrap",
90
+ "gap": "10px 30px",
91
+ "height": "100%",
92
+ "justifyContent": "flex-start",
93
+ "maxHeight": "auto",
94
+ }
95
+ }
96
+ >
97
+ <div
98
+ className="card color-base size-sm is-draggable"
99
+ >
100
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
101
+ </div>
102
+ </div>
103
+ `;
104
+
105
+ exports[`Storyshots Atoms/Card Sizes 1`] = `
106
+ <div
107
+ style={
108
+ Object {
109
+ "alignContent": "flex-start",
110
+ "display": "flex",
111
+ "flexDirection": "column",
112
+ "flexWrap": "wrap",
113
+ "gap": "10px 30px",
114
+ "height": "100%",
115
+ "justifyContent": "flex-start",
116
+ "maxHeight": "auto",
117
+ }
118
+ }
119
+ >
120
+ <div
121
+ className="card color-base size-sm"
122
+ >
123
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
124
+ </div>
125
+ <div
126
+ className="card color-base size-md"
127
+ >
128
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
129
+ </div>
130
+ <div
131
+ className="card color-base size-lg"
132
+ >
133
+ Lacerations coaster sort comings windlance happily EIf-witch handful unbefitting? Decide rising startled Aragorn invitations midnight deserves fortunes innards. You cannot hide. I see you. There is no life in the void. Only death. Mirror Emyn dreamed!
134
+ </div>
135
+ </div>
136
+ `;
@@ -0,0 +1,4 @@
1
+ export const options = {
2
+ colors: ['base', 'primary', 'secondary'],
3
+ sizes: ['sm', 'md', 'lg'],
4
+ }
@@ -0,0 +1,3 @@
1
+ export { default, Card } from './Card'
2
+ export { options } from './constants'
3
+ export { default as styles } from './Card.module.css'
@@ -0,0 +1,28 @@
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+
4
+ import Icon from '../Icon'
5
+
6
+ import styles from './Check.module.css'
7
+ import withStyles from '../../hocs/withStyles'
8
+
9
+ export const Check = ({ isChecked, getStyles, onClickChecked }) => {
10
+ return isChecked ? (
11
+ <Icon name="checkCircle" color="muted" isClickable onClick={onClickChecked} />
12
+ ) : (
13
+ <span onClick={onClickChecked} className={getStyles('check')} />
14
+ )
15
+ }
16
+
17
+ Check.propTypes = {
18
+ getStyles: PropTypes.func.isRequired,
19
+ isChecked: PropTypes.bool,
20
+ onClickChecked: PropTypes.func,
21
+ }
22
+
23
+ Check.defaultProps = {
24
+ getStyles: () => { },
25
+ onClickChecked: () => { },
26
+ }
27
+
28
+ export default withStyles(styles)(Check)
@@ -0,0 +1,11 @@
1
+ .check {
2
+ display: inline-flex;
3
+ width: 100%;
4
+ max-width: 17px;
5
+ height: 17px;
6
+ box-sizing: content-box;
7
+ border: var(--picture-border);
8
+ margin: 8px;
9
+ border-radius: var(--border-radius-full);
10
+ cursor: pointer;
11
+ }
@@ -0,0 +1,15 @@
1
+ import { Check, styles } from '.'
2
+
3
+ import { getTemplate } from '../../helpers/storybook'
4
+
5
+ const Template = getTemplate(Check, styles)
6
+
7
+ export default {
8
+ title: 'Atoms/Check',
9
+ component: Check,
10
+ }
11
+
12
+ export const Default = Template.bind({})
13
+
14
+ export const Checked = Template.bind({})
15
+ Checked.args = { isChecked: true }
@@ -0,0 +1,67 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Storyshots Atoms/Check Checked 1`] = `
4
+ <div
5
+ style={
6
+ Object {
7
+ "alignContent": "flex-start",
8
+ "display": "flex",
9
+ "flexDirection": "column",
10
+ "flexWrap": "wrap",
11
+ "gap": "10px 30px",
12
+ "height": "100%",
13
+ "justifyContent": "flex-start",
14
+ "maxHeight": "auto",
15
+ }
16
+ }
17
+ >
18
+ <div
19
+ className="icon color-muted size-md background-transparent is-clickable"
20
+ style={
21
+ Object {
22
+ "height": 35,
23
+ "width": 35,
24
+ }
25
+ }
26
+ >
27
+ <svg
28
+ height={35}
29
+ viewBox="5 1 20 20"
30
+ width={35}
31
+ xmlns="http://www.w3.org/2000/svg"
32
+ >
33
+ <path
34
+ clipRule="evenodd"
35
+ d="M14.93 20.86C9.45472 20.86 5 16.4053 5 10.93C5 5.45472 9.45472 1 14.93 1C20.4053 1 24.86 5.45472 24.86 10.93C24.86 16.4053 20.4053 20.86 14.93 20.86ZM14.93 2.09095C10.0559 2.09095 6.09095 6.05591 6.09095 10.93C6.09095 15.8041 10.0559 19.769 14.93 19.769C19.8041 19.769 23.769 15.8041 23.769 10.93C23.769 6.05591 19.8041 2.09095 14.93 2.09095Z"
36
+ fillRule="evenodd"
37
+ />
38
+ <path
39
+ clipRule="evenodd"
40
+ d="M13.744 15.221L8.67871 10.1423L9.45059 9.37155L13.7458 13.6773L20.41 7.01251L21.1807 7.78439L13.744 15.221Z"
41
+ fillRule="evenodd"
42
+ />
43
+ </svg>
44
+ </div>
45
+ </div>
46
+ `;
47
+
48
+ exports[`Storyshots Atoms/Check Default 1`] = `
49
+ <div
50
+ style={
51
+ Object {
52
+ "alignContent": "flex-start",
53
+ "display": "flex",
54
+ "flexDirection": "column",
55
+ "flexWrap": "wrap",
56
+ "gap": "10px 30px",
57
+ "height": "100%",
58
+ "justifyContent": "flex-start",
59
+ "maxHeight": "auto",
60
+ }
61
+ }
62
+ >
63
+ <span
64
+ className="check"
65
+ />
66
+ </div>
67
+ `;
@@ -0,0 +1,2 @@
1
+ export { default, Check } from './Check'
2
+ export { default as styles } from './Check.module.css'
@@ -0,0 +1,77 @@
1
+ import { useState } from 'react'
2
+ import PropTypes from 'prop-types'
3
+
4
+ import styles from './Checkbox.module.css'
5
+ import withStyles from '../../hocs/withStyles'
6
+
7
+ export const Checkbox = ({
8
+ getStyles,
9
+ onChange,
10
+ label,
11
+ id,
12
+ value,
13
+ name,
14
+ linkCheck,
15
+ nameLinkCheck,
16
+ handleClick,
17
+ disabled,
18
+ }) => {
19
+ const [checked, setChecked] = useState(value)
20
+
21
+ return (
22
+ <div className={getStyles('checkbox')}>
23
+ <input
24
+ className={getStyles('checkbox-custom', { 'is-disabled': disabled })}
25
+ type="checkbox"
26
+ id={id}
27
+ name={name}
28
+ label={label}
29
+ checked={checked}
30
+ onChange={(e) => {
31
+ setChecked(!checked)
32
+ onChange(e)
33
+ }}
34
+ onClick={handleClick}
35
+ disabled={disabled}
36
+ />
37
+ <label htmlFor={name} className={getStyles('checkbox-custom-label')}>
38
+ {label}
39
+ <a
40
+ className={getStyles('checkbox-custom-link')}
41
+ href={linkCheck}
42
+ target="_black"
43
+ >
44
+ {' '}
45
+ {nameLinkCheck}
46
+ </a>{' '}
47
+ </label>
48
+ </div>
49
+ )
50
+ }
51
+
52
+ Checkbox.propTypes = {
53
+ getStyles: PropTypes.func.isRequired,
54
+ onChange: PropTypes.func.isRequired,
55
+ id: PropTypes.string.isRequired,
56
+ name: PropTypes.string.isRequired,
57
+ value: PropTypes.bool.isRequired,
58
+ label: PropTypes.string,
59
+ nameLinkCheck: PropTypes.string,
60
+ linkCheck: PropTypes.string,
61
+ disabled: PropTypes.bool,
62
+ }
63
+
64
+ Checkbox.defaultProps = {
65
+ getStyles: () => { },
66
+ onChange: () => { },
67
+ id: 'checkbox',
68
+ name: 'checkbox',
69
+ value: true,
70
+ label: 'Aceptas los terminos',
71
+ nameLinkCheck: '',
72
+ linkCheck: '',
73
+ handleClick: () => { },
74
+ disabled: false,
75
+ }
76
+
77
+ export default withStyles(styles)(Checkbox)
@@ -0,0 +1,60 @@
1
+ .checkbox {
2
+ display: flex;
3
+ }
4
+
5
+ /* ////////////////////// */
6
+
7
+
8
+ .checkbox-custom {
9
+ opacity: 0;
10
+ position: absolute;
11
+ }
12
+
13
+ .checkbox-custom,
14
+ .checkbox-custom-label {
15
+ display: inline-block;
16
+ vertical-align: middle;
17
+ margin: 5px;
18
+ cursor: pointer;
19
+ color: var(--color-brand-regent-gray);
20
+ font-weight: var(--font-weight-light);
21
+ }
22
+
23
+ .checkbox-custom+.checkbox-custom-label:before {
24
+ content: '';
25
+ background: #fff;
26
+ border-radius: 5px;
27
+ border: 2px solid #ddd;
28
+ display: inline-block;
29
+ vertical-align: middle;
30
+ width: 10px;
31
+ height: 10px;
32
+ padding: 2px;
33
+ margin-right: 10px;
34
+ text-align: center;
35
+ }
36
+
37
+ .checkbox-custom:checked+.checkbox-custom-label:before {
38
+ content: "";
39
+ display: inline-block;
40
+ width: 1px;
41
+ height: 5px;
42
+ border: solid var(--color-brand-smalt);
43
+ border-width: 0 3px 3px 0;
44
+ transform: rotate(45deg);
45
+ -webkit-transform: rotate(45deg);
46
+ -ms-transform: rotate(45deg);
47
+ border-radius: 0px;
48
+ margin: 0px 15px 5px 5px;
49
+ }
50
+
51
+ .checkbox-custom,
52
+ .checkbox-custom-link {
53
+ font-weight: var(--font-weight-normal);
54
+ color: var(--color-primary);
55
+ text-decoration: underline;
56
+ }
57
+
58
+ .is-disabled {
59
+ cursor: no-drop;
60
+ }
@@ -0,0 +1,30 @@
1
+ import { Checkbox, styles, options } from '.'
2
+
3
+ import {
4
+ getTemplate,
5
+ getListTemplate,
6
+ getOptionsArgTypes,
7
+ } from '../../helpers/storybook'
8
+
9
+ const Template = getTemplate(Checkbox, styles)
10
+ const ListTemplate = getListTemplate(Checkbox, styles)
11
+
12
+ export default {
13
+ title: 'Atoms/Checkbox',
14
+ component: Checkbox,
15
+ args: {
16
+ id: 'hola',
17
+ name: 'hola',
18
+ value: true,
19
+ label: 'Hola',
20
+ nameLinkCheck: '',
21
+ linkCheck: '',
22
+ },
23
+ argTypes: {
24
+ // types: getOptionsArgTypes(options.types),
25
+ },
26
+ }
27
+
28
+ export const Default = Template.bind({})
29
+ // export const List = ListTemplate.bind({})
30
+ // List.args = { items: options.types.map((type) => ({ type })) }
@@ -0,0 +1 @@
1
+ export const options = { types: [] }
@@ -0,0 +1,3 @@
1
+ export { default, Checkbox } from './Checkbox'
2
+ export { options } from './constants'
3
+ export { default as styles } from './Checkbox.module.css'
@@ -0,0 +1,22 @@
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+
4
+ import styles from './Divider.module.css'
5
+ import { options } from './constants'
6
+ import withStyles from '../../hocs/withStyles'
7
+
8
+ export const Divider = ({ color, getStyles }) => {
9
+ return <div className={getStyles('divider', ['color'])} />
10
+ }
11
+
12
+ Divider.propTypes = {
13
+ getStyles: PropTypes.func.isRequired,
14
+ color: PropTypes.oneOf(options.colors),
15
+ }
16
+
17
+ Divider.defaultProps = {
18
+ getStyles: () => {},
19
+ color: 'primary',
20
+ }
21
+
22
+ export default withStyles(styles)(Divider)
@@ -0,0 +1,25 @@
1
+ .divider {
2
+ width: 100%;
3
+ height: 1px;
4
+ background: var(--color-font-base);
5
+ }
6
+
7
+ .color-primary {
8
+ background: var(--color-primary);
9
+ }
10
+
11
+ .color-secondary {
12
+ background: var(--color-secondary);
13
+ }
14
+
15
+ .color-tertiary {
16
+ background: var(--color-tertiary);
17
+ }
18
+
19
+ .color-highlight {
20
+ background: var(--color-primary-highlight);
21
+ }
22
+
23
+ .color-inverted {
24
+ background: var(--color-primary-inverted);
25
+ }
@@ -0,0 +1,23 @@
1
+ import { Divider, styles, options } from '.'
2
+
3
+ import {
4
+ getTemplate,
5
+ getListTemplate,
6
+ getOptionsArgTypes,
7
+ } from '../../helpers/storybook'
8
+
9
+ const Template = getTemplate(Divider, styles)
10
+ const ListTemplate = getListTemplate(Divider, styles)
11
+
12
+ export default {
13
+ title: 'Atoms/Divider',
14
+ component: Divider,
15
+ argTypes: {
16
+ color: getOptionsArgTypes(options.colors),
17
+ },
18
+ }
19
+
20
+ export const Default = Template.bind({})
21
+
22
+ export const Colors = ListTemplate.bind({})
23
+ Colors.args = { items: options.colors.map((color) => ({ color })) }
@@ -0,0 +1,22 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Storyshots Atoms/Divider Default 1`] = `
4
+ <div
5
+ style={
6
+ Object {
7
+ "alignContent": "flex-start",
8
+ "display": "flex",
9
+ "flexDirection": "column",
10
+ "flexWrap": "wrap",
11
+ "gap": "10px 30px",
12
+ "height": "100%",
13
+ "justifyContent": "flex-start",
14
+ "maxHeight": "auto",
15
+ }
16
+ }
17
+ >
18
+ <div
19
+ className="divider"
20
+ />
21
+ </div>
22
+ `;
@@ -0,0 +1,3 @@
1
+ export const options = {
2
+ colors: ['primary', 'secondary', 'tertiary', 'highlight', 'inverted'],
3
+ }
@@ -0,0 +1,3 @@
1
+ export { default, Divider } from './Divider'
2
+ export { options } from './constants'
3
+ export { default as styles } from './Divider.module.css'
@@ -0,0 +1,37 @@
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+
4
+ import styles from './Heading.module.css'
5
+ import { options } from './constants'
6
+ import withStyles from '../../hocs/withStyles'
7
+
8
+ export const Heading = ({ children, isCentered, isInline, getStyles }) => {
9
+ return (
10
+ <h1
11
+ className={getStyles('heading', ['color', 'size', 'weight'], {
12
+ 'is-centered': isCentered,
13
+ 'is-inline': isInline,
14
+ })}
15
+ >
16
+ {children}
17
+ </h1>
18
+ )
19
+ }
20
+
21
+ Heading.propTypes = {
22
+ children: PropTypes.any.isRequired,
23
+ getStyles: PropTypes.func.isRequired,
24
+ isInline: PropTypes.bool,
25
+ isCentered: PropTypes.bool,
26
+ color: PropTypes.oneOf(options.colors),
27
+ size: PropTypes.oneOf(options.sizes),
28
+ weight: PropTypes.oneOf(options.weights),
29
+ }
30
+
31
+ Heading.defaultProps = {
32
+ color: 'base',
33
+ size: 'md',
34
+ weight: 'bold',
35
+ }
36
+
37
+ export default withStyles(styles)(Heading)
@@ -0,0 +1,70 @@
1
+ .heading {
2
+ width: 100%;
3
+ font-family: var(--font-family-sans);
4
+ line-height: var(--line-height-tight);
5
+ }
6
+
7
+ .color-base {
8
+ color: var(--color-font-base);
9
+ }
10
+
11
+ .color-inverted {
12
+ color: var(--color-primary-inverted);
13
+ }
14
+
15
+ .color-primary {
16
+ color: var(--color-primary);
17
+ }
18
+
19
+ .color-tertiary {
20
+ color: var(--color-tertiary);
21
+ }
22
+
23
+ .color-black {
24
+ color: var(--color-base-black);
25
+ }
26
+
27
+ .size-xs {
28
+ font-size: var(--font-size-xs);
29
+ }
30
+
31
+ .size-sm {
32
+ font-size: var(--font-size-sm);
33
+ }
34
+
35
+ .size-md {
36
+ font-size: var(--font-size-md);
37
+ }
38
+
39
+ .size-lg {
40
+ font-size: var(--font-size-lg);
41
+ }
42
+
43
+ .size-xl {
44
+ font-size: var(--font-size-xl);
45
+ }
46
+
47
+ .size-2xl {
48
+ font-size: var(--font-size-2xl);
49
+ }
50
+
51
+ .weight-light {
52
+ font-weight: var(--font-weight-light);
53
+ }
54
+
55
+ .weight-normal {
56
+ font-weight: var(--font-weight-normal);
57
+ }
58
+
59
+ .weight-bold {
60
+ font-weight: var(--font-weight-bold);
61
+ }
62
+
63
+ .is-centered {
64
+ text-align: center;
65
+ }
66
+
67
+ .is-inline {
68
+ display: inline-block;
69
+ max-width: max-content;
70
+ }