@dxc-technology/halstack-react 0.0.0-b7324ab → 0.0.0-b7a7d72

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 (514) hide show
  1. package/BackgroundColorContext.d.ts +10 -0
  2. package/BackgroundColorContext.js +47 -0
  3. package/HalstackContext.d.ts +1356 -0
  4. package/HalstackContext.js +335 -0
  5. package/README.md +28 -47
  6. package/accordion/Accordion.d.ts +4 -0
  7. package/accordion/Accordion.js +222 -0
  8. package/accordion/Accordion.stories.tsx +296 -0
  9. package/accordion/Accordion.test.js +71 -0
  10. package/accordion/types.d.ts +57 -0
  11. package/accordion/types.js +5 -0
  12. package/accordion-group/AccordionGroup.d.ts +8 -0
  13. package/accordion-group/AccordionGroup.js +128 -0
  14. package/accordion-group/AccordionGroup.stories.tsx +252 -0
  15. package/accordion-group/AccordionGroup.test.js +116 -0
  16. package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
  17. package/accordion-group/AccordionGroupAccordion.js +43 -0
  18. package/accordion-group/types.d.ts +67 -0
  19. package/accordion-group/types.js +5 -0
  20. package/alert/Alert.d.ts +4 -0
  21. package/alert/Alert.js +289 -0
  22. package/alert/Alert.stories.tsx +198 -0
  23. package/alert/Alert.test.js +92 -0
  24. package/alert/types.d.ts +49 -0
  25. package/alert/types.js +5 -0
  26. package/badge/Badge.d.ts +4 -0
  27. package/badge/Badge.js +61 -0
  28. package/badge/types.d.ts +5 -0
  29. package/badge/types.js +5 -0
  30. package/bleed/Bleed.d.ts +3 -0
  31. package/bleed/Bleed.js +51 -0
  32. package/bleed/Bleed.stories.tsx +342 -0
  33. package/bleed/types.d.ts +37 -0
  34. package/bleed/types.js +5 -0
  35. package/box/Box.d.ts +4 -0
  36. package/box/Box.js +97 -0
  37. package/box/Box.stories.tsx +119 -0
  38. package/box/Box.test.js +18 -0
  39. package/box/types.d.ts +32 -0
  40. package/box/types.js +5 -0
  41. package/bulleted-list/BulletedList.d.ts +7 -0
  42. package/bulleted-list/BulletedList.js +125 -0
  43. package/bulleted-list/BulletedList.stories.tsx +206 -0
  44. package/bulleted-list/types.d.ts +38 -0
  45. package/bulleted-list/types.js +5 -0
  46. package/button/Button.d.ts +4 -0
  47. package/button/Button.js +144 -0
  48. package/button/Button.stories.tsx +425 -0
  49. package/button/Button.test.js +46 -0
  50. package/button/types.d.ts +57 -0
  51. package/button/types.js +5 -0
  52. package/card/Card.d.ts +4 -0
  53. package/card/Card.js +143 -0
  54. package/card/Card.stories.tsx +171 -0
  55. package/card/Card.test.js +50 -0
  56. package/card/types.d.ts +62 -0
  57. package/card/types.js +5 -0
  58. package/checkbox/Checkbox.d.ts +4 -0
  59. package/checkbox/Checkbox.js +269 -0
  60. package/checkbox/Checkbox.stories.tsx +276 -0
  61. package/checkbox/Checkbox.test.js +228 -0
  62. package/checkbox/types.d.ts +72 -0
  63. package/checkbox/types.js +5 -0
  64. package/chip/Chip.d.ts +4 -0
  65. package/chip/Chip.js +140 -0
  66. package/chip/Chip.stories.tsx +214 -0
  67. package/chip/Chip.test.js +54 -0
  68. package/chip/types.d.ts +45 -0
  69. package/chip/types.js +5 -0
  70. package/common/OpenSans.css +69 -0
  71. package/common/coreTokens.d.ts +146 -0
  72. package/common/coreTokens.js +167 -0
  73. package/common/utils.d.ts +1 -0
  74. package/common/utils.js +22 -0
  75. package/common/variables.d.ts +1499 -0
  76. package/common/variables.js +1378 -0
  77. package/date-input/Calendar.d.ts +4 -0
  78. package/date-input/Calendar.js +258 -0
  79. package/date-input/DateInput.d.ts +4 -0
  80. package/date-input/DateInput.js +271 -0
  81. package/date-input/DateInput.stories.tsx +314 -0
  82. package/date-input/DateInput.test.js +849 -0
  83. package/date-input/DatePicker.d.ts +4 -0
  84. package/date-input/DatePicker.js +146 -0
  85. package/date-input/Icons.d.ts +6 -0
  86. package/date-input/Icons.js +75 -0
  87. package/date-input/YearPicker.d.ts +4 -0
  88. package/date-input/YearPicker.js +126 -0
  89. package/date-input/types.d.ts +164 -0
  90. package/date-input/types.js +5 -0
  91. package/dialog/Dialog.d.ts +4 -0
  92. package/dialog/Dialog.js +131 -0
  93. package/dialog/Dialog.stories.tsx +195 -0
  94. package/dialog/Dialog.test.js +369 -0
  95. package/dialog/types.d.ts +36 -0
  96. package/dialog/types.js +5 -0
  97. package/dropdown/Dropdown.d.ts +4 -0
  98. package/dropdown/Dropdown.js +388 -0
  99. package/dropdown/Dropdown.stories.tsx +438 -0
  100. package/dropdown/Dropdown.test.js +586 -0
  101. package/dropdown/DropdownMenu.d.ts +4 -0
  102. package/dropdown/DropdownMenu.js +74 -0
  103. package/dropdown/DropdownMenuItem.d.ts +4 -0
  104. package/dropdown/DropdownMenuItem.js +79 -0
  105. package/dropdown/types.d.ts +100 -0
  106. package/dropdown/types.js +5 -0
  107. package/file-input/FileInput.d.ts +4 -0
  108. package/file-input/FileInput.js +547 -0
  109. package/file-input/FileInput.stories.tsx +618 -0
  110. package/file-input/FileInput.test.js +457 -0
  111. package/file-input/FileItem.d.ts +4 -0
  112. package/file-input/FileItem.js +162 -0
  113. package/file-input/types.d.ts +129 -0
  114. package/file-input/types.js +5 -0
  115. package/flex/Flex.d.ts +4 -0
  116. package/flex/Flex.js +71 -0
  117. package/flex/Flex.stories.tsx +112 -0
  118. package/flex/types.d.ts +97 -0
  119. package/flex/types.js +5 -0
  120. package/footer/Footer.d.ts +4 -0
  121. package/footer/Footer.js +165 -0
  122. package/footer/Footer.stories.tsx +152 -0
  123. package/footer/Footer.test.js +99 -0
  124. package/footer/Icons.d.ts +2 -0
  125. package/footer/Icons.js +77 -0
  126. package/footer/types.d.ts +64 -0
  127. package/footer/types.js +5 -0
  128. package/grid/Grid.d.ts +7 -0
  129. package/grid/Grid.js +91 -0
  130. package/grid/Grid.stories.tsx +219 -0
  131. package/grid/types.d.ts +115 -0
  132. package/grid/types.js +5 -0
  133. package/header/Header.d.ts +8 -0
  134. package/header/Header.js +276 -0
  135. package/header/Header.stories.tsx +251 -0
  136. package/header/Header.test.js +79 -0
  137. package/header/Icons.d.ts +2 -0
  138. package/header/Icons.js +34 -0
  139. package/header/types.d.ts +32 -0
  140. package/header/types.js +5 -0
  141. package/heading/Heading.d.ts +4 -0
  142. package/heading/Heading.js +159 -0
  143. package/heading/Heading.stories.tsx +54 -0
  144. package/heading/Heading.test.js +186 -0
  145. package/heading/types.d.ts +33 -0
  146. package/heading/types.js +5 -0
  147. package/image/Image.d.ts +4 -0
  148. package/image/Image.js +85 -0
  149. package/image/Image.stories.tsx +127 -0
  150. package/image/types.d.ts +72 -0
  151. package/image/types.js +5 -0
  152. package/inset/Inset.d.ts +3 -0
  153. package/inset/Inset.js +51 -0
  154. package/inset/Inset.stories.tsx +230 -0
  155. package/inset/types.d.ts +37 -0
  156. package/inset/types.js +5 -0
  157. package/layout/ApplicationLayout.d.ts +20 -0
  158. package/layout/ApplicationLayout.js +174 -0
  159. package/layout/ApplicationLayout.stories.tsx +162 -0
  160. package/layout/Icons.d.ts +8 -0
  161. package/layout/Icons.js +62 -0
  162. package/layout/SidenavContext.d.ts +5 -0
  163. package/layout/SidenavContext.js +19 -0
  164. package/layout/types.d.ts +41 -0
  165. package/layout/types.js +5 -0
  166. package/link/Link.d.ts +4 -0
  167. package/link/Link.js +136 -0
  168. package/link/Link.stories.tsx +253 -0
  169. package/link/Link.test.js +81 -0
  170. package/link/types.d.ts +54 -0
  171. package/link/types.js +5 -0
  172. package/main.d.ts +46 -0
  173. package/main.js +385 -0
  174. package/nav-tabs/NavTabs.d.ts +8 -0
  175. package/nav-tabs/NavTabs.js +122 -0
  176. package/nav-tabs/NavTabs.stories.tsx +274 -0
  177. package/nav-tabs/NavTabs.test.js +82 -0
  178. package/nav-tabs/Tab.d.ts +4 -0
  179. package/nav-tabs/Tab.js +146 -0
  180. package/nav-tabs/types.d.ts +52 -0
  181. package/nav-tabs/types.js +5 -0
  182. package/number-input/NumberInput.d.ts +11 -0
  183. package/number-input/NumberInput.js +80 -0
  184. package/number-input/NumberInput.stories.tsx +160 -0
  185. package/number-input/NumberInput.test.js +768 -0
  186. package/number-input/types.d.ts +130 -0
  187. package/number-input/types.js +5 -0
  188. package/package.json +50 -36
  189. package/paginator/Icons.d.ts +5 -0
  190. package/paginator/Icons.js +54 -0
  191. package/paginator/Paginator.d.ts +4 -0
  192. package/paginator/Paginator.js +163 -0
  193. package/paginator/Paginator.stories.tsx +87 -0
  194. package/paginator/Paginator.test.js +318 -0
  195. package/paginator/types.d.ts +38 -0
  196. package/paginator/types.js +5 -0
  197. package/paragraph/Paragraph.d.ts +5 -0
  198. package/paragraph/Paragraph.js +38 -0
  199. package/paragraph/Paragraph.stories.tsx +44 -0
  200. package/password-input/Icons.d.ts +6 -0
  201. package/password-input/Icons.js +39 -0
  202. package/password-input/PasswordInput.d.ts +4 -0
  203. package/password-input/PasswordInput.js +119 -0
  204. package/password-input/PasswordInput.stories.tsx +132 -0
  205. package/password-input/PasswordInput.test.js +174 -0
  206. package/password-input/types.d.ts +111 -0
  207. package/password-input/types.js +5 -0
  208. package/progress-bar/ProgressBar.d.ts +4 -0
  209. package/progress-bar/ProgressBar.js +176 -0
  210. package/progress-bar/ProgressBar.stories.jsx +93 -0
  211. package/progress-bar/ProgressBar.test.js +110 -0
  212. package/progress-bar/types.d.ts +37 -0
  213. package/progress-bar/types.js +5 -0
  214. package/quick-nav/QuickNav.d.ts +4 -0
  215. package/quick-nav/QuickNav.js +117 -0
  216. package/quick-nav/QuickNav.stories.tsx +356 -0
  217. package/quick-nav/types.d.ts +21 -0
  218. package/quick-nav/types.js +5 -0
  219. package/radio-group/Radio.d.ts +4 -0
  220. package/radio-group/Radio.js +156 -0
  221. package/radio-group/RadioGroup.d.ts +4 -0
  222. package/radio-group/RadioGroup.js +281 -0
  223. package/radio-group/RadioGroup.stories.tsx +214 -0
  224. package/radio-group/RadioGroup.test.js +749 -0
  225. package/radio-group/types.d.ts +114 -0
  226. package/radio-group/types.js +5 -0
  227. package/resultset-table/Icons.d.ts +7 -0
  228. package/resultset-table/Icons.js +51 -0
  229. package/resultset-table/ResultsetTable.d.ts +4 -0
  230. package/resultset-table/ResultsetTable.js +195 -0
  231. package/resultset-table/ResultsetTable.stories.tsx +300 -0
  232. package/resultset-table/ResultsetTable.test.js +325 -0
  233. package/resultset-table/types.d.ts +67 -0
  234. package/resultset-table/types.js +5 -0
  235. package/select/Icons.d.ts +10 -0
  236. package/select/Icons.js +93 -0
  237. package/select/Listbox.d.ts +4 -0
  238. package/select/Listbox.js +169 -0
  239. package/select/Option.d.ts +4 -0
  240. package/select/Option.js +97 -0
  241. package/select/Select.d.ts +4 -0
  242. package/select/Select.js +666 -0
  243. package/select/Select.stories.tsx +971 -0
  244. package/select/Select.test.js +2228 -0
  245. package/select/types.d.ts +209 -0
  246. package/select/types.js +5 -0
  247. package/sidenav/Icons.d.ts +7 -0
  248. package/sidenav/Icons.js +51 -0
  249. package/sidenav/Sidenav.d.ts +10 -0
  250. package/sidenav/Sidenav.js +238 -0
  251. package/sidenav/Sidenav.stories.tsx +282 -0
  252. package/sidenav/Sidenav.test.js +44 -0
  253. package/sidenav/types.d.ts +76 -0
  254. package/sidenav/types.js +5 -0
  255. package/slider/Slider.d.ts +4 -0
  256. package/slider/Slider.js +342 -0
  257. package/slider/Slider.stories.tsx +240 -0
  258. package/slider/Slider.test.js +250 -0
  259. package/slider/types.d.ts +86 -0
  260. package/slider/types.js +5 -0
  261. package/spinner/Spinner.d.ts +4 -0
  262. package/spinner/Spinner.js +244 -0
  263. package/spinner/Spinner.stories.jsx +129 -0
  264. package/spinner/Spinner.test.js +64 -0
  265. package/spinner/types.d.ts +32 -0
  266. package/spinner/types.js +5 -0
  267. package/switch/Switch.d.ts +4 -0
  268. package/switch/Switch.js +262 -0
  269. package/switch/Switch.stories.tsx +171 -0
  270. package/switch/Switch.test.js +225 -0
  271. package/switch/types.d.ts +66 -0
  272. package/switch/types.js +5 -0
  273. package/table/Table.d.ts +4 -0
  274. package/table/Table.js +118 -0
  275. package/table/Table.stories.jsx +356 -0
  276. package/table/Table.test.js +26 -0
  277. package/table/types.d.ts +21 -0
  278. package/table/types.js +5 -0
  279. package/tabs/Tab.d.ts +4 -0
  280. package/tabs/Tab.js +132 -0
  281. package/tabs/Tabs.d.ts +4 -0
  282. package/tabs/Tabs.js +461 -0
  283. package/tabs/Tabs.stories.tsx +226 -0
  284. package/tabs/Tabs.test.js +350 -0
  285. package/tabs/types.d.ts +92 -0
  286. package/tabs/types.js +5 -0
  287. package/tag/Tag.d.ts +4 -0
  288. package/tag/Tag.js +181 -0
  289. package/tag/Tag.stories.tsx +155 -0
  290. package/tag/Tag.test.js +60 -0
  291. package/tag/types.d.ts +69 -0
  292. package/tag/types.js +5 -0
  293. package/text-input/Icons.d.ts +8 -0
  294. package/text-input/Icons.js +60 -0
  295. package/text-input/Suggestion.d.ts +4 -0
  296. package/text-input/Suggestion.js +84 -0
  297. package/text-input/Suggestions.d.ts +4 -0
  298. package/text-input/Suggestions.js +134 -0
  299. package/text-input/TextInput.d.ts +4 -0
  300. package/text-input/TextInput.js +651 -0
  301. package/text-input/TextInput.stories.tsx +608 -0
  302. package/text-input/TextInput.test.js +1834 -0
  303. package/text-input/types.d.ts +205 -0
  304. package/text-input/types.js +5 -0
  305. package/textarea/Textarea.d.ts +4 -0
  306. package/textarea/Textarea.js +278 -0
  307. package/textarea/Textarea.stories.jsx +224 -0
  308. package/textarea/Textarea.test.js +479 -0
  309. package/textarea/types.d.ts +141 -0
  310. package/textarea/types.js +5 -0
  311. package/toggle-group/ToggleGroup.d.ts +4 -0
  312. package/toggle-group/ToggleGroup.js +241 -0
  313. package/toggle-group/ToggleGroup.stories.tsx +218 -0
  314. package/toggle-group/ToggleGroup.test.js +170 -0
  315. package/toggle-group/types.d.ts +114 -0
  316. package/toggle-group/types.js +5 -0
  317. package/typography/Typography.d.ts +4 -0
  318. package/typography/Typography.js +32 -0
  319. package/typography/Typography.stories.tsx +198 -0
  320. package/typography/types.d.ts +18 -0
  321. package/typography/types.js +5 -0
  322. package/useTheme.d.ts +1252 -0
  323. package/useTheme.js +22 -0
  324. package/useTranslatedLabels.d.ts +85 -0
  325. package/useTranslatedLabels.js +20 -0
  326. package/utils/BaseTypography.d.ts +21 -0
  327. package/utils/BaseTypography.js +108 -0
  328. package/utils/FocusLock.d.ts +13 -0
  329. package/utils/FocusLock.js +138 -0
  330. package/wizard/Wizard.d.ts +4 -0
  331. package/wizard/Wizard.js +285 -0
  332. package/wizard/Wizard.stories.tsx +253 -0
  333. package/wizard/Wizard.test.js +141 -0
  334. package/wizard/types.d.ts +64 -0
  335. package/wizard/types.js +5 -0
  336. package/babel.config.js +0 -4
  337. package/dist/ThemeContext.js +0 -15
  338. package/dist/accordion/Accordion.js +0 -264
  339. package/dist/accordion/Accordion.stories.js +0 -207
  340. package/dist/accordion/readme.md +0 -96
  341. package/dist/alert/Alert.js +0 -302
  342. package/dist/alert/Alert.stories.js +0 -158
  343. package/dist/alert/close.svg +0 -4
  344. package/dist/alert/error.svg +0 -4
  345. package/dist/alert/info.svg +0 -4
  346. package/dist/alert/readme.md +0 -43
  347. package/dist/alert/success.svg +0 -4
  348. package/dist/alert/warning.svg +0 -4
  349. package/dist/box/Box.js +0 -136
  350. package/dist/button/Button.js +0 -183
  351. package/dist/button/Button.stories.js +0 -224
  352. package/dist/button/readme.md +0 -93
  353. package/dist/card/Card.js +0 -246
  354. package/dist/checkbox/Checkbox.js +0 -224
  355. package/dist/checkbox/Checkbox.stories.js +0 -144
  356. package/dist/checkbox/readme.md +0 -116
  357. package/dist/chip/Chip.js +0 -170
  358. package/dist/common/OpenSans.css +0 -81
  359. package/dist/common/RequiredComponent.js +0 -46
  360. package/dist/common/services/example-service.js +0 -10
  361. package/dist/common/services/example-service.test.js +0 -12
  362. package/dist/common/utils.js +0 -42
  363. package/dist/common/variables.js +0 -214
  364. package/dist/date/Date.js +0 -342
  365. package/dist/date/Date.stories.js +0 -205
  366. package/dist/date/calendar.svg +0 -1
  367. package/dist/date/calendar_dark.svg +0 -1
  368. package/dist/date/readme.md +0 -73
  369. package/dist/dialog/Dialog.js +0 -193
  370. package/dist/dialog/Dialog.stories.js +0 -217
  371. package/dist/dialog/readme.md +0 -32
  372. package/dist/dropdown/Dropdown.js +0 -412
  373. package/dist/dropdown/Dropdown.stories.js +0 -249
  374. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  375. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  376. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  377. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  378. package/dist/dropdown/readme.md +0 -69
  379. package/dist/footer/Footer.js +0 -341
  380. package/dist/footer/Footer.stories.js +0 -94
  381. package/dist/footer/dxc_logo_wht.png +0 -0
  382. package/dist/footer/readme.md +0 -41
  383. package/dist/header/Header.js +0 -350
  384. package/dist/header/Header.stories.js +0 -176
  385. package/dist/header/close_icon.svg +0 -1
  386. package/dist/header/dxc_logo_black.png +0 -0
  387. package/dist/header/dxc_logo_white.png +0 -0
  388. package/dist/header/hamb_menu_black.svg +0 -1
  389. package/dist/header/hamb_menu_white.svg +0 -1
  390. package/dist/header/readme.md +0 -33
  391. package/dist/heading/Heading.js +0 -159
  392. package/dist/input-text/InputText.js +0 -519
  393. package/dist/input-text/InputText.stories.js +0 -209
  394. package/dist/input-text/error.svg +0 -1
  395. package/dist/input-text/readme.md +0 -91
  396. package/dist/link/Link.js +0 -129
  397. package/dist/link/readme.md +0 -51
  398. package/dist/main.js +0 -263
  399. package/dist/paginator/Paginator.js +0 -178
  400. package/dist/paginator/images/next.svg +0 -3
  401. package/dist/paginator/images/nextPage.svg +0 -3
  402. package/dist/paginator/images/previous.svg +0 -3
  403. package/dist/paginator/images/previousPage.svg +0 -3
  404. package/dist/paginator/readme.md +0 -50
  405. package/dist/progress-bar/ProgressBar.js +0 -189
  406. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  407. package/dist/progress-bar/readme.md +0 -63
  408. package/dist/radio/Radio.js +0 -191
  409. package/dist/radio/Radio.stories.js +0 -166
  410. package/dist/radio/readme.md +0 -70
  411. package/dist/resultsetTable/ResultsetTable.js +0 -334
  412. package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
  413. package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
  414. package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
  415. package/dist/select/Select.js +0 -442
  416. package/dist/select/Select.stories.js +0 -235
  417. package/dist/select/readme.md +0 -72
  418. package/dist/sidenav/Sidenav.js +0 -217
  419. package/dist/sidenav/arrow_icon.svg +0 -3
  420. package/dist/slider/Slider.js +0 -258
  421. package/dist/slider/Slider.stories.js +0 -241
  422. package/dist/slider/readme.md +0 -64
  423. package/dist/spinner/Spinner.js +0 -196
  424. package/dist/spinner/Spinner.stories.js +0 -183
  425. package/dist/spinner/readme.md +0 -65
  426. package/dist/switch/Switch.js +0 -195
  427. package/dist/switch/Switch.stories.js +0 -134
  428. package/dist/switch/readme.md +0 -133
  429. package/dist/table/Table.js +0 -84
  430. package/dist/tabs/Tabs.js +0 -170
  431. package/dist/tabs/Tabs.stories.js +0 -130
  432. package/dist/tabs/readme.md +0 -78
  433. package/dist/tabs-for-sections/TabsForSections.js +0 -107
  434. package/dist/tabs-for-sections/readme.md +0 -78
  435. package/dist/tag/Tag.js +0 -217
  436. package/dist/textarea/Textarea.js +0 -226
  437. package/dist/toggle/Toggle.js +0 -223
  438. package/dist/toggle/Toggle.stories.js +0 -297
  439. package/dist/toggle/readme.md +0 -80
  440. package/dist/upload/Upload.js +0 -200
  441. package/dist/upload/Upload.stories.js +0 -72
  442. package/dist/upload/buttons-upload/ButtonsUpload.js +0 -125
  443. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  444. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  445. package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -282
  446. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  447. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  448. package/dist/upload/file-upload/FileToUpload.js +0 -158
  449. package/dist/upload/file-upload/audio-icon.svg +0 -4
  450. package/dist/upload/file-upload/close.svg +0 -4
  451. package/dist/upload/file-upload/file-icon.svg +0 -4
  452. package/dist/upload/file-upload/video-icon.svg +0 -4
  453. package/dist/upload/files-upload/FilesToUpload.js +0 -123
  454. package/dist/upload/readme.md +0 -37
  455. package/dist/upload/transaction/Transaction.js +0 -155
  456. package/dist/upload/transaction/audio-icon-err.svg +0 -4
  457. package/dist/upload/transaction/audio-icon.svg +0 -4
  458. package/dist/upload/transaction/error-icon.svg +0 -4
  459. package/dist/upload/transaction/file-icon-err.svg +0 -4
  460. package/dist/upload/transaction/file-icon.svg +0 -4
  461. package/dist/upload/transaction/image-icon-err.svg +0 -4
  462. package/dist/upload/transaction/image-icon.svg +0 -4
  463. package/dist/upload/transaction/success-icon.svg +0 -4
  464. package/dist/upload/transaction/video-icon-err.svg +0 -4
  465. package/dist/upload/transaction/video-icon.svg +0 -4
  466. package/dist/upload/transactions/Transactions.js +0 -120
  467. package/dist/wizard/Wizard.js +0 -310
  468. package/dist/wizard/invalid_icon.svg +0 -6
  469. package/dist/wizard/valid_icon.svg +0 -6
  470. package/dist/wizard/validation-wrong.svg +0 -6
  471. package/test/Accordion.test.js +0 -33
  472. package/test/Alert.test.js +0 -53
  473. package/test/Box.test.js +0 -10
  474. package/test/Button.test.js +0 -18
  475. package/test/Card.test.js +0 -30
  476. package/test/Checkbox.test.js +0 -45
  477. package/test/Chip.test.js +0 -25
  478. package/test/Date.test.js +0 -393
  479. package/test/Dialog.test.js +0 -23
  480. package/test/Dropdown.test.js +0 -130
  481. package/test/Footer.test.js +0 -99
  482. package/test/Header.test.js +0 -39
  483. package/test/Heading.test.js +0 -35
  484. package/test/InputText.test.js +0 -236
  485. package/test/Link.test.js +0 -25
  486. package/test/Paginator.test.js +0 -165
  487. package/test/ProgressBar.test.js +0 -35
  488. package/test/Radio.test.js +0 -37
  489. package/test/ResultsetTable.test.js +0 -282
  490. package/test/Select.test.js +0 -191
  491. package/test/Sidenav.test.js +0 -87
  492. package/test/Slider.test.js +0 -65
  493. package/test/Spinner.test.js +0 -27
  494. package/test/Switch.test.js +0 -45
  495. package/test/Table.test.js +0 -36
  496. package/test/Tabs.test.js +0 -88
  497. package/test/TabsForSections.test.js +0 -34
  498. package/test/Tag.test.js +0 -32
  499. package/test/TextArea.test.js +0 -52
  500. package/test/Toggle.test.js +0 -43
  501. package/test/Upload.test.js +0 -60
  502. package/test/Wizard.test.js +0 -130
  503. package/test/mocks/pngMock.js +0 -1
  504. package/test/mocks/svgMock.js +0 -1
  505. /package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
  506. /package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
  507. /package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
  508. /package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  509. /package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
  510. /package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
  511. /package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
  512. /package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
  513. /package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
  514. /package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
@@ -1,116 +0,0 @@
1
- # DXC Checkbox Component
2
-
3
- ## Usage
4
-
5
- ```js
6
- import { DxcCheckbox } from "@dxc-technology/halstack-react";
7
-
8
- <DxcCheckbox onChange={handleNewValue} label="Test Checkbox" checked={checked} />;
9
- ```
10
-
11
- ## Props
12
-
13
- <table>
14
- <tr style="background-color: grey">
15
- <td>Name</td>
16
- <td>Default</td>
17
- <td>Description</td>
18
- </tr>
19
- <tr>
20
- <td>checked: boolean</td>
21
- <td><code>false</code></td>
22
- <td>If true, the component is checked.</td>
23
- </tr>
24
- <tr>
25
- <td>value: any</td>
26
- <td></td>
27
- <td>Will be passed to the value attribute of the html input element. When inside a form, this value will be only submitted if the checkbox is checked </td>
28
- </tr>
29
- <tr>
30
- <td>label: string</td>
31
- <td></td>
32
- <td>Text to be placed next to the checkbox.</td>
33
- </tr>
34
- <tr>
35
- <td>labelPosition: 'before' | 'after'</td>
36
- <td><code>'before'</code></td>
37
- <td>Whether the label should appear after or before the checkbox.</td>
38
- </tr>
39
- <tr>
40
- <td>theme: 'light' | 'dark'</td>
41
- <td><code>'light'</code></td>
42
- <td>Uses one of the available component themes.</td>
43
- </tr>
44
- <tr>
45
- <td>name: string</td>
46
- <td></td>
47
- <td>Name attribute of the input element.</td>
48
- </tr>
49
- <tr>
50
- <td>disabled: boolean</td>
51
- <td><code>false</code></td>
52
- <td>If true, the component will be disabled.</td>
53
- </tr>
54
- <tr>
55
- <td>required: boolean</td>
56
- <td><code>false</code></td>
57
- <td>If true, a red asterisk will appear before the label to indicate to the user that the field is required.</td>
58
- </tr>
59
- <tr>
60
- <td>disableRipple: boolean</td>
61
- <td><code>false</code></td>
62
- <td>If true, the ripple effect will be disabled.</td>
63
- </tr>
64
- <tr>
65
- <td>onChange: function</td>
66
- <td></td>
67
- <td>This function will be called when the user clicks the checkbox. The new value will be passed as a parameter.<br>
68
- </td>
69
- </tr>
70
- </table>
71
-
72
- ## Examples
73
-
74
- - Basic checkbox - Light theme - Enabled - Label after checkbox - With ripple
75
-
76
- ```js
77
- import React from "react";
78
- import { DxcCheckbox } from "@dxc-technology/halstack-react";
79
-
80
- class App extends React.Component {
81
- state = {
82
- isChecked: true
83
- };
84
- constructor() {
85
- super();
86
- this.handleChange = this.handleChange.bind(this);
87
- }
88
-
89
- handleChange(checked) {
90
- this.setState({
91
- isChecked: checked
92
- });
93
- }
94
-
95
- render() {
96
- return (
97
- <div>
98
- <DxcCheckbox
99
- checked={this.state.isChecked}
100
- value="Checkbox1"
101
- label="Checkbox 1"
102
- labelPosition="after"
103
- theme="light"
104
- name="Checkbox"
105
- disabled={false}
106
- disableRipple={false}
107
- onChange={event => this.handleChange(event)}
108
- />
109
- </div>
110
- );
111
- }
112
- }
113
- export default App;
114
-
115
-
116
- ```
package/dist/chip/Chip.js DELETED
@@ -1,170 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports["default"] = void 0;
11
-
12
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
13
-
14
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
15
-
16
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
17
-
18
- var _react = _interopRequireWildcard(require("react"));
19
-
20
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
21
-
22
- var _propTypes = _interopRequireDefault(require("prop-types"));
23
-
24
- var _variables = require("../common/variables.js");
25
-
26
- var _ThemeContext = _interopRequireDefault(require("../ThemeContext.js"));
27
-
28
- require("../common/OpenSans.css");
29
-
30
- var _utils = require("../common/utils.js");
31
-
32
- function _templateObject4() {
33
- var data = (0, _taggedTemplateLiteral2["default"])(["\n cursor: ", ";\n padding-right: ", ";\n"]);
34
-
35
- _templateObject4 = function _templateObject4() {
36
- return data;
37
- };
38
-
39
- return data;
40
- }
41
-
42
- function _templateObject3() {
43
- var data = (0, _taggedTemplateLiteral2["default"])(["\n cursor: ", ";\n padding-left: ", ";\n"]);
44
-
45
- _templateObject3 = function _templateObject3() {
46
- return data;
47
- };
48
-
49
- return data;
50
- }
51
-
52
- function _templateObject2() {
53
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: 16px;\n font-family: \"Open Sans\";\n line-height: 24px;\n color: ", ";\n cursor: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"]);
54
-
55
- _templateObject2 = function _templateObject2() {
56
- return data;
57
- };
58
-
59
- return data;
60
- }
61
-
62
- function _templateObject() {
63
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: 22px;\n display: inline-flex;\n align-items: center;\n border-radius: 50px;\n margin: 2px;\n max-width: ", ";\n\n padding: 10px 20px;\n cursor: ", ";\n opacity: ", ";\n background: ", ";\n\nmargin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
64
-
65
- _templateObject = function _templateObject() {
66
- return data;
67
- };
68
-
69
- return data;
70
- }
71
-
72
- var DxcChip = function DxcChip(_ref) {
73
- var label = _ref.label,
74
- suffixIconSrc = _ref.suffixIconSrc,
75
- onClickSuffix = _ref.onClickSuffix,
76
- prefixIconSrc = _ref.prefixIconSrc,
77
- onClickPrefix = _ref.onClickPrefix,
78
- disabled = _ref.disabled,
79
- margin = _ref.margin;
80
-
81
- var colorsTheme = (0, _react.useContext)(_ThemeContext["default"]) || _variables.colors;
82
-
83
- return _react["default"].createElement(_styledComponents.ThemeProvider, {
84
- theme: colorsTheme
85
- }, _react["default"].createElement(StyledDxcChip, {
86
- disabled: disabled,
87
- margin: margin
88
- }, prefixIconSrc && _react["default"].createElement(PrefixIconContainer, {
89
- disabled: disabled,
90
- src: prefixIconSrc,
91
- label: label,
92
- onClick: function onClick() {
93
- return onClickPrefix && !disabled && onClickPrefix(label);
94
- }
95
- }), label && _react["default"].createElement(ChipTextContainer, {
96
- disabled: disabled,
97
- prefixIconSrc: prefixIconSrc,
98
- suffixIconSrc: suffixIconSrc
99
- }, label), suffixIconSrc && _react["default"].createElement(SuffixIconContainer, {
100
- disabled: disabled,
101
- src: suffixIconSrc,
102
- label: label,
103
- onClick: function onClick() {
104
- return onClickSuffix && !disabled && onClickSuffix(label);
105
- }
106
- })));
107
- };
108
-
109
- var StyledDxcChip = _styledComponents["default"].div(_templateObject(), function (_ref2) {
110
- var margin = _ref2.margin;
111
- return "calc(100% - 40px - ".concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")");
112
- }, function (_ref3) {
113
- var disabled = _ref3.disabled;
114
- return disabled && "not-allowed";
115
- }, function (_ref4) {
116
- var disabled = _ref4.disabled;
117
- return disabled && "0.34" || "initial";
118
- }, function (props) {
119
- return props.theme.darkWhite;
120
- }, function (props) {
121
- return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
122
- }, function (props) {
123
- return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
124
- }, function (props) {
125
- return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.right ? _variables.spaces[props.margin.right] : "";
126
- }, function (props) {
127
- return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.bottom ? _variables.spaces[props.margin.bottom] : "";
128
- }, function (props) {
129
- return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
130
- });
131
-
132
- var ChipTextContainer = _styledComponents["default"].span(_templateObject2(), function (_ref5) {
133
- var theme = _ref5.theme;
134
- return theme.black;
135
- }, function (_ref6) {
136
- var disabled = _ref6.disabled;
137
- return disabled && "not-allowed" || "default";
138
- });
139
-
140
- var SuffixIconContainer = _styledComponents["default"].img(_templateObject3(), function (_ref7) {
141
- var disabled = _ref7.disabled;
142
- return disabled && "not-allowed" || "pointer";
143
- }, function (props) {
144
- return (props.label || props.suffixIconSrc) && "10px" || props.prefixIconSrc && "5px";
145
- });
146
-
147
- var PrefixIconContainer = _styledComponents["default"].img(_templateObject4(), function (_ref8) {
148
- var disabled = _ref8.disabled;
149
- return disabled && "not-allowed" || "pointer";
150
- }, function (props) {
151
- return (props.label || props.suffixIconSrc) && "10px" || props.prefixIconSrc && "5px";
152
- });
153
-
154
- DxcChip.propTypes = {
155
- label: _propTypes["default"].string,
156
- disabled: _propTypes["default"].bool,
157
- theme: _propTypes["default"].oneOf(["dark", "light"]),
158
- suffixIconSrc: _propTypes["default"].string,
159
- prefixIconSrc: _propTypes["default"].string,
160
- onClickSuffix: _propTypes["default"].func,
161
- onClickPrefix: _propTypes["default"].func,
162
- margin: _propTypes["default"].oneOfType([_propTypes["default"].shape({
163
- top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
164
- bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
165
- left: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
166
- right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
167
- }), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))])
168
- };
169
- var _default = DxcChip;
170
- exports["default"] = _default;
@@ -1,81 +0,0 @@
1
-
2
- @font-face {
3
- font-family: 'Open Sans';
4
- src: url('./fonts/OpenSans-Light.ttf')
5
- format('truetype');
6
- font-style: normal;
7
- font-weight: 200;
8
- }
9
-
10
- @font-face {
11
- font-family: 'Open Sans';
12
- src: url('./fonts/OpenSans-Regular.ttf')
13
- format('truetype');
14
- font-style: normal;
15
- font-weight: 400;
16
- }
17
-
18
- @font-face {
19
- font-family: 'Open Sans';
20
- src: url('./fonts/OpenSans-SemiBold.ttf')
21
- format('truetype');
22
- font-style: normal;
23
- font-weight: 600;
24
- }
25
-
26
- @font-face {
27
- font-family: 'Open Sans';
28
- src: url('./fonts/OpenSans-Bold.ttf')
29
- format('truetype');
30
- font-style: normal;
31
- font-weight: 700;
32
- }
33
-
34
- @font-face {
35
- font-family: 'Open Sans';
36
- src: url('./fonts/OpenSans-ExtraBold.ttf')
37
- format('truetype');
38
- font-style: normal;
39
- font-weight: 800;
40
- }
41
-
42
- @font-face {
43
- font-family: 'Open Sans';
44
- src: url('./fonts/OpenSans-LightItalic.ttf')
45
- format('truetype');
46
- font-style: italic;
47
- font-weight: 200;
48
- }
49
-
50
- @font-face {
51
- font-family: 'Open Sans';
52
- src: url('./fonts/OpenSans-Italic.ttf')
53
- format('truetype');
54
- font-style: italic;
55
- font-weight: 400;
56
- }
57
-
58
- @font-face {
59
- font-family: 'Open Sans';
60
- src: url('./fonts/OpenSans-SemiBoldItalic.ttf')
61
- format('truetype');
62
- font-style: italic;
63
- font-weight: 600;
64
- }
65
-
66
- @font-face {
67
- font-family: 'Open Sans';
68
- src: url('./fonts/OpenSans-BoldItalic.ttf')
69
- format('truetype');
70
- font-style: italic;
71
- font-weight: 700;
72
- }
73
-
74
- @font-face {
75
- font-family: 'Open Sans';
76
- src: url('./fonts/OpenSans-ExtraBoldItalic.ttf')
77
- format('truetype');
78
- font-style: italic;
79
- font-weight: 800;
80
- }
81
-
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports["default"] = void 0;
11
-
12
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
-
14
- var _react = _interopRequireWildcard(require("react"));
15
-
16
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
17
-
18
- var _propTypes = _interopRequireDefault(require("prop-types"));
19
-
20
- var _variables = require("./variables.js");
21
-
22
- var _ThemeContext = _interopRequireDefault(require("../ThemeContext.js"));
23
-
24
- function _templateObject() {
25
- var data = (0, _taggedTemplateLiteral2["default"])(["\n color: #d0011b;\n margin-right: 1px;\n cursor: default;\n"]);
26
-
27
- _templateObject = function _templateObject() {
28
- return data;
29
- };
30
-
31
- return data;
32
- }
33
-
34
- var DxcRequired = function DxcRequired(_ref) {
35
- var _ref$theme = _ref.theme,
36
- theme = _ref$theme === void 0 ? "light" : _ref$theme;
37
- return _react["default"].createElement(RequiredSpan, null, "*");
38
- };
39
-
40
- var RequiredSpan = _styledComponents["default"].span(_templateObject());
41
-
42
- DxcRequired.propTypes = {
43
- theme: _propTypes["default"].oneOf(["dark", "light"])
44
- };
45
- var _default = DxcRequired;
46
- exports["default"] = _default;
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = testFunction;
7
-
8
- function testFunction(num1, num2) {
9
- return num1 + num2;
10
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _exampleService = _interopRequireDefault(require("./example-service"));
6
-
7
- describe("warnings array creation", function () {
8
- it("Function sums values", function () {
9
- var result = (0, _exampleService["default"])(2, 3);
10
- expect(result).toEqual(5);
11
- });
12
- });
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.getCustomTheme = exports.getMargin = void 0;
9
-
10
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
11
-
12
- var _variables = require("./variables.js");
13
-
14
- var getMargin = function getMargin(marginProp, side) {
15
- if (marginProp && (0, _typeof2["default"])(marginProp) === "object") {
16
- return marginProp[side] && _variables.spaces[marginProp[side]] || "0px";
17
- } else {
18
- return marginProp && _variables.spaces[marginProp] || "0px";
19
- }
20
- };
21
-
22
- exports.getMargin = getMargin;
23
-
24
- var getCustomTheme = function getCustomTheme(defaultTheme, customTheme) {
25
- var newTheme = defaultTheme;
26
-
27
- if (customTheme) {
28
- Object.keys(newTheme).map(function (component) {
29
- if (customTheme[component]) {
30
- Object.keys(newTheme[component]).map(function (objectKey) {
31
- if (customTheme[component][objectKey]) {
32
- newTheme[component][objectKey] = customTheme[component][objectKey];
33
- }
34
- });
35
- }
36
- });
37
- }
38
-
39
- return newTheme;
40
- };
41
-
42
- exports.getCustomTheme = getCustomTheme;
@@ -1,214 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.typeface = exports.responsiveSizes = exports.spaces = exports.theme = exports.defaultTheme = exports.colors = void 0;
7
- var colors = {
8
- black: "#000000",
9
- lightBlack: "#212121",
10
- mediumBlack: "#000000B3",
11
- white: "#FFFFFF",
12
- darkWhite: "#EEEEEE",
13
- yellow: "#FFED00",
14
- darkGrey: "#666666",
15
- mediumGrey: "#00000033",
16
- lightGrey: "#D9D9D9",
17
- lighterGrey: "#D9D9D980",
18
- darkRed: "#D0011B",
19
- lightRed: "#FF6161",
20
- lightBlue: "#CEE0F5",
21
- lightYellow: "#FCF2BD",
22
- lightPink: "#F9CFCF",
23
- lightGreen: "#DBF1C4",
24
- blue: "#005FCC",
25
- red: "#D0011B"
26
- };
27
- exports.colors = colors;
28
- var defaultTheme = {
29
- button: {
30
- color: colors.yellow,
31
- hoverColor: colors.black,
32
- primaryFontColor: colors.black,
33
- primaryHoverFontColor: colors.yellow,
34
- secondaryFontColor: colors.black,
35
- secondaryHoverFontColor: colors.black,
36
- textFontColor: colors.black,
37
- textHoverFontColor: colors.white
38
- },
39
- header: {
40
- backgroundColor: colors.black,
41
- underlinedColor: colors.black,
42
- textColor: colors.white,
43
- backgroundColorMenu: colors.lightGrey,
44
- textColorMenu: colors.black,
45
- hamburguerColor: colors.white
46
- },
47
- inputText: {
48
- selectedOptionBackgroundColor: colors.lightGrey
49
- },
50
- checkbox: {
51
- color: colors.yellow,
52
- checkColor: colors.black
53
- },
54
- radio: {
55
- color: colors.black
56
- },
57
- select: {
58
- selectedOptionBackgroundColor: colors.lightGrey
59
- },
60
- slider: {
61
- color: colors.black
62
- },
63
- "switch": {
64
- checkedTrackBackgroundColor: colors.darkGrey
65
- },
66
- tabs: {
67
- selectedBackgroundColor: colors.transparent,
68
- selectedUnderlinedColor: colors.black,
69
- selectedColor: colors.black
70
- }
71
- };
72
- exports.defaultTheme = defaultTheme;
73
- var theme = {
74
- button: {
75
- color: colors.yellow,
76
- hoverColor: colors.black,
77
- primaryDisabledOpacity: 0.34,
78
- primaryFontColor: colors.black,
79
- primaryHoverFontColor: colors.yellow,
80
- secondaryDisabledOpacity: 0.34,
81
- secondaryBackgroundColor: colors.transparent,
82
- secondaryFontColor: colors.black,
83
- secondaryHoverFontColor: colors.black,
84
- textDisabledOpacity: 0.34,
85
- textBackgroundColor: colors.transparent,
86
- textFontColor: colors.black,
87
- textHoverFontColor: colors.lightGrey,
88
- focusColor: colors.blue
89
- },
90
- checkbox: {
91
- color: colors.yellow,
92
- checkColor: colors.black,
93
- disabled: 0.34,
94
- disabledCheckColor: 0.34,
95
- fontColor: colors.black,
96
- focusColor: colors.blue
97
- },
98
- header: {
99
- backgroundColor: colors.black,
100
- underlinedColor: colors.black,
101
- textColor: colors.white,
102
- backgroundColorMenu: colors.lightGrey,
103
- textColorMenu: colors.black,
104
- hamburguerColor: colors.white
105
- },
106
- inputText: {
107
- fontColor: colors.black,
108
- placeholderColor: colors.lightGrey,
109
- disabledTextColor: 0.34,
110
- disabledLabelColor: 0.34,
111
- disabledUnderlinedColor: 0.34,
112
- disabledAssistiveTextColor: 0.34,
113
- error: colors.red,
114
- selectedOptionBackgroundColor: colors.lightGrey,
115
- hoverOptionBakcgroundColor: 0.34,
116
- hoverOptionColor: colors.black,
117
- scrollBarThumbColor: colors.darkGrey,
118
- scrollBarTrackColor: colors.lightGrey
119
- },
120
- radio: {
121
- color: colors.black,
122
- disabled: 0.34,
123
- fontColor: colors.black,
124
- focusColor: colors.blue
125
- },
126
- select: {
127
- selectedOptionBackgroundColor: colors.lightGrey,
128
- color: colors.black,
129
- hoverOptionBackgroundColor: "57",
130
- error: colors.darkRed,
131
- scrollBarThumbColor: colors.darkGrey,
132
- scrollBarTrackColor: colors.lightGrey
133
- },
134
- slider: {
135
- color: colors.black,
136
- totalLine: 0.34,
137
- disabledthumbBacgroundColor: 0.34,
138
- disableddotsBackgroundColor: 0.34,
139
- disabledTrackLine: 0.34,
140
- disabledtotalLine: 0.34
141
- },
142
- "switch": {
143
- checkedTrackBackgroundColor: colors.darkGrey,
144
- checkedThumbBackgroundColor: colors.white,
145
- uncheckedThumbBackgroundColor: colors.white,
146
- uncheckedTrackBackgroundColor: colors.lightGrey,
147
- disabledThumbBackgroundColor: 0.34,
148
- disabledTrackBackgroundColor: 0.34,
149
- fontColor: colors.black
150
- },
151
- tabs: {
152
- selectedBackgroundColor: colors.transparent,
153
- selectedUnderlinedColor: colors.black,
154
- selectedColor: colors.black,
155
- backgroundColor: 0.34,
156
- underlinedColor: colors.lightGrey,
157
- textColor: colors.black,
158
- disabled: 0.34,
159
- focusColor: colors.blue
160
- }
161
- };
162
- exports.theme = theme;
163
- var spaces = {
164
- xxsmall: "6px",
165
- xsmall: "16px",
166
- small: "24px",
167
- medium: "36px",
168
- large: "48px",
169
- xlarge: "64px",
170
- xxlarge: "100px"
171
- };
172
- exports.spaces = spaces;
173
- var responsiveSizes = {
174
- mobileSmall: "320",
175
- mobileMedium: "375",
176
- mobileLarge: "425",
177
- tablet: "768",
178
- laptop: "1024",
179
- desktop: "1440"
180
- };
181
- exports.responsiveSizes = responsiveSizes;
182
- var typeface = {
183
- body: {
184
- fontSize: "16px",
185
- letterSpacing: "0.5",
186
- textTransform: "initial"
187
- },
188
- altBody: {
189
- fontSize: "14px",
190
- letterSpacing: "0.25",
191
- textTransform: "initial"
192
- },
193
- subtitle: {
194
- fontSize: "16px",
195
- letterSpacing: "0.15",
196
- textTransform: "initial"
197
- },
198
- altSubtitle: {
199
- fontSize: "14px",
200
- letterSpacing: "0.1",
201
- textTransform: "initial"
202
- },
203
- caption: {
204
- fontSize: "12px",
205
- letterSpacing: "0.4",
206
- textTransform: "initial"
207
- },
208
- overline: {
209
- fontSize: "12px",
210
- letterSpacing: "2",
211
- textTransform: "uppercase"
212
- }
213
- };
214
- exports.typeface = typeface;