@true-engineering/true-react-common-ui-kit 3.1.1 → 3.4.0
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 +12 -0
- package/dist/components/AccountInfo/AccountInfo.d.ts +1 -0
- package/dist/components/AddButton/AddButton.d.ts +4 -1
- package/dist/components/Button/Button.d.ts +11 -29
- package/dist/components/Checkbox/Checkbox.d.ts +7 -5
- package/dist/components/CloseButton/CloseButton.d.ts +2 -1
- package/dist/components/DateInput/DateInput.d.ts +5 -2
- package/dist/components/DatePicker/DatePicker.d.ts +7 -5
- package/dist/components/Description/Description.d.ts +2 -0
- package/dist/components/FiltersPane/FiltersPane.d.ts +6 -3
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +3 -3
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +1 -1
- package/dist/components/Flag/Flag.d.ts +1 -0
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +7 -4
- package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +1 -1
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +1 -1
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +4 -2
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +6 -4
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +1 -1
- package/dist/components/IncrementInput/IncrementInput.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +17 -23
- package/dist/components/Input/Input.stories.d.ts +1 -1
- package/dist/components/Input/types.d.ts +2 -0
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/components/ListItem/ListItem.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +11 -1
- package/dist/components/MoreMenu/MoreMenu.d.ts +4 -5
- package/dist/components/MultiSelect/MultiSelect.d.ts +7 -2
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +1 -1
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +3 -0
- package/dist/components/Notification/Notification.d.ts +2 -6
- package/dist/components/Notification/Notification.styles.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +5 -1
- package/dist/components/PhoneInput/PhoneInput.d.ts +5 -1
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +2 -2
- package/dist/components/RadioButton/RadioButton.d.ts +3 -1
- package/dist/components/Select/Select.d.ts +17 -12
- package/dist/components/Select/components/SelectList/SelectList.d.ts +6 -6
- package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +2 -2
- package/dist/components/SmartInput/SmartInput.d.ts +2 -0
- package/dist/components/SmartInput/SmartInput.stories.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +6 -7
- package/dist/components/TextArea/TextArea.d.ts +13 -4
- package/dist/components/TextButton/TextButton.d.ts +1 -1
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +2 -1
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +7 -0
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +2 -3
- package/dist/components/Toaster/Toaster.d.ts +5 -11
- package/dist/components/Tooltip/Tooltip.d.ts +2 -6
- package/dist/hooks/use-dropdown.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +138 -45
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +138 -45
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/AccountInfo/AccountInfo.tsx +1 -0
- package/src/components/AddButton/AddButton.tsx +6 -3
- package/src/components/Button/Button.tsx +11 -29
- package/src/components/Checkbox/Checkbox.tsx +12 -10
- package/src/components/CloseButton/CloseButton.tsx +2 -1
- package/src/components/DateInput/DateInput.tsx +6 -3
- package/src/components/DatePicker/DatePicker.tsx +10 -8
- package/src/components/Description/Description.tsx +2 -0
- package/src/components/FiltersPane/FiltersPane.tsx +6 -3
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +3 -3
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +2 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +1 -1
- package/src/components/Flag/Flag.tsx +1 -0
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +14 -0
- package/src/components/FlexibleTable/FlexibleTable.tsx +53 -33
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +8 -3
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +2 -0
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +17 -8
- package/src/components/IncrementInput/IncrementInput.tsx +1 -0
- package/src/components/Input/Input.tsx +28 -41
- package/src/components/Input/types.ts +26 -0
- package/src/components/List/List.tsx +1 -1
- package/src/components/List/components/ListItem/ListItem.tsx +1 -1
- package/src/components/Modal/Modal.tsx +12 -2
- package/src/components/MoreMenu/MoreMenu.tsx +5 -6
- package/src/components/MultiSelect/MultiSelect.tsx +9 -4
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +1 -1
- package/src/components/MultiSelectList/MultiSelectList.tsx +3 -0
- package/src/components/Notification/Notification.tsx +2 -6
- package/src/components/NumberInput/NumberInput.tsx +5 -1
- package/src/components/PhoneInput/PhoneInput.tsx +6 -2
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +2 -2
- package/src/components/RadioButton/RadioButton.tsx +5 -3
- package/src/components/Select/Select.tsx +18 -13
- package/src/components/Select/components/SelectList/SelectList.tsx +6 -6
- package/src/components/Select/components/SelectListItem/SelectListItem.tsx +2 -2
- package/src/components/SmartInput/SmartInput.tsx +11 -1
- package/src/components/Switch/Switch.tsx +8 -9
- package/src/components/TextArea/TextArea.tsx +16 -7
- package/src/components/TextButton/TextButton.tsx +1 -1
- package/src/components/TextWithInfo/TextWithInfo.tsx +2 -1
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +8 -1
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +2 -3
- package/src/components/Toaster/Toaster.tsx +5 -11
- package/src/components/Tooltip/Tooltip.tsx +2 -6
- package/src/hooks/use-dropdown.ts +1 -1
|
@@ -8435,7 +8435,7 @@ function _object_spread_props$F(target, source) {
|
|
|
8435
8435
|
return target;
|
|
8436
8436
|
}
|
|
8437
8437
|
var AddButton = function(param) {
|
|
8438
|
-
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type,
|
|
8438
|
+
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onClick = param.onClick, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8439
8439
|
var classes = useStyles$M({
|
|
8440
8440
|
theme: tweakStyles
|
|
8441
8441
|
});
|
|
@@ -9102,19 +9102,19 @@ function _unsupported_iterable_to_array$n(o, minLen) {
|
|
|
9102
9102
|
return _array_like_to_array$n(o, minLen);
|
|
9103
9103
|
}
|
|
9104
9104
|
function Checkbox(param) {
|
|
9105
|
-
var children = param.children,
|
|
9105
|
+
var children = param.children, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, value = param.value, data = param.data, testId = param.testId, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
9106
9106
|
var classes = useStyles$H({
|
|
9107
9107
|
theme: tweakStyles
|
|
9108
9108
|
});
|
|
9109
9109
|
var _useState = _sliced_to_array$n(useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
9110
9110
|
var hasAction = !isDisabled && !isReadonly;
|
|
9111
9111
|
var onToggle = function() {
|
|
9112
|
-
var
|
|
9112
|
+
var isSelectedNext = !isSelected;
|
|
9113
9113
|
onSelect({
|
|
9114
9114
|
value,
|
|
9115
|
-
isSelected:
|
|
9115
|
+
isSelected: isSelectedNext
|
|
9116
9116
|
});
|
|
9117
|
-
setIsSelected(
|
|
9117
|
+
setIsSelected(isSelectedNext);
|
|
9118
9118
|
};
|
|
9119
9119
|
useEffect(function() {
|
|
9120
9120
|
setIsSelected(isChecked);
|
|
@@ -9809,6 +9809,38 @@ function _object_spread_props$A(target, source) {
|
|
|
9809
9809
|
}
|
|
9810
9810
|
return target;
|
|
9811
9811
|
}
|
|
9812
|
+
function _object_without_properties$b(source, excluded) {
|
|
9813
|
+
if (source == null)
|
|
9814
|
+
return {};
|
|
9815
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
9816
|
+
var key, i;
|
|
9817
|
+
if (Object.getOwnPropertySymbols) {
|
|
9818
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
9819
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
9820
|
+
key = sourceSymbolKeys[i];
|
|
9821
|
+
if (excluded.indexOf(key) >= 0)
|
|
9822
|
+
continue;
|
|
9823
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
9824
|
+
continue;
|
|
9825
|
+
target[key] = source[key];
|
|
9826
|
+
}
|
|
9827
|
+
}
|
|
9828
|
+
return target;
|
|
9829
|
+
}
|
|
9830
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
9831
|
+
if (source == null)
|
|
9832
|
+
return {};
|
|
9833
|
+
var target = {};
|
|
9834
|
+
var sourceKeys = Object.keys(source);
|
|
9835
|
+
var key, i;
|
|
9836
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
9837
|
+
key = sourceKeys[i];
|
|
9838
|
+
if (excluded.indexOf(key) >= 0)
|
|
9839
|
+
continue;
|
|
9840
|
+
target[key] = source[key];
|
|
9841
|
+
}
|
|
9842
|
+
return target;
|
|
9843
|
+
}
|
|
9812
9844
|
function _sliced_to_array$l(arr, i) {
|
|
9813
9845
|
return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$l();
|
|
9814
9846
|
}
|
|
@@ -9927,8 +9959,44 @@ var __generator$5 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
9927
9959
|
};
|
|
9928
9960
|
}
|
|
9929
9961
|
};
|
|
9930
|
-
var Input = /* @__PURE__ */ forwardRef(function(
|
|
9931
|
-
var _param_value =
|
|
9962
|
+
var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9963
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$b(_param, [
|
|
9964
|
+
"value",
|
|
9965
|
+
"label",
|
|
9966
|
+
"placeholder",
|
|
9967
|
+
"type",
|
|
9968
|
+
"isDisabled",
|
|
9969
|
+
"isReadonly",
|
|
9970
|
+
"hasFloatingLabel",
|
|
9971
|
+
"isInvalid",
|
|
9972
|
+
"isActive",
|
|
9973
|
+
"isClearable",
|
|
9974
|
+
"infoMessage",
|
|
9975
|
+
"errorMessage",
|
|
9976
|
+
"errorPosition",
|
|
9977
|
+
"inlineStyle",
|
|
9978
|
+
"border",
|
|
9979
|
+
"isRequired",
|
|
9980
|
+
"isLoading",
|
|
9981
|
+
"isAutoSizeable",
|
|
9982
|
+
"defaultSize",
|
|
9983
|
+
"iconType",
|
|
9984
|
+
"hasRequiredLabel",
|
|
9985
|
+
"data",
|
|
9986
|
+
"tweakStyles",
|
|
9987
|
+
"shouldFocusOnMount",
|
|
9988
|
+
"units",
|
|
9989
|
+
"testId",
|
|
9990
|
+
"onChange",
|
|
9991
|
+
"onFocus",
|
|
9992
|
+
"onBlur",
|
|
9993
|
+
"onIconClick",
|
|
9994
|
+
"mask",
|
|
9995
|
+
"maskPlaceholder",
|
|
9996
|
+
"alwaysShowMask",
|
|
9997
|
+
"shouldAlwaysShowPlaceholder",
|
|
9998
|
+
"beforeMaskedStateChange"
|
|
9999
|
+
]);
|
|
9932
10000
|
var classes = useStyles$D({
|
|
9933
10001
|
theme: tweakStyles
|
|
9934
10002
|
});
|
|
@@ -9983,24 +10051,19 @@ var Input = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
9983
10051
|
var hasPlaceholder = (!hasLabel || hasFocus && !isReadonly || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
|
|
9984
10052
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
9985
10053
|
var _obj;
|
|
9986
|
-
var props = _object_spread$H({
|
|
10054
|
+
var props = _object_spread_props$A(_object_spread$H({}, inputProps, addDataTestId(testId)), {
|
|
9987
10055
|
className: clsx(classes.input, (_obj = {}, _define_property$J(_obj, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _define_property$J(_obj, classes.withIcons, hasControls), _define_property$J(_obj, classes.withControls, hasControls), _define_property$J(_obj, classes.withUnits, shouldShowUnits), _define_property$J(_obj, classes.floatingLabelWithoutPadding, hasFloatingLabel && hasLabel && border === "bottom"), _obj)),
|
|
9988
10056
|
onFocus: handleFocus,
|
|
9989
10057
|
onBlur: handleBlur,
|
|
9990
10058
|
onChange: handleChange,
|
|
9991
|
-
onKeyDown,
|
|
9992
|
-
onPaste,
|
|
9993
10059
|
value,
|
|
9994
10060
|
type,
|
|
9995
10061
|
disabled: isDisabled,
|
|
9996
10062
|
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
9997
|
-
name,
|
|
9998
|
-
maxLength,
|
|
9999
10063
|
autoFocus: shouldFocusOnMount,
|
|
10000
10064
|
readOnly: isReadonly,
|
|
10001
|
-
size: isAutoSizeable ? defaultSize : void 0
|
|
10002
|
-
|
|
10003
|
-
}, addDataTestId(testId));
|
|
10065
|
+
size: isAutoSizeable ? defaultSize : void 0
|
|
10066
|
+
});
|
|
10004
10067
|
var _obj1, _obj2;
|
|
10005
10068
|
return /* @__PURE__ */ jsxs("div", {
|
|
10006
10069
|
className: classes.root,
|
|
@@ -10171,7 +10234,7 @@ function _object_without_properties_loose$a(source, excluded) {
|
|
|
10171
10234
|
return target;
|
|
10172
10235
|
}
|
|
10173
10236
|
var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10174
|
-
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data,
|
|
10237
|
+
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$a(_param, [
|
|
10175
10238
|
"date",
|
|
10176
10239
|
"startDate",
|
|
10177
10240
|
"endDate",
|
|
@@ -12153,7 +12216,7 @@ function _unsupported_iterable_to_array$j(o, minLen) {
|
|
|
12153
12216
|
return _array_like_to_array$j(o, minLen);
|
|
12154
12217
|
}
|
|
12155
12218
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
12156
|
-
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder,
|
|
12219
|
+
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$6(_param, [
|
|
12157
12220
|
"data",
|
|
12158
12221
|
"selectedDate",
|
|
12159
12222
|
"minDate",
|
|
@@ -24571,6 +24634,10 @@ var useStyles$k = createThemedStyles("FlexibleTable", {
|
|
|
24571
24634
|
*/
|
|
24572
24635
|
maxHeight: "100%"
|
|
24573
24636
|
},
|
|
24637
|
+
head: {},
|
|
24638
|
+
body: {},
|
|
24639
|
+
loaderRow: {},
|
|
24640
|
+
loaderCell: {},
|
|
24574
24641
|
loader: {
|
|
24575
24642
|
position: "sticky",
|
|
24576
24643
|
left: 0,
|
|
@@ -24638,6 +24705,9 @@ var useStyles$k = createThemedStyles("FlexibleTable", {
|
|
|
24638
24705
|
headerSecond: {
|
|
24639
24706
|
paddingLeft: STICKY_SHADOW_PADDING
|
|
24640
24707
|
},
|
|
24708
|
+
nothingFoundRow: {},
|
|
24709
|
+
nothingFound: {},
|
|
24710
|
+
skeletonRow: {},
|
|
24641
24711
|
skeleton: {
|
|
24642
24712
|
height: 21,
|
|
24643
24713
|
padding: [
|
|
@@ -24740,15 +24810,16 @@ function _define_property$l(obj, key, value) {
|
|
|
24740
24810
|
return obj;
|
|
24741
24811
|
}
|
|
24742
24812
|
function FlexibleTableCell(param) {
|
|
24743
|
-
var item = param.item, columnName = param.columnName, config = param.config, isFocusedRow = param.isFocusedRow, isSecond = param.isSecond, isSticky = param.isSticky, isNestedComponentExpanded = param.isNestedComponentExpanded, isRowNestedComponentExpanded = param.isRowNestedComponentExpanded, tweakStyles = param.tweakStyles, onSetNestedComponent = param.onSetNestedComponent;
|
|
24813
|
+
var item = param.item, columnName = param.columnName, config = param.config, _param_renderMode = param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, isFocusedRow = param.isFocusedRow, isSecond = param.isSecond, isSticky = param.isSticky, isNestedComponentExpanded = param.isNestedComponentExpanded, isRowNestedComponentExpanded = param.isRowNestedComponentExpanded, tweakStyles = param.tweakStyles, onSetNestedComponent = param.onSetNestedComponent;
|
|
24744
24814
|
var classes = useStyles$j({
|
|
24745
24815
|
theme: tweakStyles
|
|
24746
24816
|
});
|
|
24747
24817
|
var _config_columnName;
|
|
24748
24818
|
var _ref = (_config_columnName = config[columnName]) !== null && _config_columnName !== void 0 ? _config_columnName : {}, component = _ref.component, cellAlign = _ref.cellAlign, position = _ref.position, right2 = _ref.right, left2 = _ref.left, cellVerticalAlign = _ref.cellVerticalAlign;
|
|
24749
24819
|
var value = item[columnName];
|
|
24820
|
+
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24750
24821
|
var _obj;
|
|
24751
|
-
return /* @__PURE__ */ jsx(
|
|
24822
|
+
return /* @__PURE__ */ jsx(TableCell, {
|
|
24752
24823
|
className: clsx(classes.root, (_obj = {}, _define_property$l(_obj, classes.sticky, isSticky), _define_property$l(_obj, classes.second, isSecond), _obj)),
|
|
24753
24824
|
style: {
|
|
24754
24825
|
textAlign: cellAlign,
|
|
@@ -24779,7 +24850,8 @@ var useStyles$i = createThemedStyles("FlexibleTableRow", {
|
|
|
24779
24850
|
},
|
|
24780
24851
|
clickable: {
|
|
24781
24852
|
cursor: "pointer"
|
|
24782
|
-
}
|
|
24853
|
+
},
|
|
24854
|
+
nestedComponent: {}
|
|
24783
24855
|
});
|
|
24784
24856
|
function _array_like_to_array$9(arr, len) {
|
|
24785
24857
|
if (len == null || len > arr.length)
|
|
@@ -24892,7 +24964,7 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
24892
24964
|
return _array_like_to_array$9(o, minLen);
|
|
24893
24965
|
}
|
|
24894
24966
|
function FlexibleTableRowInner(param) {
|
|
24895
|
-
var item = param.item, uniqueField = param.uniqueField, isFirstColumnSticky = param.isFirstColumnSticky, isActive = param.isActive, config = param.config, enabledColumns = param.enabledColumns, rowAttributes = param.rowAttributes, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
|
|
24967
|
+
var item = param.item, uniqueField = param.uniqueField, isFirstColumnSticky = param.isFirstColumnSticky, isActive = param.isActive, config = param.config, enabledColumns = param.enabledColumns, rowAttributes = param.rowAttributes, _param_renderMode = param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
|
|
24896
24968
|
var classes = useStyles$i({
|
|
24897
24969
|
theme: tweakStyles
|
|
24898
24970
|
});
|
|
@@ -24950,10 +25022,12 @@ function FlexibleTableRowInner(param) {
|
|
|
24950
25022
|
};
|
|
24951
25023
|
var items = enabledColumns !== null && enabledColumns !== void 0 ? enabledColumns : Object.keys(config);
|
|
24952
25024
|
var isEditable = isNotEmpty(onRowClick) || isNotEmpty(onRowHover);
|
|
25025
|
+
var TableRow = renderMode === "divs" ? "div" : "tr";
|
|
25026
|
+
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24953
25027
|
var _obj;
|
|
24954
25028
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
24955
25029
|
children: [
|
|
24956
|
-
/* @__PURE__ */ jsx(
|
|
25030
|
+
/* @__PURE__ */ jsx(TableRow, _object_spread_props$i(_object_spread$j({
|
|
24957
25031
|
className: clsx(classes.root, (_obj = {}, _define_property$k(_obj, classes.active, isActive), _define_property$k(_obj, classes.editable, isEditable), _define_property$k(_obj, classes.clickable, isNotEmpty(onRowClick) || isNotEmpty(expandableRowComponent)), _obj)),
|
|
24958
25032
|
onMouseEnter: function(e) {
|
|
24959
25033
|
if (uniqueField !== void 0 && onRowHover !== void 0) {
|
|
@@ -24977,6 +25051,7 @@ function FlexibleTableRowInner(param) {
|
|
|
24977
25051
|
item,
|
|
24978
25052
|
config,
|
|
24979
25053
|
tweakStyles: tweakTableCellStyles,
|
|
25054
|
+
renderMode,
|
|
24980
25055
|
isFocusedRow: isFocused,
|
|
24981
25056
|
isNestedComponentExpanded: nestedComponent.isOpen && nestedComponent.cellKey === key,
|
|
24982
25057
|
isRowNestedComponentExpanded: nestedComponent.isOpen && nestedComponent.cellKey === void 0,
|
|
@@ -24986,9 +25061,10 @@ function FlexibleTableRowInner(param) {
|
|
|
24986
25061
|
}, key);
|
|
24987
25062
|
})
|
|
24988
25063
|
})),
|
|
24989
|
-
nestedComponent.isOpen && /* @__PURE__ */ jsx(
|
|
25064
|
+
nestedComponent.isOpen && /* @__PURE__ */ jsx(TableRow, {
|
|
24990
25065
|
className: classes.root,
|
|
24991
|
-
children: /* @__PURE__ */ jsx(
|
|
25066
|
+
children: /* @__PURE__ */ jsx(TableCell, {
|
|
25067
|
+
className: classes.nestedComponent,
|
|
24992
25068
|
colSpan: items.length,
|
|
24993
25069
|
children: nestedComponent.component
|
|
24994
25070
|
})
|
|
@@ -25050,7 +25126,7 @@ function _object_spread_props$h(target, source) {
|
|
|
25050
25126
|
return target;
|
|
25051
25127
|
}
|
|
25052
25128
|
function FlexibleTable(param) {
|
|
25053
|
-
var data = param.data, tweakStyles = param.tweakStyles, content = param.content, headerContent = param.headerContent, config = param.config, activeRows = param.activeRows, enabledColumns = param.enabledColumns,
|
|
25129
|
+
var data = param.data, tweakStyles = param.tweakStyles, content = param.content, headerContent = param.headerContent, config = param.config, activeRows = param.activeRows, enabledColumns = param.enabledColumns, _param_isHorizontallyScrollable = param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isFirstColumnSticky = param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, infinityScrollConfig = param.infinityScrollConfig, uniqueField = param.uniqueField, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_renderMode = param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, onHeadClick = param.onHeadClick, onRowHover = param.onRowHover, onRowClick = param.onRowClick, refForScroll = param.refForScroll, rowAttributes = param.rowAttributes, nothingFoundContent = param.nothingFoundContent, testId = param.testId, expandableRowComponent = param.expandableRowComponent;
|
|
25054
25130
|
var classes = useStyles$k({
|
|
25055
25131
|
theme: tweakStyles
|
|
25056
25132
|
});
|
|
@@ -25086,6 +25162,7 @@ function FlexibleTable(param) {
|
|
|
25086
25162
|
}), [
|
|
25087
25163
|
getDataScrollAttributeSetter
|
|
25088
25164
|
]);
|
|
25165
|
+
var shouldShowNothingFound = !isArrayNotEmpty(content) && nothingFoundContent !== void 0 && !(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLoading) && ((infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLastPage) === void 0 || infinityScrollConfig.isLastPage);
|
|
25089
25166
|
var ref = useMergedRefs([
|
|
25090
25167
|
refForScroll,
|
|
25091
25168
|
scrollRef,
|
|
@@ -25136,16 +25213,25 @@ function FlexibleTable(param) {
|
|
|
25136
25213
|
setIsScrolledAttribute,
|
|
25137
25214
|
setHasScrollBarAttribute
|
|
25138
25215
|
]);
|
|
25216
|
+
var Table = renderMode === "divs" ? "div" : "table";
|
|
25217
|
+
var TableHead = renderMode === "divs" ? "div" : "thead";
|
|
25218
|
+
var TableBody = renderMode === "divs" ? "div" : "tbody";
|
|
25219
|
+
var TableRow = renderMode === "divs" ? "div" : "tr";
|
|
25220
|
+
var TableHeader = renderMode === "divs" ? "div" : "th";
|
|
25221
|
+
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
25139
25222
|
var _activeRows_includes;
|
|
25140
25223
|
return /* @__PURE__ */ jsx("div", {
|
|
25141
25224
|
ref,
|
|
25142
25225
|
className: clsx(_define_property$j({}, classes.scroll, isHorizontallyScrollable)),
|
|
25143
|
-
children: /* @__PURE__ */ jsxs(
|
|
25226
|
+
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$h(_object_spread$i({
|
|
25144
25227
|
className: classes.root
|
|
25145
|
-
}, addDataTestId(testId), addDataAttributes(data)
|
|
25228
|
+
}, addDataTestId(testId), addDataAttributes(_object_spread_props$h(_object_spread$i({}, data), {
|
|
25229
|
+
isLoading
|
|
25230
|
+
}))), {
|
|
25146
25231
|
children: [
|
|
25147
|
-
/* @__PURE__ */ jsx(
|
|
25148
|
-
|
|
25232
|
+
/* @__PURE__ */ jsx(TableHead, {
|
|
25233
|
+
className: classes.head,
|
|
25234
|
+
children: /* @__PURE__ */ jsx(TableRow, {
|
|
25149
25235
|
className: classes.headerRow,
|
|
25150
25236
|
children: showedColumns.map(function(key, i) {
|
|
25151
25237
|
var itemConfig = config === null || config === void 0 ? void 0 : config[key];
|
|
@@ -25159,7 +25245,7 @@ function FlexibleTable(param) {
|
|
|
25159
25245
|
}
|
|
25160
25246
|
var _itemConfig_titleAlign;
|
|
25161
25247
|
var _obj;
|
|
25162
|
-
return /* @__PURE__ */ jsx(
|
|
25248
|
+
return /* @__PURE__ */ jsx(TableHeader, {
|
|
25163
25249
|
className: clsx(classes.header, (_obj = {}, _define_property$j(_obj, classes.headerSticky, isFirstColumnSticky && i === 0), _define_property$j(_obj, classes.headerSecond, isFirstColumnSticky && i === 1), _obj)),
|
|
25164
25250
|
style: {
|
|
25165
25251
|
minWidth: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.minWidth,
|
|
@@ -25175,11 +25261,13 @@ function FlexibleTable(param) {
|
|
|
25175
25261
|
})
|
|
25176
25262
|
})
|
|
25177
25263
|
}),
|
|
25178
|
-
/* @__PURE__ */ jsx(
|
|
25264
|
+
/* @__PURE__ */ jsx(TableBody, {
|
|
25265
|
+
className: classes.body,
|
|
25179
25266
|
children: isLoading ? indexMap(6, function(i) {
|
|
25180
|
-
return /* @__PURE__ */ jsx(
|
|
25267
|
+
return /* @__PURE__ */ jsx(TableRow, {
|
|
25268
|
+
className: classes.skeletonRow,
|
|
25181
25269
|
children: showedColumns.map(function(_, j) {
|
|
25182
|
-
return /* @__PURE__ */ jsx(
|
|
25270
|
+
return /* @__PURE__ */ jsx(TableCell, {
|
|
25183
25271
|
className: classes.skeleton,
|
|
25184
25272
|
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
25185
25273
|
}, j);
|
|
@@ -25187,8 +25275,10 @@ function FlexibleTable(param) {
|
|
|
25187
25275
|
}, i);
|
|
25188
25276
|
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
25189
25277
|
children: [
|
|
25190
|
-
|
|
25191
|
-
|
|
25278
|
+
shouldShowNothingFound && /* @__PURE__ */ jsx(TableRow, {
|
|
25279
|
+
className: classes.nothingFoundRow,
|
|
25280
|
+
children: /* @__PURE__ */ jsx(TableCell, {
|
|
25281
|
+
className: classes.nothingFound,
|
|
25192
25282
|
colSpan: showedColumns.length,
|
|
25193
25283
|
children: nothingFoundContent
|
|
25194
25284
|
})
|
|
@@ -25204,12 +25294,15 @@ function FlexibleTable(param) {
|
|
|
25204
25294
|
enabledColumns,
|
|
25205
25295
|
config,
|
|
25206
25296
|
rowAttributes,
|
|
25297
|
+
renderMode,
|
|
25207
25298
|
tweakStyles: tweakTableRowStyles,
|
|
25208
25299
|
expandableRowComponent
|
|
25209
25300
|
}, isNotEmpty(uniqueField) ? item[uniqueField] : i);
|
|
25210
25301
|
}),
|
|
25211
|
-
infinityScrollConfig !== void 0 && !infinityScrollConfig.isLastPage && /* @__PURE__ */ jsx(
|
|
25212
|
-
|
|
25302
|
+
infinityScrollConfig !== void 0 && !infinityScrollConfig.isLastPage && /* @__PURE__ */ jsx(TableRow, {
|
|
25303
|
+
className: classes.loaderRow,
|
|
25304
|
+
children: /* @__PURE__ */ jsx(TableCell, {
|
|
25305
|
+
className: classes.loaderCell,
|
|
25213
25306
|
colSpan: showedColumns.length,
|
|
25214
25307
|
children: /* @__PURE__ */ jsx("div", {
|
|
25215
25308
|
ref: initIntersectionObserver,
|
|
@@ -25861,7 +25954,7 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
25861
25954
|
return _array_like_to_array$8(o, minLen);
|
|
25862
25955
|
}
|
|
25863
25956
|
var Modal = function(_param) {
|
|
25864
|
-
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size,
|
|
25957
|
+
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$3(_param, [
|
|
25865
25958
|
"data",
|
|
25866
25959
|
"tweakStyles",
|
|
25867
25960
|
"title",
|
|
@@ -26159,7 +26252,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
|
|
|
26159
26252
|
return _array_like_to_array$7(o, minLen);
|
|
26160
26253
|
}
|
|
26161
26254
|
var MoreMenu = function(param) {
|
|
26162
|
-
var items = param.items,
|
|
26255
|
+
var items = param.items, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasDefaultStateBackground = param.hasDefaultStateBackground, hasDefaultStateBackground = _param_hasDefaultStateBackground === void 0 ? true : _param_hasDefaultStateBackground, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onMenuOpen = param.onMenuOpen, onMenuClose = param.onMenuClose;
|
|
26163
26256
|
var classes = useStyles$f({
|
|
26164
26257
|
theme: tweakStyles
|
|
26165
26258
|
});
|
|
@@ -26484,7 +26577,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
26484
26577
|
return _array_like_to_array$6(o, minLen);
|
|
26485
26578
|
}
|
|
26486
26579
|
function MultiSelect(param) {
|
|
26487
|
-
var value = param.value, _param_corners = param.corners, corners = _param_corners === void 0 ? "full" : _param_corners,
|
|
26580
|
+
var value = param.value, _param_corners = param.corners, corners = _param_corners === void 0 ? "full" : _param_corners, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, localeKey = param.localeKey, locale2 = param.locale, testId = param.testId, data = param.data, onChange = param.onChange, fetchOptions = param.fetchOptions, tweakStyles = param.tweakStyles;
|
|
26488
26581
|
var classes = useStyles$d({
|
|
26489
26582
|
theme: tweakStyles
|
|
26490
26583
|
});
|
|
@@ -27438,7 +27531,7 @@ function _object_spread_props$a(target, source) {
|
|
|
27438
27531
|
return target;
|
|
27439
27532
|
}
|
|
27440
27533
|
function RadioButton(param) {
|
|
27441
|
-
var children = param.children, value = param.value, groupName = param.groupName, isChecked = param.isChecked,
|
|
27534
|
+
var children = param.children, value = param.value, groupName = param.groupName, isChecked = param.isChecked, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
27442
27535
|
var classes = useStyles$9({
|
|
27443
27536
|
theme: tweakStyles
|
|
27444
27537
|
});
|
|
@@ -28032,7 +28125,7 @@ var SmartInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
28032
28125
|
var getUpperCaseIfNeeded = function getUpperCaseIfNeeded2(str) {
|
|
28033
28126
|
return isUpperCase ? str.toUpperCase() : str;
|
|
28034
28127
|
};
|
|
28035
|
-
var onChange = _param.onChange,
|
|
28128
|
+
var onChange = _param.onChange, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, maxLength = _param.maxLength, rest = _object_without_properties$1(_param, [
|
|
28036
28129
|
"onChange",
|
|
28037
28130
|
"isUpperCase",
|
|
28038
28131
|
"smartType",
|
|
@@ -28445,7 +28538,7 @@ function _object_spread_props$6(target, source) {
|
|
|
28445
28538
|
return target;
|
|
28446
28539
|
}
|
|
28447
28540
|
var Switch = function(param) {
|
|
28448
|
-
var
|
|
28541
|
+
var _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, value = param.value, children = param.children, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, _param_color = param.color, color = _param_color === void 0 ? "primary" : _param_color, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, onChange = param.onChange;
|
|
28449
28542
|
var classes = useStyles$6({
|
|
28450
28543
|
theme: tweakStyles
|
|
28451
28544
|
});
|
|
@@ -28728,7 +28821,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
28728
28821
|
}
|
|
28729
28822
|
var DEFAULT_VALUE = "";
|
|
28730
28823
|
var TextArea = function(param) {
|
|
28731
|
-
var _param_value = param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = param.label, placeholder = param.placeholder, isDisabled = param.isDisabled, _param_hasFloatingLabel = param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, infoMessage = param.infoMessage, errorMessage = param.errorMessage,
|
|
28824
|
+
var _param_value = param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = param.label, placeholder = param.placeholder, isDisabled = param.isDisabled, _param_hasFloatingLabel = param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, infoMessage = param.infoMessage, errorMessage = param.errorMessage, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, name = param.name, _param_hasRequiredLabel = param.hasRequiredLabel, hasRequiredLabel = _param_hasRequiredLabel === void 0 ? false : _param_hasRequiredLabel, _param_shouldFocusOnMount = param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, _param_hasCounter = param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, _param_shouldTrimAfterMaxLength = param.shouldTrimAfterMaxLength, shouldTrimAfterMaxLength = _param_shouldTrimAfterMaxLength === void 0 ? false : _param_shouldTrimAfterMaxLength, maxLength = param.maxLength, rows = param.rows, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onChange = param.onChange, onPaste = param.onPaste, onFocus = param.onFocus, onBlur = param.onBlur;
|
|
28732
28825
|
var classes = useStyles$5({
|
|
28733
28826
|
theme: tweakStyles
|
|
28734
28827
|
});
|
|
@@ -29312,7 +29405,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
29312
29405
|
return _array_like_to_array(o, minLen);
|
|
29313
29406
|
}
|
|
29314
29407
|
var TextWithTooltip = function(param) {
|
|
29315
|
-
var children = param.children, tooltipText = param.tooltipText, _param_tooltipPosition = param.tooltipPosition, tooltipPosition = _param_tooltipPosition === void 0 ? "top" : _param_tooltipPosition, _param_tooltipView = param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView,
|
|
29408
|
+
var children = param.children, tooltipText = param.tooltipText, _param_tooltipPosition = param.tooltipPosition, tooltipPosition = _param_tooltipPosition === void 0 ? "top" : _param_tooltipPosition, _param_tooltipView = param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_tooltipModifiers = param.tooltipModifiers, tooltipModifiers = _param_tooltipModifiers === void 0 ? [] : _param_tooltipModifiers, tooltipOffsetOptions = param.tooltipOffsetOptions, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_mouseEventType = param.mouseEventType, mouseEventType = _param_mouseEventType === void 0 ? "hover" : _param_mouseEventType, hoverDelay = param.hoverDelay, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles;
|
|
29316
29409
|
var classes = useStyles$2({
|
|
29317
29410
|
theme: tweakStyles
|
|
29318
29411
|
});
|