@dxc-technology/halstack-react 0.0.0-9b341c0 → 0.0.0-9b45027

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 (360) hide show
  1. package/BackgroundColorContext.d.ts +10 -0
  2. package/BackgroundColorContext.js +47 -0
  3. package/ThemeContext.d.ts +15 -0
  4. package/ThemeContext.js +243 -0
  5. package/{dist/V3Select → V3Select}/V3Select.js +35 -129
  6. package/{dist/V3Select → V3Select}/index.d.ts +0 -0
  7. package/{dist/V3Textarea → V3Textarea}/V3Textarea.js +12 -16
  8. package/{dist/V3Textarea → V3Textarea}/index.d.ts +0 -0
  9. package/accordion/Accordion.d.ts +4 -0
  10. package/{dist/accordion → accordion}/Accordion.js +37 -132
  11. package/accordion/Accordion.stories.tsx +307 -0
  12. package/accordion/types.d.ts +68 -0
  13. package/accordion/types.js +5 -0
  14. package/accordion-group/AccordionGroup.d.ts +7 -0
  15. package/accordion-group/AccordionGroup.js +170 -0
  16. package/accordion-group/AccordionGroup.stories.tsx +225 -0
  17. package/accordion-group/types.d.ts +72 -0
  18. package/accordion-group/types.js +5 -0
  19. package/alert/Alert.d.ts +4 -0
  20. package/{dist/alert → alert}/Alert.js +40 -153
  21. package/alert/Alert.stories.tsx +170 -0
  22. package/alert/types.d.ts +49 -0
  23. package/alert/types.js +5 -0
  24. package/badge/Badge.js +59 -0
  25. package/bleed/Bleed.d.ts +3 -0
  26. package/bleed/Bleed.js +84 -0
  27. package/bleed/Bleed.stories.tsx +342 -0
  28. package/bleed/types.d.ts +13 -0
  29. package/bleed/types.js +5 -0
  30. package/box/Box.d.ts +4 -0
  31. package/{dist/box → box}/Box.js +15 -45
  32. package/box/Box.stories.tsx +132 -0
  33. package/box/types.d.ts +43 -0
  34. package/box/types.js +5 -0
  35. package/button/Button.d.ts +4 -0
  36. package/{dist/button → button}/Button.js +26 -93
  37. package/button/Button.stories.tsx +274 -0
  38. package/button/types.d.ts +53 -0
  39. package/button/types.js +5 -0
  40. package/card/Card.d.ts +4 -0
  41. package/{dist/card → card}/Card.js +34 -124
  42. package/card/Card.stories.tsx +201 -0
  43. package/card/ice-cream.jpg +0 -0
  44. package/card/types.d.ts +67 -0
  45. package/card/types.js +5 -0
  46. package/checkbox/Checkbox.d.ts +4 -0
  47. package/{dist/checkbox → checkbox}/Checkbox.js +15 -61
  48. package/checkbox/Checkbox.stories.tsx +192 -0
  49. package/checkbox/types.d.ts +60 -0
  50. package/checkbox/types.js +5 -0
  51. package/chip/Chip.d.ts +4 -0
  52. package/{dist/chip → chip}/Chip.js +22 -88
  53. package/chip/Chip.stories.tsx +121 -0
  54. package/chip/types.d.ts +53 -0
  55. package/chip/types.js +5 -0
  56. package/{dist/common → common}/OpenSans.css +0 -0
  57. package/{dist/common → common}/RequiredComponent.js +3 -11
  58. package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
  59. package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
  60. package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
  61. package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  62. package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
  63. package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
  64. package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
  65. package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
  66. package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
  67. package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  68. package/{dist/common → common}/utils.js +0 -0
  69. package/{dist/common → common}/variables.js +126 -88
  70. package/{dist/date → date}/Date.js +17 -23
  71. package/{dist/date → date}/index.d.ts +0 -0
  72. package/date-input/DateInput.d.ts +4 -0
  73. package/{dist/date-input → date-input}/DateInput.js +32 -74
  74. package/date-input/DateInput.stories.tsx +138 -0
  75. package/date-input/types.d.ts +100 -0
  76. package/date-input/types.js +5 -0
  77. package/dialog/Dialog.d.ts +4 -0
  78. package/{dist/dialog → dialog}/Dialog.js +24 -76
  79. package/dialog/Dialog.stories.tsx +212 -0
  80. package/dialog/types.d.ts +43 -0
  81. package/dialog/types.js +5 -0
  82. package/dropdown/Dropdown.d.ts +4 -0
  83. package/{dist/dropdown → dropdown}/Dropdown.js +45 -172
  84. package/dropdown/Dropdown.stories.tsx +247 -0
  85. package/dropdown/types.d.ts +89 -0
  86. package/dropdown/types.js +5 -0
  87. package/file-input/FileInput.d.ts +4 -0
  88. package/file-input/FileInput.js +590 -0
  89. package/file-input/FileInput.stories.tsx +507 -0
  90. package/file-input/FileItem.d.ts +14 -0
  91. package/file-input/FileItem.js +184 -0
  92. package/file-input/types.d.ts +112 -0
  93. package/file-input/types.js +5 -0
  94. package/footer/Footer.d.ts +4 -0
  95. package/footer/Footer.js +260 -0
  96. package/footer/Footer.stories.tsx +130 -0
  97. package/footer/Icons.d.ts +2 -0
  98. package/{dist/footer → footer}/Icons.js +15 -15
  99. package/footer/types.d.ts +65 -0
  100. package/footer/types.js +5 -0
  101. package/header/Header.d.ts +7 -0
  102. package/{dist/header → header}/Header.js +58 -204
  103. package/header/Header.stories.tsx +162 -0
  104. package/header/Icons.d.ts +2 -0
  105. package/{dist/header → header}/Icons.js +7 -32
  106. package/header/types.d.ts +47 -0
  107. package/header/types.js +5 -0
  108. package/heading/Heading.d.ts +4 -0
  109. package/{dist/heading → heading}/Heading.js +25 -96
  110. package/heading/Heading.stories.tsx +54 -0
  111. package/heading/types.d.ts +33 -0
  112. package/heading/types.js +5 -0
  113. package/{dist/input-text → input-text}/Icons.js +2 -2
  114. package/{dist/input-text → input-text}/InputText.js +38 -132
  115. package/{dist/input-text → input-text}/index.d.ts +1 -1
  116. package/inset/Inset.d.ts +3 -0
  117. package/inset/Inset.js +84 -0
  118. package/inset/Inset.stories.tsx +229 -0
  119. package/inset/types.d.ts +13 -0
  120. package/inset/types.js +5 -0
  121. package/layout/ApplicationLayout.d.ts +10 -0
  122. package/{dist/layout → layout}/ApplicationLayout.js +39 -141
  123. package/layout/ApplicationLayout.stories.tsx +171 -0
  124. package/{dist/layout → layout}/Icons.js +7 -7
  125. package/layout/types.d.ts +57 -0
  126. package/layout/types.js +5 -0
  127. package/link/Link.d.ts +3 -0
  128. package/{dist/link → link}/Link.js +19 -95
  129. package/link/Link.stories.tsx +146 -0
  130. package/link/types.d.ts +74 -0
  131. package/link/types.js +5 -0
  132. package/list/List.d.ts +8 -0
  133. package/list/List.js +47 -0
  134. package/list/List.stories.tsx +95 -0
  135. package/main.d.ts +48 -0
  136. package/{dist/main.js → main.js} +118 -82
  137. package/number-input/NumberInput.d.ts +4 -0
  138. package/number-input/NumberInput.js +83 -0
  139. package/number-input/NumberInput.stories.tsx +115 -0
  140. package/number-input/NumberInputContext.d.ts +4 -0
  141. package/{dist/number-input → number-input}/NumberInputContext.js +5 -2
  142. package/number-input/numberInputContextTypes.d.ts +19 -0
  143. package/number-input/numberInputContextTypes.js +5 -0
  144. package/number-input/types.d.ts +117 -0
  145. package/number-input/types.js +5 -0
  146. package/package.json +30 -17
  147. package/{dist/paginator → paginator}/Icons.js +9 -9
  148. package/paginator/Paginator.d.ts +4 -0
  149. package/paginator/Paginator.js +192 -0
  150. package/paginator/Paginator.stories.tsx +63 -0
  151. package/paginator/types.d.ts +38 -0
  152. package/paginator/types.js +5 -0
  153. package/password-input/PasswordInput.d.ts +4 -0
  154. package/{dist/password-input → password-input}/PasswordInput.js +37 -77
  155. package/password-input/PasswordInput.stories.tsx +131 -0
  156. package/password-input/types.d.ts +107 -0
  157. package/password-input/types.js +5 -0
  158. package/progress-bar/ProgressBar.d.ts +4 -0
  159. package/{dist/progress-bar → progress-bar}/ProgressBar.js +22 -94
  160. package/progress-bar/ProgressBar.stories.jsx +58 -0
  161. package/progress-bar/types.d.ts +37 -0
  162. package/progress-bar/types.js +5 -0
  163. package/radio/Radio.d.ts +4 -0
  164. package/{dist/radio → radio}/Radio.js +17 -52
  165. package/radio/Radio.stories.tsx +192 -0
  166. package/radio/types.d.ts +54 -0
  167. package/radio/types.js +5 -0
  168. package/radio-group/Radio.d.ts +4 -0
  169. package/radio-group/Radio.js +130 -0
  170. package/radio-group/RadioGroup.d.ts +4 -0
  171. package/radio-group/RadioGroup.js +268 -0
  172. package/radio-group/RadioGroup.stories.tsx +79 -0
  173. package/radio-group/types.d.ts +36 -0
  174. package/radio-group/types.js +5 -0
  175. package/resultsetTable/ResultsetTable.d.ts +4 -0
  176. package/{dist/resultsetTable → resultsetTable}/ResultsetTable.js +39 -146
  177. package/resultsetTable/ResultsetTable.stories.tsx +275 -0
  178. package/resultsetTable/types.d.ts +67 -0
  179. package/resultsetTable/types.js +5 -0
  180. package/row/Row.d.ts +11 -0
  181. package/row/Row.js +127 -0
  182. package/row/Row.stories.tsx +239 -0
  183. package/select/Select.d.ts +4 -0
  184. package/{dist/select → select}/Select.js +271 -477
  185. package/select/Select.stories.tsx +572 -0
  186. package/select/types.d.ts +170 -0
  187. package/select/types.js +5 -0
  188. package/sidenav/Sidenav.d.ts +9 -0
  189. package/{dist/sidenav → sidenav}/Sidenav.js +21 -64
  190. package/sidenav/Sidenav.stories.tsx +182 -0
  191. package/sidenav/types.d.ts +50 -0
  192. package/sidenav/types.js +5 -0
  193. package/slider/Slider.d.ts +4 -0
  194. package/{dist/slider → slider}/Slider.js +74 -161
  195. package/slider/Slider.stories.tsx +177 -0
  196. package/slider/types.d.ts +78 -0
  197. package/slider/types.js +5 -0
  198. package/spinner/Spinner.d.ts +4 -0
  199. package/spinner/Spinner.js +250 -0
  200. package/spinner/Spinner.stories.jsx +103 -0
  201. package/spinner/types.d.ts +32 -0
  202. package/spinner/types.js +5 -0
  203. package/stack/Stack.d.ts +10 -0
  204. package/stack/Stack.js +97 -0
  205. package/stack/Stack.stories.tsx +166 -0
  206. package/switch/Switch.d.ts +4 -0
  207. package/{dist/switch → switch}/Switch.js +28 -71
  208. package/switch/Switch.stories.tsx +160 -0
  209. package/switch/types.d.ts +58 -0
  210. package/switch/types.js +5 -0
  211. package/table/Table.d.ts +4 -0
  212. package/{dist/table → table}/Table.js +12 -26
  213. package/table/Table.stories.jsx +277 -0
  214. package/table/types.d.ts +21 -0
  215. package/table/types.js +5 -0
  216. package/tabs/Tabs.d.ts +4 -0
  217. package/tabs/Tabs.js +213 -0
  218. package/tabs/Tabs.stories.tsx +120 -0
  219. package/tabs/types.d.ts +78 -0
  220. package/tabs/types.js +5 -0
  221. package/tag/Tag.d.ts +4 -0
  222. package/tag/Tag.js +193 -0
  223. package/tag/Tag.stories.tsx +145 -0
  224. package/tag/types.d.ts +60 -0
  225. package/tag/types.js +5 -0
  226. package/text/Text.d.ts +7 -0
  227. package/text/Text.js +30 -0
  228. package/text/Text.stories.tsx +19 -0
  229. package/text-input/TextInput.d.ts +4 -0
  230. package/{dist/text-input → text-input}/TextInput.js +278 -458
  231. package/text-input/TextInput.stories.tsx +456 -0
  232. package/text-input/types.d.ts +159 -0
  233. package/text-input/types.js +5 -0
  234. package/textarea/Textarea.d.ts +4 -0
  235. package/{dist/textarea → textarea}/Textarea.js +38 -123
  236. package/textarea/Textarea.stories.jsx +136 -0
  237. package/textarea/types.d.ts +130 -0
  238. package/textarea/types.js +5 -0
  239. package/{dist/toggle → toggle}/Toggle.js +16 -50
  240. package/{dist/toggle → toggle}/index.d.ts +0 -0
  241. package/toggle-group/ToggleGroup.d.ts +4 -0
  242. package/{dist/toggle-group → toggle-group}/ToggleGroup.js +35 -148
  243. package/toggle-group/ToggleGroup.stories.tsx +173 -0
  244. package/toggle-group/types.d.ts +97 -0
  245. package/toggle-group/types.js +5 -0
  246. package/{dist/upload → upload}/Upload.js +11 -15
  247. package/upload/buttons-upload/ButtonsUpload.js +111 -0
  248. package/{dist/upload → upload}/buttons-upload/Icons.js +7 -7
  249. package/upload/dragAndDropArea/DragAndDropArea.js +225 -0
  250. package/{dist/upload → upload}/dragAndDropArea/Icons.js +6 -6
  251. package/upload/file-upload/FileToUpload.js +115 -0
  252. package/{dist/upload → upload}/file-upload/Icons.js +13 -13
  253. package/{dist/upload → upload}/files-upload/FilesToUpload.js +13 -27
  254. package/{dist/upload → upload}/index.d.ts +0 -0
  255. package/{dist/upload → upload}/transaction/Icons.js +31 -31
  256. package/upload/transaction/Transaction.js +104 -0
  257. package/upload/transactions/Transactions.js +94 -0
  258. package/useTheme.d.ts +2 -0
  259. package/{dist/useTheme.js → useTheme.js} +1 -1
  260. package/wizard/Wizard.d.ts +4 -0
  261. package/wizard/Wizard.js +281 -0
  262. package/wizard/Wizard.stories.tsx +224 -0
  263. package/wizard/types.d.ts +60 -0
  264. package/wizard/types.js +5 -0
  265. package/README.md +0 -66
  266. package/babel.config.js +0 -8
  267. package/dist/BackgroundColorContext.js +0 -46
  268. package/dist/ThemeContext.js +0 -250
  269. package/dist/accordion/index.d.ts +0 -28
  270. package/dist/accordion-group/AccordionGroup.js +0 -186
  271. package/dist/accordion-group/index.d.ts +0 -16
  272. package/dist/alert/index.d.ts +0 -51
  273. package/dist/badge/Badge.js +0 -63
  274. package/dist/box/index.d.ts +0 -25
  275. package/dist/button/index.d.ts +0 -24
  276. package/dist/card/index.d.ts +0 -22
  277. package/dist/checkbox/index.d.ts +0 -24
  278. package/dist/chip/index.d.ts +0 -22
  279. package/dist/date-input/index.d.ts +0 -95
  280. package/dist/dialog/index.d.ts +0 -18
  281. package/dist/dropdown/index.d.ts +0 -26
  282. package/dist/file-input/FileInput.js +0 -644
  283. package/dist/file-input/FileItem.js +0 -287
  284. package/dist/file-input/index.d.ts +0 -81
  285. package/dist/footer/Footer.js +0 -421
  286. package/dist/footer/index.d.ts +0 -25
  287. package/dist/header/index.d.ts +0 -25
  288. package/dist/heading/index.d.ts +0 -17
  289. package/dist/link/index.d.ts +0 -23
  290. package/dist/main.d.ts +0 -40
  291. package/dist/number-input/NumberInput.js +0 -136
  292. package/dist/number-input/index.d.ts +0 -113
  293. package/dist/paginator/Paginator.js +0 -283
  294. package/dist/paginator/index.d.ts +0 -20
  295. package/dist/password-input/index.d.ts +0 -94
  296. package/dist/progress-bar/index.d.ts +0 -18
  297. package/dist/radio/index.d.ts +0 -23
  298. package/dist/resultsetTable/index.d.ts +0 -19
  299. package/dist/select/index.d.ts +0 -53
  300. package/dist/sidenav/index.d.ts +0 -13
  301. package/dist/slider/index.d.ts +0 -29
  302. package/dist/spinner/Spinner.js +0 -381
  303. package/dist/spinner/index.d.ts +0 -17
  304. package/dist/switch/index.d.ts +0 -24
  305. package/dist/table/index.d.ts +0 -13
  306. package/dist/tabs/Tabs.js +0 -343
  307. package/dist/tabs/index.d.ts +0 -19
  308. package/dist/tag/Tag.js +0 -282
  309. package/dist/tag/index.d.ts +0 -24
  310. package/dist/text-input/index.d.ts +0 -135
  311. package/dist/textarea/index.d.ts +0 -117
  312. package/dist/toggle-group/index.d.ts +0 -21
  313. package/dist/upload/buttons-upload/ButtonsUpload.js +0 -135
  314. package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -329
  315. package/dist/upload/file-upload/FileToUpload.js +0 -189
  316. package/dist/upload/transaction/Transaction.js +0 -148
  317. package/dist/upload/transactions/Transactions.js +0 -138
  318. package/dist/wizard/Icons.js +0 -65
  319. package/dist/wizard/Wizard.js +0 -405
  320. package/dist/wizard/index.d.ts +0 -18
  321. package/test/Accordion.test.js +0 -33
  322. package/test/AccordionGroup.test.js +0 -125
  323. package/test/Alert.test.js +0 -53
  324. package/test/Box.test.js +0 -10
  325. package/test/Button.test.js +0 -18
  326. package/test/Card.test.js +0 -30
  327. package/test/Checkbox.test.js +0 -45
  328. package/test/Chip.test.js +0 -25
  329. package/test/Date.test.js +0 -395
  330. package/test/DateInput.test.js +0 -242
  331. package/test/Dialog.test.js +0 -23
  332. package/test/Dropdown.test.js +0 -145
  333. package/test/FileInput.test.js +0 -201
  334. package/test/Footer.test.js +0 -94
  335. package/test/Header.test.js +0 -34
  336. package/test/Heading.test.js +0 -83
  337. package/test/InputText.test.js +0 -240
  338. package/test/Link.test.js +0 -43
  339. package/test/NumberInput.test.js +0 -259
  340. package/test/Paginator.test.js +0 -177
  341. package/test/PasswordInput.test.js +0 -83
  342. package/test/ProgressBar.test.js +0 -35
  343. package/test/Radio.test.js +0 -37
  344. package/test/ResultsetTable.test.js +0 -329
  345. package/test/Sidenav.test.js +0 -45
  346. package/test/Slider.test.js +0 -74
  347. package/test/Spinner.test.js +0 -32
  348. package/test/Switch.test.js +0 -45
  349. package/test/Table.test.js +0 -36
  350. package/test/Tabs.test.js +0 -109
  351. package/test/Tag.test.js +0 -32
  352. package/test/TextInput.test.js +0 -732
  353. package/test/Textarea.test.js +0 -193
  354. package/test/ToggleGroup.test.js +0 -85
  355. package/test/Upload.test.js +0 -60
  356. package/test/V3Select.test.js +0 -212
  357. package/test/V3TextArea.test.js +0 -51
  358. package/test/Wizard.test.js +0 -130
  359. package/test/mocks/pngMock.js +0 -1
  360. package/test/mocks/svgMock.js +0 -1
@@ -0,0 +1,74 @@
1
+ /// <reference types="react" />
2
+ declare type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3
+ declare type Margin = {
4
+ top?: Space;
5
+ bottom?: Space;
6
+ left?: Space;
7
+ right?: Space;
8
+ };
9
+ declare type LinkCommonProps = {
10
+ /**
11
+ * If true, the color is inherited from parent.
12
+ */
13
+ inheritColor?: boolean;
14
+ /**
15
+ * If true, the link is disabled.
16
+ */
17
+ disabled?: boolean;
18
+ /**
19
+ * @Deprecated Source of the icon.
20
+ */
21
+ iconSrc?: string;
22
+ /**
23
+ * Indicates the position of the icon in the component.
24
+ */
25
+ iconPosition?: "before" | "after";
26
+ /**
27
+ * Page to be opened when the user clicks on the link.
28
+ */
29
+ href?: string;
30
+ /**
31
+ * If true, the page is opened in a new browser tab.
32
+ */
33
+ newWindow?: boolean;
34
+ /**
35
+ * If defined, the link will be displayed as a button. This
36
+ * function will be called when the user clicks the link.
37
+ */
38
+ onClick?: () => void;
39
+ /**
40
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
41
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
42
+ */
43
+ margin?: Space | Margin;
44
+ /**
45
+ * Value of the tabindex.
46
+ */
47
+ tabIndex?: number;
48
+ };
49
+ export declare type LinkTextProps = LinkCommonProps & {
50
+ /**
51
+ * Link text.
52
+ */
53
+ text: string;
54
+ /**
55
+ * Element used as the icon that will be placed next to the link text.
56
+ */
57
+ icon?: SVG;
58
+ };
59
+ export declare type LinkIconProps = LinkCommonProps & {
60
+ /**
61
+ * Link text.
62
+ */
63
+ text?: string;
64
+ /**
65
+ * Element used as the icon that will be placed next to the link text.
66
+ */
67
+ icon: SVG;
68
+ };
69
+ declare type Overload = {
70
+ (props: LinkTextProps): JSX.Element;
71
+ (props: LinkIconProps): JSX.Element;
72
+ };
73
+ declare type SVG = React.SVGProps<SVGSVGElement> | React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
74
+ export default Overload;
package/link/types.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
package/list/List.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ declare type ListProps = {
3
+ children: React.ReactNode;
4
+ gutter?: "none" | "xxxsmall" | "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | "xxxlarge";
5
+ type?: "disc" | "circle" | "square" | "number";
6
+ };
7
+ declare function List({ children, type, gutter }: ListProps): JSX.Element;
8
+ export default List;
package/list/List.js ADDED
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
15
+
16
+ var _Stack = _interopRequireDefault(require("../stack/Stack"));
17
+
18
+ var _Text = _interopRequireDefault(require("../text/Text"));
19
+
20
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
21
+
22
+ function List(_ref) {
23
+ var children = _ref.children,
24
+ _ref$type = _ref.type,
25
+ type = _ref$type === void 0 ? "disc" : _ref$type,
26
+ _ref$gutter = _ref.gutter,
27
+ gutter = _ref$gutter === void 0 ? "xxsmall" : _ref$gutter;
28
+ return /*#__PURE__*/_react["default"].createElement(_Stack["default"], {
29
+ as: type === "number" ? "ol" : "ul",
30
+ gutter: gutter
31
+ }, _react["default"].Children.map(children, function (child, index) {
32
+ return /*#__PURE__*/_react["default"].createElement(ListItem, null, type === "number" ? /*#__PURE__*/_react["default"].createElement(Number, null, /*#__PURE__*/_react["default"].createElement(_Text["default"], null, index + 1, ".")) : type === "square" ? /*#__PURE__*/_react["default"].createElement(Square, null) : type === "circle" ? /*#__PURE__*/_react["default"].createElement(Circle, null) : /*#__PURE__*/_react["default"].createElement(Disc, null), child);
33
+ }));
34
+ }
35
+
36
+ var Number = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n user-select: none;\n margin-right: 10px;\n flex-shrink: 0;\n"])));
37
+
38
+ var Square = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n background-color: black;\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n margin-top: 8px;\n margin-right: 10px;\n"])));
39
+
40
+ var Circle = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n width: 5px;\n height: 5px;\n border-radius: 50%;\n border: 1px solid black;\n flex-shrink: 0;\n margin-top: 8px;\n margin-right: 10px;\n box-sizing: border-box;\n"])));
41
+
42
+ var Disc = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n background-color: black;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n flex-shrink: 0;\n margin-top: 8px;\n margin-right: 10px;\n"])));
43
+
44
+ var ListItem = _styledComponents["default"].li(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n margin: 0px;\n padding: 0px;\n list-style: none;\n display: flex;\n"])));
45
+
46
+ var _default = List;
47
+ exports["default"] = _default;
@@ -0,0 +1,95 @@
1
+ import React from "react";
2
+ import styled from "styled-components";
3
+ import Title from "../../.storybook/components/Title";
4
+ import DxcList from "./List";
5
+ import DxcText from "../text/Text";
6
+
7
+ export default {
8
+ title: "List",
9
+ component: DxcList,
10
+ };
11
+
12
+ export const Chromatic = () => (
13
+ <>
14
+ <Title title="Default list" theme="light" level={4} />
15
+ <DxcList>
16
+ <DxcText>Text 1.</DxcText>
17
+ <DxcText>Text 2.</DxcText>
18
+ </DxcList>
19
+ <Title title="Number" theme="light" level={4} />
20
+ <DxcList type="number">
21
+ <DxcText>Text 1.</DxcText>
22
+ <DxcText>Text 2.</DxcText>
23
+ </DxcList>
24
+ <Title title="Square" theme="light" level={4} />
25
+ <DxcList type="square">
26
+ <DxcText>Text 1.</DxcText>
27
+ <DxcText>Text 2.</DxcText>
28
+ </DxcList>
29
+ <Title title="Circle" theme="light" level={4} />
30
+ <DxcList type="circle">
31
+ <DxcText>Text 1.</DxcText>
32
+ <DxcText>Text 2.</DxcText>
33
+ </DxcList>
34
+ <Title title="Multiple lines" theme="light" level={4} />
35
+ <Container>
36
+ <DxcList>
37
+ <DxcText>
38
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
39
+ magna aliqua.
40
+ </DxcText>
41
+ <DxcText>Text 2.</DxcText>
42
+ </DxcList>
43
+ </Container>
44
+ <Title title="gutter = xxxsmall" theme="light" level={4} />
45
+ <DxcList gutter="xxsmall">
46
+ <DxcText>Text 1.</DxcText>
47
+ <DxcText>Text 2.</DxcText>
48
+ </DxcList>
49
+ <Title title="gutter = xxsmall" theme="light" level={4} />
50
+ <DxcList gutter="xxsmall">
51
+ <DxcText>Text 1.</DxcText>
52
+ <DxcText>Text 2.</DxcText>
53
+ </DxcList>
54
+ <Title title="gutter = xsmall" theme="light" level={4} />
55
+ <DxcList gutter="xsmall">
56
+ <DxcText>Text 1.</DxcText>
57
+ <DxcText>Text 2.</DxcText>
58
+ </DxcList>
59
+ <Title title="gutter = small" theme="light" level={4} />
60
+ <DxcList gutter="small">
61
+ <DxcText>Text 1.</DxcText>
62
+ <DxcText>Text 2.</DxcText>
63
+ </DxcList>
64
+ <Title title="gutter = medium" theme="light" level={4} />
65
+ <DxcList gutter="medium">
66
+ <DxcText>Text 1.</DxcText>
67
+ <DxcText>Text 2.</DxcText>
68
+ </DxcList>
69
+ <Title title="gutter = large" theme="light" level={4} />
70
+ <DxcList gutter="large">
71
+ <DxcText>Text 1.</DxcText>
72
+ <DxcText>Text 2.</DxcText>
73
+ </DxcList>
74
+ <Title title="gutter = xlarge" theme="light" level={4} />
75
+ <DxcList gutter="xlarge">
76
+ <DxcText>Text 1.</DxcText>
77
+ <DxcText>Text 2.</DxcText>
78
+ </DxcList>
79
+ <Title title="gutter = xxlarge" theme="light" level={4} />
80
+ <DxcList gutter="xxlarge">
81
+ <DxcText>Text 1.</DxcText>
82
+ <DxcText>Text 2.</DxcText>
83
+ </DxcList>
84
+ <Title title="gutter = xxxlarge" theme="light" level={4} />
85
+ <DxcList gutter="xxxlarge">
86
+ <DxcText>Text 1.</DxcText>
87
+ <DxcText>Text 2.</DxcText>
88
+ </DxcList>
89
+
90
+ </>
91
+ );
92
+
93
+ const Container = styled.div`
94
+ width: 400px;
95
+ `;
package/main.d.ts ADDED
@@ -0,0 +1,48 @@
1
+ import DxcAlert from "./alert/Alert";
2
+ import DxcAccordion from "./accordion/Accordion";
3
+ import DxcButton from "./button/Button";
4
+ import DxcCard from "./card/Card";
5
+ import DxcCheckbox from "./checkbox/Checkbox";
6
+ import DxcDate from "./date/Date";
7
+ import DxcDialog from "./dialog/Dialog";
8
+ import DxcDropdown from "./dropdown/Dropdown";
9
+ import DxcFooter from "./footer/Footer";
10
+ import DxcHeader from "./header/Header";
11
+ import DxcInput from "./input-text/InputText";
12
+ import DxcRadio from "./radio/Radio";
13
+ import V3DxcSelect from "./V3Select/V3Select";
14
+ import DxcSlider from "./slider/Slider";
15
+ import DxcSwitch from "./switch/Switch";
16
+ import DxcTabs from "./tabs/Tabs";
17
+ import DxcProgressBar from "./progress-bar/ProgressBar";
18
+ import DxcSpinner from "./spinner/Spinner";
19
+ import DxcUpload from "./upload/Upload";
20
+ import DxcTable from "./table/Table";
21
+ import DxcBox from "./box/Box";
22
+ import DxcTag from "./tag/Tag";
23
+ import DxcPaginator from "./paginator/Paginator";
24
+ import DxcSidenav from "./sidenav/Sidenav";
25
+ import DxcWizard from "./wizard/Wizard";
26
+ import DxcLink from "./link/Link";
27
+ import DxcHeading from "./heading/Heading";
28
+ import V3DxcTextarea from "./V3Textarea/V3Textarea";
29
+ import DxcResultsetTable from "./resultsetTable/ResultsetTable";
30
+ import DxcChip from "./chip/Chip";
31
+ import DxcApplicationLayout from "./layout/ApplicationLayout";
32
+ import DxcToggleGroup from "./toggle-group/ToggleGroup";
33
+ import DxcAccordionGroup from "./accordion-group/AccordionGroup";
34
+ import DxcBadge from "./badge/Badge";
35
+ import DxcTextInput from "./text-input/TextInput";
36
+ import DxcPasswordInput from "./password-input/PasswordInput";
37
+ import DxcDateInput from "./date-input/DateInput";
38
+ import DxcNumberInput from "./number-input/NumberInput";
39
+ import DxcTextarea from "./textarea/Textarea";
40
+ import DxcSelect from "./select/Select";
41
+ import DxcFileInput from "./file-input/FileInput";
42
+ import DxcStack from "./stack/Stack";
43
+ import DxcRow from "./row/Row";
44
+ import DxcText from "./text/Text";
45
+ import DxcList from "./list/List";
46
+ import ThemeContext, { ThemeProvider } from "./ThemeContext";
47
+ import { BackgroundColorProvider } from "./BackgroundColorContext";
48
+ export { DxcAlert, DxcButton, DxcFooter, DxcCheckbox, V3DxcSelect, DxcInput, DxcTextInput, DxcDropdown, DxcSwitch, DxcSlider, DxcRadio, DxcDate, DxcHeader, DxcTable, DxcTabs, DxcToggleGroup, DxcDialog, DxcCard, DxcProgressBar, DxcAccordion, DxcSpinner, DxcUpload, DxcBox, DxcTag, DxcPaginator, DxcSidenav, DxcWizard, DxcLink, DxcHeading, V3DxcTextarea, DxcResultsetTable, DxcChip, DxcApplicationLayout, ThemeContext, ThemeProvider, BackgroundColorProvider, DxcAccordionGroup, DxcBadge, DxcPasswordInput, DxcDateInput, DxcNumberInput, DxcTextarea, DxcSelect, DxcFileInput, DxcStack, DxcRow, DxcText, DxcList, };
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
4
 
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- Object.defineProperty(exports, "DxcAlert", {
10
+ Object.defineProperty(exports, "BackgroundColorProvider", {
11
11
  enumerable: true,
12
12
  get: function get() {
13
- return _Alert["default"];
13
+ return _BackgroundColorContext.BackgroundColorProvider;
14
14
  }
15
15
  });
16
16
  Object.defineProperty(exports, "DxcAccordion", {
@@ -19,124 +19,130 @@ Object.defineProperty(exports, "DxcAccordion", {
19
19
  return _Accordion["default"];
20
20
  }
21
21
  });
22
- Object.defineProperty(exports, "DxcButton", {
22
+ Object.defineProperty(exports, "DxcAccordionGroup", {
23
23
  enumerable: true,
24
24
  get: function get() {
25
- return _Button["default"];
25
+ return _AccordionGroup["default"];
26
26
  }
27
27
  });
28
- Object.defineProperty(exports, "DxcCard", {
28
+ Object.defineProperty(exports, "DxcAlert", {
29
29
  enumerable: true,
30
30
  get: function get() {
31
- return _Card["default"];
31
+ return _Alert["default"];
32
32
  }
33
33
  });
34
- Object.defineProperty(exports, "DxcCheckbox", {
34
+ Object.defineProperty(exports, "DxcApplicationLayout", {
35
35
  enumerable: true,
36
36
  get: function get() {
37
- return _Checkbox["default"];
37
+ return _ApplicationLayout["default"];
38
38
  }
39
39
  });
40
- Object.defineProperty(exports, "DxcDate", {
40
+ Object.defineProperty(exports, "DxcBadge", {
41
41
  enumerable: true,
42
42
  get: function get() {
43
- return _Date["default"];
43
+ return _Badge["default"];
44
44
  }
45
45
  });
46
- Object.defineProperty(exports, "DxcDialog", {
46
+ Object.defineProperty(exports, "DxcBox", {
47
47
  enumerable: true,
48
48
  get: function get() {
49
- return _Dialog["default"];
49
+ return _Box["default"];
50
50
  }
51
51
  });
52
- Object.defineProperty(exports, "DxcDropdown", {
52
+ Object.defineProperty(exports, "DxcButton", {
53
53
  enumerable: true,
54
54
  get: function get() {
55
- return _Dropdown["default"];
55
+ return _Button["default"];
56
56
  }
57
57
  });
58
- Object.defineProperty(exports, "DxcFooter", {
58
+ Object.defineProperty(exports, "DxcCard", {
59
59
  enumerable: true,
60
60
  get: function get() {
61
- return _Footer["default"];
61
+ return _Card["default"];
62
62
  }
63
63
  });
64
- Object.defineProperty(exports, "DxcHeader", {
64
+ Object.defineProperty(exports, "DxcCheckbox", {
65
65
  enumerable: true,
66
66
  get: function get() {
67
- return _Header["default"];
67
+ return _Checkbox["default"];
68
68
  }
69
69
  });
70
- Object.defineProperty(exports, "DxcInputText", {
70
+ Object.defineProperty(exports, "DxcChip", {
71
71
  enumerable: true,
72
72
  get: function get() {
73
- return _InputText["default"];
73
+ return _Chip["default"];
74
74
  }
75
75
  });
76
- Object.defineProperty(exports, "DxcRadio", {
76
+ Object.defineProperty(exports, "DxcDate", {
77
77
  enumerable: true,
78
78
  get: function get() {
79
- return _Radio["default"];
79
+ return _Date["default"];
80
80
  }
81
81
  });
82
- Object.defineProperty(exports, "V3DxcSelect", {
82
+ Object.defineProperty(exports, "DxcDateInput", {
83
83
  enumerable: true,
84
84
  get: function get() {
85
- return _V3Select["default"];
85
+ return _DateInput["default"];
86
86
  }
87
87
  });
88
- Object.defineProperty(exports, "DxcSlider", {
88
+ Object.defineProperty(exports, "DxcDialog", {
89
89
  enumerable: true,
90
90
  get: function get() {
91
- return _Slider["default"];
91
+ return _Dialog["default"];
92
92
  }
93
93
  });
94
- Object.defineProperty(exports, "DxcSwitch", {
94
+ Object.defineProperty(exports, "DxcDropdown", {
95
95
  enumerable: true,
96
96
  get: function get() {
97
- return _Switch["default"];
97
+ return _Dropdown["default"];
98
98
  }
99
99
  });
100
- Object.defineProperty(exports, "DxcTabs", {
100
+ Object.defineProperty(exports, "DxcFileInput", {
101
101
  enumerable: true,
102
102
  get: function get() {
103
- return _Tabs["default"];
103
+ return _FileInput["default"];
104
104
  }
105
105
  });
106
- Object.defineProperty(exports, "DxcProgressBar", {
106
+ Object.defineProperty(exports, "DxcFooter", {
107
107
  enumerable: true,
108
108
  get: function get() {
109
- return _ProgressBar["default"];
109
+ return _Footer["default"];
110
110
  }
111
111
  });
112
- Object.defineProperty(exports, "DxcSpinner", {
112
+ Object.defineProperty(exports, "DxcHeader", {
113
113
  enumerable: true,
114
114
  get: function get() {
115
- return _Spinner["default"];
115
+ return _Header["default"];
116
116
  }
117
117
  });
118
- Object.defineProperty(exports, "DxcUpload", {
118
+ Object.defineProperty(exports, "DxcHeading", {
119
119
  enumerable: true,
120
120
  get: function get() {
121
- return _Upload["default"];
121
+ return _Heading["default"];
122
122
  }
123
123
  });
124
- Object.defineProperty(exports, "DxcTable", {
124
+ Object.defineProperty(exports, "DxcInput", {
125
125
  enumerable: true,
126
126
  get: function get() {
127
- return _Table["default"];
127
+ return _InputText["default"];
128
128
  }
129
129
  });
130
- Object.defineProperty(exports, "DxcBox", {
130
+ Object.defineProperty(exports, "DxcLink", {
131
131
  enumerable: true,
132
132
  get: function get() {
133
- return _Box["default"];
133
+ return _Link["default"];
134
134
  }
135
135
  });
136
- Object.defineProperty(exports, "DxcTag", {
136
+ Object.defineProperty(exports, "DxcList", {
137
137
  enumerable: true,
138
138
  get: function get() {
139
- return _Tag["default"];
139
+ return _List["default"];
140
+ }
141
+ });
142
+ Object.defineProperty(exports, "DxcNumberInput", {
143
+ enumerable: true,
144
+ get: function get() {
145
+ return _NumberInput["default"];
140
146
  }
141
147
  });
142
148
  Object.defineProperty(exports, "DxcPaginator", {
@@ -145,94 +151,100 @@ Object.defineProperty(exports, "DxcPaginator", {
145
151
  return _Paginator["default"];
146
152
  }
147
153
  });
148
- Object.defineProperty(exports, "DxcSidenav", {
154
+ Object.defineProperty(exports, "DxcPasswordInput", {
149
155
  enumerable: true,
150
156
  get: function get() {
151
- return _Sidenav["default"];
157
+ return _PasswordInput["default"];
152
158
  }
153
159
  });
154
- Object.defineProperty(exports, "DxcWizard", {
160
+ Object.defineProperty(exports, "DxcProgressBar", {
155
161
  enumerable: true,
156
162
  get: function get() {
157
- return _Wizard["default"];
163
+ return _ProgressBar["default"];
158
164
  }
159
165
  });
160
- Object.defineProperty(exports, "DxcLink", {
166
+ Object.defineProperty(exports, "DxcRadio", {
161
167
  enumerable: true,
162
168
  get: function get() {
163
- return _Link["default"];
169
+ return _Radio["default"];
164
170
  }
165
171
  });
166
- Object.defineProperty(exports, "DxcHeading", {
172
+ Object.defineProperty(exports, "DxcResultsetTable", {
167
173
  enumerable: true,
168
174
  get: function get() {
169
- return _Heading["default"];
175
+ return _ResultsetTable["default"];
170
176
  }
171
177
  });
172
- Object.defineProperty(exports, "V3DxcTextarea", {
178
+ Object.defineProperty(exports, "DxcRow", {
173
179
  enumerable: true,
174
180
  get: function get() {
175
- return _V3Textarea["default"];
181
+ return _Row["default"];
176
182
  }
177
183
  });
178
- Object.defineProperty(exports, "DxcResultsetTable", {
184
+ Object.defineProperty(exports, "DxcSelect", {
179
185
  enumerable: true,
180
186
  get: function get() {
181
- return _ResultsetTable["default"];
187
+ return _Select["default"];
182
188
  }
183
189
  });
184
- Object.defineProperty(exports, "DxcChip", {
190
+ Object.defineProperty(exports, "DxcSidenav", {
185
191
  enumerable: true,
186
192
  get: function get() {
187
- return _Chip["default"];
193
+ return _Sidenav["default"];
188
194
  }
189
195
  });
190
- Object.defineProperty(exports, "DxcApplicationLayout", {
196
+ Object.defineProperty(exports, "DxcSlider", {
191
197
  enumerable: true,
192
198
  get: function get() {
193
- return _ApplicationLayout["default"];
199
+ return _Slider["default"];
194
200
  }
195
201
  });
196
- Object.defineProperty(exports, "DxcToggleGroup", {
202
+ Object.defineProperty(exports, "DxcSpinner", {
197
203
  enumerable: true,
198
204
  get: function get() {
199
- return _ToggleGroup["default"];
205
+ return _Spinner["default"];
200
206
  }
201
207
  });
202
- Object.defineProperty(exports, "DxcAccordionGroup", {
208
+ Object.defineProperty(exports, "DxcStack", {
203
209
  enumerable: true,
204
210
  get: function get() {
205
- return _AccordionGroup["default"];
211
+ return _Stack["default"];
206
212
  }
207
213
  });
208
- Object.defineProperty(exports, "DxcBadge", {
214
+ Object.defineProperty(exports, "DxcSwitch", {
209
215
  enumerable: true,
210
216
  get: function get() {
211
- return _Badge["default"];
217
+ return _Switch["default"];
212
218
  }
213
219
  });
214
- Object.defineProperty(exports, "DxcTextInput", {
220
+ Object.defineProperty(exports, "DxcTable", {
215
221
  enumerable: true,
216
222
  get: function get() {
217
- return _TextInput["default"];
223
+ return _Table["default"];
218
224
  }
219
225
  });
220
- Object.defineProperty(exports, "DxcPasswordInput", {
226
+ Object.defineProperty(exports, "DxcTabs", {
221
227
  enumerable: true,
222
228
  get: function get() {
223
- return _PasswordInput["default"];
229
+ return _Tabs["default"];
224
230
  }
225
231
  });
226
- Object.defineProperty(exports, "DxcDateInput", {
232
+ Object.defineProperty(exports, "DxcTag", {
227
233
  enumerable: true,
228
234
  get: function get() {
229
- return _DateInput["default"];
235
+ return _Tag["default"];
230
236
  }
231
237
  });
232
- Object.defineProperty(exports, "DxcNumberInput", {
238
+ Object.defineProperty(exports, "DxcText", {
233
239
  enumerable: true,
234
240
  get: function get() {
235
- return _NumberInput["default"];
241
+ return _Text["default"];
242
+ }
243
+ });
244
+ Object.defineProperty(exports, "DxcTextInput", {
245
+ enumerable: true,
246
+ get: function get() {
247
+ return _TextInput["default"];
236
248
  }
237
249
  });
238
250
  Object.defineProperty(exports, "DxcTextarea", {
@@ -241,16 +253,22 @@ Object.defineProperty(exports, "DxcTextarea", {
241
253
  return _Textarea["default"];
242
254
  }
243
255
  });
244
- Object.defineProperty(exports, "DxcSelect", {
256
+ Object.defineProperty(exports, "DxcToggleGroup", {
245
257
  enumerable: true,
246
258
  get: function get() {
247
- return _Select["default"];
259
+ return _ToggleGroup["default"];
248
260
  }
249
261
  });
250
- Object.defineProperty(exports, "DxcFileInput", {
262
+ Object.defineProperty(exports, "DxcUpload", {
251
263
  enumerable: true,
252
264
  get: function get() {
253
- return _FileInput["default"];
265
+ return _Upload["default"];
266
+ }
267
+ });
268
+ Object.defineProperty(exports, "DxcWizard", {
269
+ enumerable: true,
270
+ get: function get() {
271
+ return _Wizard["default"];
254
272
  }
255
273
  });
256
274
  Object.defineProperty(exports, "ThemeContext", {
@@ -265,10 +283,16 @@ Object.defineProperty(exports, "ThemeProvider", {
265
283
  return _ThemeContext.ThemeProvider;
266
284
  }
267
285
  });
268
- Object.defineProperty(exports, "BackgroundColorProvider", {
286
+ Object.defineProperty(exports, "V3DxcSelect", {
269
287
  enumerable: true,
270
288
  get: function get() {
271
- return _BackgroundColorContext.BackgroundColorProvider;
289
+ return _V3Select["default"];
290
+ }
291
+ });
292
+ Object.defineProperty(exports, "V3DxcTextarea", {
293
+ enumerable: true,
294
+ get: function get() {
295
+ return _V3Textarea["default"];
272
296
  }
273
297
  });
274
298
 
@@ -354,6 +378,18 @@ var _Select = _interopRequireDefault(require("./select/Select"));
354
378
 
355
379
  var _FileInput = _interopRequireDefault(require("./file-input/FileInput"));
356
380
 
357
- var _ThemeContext = _interopRequireWildcard(require("./ThemeContext.js"));
381
+ var _Stack = _interopRequireDefault(require("./stack/Stack"));
382
+
383
+ var _Row = _interopRequireDefault(require("./row/Row"));
384
+
385
+ var _Text = _interopRequireDefault(require("./text/Text"));
386
+
387
+ var _List = _interopRequireDefault(require("./list/List"));
388
+
389
+ var _ThemeContext = _interopRequireWildcard(require("./ThemeContext"));
390
+
391
+ var _BackgroundColorContext = require("./BackgroundColorContext");
392
+
393
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
358
394
 
359
- var _BackgroundColorContext = require("./BackgroundColorContext.js");
395
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }