@dxc-technology/halstack-react 0.0.0-c908d78 → 0.0.0-ca55cbe
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.
- package/BackgroundColorContext.d.ts +10 -0
- package/BackgroundColorContext.js +2 -5
- package/HalstackContext.d.ts +1336 -0
- package/HalstackContext.js +335 -0
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +118 -142
- package/accordion/Accordion.stories.tsx +395 -0
- package/accordion/Accordion.test.js +71 -0
- package/accordion/types.d.ts +9 -8
- package/accordion-group/AccordionGroup.d.ts +1 -1
- package/accordion-group/AccordionGroup.js +18 -39
- package/accordion-group/AccordionGroup.stories.tsx +251 -0
- package/accordion-group/AccordionGroup.test.js +126 -0
- package/accordion-group/types.d.ts +15 -8
- package/alert/Alert.js +10 -9
- package/alert/Alert.stories.tsx +198 -0
- package/alert/Alert.test.js +92 -0
- package/alert/types.d.ts +1 -1
- package/badge/Badge.d.ts +4 -0
- package/badge/Badge.js +6 -4
- package/badge/types.d.ts +5 -0
- package/bleed/Bleed.d.ts +3 -0
- package/bleed/Bleed.js +51 -0
- package/bleed/Bleed.stories.tsx +342 -0
- package/bleed/types.d.ts +37 -0
- package/bleed/types.js +5 -0
- package/box/Box.d.ts +1 -1
- package/box/Box.js +29 -44
- package/box/Box.stories.tsx +15 -0
- package/box/Box.test.js +18 -0
- package/box/types.d.ts +1 -4
- package/bulleted-list/BulletedList.d.ts +7 -0
- package/bulleted-list/BulletedList.js +125 -0
- package/bulleted-list/BulletedList.stories.tsx +206 -0
- package/bulleted-list/types.d.ts +11 -0
- package/bulleted-list/types.js +5 -0
- package/button/Button.d.ts +1 -1
- package/button/Button.js +61 -85
- package/button/Button.stories.tsx +375 -243
- package/button/Button.test.js +35 -0
- package/button/types.d.ts +8 -12
- package/card/Card.js +35 -40
- package/card/Card.stories.tsx +200 -0
- package/card/Card.test.js +50 -0
- package/card/ice-cream.jpg +0 -0
- package/card/types.d.ts +5 -6
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +108 -111
- package/checkbox/Checkbox.stories.tsx +198 -130
- package/checkbox/Checkbox.test.js +155 -0
- package/checkbox/types.d.ts +13 -5
- package/chip/Chip.d.ts +4 -0
- package/chip/Chip.js +24 -92
- package/chip/Chip.stories.tsx +206 -0
- package/chip/Chip.test.js +54 -0
- package/chip/types.d.ts +45 -0
- package/chip/types.js +5 -0
- package/common/OpenSans.css +68 -80
- package/common/coreTokens.d.ts +146 -0
- package/common/coreTokens.js +167 -0
- package/common/utils.d.ts +1 -0
- package/common/utils.js +4 -4
- package/common/variables.d.ts +1482 -0
- package/common/variables.js +1100 -1308
- package/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +258 -0
- package/date-input/DateInput.js +174 -266
- package/date-input/DateInput.stories.tsx +304 -0
- package/date-input/DateInput.test.js +835 -0
- package/date-input/DatePicker.d.ts +4 -0
- package/date-input/DatePicker.js +146 -0
- package/date-input/Icons.d.ts +6 -0
- package/date-input/Icons.js +75 -0
- package/date-input/YearPicker.d.ts +4 -0
- package/date-input/YearPicker.js +126 -0
- package/date-input/types.d.ts +67 -9
- package/dialog/Dialog.js +79 -95
- package/dialog/Dialog.stories.tsx +319 -0
- package/dialog/Dialog.test.js +369 -0
- package/dialog/types.d.ts +1 -0
- package/dropdown/Dropdown.d.ts +1 -1
- package/dropdown/Dropdown.js +248 -277
- package/dropdown/Dropdown.stories.tsx +438 -0
- package/dropdown/Dropdown.test.js +586 -0
- package/dropdown/DropdownMenu.d.ts +4 -0
- package/dropdown/DropdownMenu.js +74 -0
- package/dropdown/DropdownMenuItem.d.ts +4 -0
- package/dropdown/DropdownMenuItem.js +79 -0
- package/dropdown/types.d.ts +28 -17
- package/file-input/FileInput.d.ts +4 -0
- package/file-input/FileInput.js +183 -168
- package/file-input/FileInput.stories.tsx +618 -0
- package/file-input/FileInput.test.js +457 -0
- package/file-input/FileItem.d.ts +4 -0
- package/file-input/FileItem.js +50 -81
- package/file-input/types.d.ts +129 -0
- package/file-input/types.js +5 -0
- package/flex/Flex.d.ts +4 -0
- package/flex/Flex.js +71 -0
- package/flex/Flex.stories.tsx +112 -0
- package/flex/types.d.ts +97 -0
- package/flex/types.js +5 -0
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +34 -117
- package/footer/Footer.stories.tsx +228 -0
- package/footer/Footer.test.js +97 -0
- package/footer/Icons.d.ts +2 -0
- package/footer/Icons.js +4 -4
- package/footer/types.d.ts +23 -18
- package/grid/Grid.d.ts +7 -0
- package/grid/Grid.js +91 -0
- package/grid/Grid.stories.tsx +219 -0
- package/grid/types.d.ts +115 -0
- package/grid/types.js +5 -0
- package/header/Header.d.ts +3 -2
- package/header/Header.js +110 -131
- package/header/Header.stories.tsx +315 -0
- package/header/Header.test.js +79 -0
- package/header/Icons.d.ts +2 -0
- package/header/Icons.js +2 -2
- package/header/types.d.ts +5 -2
- package/heading/Heading.d.ts +4 -0
- package/heading/Heading.js +8 -25
- package/heading/Heading.stories.tsx +54 -0
- package/heading/Heading.test.js +186 -0
- package/heading/types.d.ts +33 -0
- package/heading/types.js +5 -0
- package/inset/Inset.d.ts +3 -0
- package/inset/Inset.js +51 -0
- package/inset/Inset.stories.tsx +230 -0
- package/inset/types.d.ts +37 -0
- package/inset/types.js +5 -0
- package/layout/ApplicationLayout.d.ts +20 -0
- package/layout/ApplicationLayout.js +72 -136
- package/layout/ApplicationLayout.stories.tsx +162 -0
- package/layout/Icons.d.ts +5 -0
- package/layout/Icons.js +13 -2
- package/layout/SidenavContext.d.ts +5 -0
- package/layout/SidenavContext.js +19 -0
- package/layout/types.d.ts +41 -0
- package/layout/types.js +5 -0
- package/link/Link.d.ts +3 -2
- package/link/Link.js +64 -89
- package/link/Link.stories.tsx +253 -0
- package/link/Link.test.js +81 -0
- package/link/types.d.ts +7 -27
- package/main.d.ts +13 -12
- package/main.js +68 -54
- package/nav-tabs/NavTabs.d.ts +8 -0
- package/nav-tabs/NavTabs.js +125 -0
- package/nav-tabs/NavTabs.stories.tsx +260 -0
- package/nav-tabs/NavTabs.test.js +82 -0
- package/nav-tabs/Tab.d.ts +4 -0
- package/nav-tabs/Tab.js +150 -0
- package/nav-tabs/types.d.ts +53 -0
- package/nav-tabs/types.js +5 -0
- package/number-input/NumberInput.d.ts +4 -0
- package/number-input/NumberInput.js +16 -68
- package/number-input/{NumberInput.stories.jsx → NumberInput.stories.tsx} +5 -5
- package/number-input/NumberInput.test.js +542 -0
- package/number-input/NumberInputContext.d.ts +4 -0
- package/number-input/NumberInputContext.js +5 -2
- package/number-input/numberInputContextTypes.d.ts +19 -0
- package/number-input/numberInputContextTypes.js +5 -0
- package/number-input/types.d.ts +124 -0
- package/number-input/types.js +5 -0
- package/package.json +22 -23
- package/paginator/Icons.d.ts +5 -0
- package/paginator/Icons.js +16 -28
- package/paginator/Paginator.js +21 -56
- package/paginator/Paginator.stories.tsx +24 -0
- package/paginator/Paginator.test.js +305 -0
- package/paragraph/Paragraph.d.ts +5 -0
- package/paragraph/Paragraph.js +38 -0
- package/paragraph/Paragraph.stories.tsx +44 -0
- package/password-input/PasswordInput.js +23 -19
- package/password-input/PasswordInput.stories.tsx +3 -3
- package/password-input/PasswordInput.test.js +181 -0
- package/password-input/types.d.ts +29 -19
- package/progress-bar/ProgressBar.js +63 -57
- package/progress-bar/ProgressBar.stories.jsx +47 -12
- package/progress-bar/ProgressBar.test.js +110 -0
- package/quick-nav/QuickNav.d.ts +4 -0
- package/quick-nav/QuickNav.js +117 -0
- package/quick-nav/QuickNav.stories.tsx +356 -0
- package/quick-nav/types.d.ts +21 -0
- package/quick-nav/types.js +5 -0
- package/radio-group/Radio.d.ts +4 -0
- package/radio-group/Radio.js +156 -0
- package/radio-group/RadioGroup.d.ts +4 -0
- package/radio-group/RadioGroup.js +283 -0
- package/radio-group/RadioGroup.stories.tsx +214 -0
- package/radio-group/RadioGroup.test.js +722 -0
- package/radio-group/types.d.ts +114 -0
- package/radio-group/types.js +5 -0
- package/resultsetTable/Icons.d.ts +7 -0
- package/resultsetTable/Icons.js +51 -0
- package/resultsetTable/ResultsetTable.d.ts +4 -0
- package/resultsetTable/ResultsetTable.js +54 -133
- package/resultsetTable/ResultsetTable.stories.tsx +300 -0
- package/resultsetTable/ResultsetTable.test.js +325 -0
- package/resultsetTable/types.d.ts +67 -0
- package/resultsetTable/types.js +5 -0
- package/select/Icons.d.ts +10 -0
- package/select/Icons.js +93 -0
- package/select/Listbox.d.ts +4 -0
- package/select/Listbox.js +169 -0
- package/select/Option.d.ts +4 -0
- package/select/Option.js +97 -0
- package/select/Select.d.ts +4 -0
- package/select/Select.js +202 -401
- package/select/Select.stories.tsx +971 -0
- package/select/Select.test.js +2228 -0
- package/select/types.d.ts +210 -0
- package/select/types.js +5 -0
- package/sidenav/Icons.d.ts +7 -0
- package/sidenav/Icons.js +51 -0
- package/sidenav/Sidenav.d.ts +10 -0
- package/sidenav/Sidenav.js +147 -54
- package/sidenav/Sidenav.stories.tsx +282 -0
- package/sidenav/Sidenav.test.js +44 -0
- package/sidenav/types.d.ts +76 -0
- package/sidenav/types.js +5 -0
- package/slider/Slider.d.ts +2 -2
- package/slider/Slider.js +150 -114
- package/slider/Slider.stories.tsx +240 -0
- package/slider/Slider.test.js +250 -0
- package/slider/types.d.ts +10 -7
- package/spinner/Spinner.js +20 -26
- package/spinner/Spinner.stories.jsx +53 -26
- package/spinner/Spinner.test.js +64 -0
- package/switch/Switch.d.ts +2 -2
- package/switch/Switch.js +153 -70
- package/switch/Switch.stories.tsx +54 -43
- package/switch/Switch.test.js +225 -0
- package/switch/types.d.ts +10 -2
- package/table/Table.js +6 -6
- package/table/Table.stories.jsx +81 -1
- package/table/Table.test.js +26 -0
- package/tabs/Tab.d.ts +4 -0
- package/tabs/Tab.js +132 -0
- package/tabs/Tabs.d.ts +1 -1
- package/tabs/Tabs.js +362 -112
- package/tabs/Tabs.stories.tsx +226 -0
- package/tabs/Tabs.test.js +350 -0
- package/tabs/types.d.ts +39 -18
- package/tag/Tag.d.ts +1 -1
- package/tag/Tag.js +25 -37
- package/tag/Tag.stories.tsx +38 -28
- package/tag/Tag.test.js +60 -0
- package/tag/types.d.ts +23 -14
- package/text-input/Icons.d.ts +8 -0
- package/text-input/Icons.js +60 -0
- package/text-input/Suggestion.d.ts +4 -0
- package/text-input/Suggestion.js +84 -0
- package/text-input/Suggestions.d.ts +4 -0
- package/text-input/Suggestions.js +134 -0
- package/text-input/TextInput.d.ts +4 -0
- package/text-input/TextInput.js +235 -387
- package/text-input/TextInput.stories.tsx +569 -0
- package/text-input/TextInput.test.js +1723 -0
- package/text-input/types.d.ts +197 -0
- package/text-input/types.js +5 -0
- package/textarea/Textarea.d.ts +4 -0
- package/textarea/Textarea.js +41 -82
- package/textarea/Textarea.stories.jsx +96 -15
- package/textarea/Textarea.test.js +435 -0
- package/textarea/types.d.ts +137 -0
- package/textarea/types.js +5 -0
- package/toggle-group/ToggleGroup.d.ts +4 -0
- package/toggle-group/ToggleGroup.js +24 -49
- package/toggle-group/ToggleGroup.stories.tsx +215 -0
- package/toggle-group/ToggleGroup.test.js +156 -0
- package/toggle-group/types.d.ts +105 -0
- package/toggle-group/types.js +5 -0
- package/typography/Typography.d.ts +4 -0
- package/typography/Typography.js +32 -0
- package/typography/Typography.stories.tsx +198 -0
- package/typography/types.d.ts +18 -0
- package/typography/types.js +5 -0
- package/useTheme.d.ts +1235 -0
- package/useTheme.js +3 -3
- package/useTranslatedLabels.d.ts +85 -0
- package/useTranslatedLabels.js +20 -0
- package/utils/BaseTypography.d.ts +21 -0
- package/utils/BaseTypography.js +108 -0
- package/utils/FocusLock.d.ts +13 -0
- package/utils/FocusLock.js +139 -0
- package/wizard/Wizard.d.ts +4 -0
- package/wizard/Wizard.js +119 -105
- package/wizard/Wizard.stories.tsx +253 -0
- package/wizard/Wizard.test.js +141 -0
- package/wizard/types.d.ts +64 -0
- package/wizard/types.js +5 -0
- package/ThemeContext.js +0 -246
- package/V3Select/V3Select.js +0 -455
- package/V3Select/index.d.ts +0 -27
- package/V3Textarea/V3Textarea.js +0 -260
- package/V3Textarea/index.d.ts +0 -27
- package/chip/index.d.ts +0 -22
- package/common/RequiredComponent.js +0 -32
- package/date/Date.js +0 -373
- package/date/index.d.ts +0 -27
- package/file-input/index.d.ts +0 -81
- package/footer/Footer.stories.jsx +0 -151
- package/heading/index.d.ts +0 -17
- package/input-text/Icons.js +0 -22
- package/input-text/InputText.js +0 -611
- package/input-text/index.d.ts +0 -36
- package/number-input/index.d.ts +0 -113
- package/radio/Radio.d.ts +0 -4
- package/radio/Radio.js +0 -174
- package/radio/Radio.stories.tsx +0 -192
- package/radio/types.d.ts +0 -54
- package/resultsetTable/index.d.ts +0 -19
- package/select/index.d.ts +0 -131
- package/sidenav/index.d.ts +0 -13
- package/text-input/index.d.ts +0 -135
- package/textarea/index.d.ts +0 -117
- package/toggle/Toggle.js +0 -186
- package/toggle/index.d.ts +0 -21
- package/toggle-group/index.d.ts +0 -21
- package/upload/Upload.js +0 -201
- package/upload/buttons-upload/ButtonsUpload.js +0 -111
- package/upload/buttons-upload/Icons.js +0 -40
- package/upload/dragAndDropArea/DragAndDropArea.js +0 -225
- package/upload/dragAndDropArea/Icons.js +0 -39
- package/upload/file-upload/FileToUpload.js +0 -115
- package/upload/file-upload/Icons.js +0 -66
- package/upload/files-upload/FilesToUpload.js +0 -109
- package/upload/index.d.ts +0 -15
- package/upload/transaction/Icons.js +0 -160
- package/upload/transaction/Transaction.js +0 -104
- package/upload/transactions/Transactions.js +0 -94
- package/wizard/Icons.js +0 -65
- package/wizard/index.d.ts +0 -18
- /package/{radio → badge}/types.js +0 -0
package/slider/Slider.js
CHANGED
|
@@ -17,31 +17,32 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
17
17
|
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
19
|
|
|
20
|
-
var _Slider = _interopRequireDefault(require("@material-ui/lab/Slider"));
|
|
21
|
-
|
|
22
20
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
23
21
|
|
|
24
22
|
var _TextInput = _interopRequireDefault(require("../text-input/TextInput"));
|
|
25
23
|
|
|
26
|
-
var _variables = require("../common/variables
|
|
24
|
+
var _variables = require("../common/variables");
|
|
25
|
+
|
|
26
|
+
var _utils = require("../common/utils");
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _BackgroundColorContext = _interopRequireDefault(require("../BackgroundColorContext"));
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _uuid = require("uuid");
|
|
33
33
|
|
|
34
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
34
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
35
35
|
|
|
36
36
|
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); }
|
|
37
37
|
|
|
38
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(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; }
|
|
39
39
|
|
|
40
|
-
var DxcSlider = function
|
|
40
|
+
var DxcSlider = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
41
41
|
var _ref$label = _ref.label,
|
|
42
42
|
label = _ref$label === void 0 ? "" : _ref$label,
|
|
43
43
|
_ref$name = _ref.name,
|
|
44
44
|
name = _ref$name === void 0 ? "" : _ref$name,
|
|
45
|
+
defaultValue = _ref.defaultValue,
|
|
45
46
|
value = _ref.value,
|
|
46
47
|
_ref$helperText = _ref.helperText,
|
|
47
48
|
helperText = _ref$helperText === void 0 ? "" : _ref$helperText,
|
|
@@ -64,32 +65,69 @@ var DxcSlider = function DxcSlider(_ref) {
|
|
|
64
65
|
labelFormatCallback = _ref.labelFormatCallback,
|
|
65
66
|
margin = _ref.margin,
|
|
66
67
|
_ref$size = _ref.size,
|
|
67
|
-
size = _ref$size === void 0 ? "fillParent" : _ref$size
|
|
68
|
-
_ref$tabIndex = _ref.tabIndex,
|
|
69
|
-
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
|
|
68
|
+
size = _ref$size === void 0 ? "fillParent" : _ref$size;
|
|
70
69
|
|
|
71
|
-
var _useState = (0, _react.useState)(0),
|
|
70
|
+
var _useState = (0, _react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0),
|
|
72
71
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
73
72
|
innerValue = _useState2[0],
|
|
74
73
|
setInnerValue = _useState2[1];
|
|
75
74
|
|
|
75
|
+
var _useState3 = (0, _react.useState)(false),
|
|
76
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
77
|
+
dragging = _useState4[0],
|
|
78
|
+
setDragging = _useState4[1];
|
|
79
|
+
|
|
76
80
|
var colorsTheme = (0, _useTheme["default"])();
|
|
77
81
|
var backgroundType = (0, _react.useContext)(_BackgroundColorContext["default"]);
|
|
82
|
+
|
|
83
|
+
var _useState5 = (0, _react.useState)("label-".concat((0, _uuid.v4)())),
|
|
84
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 1),
|
|
85
|
+
labelId = _useState6[0];
|
|
86
|
+
|
|
78
87
|
var minLabel = (0, _react.useMemo)(function () {
|
|
79
88
|
return labelFormatCallback ? labelFormatCallback(minValue) : minValue;
|
|
80
89
|
}, [labelFormatCallback, minValue]);
|
|
81
90
|
var maxLabel = (0, _react.useMemo)(function () {
|
|
82
91
|
return labelFormatCallback ? labelFormatCallback(maxValue) : maxValue;
|
|
83
92
|
}, [labelFormatCallback, maxValue]);
|
|
93
|
+
var tickMarks = (0, _react.useMemo)(function () {
|
|
94
|
+
var ticks = [];
|
|
95
|
+
var numberOfMarks = Math.floor(maxValue / step - minValue / step);
|
|
96
|
+
var index = 0;
|
|
97
|
+
var range = maxValue - minValue;
|
|
98
|
+
|
|
99
|
+
if (marks) {
|
|
100
|
+
while (index <= numberOfMarks) {
|
|
101
|
+
ticks.push( /*#__PURE__*/_react["default"].createElement(TickMark, {
|
|
102
|
+
disabled: disabled,
|
|
103
|
+
stepPosition: step * index / range,
|
|
104
|
+
backgroundType: backgroundType,
|
|
105
|
+
stepValue: (value !== null && value !== void 0 ? value : innerValue) / maxValue
|
|
106
|
+
}));
|
|
107
|
+
index++;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return ticks;
|
|
111
|
+
} else {
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
}, [minValue, maxValue, step, value, innerValue]);
|
|
115
|
+
|
|
116
|
+
var handleSliderChange = function handleSliderChange(event) {
|
|
117
|
+
var valueToCheck = event.target.value;
|
|
118
|
+
(valueToCheck !== value || valueToCheck !== innerValue) && setInnerValue(valueToCheck);
|
|
119
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(valueToCheck);
|
|
120
|
+
};
|
|
84
121
|
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
valueToCheck !== newValue && setInnerValue(newValue);
|
|
88
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
122
|
+
var handleSliderDragging = function handleSliderDragging() {
|
|
123
|
+
setDragging(true);
|
|
89
124
|
};
|
|
90
125
|
|
|
91
|
-
var handleSliderOnChangeCommited = function handleSliderOnChangeCommited(event
|
|
92
|
-
|
|
126
|
+
var handleSliderOnChangeCommited = function handleSliderOnChangeCommited(event) {
|
|
127
|
+
if (dragging) {
|
|
128
|
+
setDragging(false);
|
|
129
|
+
onDragEnd === null || onDragEnd === void 0 ? void 0 : onDragEnd(event.target.value);
|
|
130
|
+
}
|
|
93
131
|
};
|
|
94
132
|
|
|
95
133
|
var handlerInputChange = function handlerInputChange(event) {
|
|
@@ -104,42 +142,57 @@ var DxcSlider = function DxcSlider(_ref) {
|
|
|
104
142
|
}
|
|
105
143
|
};
|
|
106
144
|
|
|
145
|
+
var isFirefox = navigator.userAgent.indexOf("Firefox") !== -1;
|
|
107
146
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
108
147
|
theme: colorsTheme.slider
|
|
109
148
|
}, /*#__PURE__*/_react["default"].createElement(Container, {
|
|
110
149
|
margin: margin,
|
|
111
|
-
size: size
|
|
112
|
-
|
|
150
|
+
size: size,
|
|
151
|
+
ref: ref
|
|
152
|
+
}, /*#__PURE__*/_react["default"].createElement(Label, {
|
|
153
|
+
id: labelId,
|
|
154
|
+
disabled: disabled,
|
|
155
|
+
backgroundType: backgroundType
|
|
156
|
+
}, label), /*#__PURE__*/_react["default"].createElement(HelperText, {
|
|
157
|
+
disabled: disabled,
|
|
113
158
|
backgroundType: backgroundType
|
|
114
|
-
}, showLimitsValues && /*#__PURE__*/_react["default"].createElement(MinLabelContainer, {
|
|
159
|
+
}, helperText), /*#__PURE__*/_react["default"].createElement(SliderContainer, null, showLimitsValues && /*#__PURE__*/_react["default"].createElement(MinLabelContainer, {
|
|
115
160
|
backgroundType: backgroundType,
|
|
116
161
|
disabled: disabled
|
|
117
|
-
}, minLabel), /*#__PURE__*/_react["default"].createElement(
|
|
118
|
-
|
|
162
|
+
}, minLabel), /*#__PURE__*/_react["default"].createElement(SliderInputContainer, null, /*#__PURE__*/_react["default"].createElement(SliderInput, {
|
|
163
|
+
role: "slider",
|
|
164
|
+
type: "range",
|
|
165
|
+
value: value != null && value >= 0 ? value : innerValue,
|
|
119
166
|
min: minValue,
|
|
120
167
|
max: maxValue,
|
|
121
|
-
onChange: handlerSliderChange,
|
|
122
|
-
onChangeCommitted: handleSliderOnChangeCommited,
|
|
123
168
|
step: step,
|
|
124
|
-
marks: marks || [],
|
|
125
169
|
disabled: disabled,
|
|
126
|
-
|
|
127
|
-
|
|
170
|
+
"aria-labelledby": labelId,
|
|
171
|
+
"aria-orientation": "horizontal",
|
|
172
|
+
"aria-valuemax": maxValue,
|
|
173
|
+
"aria-valuemin": minValue,
|
|
174
|
+
"aria-valuenow": value != null && value >= 0 ? value : innerValue,
|
|
175
|
+
onChange: handleSliderChange,
|
|
176
|
+
onMouseUp: handleSliderOnChangeCommited,
|
|
177
|
+
onMouseDown: handleSliderDragging,
|
|
178
|
+
backgroundType: backgroundType
|
|
179
|
+
}), marks && /*#__PURE__*/_react["default"].createElement(MarksContainer, {
|
|
180
|
+
isFirefox: isFirefox
|
|
181
|
+
}, tickMarks)), showLimitsValues && /*#__PURE__*/_react["default"].createElement(MaxLabelContainer, {
|
|
128
182
|
backgroundType: backgroundType,
|
|
129
183
|
disabled: disabled,
|
|
130
184
|
step: step
|
|
131
185
|
}, maxLabel), showInput && /*#__PURE__*/_react["default"].createElement(StyledTextInput, null, /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
132
186
|
name: name,
|
|
133
|
-
value: value != null && value >= 0
|
|
187
|
+
value: value != null && value >= 0 ? value.toString() : innerValue.toString(),
|
|
134
188
|
disabled: disabled,
|
|
135
189
|
onChange: handlerInputChange,
|
|
136
|
-
size: "fillParent"
|
|
137
|
-
tabIndex: tabIndex
|
|
190
|
+
size: "fillParent"
|
|
138
191
|
})))));
|
|
139
|
-
};
|
|
192
|
+
});
|
|
140
193
|
|
|
141
194
|
var sizes = {
|
|
142
|
-
medium: "
|
|
195
|
+
medium: "360px",
|
|
143
196
|
large: "480px",
|
|
144
197
|
fillParent: "100%"
|
|
145
198
|
};
|
|
@@ -148,6 +201,14 @@ var calculateWidth = function calculateWidth(margin, size) {
|
|
|
148
201
|
return size === "fillParent" ? "calc(".concat(sizes[size], " - ").concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")") : sizes[size];
|
|
149
202
|
};
|
|
150
203
|
|
|
204
|
+
var getChromeStyles = function getChromeStyles() {
|
|
205
|
+
return "\n width: 100%;\n margin-right: 4px;";
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
var getFireFoxStyles = function getFireFoxStyles() {
|
|
209
|
+
return "\n width: calc(100% - 16px);\n margin-right: 3px;";
|
|
210
|
+
};
|
|
211
|
+
|
|
151
212
|
var Container = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: column;\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n width: ", ";\n"])), function (props) {
|
|
152
213
|
return props.margin && (0, _typeof2["default"])(props.margin) !== "object" ? _variables.spaces[props.margin] : "0px";
|
|
153
214
|
}, function (props) {
|
|
@@ -162,10 +223,10 @@ var Container = _styledComponents["default"].div(_templateObject || (_templateOb
|
|
|
162
223
|
return calculateWidth(props.margin, props.size);
|
|
163
224
|
});
|
|
164
225
|
|
|
165
|
-
var Label = _styledComponents["default"].label(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (props) {
|
|
166
|
-
return props.theme.labelFontColor;
|
|
226
|
+
var Label = _styledComponents["default"].label(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (props) {
|
|
227
|
+
return props.disabled ? props.backgroundType === "dark" ? props.theme.disabledLabelFontColorOnDark : props.theme.disabledLabelFontColor : props.backgroundType === "dark" ? props.theme.labelFontColorOnDark : props.theme.labelFontColor;
|
|
167
228
|
}, function (props) {
|
|
168
|
-
return props.theme.
|
|
229
|
+
return props.theme.fontFamily;
|
|
169
230
|
}, function (props) {
|
|
170
231
|
return props.theme.labelFontSize;
|
|
171
232
|
}, function (props) {
|
|
@@ -176,129 +237,104 @@ var Label = _styledComponents["default"].label(_templateObject2 || (_templateObj
|
|
|
176
237
|
return props.theme.labelLineHeight;
|
|
177
238
|
});
|
|
178
239
|
|
|
179
|
-
var HelperText = _styledComponents["default"].span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (props) {
|
|
180
|
-
return props.theme.helperTextFontColor;
|
|
240
|
+
var HelperText = _styledComponents["default"].span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (props) {
|
|
241
|
+
return props.disabled ? props.backgroundType === "dark" ? props.theme.disabledHelperTextFontColorOnDark : props.theme.disabledHelperTextFontColor : props.backgroundType === "dark" ? props.theme.helperTextFontColorOnDark : props.theme.helperTextFontColor;
|
|
181
242
|
}, function (props) {
|
|
182
|
-
return props.theme.
|
|
243
|
+
return props.theme.fontFamily;
|
|
183
244
|
}, function (props) {
|
|
184
245
|
return props.theme.helperTextFontSize;
|
|
185
246
|
}, function (props) {
|
|
186
|
-
return props.theme.
|
|
247
|
+
return props.theme.helperTextFontStyle;
|
|
187
248
|
}, function (props) {
|
|
188
249
|
return props.theme.helperTextFontWeight;
|
|
189
250
|
}, function (props) {
|
|
190
251
|
return props.theme.helperTextLineHeight;
|
|
191
252
|
});
|
|
192
253
|
|
|
193
|
-
var
|
|
194
|
-
return props.
|
|
195
|
-
}, function (props) {
|
|
196
|
-
return props.theme.thumbHeight;
|
|
197
|
-
}, function (props) {
|
|
198
|
-
return props.theme.thumbWidth;
|
|
199
|
-
}, function (props) {
|
|
200
|
-
return props.backgroundType === "dark" ? props.theme.disabledThumbBackgroundColorOnDark : props.theme.disabledThumbBackgroundColor;
|
|
201
|
-
}, function (props) {
|
|
202
|
-
return props.theme.disabledThumbVerticalPosition;
|
|
203
|
-
}, function (props) {
|
|
204
|
-
return props.backgroundType === "dark" ? props.theme.disabledTrackLineColorOnDark : props.theme.disabledTrackLineColor;
|
|
205
|
-
}, function (props) {
|
|
206
|
-
return props.backgroundType === "dark" ? props.theme.disabledTotalLineColorOnDark : props.theme.disabledTotalLineColor;
|
|
207
|
-
}, function (props) {
|
|
208
|
-
return props.backgroundType === "dark" ? props.theme.disabledTickBackgroundColorOnDark : props.theme.disabledTickBackgroundColor;
|
|
254
|
+
var SliderInput = _styledComponents["default"].input(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n width: 100%;\n min-width: 240px;\n height: ", ";\n display: inline-block;\n vertical-align: middle;\n -webkit-appearance: none;\n background-color: ", ";\n background-image: ", ";\n background-repeat: no-repeat;\n background-size: ", ";\n border-radius: 5px;\n cursor: ", ";\n &::-webkit-slider-runnable-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n margin: 0px -8px;\n }\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: none;\n height: ", ";\n width: ", ";\n border-radius: 25px;\n background: ", ";\n &:active {\n ", "\n }\n &:hover {\n ", "\n }\n }\n &::-moz-range-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n }\n &::-moz-range-thumb {\n -webkit-appearance: none;\n border: none;\n height: ", ";\n width: ", ";\n border-radius: 25px;\n background: ", ";\n &:active {\n background: ", ";\n transform: scale(1.16667);\n }\n &:hover {\n ", "\n }\n }\n &:focus {\n outline: none;\n &::-webkit-slider-thumb {\n outline: ", "\n auto 1px;\n outline-offset: 2px;\n }\n &::-moz-range-thumb {\n outline: ", "\n auto 1px;\n outline-offset: 2px;\n }\n }\n"])), function (props) {
|
|
255
|
+
return props.theme.trackLineThickness;
|
|
209
256
|
}, function (props) {
|
|
210
|
-
return props.backgroundType === "dark" ? props.theme.
|
|
257
|
+
return props.disabled ? props.backgroundType === "dark" ? props.theme.disabledTotalLineColorOnDark + "61" : props.theme.disabledTotalLineColor + "61" : props.backgroundType === "dark" ? props.theme.totalLineColorOnDark + "61" : props.theme.totalLineColor;
|
|
211
258
|
}, function (props) {
|
|
212
|
-
return props.theme.
|
|
259
|
+
return props.disabled ? props.backgroundType === "dark" ? "linear-gradient(".concat(props.theme.disabledTrackLineColorOnDark, ", ").concat(props.theme.disabledTrackLineColorOnDark, ")") : "linear-gradient(".concat(props.theme.disabledTrackLineColor, ", ").concat(props.theme.disabledTrackLineColor, ")") : props.backgroundType === "dark" ? "linear-gradient(".concat(props.theme.trackLineColorOnDark, ", ").concat(props.theme.trackLineColorOnDark, ")") : "linear-gradient(".concat(props.theme.trackLineColor, ", ").concat(props.theme.trackLineColor, ")");
|
|
213
260
|
}, function (props) {
|
|
214
|
-
return props.
|
|
261
|
+
return (props.value - props.min) * 100 / (props.max - props.min) + "% 100%";
|
|
215
262
|
}, function (props) {
|
|
216
|
-
return props.
|
|
263
|
+
return props.disabled ? "not-allowed" : "pointer";
|
|
217
264
|
}, function (props) {
|
|
218
265
|
return props.theme.thumbHeight;
|
|
219
266
|
}, function (props) {
|
|
220
267
|
return props.theme.thumbWidth;
|
|
221
268
|
}, function (props) {
|
|
222
|
-
return props.backgroundType === "dark" ? props.theme.thumbBackgroundColorOnDark : props.theme.thumbBackgroundColor;
|
|
223
|
-
}, function (props) {
|
|
224
|
-
return props.theme.thumbVerticalPosition;
|
|
269
|
+
return props.disabled ? props.backgroundType === "dark" ? props.theme.disabledThumbBackgroundColorOnDark : props.theme.disabledThumbBackgroundColor : props.backgroundType === "dark" ? props.theme.thumbBackgroundColorOnDark : props.theme.thumbBackgroundColor;
|
|
225
270
|
}, function (props) {
|
|
226
|
-
|
|
271
|
+
if (!props.disabled) {
|
|
272
|
+
return "\n background: ".concat(props.backgroundType === "dark" ? props.theme.activeThumbBackgroundColorOnDark : props.theme.activeThumbBackgroundColor, ";\n transform: scale(1.16667);");
|
|
273
|
+
}
|
|
227
274
|
}, function (props) {
|
|
228
|
-
|
|
275
|
+
if (!props.disabled) {
|
|
276
|
+
return "height: ".concat(props.theme.hoverThumbHeight, ";\n width: ").concat(props.theme.hoverThumbWidth, ";\n transform: scale(1.16667);\n transform-origin: center center;\n background: ").concat(props.backgroundType === "dark" ? props.theme.hoverThumbBackgroundColorOnDark : props.theme.hoverThumbBackgroundColor, ";");
|
|
277
|
+
}
|
|
229
278
|
}, function (props) {
|
|
230
|
-
return props.
|
|
231
|
-
}, function (props) {
|
|
232
|
-
return props.theme.hoverThumbScale;
|
|
233
|
-
}, function (props) {
|
|
234
|
-
return props.theme.hoverThumbHeight;
|
|
279
|
+
return props.theme.thumbHeight;
|
|
235
280
|
}, function (props) {
|
|
236
|
-
return props.theme.
|
|
281
|
+
return props.theme.thumbWidth;
|
|
237
282
|
}, function (props) {
|
|
238
|
-
return props.theme.
|
|
283
|
+
return props.disabled ? props.backgroundType === "dark" ? props.theme.disabledThumbBackgroundColorOnDark : props.theme.disabledThumbBackgroundColor : props.backgroundType === "dark" ? props.theme.thumbBackgroundColorOnDark : props.theme.thumbBackgroundColor;
|
|
239
284
|
}, function (props) {
|
|
240
285
|
return props.backgroundType === "dark" ? props.theme.activeThumbBackgroundColorOnDark : props.theme.activeThumbBackgroundColor;
|
|
241
286
|
}, function (props) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}, function (props) {
|
|
246
|
-
return props.theme.trackLineThickness;
|
|
247
|
-
}, function (props) {
|
|
248
|
-
return props.theme.trackLineVerticalPosition;
|
|
249
|
-
}, function (props) {
|
|
250
|
-
return props.backgroundType === "dark" ? props.theme.trackLineColorOnDark : props.theme.trackLineColor;
|
|
287
|
+
if (!props.disabled) {
|
|
288
|
+
return "height: ".concat(props.theme.hoverThumbHeight, ";\n width: ").concat(props.theme.hoverThumbWidth, ";\n transform: scale(1.16667);\n transform-origin: center center;\n background: ").concat(props.backgroundType === "dark" ? props.theme.hoverThumbBackgroundColorOnDark : props.theme.hoverThumbBackgroundColor, ";");
|
|
289
|
+
}
|
|
251
290
|
}, function (props) {
|
|
252
|
-
return props.backgroundType === "dark" ? props.theme.
|
|
253
|
-
}, function (props) {
|
|
254
|
-
return props.theme.totalLineThickness;
|
|
255
|
-
}, function (props) {
|
|
256
|
-
return props.theme.totalLineVerticalPosition;
|
|
257
|
-
}, function (props) {
|
|
258
|
-
return props.backgroundType === "dark" ? props.theme.tickBackgroundColorOnDark : props.theme.tickBackgroundColor;
|
|
259
|
-
}, function (props) {
|
|
260
|
-
return props.backgroundType === "dark" ? props.theme.tickBackgroundColorOnDark : props.theme.tickBackgroundColor;
|
|
261
|
-
}, function (props) {
|
|
262
|
-
return props.theme.tickHeight;
|
|
263
|
-
}, function (props) {
|
|
264
|
-
return props.theme.tickWidth;
|
|
291
|
+
return props.disabled ? props.backgroundType === "dark" ? props.theme.disabledFocusColorOnDark : props.theme.disabledFocusColor : props.backgroundType === "dark" ? props.theme.focusColorOnDark : props.theme.focusColor;
|
|
265
292
|
}, function (props) {
|
|
266
|
-
return props.theme.
|
|
293
|
+
return props.disabled ? props.backgroundType === "dark" ? props.theme.disabledFocusColorOnDark : props.theme.disabledFocusColor : props.backgroundType === "dark" ? props.theme.focusColorOnDark : props.theme.focusColor;
|
|
267
294
|
});
|
|
268
295
|
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
return props.theme.
|
|
296
|
+
var SliderContainer = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n height: 48px;\n align-items: center;\n"])));
|
|
297
|
+
|
|
298
|
+
var LimitLabelContainer = _styledComponents["default"].span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n white-space: nowrap;\n"])), function (props) {
|
|
299
|
+
return props.disabled ? props.theme.disabledLimitValuesFontColor : props.backgroundType === "dark" ? props.theme.limitValuesFontColorOnDark : props.theme.limitValuesFontColor;
|
|
273
300
|
}, function (props) {
|
|
274
|
-
return props.theme.
|
|
301
|
+
return props.theme.fontFamily;
|
|
275
302
|
}, function (props) {
|
|
276
|
-
return props.theme.
|
|
303
|
+
return props.theme.limitValuesFontSize;
|
|
277
304
|
}, function (props) {
|
|
278
|
-
return props.
|
|
305
|
+
return props.theme.limitValuesFontStyle;
|
|
279
306
|
}, function (props) {
|
|
280
|
-
return props.theme.
|
|
307
|
+
return props.theme.limitValuesFontWeight;
|
|
281
308
|
}, function (props) {
|
|
309
|
+
return props.theme.limitValuesFontLetterSpacing;
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
var MinLabelContainer = (0, _styledComponents["default"])(LimitLabelContainer)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: ", ";\n"])), function (props) {
|
|
282
313
|
return props.theme.floorLabelMarginRight;
|
|
283
314
|
});
|
|
315
|
+
var MaxLabelContainer = (0, _styledComponents["default"])(LimitLabelContainer)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: ", ";\n"])), function (props) {
|
|
316
|
+
return props.step === 1 ? props.theme.ceilLabelMarginLeft : "1.25rem";
|
|
317
|
+
});
|
|
284
318
|
|
|
285
|
-
var
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
return props.
|
|
289
|
-
}
|
|
290
|
-
|
|
319
|
+
var SliderInputContainer = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n width: 100%;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: -2px;\n padding-top: 1px;\n z-index: 0;\n"])));
|
|
320
|
+
|
|
321
|
+
var MarksContainer = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n position: absolute;\n pointer-events: none;\n height: 100%;\n display: flex;\n align-items: center;\n"])), function (props) {
|
|
322
|
+
return props.isFirefox ? getFireFoxStyles() : getChromeStyles();
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
var TickMark = _styledComponents["default"].span(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["\n position: absolute;\n background: ", ";\n height: ", ";\n width: ", ";\n border-radius: 18px;\n left: ", ";\n z-index: ", ";\n"])), function (props) {
|
|
326
|
+
return props.disabled ? props.backgroundType === "dark" ? props.theme.disabledTickBackgroundColorOnDark : props.theme.disabledTickBackgroundColor : props.backgroundType === "dark" ? props.theme.tickBackgroundColorOnDark : props.theme.tickBackgroundColor;
|
|
291
327
|
}, function (props) {
|
|
292
|
-
return props.theme.
|
|
328
|
+
return props.theme.tickHeight;
|
|
293
329
|
}, function (props) {
|
|
294
|
-
return props.
|
|
330
|
+
return props.theme.tickWidth;
|
|
295
331
|
}, function (props) {
|
|
296
|
-
return props.
|
|
332
|
+
return "calc(".concat(props.stepPosition, " * 100%)");
|
|
297
333
|
}, function (props) {
|
|
298
|
-
return props.
|
|
334
|
+
return "".concat(props.stepPosition <= props.stepValue ? "-1" : "0");
|
|
299
335
|
});
|
|
300
336
|
|
|
301
|
-
var StyledTextInput = _styledComponents["default"].div(
|
|
337
|
+
var StyledTextInput = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: ", ";\n max-width: 70px;\n"])), function (props) {
|
|
302
338
|
return props.theme.inputMarginLeft;
|
|
303
339
|
});
|
|
304
340
|
|