@dxc-technology/halstack-react 0.0.0-0d951d2 → 0.0.0-0da54d8
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.js +8 -4
- package/ThemeContext.js +84 -88
- package/V3Select/V3Select.js +33 -127
- package/V3Textarea/V3Textarea.js +10 -14
- package/accordion/Accordion.d.ts +4 -0
- package/accordion/Accordion.js +35 -130
- package/accordion/types.d.ts +68 -0
- package/accordion/types.js +5 -0
- package/accordion-group/AccordionGroup.d.ts +7 -0
- package/accordion-group/AccordionGroup.js +65 -81
- package/accordion-group/types.d.ts +72 -0
- package/accordion-group/types.js +5 -0
- package/alert/Alert.d.ts +4 -0
- package/alert/Alert.js +38 -151
- package/alert/types.d.ts +49 -0
- package/alert/types.js +5 -0
- package/badge/Badge.js +9 -13
- package/box/Box.js +9 -13
- package/box/Box.stories.jsx +132 -0
- package/button/Button.d.ts +4 -0
- package/button/Button.js +15 -71
- package/button/Button.stories.tsx +293 -0
- package/button/types.d.ts +57 -0
- package/button/types.js +5 -0
- package/card/Card.d.ts +4 -0
- package/card/Card.js +32 -121
- package/card/types.d.ts +69 -0
- package/card/types.js +5 -0
- package/checkbox/Checkbox.d.ts +4 -0
- package/checkbox/Checkbox.js +13 -59
- package/checkbox/types.d.ts +60 -0
- package/checkbox/types.js +5 -0
- package/chip/Chip.js +17 -61
- package/common/RequiredComponent.js +3 -11
- package/common/variables.js +40 -45
- package/date/Date.js +16 -22
- package/date-input/DateInput.d.ts +4 -0
- package/date-input/DateInput.js +22 -61
- package/date-input/types.d.ts +100 -0
- package/date-input/types.js +5 -0
- package/dialog/Dialog.d.ts +4 -0
- package/dialog/Dialog.js +20 -73
- package/dialog/types.d.ts +43 -0
- package/dialog/types.js +5 -0
- package/dropdown/Dropdown.d.ts +4 -0
- package/dropdown/Dropdown.js +44 -171
- package/dropdown/types.d.ts +89 -0
- package/dropdown/types.js +5 -0
- package/file-input/FileInput.js +49 -161
- package/file-input/FileItem.js +29 -123
- package/footer/Footer.d.ts +4 -0
- package/footer/Footer.js +38 -193
- package/footer/Icons.js +13 -13
- package/footer/types.d.ts +61 -0
- package/footer/types.js +5 -0
- package/header/Header.js +35 -179
- package/header/Icons.js +11 -11
- package/heading/Heading.js +18 -72
- package/input-text/Icons.js +2 -2
- package/input-text/InputText.js +36 -130
- package/input-text/index.d.ts +1 -1
- package/layout/ApplicationLayout.js +31 -123
- package/layout/Icons.js +7 -7
- package/link/Link.js +18 -72
- package/main.d.ts +44 -40
- package/main.js +91 -87
- package/number-input/NumberInput.js +5 -13
- package/number-input/NumberInput.stories.jsx +115 -0
- package/number-input/NumberInputContext.js +1 -1
- package/package.json +15 -12
- package/paginator/Icons.js +9 -9
- package/paginator/Paginator.d.ts +4 -0
- package/paginator/Paginator.js +24 -131
- package/paginator/types.d.ts +38 -0
- package/paginator/types.js +5 -0
- package/password-input/PasswordInput.js +17 -21
- package/password-input/PasswordInput.stories.jsx +131 -0
- package/progress-bar/ProgressBar.d.ts +4 -0
- package/progress-bar/ProgressBar.js +19 -91
- package/progress-bar/types.d.ts +37 -0
- package/progress-bar/types.js +5 -0
- package/radio/Radio.d.ts +4 -0
- package/radio/Radio.js +15 -50
- package/radio/types.d.ts +54 -0
- package/radio/types.js +5 -0
- package/resultsetTable/ResultsetTable.js +35 -119
- package/select/Select.js +194 -466
- package/select/index.d.ts +4 -4
- package/sidenav/Sidenav.js +15 -49
- package/slider/Slider.d.ts +4 -0
- package/slider/Slider.js +45 -143
- package/slider/types.d.ts +83 -0
- package/slider/types.js +5 -0
- package/spinner/Spinner.js +38 -152
- package/switch/Switch.d.ts +4 -0
- package/switch/Switch.js +26 -69
- package/switch/types.d.ts +58 -0
- package/switch/types.js +5 -0
- package/table/Table.js +10 -24
- package/tabs/Tabs.d.ts +4 -0
- package/tabs/Tabs.js +29 -161
- package/tabs/types.d.ts +71 -0
- package/tabs/types.js +5 -0
- package/tag/Tag.js +22 -96
- package/text-input/TextInput.js +240 -389
- package/text-input/index.d.ts +2 -2
- package/textarea/Textarea.js +20 -72
- package/textarea/Textarea.stories.jsx +135 -0
- package/toggle/Toggle.js +15 -49
- package/toggle-group/ToggleGroup.js +23 -107
- package/upload/Upload.js +11 -15
- package/upload/buttons-upload/ButtonsUpload.js +13 -37
- package/upload/buttons-upload/Icons.js +7 -7
- package/upload/dragAndDropArea/DragAndDropArea.js +24 -128
- package/upload/dragAndDropArea/Icons.js +6 -6
- package/upload/file-upload/FileToUpload.js +16 -90
- package/upload/file-upload/Icons.js +13 -13
- package/upload/files-upload/FilesToUpload.js +12 -26
- package/upload/transaction/Icons.js +31 -31
- package/upload/transaction/Transaction.js +17 -61
- package/upload/transactions/Transactions.js +13 -57
- package/wizard/Icons.js +8 -8
- package/wizard/Wizard.js +31 -165
- package/accordion/index.d.ts +0 -28
- package/accordion-group/index.d.ts +0 -16
- package/alert/index.d.ts +0 -51
- package/button/Button.stories.js +0 -27
- package/button/index.d.ts +0 -24
- package/card/index.d.ts +0 -22
- package/checkbox/index.d.ts +0 -24
- package/date-input/index.d.ts +0 -95
- package/dialog/index.d.ts +0 -18
- package/dropdown/index.d.ts +0 -26
- package/footer/index.d.ts +0 -25
- package/paginator/index.d.ts +0 -20
- package/progress-bar/index.d.ts +0 -18
- package/radio/index.d.ts +0 -23
- package/slider/index.d.ts +0 -29
- package/switch/index.d.ts +0 -24
- package/tabs/index.d.ts +0 -19
package/wizard/Wizard.js
CHANGED
|
@@ -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 _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -29,145 +29,11 @@ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
|
29
29
|
|
|
30
30
|
var _Icons = require("./Icons");
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n ", "\n border: ", ";\n opacity: 1;\n flex-grow: 1;\n"]);
|
|
34
|
-
|
|
35
|
-
_templateObject14 = function _templateObject14() {
|
|
36
|
-
return data;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return data;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function _templateObject13() {
|
|
43
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n ", ";\n margin: 0;\n"]);
|
|
44
|
-
|
|
45
|
-
_templateObject13 = function _templateObject13() {
|
|
46
|
-
return data;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
return data;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _templateObject12() {
|
|
53
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n ", ";\n text-transform: ", ";\n margin: 0;\n"]);
|
|
54
|
-
|
|
55
|
-
_templateObject12 = function _templateObject12() {
|
|
56
|
-
return data;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
return data;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function _templateObject11() {
|
|
63
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 12px;\n"]);
|
|
64
|
-
|
|
65
|
-
_templateObject11 = function _templateObject11() {
|
|
66
|
-
return data;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
return data;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function _templateObject10() {
|
|
73
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: 18px;\n height: 18px;\n position: absolute;\n top: 22.5px;\n left: 22.5px;\n"]);
|
|
74
|
-
|
|
75
|
-
_templateObject10 = function _templateObject10() {
|
|
76
|
-
return data;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
return data;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function _templateObject9() {
|
|
83
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n opacity: 1;\n margin: 0px 0px 0px 1px;\n"]);
|
|
84
|
-
|
|
85
|
-
_templateObject9 = function _templateObject9() {
|
|
86
|
-
return data;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
return data;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function _templateObject8() {
|
|
93
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n"]);
|
|
94
|
-
|
|
95
|
-
_templateObject8 = function _templateObject8() {
|
|
96
|
-
return data;
|
|
97
|
-
};
|
|
32
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
98
33
|
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function _templateObject7() {
|
|
103
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n overflow: hidden;\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
|
|
104
|
-
|
|
105
|
-
_templateObject7 = function _templateObject7() {
|
|
106
|
-
return data;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
return data;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function _templateObject6() {
|
|
113
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n"]);
|
|
114
|
-
|
|
115
|
-
_templateObject6 = function _templateObject6() {
|
|
116
|
-
return data;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
return data;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function _templateObject5() {
|
|
123
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n\n ", "\n ", ";\n\n border-radius: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n"]);
|
|
124
|
-
|
|
125
|
-
_templateObject5 = function _templateObject5() {
|
|
126
|
-
return data;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
return data;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function _templateObject4() {
|
|
133
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: inline-flex;\n padding-bottom: 4px;\n"]);
|
|
134
|
-
|
|
135
|
-
_templateObject4 = function _templateObject4() {
|
|
136
|
-
return data;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
return data;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function _templateObject3() {
|
|
143
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n border: none;\n background: inherit;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: ", ";\n\n padding: 0px;\n ", ";\n\n &:hover {\n ", ";\n }\n &:focus {\n outline: ", " auto 1px;\n }\n"]);
|
|
144
|
-
|
|
145
|
-
_templateObject3 = function _templateObject3() {
|
|
146
|
-
return data;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
return data;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function _templateObject2() {
|
|
153
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n ", "\n flex-grow: ", ";\n flex-direction: ", ";\n ", "\n"]);
|
|
154
|
-
|
|
155
|
-
_templateObject2 = function _templateObject2() {
|
|
156
|
-
return data;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
return data;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
function _templateObject() {
|
|
163
|
-
var data = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n flex-direction: ", ";\n justify-content: \"center\";\n ", ";\n font-family: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"]);
|
|
164
|
-
|
|
165
|
-
_templateObject = function _templateObject() {
|
|
166
|
-
return data;
|
|
167
|
-
};
|
|
34
|
+
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); }
|
|
168
35
|
|
|
169
|
-
|
|
170
|
-
}
|
|
36
|
+
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; }
|
|
171
37
|
|
|
172
38
|
var DxcWizard = function DxcWizard(_ref) {
|
|
173
39
|
var _ref$mode = _ref.mode,
|
|
@@ -197,17 +63,17 @@ var DxcWizard = function DxcWizard(_ref) {
|
|
|
197
63
|
}
|
|
198
64
|
};
|
|
199
65
|
|
|
200
|
-
return _react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
201
67
|
theme: colorsTheme.wizard
|
|
202
|
-
}, _react["default"].createElement(StepsContainer, {
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(StepsContainer, {
|
|
203
69
|
mode: mode,
|
|
204
70
|
margin: margin
|
|
205
71
|
}, steps.map(function (step, i) {
|
|
206
|
-
return _react["default"].createElement(StepContainer, {
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement(StepContainer, {
|
|
207
73
|
key: "step".concat(i),
|
|
208
74
|
mode: mode,
|
|
209
75
|
lastStep: i === steps.length - 1
|
|
210
|
-
}, _react["default"].createElement(Step, {
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement(Step, {
|
|
211
77
|
tabIndex: tabIndex,
|
|
212
78
|
onClick: function onClick() {
|
|
213
79
|
return handleStepClick(i);
|
|
@@ -216,33 +82,33 @@ var DxcWizard = function DxcWizard(_ref) {
|
|
|
216
82
|
disabled: step.disabled,
|
|
217
83
|
first: i === 0,
|
|
218
84
|
last: i === steps.length - 1
|
|
219
|
-
}, _react["default"].createElement(StepHeader, null, _react["default"].createElement(IconContainer, {
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement(StepHeader, null, /*#__PURE__*/_react["default"].createElement(IconContainer, {
|
|
220
86
|
current: i === renderedCurrent,
|
|
221
87
|
visited: i < renderedCurrent,
|
|
222
88
|
disabled: step.disabled
|
|
223
|
-
}, step.icon ? _react["default"].createElement(StepIconContainer, {
|
|
89
|
+
}, step.icon ? /*#__PURE__*/_react["default"].createElement(StepIconContainer, {
|
|
224
90
|
disabled: step.disabled
|
|
225
|
-
}, (0, _typeof2["default"])(step.icon) === "object" ? step.icon.type === "img" ? _react["default"].createElement(ImgContainer, {
|
|
91
|
+
}, (0, _typeof2["default"])(step.icon) === "object" ? step.icon.type === "img" ? /*#__PURE__*/_react["default"].createElement(ImgContainer, {
|
|
226
92
|
current: i === renderedCurrent,
|
|
227
93
|
img: step.icon.props.src
|
|
228
|
-
}) : step.icon : _react["default"].createElement(step.icon)) : step.iconSrc ? _react["default"].createElement(Icon, {
|
|
94
|
+
}) : step.icon : /*#__PURE__*/_react["default"].createElement(step.icon)) : step.iconSrc ? /*#__PURE__*/_react["default"].createElement(Icon, {
|
|
229
95
|
src: step.iconSrc
|
|
230
|
-
}) : _react["default"].createElement(Number, {
|
|
96
|
+
}) : /*#__PURE__*/_react["default"].createElement(Number, {
|
|
231
97
|
disabled: step.disabled,
|
|
232
98
|
current: i === renderedCurrent
|
|
233
|
-
}, i + 1)), step.valid !== undefined ? step.valid ? _react["default"].createElement(ValidityIconContainer, null, _Icons.validIcon) : _react["default"].createElement(ValidityIconContainer, null, _Icons.invalidIcon) : ""), step.label || step.description ? _react["default"].createElement(InfoContainer, null, step.label ? _react["default"].createElement(Label, {
|
|
99
|
+
}, i + 1)), step.valid !== undefined ? step.valid ? /*#__PURE__*/_react["default"].createElement(ValidityIconContainer, null, _Icons.validIcon) : /*#__PURE__*/_react["default"].createElement(ValidityIconContainer, null, _Icons.invalidIcon) : ""), step.label || step.description ? /*#__PURE__*/_react["default"].createElement(InfoContainer, null, step.label ? /*#__PURE__*/_react["default"].createElement(Label, {
|
|
234
100
|
disabled: step.disabled,
|
|
235
101
|
visited: i <= innerCurrent
|
|
236
|
-
}, step.label) : "", step.description ? _react["default"].createElement(Description, {
|
|
102
|
+
}, step.label) : "", step.description ? /*#__PURE__*/_react["default"].createElement(Description, {
|
|
237
103
|
disabled: step.disabled,
|
|
238
104
|
visited: i <= innerCurrent
|
|
239
|
-
}, step.description) : "") : ""), i === steps.length - 1 ? "" : _react["default"].createElement(StepSeparator, {
|
|
105
|
+
}, step.description) : "") : ""), i === steps.length - 1 ? "" : /*#__PURE__*/_react["default"].createElement(StepSeparator, {
|
|
240
106
|
mode: mode
|
|
241
107
|
}));
|
|
242
108
|
})));
|
|
243
109
|
};
|
|
244
110
|
|
|
245
|
-
var StepsContainer = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
111
|
+
var StepsContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n flex-direction: ", ";\n justify-content: \"center\";\n ", ";\n font-family: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"])), function (props) {
|
|
246
112
|
return props.mode === "vertical" ? "column" : "row";
|
|
247
113
|
}, function (props) {
|
|
248
114
|
return props.mode === "vertical" ? "height: 500px" : "width: 100%";
|
|
@@ -260,7 +126,7 @@ var StepsContainer = _styledComponents["default"].div(_templateObject(), functio
|
|
|
260
126
|
return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
|
|
261
127
|
});
|
|
262
128
|
|
|
263
|
-
var StepContainer = _styledComponents["default"].div(_templateObject2(), function (props) {
|
|
129
|
+
var StepContainer = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n ", "\n flex-grow: ", ";\n flex-direction: ", ";\n ", "\n"])), function (props) {
|
|
264
130
|
return props.mode === "vertical" ? "" : "align-items: center;";
|
|
265
131
|
}, function (props) {
|
|
266
132
|
return props.lastStep ? "0" : "1";
|
|
@@ -270,7 +136,7 @@ var StepContainer = _styledComponents["default"].div(_templateObject2(), functio
|
|
|
270
136
|
return props.mode === "vertical" ? "width: 100%;" : "";
|
|
271
137
|
});
|
|
272
138
|
|
|
273
|
-
var Step = _styledComponents["default"].button(_templateObject3(), function (props) {
|
|
139
|
+
var Step = _styledComponents["default"].button(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n border: none;\n background: inherit;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: ", ";\n\n padding: 0px;\n ", ";\n\n &:hover {\n ", ";\n }\n &:focus {\n outline: ", " auto 1px;\n }\n"])), function (props) {
|
|
274
140
|
return props.first ? props.mode === "vertical" ? "0 0 24px 0" : "0 24px 0 0" : props.last ? props.mode === "vertical" ? "24px 0 0 0" : "0 0 0 24px" : props.mode === "vertical" ? "24px 0" : "0 24px";
|
|
275
141
|
}, function (props) {
|
|
276
142
|
return props.disabled ? "cursor: not-allowed" : "";
|
|
@@ -280,9 +146,9 @@ var Step = _styledComponents["default"].button(_templateObject3(), function (pro
|
|
|
280
146
|
return props.theme.focusColor;
|
|
281
147
|
});
|
|
282
148
|
|
|
283
|
-
var StepHeader = _styledComponents["default"].div(_templateObject4());
|
|
149
|
+
var StepHeader = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: inline-flex;\n padding-bottom: 4px;\n"])));
|
|
284
150
|
|
|
285
|
-
var IconContainer = _styledComponents["default"].div(_templateObject5(), function (props) {
|
|
151
|
+
var IconContainer = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n\n ", "\n ", ";\n\n border-radius: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n"])), function (props) {
|
|
286
152
|
return props.disabled ? props.theme.disabledCircleWidth : props.current ? props.theme.selectedCircleWidth : props.theme.circleWidth;
|
|
287
153
|
}, function (props) {
|
|
288
154
|
return props.disabled ? props.theme.disabledCircleHeight : props.current ? props.theme.selectedCircleHeight : props.theme.circleHeight;
|
|
@@ -294,19 +160,19 @@ var IconContainer = _styledComponents["default"].div(_templateObject5(), functio
|
|
|
294
160
|
return !props.current && !props.disabled ? props.theme.circleBorderRadius : props.current ? props.theme.selectedCircleBorderRadius : props.disabled ? props.theme.disabledCircleBorderRadius : "";
|
|
295
161
|
});
|
|
296
162
|
|
|
297
|
-
var Icon = _styledComponents["default"].img(_templateObject6(), function (props) {
|
|
163
|
+
var Icon = _styledComponents["default"].img(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n"])), function (props) {
|
|
298
164
|
return props.theme.stepContainerIconSize;
|
|
299
165
|
}, function (props) {
|
|
300
166
|
return props.theme.stepContainerIconSize;
|
|
301
167
|
});
|
|
302
168
|
|
|
303
|
-
var StepIconContainer = _styledComponents["default"].div(_templateObject7(), function (props) {
|
|
169
|
+
var StepIconContainer = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n overflow: hidden;\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"])), function (props) {
|
|
304
170
|
return props.theme.stepContainerIconSize;
|
|
305
171
|
}, function (props) {
|
|
306
172
|
return props.theme.stepContainerIconSize;
|
|
307
173
|
});
|
|
308
174
|
|
|
309
|
-
var ImgContainer = _styledComponents["default"].div(_templateObject8(), function (props) {
|
|
175
|
+
var ImgContainer = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n mask: url(", ") no-repeat center;\n mask-size: ", ";\n height: ", ";\n width: ", ";\n"])), function (props) {
|
|
310
176
|
return props.current ? props.theme.stepContainerSelectedFontColor : props.theme.stepContainerFontColor;
|
|
311
177
|
}, function (_ref2) {
|
|
312
178
|
var img = _ref2.img;
|
|
@@ -319,7 +185,7 @@ var ImgContainer = _styledComponents["default"].div(_templateObject8(), function
|
|
|
319
185
|
return props.theme.stepContainerIconSize;
|
|
320
186
|
});
|
|
321
187
|
|
|
322
|
-
var Number = _styledComponents["default"].p(_templateObject9(), function (props) {
|
|
188
|
+
var Number = _styledComponents["default"].p(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n opacity: 1;\n margin: 0px 0px 0px 1px;\n"])), function (props) {
|
|
323
189
|
return props.theme.stepContainerFontSize;
|
|
324
190
|
}, function (props) {
|
|
325
191
|
return props.theme.stepContainerFontFamily;
|
|
@@ -331,11 +197,11 @@ var Number = _styledComponents["default"].p(_templateObject9(), function (props)
|
|
|
331
197
|
return props.theme.stepContainerLetterSpacing;
|
|
332
198
|
});
|
|
333
199
|
|
|
334
|
-
var ValidityIconContainer = _styledComponents["default"].div(_templateObject10());
|
|
200
|
+
var ValidityIconContainer = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["\n width: 18px;\n height: 18px;\n position: absolute;\n top: 22.5px;\n left: 22.5px;\n"])));
|
|
335
201
|
|
|
336
|
-
var InfoContainer = _styledComponents["default"].div(_templateObject11());
|
|
202
|
+
var InfoContainer = _styledComponents["default"].div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 12px;\n"])));
|
|
337
203
|
|
|
338
|
-
var Label = _styledComponents["default"].p(_templateObject12(), function (props) {
|
|
204
|
+
var Label = _styledComponents["default"].p(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n ", ";\n text-transform: ", ";\n margin: 0;\n"])), function (props) {
|
|
339
205
|
return props.theme.labelTextAlign;
|
|
340
206
|
}, function (props) {
|
|
341
207
|
return props.theme.labelFontFamily;
|
|
@@ -353,7 +219,7 @@ var Label = _styledComponents["default"].p(_templateObject12(), function (props)
|
|
|
353
219
|
return props.theme.labelFontTextTransform;
|
|
354
220
|
});
|
|
355
221
|
|
|
356
|
-
var Description = _styledComponents["default"].p(_templateObject13(), function (props) {
|
|
222
|
+
var Description = _styledComponents["default"].p(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n ", ";\n margin: 0;\n"])), function (props) {
|
|
357
223
|
return props.theme.descriptionTextAlign;
|
|
358
224
|
}, function (props) {
|
|
359
225
|
return props.theme.descriptionFontFamily;
|
|
@@ -371,7 +237,7 @@ var Description = _styledComponents["default"].p(_templateObject13(), function (
|
|
|
371
237
|
return props.disabled ? "color: ".concat(props.theme.disabledFontColor, ";") : "color: ".concat(props.visited ? props.theme.visitedDescriptionFontColor : props.theme.descriptionFontColor, ";");
|
|
372
238
|
});
|
|
373
239
|
|
|
374
|
-
var StepSeparator = _styledComponents["default"].div(_templateObject14(), function (props) {
|
|
240
|
+
var StepSeparator = _styledComponents["default"].div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n ", "\n border: ", ";\n opacity: 1;\n flex-grow: 1;\n"])), function (props) {
|
|
375
241
|
return props.mode === "horizontal" ? "" : "0";
|
|
376
242
|
}, function (props) {
|
|
377
243
|
return props.mode === "horizontal" ? "0" : "";
|
package/accordion/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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 Padding = {
|
|
9
|
-
top?: Space;
|
|
10
|
-
bottom?: Space;
|
|
11
|
-
left?: Space;
|
|
12
|
-
right?: Space;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
type Props = {
|
|
16
|
-
label?: string;
|
|
17
|
-
iconSrc?: string;
|
|
18
|
-
icon?: any;
|
|
19
|
-
assistiveText?: string;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
onChange?: void;
|
|
22
|
-
isExpanded?: boolean;
|
|
23
|
-
margin?: Space | Margin;
|
|
24
|
-
padding?: Space | Padding;
|
|
25
|
-
tabIndex?: number;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default function DxcAccordion(props: Props): JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
onActiveChange?: void;
|
|
12
|
-
indexActive?: number;
|
|
13
|
-
margin?: Space | Margin;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default function DxcAccordionGroup(props: Props): JSX.Element;
|
package/alert/index.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
/**
|
|
12
|
-
* Uses on of the available alert types.
|
|
13
|
-
*/
|
|
14
|
-
type?: "info" | "confirm" | "warning" | "error";
|
|
15
|
-
/**
|
|
16
|
-
* Uses on of the available alert modes:
|
|
17
|
-
* 'inline': If onClose function is received, close button will be visible and the function will be executed when it's clicked.
|
|
18
|
-
* There is no overlay layer. Position should be decided by the user.
|
|
19
|
-
* 'modal': The alert will be displayed in the middle of the screen with an overlay layer behind.
|
|
20
|
-
* The onClose function will be executed when the X button or the overlay is clicked. d
|
|
21
|
-
* The user has the responsibility of hidding the modal in the onClose function, otherwise the modal will remain visible.
|
|
22
|
-
*/
|
|
23
|
-
mode?: "inline" | "modal";
|
|
24
|
-
/**
|
|
25
|
-
* Text to display after icon and alert type and before content.
|
|
26
|
-
*/
|
|
27
|
-
inlineText?: string;
|
|
28
|
-
/**
|
|
29
|
-
* This function will be called when the user clicks the close button. If there is no function we should close the alert by default.
|
|
30
|
-
*/
|
|
31
|
-
onClose?: () => void;
|
|
32
|
-
/**
|
|
33
|
-
* The details section of the alert. Can be used to render custom content in this area.
|
|
34
|
-
*/
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
38
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
39
|
-
*/
|
|
40
|
-
margin?: Space | Margin;
|
|
41
|
-
/**
|
|
42
|
-
* Size of the component ('small' | 'medium' | 'large' | 'fillParent' | 'fitContent').
|
|
43
|
-
*/
|
|
44
|
-
size?: Size;
|
|
45
|
-
/**
|
|
46
|
-
* Tabindex value given to the close button.
|
|
47
|
-
*/
|
|
48
|
-
tabIndex?: number;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export default function Alert(props: Props): JSX.Element;
|
package/button/Button.stories.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Primary = exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _Button = _interopRequireDefault(require("./Button"));
|
|
13
|
-
|
|
14
|
-
var _default = {
|
|
15
|
-
title: "Button",
|
|
16
|
-
component: _Button["default"]
|
|
17
|
-
};
|
|
18
|
-
exports["default"] = _default;
|
|
19
|
-
|
|
20
|
-
var Primary = function Primary() {
|
|
21
|
-
return _react["default"].createElement(_Button["default"], {
|
|
22
|
-
mode: "primary",
|
|
23
|
-
label: "Primary Button"
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.Primary = Primary;
|
package/button/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
label?: string;
|
|
12
|
-
mode?: "primary" | "secondary" | "text";
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
iconPosition?: "before" | "after";
|
|
15
|
-
type?: "button" | "reset" | "submit";
|
|
16
|
-
iconSrc?: string;
|
|
17
|
-
icon?: any;
|
|
18
|
-
onClick?: void;
|
|
19
|
-
margin?: Space | Margin;
|
|
20
|
-
size?: Size;
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default function DxcButton(props: Props): JSX.Element;
|
package/card/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
imageSrc?: string;
|
|
11
|
-
margin?: Space | Margin;
|
|
12
|
-
contentPadding?: any;
|
|
13
|
-
linkHref?: string;
|
|
14
|
-
onClick?: void;
|
|
15
|
-
imageBgColor?: string;
|
|
16
|
-
imagePadding?: any;
|
|
17
|
-
imagePosition?: "before" | "after";
|
|
18
|
-
outlined?: boolean;
|
|
19
|
-
imageCover?: boolean;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default function DxcCard(props: Props): JSX.Element;
|
package/checkbox/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
checked?: boolean;
|
|
12
|
-
value?: any;
|
|
13
|
-
label?: string;
|
|
14
|
-
labelPosition?: "before" | "after";
|
|
15
|
-
name?: string,
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
onChange?: void;
|
|
18
|
-
required?: boolean;
|
|
19
|
-
margin?: Space | Margin;
|
|
20
|
-
size?: Size;
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default function DxcCheckbox(props: Props): JSX.Element;
|
package/date-input/index.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
/**
|
|
12
|
-
* Text to be placed above the date.
|
|
13
|
-
*/
|
|
14
|
-
label?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Name attribute of the input element.
|
|
17
|
-
*/
|
|
18
|
-
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
21
|
-
*/
|
|
22
|
-
value?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The format in which the date value will be displayed. User must use this format when editing the value or it will be considered as an invalid date.
|
|
25
|
-
*/
|
|
26
|
-
format?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Helper text to be placed above the date.
|
|
29
|
-
*/
|
|
30
|
-
helperText?: string;
|
|
31
|
-
/**
|
|
32
|
-
* If true, the date format will appear as placeholder in the field.
|
|
33
|
-
*/
|
|
34
|
-
placeholder?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* If true, the date input will have an action to clear the entered value.
|
|
37
|
-
*/
|
|
38
|
-
clearable?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* If true, the component will be disabled.
|
|
41
|
-
*/
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* If true, the date will be optional, showing '(Optional)'
|
|
45
|
-
* next to the label. Otherwise, the field will be considered required and an error will be
|
|
46
|
-
* passed as a parameter to the OnBlur and onChange functions when it has
|
|
47
|
-
* not been filled.
|
|
48
|
-
*/
|
|
49
|
-
optional?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* This function will be called when the user types within the input
|
|
52
|
-
* element of the component. An object including the string value, the
|
|
53
|
-
* error and the date value will be passed to this function.
|
|
54
|
-
* If the string value is a valid date, error will
|
|
55
|
-
* be null. Also, if the string value is not a valid date, date will be null.
|
|
56
|
-
*/
|
|
57
|
-
onChange?: (val: { value: string; error: string; date: Date }) => void;
|
|
58
|
-
/**
|
|
59
|
-
* This function will be called when the input element loses the focus.
|
|
60
|
-
* An object including the string value, the error and the date value
|
|
61
|
-
* will be passed to this function. If the string value is a valid date, error will
|
|
62
|
-
* be null. Also, if the string value is not a valid date, date will be null.
|
|
63
|
-
*/
|
|
64
|
-
onBlur?: (val: { value: string; error: string; date: Date }) => void;
|
|
65
|
-
/**
|
|
66
|
-
* If it is defined, the component will change its appearance, showing
|
|
67
|
-
* the error below the date input component. If it is not defined, the error
|
|
68
|
-
* messages will be managed internally, but never displayed on its own.
|
|
69
|
-
*/
|
|
70
|
-
error?: string;
|
|
71
|
-
/**
|
|
72
|
-
* HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
|
|
73
|
-
* Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
|
|
74
|
-
*/
|
|
75
|
-
autocomplete?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
78
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
79
|
-
*/
|
|
80
|
-
margin?: Space | Margin;
|
|
81
|
-
/**
|
|
82
|
-
* Size of the component ('medium' | 'large' | 'fillParent').
|
|
83
|
-
*/
|
|
84
|
-
size?: Size;
|
|
85
|
-
/**
|
|
86
|
-
* Value of the tabindex attribute.
|
|
87
|
-
*/
|
|
88
|
-
tabIndex?: number;
|
|
89
|
-
/**
|
|
90
|
-
* Reference to the component.
|
|
91
|
-
*/
|
|
92
|
-
ref?: React.RefObject<HTMLDivElement>;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export default function DxcDateInput(props: Props): JSX.Element;
|
package/dialog/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
isCloseVisible?: boolean;
|
|
11
|
-
onCloseClick?: void;
|
|
12
|
-
overlay?: boolean;
|
|
13
|
-
onBackgroundClick?: void;
|
|
14
|
-
padding?: Padding,
|
|
15
|
-
tabIndex?: number;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default function DxcDialog(props: Props): JSX.Element;
|
package/dropdown/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
2
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3
|
-
type Margin = {
|
|
4
|
-
top?: Space;
|
|
5
|
-
bottom?: Space;
|
|
6
|
-
left?: Space;
|
|
7
|
-
right?: Space;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
options?: any;
|
|
12
|
-
optionsIconPosition?: "before" | "after";
|
|
13
|
-
icon?: any;
|
|
14
|
-
iconSrc?: string;
|
|
15
|
-
iconPosition?: "before" | "after";
|
|
16
|
-
label?: string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
caretHidden?: boolean;
|
|
19
|
-
onSelectOption?: void;
|
|
20
|
-
expandOnHover?: boolean;
|
|
21
|
-
margin?: Space | Margin;
|
|
22
|
-
size?: Size;
|
|
23
|
-
tabIndex?: number;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default function DxcDropdown(props: Props): JSX.Element;
|