@dxc-technology/halstack-react 0.0.0-f4bae62 → 0.0.0-f53e801

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 (443) hide show
  1. package/BackgroundColorContext.d.ts +10 -0
  2. package/BackgroundColorContext.js +47 -0
  3. package/HalstackContext.d.ts +12 -0
  4. package/HalstackContext.js +295 -0
  5. package/accordion/Accordion.d.ts +4 -0
  6. package/accordion/Accordion.js +226 -0
  7. package/accordion/Accordion.stories.tsx +307 -0
  8. package/accordion/Accordion.test.js +72 -0
  9. package/accordion/types.d.ts +68 -0
  10. package/accordion/types.js +5 -0
  11. package/accordion-group/AccordionGroup.d.ts +7 -0
  12. package/accordion-group/AccordionGroup.js +169 -0
  13. package/accordion-group/AccordionGroup.stories.tsx +225 -0
  14. package/accordion-group/AccordionGroup.test.js +151 -0
  15. package/accordion-group/types.d.ts +72 -0
  16. package/accordion-group/types.js +5 -0
  17. package/alert/Alert.d.ts +4 -0
  18. package/{dist/alert → alert}/Alert.js +43 -153
  19. package/alert/Alert.stories.tsx +170 -0
  20. package/alert/Alert.test.js +92 -0
  21. package/alert/types.d.ts +49 -0
  22. package/alert/types.js +5 -0
  23. package/badge/Badge.d.ts +4 -0
  24. package/badge/Badge.js +61 -0
  25. package/badge/types.d.ts +5 -0
  26. package/badge/types.js +5 -0
  27. package/bleed/Bleed.d.ts +3 -0
  28. package/bleed/Bleed.js +51 -0
  29. package/bleed/Bleed.stories.tsx +341 -0
  30. package/bleed/types.d.ts +37 -0
  31. package/bleed/types.js +5 -0
  32. package/box/Box.d.ts +4 -0
  33. package/box/Box.js +116 -0
  34. package/box/Box.stories.tsx +132 -0
  35. package/box/Box.test.js +18 -0
  36. package/box/types.d.ts +43 -0
  37. package/box/types.js +5 -0
  38. package/bulleted-list/BulletedList.d.ts +7 -0
  39. package/bulleted-list/BulletedList.js +123 -0
  40. package/bulleted-list/BulletedList.stories.tsx +200 -0
  41. package/bulleted-list/types.d.ts +11 -0
  42. package/bulleted-list/types.js +5 -0
  43. package/button/Button.d.ts +4 -0
  44. package/button/Button.js +156 -0
  45. package/button/Button.stories.tsx +283 -0
  46. package/button/Button.test.js +35 -0
  47. package/button/types.d.ts +53 -0
  48. package/button/types.js +5 -0
  49. package/card/Card.d.ts +4 -0
  50. package/card/Card.js +161 -0
  51. package/card/Card.stories.tsx +201 -0
  52. package/card/Card.test.js +50 -0
  53. package/card/ice-cream.jpg +0 -0
  54. package/card/types.d.ts +67 -0
  55. package/card/types.js +5 -0
  56. package/checkbox/Checkbox.d.ts +4 -0
  57. package/{dist/checkbox → checkbox}/Checkbox.js +55 -98
  58. package/checkbox/Checkbox.stories.tsx +188 -0
  59. package/checkbox/Checkbox.test.js +78 -0
  60. package/checkbox/types.d.ts +64 -0
  61. package/checkbox/types.js +5 -0
  62. package/chip/Chip.d.ts +4 -0
  63. package/chip/Chip.js +161 -0
  64. package/chip/Chip.stories.tsx +119 -0
  65. package/chip/Chip.test.js +56 -0
  66. package/chip/types.d.ts +45 -0
  67. package/chip/types.js +5 -0
  68. package/{dist/common → common}/OpenSans.css +0 -0
  69. package/{dist/common → common}/RequiredComponent.js +3 -11
  70. package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
  71. package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
  72. package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
  73. package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  74. package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
  75. package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
  76. package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
  77. package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
  78. package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
  79. package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  80. package/{dist/common → common}/utils.js +0 -0
  81. package/{dist/common → common}/variables.js +370 -435
  82. package/date-input/DateInput.d.ts +4 -0
  83. package/{dist/date-input → date-input}/DateInput.js +83 -111
  84. package/date-input/DateInput.stories.tsx +138 -0
  85. package/date-input/DateInput.test.js +479 -0
  86. package/date-input/types.d.ts +107 -0
  87. package/date-input/types.js +5 -0
  88. package/dialog/Dialog.d.ts +4 -0
  89. package/dialog/Dialog.js +162 -0
  90. package/dialog/Dialog.stories.tsx +211 -0
  91. package/dialog/Dialog.test.js +70 -0
  92. package/dialog/types.d.ts +43 -0
  93. package/dialog/types.js +5 -0
  94. package/dropdown/Dropdown.d.ts +4 -0
  95. package/dropdown/Dropdown.js +387 -0
  96. package/dropdown/Dropdown.stories.tsx +312 -0
  97. package/dropdown/Dropdown.test.js +591 -0
  98. package/dropdown/DropdownMenu.d.ts +4 -0
  99. package/dropdown/DropdownMenu.js +80 -0
  100. package/dropdown/DropdownMenuItem.d.ts +4 -0
  101. package/dropdown/DropdownMenuItem.js +92 -0
  102. package/dropdown/types.d.ts +100 -0
  103. package/dropdown/types.js +5 -0
  104. package/file-input/FileInput.d.ts +4 -0
  105. package/file-input/FileInput.js +593 -0
  106. package/file-input/FileInput.stories.tsx +507 -0
  107. package/file-input/FileInput.test.js +457 -0
  108. package/file-input/FileItem.d.ts +14 -0
  109. package/file-input/FileItem.js +186 -0
  110. package/file-input/types.d.ts +112 -0
  111. package/file-input/types.js +5 -0
  112. package/flex/Flex.d.ts +4 -0
  113. package/flex/Flex.js +57 -0
  114. package/flex/Flex.stories.tsx +103 -0
  115. package/flex/types.d.ts +21 -0
  116. package/flex/types.js +5 -0
  117. package/footer/Footer.d.ts +4 -0
  118. package/footer/Footer.js +185 -0
  119. package/footer/Footer.stories.tsx +130 -0
  120. package/footer/Footer.test.js +109 -0
  121. package/footer/Icons.d.ts +2 -0
  122. package/{dist/footer → footer}/Icons.js +16 -16
  123. package/footer/types.d.ts +65 -0
  124. package/footer/types.js +5 -0
  125. package/header/Header.d.ts +7 -0
  126. package/header/Header.js +305 -0
  127. package/header/Header.stories.tsx +172 -0
  128. package/header/Header.test.js +79 -0
  129. package/header/Icons.d.ts +2 -0
  130. package/{dist/header → header}/Icons.js +9 -34
  131. package/header/types.d.ts +47 -0
  132. package/header/types.js +5 -0
  133. package/heading/Heading.d.ts +4 -0
  134. package/{dist/heading → heading}/Heading.js +31 -90
  135. package/heading/Heading.stories.tsx +54 -0
  136. package/heading/Heading.test.js +186 -0
  137. package/heading/types.d.ts +33 -0
  138. package/heading/types.js +5 -0
  139. package/inset/Inset.d.ts +3 -0
  140. package/inset/Inset.js +51 -0
  141. package/inset/Inset.stories.tsx +229 -0
  142. package/inset/types.d.ts +37 -0
  143. package/inset/types.js +5 -0
  144. package/layout/ApplicationLayout.d.ts +20 -0
  145. package/layout/ApplicationLayout.js +171 -0
  146. package/layout/ApplicationLayout.stories.tsx +161 -0
  147. package/layout/Icons.d.ts +5 -0
  148. package/{dist/layout → layout}/Icons.js +19 -8
  149. package/layout/SidenavContext.d.ts +5 -0
  150. package/layout/SidenavContext.js +19 -0
  151. package/layout/types.d.ts +42 -0
  152. package/layout/types.js +5 -0
  153. package/link/Link.d.ts +4 -0
  154. package/link/Link.js +136 -0
  155. package/link/Link.stories.tsx +193 -0
  156. package/link/Link.test.js +83 -0
  157. package/link/types.d.ts +54 -0
  158. package/link/types.js +5 -0
  159. package/main.d.ts +44 -0
  160. package/{dist/main.js → main.js} +111 -109
  161. package/number-input/NumberInput.d.ts +4 -0
  162. package/number-input/NumberInput.js +76 -0
  163. package/number-input/NumberInput.stories.tsx +115 -0
  164. package/number-input/NumberInput.test.js +506 -0
  165. package/number-input/NumberInputContext.d.ts +4 -0
  166. package/{dist/number-input → number-input}/NumberInputContext.js +5 -2
  167. package/number-input/numberInputContextTypes.d.ts +19 -0
  168. package/number-input/numberInputContextTypes.js +5 -0
  169. package/number-input/types.d.ts +124 -0
  170. package/number-input/types.js +5 -0
  171. package/package.json +40 -29
  172. package/{dist/paginator → paginator}/Icons.js +9 -9
  173. package/paginator/Paginator.d.ts +4 -0
  174. package/paginator/Paginator.js +171 -0
  175. package/paginator/Paginator.stories.tsx +63 -0
  176. package/paginator/Paginator.test.js +308 -0
  177. package/paginator/types.d.ts +38 -0
  178. package/paginator/types.js +5 -0
  179. package/paragraph/Paragraph.d.ts +6 -0
  180. package/paragraph/Paragraph.js +38 -0
  181. package/paragraph/Paragraph.stories.tsx +44 -0
  182. package/password-input/PasswordInput.d.ts +4 -0
  183. package/{dist/password-input → password-input}/PasswordInput.js +45 -77
  184. package/password-input/PasswordInput.stories.tsx +131 -0
  185. package/password-input/PasswordInput.test.js +180 -0
  186. package/password-input/types.d.ts +110 -0
  187. package/password-input/types.js +5 -0
  188. package/progress-bar/ProgressBar.d.ts +4 -0
  189. package/progress-bar/ProgressBar.js +176 -0
  190. package/progress-bar/ProgressBar.stories.jsx +60 -0
  191. package/progress-bar/ProgressBar.test.js +110 -0
  192. package/progress-bar/types.d.ts +36 -0
  193. package/progress-bar/types.js +5 -0
  194. package/quick-nav/QuickNav.d.ts +4 -0
  195. package/quick-nav/QuickNav.js +118 -0
  196. package/quick-nav/QuickNav.stories.tsx +264 -0
  197. package/quick-nav/types.d.ts +21 -0
  198. package/quick-nav/types.js +5 -0
  199. package/radio-group/Radio.d.ts +4 -0
  200. package/radio-group/Radio.js +141 -0
  201. package/radio-group/RadioGroup.d.ts +4 -0
  202. package/radio-group/RadioGroup.js +281 -0
  203. package/radio-group/RadioGroup.stories.tsx +100 -0
  204. package/radio-group/RadioGroup.test.js +695 -0
  205. package/radio-group/types.d.ts +114 -0
  206. package/radio-group/types.js +5 -0
  207. package/resultsetTable/ResultsetTable.d.ts +4 -0
  208. package/{dist/resultsetTable → resultsetTable}/ResultsetTable.js +43 -147
  209. package/resultsetTable/ResultsetTable.stories.tsx +275 -0
  210. package/resultsetTable/ResultsetTable.test.js +348 -0
  211. package/resultsetTable/types.d.ts +67 -0
  212. package/resultsetTable/types.js +5 -0
  213. package/select/Icons.d.ts +10 -0
  214. package/select/Icons.js +93 -0
  215. package/select/Listbox.d.ts +4 -0
  216. package/select/Listbox.js +199 -0
  217. package/select/Option.d.ts +4 -0
  218. package/select/Option.js +110 -0
  219. package/select/Select.d.ts +4 -0
  220. package/select/Select.js +643 -0
  221. package/select/Select.stories.tsx +627 -0
  222. package/select/Select.test.js +2175 -0
  223. package/select/types.d.ts +210 -0
  224. package/select/types.js +5 -0
  225. package/sidenav/Sidenav.d.ts +10 -0
  226. package/sidenav/Sidenav.js +268 -0
  227. package/sidenav/Sidenav.stories.tsx +180 -0
  228. package/sidenav/Sidenav.test.js +44 -0
  229. package/sidenav/types.d.ts +73 -0
  230. package/sidenav/types.js +5 -0
  231. package/slider/Slider.d.ts +4 -0
  232. package/{dist/slider → slider}/Slider.js +77 -163
  233. package/slider/Slider.stories.tsx +177 -0
  234. package/slider/Slider.test.js +187 -0
  235. package/slider/types.d.ts +82 -0
  236. package/slider/types.js +5 -0
  237. package/spinner/Spinner.d.ts +4 -0
  238. package/spinner/Spinner.js +250 -0
  239. package/spinner/Spinner.stories.jsx +103 -0
  240. package/spinner/Spinner.test.js +64 -0
  241. package/spinner/types.d.ts +32 -0
  242. package/spinner/types.js +5 -0
  243. package/switch/Switch.d.ts +4 -0
  244. package/switch/Switch.js +251 -0
  245. package/switch/Switch.stories.tsx +138 -0
  246. package/switch/Switch.test.js +212 -0
  247. package/switch/types.d.ts +61 -0
  248. package/switch/types.js +5 -0
  249. package/table/Table.d.ts +4 -0
  250. package/{dist/table → table}/Table.js +12 -26
  251. package/table/Table.stories.jsx +277 -0
  252. package/table/Table.test.js +26 -0
  253. package/table/types.d.ts +21 -0
  254. package/table/types.js +5 -0
  255. package/tabs/Tabs.d.ts +4 -0
  256. package/tabs/Tabs.js +211 -0
  257. package/tabs/Tabs.stories.tsx +112 -0
  258. package/tabs/Tabs.test.js +140 -0
  259. package/tabs/types.d.ts +82 -0
  260. package/tabs/types.js +5 -0
  261. package/tabs-nav/NavTabs.d.ts +8 -0
  262. package/tabs-nav/NavTabs.js +125 -0
  263. package/tabs-nav/NavTabs.stories.tsx +170 -0
  264. package/tabs-nav/NavTabs.test.js +82 -0
  265. package/tabs-nav/Tab.d.ts +4 -0
  266. package/tabs-nav/Tab.js +130 -0
  267. package/tabs-nav/types.d.ts +53 -0
  268. package/tabs-nav/types.js +5 -0
  269. package/tag/Tag.d.ts +4 -0
  270. package/tag/Tag.js +183 -0
  271. package/tag/Tag.stories.tsx +142 -0
  272. package/tag/Tag.test.js +60 -0
  273. package/tag/types.d.ts +69 -0
  274. package/tag/types.js +5 -0
  275. package/text-input/Suggestion.d.ts +4 -0
  276. package/text-input/Suggestion.js +55 -0
  277. package/text-input/TextInput.d.ts +4 -0
  278. package/{dist/text-input → text-input}/TextInput.js +294 -504
  279. package/text-input/TextInput.stories.tsx +473 -0
  280. package/text-input/TextInput.test.js +1712 -0
  281. package/text-input/types.d.ts +178 -0
  282. package/text-input/types.js +5 -0
  283. package/textarea/Textarea.d.ts +4 -0
  284. package/{dist/textarea → textarea}/Textarea.js +50 -142
  285. package/textarea/Textarea.stories.jsx +157 -0
  286. package/textarea/Textarea.test.js +437 -0
  287. package/textarea/types.d.ts +137 -0
  288. package/textarea/types.js +5 -0
  289. package/toggle-group/ToggleGroup.d.ts +4 -0
  290. package/{dist/toggle-group → toggle-group}/ToggleGroup.js +36 -148
  291. package/toggle-group/ToggleGroup.stories.tsx +173 -0
  292. package/toggle-group/ToggleGroup.test.js +156 -0
  293. package/toggle-group/types.d.ts +105 -0
  294. package/toggle-group/types.js +5 -0
  295. package/typography/Typography.d.ts +4 -0
  296. package/typography/Typography.js +131 -0
  297. package/typography/Typography.stories.tsx +198 -0
  298. package/typography/types.d.ts +18 -0
  299. package/typography/types.js +5 -0
  300. package/useTheme.d.ts +2 -0
  301. package/{dist/useTheme.js → useTheme.js} +2 -2
  302. package/useTranslatedLabels.d.ts +2 -0
  303. package/useTranslatedLabels.js +20 -0
  304. package/wizard/Wizard.d.ts +4 -0
  305. package/wizard/Wizard.js +285 -0
  306. package/wizard/Wizard.stories.tsx +233 -0
  307. package/wizard/Wizard.test.js +141 -0
  308. package/wizard/types.d.ts +65 -0
  309. package/wizard/types.js +5 -0
  310. package/README.md +0 -66
  311. package/babel.config.js +0 -8
  312. package/dist/BackgroundColorContext.js +0 -46
  313. package/dist/ThemeContext.js +0 -248
  314. package/dist/V3Textarea/V3Textarea.js +0 -264
  315. package/dist/accordion/Accordion.js +0 -353
  316. package/dist/accordion-group/AccordionGroup.js +0 -186
  317. package/dist/alert/index.d.ts +0 -51
  318. package/dist/badge/Badge.js +0 -63
  319. package/dist/box/Box.js +0 -156
  320. package/dist/button/Button.js +0 -238
  321. package/dist/card/Card.js +0 -254
  322. package/dist/checkbox/Checkbox.stories.js +0 -144
  323. package/dist/checkbox/readme.md +0 -116
  324. package/dist/chip/Chip.js +0 -265
  325. package/dist/date/Date.js +0 -379
  326. package/dist/date/Date.stories.js +0 -205
  327. package/dist/date/readme.md +0 -73
  328. package/dist/date-input/index.d.ts +0 -95
  329. package/dist/dialog/Dialog.js +0 -218
  330. package/dist/dropdown/Dropdown.js +0 -544
  331. package/dist/file-input/FileInput.js +0 -644
  332. package/dist/file-input/FileItem.js +0 -280
  333. package/dist/file-input/index.d.ts +0 -81
  334. package/dist/footer/Footer.js +0 -421
  335. package/dist/header/Header.js +0 -434
  336. package/dist/input-text/Icons.js +0 -22
  337. package/dist/input-text/InputText.js +0 -705
  338. package/dist/layout/ApplicationLayout.js +0 -327
  339. package/dist/link/Link.js +0 -237
  340. package/dist/link/readme.md +0 -51
  341. package/dist/main.d.ts +0 -8
  342. package/dist/new-select/NewSelect.js +0 -836
  343. package/dist/new-select/index.d.ts +0 -53
  344. package/dist/number-input/NumberInput.js +0 -136
  345. package/dist/number-input/index.d.ts +0 -113
  346. package/dist/paginator/Paginator.js +0 -283
  347. package/dist/password-input/index.d.ts +0 -94
  348. package/dist/progress-bar/ProgressBar.js +0 -242
  349. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  350. package/dist/progress-bar/readme.md +0 -63
  351. package/dist/radio/Radio.js +0 -209
  352. package/dist/radio/Radio.stories.js +0 -166
  353. package/dist/radio/readme.md +0 -70
  354. package/dist/select/Select.js +0 -549
  355. package/dist/sidenav/Sidenav.js +0 -179
  356. package/dist/slider/readme.md +0 -64
  357. package/dist/spinner/Spinner.js +0 -381
  358. package/dist/spinner/Spinner.stories.js +0 -183
  359. package/dist/spinner/readme.md +0 -65
  360. package/dist/switch/Switch.js +0 -222
  361. package/dist/switch/Switch.stories.js +0 -134
  362. package/dist/switch/readme.md +0 -133
  363. package/dist/tabs/Tabs.js +0 -343
  364. package/dist/tabs/Tabs.stories.js +0 -130
  365. package/dist/tabs/readme.md +0 -78
  366. package/dist/tabs-for-sections/TabsForSections.js +0 -92
  367. package/dist/tabs-for-sections/readme.md +0 -78
  368. package/dist/tag/Tag.js +0 -282
  369. package/dist/text-input/index.d.ts +0 -135
  370. package/dist/textarea/index.d.ts +0 -117
  371. package/dist/toggle/Toggle.js +0 -220
  372. package/dist/toggle/Toggle.stories.js +0 -297
  373. package/dist/toggle/readme.md +0 -80
  374. package/dist/upload/Upload.js +0 -205
  375. package/dist/upload/Upload.stories.js +0 -72
  376. package/dist/upload/buttons-upload/ButtonsUpload.js +0 -139
  377. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  378. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  379. package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -329
  380. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  381. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  382. package/dist/upload/file-upload/FileToUpload.js +0 -184
  383. package/dist/upload/file-upload/audio-icon.svg +0 -4
  384. package/dist/upload/file-upload/close.svg +0 -4
  385. package/dist/upload/file-upload/file-icon.svg +0 -4
  386. package/dist/upload/file-upload/video-icon.svg +0 -4
  387. package/dist/upload/files-upload/FilesToUpload.js +0 -123
  388. package/dist/upload/readme.md +0 -37
  389. package/dist/upload/transaction/Transaction.js +0 -175
  390. package/dist/upload/transaction/audio-icon-err.svg +0 -4
  391. package/dist/upload/transaction/audio-icon.svg +0 -4
  392. package/dist/upload/transaction/error-icon.svg +0 -4
  393. package/dist/upload/transaction/file-icon-err.svg +0 -4
  394. package/dist/upload/transaction/file-icon.svg +0 -4
  395. package/dist/upload/transaction/image-icon-err.svg +0 -4
  396. package/dist/upload/transaction/image-icon.svg +0 -4
  397. package/dist/upload/transaction/success-icon.svg +0 -4
  398. package/dist/upload/transaction/video-icon-err.svg +0 -4
  399. package/dist/upload/transaction/video-icon.svg +0 -4
  400. package/dist/upload/transactions/Transactions.js +0 -138
  401. package/dist/wizard/Icons.js +0 -65
  402. package/dist/wizard/Wizard.js +0 -405
  403. package/test/Accordion.test.js +0 -33
  404. package/test/AccordionGroup.test.js +0 -125
  405. package/test/Alert.test.js +0 -53
  406. package/test/Box.test.js +0 -10
  407. package/test/Button.test.js +0 -18
  408. package/test/Card.test.js +0 -30
  409. package/test/Checkbox.test.js +0 -45
  410. package/test/Chip.test.js +0 -25
  411. package/test/Date.test.js +0 -397
  412. package/test/DateInput.test.js +0 -242
  413. package/test/Dialog.test.js +0 -23
  414. package/test/Dropdown.test.js +0 -145
  415. package/test/FileInput.test.js +0 -201
  416. package/test/Footer.test.js +0 -94
  417. package/test/Header.test.js +0 -34
  418. package/test/Heading.test.js +0 -35
  419. package/test/InputText.test.js +0 -248
  420. package/test/Link.test.js +0 -43
  421. package/test/NumberInput.test.js +0 -259
  422. package/test/Paginator.test.js +0 -177
  423. package/test/PasswordInput.test.js +0 -83
  424. package/test/ProgressBar.test.js +0 -35
  425. package/test/Radio.test.js +0 -37
  426. package/test/ResultsetTable.test.js +0 -329
  427. package/test/Select.test.js +0 -212
  428. package/test/Sidenav.test.js +0 -45
  429. package/test/Slider.test.js +0 -74
  430. package/test/Spinner.test.js +0 -32
  431. package/test/Switch.test.js +0 -45
  432. package/test/Table.test.js +0 -36
  433. package/test/Tabs.test.js +0 -109
  434. package/test/TabsForSections.test.js +0 -34
  435. package/test/Tag.test.js +0 -32
  436. package/test/TextInput.test.js +0 -732
  437. package/test/Textarea.test.js +0 -193
  438. package/test/ToggleGroup.test.js +0 -85
  439. package/test/Upload.test.js +0 -60
  440. package/test/V3TextArea.test.js +0 -51
  441. package/test/Wizard.test.js +0 -130
  442. package/test/mocks/pngMock.js +0 -1
  443. package/test/mocks/svgMock.js +0 -1
@@ -1,179 +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 _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
15
-
16
- var _react = _interopRequireDefault(require("react"));
17
-
18
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
19
-
20
- var _propTypes = _interopRequireDefault(require("prop-types"));
21
-
22
- var _variables = require("../common/variables.js");
23
-
24
- var _useTheme = _interopRequireDefault(require("../useTheme.js"));
25
-
26
- var _BackgroundColorContext = require("../BackgroundColorContext.js");
27
-
28
- function _templateObject4() {
29
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n text-decoration: ", ";\n margin: ", ";\n cursor: pointer;\n\n :focus-visible {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n"]);
30
-
31
- _templateObject4 = function _templateObject4() {
32
- return data;
33
- };
34
-
35
- return data;
36
- }
37
-
38
- function _templateObject3() {
39
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n margin-bottom: 4px;\n"]);
40
-
41
- _templateObject3 = function _templateObject3() {
42
- return data;
43
- };
44
-
45
- return data;
46
- }
47
-
48
- function _templateObject2() {
49
- var data = (0, _taggedTemplateLiteral2["default"])(["\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n margin-bottom: 16px;\n"]);
50
-
51
- _templateObject2 = function _templateObject2() {
52
- return data;
53
- };
54
-
55
- return data;
56
- }
57
-
58
- function _templateObject() {
59
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n background-color: ", ";\n max-width: 300px;\n width: ", ";\n padding: ", ";\n\n overflow-y: auto;\n overflow-x: hidden;\n ::-webkit-scrollbar {\n width: 2px;\n }\n ::-webkit-scrollbar-track {\n background-color: ", ";\n border-radius: 3px;\n }\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 3px;\n }\n"]);
60
-
61
- _templateObject = function _templateObject() {
62
- return data;
63
- };
64
-
65
- return data;
66
- }
67
-
68
- var DxcSidenav = function DxcSidenav(_ref) {
69
- var padding = _ref.padding,
70
- children = _ref.children;
71
- var colorsTheme = (0, _useTheme["default"])();
72
- return _react["default"].createElement(_styledComponents.ThemeProvider, {
73
- theme: colorsTheme.sidenav
74
- }, _react["default"].createElement(SideNavContainer, {
75
- padding: padding
76
- }, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
77
- color: colorsTheme.sidenav.backgroundColor
78
- }, children)));
79
- };
80
-
81
- var Title = function Title(_ref2) {
82
- var children = _ref2.children;
83
- return _react["default"].createElement(SideNavMenuTitle, null, children);
84
- };
85
-
86
- var Subtitle = function Subtitle(_ref3) {
87
- var children = _ref3.children;
88
- return _react["default"].createElement(SideNavMenuSubTitle, null, children);
89
- };
90
-
91
- var Link = function Link(_ref4) {
92
- var href = _ref4.href,
93
- onClick = _ref4.onClick,
94
- children = _ref4.children;
95
- return _react["default"].createElement(SideNavMenuLink, {
96
- href: href,
97
- onClick: onClick
98
- }, children);
99
- };
100
-
101
- var SideNavContainer = _styledComponents["default"].div(_templateObject(), function (props) {
102
- return props.theme.backgroundColor;
103
- }, function (props) {
104
- return props.padding ? "calc(300px - ".concat(_variables.spaces[props.padding], " - ").concat(_variables.spaces[props.padding], ")") : "300px";
105
- }, function (props) {
106
- return props.padding ? _variables.spaces[props.padding] : "";
107
- }, function (props) {
108
- return props.theme.scrollBarTrackColor;
109
- }, function (props) {
110
- return props.theme.scrollBarThumbColor;
111
- });
112
-
113
- var SideNavMenuTitle = _styledComponents["default"].div(_templateObject2(), function (props) {
114
- return props.theme.titleFontFamily;
115
- }, function (props) {
116
- return props.theme.titleFontSize;
117
- }, function (props) {
118
- return props.theme.titleFontStyle;
119
- }, function (props) {
120
- return props.theme.titleFontWeight;
121
- }, function (props) {
122
- return props.theme.titleFontColor;
123
- }, function (props) {
124
- return props.theme.titleFontLetterSpacing;
125
- }, function (props) {
126
- return props.theme.titleFontTextTransform;
127
- });
128
-
129
- var SideNavMenuSubTitle = _styledComponents["default"].div(_templateObject3(), function (props) {
130
- return props.theme.subtitleFontFamily;
131
- }, function (props) {
132
- return props.theme.subtitleFontSize;
133
- }, function (props) {
134
- return props.theme.subtitleFontStyle;
135
- }, function (props) {
136
- return props.theme.subtitleFontWeight;
137
- }, function (props) {
138
- return props.theme.subtitleFontColor;
139
- }, function (props) {
140
- return props.theme.subtitleFontLetterSpacing;
141
- }, function (props) {
142
- return props.theme.subtitleFontTextTransform;
143
- });
144
-
145
- var SideNavMenuLink = _styledComponents["default"].a(_templateObject4(), function (props) {
146
- return props.theme.linkFontFamily;
147
- }, function (props) {
148
- return props.theme.linkFontSize;
149
- }, function (props) {
150
- return props.theme.linkFontStyle;
151
- }, function (props) {
152
- return props.theme.linkFontWeight;
153
- }, function (props) {
154
- return props.theme.linkFontColor;
155
- }, function (props) {
156
- return props.theme.linkFontLetterSpacing;
157
- }, function (props) {
158
- return props.theme.linkFontTextTransform;
159
- }, function (props) {
160
- return props.theme.linkTextDecoration;
161
- }, function (props) {
162
- return "".concat(props.theme.linkMarginTop, " ").concat(props.theme.linkMarginRight, " ").concat(props.theme.linkMarginBottom, " ").concat(props.theme.linkMarginLeft);
163
- }, function (props) {
164
- return props.theme.linkFocusColor;
165
- });
166
-
167
- DxcSidenav.propTypes = {
168
- padding: _propTypes["default"].oneOfType([_propTypes["default"].shape({
169
- top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
170
- bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
171
- left: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
172
- right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
173
- }), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))])
174
- };
175
- DxcSidenav.Title = Title;
176
- DxcSidenav.Subtitle = Subtitle;
177
- DxcSidenav.Link = Link;
178
- var _default = DxcSidenav;
179
- exports["default"] = _default;
@@ -1,64 +0,0 @@
1
- # DXC Slider Component
2
-
3
- ## Usage
4
-
5
- ```js
6
- import { Slider } from "@dxc-technology/halstack-react";
7
-
8
- <DxcSlider min={0} max={100} step={1} value={value} />;
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>min: number</td>
21
- <td><code>0</code></td>
22
- <td>The minimum value available for selection.</td>
23
- </tr>
24
- <tr>
25
- <td>max: number</td>
26
- <td><code>100</code></td>
27
- <td>The maximum value available for selection.</td>
28
- </tr>
29
- <tr>
30
- <td>step: number</td>
31
- <td><code>1</code></td>
32
- <td>The step interval between values available for selection.</td>
33
- </tr>
34
- <tr>
35
- <td>value: number</td>
36
- <td><code>0</code></td>
37
- <td>The selected value.</td>
38
- </tr>
39
- <tr>
40
- <td>showLimitValues: boolean</td>
41
- <td><code>false</code></td>
42
- <td>Whether the min/max value labels should be displayed next to the slider.</td>
43
- </tr>
44
- <tr>
45
- <td>showInput: boolean</td>
46
- <td><code>false</code></td>
47
- <td>Whether the input number for displaying/controlling the slider value should be displayed next to the slider.</td>
48
- </tr>
49
- <tr>
50
- <td>name: string</td>
51
- <td></td>
52
- <td>Name attribute of the input element.</td>
53
- </tr>
54
- <tr>
55
- <td>onChange: function</td>
56
- <td></td>
57
- <td>This function will be called when the slider changes its value, as it's being dragged. The new value will be passed as a parameter when this function is executed</td>
58
- </tr>
59
- <tr>
60
- <td>onDragEnd: function</td>
61
- <td></td>
62
- <td>This function will be called when the slider changes its value, but only when the thumb is released. The new value will be passed as a parameter when this function is executed</td>
63
- </tr>
64
- </table>
@@ -1,381 +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 _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
13
-
14
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
15
-
16
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
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 _useTheme = _interopRequireDefault(require("../useTheme.js"));
27
-
28
- var _BackgroundColorContext = _interopRequireDefault(require("../BackgroundColorContext.js"));
29
-
30
- function _templateObject12() {
31
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: 0;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: ", ";\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-style: ", ";\n color: ", ";\n text-align: ", ";\n letter-spacing: ", ";\n"]);
32
-
33
- _templateObject12 = function _templateObject12() {
34
- return data;
35
- };
36
-
37
- return data;
38
- }
39
-
40
- function _templateObject11() {
41
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: 0;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-style: ", ";\n color: ", ";\n text-align: ", ";\n letter-spacing: ", ";\n"]);
42
-
43
- _templateObject11 = function _templateObject11() {
44
- return data;
45
- };
46
-
47
- return data;
48
- }
49
-
50
- function _templateObject10() {
51
- var data = (0, _taggedTemplateLiteral2["default"])(["\n display: block;\n margin: 0 auto;\n position: absolute;\n text-align: center;\n width: 110px;\n"]);
52
-
53
- _templateObject10 = function _templateObject10() {
54
- return data;
55
- };
56
-
57
- return data;
58
- }
59
-
60
- function _templateObject9() {
61
- var data = (0, _taggedTemplateLiteral2["default"])(["\n fill: transparent;\n stroke-linecap: initial;\n vector-effect: non-scaling-stroke;\n animation: ", ";\n stroke: ", ";\n transform-origin: ", ";\n stroke-dasharray: ", ";\n stroke-width: ", ";\n stroke-dashoffset: ", ";\n"]);
62
-
63
- _templateObject9 = function _templateObject9() {
64
- return data;
65
- };
66
-
67
- return data;
68
- }
69
-
70
- function _templateObject8() {
71
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: inherit;\n width: inherit;\n transform: rotate(-90deg);\n top: 0;\n left: 0;\n transform-origin: center;\n overflow: visible;\n animation: ", ";\n"]);
72
-
73
- _templateObject8 = function _templateObject8() {
74
- return data;
75
- };
76
-
77
- return data;
78
- }
79
-
80
- function _templateObject7() {
81
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: inherit;\n width: inherit;\n position: relative;\n z-index: 2;\n"]);
82
-
83
- _templateObject7 = function _templateObject7() {
84
- return data;
85
- };
86
-
87
- return data;
88
- }
89
-
90
- function _templateObject6() {
91
- var data = (0, _taggedTemplateLiteral2["default"])(["\n animation: none;\n fill: transparent;\n stroke: ", ";\n stroke-dasharray: ", ";\n stroke-linecap: initial;\n stroke-width: ", ";\n transform-origin: 50% 50%;\n vector-effect: non-scaling-stroke;\n"]);
92
-
93
- _templateObject6 = function _templateObject6() {
94
- return data;
95
- };
96
-
97
- return data;
98
- }
99
-
100
- function _templateObject5() {
101
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: inherit;\n width: inherit;\n"]);
102
-
103
- _templateObject5 = function _templateObject5() {
104
- return data;
105
- };
106
-
107
- return data;
108
- }
109
-
110
- function _templateObject4() {
111
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: inherit;\n width: inherit;\n position: absolute;\n z-index: 1;\n"]);
112
-
113
- _templateObject4 = function _templateObject4() {
114
- return data;
115
- };
116
-
117
- return data;
118
- }
119
-
120
- function _templateObject3() {
121
- var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 100vw;\n height: 100vh;\n opacity: 1;\n transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n position: fixed;\n top: 0;\n left: 0;\n background-color: ", ";\n opacity: ", ";\n"]);
122
-
123
- _templateObject3 = function _templateObject3() {
124
- return data;
125
- };
126
-
127
- return data;
128
- }
129
-
130
- function _templateObject2() {
131
- var data = (0, _taggedTemplateLiteral2["default"])(["\n align-items: center;\n display: flex;\n height: ", ";\n width: ", ";\n justify-content: center;\n position: relative;\n background-color: transparent;\n\n @keyframes spinner-svg {\n 0% {\n transform: rotateZ(0deg);\n }\n 100% {\n transform: rotateZ(360deg);\n }\n }\n @keyframes svg-circle-large {\n 0% {\n stroke-dashoffset: 400;\n transform: rotate(0);\n }\n\n 50% {\n stroke-dashoffset: 75;\n transform: rotate(45deg);\n }\n\n 100% {\n stroke-dashoffset: 400;\n transform: rotate(360deg);\n }\n }\n @keyframes svg-circle-small {\n 0% {\n stroke-dashoffset: 35;\n transform: rotate(0);\n }\n\n 50% {\n stroke-dashoffset: 8;\n transform: rotate(45deg);\n }\n\n 100% {\n stroke-dashoffset: 35;\n transform: rotate(360deg);\n }\n }\n"]);
132
-
133
- _templateObject2 = function _templateObject2() {
134
- return data;
135
- };
136
-
137
- return data;
138
- }
139
-
140
- function _templateObject() {
141
- var data = (0, _taggedTemplateLiteral2["default"])(["\n height: ", ";\n width: ", ";\n display: ", ";\n position: ", ";\n top: ", ";\n left: ", ";\n justify-content: ", ";\n align-items: ", ";\n z-index: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
142
-
143
- _templateObject = function _templateObject() {
144
- return data;
145
- };
146
-
147
- return data;
148
- }
149
-
150
- var DxcSpinner = function DxcSpinner(_ref) {
151
- var _ref$label = _ref.label,
152
- label = _ref$label === void 0 ? "" : _ref$label,
153
- value = _ref.value,
154
- _ref$showValue = _ref.showValue,
155
- showValue = _ref$showValue === void 0 ? false : _ref$showValue,
156
- _ref$mode = _ref.mode,
157
- mode = _ref$mode === void 0 ? "large" : _ref$mode,
158
- margin = _ref.margin;
159
- var colorsTheme = (0, _useTheme["default"])();
160
- var backgroundType = (0, _react.useContext)(_BackgroundColorContext["default"]);
161
- return _react["default"].createElement(_styledComponents.ThemeProvider, {
162
- theme: colorsTheme.spinner
163
- }, _react["default"].createElement(DXCSpinner, {
164
- margin: margin,
165
- mode: mode
166
- }, _react["default"].createElement(SpinnerContainer, {
167
- backgroundType: backgroundType,
168
- mode: mode
169
- }, mode === "overlay" && _react["default"].createElement(BackOverlay, null), _react["default"].createElement(BackgroundSpinner, {
170
- mode: mode
171
- }, mode !== "small" && _react["default"].createElement(SVGBackground, {
172
- viewBox: "0 0 140 140"
173
- }, _react["default"].createElement(CircleBackground, {
174
- cx: "70",
175
- cy: "70",
176
- r: "65",
177
- mode: mode
178
- })), mode === "small" && _react["default"].createElement(SVGBackground, {
179
- viewBox: "0 0 16 16"
180
- }, _react["default"].createElement(CircleBackground, {
181
- cx: "8",
182
- cy: "8",
183
- r: "6",
184
- mode: mode
185
- }))), value >= 0 && value <= 100 ? _react["default"].createElement(Spinner, {
186
- role: "progressbar",
187
- mode: mode
188
- }, mode !== "small" && _react["default"].createElement(SVGSpinner, {
189
- viewBox: "0 0 140 140",
190
- isDeterminated: true
191
- }, _react["default"].createElement(CircleSpinner, {
192
- cx: "70",
193
- cy: "70",
194
- r: "65",
195
- backgroundType: backgroundType,
196
- mode: mode,
197
- isDeterminated: true,
198
- value: value
199
- })), mode === "small" && _react["default"].createElement(SVGSpinner, {
200
- viewBox: "0 0 16 16",
201
- isDeterminated: true
202
- }, _react["default"].createElement(CircleSpinner, {
203
- cx: "8",
204
- cy: "8",
205
- r: "6",
206
- backgroundType: backgroundType,
207
- mode: mode,
208
- isDeterminated: true,
209
- value: value
210
- }))) : _react["default"].createElement(Spinner, {
211
- role: "progressbar",
212
- mode: mode
213
- }, mode !== "small" && _react["default"].createElement(SVGSpinner, {
214
- viewBox: "0 0 140 140",
215
- isDeterminated: false
216
- }, _react["default"].createElement(CircleSpinner, {
217
- cx: "70",
218
- cy: "70",
219
- r: "65",
220
- backgroundType: backgroundType,
221
- mode: mode,
222
- isDeterminated: false
223
- })), mode === "small" && _react["default"].createElement(SVGSpinner, {
224
- viewBox: "0 0 16 16",
225
- isDeterminated: false
226
- }, _react["default"].createElement(CircleSpinner, {
227
- cx: "8",
228
- cy: "8",
229
- r: "6",
230
- backgroundType: backgroundType,
231
- mode: mode,
232
- isDeterminated: false
233
- }))), mode !== "small" && _react["default"].createElement(LabelsContainer, {
234
- label: label,
235
- value: value,
236
- showValue: showValue
237
- }, _react["default"].createElement(SpinnerLabel, {
238
- backgroundType: backgroundType,
239
- mode: mode
240
- }, label), (value || value === 0) && showValue && _react["default"].createElement(SpinnerProgress, {
241
- backgroundType: backgroundType,
242
- mode: mode,
243
- showValue: showValue
244
- }, value, "%")))));
245
- };
246
-
247
- var determinatedValue = function determinatedValue(props, strokeDashArray) {
248
- var val = 0;
249
-
250
- if (props.value >= 0 && props.value <= 100) {
251
- val = strokeDashArray * (1 - props.value / 100);
252
- }
253
-
254
- return val;
255
- };
256
-
257
- DxcSpinner.propTypes = {
258
- label: _propTypes["default"].string,
259
- value: _propTypes["default"].number,
260
- showValue: _propTypes["default"].bool,
261
- mode: _propTypes["default"].oneOf(["large", "small", "overlay"]),
262
- margin: _propTypes["default"].oneOfType([_propTypes["default"].shape({
263
- top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
264
- bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
265
- left: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
266
- right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
267
- }), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))])
268
- };
269
-
270
- var DXCSpinner = _styledComponents["default"].div(_templateObject(), function (props) {
271
- return props.mode === "overlay" ? "100vh" : "";
272
- }, function (props) {
273
- return props.mode === "overlay" ? "100vw" : "";
274
- }, function (props) {
275
- return props.mode === "overlay" ? "flex" : "";
276
- }, function (props) {
277
- return props.mode === "overlay" ? "fixed" : "";
278
- }, function (props) {
279
- return props.mode === "overlay" ? 0 : "";
280
- }, function (props) {
281
- return props.mode === "overlay" ? 0 : "";
282
- }, function (props) {
283
- return props.mode === "overlay" ? "center" : "";
284
- }, function (props) {
285
- return props.mode === "overlay" ? "center" : "";
286
- }, function (props) {
287
- return props.mode === "overlay" ? 1300 : "";
288
- }, function (props) {
289
- return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
290
- }, function (props) {
291
- return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.top ? _variables.spaces[props.margin.top] : "";
292
- }, function (props) {
293
- return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.right ? _variables.spaces[props.margin.right] : "";
294
- }, function (props) {
295
- return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.bottom ? _variables.spaces[props.margin.bottom] : "";
296
- }, function (props) {
297
- return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
298
- });
299
-
300
- var SpinnerContainer = _styledComponents["default"].div(_templateObject2(), function (props) {
301
- return props.mode === "small" ? "16px" : "140px";
302
- }, function (props) {
303
- return props.mode === "small" ? "16px" : "140px";
304
- });
305
-
306
- var BackOverlay = _styledComponents["default"].div(_templateObject3(), function (props) {
307
- return "".concat(props.theme.overlayBackgroundColor);
308
- }, function (props) {
309
- return "".concat(props.theme.overlayOpacity);
310
- });
311
-
312
- var BackgroundSpinner = _styledComponents["default"].div(_templateObject4());
313
-
314
- var SVGBackground = _styledComponents["default"].svg(_templateObject5());
315
-
316
- var CircleBackground = _styledComponents["default"].circle(_templateObject6(), function (props) {
317
- return "".concat(props.theme.totalCircleColor);
318
- }, function (props) {
319
- return props.mode !== "small" ? "409" : "38";
320
- }, function (props) {
321
- return props.mode !== "small" ? "8.5px" : "2px";
322
- });
323
-
324
- var Spinner = _styledComponents["default"].div(_templateObject7());
325
-
326
- var SVGSpinner = _styledComponents["default"].svg(_templateObject8(), function (props) {
327
- return !props.isDeterminated ? "1.4s linear infinite both spinner-svg" : "";
328
- });
329
-
330
- var CircleSpinner = _styledComponents["default"].circle(_templateObject9(), function (props) {
331
- return props.isDeterminated ? "none" : props.mode !== "small" ? "1.4s ease-in-out infinite both svg-circle-large" : "1.4s ease-in-out infinite both svg-circle-small";
332
- }, function (props) {
333
- return props.backgroundType === "dark" ? props.theme.trackCircleColorOnDark : props.theme.trackCircleColor;
334
- }, function (props) {
335
- return !props.isDeterminated ? "50% 50%" : "";
336
- }, function (props) {
337
- return props.mode !== "small" ? "409" : "38";
338
- }, function (props) {
339
- return props.mode !== "small" ? "8.5px" : "2px";
340
- }, function (props) {
341
- return props.isDeterminated ? props.mode !== "small" ? determinatedValue(props, 409) : determinatedValue(props, 38) : "";
342
- });
343
-
344
- var LabelsContainer = _styledComponents["default"].div(_templateObject10());
345
-
346
- var SpinnerLabel = _styledComponents["default"].p(_templateObject11(), function (props) {
347
- return props.mode === "overlay" ? props.theme.overlayLabelFontFamily : props.theme.labelFontFamily;
348
- }, function (props) {
349
- return props.mode === "overlay" ? props.theme.overlayLabelFontWeight : props.theme.labelFontWeight;
350
- }, function (props) {
351
- return props.mode === "overlay" ? props.theme.overlayLabelFontSize : props.theme.labelFontSize;
352
- }, function (props) {
353
- return props.mode === "overlay" ? props.theme.overlayLabelFontStyle : props.theme.labelFontStyle;
354
- }, function (props) {
355
- return props.mode === "overlay" ? props.theme.overlayLabelFontColor : props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
356
- }, function (props) {
357
- return props.mode === "overlay" ? props.theme.overlayLabelTextAlign : props.theme.labelTextAlign;
358
- }, function (props) {
359
- return props.mode === "overlay" ? props.theme.overlayLabelLetterSpacing : props.theme.labelLetterSpacing;
360
- });
361
-
362
- var SpinnerProgress = _styledComponents["default"].p(_templateObject12(), function (props) {
363
- return props.value !== "" && props.showValue === true && "block" || "none";
364
- }, function (props) {
365
- return props.mode === "overlay" ? props.theme.overlayProgressValueFontFamily : props.theme.progressValueFontFamily;
366
- }, function (props) {
367
- return props.mode === "overlay" ? props.theme.overlayProgressValueFontWeight : props.theme.progressValueFontWeight;
368
- }, function (props) {
369
- return props.mode === "overlay" ? props.theme.overlayProgressValueFontSize : props.theme.progressValueFontSize;
370
- }, function (props) {
371
- return props.mode === "overlay" ? props.theme.overlayProgressValueFontStyle : props.theme.progressValueFontStyle;
372
- }, function (props) {
373
- return props.mode === "overlay" ? props.theme.overlayProgressValueFontColor : props.backgroundType === "dark" ? props.theme.progressValueFontColorOnDark : props.theme.progressValueFontColor;
374
- }, function (props) {
375
- return props.mode === "overlay" ? props.theme.overlayProgressValueTextAlign : props.theme.progressValueTextAlign;
376
- }, function (props) {
377
- return props.mode === "overlay" ? props.theme.overlayProgressValueLetterSpacing : props.theme.progressValueLetterSpacing;
378
- });
379
-
380
- var _default = DxcSpinner;
381
- exports["default"] = _default;