@dxc-technology/halstack-react 0.0.0-fb2efcc → 0.0.0-fb5dc94
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/README.md +46 -0
- package/dist/index.d.mts +6589 -0
- package/dist/index.d.ts +6589 -0
- package/dist/index.js +13742 -0
- package/dist/index.mjs +13684 -0
- package/package.json +69 -68
- package/BackgroundColorContext.js +0 -50
- 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/accordion/Accordion.js +0 -289
- package/accordion/index.d.ts +0 -28
- package/accordion-group/AccordionGroup.js +0 -184
- package/accordion-group/index.d.ts +0 -16
- package/alert/Alert.js +0 -309
- package/alert/index.d.ts +0 -51
- package/badge/Badge.js +0 -59
- package/box/Box.js +0 -152
- package/box/index.d.ts +0 -25
- package/button/Button.d.ts +0 -4
- package/button/Button.js +0 -182
- package/button/Button.stories.tsx +0 -306
- package/button/types.d.ts +0 -57
- package/button/types.js +0 -5
- package/card/Card.js +0 -200
- package/card/index.d.ts +0 -22
- package/checkbox/Checkbox.js +0 -275
- package/checkbox/index.d.ts +0 -24
- package/chip/Chip.js +0 -221
- package/chip/index.d.ts +0 -22
- package/common/OpenSans.css +0 -81
- package/common/RequiredComponent.js +0 -32
- package/common/fonts/OpenSans-Bold.ttf +0 -0
- package/common/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/common/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/common/fonts/OpenSans-Italic.ttf +0 -0
- package/common/fonts/OpenSans-Light.ttf +0 -0
- package/common/fonts/OpenSans-LightItalic.ttf +0 -0
- package/common/fonts/OpenSans-Regular.ttf +0 -0
- package/common/fonts/OpenSans-SemiBold.ttf +0 -0
- package/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/common/utils.js +0 -22
- package/common/variables.js +0 -1569
- package/date/Date.js +0 -373
- package/date/index.d.ts +0 -27
- package/date-input/DateInput.js +0 -396
- package/date-input/index.d.ts +0 -95
- package/dialog/Dialog.js +0 -184
- package/dialog/index.d.ts +0 -18
- package/dropdown/Dropdown.js +0 -450
- package/dropdown/index.d.ts +0 -26
- package/file-input/FileInput.js +0 -532
- package/file-input/FileItem.js +0 -193
- package/file-input/index.d.ts +0 -81
- package/footer/Footer.js +0 -297
- package/footer/Icons.js +0 -77
- package/footer/index.d.ts +0 -25
- package/header/Header.js +0 -326
- package/header/Icons.js +0 -59
- package/header/index.d.ts +0 -25
- package/heading/Heading.js +0 -176
- 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/layout/ApplicationLayout.js +0 -235
- package/layout/Icons.js +0 -55
- package/link/Link.js +0 -183
- package/link/index.d.ts +0 -23
- package/main.d.ts +0 -44
- package/main.js +0 -363
- package/number-input/NumberInput.js +0 -128
- package/number-input/NumberInputContext.js +0 -16
- package/number-input/index.d.ts +0 -113
- package/paginator/Icons.js +0 -66
- package/paginator/Paginator.js +0 -221
- package/paginator/index.d.ts +0 -20
- package/password-input/PasswordInput.js +0 -199
- package/password-input/index.d.ts +0 -94
- package/progress-bar/ProgressBar.js +0 -188
- package/progress-bar/index.d.ts +0 -18
- package/radio/Radio.js +0 -195
- package/radio/index.d.ts +0 -23
- package/resultsetTable/ResultsetTable.js +0 -274
- package/resultsetTable/index.d.ts +0 -19
- package/select/Select.js +0 -865
- package/select/index.d.ts +0 -131
- package/sidenav/Sidenav.js +0 -145
- package/sidenav/index.d.ts +0 -13
- package/slider/Slider.js +0 -340
- package/slider/index.d.ts +0 -29
- package/spinner/Spinner.js +0 -267
- package/spinner/index.d.ts +0 -17
- package/switch/Switch.js +0 -208
- package/switch/index.d.ts +0 -24
- package/table/Table.js +0 -118
- package/table/index.d.ts +0 -13
- package/tabs/Tabs.js +0 -259
- package/tabs/index.d.ts +0 -19
- package/tag/Tag.js +0 -208
- package/tag/index.d.ts +0 -24
- package/text-input/TextInput.js +0 -825
- package/text-input/index.d.ts +0 -135
- package/textarea/Textarea.js +0 -317
- package/textarea/index.d.ts +0 -117
- package/toggle/Toggle.js +0 -186
- package/toggle/index.d.ts +0 -21
- package/toggle-group/ToggleGroup.js +0 -243
- 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/useTheme.js +0 -22
- package/wizard/Icons.js +0 -65
- package/wizard/Wizard.js +0 -271
- package/wizard/index.d.ts +0 -18
package/date-input/DateInput.js
DELETED
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
|
-
|
|
14
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
15
|
-
|
|
16
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
|
-
var _pickers = require("@material-ui/pickers");
|
|
21
|
-
|
|
22
|
-
var _core = require("@material-ui/core");
|
|
23
|
-
|
|
24
|
-
var _ClickAwayListener = _interopRequireDefault(require("@material-ui/core/ClickAwayListener"));
|
|
25
|
-
|
|
26
|
-
var _Popover = _interopRequireDefault(require("@material-ui/core/Popover"));
|
|
27
|
-
|
|
28
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
29
|
-
|
|
30
|
-
var _dateFns = _interopRequireDefault(require("@date-io/date-fns"));
|
|
31
|
-
|
|
32
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
33
|
-
|
|
34
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
35
|
-
|
|
36
|
-
var _variables = require("../common/variables.js");
|
|
37
|
-
|
|
38
|
-
var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
39
|
-
|
|
40
|
-
var _TextInput = _interopRequireDefault(require("../text-input/TextInput"));
|
|
41
|
-
|
|
42
|
-
var _templateObject;
|
|
43
|
-
|
|
44
|
-
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); }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
var DxcDateInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
49
|
-
var _ref$label = _ref.label,
|
|
50
|
-
label = _ref$label === void 0 ? "" : _ref$label,
|
|
51
|
-
_ref$name = _ref.name,
|
|
52
|
-
name = _ref$name === void 0 ? "" : _ref$name,
|
|
53
|
-
value = _ref.value,
|
|
54
|
-
_ref$format = _ref.format,
|
|
55
|
-
format = _ref$format === void 0 ? "dd-MM-yyyy" : _ref$format,
|
|
56
|
-
_ref$helperText = _ref.helperText,
|
|
57
|
-
helperText = _ref$helperText === void 0 ? "" : _ref$helperText,
|
|
58
|
-
_ref$placeholder = _ref.placeholder,
|
|
59
|
-
placeholder = _ref$placeholder === void 0 ? false : _ref$placeholder,
|
|
60
|
-
_ref$clearable = _ref.clearable,
|
|
61
|
-
clearable = _ref$clearable === void 0 ? false : _ref$clearable,
|
|
62
|
-
_ref$disabled = _ref.disabled,
|
|
63
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
64
|
-
_ref$optional = _ref.optional,
|
|
65
|
-
optional = _ref$optional === void 0 ? false : _ref$optional,
|
|
66
|
-
onChange = _ref.onChange,
|
|
67
|
-
onBlur = _ref.onBlur,
|
|
68
|
-
_ref$error = _ref.error,
|
|
69
|
-
error = _ref$error === void 0 ? "" : _ref$error,
|
|
70
|
-
_ref$autocomplete = _ref.autocomplete,
|
|
71
|
-
autocomplete = _ref$autocomplete === void 0 ? "off" : _ref$autocomplete,
|
|
72
|
-
margin = _ref.margin,
|
|
73
|
-
_ref$size = _ref.size,
|
|
74
|
-
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
75
|
-
_ref$tabIndex = _ref.tabIndex,
|
|
76
|
-
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
|
|
77
|
-
|
|
78
|
-
var _useState = (0, _react.useState)(""),
|
|
79
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
80
|
-
innerValue = _useState2[0],
|
|
81
|
-
setInnerValue = _useState2[1];
|
|
82
|
-
|
|
83
|
-
var _useState3 = (0, _react.useState)(false),
|
|
84
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
85
|
-
isOpen = _useState4[0],
|
|
86
|
-
setIsOpen = _useState4[1];
|
|
87
|
-
|
|
88
|
-
var _useState5 = (0, _react.useState)(null),
|
|
89
|
-
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
90
|
-
anchorEl = _useState6[0],
|
|
91
|
-
setAnchorEl = _useState6[1];
|
|
92
|
-
|
|
93
|
-
var colorsTheme = (0, _useTheme["default"])();
|
|
94
|
-
|
|
95
|
-
var handleCalendarOnKeyDown = function handleCalendarOnKeyDown(event) {
|
|
96
|
-
switch (event.keyCode) {
|
|
97
|
-
case 27:
|
|
98
|
-
// Esc
|
|
99
|
-
event.preventDefault();
|
|
100
|
-
setIsOpen(false);
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
var handleCalendarOnClick = function handleCalendarOnClick(newDate) {
|
|
106
|
-
var newValue = (0, _moment["default"])(newDate).format(format.toUpperCase());
|
|
107
|
-
value !== null && value !== void 0 ? value : setInnerValue(newValue);
|
|
108
|
-
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
109
|
-
value: newValue,
|
|
110
|
-
error: null,
|
|
111
|
-
date: newDate && newDate.toJSON() ? newDate : null
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
var handleIOnChange = function handleIOnChange(_ref2) {
|
|
116
|
-
var newValue = _ref2.value,
|
|
117
|
-
inputError = _ref2.error;
|
|
118
|
-
value !== null && value !== void 0 ? value : setInnerValue(newValue);
|
|
119
|
-
var momentDate = (0, _moment["default"])(newValue, format.toUpperCase(), true);
|
|
120
|
-
var invalidDateMessage = newValue !== "" && !momentDate.isValid() ? "Invalid date." : null;
|
|
121
|
-
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
122
|
-
value: newValue,
|
|
123
|
-
error: inputError || invalidDateMessage,
|
|
124
|
-
date: momentDate.isValid() ? momentDate._d : null
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
var handleIOnBlur = function handleIOnBlur(_ref3) {
|
|
129
|
-
var value = _ref3.value,
|
|
130
|
-
inputError = _ref3.error;
|
|
131
|
-
var momentDate = (0, _moment["default"])(value, format.toUpperCase(), true);
|
|
132
|
-
var invalidDateMessage = value !== "" && !momentDate.isValid() ? "Invalid date." : null;
|
|
133
|
-
onBlur === null || onBlur === void 0 ? void 0 : onBlur({
|
|
134
|
-
value: value,
|
|
135
|
-
error: inputError || invalidDateMessage,
|
|
136
|
-
date: momentDate.isValid() ? momentDate._d : null
|
|
137
|
-
});
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
var getValueForPicker = function getValueForPicker() {
|
|
141
|
-
return (0, _moment["default"])(value !== null && value !== void 0 ? value : innerValue, format.toUpperCase(), true).format();
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
var openCalendar = function openCalendar(event) {
|
|
145
|
-
if (event) {
|
|
146
|
-
setIsOpen(!isOpen);
|
|
147
|
-
setAnchorEl(event.currentTarget);
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
var closeCalendar = function closeCalendar() {
|
|
152
|
-
setIsOpen(false);
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
var calendarAction = {
|
|
156
|
-
onClick: openCalendar,
|
|
157
|
-
icon: /*#__PURE__*/_react["default"].createElement("svg", {
|
|
158
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
159
|
-
height: "24",
|
|
160
|
-
viewBox: "0 0 24 24",
|
|
161
|
-
width: "24",
|
|
162
|
-
fill: "currentColor"
|
|
163
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
164
|
-
d: "M0 0h24v24H0z",
|
|
165
|
-
fill: "none"
|
|
166
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
167
|
-
d: "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"
|
|
168
|
-
}))
|
|
169
|
-
};
|
|
170
|
-
var dateTheme = (0, _core.createMuiTheme)({
|
|
171
|
-
overrides: {
|
|
172
|
-
MuiTypography: {
|
|
173
|
-
root: {
|
|
174
|
-
fontFamily: "".concat(colorsTheme.dateInput.pickerFontFamily, " !important")
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
MuiPickersYearSelection: {
|
|
178
|
-
container: {
|
|
179
|
-
color: colorsTheme.dateInput.pickerYearFontColor,
|
|
180
|
-
"&::-webkit-scrollbar": {
|
|
181
|
-
width: "3px"
|
|
182
|
-
},
|
|
183
|
-
"&::-webkit-scrollbar-track": {
|
|
184
|
-
backgroundColor: "#D9D9D9",
|
|
185
|
-
borderRadius: "3px"
|
|
186
|
-
},
|
|
187
|
-
"&::-webkit-scrollbar-thumb": {
|
|
188
|
-
backgroundColor: "#666666",
|
|
189
|
-
borderRadius: "3px"
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
MuiPickersToolbar: {
|
|
194
|
-
toolbar: {
|
|
195
|
-
backgroundColor: colorsTheme.dateInput.pickerBackgroundColor,
|
|
196
|
-
color: colorsTheme.dateInput.pickerDayFontColor
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
MuiIconButton: {
|
|
200
|
-
root: {
|
|
201
|
-
height: "36px",
|
|
202
|
-
width: "36px",
|
|
203
|
-
padding: "0px"
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
MuiTouchRipple: {
|
|
207
|
-
child: {
|
|
208
|
-
opacity: "0"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
MuiButtonBase: {
|
|
212
|
-
root: {
|
|
213
|
-
"&:focus": {
|
|
214
|
-
outline: colorsTheme.dateInput.pickerFocusColor + " solid 2px"
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
MuiPickersBasePicker: {
|
|
219
|
-
pickerView: {
|
|
220
|
-
minWidth: "unset",
|
|
221
|
-
maxWidth: "unset",
|
|
222
|
-
minHeight: "unset",
|
|
223
|
-
padding: "0px 10px",
|
|
224
|
-
height: colorsTheme.dateInput.pickerHeight,
|
|
225
|
-
width: colorsTheme.dateInput.pickerWidth,
|
|
226
|
-
backgroundColor: colorsTheme.dateInput.pickerBackgroundColor,
|
|
227
|
-
fontFamily: colorsTheme.dateInput.pickerFontFamily
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
MuiPickersToolbarText: {
|
|
231
|
-
toolbarTxt: {
|
|
232
|
-
color: colorsTheme.dateInput.pickerActualDateFontColor,
|
|
233
|
-
fontFamily: colorsTheme.dateInput.pickerFontFamily,
|
|
234
|
-
fontSize: "2rem"
|
|
235
|
-
},
|
|
236
|
-
toolbarBtnSelected: {
|
|
237
|
-
color: colorsTheme.dateInput.pickerActualDateFontColor
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
MuiPickersCalendarHeader: {
|
|
241
|
-
transitionContainer: {
|
|
242
|
-
color: colorsTheme.dateInput.pickerMonthFontColor
|
|
243
|
-
},
|
|
244
|
-
dayLabel: {
|
|
245
|
-
color: colorsTheme.dateInput.pickerWeekFontColor,
|
|
246
|
-
fontFamily: colorsTheme.dateInput.pickerFontFamily
|
|
247
|
-
},
|
|
248
|
-
switchHeader: {
|
|
249
|
-
backgroundColor: "#ffffff",
|
|
250
|
-
color: colorsTheme.dateInput.pickerDayFontColor
|
|
251
|
-
},
|
|
252
|
-
iconButton: {
|
|
253
|
-
backgroundColor: colorsTheme.dateInput.pickerMonthArrowsBackgroundColor,
|
|
254
|
-
"&:hover": {
|
|
255
|
-
backgroundColor: colorsTheme.dateInput.pickerMonthArrowsBackgroundColor
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
MuiPickersCalendar: {
|
|
260
|
-
week: {
|
|
261
|
-
marginBottom: "2px"
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
MuiPickersDay: {
|
|
265
|
-
current: {
|
|
266
|
-
color: colorsTheme.dateInput.pickerDayFontColor
|
|
267
|
-
},
|
|
268
|
-
day: {
|
|
269
|
-
fontFamily: colorsTheme.dateInput.pickerFontFamily,
|
|
270
|
-
color: colorsTheme.dateInput.pickerDayFontColor,
|
|
271
|
-
"&:hover": {
|
|
272
|
-
backgroundColor: colorsTheme.dateInput.pickerHoverDateBackgroundColor,
|
|
273
|
-
color: colorsTheme.dateInput.pickerHoverDateFontColor
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
daySelected: {
|
|
277
|
-
backgroundColor: colorsTheme.dateInput.pickerSelectedDateBackgroundColor,
|
|
278
|
-
color: colorsTheme.dateInput.pickerSelectedDateColor,
|
|
279
|
-
"&:hover": {
|
|
280
|
-
backgroundColor: colorsTheme.dateInput.pickerSelectedDateBackgroundColor,
|
|
281
|
-
color: colorsTheme.dateInput.pickerSelectedDateColor,
|
|
282
|
-
opacity: "1"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
MuiPickersYear: {
|
|
287
|
-
yearSelected: {
|
|
288
|
-
color: colorsTheme.dateInput.pickerSelectedDateColor,
|
|
289
|
-
backgroundColor: colorsTheme.dateInput.pickerSelectedDateBackgroundColor,
|
|
290
|
-
margin: "0px 100px",
|
|
291
|
-
borderRadius: "20px"
|
|
292
|
-
},
|
|
293
|
-
root: {
|
|
294
|
-
"&:focus": {
|
|
295
|
-
color: colorsTheme.dateInput.pickerHoverDateFontColor,
|
|
296
|
-
backgroundColor: colorsTheme.dateInput.pickerHoverDateBackgroundColor
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
MuiPickersModal: {
|
|
301
|
-
dialogAction: {
|
|
302
|
-
color: "pink"
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
308
|
-
theme: colorsTheme
|
|
309
|
-
}, /*#__PURE__*/_react["default"].createElement(_core.MuiThemeProvider, {
|
|
310
|
-
theme: dateTheme
|
|
311
|
-
}, /*#__PURE__*/_react["default"].createElement(_pickers.MuiPickersUtilsProvider, {
|
|
312
|
-
utils: _dateFns["default"]
|
|
313
|
-
}, /*#__PURE__*/_react["default"].createElement(StyledDPicker, null, /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
314
|
-
label: label,
|
|
315
|
-
name: name,
|
|
316
|
-
value: value !== null && value !== void 0 ? value : innerValue,
|
|
317
|
-
helperText: helperText,
|
|
318
|
-
placeholder: placeholder ? format.toUpperCase() : null,
|
|
319
|
-
action: calendarAction,
|
|
320
|
-
clearable: clearable,
|
|
321
|
-
disabled: disabled,
|
|
322
|
-
optional: optional,
|
|
323
|
-
onChange: handleIOnChange,
|
|
324
|
-
onBlur: handleIOnBlur,
|
|
325
|
-
error: error,
|
|
326
|
-
autocomplete: autocomplete,
|
|
327
|
-
margin: margin,
|
|
328
|
-
size: size,
|
|
329
|
-
tabIndex: tabIndex,
|
|
330
|
-
ref: ref
|
|
331
|
-
}), /*#__PURE__*/_react["default"].createElement(_Popover["default"], {
|
|
332
|
-
onKeyDown: handleCalendarOnKeyDown,
|
|
333
|
-
open: isOpen,
|
|
334
|
-
anchorEl: anchorEl,
|
|
335
|
-
anchorOrigin: {
|
|
336
|
-
vertical: "bottom",
|
|
337
|
-
horizontal: "left"
|
|
338
|
-
},
|
|
339
|
-
transformOrigin: {
|
|
340
|
-
vertical: "top",
|
|
341
|
-
horizontal: "center"
|
|
342
|
-
},
|
|
343
|
-
PaperProps: {
|
|
344
|
-
style: {
|
|
345
|
-
marginTop: "10px"
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}, /*#__PURE__*/_react["default"].createElement(_ClickAwayListener["default"], {
|
|
349
|
-
onClickAway: closeCalendar
|
|
350
|
-
}, /*#__PURE__*/_react["default"].createElement(_core.Paper, {
|
|
351
|
-
role: "dialog",
|
|
352
|
-
"aria-modal": "true"
|
|
353
|
-
}, /*#__PURE__*/_react["default"].createElement(_pickers.DatePicker, {
|
|
354
|
-
variant: "static",
|
|
355
|
-
value: getValueForPicker(),
|
|
356
|
-
onChange: function onChange(date) {
|
|
357
|
-
return handleCalendarOnClick(date);
|
|
358
|
-
},
|
|
359
|
-
format: format,
|
|
360
|
-
disabled: disabled
|
|
361
|
-
}))))))));
|
|
362
|
-
});
|
|
363
|
-
|
|
364
|
-
var sizes = {
|
|
365
|
-
medium: "360px",
|
|
366
|
-
large: "480px",
|
|
367
|
-
fillParent: "100%"
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
var StyledDPicker = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])([""])));
|
|
371
|
-
|
|
372
|
-
DxcDateInput.propTypes = {
|
|
373
|
-
label: _propTypes["default"].string,
|
|
374
|
-
name: _propTypes["default"].string,
|
|
375
|
-
value: _propTypes["default"].string,
|
|
376
|
-
format: _propTypes["default"].string,
|
|
377
|
-
helperText: _propTypes["default"].string,
|
|
378
|
-
placeholder: _propTypes["default"].bool,
|
|
379
|
-
clearable: _propTypes["default"].bool,
|
|
380
|
-
disabled: _propTypes["default"].bool,
|
|
381
|
-
optional: _propTypes["default"].bool,
|
|
382
|
-
onChange: _propTypes["default"].func,
|
|
383
|
-
onBlur: _propTypes["default"].func,
|
|
384
|
-
error: _propTypes["default"].string,
|
|
385
|
-
autocomplete: _propTypes["default"].string,
|
|
386
|
-
size: _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(sizes))),
|
|
387
|
-
margin: _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
|
388
|
-
top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
389
|
-
bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
390
|
-
left: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
391
|
-
right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
|
|
392
|
-
}), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
|
|
393
|
-
tabIndex: _propTypes["default"].number
|
|
394
|
-
};
|
|
395
|
-
var _default = DxcDateInput;
|
|
396
|
-
exports["default"] = _default;
|
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/Dialog.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
|
-
|
|
14
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
15
|
-
|
|
16
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
17
|
-
|
|
18
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
19
|
-
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
23
|
-
|
|
24
|
-
var _Dialog = _interopRequireDefault(require("@material-ui/core/Dialog"));
|
|
25
|
-
|
|
26
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
27
|
-
|
|
28
|
-
var _variables = require("../common/variables.js");
|
|
29
|
-
|
|
30
|
-
var _useTheme = _interopRequireDefault(require("../useTheme.js"));
|
|
31
|
-
|
|
32
|
-
var _BackgroundColorContext = require("../BackgroundColorContext.js");
|
|
33
|
-
|
|
34
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
35
|
-
|
|
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
|
-
|
|
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
|
-
|
|
40
|
-
var DxcDialog = function DxcDialog(_ref) {
|
|
41
|
-
var _ref$isCloseVisible = _ref.isCloseVisible,
|
|
42
|
-
isCloseVisible = _ref$isCloseVisible === void 0 ? true : _ref$isCloseVisible,
|
|
43
|
-
onCloseClick = _ref.onCloseClick,
|
|
44
|
-
children = _ref.children,
|
|
45
|
-
_ref$overlay = _ref.overlay,
|
|
46
|
-
overlay = _ref$overlay === void 0 ? true : _ref$overlay,
|
|
47
|
-
onBackgroundClick = _ref.onBackgroundClick,
|
|
48
|
-
padding = _ref.padding,
|
|
49
|
-
_ref$tabIndex = _ref.tabIndex,
|
|
50
|
-
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
|
|
51
|
-
|
|
52
|
-
var _useState = (0, _react.useState)(),
|
|
53
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
54
|
-
isResponsive = _useState2[0],
|
|
55
|
-
setIsResponsive = _useState2[1];
|
|
56
|
-
|
|
57
|
-
var colorsTheme = (0, _useTheme["default"])();
|
|
58
|
-
|
|
59
|
-
var handleClose = function handleClose() {
|
|
60
|
-
typeof onCloseClick === "function" && onCloseClick();
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
var handleOverlayClick = function handleOverlayClick() {
|
|
64
|
-
typeof onBackgroundClick === "function" && onBackgroundClick();
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
var handleResize = function handleResize(width) {
|
|
68
|
-
width && width <= _variables.responsiveSizes.tablet ? setIsResponsive(true) : setIsResponsive(false);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
var handleEventListener = function handleEventListener() {
|
|
72
|
-
handleResize(window.innerWidth);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
(0, _react.useEffect)(function () {
|
|
76
|
-
window.addEventListener("resize", handleEventListener);
|
|
77
|
-
handleResize(window.innerWidth);
|
|
78
|
-
return function () {
|
|
79
|
-
window.removeEventListener("resize", handleEventListener);
|
|
80
|
-
};
|
|
81
|
-
}, []);
|
|
82
|
-
return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
|
|
83
|
-
theme: colorsTheme.dialog
|
|
84
|
-
}, /*#__PURE__*/_react["default"].createElement(DialogContainer, {
|
|
85
|
-
open: true,
|
|
86
|
-
isCloseVisible: isCloseVisible,
|
|
87
|
-
onClose: handleOverlayClick,
|
|
88
|
-
overlay: overlay,
|
|
89
|
-
padding: padding,
|
|
90
|
-
isResponsive: isResponsive
|
|
91
|
-
}, isCloseVisible && /*#__PURE__*/_react["default"].createElement(CloseIconContainer, {
|
|
92
|
-
onClick: handleClose,
|
|
93
|
-
tabIndex: tabIndex
|
|
94
|
-
}, /*#__PURE__*/_react["default"].createElement(CloseIcon, {
|
|
95
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
96
|
-
width: "24",
|
|
97
|
-
height: "24",
|
|
98
|
-
viewBox: "0 0 24 24",
|
|
99
|
-
fill: "currentColor"
|
|
100
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
101
|
-
d: "M0 0h24v24H0V0z",
|
|
102
|
-
fill: "none"
|
|
103
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
104
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
105
|
-
}))), /*#__PURE__*/_react["default"].createElement(Children, null, /*#__PURE__*/_react["default"].createElement(_BackgroundColorContext.BackgroundColorProvider, {
|
|
106
|
-
color: colorsTheme.dialog.backgroundColor
|
|
107
|
-
}, children))));
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
var DialogContainer = (0, _styledComponents["default"])(_Dialog["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n overflow: unset;\n font-family: ", ";\n\n .MuiBackdrop-root {\n background-color: ", ";\n opacity: ", " !important;\n }\n .MuiDialog-paperWidthSm {\n background-color: ", ";\n max-width: ", ";\n min-width: ", ";\n box-sizing: border-box;\n min-height: ", ";\n box-shadow: ", ";\n\n padding: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n }\n"])), function (props) {
|
|
111
|
-
return props.theme.fontFamily;
|
|
112
|
-
}, function (props) {
|
|
113
|
-
return props.overlay === true ? props.theme.overlayColor : "transparent";
|
|
114
|
-
}, function (props) {
|
|
115
|
-
return props.overlay === true && props.theme.overlayOpacity;
|
|
116
|
-
}, function (props) {
|
|
117
|
-
return props.theme.backgroundColor;
|
|
118
|
-
}, function (props) {
|
|
119
|
-
return props.isResponsive ? "92%" : "80%";
|
|
120
|
-
}, function (props) {
|
|
121
|
-
return props.isResponsive ? "92%" : "800px";
|
|
122
|
-
}, function (props) {
|
|
123
|
-
return props.isCloseVisible ? "72px" : "";
|
|
124
|
-
}, function (props) {
|
|
125
|
-
return "".concat(props.theme.boxShadowOffsetX, " ").concat(props.theme.boxShadowOffsetY, " ").concat(props.theme.boxShadowBlur, " ").concat(props.theme.boxShadowColor);
|
|
126
|
-
}, function (props) {
|
|
127
|
-
return props.padding && (0, _typeof2["default"])(props.padding) !== "object" ? _variables.spaces[props.padding] : _variables.spaces["small"];
|
|
128
|
-
}, function (props) {
|
|
129
|
-
return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.top ? _variables.spaces[props.padding.top] : "";
|
|
130
|
-
}, function (props) {
|
|
131
|
-
return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.right ? _variables.spaces[props.padding.right] : "";
|
|
132
|
-
}, function (props) {
|
|
133
|
-
return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.bottom ? _variables.spaces[props.padding.bottom] : "";
|
|
134
|
-
}, function (props) {
|
|
135
|
-
return props.padding && (0, _typeof2["default"])(props.padding) === "object" && props.padding.left ? _variables.spaces[props.padding.left] : "";
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
var Children = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])([""])));
|
|
139
|
-
|
|
140
|
-
var CloseIconContainer = _styledComponents["default"].button(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: flex-end;\n position: absolute;\n top: ", ";\n right: ", ";\n cursor: pointer;\n padding: 0;\n margin: 0;\n background: none;\n color: ", ";\n width: ", ";\n height: ", ";\n border: none;\n"])), function (props) {
|
|
141
|
-
return props.theme.closeIconTopPosition;
|
|
142
|
-
}, function (props) {
|
|
143
|
-
return props.theme.closeIconRightPosition;
|
|
144
|
-
}, function (props) {
|
|
145
|
-
return props.theme.closeIconColor;
|
|
146
|
-
}, function (props) {
|
|
147
|
-
return props.theme.closeIconWidth;
|
|
148
|
-
}, function (props) {
|
|
149
|
-
return props.theme.closeIconHeight;
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
var CloseIcon = _styledComponents["default"].svg(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n"])), function (props) {
|
|
153
|
-
return props.theme.closeIconBackgroundColor;
|
|
154
|
-
}, function (props) {
|
|
155
|
-
return props.theme.closeIconWidth;
|
|
156
|
-
}, function (props) {
|
|
157
|
-
return props.theme.closeIconHeight;
|
|
158
|
-
}, function (props) {
|
|
159
|
-
return props.theme.closeIconBorderRadius;
|
|
160
|
-
}, function (props) {
|
|
161
|
-
return props.theme.closeIconBorderThickness;
|
|
162
|
-
}, function (props) {
|
|
163
|
-
return props.theme.closeIconBorderStyle;
|
|
164
|
-
}, function (props) {
|
|
165
|
-
return props.theme.closeIconBorderColor;
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
DxcDialog.propTypes = {
|
|
169
|
-
padding: _propTypes["default"].oneOfType([_propTypes["default"].shape({
|
|
170
|
-
top: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
171
|
-
bottom: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
172
|
-
left: _propTypes["default"].oneOf(Object.keys(_variables.spaces)),
|
|
173
|
-
right: _propTypes["default"].oneOf(Object.keys(_variables.spaces))
|
|
174
|
-
}), _propTypes["default"].oneOf((0, _toConsumableArray2["default"])(Object.keys(_variables.spaces)))]),
|
|
175
|
-
isVisible: _propTypes["default"].bool,
|
|
176
|
-
isCloseVisible: _propTypes["default"].bool,
|
|
177
|
-
onClose: _propTypes["default"].func,
|
|
178
|
-
onCloseClick: _propTypes["default"].func,
|
|
179
|
-
onBackgroundClick: _propTypes["default"].func,
|
|
180
|
-
overlay: _propTypes["default"].bool,
|
|
181
|
-
tabIndex: _propTypes["default"].number
|
|
182
|
-
};
|
|
183
|
-
var _default = DxcDialog;
|
|
184
|
-
exports["default"] = _default;
|