@festo-ui/react 5.0.1 → 5.1.0-dev.164
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/index.css +2 -2
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/lib/components/accordion/Accordion.d.ts +1 -1
- package/lib/components/accordion/Accordion.js +1 -1
- package/lib/components/accordion/accordion-header/AccordionHeader.d.ts +1 -1
- package/lib/components/accordion/accordion-item/AccordionItem.d.ts +1 -1
- package/lib/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.d.ts +1 -1
- package/lib/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.d.ts +1 -1
- package/lib/components/loading-indicator/LoadingIndicator.d.ts +1 -1
- package/lib/components/mobile-flyout/MobileFlyout.d.ts +12 -0
- package/lib/components/mobile-flyout/MobileFlyout.js +83 -0
- package/lib/components/mobile-flyout/MobileFlyoutContext.d.ts +9 -0
- package/lib/components/mobile-flyout/MobileFlyoutContext.js +2 -0
- package/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.d.ts +19 -0
- package/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.js +54 -0
- package/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.d.ts +8 -0
- package/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +47 -0
- package/lib/components/modals/Modal.d.ts +5 -7
- package/lib/components/modals/Modal.js +28 -61
- package/lib/components/modals/ModalBase.d.ts +9 -0
- package/lib/components/modals/ModalBase.js +68 -0
- package/lib/components/modals/ModalFooter.d.ts +1 -1
- package/lib/components/modals/imageGallery/BaseGallery.d.ts +18 -0
- package/lib/components/modals/imageGallery/BaseGallery.js +77 -0
- package/lib/components/modals/imageGallery/ImageGallery.d.ts +15 -0
- package/lib/components/modals/imageGallery/ImageGallery.helper.d.ts +3 -0
- package/lib/components/modals/imageGallery/ImageGallery.helper.js +11 -0
- package/lib/components/modals/imageGallery/ImageGallery.js +77 -0
- package/lib/components/modals/imageGallery/ImageGallery.stories.helper.d.ts +3 -0
- package/lib/components/modals/imageGallery/ImageGallery.stories.helper.js +108 -0
- package/lib/components/modals/imageGallery/ImageGalleryContent.d.ts +10 -0
- package/lib/components/modals/imageGallery/ImageGalleryContent.js +16 -0
- package/lib/components/modals/imageGallery/ImageGalleryPagination.d.ts +8 -0
- package/lib/components/modals/imageGallery/ImageGalleryPagination.js +30 -0
- package/lib/components/modals/imageGallery/useClasses.d.ts +0 -0
- package/lib/components/modals/imageGallery/useClasses.js +0 -0
- package/lib/components/snackbar/SnackbarProvider.js +4 -4
- package/lib/components/stepper-horizontal/StepperHorizontal.d.ts +1 -1
- package/lib/components/stepper-horizontal/StepperHorizontal.js +1 -1
- package/lib/components/stepper-horizontal/step-horizontal/StepHorizontal.d.ts +1 -1
- package/lib/components/stepper-vertical/StepperVertical.d.ts +1 -1
- package/lib/components/stepper-vertical/StepperVertical.js +1 -1
- package/lib/components/stepper-vertical/step-vertical/StepVertical.d.ts +1 -1
- package/lib/components/tab/Tabs.d.ts +1 -1
- package/lib/components/tab/Tabs.js +3 -0
- package/lib/components/tab/useTabScroll.js +0 -1
- package/lib/components/table-header-cell/TableHeaderCell.d.ts +1 -1
- package/lib/components/table-header-cell/TableHeaderCell.js +10 -4
- package/lib/forms/checkbox/Checkbox.d.ts +5 -4
- package/lib/forms/checkbox/Checkbox.js +16 -18
- package/lib/forms/radio/RadioGroup.js +1 -1
- package/lib/forms/select/Select.d.ts +4 -10
- package/lib/forms/select/Select.js +96 -126
- package/lib/forms/select/list-item/ListItem.d.ts +6 -0
- package/lib/forms/select/list-item/ListItem.js +24 -0
- package/lib/forms/select/select-option/SelectOption.d.ts +2 -2
- package/lib/forms/select/utils.d.ts +2 -0
- package/lib/forms/select/utils.js +17 -0
- package/lib/forms/text-editor/TextEditor.d.ts +2 -1
- package/lib/forms/text-editor/TextEditor.js +29 -14
- package/lib/forms/text-input/TextInput.d.ts +1 -1
- package/lib/forms/time-picker/TimePicker.d.ts +1 -1
- package/lib/forms/time-picker/time-picker-dropdown/TimePickerDropdown.d.ts +1 -1
- package/lib/helper/types.d.ts +17 -0
- package/lib/helper/useId.js +2 -1
- package/node/index.js +30 -2
- package/node/lib/components/accordion/Accordion.js +2 -3
- package/node/lib/components/accordion/AccordionContext.js +1 -2
- package/node/lib/components/accordion/accordion-header/AccordionHeader.js +1 -2
- package/node/lib/components/accordion/accordion-item/AccordionItem.js +1 -2
- package/node/lib/components/accordion/accordion-item/AccordionItemContext.js +1 -2
- package/node/lib/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.js +1 -2
- package/node/lib/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.js +1 -2
- package/node/lib/components/breadcrumb/Breadcrumb.js +1 -2
- package/node/lib/components/buttons/button/Button.js +1 -2
- package/node/lib/components/card/Card.js +1 -2
- package/node/lib/components/card/CardBody.js +1 -2
- package/node/lib/components/card/CardHeader.js +1 -2
- package/node/lib/components/card/CardNotification.js +1 -2
- package/node/lib/components/chips/chip/Chip.js +2 -4
- package/node/lib/components/chips/chip-container/ChipContainer.js +1 -2
- package/node/lib/components/link-button/LinkButton.js +1 -2
- package/node/lib/components/loading-indicator/LoadingIndicator.js +2 -4
- package/node/lib/components/mobile-flyout/MobileFlyout.js +89 -0
- package/node/lib/components/mobile-flyout/MobileFlyoutContext.js +8 -0
- package/node/lib/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.js +77 -0
- package/node/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +53 -0
- package/node/lib/components/modals/AlertModal.js +1 -2
- package/node/lib/components/modals/ConfirmModal.js +1 -2
- package/node/lib/components/modals/Modal.js +30 -63
- package/node/lib/components/modals/ModalBase.js +73 -0
- package/node/lib/components/modals/ModalFooter.js +1 -2
- package/node/lib/components/modals/Prompt.js +2 -2
- package/node/lib/components/modals/imageGallery/BaseGallery.js +83 -0
- package/node/lib/components/modals/imageGallery/ImageGallery.helper.js +18 -0
- package/node/lib/components/modals/imageGallery/ImageGallery.js +82 -0
- package/node/lib/components/modals/imageGallery/ImageGallery.stories.helper.js +123 -0
- package/node/lib/components/modals/imageGallery/ImageGalleryContent.js +20 -0
- package/node/lib/components/modals/imageGallery/ImageGalleryPagination.js +34 -0
- package/node/lib/components/modals/imageGallery/useClasses.js +1 -0
- package/node/lib/components/pagination/Pagination.js +4 -6
- package/node/lib/components/popovers/legend/Legend.js +1 -2
- package/node/lib/components/popovers/popover/Popover.js +3 -4
- package/node/lib/components/popovers/popover-menu/PopoverMenu.js +1 -2
- package/node/lib/components/popovers/tooltip/Tooltip.js +1 -2
- package/node/lib/components/progress/Progress.js +1 -2
- package/node/lib/components/search-input/SearchInput.js +1 -2
- package/node/lib/components/snackbar/Snackbar.js +1 -2
- package/node/lib/components/snackbar/SnackbarContext.js +1 -2
- package/node/lib/components/snackbar/SnackbarProvider.js +4 -5
- package/node/lib/components/stepper-horizontal/StepperHorizontal.js +5 -6
- package/node/lib/components/stepper-horizontal/step-horizontal/StepHorizontal.js +1 -2
- package/node/lib/components/stepper-vertical/StepperVertical.js +5 -6
- package/node/lib/components/stepper-vertical/step-vertical/StepVertical.js +1 -2
- package/node/lib/components/tab/Tabs.js +5 -4
- package/node/lib/components/tab/tab-pane/TabPane.js +1 -2
- package/node/lib/components/tab/useTabScroll.js +3 -2
- package/node/lib/components/table-header-cell/TableHeaderCell.js +11 -6
- package/node/lib/forms/checkbox/Checkbox.js +17 -22
- package/node/lib/forms/color-indicator/ColorIndicator.js +3 -4
- package/node/lib/forms/color-picker/ColorPicker.js +4 -6
- package/node/lib/forms/date-picker/DatePicker.js +1 -2
- package/node/lib/forms/date-range-picker/DateRangePicker.js +1 -2
- package/node/lib/forms/radio/RadioButton.js +1 -2
- package/node/lib/forms/radio/RadioGroup.js +2 -3
- package/node/lib/forms/radio/RadioGroupContext.js +1 -2
- package/node/lib/forms/segment/Segment.js +1 -2
- package/node/lib/forms/segment/segment-control/SegmentControl.js +3 -4
- package/node/lib/forms/select/Select.js +99 -130
- package/node/lib/forms/select/list-item/ListItem.js +33 -0
- package/node/lib/forms/select/select-option/SelectOption.js +4 -6
- package/node/lib/forms/select/utils.js +23 -0
- package/node/lib/forms/slider/Slider.js +3 -4
- package/node/lib/forms/switch/Switch.js +1 -2
- package/node/lib/forms/text-area/TextArea.js +3 -4
- package/node/lib/forms/text-editor/TextEditor.js +29 -15
- package/node/lib/forms/text-editor/TextEditorButton.js +1 -2
- package/node/lib/forms/text-input/TextInput.js +3 -4
- package/node/lib/forms/time-picker/TimePicker.js +3 -4
- package/node/lib/forms/time-picker/time-picker-dropdown/TimePickerDropdown.js +3 -4
- package/node/lib/helper/index.js +1 -2
- package/node/lib/helper/useId.js +2 -1
- package/package.json +2 -2
|
@@ -4,34 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactOutsideClickHandler = _interopRequireDefault(require("react-outside-click-handler"));
|
|
9
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _useControlled = _interopRequireDefault(require("../../helper/useControlled"));
|
|
10
|
+
var _useForkRef = _interopRequireDefault(require("../../helper/useForkRef"));
|
|
11
|
+
var _useOnClickOutside = _interopRequireDefault(require("../../helper/useOnClickOutside"));
|
|
12
|
+
var _ListItem = _interopRequireDefault(require("./list-item/ListItem"));
|
|
13
|
+
var _utils = _interopRequireDefault(require("./utils"));
|
|
11
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
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; }
|
|
15
|
-
function calcVirtualScrollHeight(config, itemLength) {
|
|
16
|
-
const defaultHeight = 48;
|
|
17
|
-
let height = defaultHeight;
|
|
18
|
-
if (itemLength === 2) {
|
|
19
|
-
height = defaultHeight * 2;
|
|
20
|
-
} else if (itemLength >= 3) {
|
|
21
|
-
height = defaultHeight * 3;
|
|
22
|
-
}
|
|
23
|
-
if (config?.scroll?.viewportSize != null && config.scroll.viewportSize !== undefined) {
|
|
24
|
-
if (itemLength >= config.scroll.viewportSize) {
|
|
25
|
-
height = config.scroll.viewportSize * defaultHeight;
|
|
26
|
-
} else if (itemLength < config.scroll.viewportSize) {
|
|
27
|
-
height = itemLength * defaultHeight;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return height;
|
|
31
|
-
}
|
|
32
18
|
const Select = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
33
19
|
let {
|
|
34
|
-
defaultValue,
|
|
20
|
+
defaultValue = '',
|
|
35
21
|
value,
|
|
36
22
|
label,
|
|
37
23
|
options,
|
|
@@ -51,8 +37,12 @@ const Select = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
51
37
|
isFocused: false,
|
|
52
38
|
action: ''
|
|
53
39
|
});
|
|
54
|
-
const
|
|
55
|
-
|
|
40
|
+
const [innerValue, setInnerValue] = (0, _useControlled.default)({
|
|
41
|
+
controlled: value,
|
|
42
|
+
default: defaultValue
|
|
43
|
+
});
|
|
44
|
+
const innerRef = (0, _react.useRef)(null);
|
|
45
|
+
const combinedRef = (0, _useForkRef.default)(ref, innerRef);
|
|
56
46
|
const buttonEl = (0, _react.useRef)(null);
|
|
57
47
|
const childrenList = [];
|
|
58
48
|
_react.default.Children.forEach(children, element => {
|
|
@@ -70,17 +60,7 @@ const Select = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
70
60
|
const listItemRef = (0, _react.useRef)(Array.from({
|
|
71
61
|
length: usedOptions.length
|
|
72
62
|
}, () => /*#__PURE__*/_react.default.createRef()));
|
|
73
|
-
(0, _react.
|
|
74
|
-
if (controlled) {
|
|
75
|
-
setInnerValue(value);
|
|
76
|
-
}
|
|
77
|
-
}, [value, controlled]);
|
|
78
|
-
const getSelectedOptionLabel = (0, _react.useCallback)(() => {
|
|
79
|
-
if (innerValue !== undefined) {
|
|
80
|
-
return usedOptions.find(option => option.data === innerValue)?.label;
|
|
81
|
-
}
|
|
82
|
-
return undefined;
|
|
83
|
-
}, [usedOptions, innerValue]);
|
|
63
|
+
const getSelectedOptionLabel = (0, _react.useCallback)(() => usedOptions.find(option => option.data === innerValue)?.label, [usedOptions, innerValue]);
|
|
84
64
|
const scroll = config?.scroll;
|
|
85
65
|
function handleButtonFocus(blur) {
|
|
86
66
|
if (buttonEl && buttonEl.current) {
|
|
@@ -91,30 +71,31 @@ const Select = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
91
71
|
}
|
|
92
72
|
}
|
|
93
73
|
}
|
|
94
|
-
const focusNextElement = nextIndex => {
|
|
74
|
+
const focusNextElement = (0, _react.useCallback)(nextIndex => {
|
|
95
75
|
if (listItemRef && listItemRef.current) {
|
|
96
76
|
const nextItem = listItemRef.current[nextIndex].current;
|
|
97
77
|
if (nextItem !== null) {
|
|
98
78
|
nextItem.focus();
|
|
99
79
|
}
|
|
100
80
|
}
|
|
101
|
-
};
|
|
81
|
+
}, []);
|
|
82
|
+
const handleKeyAction = (0, _react.useCallback)(index => {
|
|
83
|
+
if (index >= 0) {
|
|
84
|
+
focusNextElement(index);
|
|
85
|
+
}
|
|
86
|
+
}, [focusNextElement]);
|
|
102
87
|
(0, _react.useEffect)(() => {
|
|
103
88
|
if (optionsWrapper.isFocused) {
|
|
104
89
|
if (optionsWrapper.action === 'key') {
|
|
105
90
|
const index = usedOptions.findIndex(option => option.label === getSelectedOptionLabel());
|
|
106
|
-
|
|
107
|
-
focusNextElement(index);
|
|
108
|
-
}
|
|
91
|
+
handleKeyAction(index);
|
|
109
92
|
} else if (optionsWrapper.action === 'click') {
|
|
110
93
|
handleButtonFocus(true);
|
|
111
94
|
}
|
|
112
95
|
}
|
|
113
|
-
}, [optionsWrapper, usedOptions, innerValue, getSelectedOptionLabel]);
|
|
96
|
+
}, [optionsWrapper, usedOptions, innerValue, getSelectedOptionLabel, handleKeyAction]);
|
|
114
97
|
const handleOptionChange = newOption => {
|
|
115
|
-
|
|
116
|
-
setInnerValue(newOption.data);
|
|
117
|
-
}
|
|
98
|
+
setInnerValue(newOption.data);
|
|
118
99
|
if (onChange) {
|
|
119
100
|
onChange(newOption.data);
|
|
120
101
|
}
|
|
@@ -126,28 +107,23 @@ const Select = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
126
107
|
buttonEl.current.focus();
|
|
127
108
|
}
|
|
128
109
|
};
|
|
129
|
-
const handleListKeyDown = (
|
|
110
|
+
const handleListKeyDown = (e, option, index) => {
|
|
130
111
|
const arrowKeys = ['ArrowDown', 'ArrowUp'];
|
|
131
112
|
const validKeys = ['Enter', ' '];
|
|
132
|
-
if (arrowKeys.concat(validKeys).includes(
|
|
133
|
-
|
|
113
|
+
if (arrowKeys.concat(validKeys).includes(e.key)) {
|
|
114
|
+
e.preventDefault();
|
|
134
115
|
}
|
|
135
|
-
if (
|
|
116
|
+
if (e.key === 'ArrowDown') {
|
|
136
117
|
focusNextElement((index + 1) % usedOptions.length);
|
|
137
118
|
}
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
let nextIndex = (index - 1) % usedOptions.length;
|
|
141
|
-
if (nextIndex < 0) {
|
|
142
|
-
nextIndex += usedOptions.length;
|
|
143
|
-
}
|
|
119
|
+
if (e.key === 'ArrowUp') {
|
|
120
|
+
const nextIndex = (index - 1 + usedOptions.length) % usedOptions.length;
|
|
144
121
|
focusNextElement(nextIndex);
|
|
145
122
|
}
|
|
146
|
-
if (validKeys.includes(
|
|
123
|
+
if (validKeys.includes(e.key)) {
|
|
147
124
|
handleOptionChange(option);
|
|
148
|
-
event.preventDefault();
|
|
149
125
|
}
|
|
150
|
-
if (
|
|
126
|
+
if (e.key === 'Escape') {
|
|
151
127
|
setOptionsWrapper(prevOptionsWrapper => ({
|
|
152
128
|
...prevOptionsWrapper,
|
|
153
129
|
isFocused: false
|
|
@@ -176,6 +152,16 @@ const Select = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
176
152
|
}));
|
|
177
153
|
}
|
|
178
154
|
};
|
|
155
|
+
const handleChange = event => {
|
|
156
|
+
const child = usedOptions.find(childItem => childItem.data === event.target.value);
|
|
157
|
+
if (child === undefined) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
setInnerValue(child.data);
|
|
161
|
+
if (onChange) {
|
|
162
|
+
onChange(child.data);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
179
165
|
const selectedOptionLabel = getSelectedOptionLabel();
|
|
180
166
|
const selectClassName = (0, _classnames.default)('fwe-select', {
|
|
181
167
|
'fwe-focus': optionsWrapper.isFocused
|
|
@@ -190,16 +176,12 @@ const Select = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
190
176
|
});
|
|
191
177
|
function renderOptions() {
|
|
192
178
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
193
|
-
children: [options && options.map((option, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
179
|
+
children: [options && options.map((option, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
194
180
|
ref: listItemRef.current[i],
|
|
195
|
-
role: "option",
|
|
196
181
|
"aria-selected": option.label === selectedOptionLabel,
|
|
197
182
|
onClick: () => handleOptionChange(option),
|
|
198
|
-
|
|
199
|
-
'fwe-empty': !option.label
|
|
200
|
-
}),
|
|
183
|
+
empty: !option.label,
|
|
201
184
|
onKeyDown: e => handleListKeyDown(e, option, i),
|
|
202
|
-
tabIndex: 0,
|
|
203
185
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
204
186
|
className: "fwe-select-option-content",
|
|
205
187
|
children: option.label
|
|
@@ -209,81 +191,68 @@ const Select = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
209
191
|
option,
|
|
210
192
|
...propsWithoutOption
|
|
211
193
|
} = child.props;
|
|
212
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
194
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItem.default, {
|
|
213
195
|
ref: listItemRef.current[i],
|
|
214
|
-
role: "option",
|
|
215
196
|
"aria-selected": option.label === selectedOptionLabel,
|
|
216
197
|
onClick: () => handleOptionChange(option),
|
|
217
|
-
|
|
218
|
-
'fwe-empty': !option.label
|
|
219
|
-
}),
|
|
198
|
+
empty: !option.label,
|
|
220
199
|
onKeyDown: e => handleListKeyDown(e, option, i),
|
|
221
|
-
|
|
222
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOption.SelectOption, {
|
|
200
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
223
201
|
...propsWithoutOption
|
|
224
202
|
})
|
|
225
203
|
}, option.data);
|
|
226
204
|
})]
|
|
227
205
|
});
|
|
228
206
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
className: "fr-select-scroll",
|
|
279
|
-
style: {
|
|
280
|
-
height: calcVirtualScrollHeight(config, usedOptions.length)
|
|
281
|
-
},
|
|
282
|
-
children: renderOptions()
|
|
283
|
-
}) : renderOptions()
|
|
284
|
-
})]
|
|
285
|
-
})
|
|
207
|
+
(0, _useOnClickOutside.default)(innerRef, () => setOptionsWrapper({
|
|
208
|
+
action: '',
|
|
209
|
+
isFocused: false
|
|
210
|
+
}));
|
|
211
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
212
|
+
ref: combinedRef,
|
|
213
|
+
className: (0, _classnames.default)('fwe-select-wrapper', className),
|
|
214
|
+
...props,
|
|
215
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
216
|
+
className: "fr-select-input",
|
|
217
|
+
"aria-hidden": true,
|
|
218
|
+
tabIndex: -1,
|
|
219
|
+
value: innerValue,
|
|
220
|
+
onChange: e => handleChange(e)
|
|
221
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
222
|
+
role: "button",
|
|
223
|
+
tabIndex: 0,
|
|
224
|
+
className: selectClassName,
|
|
225
|
+
onClick: e => handleClick(e),
|
|
226
|
+
ref: buttonEl,
|
|
227
|
+
onKeyDown: handleKeyPress,
|
|
228
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
229
|
+
className: "fwe-select-content",
|
|
230
|
+
children: selectedOptionLabel
|
|
231
|
+
})
|
|
232
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
233
|
+
className: (0, _classnames.default)('fwe-select-label', {
|
|
234
|
+
'fwe-sr-only': config?.hideLabel
|
|
235
|
+
}),
|
|
236
|
+
htmlFor: id,
|
|
237
|
+
children: label || ''
|
|
238
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
239
|
+
className: "fwe-select-underline"
|
|
240
|
+
}), hint && !error && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
241
|
+
className: "fwe-select-description",
|
|
242
|
+
children: hint
|
|
243
|
+
}), error && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
244
|
+
className: "fwe-select-invalid",
|
|
245
|
+
children: [" ", error, " "]
|
|
246
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
247
|
+
className: `fwe-select-options-container${optionsWrapper.isFocused ? '' : ' fwe-d-none'}`,
|
|
248
|
+
children: scroll?.enabled ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
249
|
+
className: "fr-select-scroll",
|
|
250
|
+
style: {
|
|
251
|
+
height: (0, _utils.default)(config, usedOptions.length)
|
|
252
|
+
},
|
|
253
|
+
children: renderOptions()
|
|
254
|
+
}) : renderOptions()
|
|
255
|
+
})]
|
|
286
256
|
});
|
|
287
257
|
});
|
|
288
|
-
var _default = Select;
|
|
289
|
-
exports.default = _default;
|
|
258
|
+
var _default = exports.default = Select;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
const ListItem = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
14
|
+
let {
|
|
15
|
+
children,
|
|
16
|
+
className,
|
|
17
|
+
"aria-selected": ariaSelected,
|
|
18
|
+
empty,
|
|
19
|
+
...props
|
|
20
|
+
} = _ref;
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
22
|
+
ref: ref,
|
|
23
|
+
role: "option",
|
|
24
|
+
"aria-selected": ariaSelected,
|
|
25
|
+
className: (0, _classnames.default)('fwe-select-option', {
|
|
26
|
+
'fwe-empty': empty
|
|
27
|
+
}, className),
|
|
28
|
+
tabIndex: 0,
|
|
29
|
+
...props,
|
|
30
|
+
children: children
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
var _default = exports.default = ListItem;
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.SelectOption = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
function _getRequireWildcardCache(
|
|
10
|
-
function _interopRequireWildcard(
|
|
11
|
-
const SelectOption = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
const SelectOption = exports.SelectOption = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
12
12
|
let {
|
|
13
13
|
children,
|
|
14
14
|
className,
|
|
@@ -21,6 +21,4 @@ const SelectOption = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
21
21
|
children: children
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
|
-
exports.
|
|
25
|
-
var _default = SelectOption;
|
|
26
|
-
exports.default = _default;
|
|
24
|
+
var _default = exports.default = SelectOption;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = calcVirtualScrollHeight;
|
|
7
|
+
function calcVirtualScrollHeight(config, itemLength) {
|
|
8
|
+
const defaultHeight = 48;
|
|
9
|
+
let height = defaultHeight;
|
|
10
|
+
if (itemLength === 2) {
|
|
11
|
+
height = defaultHeight * 2;
|
|
12
|
+
} else if (itemLength >= 3) {
|
|
13
|
+
height = defaultHeight * 3;
|
|
14
|
+
}
|
|
15
|
+
if (config?.scroll?.viewportSize != null && config.scroll.viewportSize !== undefined) {
|
|
16
|
+
if (itemLength >= config.scroll.viewportSize) {
|
|
17
|
+
height = config.scroll.viewportSize * defaultHeight;
|
|
18
|
+
} else if (itemLength < config.scroll.viewportSize) {
|
|
19
|
+
height = itemLength * defaultHeight;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return height;
|
|
23
|
+
}
|
|
@@ -9,8 +9,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
9
9
|
var _useId = _interopRequireDefault(require("../../helper/useId"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function Slider(_ref) {
|
|
15
15
|
let {
|
|
16
16
|
disabled = false,
|
|
@@ -97,5 +97,4 @@ function Slider(_ref) {
|
|
|
97
97
|
})]
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
var _default = Slider;
|
|
101
|
-
exports.default = _default;
|
|
100
|
+
var _default = exports.default = Slider;
|
|
@@ -9,8 +9,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
9
9
|
var _useId = _interopRequireDefault(require("../../helper/useId"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function TextArea(_ref) {
|
|
15
15
|
let {
|
|
16
16
|
disabled,
|
|
@@ -113,5 +113,4 @@ function TextArea(_ref) {
|
|
|
113
113
|
})]
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
var _default = TextArea;
|
|
117
|
-
exports.default = _default;
|
|
116
|
+
var _default = exports.default = TextArea;
|
|
@@ -24,9 +24,13 @@ const defaultConfig = {
|
|
|
24
24
|
link: true
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
+
function postpone(fn) {
|
|
28
|
+
Promise.resolve().then(fn);
|
|
29
|
+
}
|
|
27
30
|
function TextEditor(_ref) {
|
|
28
31
|
let {
|
|
29
32
|
disabled = false,
|
|
33
|
+
defaultValue,
|
|
30
34
|
label,
|
|
31
35
|
maxLength,
|
|
32
36
|
value,
|
|
@@ -40,13 +44,29 @@ function TextEditor(_ref) {
|
|
|
40
44
|
const editorRef = (0, _react.useRef)(null);
|
|
41
45
|
const [editor, setEditor] = (0, _react.useState)(null);
|
|
42
46
|
const id = (0, _useId.default)();
|
|
43
|
-
const [innerValue, setInnerValue] = (0, _react.useState)(
|
|
47
|
+
const [innerValue, setInnerValue] = (0, _react.useState)(null);
|
|
44
48
|
const config = {
|
|
45
49
|
toolbar: {
|
|
46
50
|
...defaultConfig.toolbar,
|
|
47
51
|
...configProps?.toolbar
|
|
48
52
|
}
|
|
49
53
|
};
|
|
54
|
+
const setEditorContents = (0, _react.useCallback)((e, v) => {
|
|
55
|
+
if (e) {
|
|
56
|
+
const whiteList = {
|
|
57
|
+
...xss.whiteList,
|
|
58
|
+
a: [...xss.whiteList.a, 'rel']
|
|
59
|
+
};
|
|
60
|
+
const sanitizedValue = xss(v, {
|
|
61
|
+
whiteList
|
|
62
|
+
});
|
|
63
|
+
const content = e.clipboard.convert(sanitizedValue);
|
|
64
|
+
const selection = e.getSelection();
|
|
65
|
+
e.setContents(content, 'silent');
|
|
66
|
+
setInnerValue(sanitizedValue);
|
|
67
|
+
postpone(() => e.setSelection(selection));
|
|
68
|
+
}
|
|
69
|
+
}, []);
|
|
50
70
|
(0, _react.useEffect)(() => {
|
|
51
71
|
if (editorRef && editor === null && typeof window === 'object') {
|
|
52
72
|
// eslint-disable-next-line global-require
|
|
@@ -80,8 +100,11 @@ function TextEditor(_ref) {
|
|
|
80
100
|
return new Delta().insert('');
|
|
81
101
|
});
|
|
82
102
|
setEditor(newEditor);
|
|
103
|
+
if (defaultValue) {
|
|
104
|
+
setEditorContents(newEditor, defaultValue);
|
|
105
|
+
}
|
|
83
106
|
}
|
|
84
|
-
}, [editorRef, editor, disabled, readOnly, className, id, config.toolbar?.image]);
|
|
107
|
+
}, [editorRef, editor, disabled, readOnly, className, id, config.toolbar?.image, setEditorContents, defaultValue]);
|
|
85
108
|
(0, _react.useEffect)(() => {
|
|
86
109
|
if (editor) {
|
|
87
110
|
editor.on('text-change', () => {
|
|
@@ -97,18 +120,10 @@ function TextEditor(_ref) {
|
|
|
97
120
|
}
|
|
98
121
|
}, [editor, onChange]);
|
|
99
122
|
(0, _react.useEffect)(() => {
|
|
100
|
-
if (
|
|
101
|
-
|
|
102
|
-
...xss.whiteList,
|
|
103
|
-
a: [...xss.whiteList.a, 'rel']
|
|
104
|
-
};
|
|
105
|
-
const sanitizedValue = xss(value, {
|
|
106
|
-
whiteList
|
|
107
|
-
});
|
|
108
|
-
const content = editor.clipboard.convert(sanitizedValue);
|
|
109
|
-
editor.setContents(content, 'silent');
|
|
123
|
+
if (value !== innerValue && value !== undefined && value !== null) {
|
|
124
|
+
setEditorContents(editor, value);
|
|
110
125
|
}
|
|
111
|
-
}, [editor, value]);
|
|
126
|
+
}, [editor, innerValue, setEditorContents, value]);
|
|
112
127
|
function currentLength() {
|
|
113
128
|
return innerValue?.length || 0;
|
|
114
129
|
}
|
|
@@ -257,5 +272,4 @@ function TextEditor(_ref) {
|
|
|
257
272
|
})]
|
|
258
273
|
});
|
|
259
274
|
}
|
|
260
|
-
var _default = TextEditor;
|
|
261
|
-
exports.default = _default;
|
|
275
|
+
var _default = exports.default = TextEditor;
|
|
@@ -9,8 +9,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
9
9
|
var _useId = _interopRequireDefault(require("../../helper/useId"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
const TextInput = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
15
15
|
let {
|
|
16
16
|
disabled,
|
|
@@ -80,5 +80,4 @@ const TextInput = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
80
80
|
})]
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
var _default = TextInput;
|
|
84
|
-
exports.default = _default;
|
|
83
|
+
var _default = exports.default = TextInput;
|
|
@@ -13,8 +13,8 @@ var _useId = _interopRequireDefault(require("../../helper/useId"));
|
|
|
13
13
|
var _useOnClickOutside = _interopRequireDefault(require("../../helper/useOnClickOutside"));
|
|
14
14
|
var _TimePickerDropdown = _interopRequireDefault(require("./time-picker-dropdown/TimePickerDropdown"));
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
const TimePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
20
20
|
let {
|
|
@@ -165,5 +165,4 @@ const TimePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
165
165
|
}), container.body)]
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
|
-
var _default = TimePicker;
|
|
169
|
-
exports.default = _default;
|
|
168
|
+
var _default = exports.default = TimePicker;
|
|
@@ -8,8 +8,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _useForkRef = _interopRequireDefault(require("../../../helper/useForkRef"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _getRequireWildcardCache(
|
|
12
|
-
function _interopRequireWildcard(
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
const TimePickerDropdown = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
15
15
|
let {
|
|
@@ -218,5 +218,4 @@ const TimePickerDropdown = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
218
218
|
})
|
|
219
219
|
);
|
|
220
220
|
});
|
|
221
|
-
var _default = TimePickerDropdown;
|
|
222
|
-
exports.default = _default;
|
|
221
|
+
var _default = exports.default = TimePickerDropdown;
|