@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
|
@@ -8425,7 +8425,7 @@
|
|
|
8425
8425
|
return target;
|
|
8426
8426
|
}
|
|
8427
8427
|
var AddButton = function(param) {
|
|
8428
|
-
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type,
|
|
8428
|
+
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;
|
|
8429
8429
|
var classes = useStyles$M({
|
|
8430
8430
|
theme: tweakStyles
|
|
8431
8431
|
});
|
|
@@ -9092,19 +9092,19 @@
|
|
|
9092
9092
|
return _array_like_to_array$n(o, minLen);
|
|
9093
9093
|
}
|
|
9094
9094
|
function Checkbox(param) {
|
|
9095
|
-
var children = param.children,
|
|
9095
|
+
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;
|
|
9096
9096
|
var classes = useStyles$H({
|
|
9097
9097
|
theme: tweakStyles
|
|
9098
9098
|
});
|
|
9099
9099
|
var _useState = _sliced_to_array$n(React.useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
9100
9100
|
var hasAction = !isDisabled && !isReadonly;
|
|
9101
9101
|
var onToggle = function() {
|
|
9102
|
-
var
|
|
9102
|
+
var isSelectedNext = !isSelected;
|
|
9103
9103
|
onSelect({
|
|
9104
9104
|
value,
|
|
9105
|
-
isSelected:
|
|
9105
|
+
isSelected: isSelectedNext
|
|
9106
9106
|
});
|
|
9107
|
-
setIsSelected(
|
|
9107
|
+
setIsSelected(isSelectedNext);
|
|
9108
9108
|
};
|
|
9109
9109
|
React.useEffect(function() {
|
|
9110
9110
|
setIsSelected(isChecked);
|
|
@@ -9799,6 +9799,38 @@
|
|
|
9799
9799
|
}
|
|
9800
9800
|
return target;
|
|
9801
9801
|
}
|
|
9802
|
+
function _object_without_properties$b(source, excluded) {
|
|
9803
|
+
if (source == null)
|
|
9804
|
+
return {};
|
|
9805
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
9806
|
+
var key, i;
|
|
9807
|
+
if (Object.getOwnPropertySymbols) {
|
|
9808
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
9809
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
9810
|
+
key = sourceSymbolKeys[i];
|
|
9811
|
+
if (excluded.indexOf(key) >= 0)
|
|
9812
|
+
continue;
|
|
9813
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
9814
|
+
continue;
|
|
9815
|
+
target[key] = source[key];
|
|
9816
|
+
}
|
|
9817
|
+
}
|
|
9818
|
+
return target;
|
|
9819
|
+
}
|
|
9820
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
9821
|
+
if (source == null)
|
|
9822
|
+
return {};
|
|
9823
|
+
var target = {};
|
|
9824
|
+
var sourceKeys = Object.keys(source);
|
|
9825
|
+
var key, i;
|
|
9826
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
9827
|
+
key = sourceKeys[i];
|
|
9828
|
+
if (excluded.indexOf(key) >= 0)
|
|
9829
|
+
continue;
|
|
9830
|
+
target[key] = source[key];
|
|
9831
|
+
}
|
|
9832
|
+
return target;
|
|
9833
|
+
}
|
|
9802
9834
|
function _sliced_to_array$l(arr, i) {
|
|
9803
9835
|
return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$l();
|
|
9804
9836
|
}
|
|
@@ -9917,8 +9949,44 @@
|
|
|
9917
9949
|
};
|
|
9918
9950
|
}
|
|
9919
9951
|
};
|
|
9920
|
-
var Input = /* @__PURE__ */ React.forwardRef(function(
|
|
9921
|
-
var _param_value =
|
|
9952
|
+
var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9953
|
+
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, [
|
|
9954
|
+
"value",
|
|
9955
|
+
"label",
|
|
9956
|
+
"placeholder",
|
|
9957
|
+
"type",
|
|
9958
|
+
"isDisabled",
|
|
9959
|
+
"isReadonly",
|
|
9960
|
+
"hasFloatingLabel",
|
|
9961
|
+
"isInvalid",
|
|
9962
|
+
"isActive",
|
|
9963
|
+
"isClearable",
|
|
9964
|
+
"infoMessage",
|
|
9965
|
+
"errorMessage",
|
|
9966
|
+
"errorPosition",
|
|
9967
|
+
"inlineStyle",
|
|
9968
|
+
"border",
|
|
9969
|
+
"isRequired",
|
|
9970
|
+
"isLoading",
|
|
9971
|
+
"isAutoSizeable",
|
|
9972
|
+
"defaultSize",
|
|
9973
|
+
"iconType",
|
|
9974
|
+
"hasRequiredLabel",
|
|
9975
|
+
"data",
|
|
9976
|
+
"tweakStyles",
|
|
9977
|
+
"shouldFocusOnMount",
|
|
9978
|
+
"units",
|
|
9979
|
+
"testId",
|
|
9980
|
+
"onChange",
|
|
9981
|
+
"onFocus",
|
|
9982
|
+
"onBlur",
|
|
9983
|
+
"onIconClick",
|
|
9984
|
+
"mask",
|
|
9985
|
+
"maskPlaceholder",
|
|
9986
|
+
"alwaysShowMask",
|
|
9987
|
+
"shouldAlwaysShowPlaceholder",
|
|
9988
|
+
"beforeMaskedStateChange"
|
|
9989
|
+
]);
|
|
9922
9990
|
var classes = useStyles$D({
|
|
9923
9991
|
theme: tweakStyles
|
|
9924
9992
|
});
|
|
@@ -9973,24 +10041,19 @@
|
|
|
9973
10041
|
var hasPlaceholder = (!hasLabel || hasFocus && !isReadonly || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
9974
10042
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
9975
10043
|
var _obj;
|
|
9976
|
-
var props = _object_spread$H({
|
|
10044
|
+
var props = _object_spread_props$A(_object_spread$H({}, inputProps, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
9977
10045
|
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)),
|
|
9978
10046
|
onFocus: handleFocus,
|
|
9979
10047
|
onBlur: handleBlur,
|
|
9980
10048
|
onChange: handleChange,
|
|
9981
|
-
onKeyDown,
|
|
9982
|
-
onPaste,
|
|
9983
10049
|
value,
|
|
9984
10050
|
type,
|
|
9985
10051
|
disabled: isDisabled,
|
|
9986
10052
|
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
9987
|
-
name,
|
|
9988
|
-
maxLength,
|
|
9989
10053
|
autoFocus: shouldFocusOnMount,
|
|
9990
10054
|
readOnly: isReadonly,
|
|
9991
|
-
size: isAutoSizeable ? defaultSize : void 0
|
|
9992
|
-
|
|
9993
|
-
}, trueReactPlatformHelpers.addDataTestId(testId));
|
|
10055
|
+
size: isAutoSizeable ? defaultSize : void 0
|
|
10056
|
+
});
|
|
9994
10057
|
var _obj1, _obj2;
|
|
9995
10058
|
return /* @__PURE__ */ jsxs("div", {
|
|
9996
10059
|
className: classes.root,
|
|
@@ -10161,7 +10224,7 @@
|
|
|
10161
10224
|
return target;
|
|
10162
10225
|
}
|
|
10163
10226
|
var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10164
|
-
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,
|
|
10227
|
+
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, [
|
|
10165
10228
|
"date",
|
|
10166
10229
|
"startDate",
|
|
10167
10230
|
"endDate",
|
|
@@ -12143,7 +12206,7 @@
|
|
|
12143
12206
|
return _array_like_to_array$j(o, minLen);
|
|
12144
12207
|
}
|
|
12145
12208
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
12146
|
-
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,
|
|
12209
|
+
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, [
|
|
12147
12210
|
"data",
|
|
12148
12211
|
"selectedDate",
|
|
12149
12212
|
"minDate",
|
|
@@ -24561,6 +24624,10 @@
|
|
|
24561
24624
|
*/
|
|
24562
24625
|
maxHeight: "100%"
|
|
24563
24626
|
},
|
|
24627
|
+
head: {},
|
|
24628
|
+
body: {},
|
|
24629
|
+
loaderRow: {},
|
|
24630
|
+
loaderCell: {},
|
|
24564
24631
|
loader: {
|
|
24565
24632
|
position: "sticky",
|
|
24566
24633
|
left: 0,
|
|
@@ -24628,6 +24695,9 @@
|
|
|
24628
24695
|
headerSecond: {
|
|
24629
24696
|
paddingLeft: STICKY_SHADOW_PADDING
|
|
24630
24697
|
},
|
|
24698
|
+
nothingFoundRow: {},
|
|
24699
|
+
nothingFound: {},
|
|
24700
|
+
skeletonRow: {},
|
|
24631
24701
|
skeleton: {
|
|
24632
24702
|
height: 21,
|
|
24633
24703
|
padding: [
|
|
@@ -24730,15 +24800,16 @@
|
|
|
24730
24800
|
return obj;
|
|
24731
24801
|
}
|
|
24732
24802
|
function FlexibleTableCell(param) {
|
|
24733
|
-
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;
|
|
24803
|
+
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;
|
|
24734
24804
|
var classes = useStyles$j({
|
|
24735
24805
|
theme: tweakStyles
|
|
24736
24806
|
});
|
|
24737
24807
|
var _config_columnName;
|
|
24738
24808
|
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;
|
|
24739
24809
|
var value = item[columnName];
|
|
24810
|
+
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24740
24811
|
var _obj;
|
|
24741
|
-
return /* @__PURE__ */ jsx(
|
|
24812
|
+
return /* @__PURE__ */ jsx(TableCell, {
|
|
24742
24813
|
className: clsx(classes.root, (_obj = {}, _define_property$l(_obj, classes.sticky, isSticky), _define_property$l(_obj, classes.second, isSecond), _obj)),
|
|
24743
24814
|
style: {
|
|
24744
24815
|
textAlign: cellAlign,
|
|
@@ -24769,7 +24840,8 @@
|
|
|
24769
24840
|
},
|
|
24770
24841
|
clickable: {
|
|
24771
24842
|
cursor: "pointer"
|
|
24772
|
-
}
|
|
24843
|
+
},
|
|
24844
|
+
nestedComponent: {}
|
|
24773
24845
|
});
|
|
24774
24846
|
function _array_like_to_array$9(arr, len) {
|
|
24775
24847
|
if (len == null || len > arr.length)
|
|
@@ -24882,7 +24954,7 @@
|
|
|
24882
24954
|
return _array_like_to_array$9(o, minLen);
|
|
24883
24955
|
}
|
|
24884
24956
|
function FlexibleTableRowInner(param) {
|
|
24885
|
-
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;
|
|
24957
|
+
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;
|
|
24886
24958
|
var classes = useStyles$i({
|
|
24887
24959
|
theme: tweakStyles
|
|
24888
24960
|
});
|
|
@@ -24940,10 +25012,12 @@
|
|
|
24940
25012
|
};
|
|
24941
25013
|
var items = enabledColumns !== null && enabledColumns !== void 0 ? enabledColumns : Object.keys(config);
|
|
24942
25014
|
var isEditable = trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(onRowHover);
|
|
25015
|
+
var TableRow = renderMode === "divs" ? "div" : "tr";
|
|
25016
|
+
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24943
25017
|
var _obj;
|
|
24944
25018
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
24945
25019
|
children: [
|
|
24946
|
-
/* @__PURE__ */ jsx(
|
|
25020
|
+
/* @__PURE__ */ jsx(TableRow, _object_spread_props$i(_object_spread$j({
|
|
24947
25021
|
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, trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(expandableRowComponent)), _obj)),
|
|
24948
25022
|
onMouseEnter: function(e) {
|
|
24949
25023
|
if (uniqueField !== void 0 && onRowHover !== void 0) {
|
|
@@ -24967,6 +25041,7 @@
|
|
|
24967
25041
|
item,
|
|
24968
25042
|
config,
|
|
24969
25043
|
tweakStyles: tweakTableCellStyles,
|
|
25044
|
+
renderMode,
|
|
24970
25045
|
isFocusedRow: isFocused,
|
|
24971
25046
|
isNestedComponentExpanded: nestedComponent.isOpen && nestedComponent.cellKey === key,
|
|
24972
25047
|
isRowNestedComponentExpanded: nestedComponent.isOpen && nestedComponent.cellKey === void 0,
|
|
@@ -24976,9 +25051,10 @@
|
|
|
24976
25051
|
}, key);
|
|
24977
25052
|
})
|
|
24978
25053
|
})),
|
|
24979
|
-
nestedComponent.isOpen && /* @__PURE__ */ jsx(
|
|
25054
|
+
nestedComponent.isOpen && /* @__PURE__ */ jsx(TableRow, {
|
|
24980
25055
|
className: classes.root,
|
|
24981
|
-
children: /* @__PURE__ */ jsx(
|
|
25056
|
+
children: /* @__PURE__ */ jsx(TableCell, {
|
|
25057
|
+
className: classes.nestedComponent,
|
|
24982
25058
|
colSpan: items.length,
|
|
24983
25059
|
children: nestedComponent.component
|
|
24984
25060
|
})
|
|
@@ -25040,7 +25116,7 @@
|
|
|
25040
25116
|
return target;
|
|
25041
25117
|
}
|
|
25042
25118
|
function FlexibleTable(param) {
|
|
25043
|
-
var data = param.data, tweakStyles = param.tweakStyles, content = param.content, headerContent = param.headerContent, config = param.config, activeRows = param.activeRows, enabledColumns = param.enabledColumns,
|
|
25119
|
+
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;
|
|
25044
25120
|
var classes = useStyles$k({
|
|
25045
25121
|
theme: tweakStyles
|
|
25046
25122
|
});
|
|
@@ -25076,6 +25152,7 @@
|
|
|
25076
25152
|
}), [
|
|
25077
25153
|
getDataScrollAttributeSetter
|
|
25078
25154
|
]);
|
|
25155
|
+
var shouldShowNothingFound = !trueReactPlatformHelpers.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);
|
|
25079
25156
|
var ref = useMergedRefs([
|
|
25080
25157
|
refForScroll,
|
|
25081
25158
|
scrollRef,
|
|
@@ -25126,16 +25203,25 @@
|
|
|
25126
25203
|
setIsScrolledAttribute,
|
|
25127
25204
|
setHasScrollBarAttribute
|
|
25128
25205
|
]);
|
|
25206
|
+
var Table = renderMode === "divs" ? "div" : "table";
|
|
25207
|
+
var TableHead = renderMode === "divs" ? "div" : "thead";
|
|
25208
|
+
var TableBody = renderMode === "divs" ? "div" : "tbody";
|
|
25209
|
+
var TableRow = renderMode === "divs" ? "div" : "tr";
|
|
25210
|
+
var TableHeader = renderMode === "divs" ? "div" : "th";
|
|
25211
|
+
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
25129
25212
|
var _activeRows_includes;
|
|
25130
25213
|
return /* @__PURE__ */ jsx("div", {
|
|
25131
25214
|
ref,
|
|
25132
25215
|
className: clsx(_define_property$j({}, classes.scroll, isHorizontallyScrollable)),
|
|
25133
|
-
children: /* @__PURE__ */ jsxs(
|
|
25216
|
+
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$h(_object_spread$i({
|
|
25134
25217
|
className: classes.root
|
|
25135
|
-
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)
|
|
25218
|
+
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$h(_object_spread$i({}, data), {
|
|
25219
|
+
isLoading
|
|
25220
|
+
}))), {
|
|
25136
25221
|
children: [
|
|
25137
|
-
/* @__PURE__ */ jsx(
|
|
25138
|
-
|
|
25222
|
+
/* @__PURE__ */ jsx(TableHead, {
|
|
25223
|
+
className: classes.head,
|
|
25224
|
+
children: /* @__PURE__ */ jsx(TableRow, {
|
|
25139
25225
|
className: classes.headerRow,
|
|
25140
25226
|
children: showedColumns.map(function(key, i) {
|
|
25141
25227
|
var itemConfig = config === null || config === void 0 ? void 0 : config[key];
|
|
@@ -25149,7 +25235,7 @@
|
|
|
25149
25235
|
}
|
|
25150
25236
|
var _itemConfig_titleAlign;
|
|
25151
25237
|
var _obj;
|
|
25152
|
-
return /* @__PURE__ */ jsx(
|
|
25238
|
+
return /* @__PURE__ */ jsx(TableHeader, {
|
|
25153
25239
|
className: clsx(classes.header, (_obj = {}, _define_property$j(_obj, classes.headerSticky, isFirstColumnSticky && i === 0), _define_property$j(_obj, classes.headerSecond, isFirstColumnSticky && i === 1), _obj)),
|
|
25154
25240
|
style: {
|
|
25155
25241
|
minWidth: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.minWidth,
|
|
@@ -25165,11 +25251,13 @@
|
|
|
25165
25251
|
})
|
|
25166
25252
|
})
|
|
25167
25253
|
}),
|
|
25168
|
-
/* @__PURE__ */ jsx(
|
|
25254
|
+
/* @__PURE__ */ jsx(TableBody, {
|
|
25255
|
+
className: classes.body,
|
|
25169
25256
|
children: isLoading ? trueReactPlatformHelpers.indexMap(6, function(i) {
|
|
25170
|
-
return /* @__PURE__ */ jsx(
|
|
25257
|
+
return /* @__PURE__ */ jsx(TableRow, {
|
|
25258
|
+
className: classes.skeletonRow,
|
|
25171
25259
|
children: showedColumns.map(function(_, j) {
|
|
25172
|
-
return /* @__PURE__ */ jsx(
|
|
25260
|
+
return /* @__PURE__ */ jsx(TableCell, {
|
|
25173
25261
|
className: classes.skeleton,
|
|
25174
25262
|
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
25175
25263
|
}, j);
|
|
@@ -25177,8 +25265,10 @@
|
|
|
25177
25265
|
}, i);
|
|
25178
25266
|
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
25179
25267
|
children: [
|
|
25180
|
-
|
|
25181
|
-
|
|
25268
|
+
shouldShowNothingFound && /* @__PURE__ */ jsx(TableRow, {
|
|
25269
|
+
className: classes.nothingFoundRow,
|
|
25270
|
+
children: /* @__PURE__ */ jsx(TableCell, {
|
|
25271
|
+
className: classes.nothingFound,
|
|
25182
25272
|
colSpan: showedColumns.length,
|
|
25183
25273
|
children: nothingFoundContent
|
|
25184
25274
|
})
|
|
@@ -25194,12 +25284,15 @@
|
|
|
25194
25284
|
enabledColumns,
|
|
25195
25285
|
config,
|
|
25196
25286
|
rowAttributes,
|
|
25287
|
+
renderMode,
|
|
25197
25288
|
tweakStyles: tweakTableRowStyles,
|
|
25198
25289
|
expandableRowComponent
|
|
25199
25290
|
}, trueReactPlatformHelpers.isNotEmpty(uniqueField) ? item[uniqueField] : i);
|
|
25200
25291
|
}),
|
|
25201
|
-
infinityScrollConfig !== void 0 && !infinityScrollConfig.isLastPage && /* @__PURE__ */ jsx(
|
|
25202
|
-
|
|
25292
|
+
infinityScrollConfig !== void 0 && !infinityScrollConfig.isLastPage && /* @__PURE__ */ jsx(TableRow, {
|
|
25293
|
+
className: classes.loaderRow,
|
|
25294
|
+
children: /* @__PURE__ */ jsx(TableCell, {
|
|
25295
|
+
className: classes.loaderCell,
|
|
25203
25296
|
colSpan: showedColumns.length,
|
|
25204
25297
|
children: /* @__PURE__ */ jsx("div", {
|
|
25205
25298
|
ref: initIntersectionObserver,
|
|
@@ -25851,7 +25944,7 @@
|
|
|
25851
25944
|
return _array_like_to_array$8(o, minLen);
|
|
25852
25945
|
}
|
|
25853
25946
|
var Modal = function(_param) {
|
|
25854
|
-
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size,
|
|
25947
|
+
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, [
|
|
25855
25948
|
"data",
|
|
25856
25949
|
"tweakStyles",
|
|
25857
25950
|
"title",
|
|
@@ -26149,7 +26242,7 @@
|
|
|
26149
26242
|
return _array_like_to_array$7(o, minLen);
|
|
26150
26243
|
}
|
|
26151
26244
|
var MoreMenu = function(param) {
|
|
26152
|
-
var items = param.items,
|
|
26245
|
+
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;
|
|
26153
26246
|
var classes = useStyles$f({
|
|
26154
26247
|
theme: tweakStyles
|
|
26155
26248
|
});
|
|
@@ -26474,7 +26567,7 @@
|
|
|
26474
26567
|
return _array_like_to_array$6(o, minLen);
|
|
26475
26568
|
}
|
|
26476
26569
|
function MultiSelect(param) {
|
|
26477
|
-
var value = param.value, _param_corners = param.corners, corners = _param_corners === void 0 ? "full" : _param_corners,
|
|
26570
|
+
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;
|
|
26478
26571
|
var classes = useStyles$d({
|
|
26479
26572
|
theme: tweakStyles
|
|
26480
26573
|
});
|
|
@@ -27428,7 +27521,7 @@
|
|
|
27428
27521
|
return target;
|
|
27429
27522
|
}
|
|
27430
27523
|
function RadioButton(param) {
|
|
27431
|
-
var children = param.children, value = param.value, groupName = param.groupName, isChecked = param.isChecked,
|
|
27524
|
+
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;
|
|
27432
27525
|
var classes = useStyles$9({
|
|
27433
27526
|
theme: tweakStyles
|
|
27434
27527
|
});
|
|
@@ -28022,7 +28115,7 @@
|
|
|
28022
28115
|
var getUpperCaseIfNeeded = function getUpperCaseIfNeeded2(str) {
|
|
28023
28116
|
return isUpperCase ? str.toUpperCase() : str;
|
|
28024
28117
|
};
|
|
28025
|
-
var onChange = _param.onChange,
|
|
28118
|
+
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, [
|
|
28026
28119
|
"onChange",
|
|
28027
28120
|
"isUpperCase",
|
|
28028
28121
|
"smartType",
|
|
@@ -28435,7 +28528,7 @@
|
|
|
28435
28528
|
return target;
|
|
28436
28529
|
}
|
|
28437
28530
|
var Switch = function(param) {
|
|
28438
|
-
var
|
|
28531
|
+
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;
|
|
28439
28532
|
var classes = useStyles$6({
|
|
28440
28533
|
theme: tweakStyles
|
|
28441
28534
|
});
|
|
@@ -28718,7 +28811,7 @@
|
|
|
28718
28811
|
}
|
|
28719
28812
|
var DEFAULT_VALUE = "";
|
|
28720
28813
|
var TextArea = function(param) {
|
|
28721
|
-
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,
|
|
28814
|
+
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;
|
|
28722
28815
|
var classes = useStyles$5({
|
|
28723
28816
|
theme: tweakStyles
|
|
28724
28817
|
});
|
|
@@ -29302,7 +29395,7 @@
|
|
|
29302
29395
|
return _array_like_to_array(o, minLen);
|
|
29303
29396
|
}
|
|
29304
29397
|
var TextWithTooltip = function(param) {
|
|
29305
|
-
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,
|
|
29398
|
+
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;
|
|
29306
29399
|
var classes = useStyles$2({
|
|
29307
29400
|
theme: tweakStyles
|
|
29308
29401
|
});
|