@dxc-technology/halstack-react 0.0.0-7da4003 → 0.0.0-83f5e92

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 (265) hide show
  1. package/BackgroundColorContext.js +50 -0
  2. package/ThemeContext.js +246 -0
  3. package/{dist/select/Select.js → V3Select/V3Select.js} +38 -132
  4. package/V3Select/index.d.ts +27 -0
  5. package/{dist/V3Textarea → V3Textarea}/V3Textarea.js +10 -14
  6. package/V3Textarea/index.d.ts +27 -0
  7. package/accordion/Accordion.d.ts +4 -0
  8. package/{dist/accordion → accordion}/Accordion.js +35 -130
  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 +170 -0
  13. package/accordion-group/types.d.ts +72 -0
  14. package/accordion-group/types.js +5 -0
  15. package/alert/Alert.d.ts +4 -0
  16. package/{dist/alert → alert}/Alert.js +38 -151
  17. package/alert/types.d.ts +49 -0
  18. package/alert/types.js +5 -0
  19. package/badge/Badge.js +59 -0
  20. package/box/Box.d.ts +4 -0
  21. package/{dist/box → box}/Box.js +18 -45
  22. package/box/Box.stories.tsx +132 -0
  23. package/box/types.d.ts +47 -0
  24. package/box/types.js +5 -0
  25. package/button/Button.d.ts +4 -0
  26. package/{dist/button → button}/Button.js +23 -84
  27. package/button/Button.stories.tsx +293 -0
  28. package/button/types.d.ts +57 -0
  29. package/button/types.js +5 -0
  30. package/card/Card.d.ts +4 -0
  31. package/{dist/card → card}/Card.js +32 -121
  32. package/card/types.d.ts +69 -0
  33. package/card/types.js +5 -0
  34. package/checkbox/Checkbox.d.ts +4 -0
  35. package/{dist/checkbox → checkbox}/Checkbox.js +16 -63
  36. package/checkbox/Checkbox.stories.tsx +192 -0
  37. package/checkbox/types.d.ts +60 -0
  38. package/checkbox/types.js +5 -0
  39. package/{dist/chip → chip}/Chip.js +17 -61
  40. package/chip/index.d.ts +22 -0
  41. package/{dist/common → common}/OpenSans.css +0 -0
  42. package/{dist/common → common}/RequiredComponent.js +3 -11
  43. package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
  44. package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
  45. package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
  46. package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  47. package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
  48. package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
  49. package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
  50. package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
  51. package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
  52. package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  53. package/{dist/common → common}/utils.js +0 -0
  54. package/{dist/common → common}/variables.js +160 -152
  55. package/{dist/date → date}/Date.js +21 -27
  56. package/date/index.d.ts +27 -0
  57. package/date-input/DateInput.d.ts +4 -0
  58. package/{dist/date-input → date-input}/DateInput.js +22 -61
  59. package/date-input/types.d.ts +100 -0
  60. package/date-input/types.js +5 -0
  61. package/dialog/Dialog.d.ts +4 -0
  62. package/{dist/dialog → dialog}/Dialog.js +20 -73
  63. package/dialog/types.d.ts +43 -0
  64. package/dialog/types.js +5 -0
  65. package/dropdown/Dropdown.d.ts +4 -0
  66. package/{dist/dropdown → dropdown}/Dropdown.js +44 -171
  67. package/dropdown/types.d.ts +89 -0
  68. package/dropdown/types.js +5 -0
  69. package/{dist/file-input → file-input}/FileInput.js +49 -161
  70. package/{dist/file-input → file-input}/FileItem.js +36 -123
  71. package/{dist/file-input → file-input}/index.d.ts +1 -1
  72. package/footer/Footer.d.ts +4 -0
  73. package/{dist/footer → footer}/Footer.js +38 -193
  74. package/footer/Footer.stories.jsx +151 -0
  75. package/{dist/footer → footer}/Icons.js +13 -13
  76. package/footer/types.d.ts +61 -0
  77. package/footer/types.js +5 -0
  78. package/header/Header.d.ts +7 -0
  79. package/header/Header.js +324 -0
  80. package/{dist/header → header}/Icons.js +7 -32
  81. package/header/types.d.ts +45 -0
  82. package/header/types.js +5 -0
  83. package/{dist/heading → heading}/Heading.js +30 -72
  84. package/heading/index.d.ts +17 -0
  85. package/{dist/input-text → input-text}/Icons.js +2 -2
  86. package/{dist/input-text → input-text}/InputText.js +36 -130
  87. package/input-text/index.d.ts +36 -0
  88. package/{dist/layout → layout}/ApplicationLayout.js +31 -123
  89. package/{dist/layout → layout}/Icons.js +7 -7
  90. package/link/Link.d.ts +3 -0
  91. package/{dist/link → link}/Link.js +18 -94
  92. package/link/types.d.ts +74 -0
  93. package/link/types.js +5 -0
  94. package/main.d.ts +44 -0
  95. package/{dist/main.js → main.js} +93 -97
  96. package/{dist/number-input → number-input}/NumberInput.js +5 -13
  97. package/number-input/NumberInput.stories.jsx +115 -0
  98. package/{dist/number-input → number-input}/NumberInputContext.js +1 -1
  99. package/{dist/number-input → number-input}/index.d.ts +0 -0
  100. package/package.json +32 -25
  101. package/{dist/paginator → paginator}/Icons.js +9 -9
  102. package/paginator/Paginator.d.ts +4 -0
  103. package/paginator/Paginator.js +198 -0
  104. package/paginator/Paginator.stories.tsx +63 -0
  105. package/paginator/types.d.ts +38 -0
  106. package/paginator/types.js +5 -0
  107. package/password-input/PasswordInput.d.ts +4 -0
  108. package/{dist/password-input → password-input}/PasswordInput.js +24 -60
  109. package/password-input/PasswordInput.stories.tsx +131 -0
  110. package/password-input/types.d.ts +100 -0
  111. package/password-input/types.js +5 -0
  112. package/progress-bar/ProgressBar.d.ts +4 -0
  113. package/{dist/progress-bar → progress-bar}/ProgressBar.js +20 -92
  114. package/progress-bar/ProgressBar.stories.jsx +58 -0
  115. package/progress-bar/types.d.ts +37 -0
  116. package/progress-bar/types.js +5 -0
  117. package/radio/Radio.d.ts +4 -0
  118. package/{dist/radio → radio}/Radio.js +15 -50
  119. package/radio/Radio.stories.tsx +192 -0
  120. package/radio/types.d.ts +54 -0
  121. package/radio/types.js +5 -0
  122. package/{dist/resultsetTable → resultsetTable}/ResultsetTable.js +35 -119
  123. package/resultsetTable/index.d.ts +19 -0
  124. package/select/Select.js +865 -0
  125. package/select/index.d.ts +131 -0
  126. package/{dist/sidenav → sidenav}/Sidenav.js +15 -49
  127. package/sidenav/index.d.ts +13 -0
  128. package/slider/Slider.d.ts +4 -0
  129. package/{dist/slider → slider}/Slider.js +70 -157
  130. package/slider/Slider.stories.tsx +172 -0
  131. package/slider/types.d.ts +78 -0
  132. package/slider/types.js +5 -0
  133. package/spinner/Spinner.d.ts +4 -0
  134. package/spinner/Spinner.js +250 -0
  135. package/spinner/Spinner.stories.jsx +102 -0
  136. package/spinner/types.d.ts +32 -0
  137. package/spinner/types.js +5 -0
  138. package/switch/Switch.d.ts +4 -0
  139. package/{dist/switch → switch}/Switch.js +26 -69
  140. package/switch/Switch.stories.tsx +160 -0
  141. package/switch/types.d.ts +58 -0
  142. package/switch/types.js +5 -0
  143. package/table/Table.d.ts +4 -0
  144. package/{dist/table → table}/Table.js +10 -24
  145. package/table/Table.stories.jsx +276 -0
  146. package/table/types.d.ts +21 -0
  147. package/table/types.js +5 -0
  148. package/tabs/Tabs.d.ts +4 -0
  149. package/tabs/Tabs.js +211 -0
  150. package/tabs/types.d.ts +71 -0
  151. package/tabs/types.js +5 -0
  152. package/tag/Tag.d.ts +4 -0
  153. package/tag/Tag.js +193 -0
  154. package/tag/Tag.stories.tsx +145 -0
  155. package/tag/types.d.ts +60 -0
  156. package/tag/types.js +5 -0
  157. package/{dist/text-input → text-input}/TextInput.js +244 -390
  158. package/{dist/text-input → text-input}/index.d.ts +2 -2
  159. package/{dist/textarea → textarea}/Textarea.js +20 -72
  160. package/textarea/Textarea.stories.jsx +135 -0
  161. package/{dist/textarea → textarea}/index.d.ts +0 -0
  162. package/{dist/toggle → toggle}/Toggle.js +15 -49
  163. package/toggle/index.d.ts +21 -0
  164. package/{dist/toggle-group → toggle-group}/ToggleGroup.js +23 -107
  165. package/toggle-group/index.d.ts +21 -0
  166. package/{dist/upload → upload}/Upload.js +14 -18
  167. package/{dist/upload → upload}/buttons-upload/ButtonsUpload.js +13 -37
  168. package/{dist/upload → upload}/buttons-upload/Icons.js +7 -7
  169. package/upload/dragAndDropArea/DragAndDropArea.js +225 -0
  170. package/{dist/upload → upload}/dragAndDropArea/Icons.js +6 -6
  171. package/upload/file-upload/FileToUpload.js +115 -0
  172. package/{dist/upload → upload}/file-upload/Icons.js +13 -13
  173. package/{dist/upload → upload}/files-upload/FilesToUpload.js +12 -26
  174. package/upload/index.d.ts +15 -0
  175. package/{dist/upload → upload}/transaction/Icons.js +31 -31
  176. package/upload/transaction/Transaction.js +104 -0
  177. package/upload/transactions/Transactions.js +94 -0
  178. package/{dist/useTheme.js → useTheme.js} +0 -0
  179. package/{dist/wizard → wizard}/Icons.js +8 -8
  180. package/{dist/wizard → wizard}/Wizard.js +31 -165
  181. package/wizard/index.d.ts +18 -0
  182. package/README.md +0 -66
  183. package/babel.config.js +0 -8
  184. package/dist/BackgroundColorContext.js +0 -46
  185. package/dist/ThemeContext.js +0 -248
  186. package/dist/accordion-group/AccordionGroup.js +0 -186
  187. package/dist/alert/index.d.ts +0 -51
  188. package/dist/badge/Badge.js +0 -63
  189. package/dist/checkbox/Checkbox.stories.js +0 -144
  190. package/dist/checkbox/readme.md +0 -116
  191. package/dist/date/Date.stories.js +0 -205
  192. package/dist/date/readme.md +0 -73
  193. package/dist/date-input/index.d.ts +0 -95
  194. package/dist/header/Header.js +0 -434
  195. package/dist/link/readme.md +0 -51
  196. package/dist/main.d.ts +0 -8
  197. package/dist/new-select/NewSelect.js +0 -836
  198. package/dist/new-select/index.d.ts +0 -53
  199. package/dist/paginator/Paginator.js +0 -283
  200. package/dist/password-input/index.d.ts +0 -94
  201. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  202. package/dist/progress-bar/readme.md +0 -63
  203. package/dist/radio/Radio.stories.js +0 -166
  204. package/dist/radio/readme.md +0 -70
  205. package/dist/slider/readme.md +0 -64
  206. package/dist/spinner/Spinner.js +0 -381
  207. package/dist/spinner/Spinner.stories.js +0 -183
  208. package/dist/spinner/readme.md +0 -65
  209. package/dist/switch/Switch.stories.js +0 -134
  210. package/dist/switch/readme.md +0 -133
  211. package/dist/tabs/Tabs.js +0 -343
  212. package/dist/tabs/Tabs.stories.js +0 -130
  213. package/dist/tabs/readme.md +0 -78
  214. package/dist/tabs-for-sections/TabsForSections.js +0 -92
  215. package/dist/tabs-for-sections/readme.md +0 -78
  216. package/dist/tag/Tag.js +0 -282
  217. package/dist/toggle/Toggle.stories.js +0 -297
  218. package/dist/toggle/readme.md +0 -80
  219. package/dist/upload/Upload.stories.js +0 -72
  220. package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -329
  221. package/dist/upload/file-upload/FileToUpload.js +0 -189
  222. package/dist/upload/readme.md +0 -37
  223. package/dist/upload/transaction/Transaction.js +0 -148
  224. package/dist/upload/transactions/Transactions.js +0 -138
  225. package/test/Accordion.test.js +0 -33
  226. package/test/AccordionGroup.test.js +0 -125
  227. package/test/Alert.test.js +0 -53
  228. package/test/Box.test.js +0 -10
  229. package/test/Button.test.js +0 -18
  230. package/test/Card.test.js +0 -30
  231. package/test/Checkbox.test.js +0 -45
  232. package/test/Chip.test.js +0 -25
  233. package/test/Date.test.js +0 -397
  234. package/test/DateInput.test.js +0 -242
  235. package/test/Dialog.test.js +0 -23
  236. package/test/Dropdown.test.js +0 -145
  237. package/test/FileInput.test.js +0 -201
  238. package/test/Footer.test.js +0 -94
  239. package/test/Header.test.js +0 -34
  240. package/test/Heading.test.js +0 -35
  241. package/test/InputText.test.js +0 -248
  242. package/test/Link.test.js +0 -43
  243. package/test/NumberInput.test.js +0 -259
  244. package/test/Paginator.test.js +0 -177
  245. package/test/PasswordInput.test.js +0 -83
  246. package/test/ProgressBar.test.js +0 -35
  247. package/test/Radio.test.js +0 -37
  248. package/test/ResultsetTable.test.js +0 -329
  249. package/test/Select.test.js +0 -212
  250. package/test/Sidenav.test.js +0 -45
  251. package/test/Slider.test.js +0 -74
  252. package/test/Spinner.test.js +0 -32
  253. package/test/Switch.test.js +0 -45
  254. package/test/Table.test.js +0 -36
  255. package/test/Tabs.test.js +0 -109
  256. package/test/TabsForSections.test.js +0 -34
  257. package/test/Tag.test.js +0 -32
  258. package/test/TextInput.test.js +0 -732
  259. package/test/Textarea.test.js +0 -193
  260. package/test/ToggleGroup.test.js +0 -85
  261. package/test/Upload.test.js +0 -60
  262. package/test/V3TextArea.test.js +0 -51
  263. package/test/Wizard.test.js +0 -130
  264. package/test/mocks/pngMock.js +0 -1
  265. package/test/mocks/svgMock.js +0 -1
@@ -0,0 +1,131 @@
1
+ type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2
+ type Margin = {
3
+ top?: Space;
4
+ bottom?: Space;
5
+ left?: Space;
6
+ right?: Space;
7
+ };
8
+ type SVG = React.SVGProps<SVGSVGElement> | React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
9
+
10
+ type OptionGroup = {
11
+ /**
12
+ * Label of the group to be shown in the select's listbox.
13
+ */
14
+ label: string;
15
+ /**
16
+ * List of the grouped options.
17
+ */
18
+ options: Option[];
19
+ };
20
+ type Option = {
21
+ /**
22
+ * Element used as the icon that will be placed before the option label.
23
+ * It can be a url of an image or an inline SVG. If the url option
24
+ * is the chosen one, take into account that the component's
25
+ * color styling tokens will not be applied to the image.
26
+ */
27
+ icon?: string | SVG;
28
+ /**
29
+ * Label of the option to be shown in the select's listbox.
30
+ */
31
+ label: string;
32
+ /**
33
+ * Value of the option. It should be unique and
34
+ * not an empty string, which is reserved to the empty option added
35
+ * by optional prop.
36
+ */
37
+ value: string;
38
+ };
39
+
40
+ type Props = {
41
+ /**
42
+ * Text to be placed above the select.
43
+ */
44
+ label?: string;
45
+ /**
46
+ * Name attribute of the input element. This attribute will allow users
47
+ * to find the component's value during the submit event. In this event,
48
+ * the component's value will always be a regular string, for both single
49
+ * and multiple selection modes, been in the first one a single option
50
+ * value and in the multiple variant more than one option value,
51
+ * separated by commas.
52
+ */
53
+ name?: string;
54
+ /**
55
+ * Value of the select. If undefined, the component will be uncontrolled
56
+ * and the value will be managed internally by the component.
57
+ */
58
+ value?: string | string[];
59
+ /**
60
+ * An array of objects representing the selectable options.
61
+ */
62
+ options?: Option[] | OptionGroup[];
63
+ /**
64
+ * Helper text to be placed above the select.
65
+ */
66
+ helperText?: string;
67
+ /**
68
+ * Text to be put as placeholder of the select.
69
+ */
70
+ placeholder?: string;
71
+ /**
72
+ * If true, the component will be disabled.
73
+ */
74
+ disabled?: boolean;
75
+ /**
76
+ * If true, the select will be optional, showing '(Optional)'
77
+ * next to the label and adding a default first option with an empty string as value,
78
+ * been the placeholder (if defined) its label. Otherwise, the field will be
79
+ * considered required and an error will be passed as a parameter to the
80
+ * OnBlur and onChange functions if an option wasn't selected.
81
+ */
82
+ optional?: boolean;
83
+ /**
84
+ * If true, enables search functionality.
85
+ */
86
+ searchable?: boolean;
87
+ /**
88
+ * If true, the select component will support multiple selected options.
89
+ * In that case, value will be an array of strings with each selected
90
+ * option value.
91
+ */
92
+ multiple?: boolean;
93
+ /**
94
+ * This function will be called when the user selects an option.
95
+ * An object including the current value and the error (if the value entered is not valid)
96
+ * will be passed to this function. If there is no error, error will be null.
97
+ */
98
+ onChange?: (value: string | string[]) => void;
99
+ /**
100
+ * This function will be called when the select loses the focus. An
101
+ * object including the value (or values) and the error (if the value
102
+ * selected is not valid) will be passed to this function. If there is no error,
103
+ * error will be null.
104
+ */
105
+ onBlur?: (val: { value: string | string[]; error: string }) => void;
106
+ /**
107
+ * If it is defined, the component will change its appearance, showing
108
+ * the error below the select component. If it is not defined, the error
109
+ * messages will be managed internally, but never displayed on its own.
110
+ */
111
+ error?: string;
112
+ /**
113
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
114
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
115
+ */
116
+ margin?: Space | Margin;
117
+ /**
118
+ * Size of the component ('small' | 'medium' | 'large' | 'fillParent').
119
+ */
120
+ size?: "small" | "medium" | "large" | "fillParent";
121
+ /**
122
+ * Value of the tabindex attribute.
123
+ */
124
+ tabIndex?: number;
125
+ /**
126
+ * Reference to the component.
127
+ */
128
+ ref?: React.RefObject<HTMLDivElement>;
129
+ };
130
+
131
+ export default function DxcSelect(props: Props): JSX.Element;
@@ -1,9 +1,9 @@
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
  });
@@ -25,80 +25,46 @@ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
25
25
 
26
26
  var _BackgroundColorContext = require("../BackgroundColorContext.js");
27
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"]);
28
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
60
29
 
61
- _templateObject = function _templateObject() {
62
- return data;
63
- };
30
+ 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); }
64
31
 
65
- return data;
66
- }
32
+ 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; }
67
33
 
68
34
  var DxcSidenav = function DxcSidenav(_ref) {
69
35
  var padding = _ref.padding,
70
36
  children = _ref.children;
71
37
  var colorsTheme = (0, _useTheme["default"])();
72
- return _react["default"].createElement(_styledComponents.ThemeProvider, {
38
+ return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
73
39
  theme: colorsTheme.sidenav
74
- }, _react["default"].createElement(SideNavContainer, {
40
+ }, /*#__PURE__*/_react["default"].createElement(SideNavContainer, {
75
41
  padding: padding
76
- }, _react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
42
+ }, /*#__PURE__*/_react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
77
43
  color: colorsTheme.sidenav.backgroundColor
78
44
  }, children)));
79
45
  };
80
46
 
81
47
  var Title = function Title(_ref2) {
82
48
  var children = _ref2.children;
83
- return _react["default"].createElement(SideNavMenuTitle, null, children);
49
+ return /*#__PURE__*/_react["default"].createElement(SideNavMenuTitle, null, children);
84
50
  };
85
51
 
86
52
  var Subtitle = function Subtitle(_ref3) {
87
53
  var children = _ref3.children;
88
- return _react["default"].createElement(SideNavMenuSubTitle, null, children);
54
+ return /*#__PURE__*/_react["default"].createElement(SideNavMenuSubTitle, null, children);
89
55
  };
90
56
 
91
57
  var Link = function Link(_ref4) {
92
58
  var href = _ref4.href,
93
59
  onClick = _ref4.onClick,
94
60
  children = _ref4.children;
95
- return _react["default"].createElement(SideNavMenuLink, {
61
+ return /*#__PURE__*/_react["default"].createElement(SideNavMenuLink, {
96
62
  href: href,
97
63
  onClick: onClick
98
64
  }, children);
99
65
  };
100
66
 
101
- var SideNavContainer = _styledComponents["default"].div(_templateObject(), function (props) {
67
+ var SideNavContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (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"])), function (props) {
102
68
  return props.theme.backgroundColor;
103
69
  }, function (props) {
104
70
  return props.padding ? "calc(300px - ".concat(_variables.spaces[props.padding], " - ").concat(_variables.spaces[props.padding], ")") : "300px";
@@ -110,7 +76,7 @@ var SideNavContainer = _styledComponents["default"].div(_templateObject(), funct
110
76
  return props.theme.scrollBarThumbColor;
111
77
  });
112
78
 
113
- var SideNavMenuTitle = _styledComponents["default"].div(_templateObject2(), function (props) {
79
+ var SideNavMenuTitle = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (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"])), function (props) {
114
80
  return props.theme.titleFontFamily;
115
81
  }, function (props) {
116
82
  return props.theme.titleFontSize;
@@ -126,7 +92,7 @@ var SideNavMenuTitle = _styledComponents["default"].div(_templateObject2(), func
126
92
  return props.theme.titleFontTextTransform;
127
93
  });
128
94
 
129
- var SideNavMenuSubTitle = _styledComponents["default"].div(_templateObject3(), function (props) {
95
+ var SideNavMenuSubTitle = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (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"])), function (props) {
130
96
  return props.theme.subtitleFontFamily;
131
97
  }, function (props) {
132
98
  return props.theme.subtitleFontSize;
@@ -142,7 +108,7 @@ var SideNavMenuSubTitle = _styledComponents["default"].div(_templateObject3(), f
142
108
  return props.theme.subtitleFontTextTransform;
143
109
  });
144
110
 
145
- var SideNavMenuLink = _styledComponents["default"].a(_templateObject4(), function (props) {
111
+ var SideNavMenuLink = _styledComponents["default"].a(_templateObject4 || (_templateObject4 = (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"])), function (props) {
146
112
  return props.theme.linkFontFamily;
147
113
  }, function (props) {
148
114
  return props.theme.linkFontSize;
@@ -0,0 +1,13 @@
1
+ type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2
+ type Padding = {
3
+ top?: Space;
4
+ bottom?: Space;
5
+ left?: Space;
6
+ right?: Space;
7
+ };
8
+
9
+ type Props = {
10
+ padding?: Space | Padding;
11
+ };
12
+
13
+ export default function DxcSidenav(props: Props): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import SliderPropsType from "./types";
3
+ declare const DxcSlider: ({ label, name, value, helperText, minValue, maxValue, step, showLimitsValues, showInput, disabled, marks, onChange, onDragEnd, labelFormatCallback, margin, size, }: SliderPropsType) => JSX.Element;
4
+ export default DxcSlider;