@widergy/energy-ui 3.22.3 → 3.22.4
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/CHANGELOG.md +7 -0
- package/dist/components/Loading/index.js +2 -2
- package/dist/components/UTActionCard/components/AdditionalMessage/index.js +1 -1
- package/dist/components/UTActionCard/components/BottomActions/index.js +3 -3
- package/dist/components/UTActionCard/components/Header/index.js +3 -3
- package/dist/components/UTActionCard/components/Header/utils.js +2 -2
- package/dist/components/UTActionCard/components/HeaderActions/index.js +5 -4
- package/dist/components/UTActionCard/components/HeaderActions/utils.js +2 -2
- package/dist/components/UTActionCard/index.js +6 -6
- package/dist/components/UTAlert/index.js +2 -2
- package/dist/components/UTAlert/theme.js +5 -4
- package/dist/components/UTAttachment/components/Preview/index.js +3 -3
- package/dist/components/UTAttachment/index.js +7 -5
- package/dist/components/UTAttachment/layout.js +2 -2
- package/dist/components/UTAttachment/utils.js +9 -8
- package/dist/components/UTAttachmentList/components/Preview/index.js +3 -3
- package/dist/components/UTAttachmentList/components/PreviewModal/index.js +3 -3
- package/dist/components/UTAttachmentList/index.js +14 -11
- package/dist/components/UTAttachmentList/layout.js +5 -5
- package/dist/components/UTAttachmentList/theme.js +9 -8
- package/dist/components/UTAttachmentList/utils.js +10 -9
- package/dist/components/UTAutocomplete/components/ListBox/utils.js +1 -1
- package/dist/components/UTAutocomplete/index.js +2 -2
- package/dist/components/UTAutocomplete/theme.js +52 -50
- package/dist/components/UTBadge/index.js +1 -1
- package/dist/components/UTBadge/theme.js +2 -1
- package/dist/components/UTBanner/index.js +1 -1
- package/dist/components/UTBanner/theme.js +2 -1
- package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +5 -5
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +2 -2
- package/dist/components/UTBarChart/components/Bars/index.js +2 -2
- package/dist/components/UTBarChart/components/Legend/index.js +6 -6
- package/dist/components/UTBarChart/components/Pagination/index.js +2 -1
- package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +4 -3
- package/dist/components/UTBarChart/components/XAxis/index.js +2 -2
- package/dist/components/UTBarChart/components/YAxis/index.js +2 -1
- package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +5 -4
- package/dist/components/UTBarChart/index.js +3 -3
- package/dist/components/UTBarChart/theme.js +7 -6
- package/dist/components/UTBarChart/utils.js +26 -20
- package/dist/components/UTBreadcrumbs/index.js +3 -3
- package/dist/components/UTBreadcrumbs/theme.js +2 -1
- package/dist/components/UTButton/index.js +4 -8
- package/dist/components/UTButton/theme.js +18 -14
- package/dist/components/UTButton/utils.js +1 -6
- package/dist/components/UTButtonGroup/index.js +1 -1
- package/dist/components/UTButtonGroup/theme.js +2 -1
- package/dist/components/UTCard/components/UTCardFooter/index.js +2 -2
- package/dist/components/UTCard/index.js +4 -4
- package/dist/components/UTCard/theme.js +1 -1
- package/dist/components/UTCarousel/components/Button/index.js +2 -2
- package/dist/components/UTCarousel/components/Legend/index.js +1 -1
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +5 -5
- package/dist/components/UTCarousel/components/Slider/index.js +9 -8
- package/dist/components/UTCarousel/components/Slider/layout.js +6 -6
- package/dist/components/UTCheckList/index.js +5 -7
- package/dist/components/UTCheckList/theme.js +3 -2
- package/dist/components/UTCheckbox/index.js +4 -4
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +4 -4
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicatorTop/index.js +2 -2
- package/dist/components/UTConsumptionBar/index.js +8 -8
- package/dist/components/UTCuit/theme.js +6 -6
- package/dist/components/UTDatePicker/components/Day/index.js +1 -5
- package/dist/components/UTDatePicker/index.js +6 -5
- package/dist/components/UTDatePicker/theme.js +160 -157
- package/dist/components/UTDialog/index.js +8 -8
- package/dist/components/UTDialog/theme.js +2 -1
- package/dist/components/UTEmojiPicker/index.js +6 -11
- package/dist/components/UTEmojiPicker/theme.js +24 -23
- package/dist/components/UTExternalLink/index.js +1 -1
- package/dist/components/UTExternalLink/theme.js +2 -1
- package/dist/components/UTFileInput/layout.js +5 -11
- package/dist/components/UTGoogleAutocomplete/theme.js +2 -1
- package/dist/components/UTHeader/index.js +5 -5
- package/dist/components/UTHeader/theme.js +3 -2
- package/dist/components/UTIcon/theme.js +11 -9
- package/dist/components/UTIconButton/index.js +2 -2
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +6 -6
- package/dist/components/UTImageRadio/index.js +3 -3
- package/dist/components/UTImageRadio/theme.js +14 -13
- package/dist/components/UTLabel/index.js +1 -1
- package/dist/components/UTLabel/theme.js +8 -6
- package/dist/components/UTList/index.js +1 -1
- package/dist/components/UTMap/components/GoogleMaps/styles.js +2 -2
- package/dist/components/UTMenu/index.js +3 -3
- package/dist/components/UTMenu/theme.js +31 -27
- package/dist/components/UTMenu/utils.js +1 -1
- package/dist/components/UTModal/index.js +5 -9
- package/dist/components/UTModal/theme.js +2 -1
- package/dist/components/UTOnboarding/index.js +24 -16
- package/dist/components/UTOnboarding/theme.js +14 -12
- package/dist/components/UTPagination/components/PageSizeSelector/index.js +2 -2
- package/dist/components/UTPagination/components/Pagination/components/NavigationButton/index.js +1 -4
- package/dist/components/UTPagination/components/Pagination/index.js +3 -3
- package/dist/components/UTPagination/index.js +2 -2
- package/dist/components/UTPagination/theme.js +10 -9
- package/dist/components/UTPanel/versions/V0/index.js +5 -5
- package/dist/components/UTPanel/versions/V1/components/DataItem/index.js +1 -1
- package/dist/components/UTPanel/versions/V1/index.js +6 -8
- package/dist/components/UTPanel/versions/V1/theme.js +1 -1
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +1 -1
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +2 -2
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +2 -2
- package/dist/components/UTPasswordField/theme.js +6 -5
- package/dist/components/UTPhoneInput/index.js +11 -10
- package/dist/components/UTPhoneInput/theme.js +10 -10
- package/dist/components/UTPieChart/components/ArrowLabel/index.js +2 -2
- package/dist/components/UTPieChart/components/Legend/index.js +4 -4
- package/dist/components/UTPieChart/index.js +5 -5
- package/dist/components/UTProductItem/index.js +3 -3
- package/dist/components/UTProductItem/theme.js +4 -3
- package/dist/components/UTProgressBar/index.js +1 -1
- package/dist/components/UTProgressBar/theme.js +12 -11
- package/dist/components/UTRadioGroup/index.js +5 -11
- package/dist/components/UTRadioGroup/theme.js +17 -17
- package/dist/components/UTRating/components/Circle/index.js +5 -5
- package/dist/components/UTRating/components/Faces/index.js +4 -8
- package/dist/components/UTRating/components/Star/index.js +3 -3
- package/dist/components/UTRating/index.js +2 -2
- package/dist/components/UTRating/theme.js +21 -21
- package/dist/components/UTRipple/Ripple.js +2 -2
- package/dist/components/UTSelect/components/Option/index.js +1 -1
- package/dist/components/UTSelect/index.js +1 -1
- package/dist/components/UTSelect/theme.js +14 -14
- package/dist/components/UTSelectableCard/index.js +5 -9
- package/dist/components/UTSelectableCard/theme.js +20 -19
- package/dist/components/UTSidebar/components/ListOption/index.js +4 -1
- package/dist/components/UTSidebar/components/LogosContainer/index.js +3 -3
- package/dist/components/UTSidebar/components/Option/index.js +9 -31
- package/dist/components/UTSidebar/components/Toggler/index.js +2 -2
- package/dist/components/UTSidebar/index.js +3 -7
- package/dist/components/UTSidebar/theme.js +17 -16
- package/dist/components/UTSkeleton/index.js +3 -2
- package/dist/components/UTStatus/index.js +2 -2
- package/dist/components/UTStepper/components/Connectors/index.js +5 -7
- package/dist/components/UTStepper/components/Step/index.js +6 -16
- package/dist/components/UTStepper/index.js +1 -1
- package/dist/components/UTStepper/theme.js +12 -11
- package/dist/components/UTSwitch/index.js +6 -6
- package/dist/components/UTSwitch/theme.js +2 -2
- package/dist/components/UTTable/components/ActionIcons/index.js +3 -8
- package/dist/components/UTTable/components/Cell/components/ActionButton/index.js +2 -1
- package/dist/components/UTTable/components/Cell/index.js +2 -2
- package/dist/components/UTTable/components/HeaderCell/index.js +5 -16
- package/dist/components/UTTable/components/PrimaryAction/index.js +1 -1
- package/dist/components/UTTable/components/ResponsiveCell/index.js +4 -4
- package/dist/components/UTTable/components/Status/index.js +2 -2
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +2 -2
- package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +1 -6
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +2 -6
- package/dist/components/UTTable/components/TableFooter/index.js +1 -1
- package/dist/components/UTTable/components/TableHeader/index.js +3 -3
- package/dist/components/UTTable/components/TableRow/index.js +13 -42
- package/dist/components/UTTable/components/TableRow/utils.js +7 -1
- package/dist/components/UTTable/hook.js +4 -1
- package/dist/components/UTTable/index.js +19 -22
- package/dist/components/UTTable/theme.js +33 -32
- package/dist/components/UTTable/utils.js +14 -14
- package/dist/components/UTTabs/components/TooltipTab/index.js +1 -1
- package/dist/components/UTTabs/index.js +7 -7
- package/dist/components/UTTabs/theme.js +2 -2
- package/dist/components/UTTextArea/index.js +6 -6
- package/dist/components/UTTextArea/theme.js +22 -21
- package/dist/components/UTTextInput/index.js +6 -10
- package/dist/components/UTTextInput/theme.js +12 -12
- package/dist/components/UTToggle/components/ToggleOption/index.js +3 -3
- package/dist/components/UTToggle/index.js +2 -2
- package/dist/components/UTToggle/theme.js +2 -2
- package/dist/components/UTTooltip/index.js +2 -2
- package/dist/components/UTTooltip/theme.js +10 -9
- package/dist/components/UTTopbar/components/Notifications/index.js +1 -1
- package/dist/components/UTTopbar/components/UserMenu/index.js +4 -8
- package/dist/components/UTTopbar/index.js +3 -3
- package/dist/components/UTTopbar/theme.js +41 -40
- package/dist/components/UTTouchableWithoutFeedback/index.js +1 -1
- package/dist/components/UTTracker/components/Step/index.js +6 -22
- package/dist/components/UTTracker/index.js +23 -20
- package/dist/components/UTTracker/theme.js +6 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +5 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -3
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +1 -1
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +3 -2
- package/dist/components/UTVirtualizedList/index.js +1 -1
- package/dist/components/UTWizard/index.js +3 -3
- package/dist/components/UTWizard/theme.js +2 -2
- package/dist/components/UTWorkflowContainer/versions/V0/components/ActionButton/index.js +3 -6
- package/dist/components/UTWorkflowContainer/versions/V0/index.js +9 -14
- package/dist/components/UTWorkflowContainer/versions/V0/theme.js +5 -4
- package/dist/components/UTWorkflowContainer/versions/V1/components/NavActions/index.js +8 -8
- package/dist/components/UTWorkflowContainer/versions/V1/index.js +7 -7
- package/dist/components/UTWorkflowContainer/versions/V1/theme.js +7 -6
- package/dist/components/WithGoogleMaps/index.js +2 -2
- package/dist/components/WithTouch/index.js +1 -1
- package/dist/utils/classesUtils.js +2 -2
- package/dist/utils/componentUtils.js +3 -3
- package/dist/utils/shadowUtils.js +1 -1
- package/package.json +3 -2
|
@@ -162,7 +162,10 @@ const UTTable = _ref => {
|
|
|
162
162
|
};
|
|
163
163
|
const showPagination = !disablePagination && !loading && !(0, _array.isEmpty)(currentRows);
|
|
164
164
|
const rowStyles = (0, _react.useMemo)(() => (0, _utils.createRowStyles)(rowPadding, rowSpacing, headerPadding, isResponsive), [rowPadding, rowSpacing, headerPadding, isResponsive]);
|
|
165
|
-
const tableWidth = (0, _react.useMemo)(() =>
|
|
165
|
+
const tableWidth = (0, _react.useMemo)(() => {
|
|
166
|
+
var _entry$target;
|
|
167
|
+
return (entry === null || entry === void 0 || (_entry$target = entry.target) === null || _entry$target === void 0 ? void 0 : _entry$target.clientWidth) || '100%';
|
|
168
|
+
}, [entry]);
|
|
166
169
|
const handleScrollbarSync = ps => {
|
|
167
170
|
setTimeout(() => {
|
|
168
171
|
ps.update();
|
|
@@ -172,7 +175,8 @@ const UTTable = _ref => {
|
|
|
172
175
|
const CellComponent = isResponsive ? _ResponsiveCell.default : _Cell.default;
|
|
173
176
|
const totalRowLabel = isResponsive ? '' : totalRowsLabel || (data.length === 1 ? _constants.TOTAL_ROW_LABEL : _constants.TOTAL_ROWS_LABEL);
|
|
174
177
|
const handleSinchronizeContent = event => {
|
|
175
|
-
|
|
178
|
+
var _event$target;
|
|
179
|
+
if (contentRef.current && stickyHeader) contentRef.current.scrollTo(event === null || event === void 0 || (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.scrollLeft, 0);
|
|
176
180
|
};
|
|
177
181
|
const columnSizes = (0, _react.useMemo)(() => (0, _utils.getColumnsSizes)({
|
|
178
182
|
columns,
|
|
@@ -181,16 +185,16 @@ const UTTable = _ref => {
|
|
|
181
185
|
}), [columns, fitColumnsWidth, selectable]);
|
|
182
186
|
const Content = /*#__PURE__*/_react.default.createElement("div", {
|
|
183
187
|
ref: contentRef,
|
|
184
|
-
className:
|
|
188
|
+
className: "".concat((0, _array.isEmpty)(currentRows) && _stylesModule.default.preventScrolling),
|
|
185
189
|
style: {
|
|
186
190
|
overflow: !isResponsive && stickyHeader && 'hidden',
|
|
187
191
|
width: tableWidth
|
|
188
192
|
}
|
|
189
193
|
}, /*#__PURE__*/_react.default.createElement(_UTLoading.default, {
|
|
190
194
|
loading: loading,
|
|
191
|
-
className:
|
|
195
|
+
className: "".concat(_stylesModule.default.tableLoading, " ").concat(classes.tableLoading)
|
|
192
196
|
}, (0, _array.isEmpty)(currentRows) ? /*#__PURE__*/_react.default.createElement("div", {
|
|
193
|
-
className:
|
|
197
|
+
className: "".concat(_stylesModule.default.noResultsContainer, " ").concat(classes.noResultsContainer),
|
|
194
198
|
style: {
|
|
195
199
|
width: tableWidth
|
|
196
200
|
}
|
|
@@ -202,7 +206,7 @@ const UTTable = _ref => {
|
|
|
202
206
|
const isRowClickable = onRowClick && (!clickableRowValidation || clickableRowValidation(row));
|
|
203
207
|
const handleRowClick = isRowClickable ? event => onRowClick(event, row) : undefined;
|
|
204
208
|
return /*#__PURE__*/_react.default.createElement(_TableRow.default, {
|
|
205
|
-
key: row[rowKey] &&
|
|
209
|
+
key: row[rowKey] && "row_".concat(row[rowKey]),
|
|
206
210
|
CellComponent: CellComponent,
|
|
207
211
|
cellProps: {
|
|
208
212
|
defaultNullValue,
|
|
@@ -212,11 +216,7 @@ const UTTable = _ref => {
|
|
|
212
216
|
},
|
|
213
217
|
checkBoxOnChange: () => selectRow(row),
|
|
214
218
|
checkBoxSelected: isSelected,
|
|
215
|
-
className:
|
|
216
|
-
${isResponsive && _stylesModule.default.responsiveRow}
|
|
217
|
-
${isRowClickable && classes.rowContainerClickable}
|
|
218
|
-
${getRowClassName(row)}
|
|
219
|
-
`,
|
|
219
|
+
className: "\n ".concat(isResponsive && _stylesModule.default.responsiveRow, "\n ").concat(isRowClickable && classes.rowContainerClickable, "\n ").concat(getRowClassName(row), "\n "),
|
|
220
220
|
columnsDefinition: columnsDefinition,
|
|
221
221
|
columnSizes: columnSizes,
|
|
222
222
|
containerStyle: {
|
|
@@ -225,11 +225,11 @@ const UTTable = _ref => {
|
|
|
225
225
|
},
|
|
226
226
|
isResponsive: isResponsive,
|
|
227
227
|
exclusiveSelection: exclusiveSelection,
|
|
228
|
-
fixedRowsLeftClassName:
|
|
229
|
-
fixedRowsRightClassName:
|
|
228
|
+
fixedRowsLeftClassName: "".concat(classes.fixedRowLeft, " ").concat(selectedClassNames, " ").concat(isFirstRow(index) && classes.firstFixedRowLeft, " ").concat(isLastRow(index) && classes.lastFixedRowLeft),
|
|
229
|
+
fixedRowsRightClassName: "".concat(classes.fixedRowRight, " ").concat(selectedClassNames, " ").concat(isFirstRow(index) && classes.firstFixedRowRight, " ").concat(isLastRow(index) && classes.lastFixedRowRight),
|
|
230
230
|
handleRowClick: handleRowClick,
|
|
231
231
|
removeFixedRowsDivisors: removeFixedRowsDivisors,
|
|
232
|
-
rowClassName:
|
|
232
|
+
rowClassName: "".concat(classes.row, " ").concat(selectedClassNames, " ").concat(isLastRow(index) && classes.lastRow, " ").concat(isFirstRow(index) && classes.firstRow),
|
|
233
233
|
rowKey: rowKey,
|
|
234
234
|
rowStyles: rowStyles,
|
|
235
235
|
selectable: selectable,
|
|
@@ -250,9 +250,9 @@ const UTTable = _ref => {
|
|
|
250
250
|
removeDefaultOrderIcon
|
|
251
251
|
},
|
|
252
252
|
checkBoxOnChange: selectAllRows,
|
|
253
|
-
checkBoxClassName:
|
|
253
|
+
checkBoxClassName: "".concat(exclusiveSelection && _stylesModule.default.hideCheckBox),
|
|
254
254
|
checkBoxSelected: selectedAll,
|
|
255
|
-
className:
|
|
255
|
+
className: "".concat((0, _array.isEmpty)(currentRows) && _stylesModule.default.disableHeader),
|
|
256
256
|
columnsDefinition: columnsDefinition,
|
|
257
257
|
columnSizes: columnSizes,
|
|
258
258
|
containerStyle: {
|
|
@@ -274,7 +274,7 @@ const UTTable = _ref => {
|
|
|
274
274
|
});
|
|
275
275
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
276
276
|
ref: ref,
|
|
277
|
-
className:
|
|
277
|
+
className: "".concat(_stylesModule.default.table, " ").concat(classes.table)
|
|
278
278
|
}, (tableTitle || GeneralActions) && /*#__PURE__*/_react.default.createElement(_TableHeader.default, {
|
|
279
279
|
classes: classes,
|
|
280
280
|
title: tableTitle,
|
|
@@ -282,15 +282,12 @@ const UTTable = _ref => {
|
|
|
282
282
|
GeneralActions: GeneralActions,
|
|
283
283
|
disabled: disableReloadRows
|
|
284
284
|
}), Filters, !isResponsive && /*#__PURE__*/_react.default.createElement("div", {
|
|
285
|
-
className: stickyHeader &&
|
|
285
|
+
className: stickyHeader && "".concat(_stylesModule.default.stickyHeader, " ").concat(classes.stickyHeader || '')
|
|
286
286
|
}, /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, {
|
|
287
287
|
containerRef: el => scrollRef.current = el,
|
|
288
288
|
onSync: handleScrollbarSync,
|
|
289
289
|
onScroll: handleSinchronizeContent,
|
|
290
|
-
className:
|
|
291
|
-
${_stylesModule.default.scrollbar}
|
|
292
|
-
${classes.scrollbar}
|
|
293
|
-
${loading && _stylesModule.default.disableHeader}`,
|
|
290
|
+
className: "\n ".concat(_stylesModule.default.scrollbar, "\n ").concat(classes.scrollbar, "\n ").concat(loading && _stylesModule.default.disableHeader),
|
|
294
291
|
options: {
|
|
295
292
|
suppressScrollY: true,
|
|
296
293
|
suppressScrollX: fitColumnsWidth
|
|
@@ -9,6 +9,7 @@ var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.
|
|
|
9
9
|
var _classesUtils = require("../../utils/classesUtils");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const retrieveStyle = _ref => {
|
|
12
|
+
var _theme$UTTable, _theme$UTTable2, _theme$UTTable3, _theme$UTTable4, _theme$UTTable5, _theme$UTTable6, _theme$UTTable7, _theme$UTTable8, _theme$UTTable9, _theme$UTTable10, _theme$UTTable11, _theme$UTTable12, _theme$UTTable13, _theme$UTTable14, _theme$UTTable15, _theme$UTTable16, _theme$UTTable17, _theme$UTTable18, _theme$UTTable19, _theme$UTTable20, _theme$UTTable21, _theme$UTTable22, _theme$UTTable23, _theme$UTTable24, _theme$UTTable25, _theme$UTTable26, _theme$UTTable27, _theme$Palette$action, _theme$Palette$action2, _theme$Palette$action3;
|
|
12
13
|
let {
|
|
13
14
|
theme
|
|
14
15
|
} = _ref;
|
|
@@ -52,15 +53,15 @@ const retrieveStyle = _ref => {
|
|
|
52
53
|
}
|
|
53
54
|
},
|
|
54
55
|
headerCellCategoryName: {
|
|
55
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
56
|
-
fontSize: (0, _classesUtils.withImportant)(theme
|
|
57
|
-
fontWeight: (0, _classesUtils.withImportant)(theme
|
|
56
|
+
color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable = theme.UTTable) === null || _theme$UTTable === void 0 || (_theme$UTTable = _theme$UTTable.headerCellCategoryName) === null || _theme$UTTable === void 0 ? void 0 : _theme$UTTable.color),
|
|
57
|
+
fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTTable2 = theme.UTTable) === null || _theme$UTTable2 === void 0 || (_theme$UTTable2 = _theme$UTTable2.headerCellCategoryName) === null || _theme$UTTable2 === void 0 ? void 0 : _theme$UTTable2.fontSize) || '12px'),
|
|
58
|
+
fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable3 = theme.UTTable) === null || _theme$UTTable3 === void 0 || (_theme$UTTable3 = _theme$UTTable3.headerCellCategoryName) === null || _theme$UTTable3 === void 0 ? void 0 : _theme$UTTable3.fontWeight),
|
|
58
59
|
marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerCellCategoryName', 'marginBottom'], 5)
|
|
59
60
|
},
|
|
60
61
|
headerCellUnit: {
|
|
61
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
62
|
-
fontSize: (0, _classesUtils.withImportant)(theme
|
|
63
|
-
fontWeight: (0, _classesUtils.withImportant)(theme
|
|
62
|
+
color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable4 = theme.UTTable) === null || _theme$UTTable4 === void 0 || (_theme$UTTable4 = _theme$UTTable4.headerCellUnit) === null || _theme$UTTable4 === void 0 ? void 0 : _theme$UTTable4.color),
|
|
63
|
+
fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTTable5 = theme.UTTable) === null || _theme$UTTable5 === void 0 || (_theme$UTTable5 = _theme$UTTable5.headerCellUnit) === null || _theme$UTTable5 === void 0 ? void 0 : _theme$UTTable5.fontSize) || '14px'),
|
|
64
|
+
fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable6 = theme.UTTable) === null || _theme$UTTable6 === void 0 || (_theme$UTTable6 = _theme$UTTable6.headerCellUnit) === null || _theme$UTTable6 === void 0 ? void 0 : _theme$UTTable6.fontWeight)
|
|
64
65
|
},
|
|
65
66
|
orderIcon: {
|
|
66
67
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'orderIcon', 'color'])
|
|
@@ -106,12 +107,12 @@ const retrieveStyle = _ref => {
|
|
|
106
107
|
borderStyle: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'row', 'borderStyle'], 'solid')
|
|
107
108
|
},
|
|
108
109
|
firstRow: {
|
|
109
|
-
borderTopLeftRadius: (0, _classesUtils.withImportant)(theme
|
|
110
|
-
borderTopRightRadius: (0, _classesUtils.withImportant)(theme
|
|
110
|
+
borderTopLeftRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable7 = theme.UTTable) === null || _theme$UTTable7 === void 0 || (_theme$UTTable7 = _theme$UTTable7.table) === null || _theme$UTTable7 === void 0 ? void 0 : _theme$UTTable7.borderRadius),
|
|
111
|
+
borderTopRightRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable8 = theme.UTTable) === null || _theme$UTTable8 === void 0 || (_theme$UTTable8 = _theme$UTTable8.table) === null || _theme$UTTable8 === void 0 ? void 0 : _theme$UTTable8.borderRadius)
|
|
111
112
|
},
|
|
112
113
|
lastRow: {
|
|
113
|
-
borderBottomRightRadius: (0, _classesUtils.withImportant)(theme
|
|
114
|
-
borderBottomLeftRadius: (0, _classesUtils.withImportant)(theme
|
|
114
|
+
borderBottomRightRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable9 = theme.UTTable) === null || _theme$UTTable9 === void 0 || (_theme$UTTable9 = _theme$UTTable9.table) === null || _theme$UTTable9 === void 0 ? void 0 : _theme$UTTable9.borderRadius),
|
|
115
|
+
borderBottomLeftRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable10 = theme.UTTable) === null || _theme$UTTable10 === void 0 || (_theme$UTTable10 = _theme$UTTable10.table) === null || _theme$UTTable10 === void 0 ? void 0 : _theme$UTTable10.borderRadius)
|
|
115
116
|
},
|
|
116
117
|
rowCell: {
|
|
117
118
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'color']),
|
|
@@ -130,8 +131,8 @@ const retrieveStyle = _ref => {
|
|
|
130
131
|
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'tabletMobile', 'fontWeight'])
|
|
131
132
|
},
|
|
132
133
|
'&:first-child': {
|
|
133
|
-
borderTopLeftRadius: (0, _classesUtils.withImportant)(theme
|
|
134
|
-
borderTopRightRadius: (0, _classesUtils.withImportant)(theme
|
|
134
|
+
borderTopLeftRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable11 = theme.UTTable) === null || _theme$UTTable11 === void 0 || (_theme$UTTable11 = _theme$UTTable11.responsiveRow) === null || _theme$UTTable11 === void 0 ? void 0 : _theme$UTTable11.borderRadius),
|
|
135
|
+
borderTopRightRadius: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable12 = theme.UTTable) === null || _theme$UTTable12 === void 0 || (_theme$UTTable12 = _theme$UTTable12.responsiveRow) === null || _theme$UTTable12 === void 0 ? void 0 : _theme$UTTable12.borderRadius)
|
|
135
136
|
}
|
|
136
137
|
},
|
|
137
138
|
lastCellContainer: {
|
|
@@ -172,7 +173,7 @@ const retrieveStyle = _ref => {
|
|
|
172
173
|
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'actionCell', 'fontWeight']),
|
|
173
174
|
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'borderColor']),
|
|
174
175
|
borderStyle: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'rowCell', 'borderStyle'], 'solid'),
|
|
175
|
-
borderWidth: (0, _classesUtils.withImportant)(theme
|
|
176
|
+
borderWidth: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTTable13 = theme.UTTable) === null || _theme$UTTable13 === void 0 || (_theme$UTTable13 = _theme$UTTable13.rowCell) === null || _theme$UTTable13 === void 0 ? void 0 : _theme$UTTable13.borderWidth) || '1px')
|
|
176
177
|
},
|
|
177
178
|
categoryNameCell: {
|
|
178
179
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'categoryNameCell', 'backgroundColor'], _colorsModule.default.white),
|
|
@@ -180,10 +181,10 @@ const retrieveStyle = _ref => {
|
|
|
180
181
|
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'categoryNameCell', 'fontWeight'])
|
|
181
182
|
},
|
|
182
183
|
firstFixedRowLeft: {
|
|
183
|
-
borderTopLeftRadius: (0, _classesUtils.withImportant)(
|
|
184
|
+
borderTopLeftRadius: (0, _classesUtils.withImportant)("".concat(theme === null || theme === void 0 || (_theme$UTTable14 = theme.UTTable) === null || _theme$UTTable14 === void 0 || (_theme$UTTable14 = _theme$UTTable14.table) === null || _theme$UTTable14 === void 0 ? void 0 : _theme$UTTable14.borderRadius, "px"))
|
|
184
185
|
},
|
|
185
186
|
lastFixedRowLeft: {
|
|
186
|
-
borderBottomLeftRadius: (0, _classesUtils.withImportant)(
|
|
187
|
+
borderBottomLeftRadius: (0, _classesUtils.withImportant)("".concat(theme === null || theme === void 0 || (_theme$UTTable15 = theme.UTTable) === null || _theme$UTTable15 === void 0 || (_theme$UTTable15 = _theme$UTTable15.table) === null || _theme$UTTable15 === void 0 ? void 0 : _theme$UTTable15.borderRadius, "px"))
|
|
187
188
|
},
|
|
188
189
|
fixedRowLeft: {
|
|
189
190
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'fixedRowLeft', 'backgroundColor'], (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'row', 'backgroundColor'], _colorsModule.default.white)),
|
|
@@ -198,10 +199,10 @@ const retrieveStyle = _ref => {
|
|
|
198
199
|
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'fixedRowLeft', 'boxShadow'])
|
|
199
200
|
},
|
|
200
201
|
firstFixedRowRight: {
|
|
201
|
-
borderTopRightRadius: (0, _classesUtils.withImportant)(
|
|
202
|
+
borderTopRightRadius: (0, _classesUtils.withImportant)("".concat(theme === null || theme === void 0 || (_theme$UTTable16 = theme.UTTable) === null || _theme$UTTable16 === void 0 || (_theme$UTTable16 = _theme$UTTable16.table) === null || _theme$UTTable16 === void 0 ? void 0 : _theme$UTTable16.borderRadius, "px"))
|
|
202
203
|
},
|
|
203
204
|
lastFixedRowRight: {
|
|
204
|
-
borderTopRightRadius: (0, _classesUtils.withImportant)(
|
|
205
|
+
borderTopRightRadius: (0, _classesUtils.withImportant)("".concat(theme === null || theme === void 0 || (_theme$UTTable17 = theme.UTTable) === null || _theme$UTTable17 === void 0 || (_theme$UTTable17 = _theme$UTTable17.table) === null || _theme$UTTable17 === void 0 ? void 0 : _theme$UTTable17.borderRadius, "px"))
|
|
205
206
|
},
|
|
206
207
|
fixedRowRight: {
|
|
207
208
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'fixedRowRight', 'backgroundColor'], (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'row', 'backgroundColor'], _colorsModule.default.white)),
|
|
@@ -291,17 +292,17 @@ const retrieveStyle = _ref => {
|
|
|
291
292
|
pointerEvents: 'none'
|
|
292
293
|
},
|
|
293
294
|
tableTitle: {
|
|
294
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
295
|
-
fontSize: (0, _classesUtils.withImportant)(theme
|
|
296
|
-
fontWeight: (0, _classesUtils.withImportant)(theme
|
|
295
|
+
color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable18 = theme.UTTable) === null || _theme$UTTable18 === void 0 || (_theme$UTTable18 = _theme$UTTable18.tableTitle) === null || _theme$UTTable18 === void 0 ? void 0 : _theme$UTTable18.color),
|
|
296
|
+
fontSize: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable19 = theme.UTTable) === null || _theme$UTTable19 === void 0 || (_theme$UTTable19 = _theme$UTTable19.tableTitle) === null || _theme$UTTable19 === void 0 ? void 0 : _theme$UTTable19.fontSize),
|
|
297
|
+
fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable20 = theme.UTTable) === null || _theme$UTTable20 === void 0 || (_theme$UTTable20 = _theme$UTTable20.tableTitle) === null || _theme$UTTable20 === void 0 ? void 0 : _theme$UTTable20.fontWeight)
|
|
297
298
|
},
|
|
298
299
|
headerContainer: {
|
|
299
300
|
margin: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'headerContainer', 'margin'])
|
|
300
301
|
},
|
|
301
302
|
totalRowsLabel: {
|
|
302
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
303
|
-
fontSize: (0, _classesUtils.withImportant)(theme
|
|
304
|
-
fontWeight: (0, _classesUtils.withImportant)(theme
|
|
303
|
+
color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable21 = theme.UTTable) === null || _theme$UTTable21 === void 0 || (_theme$UTTable21 = _theme$UTTable21.tableTitle) === null || _theme$UTTable21 === void 0 ? void 0 : _theme$UTTable21.color),
|
|
304
|
+
fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTTable22 = theme.UTTable) === null || _theme$UTTable22 === void 0 || (_theme$UTTable22 = _theme$UTTable22.tableTitle) === null || _theme$UTTable22 === void 0 ? void 0 : _theme$UTTable22.fontSize) || '14px'),
|
|
305
|
+
fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable23 = theme.UTTable) === null || _theme$UTTable23 === void 0 || (_theme$UTTable23 = _theme$UTTable23.tableTitle) === null || _theme$UTTable23 === void 0 ? void 0 : _theme$UTTable23.fontWeight)
|
|
305
306
|
},
|
|
306
307
|
pageSizeSelect: {
|
|
307
308
|
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
@@ -311,10 +312,10 @@ const retrieveStyle = _ref => {
|
|
|
311
312
|
},
|
|
312
313
|
pageSizeSelectContainer: {
|
|
313
314
|
'& fieldset': {
|
|
314
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'pageSizeSelect', 'border'],
|
|
315
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'pageSizeSelect', 'border'], "1px solid ".concat(_colorsModule.default.gray3))
|
|
315
316
|
},
|
|
316
317
|
'&:hover fieldset': {
|
|
317
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'pageSizeSelect', 'hover', 'border'],
|
|
318
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'pageSizeSelect', 'hover', 'border'], "1px solid ".concat(_colorsModule.default.gray2))
|
|
318
319
|
}
|
|
319
320
|
},
|
|
320
321
|
noResultsContainer: {
|
|
@@ -324,15 +325,15 @@ const retrieveStyle = _ref => {
|
|
|
324
325
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'noResultsContainer', 'height'], 200)
|
|
325
326
|
},
|
|
326
327
|
noResultsLabel: {
|
|
327
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
328
|
-
fontSize: (0, _classesUtils.withImportant)(theme
|
|
329
|
-
fontWeight: (0, _classesUtils.withImportant)(theme
|
|
328
|
+
color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable24 = theme.UTTable) === null || _theme$UTTable24 === void 0 || (_theme$UTTable24 = _theme$UTTable24.noResultsLabel) === null || _theme$UTTable24 === void 0 ? void 0 : _theme$UTTable24.color),
|
|
329
|
+
fontSize: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTTable25 = theme.UTTable) === null || _theme$UTTable25 === void 0 || (_theme$UTTable25 = _theme$UTTable25.noResultsLabel) === null || _theme$UTTable25 === void 0 ? void 0 : _theme$UTTable25.fontSize) || '14px'),
|
|
330
|
+
fontWeight: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable26 = theme.UTTable) === null || _theme$UTTable26 === void 0 || (_theme$UTTable26 = _theme$UTTable26.noResultsLabel) === null || _theme$UTTable26 === void 0 ? void 0 : _theme$UTTable26.fontWeight)
|
|
330
331
|
},
|
|
331
332
|
checkBoxRoot: {
|
|
332
333
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'checkbox', 'root', 'color'])
|
|
333
334
|
},
|
|
334
335
|
checkboxColorChecked: {
|
|
335
|
-
color: (0, _classesUtils.withImportant)(theme
|
|
336
|
+
color: (0, _classesUtils.withImportant)(theme === null || theme === void 0 || (_theme$UTTable27 = theme.UTTable) === null || _theme$UTTable27 === void 0 || (_theme$UTTable27 = _theme$UTTable27.checkbox) === null || _theme$UTTable27 === void 0 || (_theme$UTTable27 = _theme$UTTable27.selected) === null || _theme$UTTable27 === void 0 ? void 0 : _theme$UTTable27.color)
|
|
336
337
|
},
|
|
337
338
|
tableLoading: {
|
|
338
339
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'checkbox', 'backgroundColor'], (0, _seamlessImmutable.getIn)(theme, ['UTTable', 'header', 'backgroundColor'], _colorsModule.default.white))
|
|
@@ -351,12 +352,12 @@ const retrieveStyle = _ref => {
|
|
|
351
352
|
color: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'base', 'color'], _colorsModule.default.loadingBase)
|
|
352
353
|
},
|
|
353
354
|
actionIcon: {
|
|
354
|
-
color: theme.Palette.actions
|
|
355
|
-
fill: theme.Palette.actions
|
|
355
|
+
color: ((_theme$Palette$action = theme.Palette.actions) === null || _theme$Palette$action === void 0 ? void 0 : _theme$Palette$action.neutral['05']) || theme.Palette.neutral['05'],
|
|
356
|
+
fill: ((_theme$Palette$action2 = theme.Palette.actions) === null || _theme$Palette$action2 === void 0 ? void 0 : _theme$Palette$action2.neutral['05']) || theme.Palette.neutral['05']
|
|
356
357
|
},
|
|
357
358
|
actionIconButton: {
|
|
358
359
|
'&:hover': {
|
|
359
|
-
backgroundColor: theme.Palette.actions
|
|
360
|
+
backgroundColor: ((_theme$Palette$action3 = theme.Palette.actions) === null || _theme$Palette$action3 === void 0 ? void 0 : _theme$Palette$action3.neutral['01']) || theme.Palette.neutral['01']
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
363
|
};
|
|
@@ -75,26 +75,26 @@ const createRowStyles = (rowPadding, rowSpacing, headerPadding, isResponsive) =>
|
|
|
75
75
|
return {
|
|
76
76
|
fixedRowsLeft: {
|
|
77
77
|
borderRadius,
|
|
78
|
-
borderWidth:
|
|
78
|
+
borderWidth: "".concat(_constants.ROWS_BORDER_SIZE, "px"),
|
|
79
79
|
paddingLeft: _constants.CELL_SIDE_PADDING
|
|
80
80
|
},
|
|
81
81
|
fixedRowsRight: {
|
|
82
82
|
borderRadius,
|
|
83
|
-
borderWidth:
|
|
83
|
+
borderWidth: "".concat(_constants.ROWS_BORDER_SIZE, "px"),
|
|
84
84
|
paddingRight: _constants.CELL_SIDE_PADDING
|
|
85
85
|
},
|
|
86
86
|
rowBorderTop: {
|
|
87
|
-
borderTopWidth:
|
|
87
|
+
borderTopWidth: "".concat(_constants.ROWS_BORDER_SIZE, "px"),
|
|
88
88
|
left: _constants.ROW_SIDE_PADDING,
|
|
89
89
|
marginTop: margin,
|
|
90
|
-
marginBottom:
|
|
91
|
-
width:
|
|
90
|
+
marginBottom: "-".concat(_constants.ROWS_BORDER_SIZE, "px"),
|
|
91
|
+
width: "calc(100% - ".concat(_constants.ROW_SIDE_PADDING * 2, "px)")
|
|
92
92
|
},
|
|
93
93
|
rowBorderBottom: {
|
|
94
|
-
borderTopWidth:
|
|
94
|
+
borderTopWidth: "".concat(_constants.ROWS_BORDER_SIZE, "px"),
|
|
95
95
|
left: _constants.ROW_SIDE_PADDING,
|
|
96
|
-
marginTop:
|
|
97
|
-
width:
|
|
96
|
+
marginTop: "-".concat(_constants.ROWS_BORDER_SIZE, "px"),
|
|
97
|
+
width: "calc(100% - ".concat(_constants.ROW_SIDE_PADDING * 2, "px)")
|
|
98
98
|
},
|
|
99
99
|
cell: {
|
|
100
100
|
paddingBottom: paddingValue,
|
|
@@ -110,8 +110,8 @@ const createRowStyles = (rowPadding, rowSpacing, headerPadding, isResponsive) =>
|
|
|
110
110
|
},
|
|
111
111
|
rowBackground: {
|
|
112
112
|
borderRadius,
|
|
113
|
-
borderBottomWidth:
|
|
114
|
-
borderTopWidth:
|
|
113
|
+
borderBottomWidth: "".concat(_constants.ROWS_BORDER_SIZE, "px"),
|
|
114
|
+
borderTopWidth: "".concat(_constants.ROWS_BORDER_SIZE, "px"),
|
|
115
115
|
borderLeftWidth: 0,
|
|
116
116
|
borderRightWidth: 0
|
|
117
117
|
},
|
|
@@ -178,11 +178,11 @@ const getColumnsSizes = _ref3 => {
|
|
|
178
178
|
} = _ref5;
|
|
179
179
|
const columnSize = _constants.COLUMN_SIZES[size] || _constants.COLUMN_SIZES.medium;
|
|
180
180
|
const finalSize = columnSize * 100 / (position === _constants.COLUMN_POSITION.LEFT ? leftColumnsSize : position === _constants.COLUMN_POSITION.RIGHT ? rightColumnsSize : secondaryColumnsSize);
|
|
181
|
-
columnSizes[key] =
|
|
181
|
+
columnSizes[key] = "".concat(finalSize, "%");
|
|
182
182
|
});
|
|
183
|
-
columnSizes.leftColumnsSize =
|
|
184
|
-
columnSizes.secondaryColumnsSize =
|
|
185
|
-
columnSizes.rightColumnsSize =
|
|
183
|
+
columnSizes.leftColumnsSize = "".concat(leftColumnsSize * 100 / columnsFullSize, "%");
|
|
184
|
+
columnSizes.secondaryColumnsSize = "".concat(secondaryColumnsSize * 100 / columnsFullSize, "%");
|
|
185
|
+
columnSizes.rightColumnsSize = "".concat(rightColumnsSize * 100 / columnsFullSize, "%");
|
|
186
186
|
} else {
|
|
187
187
|
columns.forEach(_ref6 => {
|
|
188
188
|
let {
|
|
@@ -36,7 +36,7 @@ const TooltipTab = _ref => {
|
|
|
36
36
|
content: tooltip,
|
|
37
37
|
tippyProps: tippyProps
|
|
38
38
|
}, /*#__PURE__*/_react.default.createElement("button", _extends({
|
|
39
|
-
className:
|
|
39
|
+
className: "".concat(className, " ").concat(_stylesModule.default.button),
|
|
40
40
|
ref: buttonRef,
|
|
41
41
|
onClick: handleClick
|
|
42
42
|
}, props), children));
|
|
@@ -45,11 +45,11 @@ class UTTabs extends _react.PureComponent {
|
|
|
45
45
|
value: this.props.value,
|
|
46
46
|
onChange: this.handleChange,
|
|
47
47
|
classes: {
|
|
48
|
-
root:
|
|
48
|
+
root: "".concat(styles.tabsRoot, " ").concat(classes.tabsRoot),
|
|
49
49
|
flexContainer: classes.flexContainer
|
|
50
50
|
},
|
|
51
51
|
TabIndicatorProps: {
|
|
52
|
-
className:
|
|
52
|
+
className: "".concat(styles.indicator, " ").concat(classes.indicator),
|
|
53
53
|
children: /*#__PURE__*/_react.default.createElement("div", null)
|
|
54
54
|
}
|
|
55
55
|
}, tabsProps), options.map(opt => {
|
|
@@ -61,10 +61,10 @@ class UTTabs extends _react.PureComponent {
|
|
|
61
61
|
}))) : _constants.DEFAULT_TAB_COMPONENT;
|
|
62
62
|
return /*#__PURE__*/_react.default.createElement(_Tab.default, _extends({
|
|
63
63
|
classes: {
|
|
64
|
-
root:
|
|
65
|
-
selected:
|
|
66
|
-
textColorPrimary:
|
|
67
|
-
wrapper:
|
|
64
|
+
root: "".concat(styles.tabRoot, " ").concat(classes.tabRoot),
|
|
65
|
+
selected: "".concat(styles.selected, " ").concat(classes.selected),
|
|
66
|
+
textColorPrimary: "".concat(styles.textColorPrimary, " ").concat(classes.textColorPrimary),
|
|
67
|
+
wrapper: "".concat(styles.label, " ").concat(classes.label)
|
|
68
68
|
},
|
|
69
69
|
key: opt.value,
|
|
70
70
|
value: opt.value,
|
|
@@ -74,7 +74,7 @@ class UTTabs extends _react.PureComponent {
|
|
|
74
74
|
component: tabComponent
|
|
75
75
|
}, tabProps));
|
|
76
76
|
}), !(0, _array.isEmpty)(badges) && badges.map(badge => /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
-
className:
|
|
77
|
+
className: "".concat(badge.styles, " ").concat(!badge.show && _stylesModule.default.hiddenBadge)
|
|
78
78
|
})));
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -39,7 +39,7 @@ const retrieveStyle = _ref => {
|
|
|
39
39
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'baseTabRoot', 'backgroundColor'], 'transparent'),
|
|
40
40
|
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'baseTabRoot', 'borderRadius'], 0),
|
|
41
41
|
opacity: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'baseTabRoot', 'opacity']),
|
|
42
|
-
transition: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'baseTabRoot', 'transition'],
|
|
42
|
+
transition: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'baseTabRoot', 'transition'], "all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"),
|
|
43
43
|
willChange: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'baseTabRoot', 'willChange']),
|
|
44
44
|
'&:hover:not($baseSelected)': {
|
|
45
45
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'baseTabRoot', '&:hover:not($baseSelected)', 'backgroundColor'], 'transparent'),
|
|
@@ -63,7 +63,7 @@ const retrieveStyle = _ref => {
|
|
|
63
63
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'secondaryTabRoot', 'backgroundColor'], 'transparent'),
|
|
64
64
|
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'secondaryTabRoot', 'borderRadius'], 0),
|
|
65
65
|
opacity: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'secondaryTabRoot', 'opacity']),
|
|
66
|
-
transition: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'secondaryTabRoot', 'transition'],
|
|
66
|
+
transition: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'secondaryTabRoot', 'transition'], "all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"),
|
|
67
67
|
willChange: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'secondaryTabRoot', 'willChange']),
|
|
68
68
|
'&:hover:not($secondarySelected)': {
|
|
69
69
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTTabs', 'secondaryTabRoot', '&:hover:not($secondarySelected)', 'backgroundColor'], 'transparent'),
|
|
@@ -42,7 +42,7 @@ const UTTextArea = _ref => {
|
|
|
42
42
|
} = classNames;
|
|
43
43
|
const {
|
|
44
44
|
character_count_limit: characterCountLimit
|
|
45
|
-
} = field
|
|
45
|
+
} = (field === null || field === void 0 ? void 0 : field.configuration) || {};
|
|
46
46
|
const handleOnChange = _ref2 => {
|
|
47
47
|
let {
|
|
48
48
|
target
|
|
@@ -54,14 +54,14 @@ const UTTextArea = _ref => {
|
|
|
54
54
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
55
55
|
className: _stylesModule.default.titleContainer
|
|
56
56
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
57
|
-
className:
|
|
57
|
+
className: "".concat(label, " ").concat(_stylesModule.default.label),
|
|
58
58
|
withMarkdown: true
|
|
59
59
|
}, title)), /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
-
className:
|
|
60
|
+
className: "".concat(_stylesModule.default.textAreaContainer, " ").concat(textAreaContainer)
|
|
61
61
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
62
62
|
className: _stylesModule.default.componentWrapper
|
|
63
63
|
}, /*#__PURE__*/_react.default.createElement("textarea", _extends({}, inputProps, {
|
|
64
|
-
className:
|
|
64
|
+
className: "".concat(_stylesModule.default.textarea, " ").concat(textarea, " ").concat(classes.textarea),
|
|
65
65
|
onChange: handleOnChange,
|
|
66
66
|
onBlur: onBlur,
|
|
67
67
|
onFocus: onFocus,
|
|
@@ -71,11 +71,11 @@ const UTTextArea = _ref => {
|
|
|
71
71
|
})), characterCountLimit && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
72
72
|
className: _stylesModule.default.characterCount,
|
|
73
73
|
colorTheme: value.length === characterCountLimit ? 'error' : value.length >= characterCountLimit * _constants.LIMIT_WARNING_FACTOR ? 'warning' : 'dark'
|
|
74
|
-
},
|
|
74
|
+
}, "".concat(value.length, "/").concat(characterCountLimit))), tooltip && /*#__PURE__*/_react.default.createElement(_UTTooltip.default, {
|
|
75
75
|
content: tooltip,
|
|
76
76
|
tippyProps: _constants.tippyProps
|
|
77
77
|
}, /*#__PURE__*/_react.default.createElement("div", null, HelpIcon || /*#__PURE__*/_react.default.createElement(_HelpOutline.default, {
|
|
78
|
-
className:
|
|
78
|
+
className: "".concat(icon, " ").concat(classes.icon)
|
|
79
79
|
})))));
|
|
80
80
|
};
|
|
81
81
|
UTTextArea.propTypes = {
|
|
@@ -7,40 +7,41 @@ exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
const retrieveStyle = _ref => {
|
|
10
|
+
var _theme$UTTextArea, _theme$UTTextArea2, _theme$UTTextArea3, _theme$UTTextArea4, _theme$Fonts, _theme$UTTextArea5, _theme$UTTextArea6, _theme$UTTextArea7, _theme$UTTextArea8, _theme$UTTextArea9, _theme$UTTextArea10, _theme$UTTextArea11, _theme$UTTextArea12, _theme$UTTextArea13, _theme$UTTextArea14, _theme$UTTextArea15, _theme$UTTextArea16, _theme$UTTextArea17, _theme$UTTextArea18, _theme$UTTextArea19, _theme$UTTextArea20;
|
|
10
11
|
let {
|
|
11
12
|
theme
|
|
12
13
|
} = _ref;
|
|
13
14
|
return {
|
|
14
15
|
textarea: {
|
|
15
|
-
background: theme
|
|
16
|
-
border: theme
|
|
17
|
-
borderRadius: theme
|
|
18
|
-
color: theme
|
|
19
|
-
fontFamily: theme
|
|
20
|
-
fontSize: theme
|
|
21
|
-
fontWeight: theme
|
|
22
|
-
height: theme
|
|
23
|
-
padding: theme
|
|
24
|
-
resize: theme
|
|
16
|
+
background: theme === null || theme === void 0 || (_theme$UTTextArea = theme.UTTextArea) === null || _theme$UTTextArea === void 0 || (_theme$UTTextArea = _theme$UTTextArea.textarea) === null || _theme$UTTextArea === void 0 ? void 0 : _theme$UTTextArea.background,
|
|
17
|
+
border: theme === null || theme === void 0 || (_theme$UTTextArea2 = theme.UTTextArea) === null || _theme$UTTextArea2 === void 0 || (_theme$UTTextArea2 = _theme$UTTextArea2.textarea) === null || _theme$UTTextArea2 === void 0 ? void 0 : _theme$UTTextArea2.border,
|
|
18
|
+
borderRadius: theme === null || theme === void 0 || (_theme$UTTextArea3 = theme.UTTextArea) === null || _theme$UTTextArea3 === void 0 || (_theme$UTTextArea3 = _theme$UTTextArea3.textarea) === null || _theme$UTTextArea3 === void 0 ? void 0 : _theme$UTTextArea3.borderRadius,
|
|
19
|
+
color: (theme === null || theme === void 0 || (_theme$UTTextArea4 = theme.UTTextArea) === null || _theme$UTTextArea4 === void 0 || (_theme$UTTextArea4 = _theme$UTTextArea4.textarea) === null || _theme$UTTextArea4 === void 0 ? void 0 : _theme$UTTextArea4.color) || _colorsModule.default.black,
|
|
20
|
+
fontFamily: theme === null || theme === void 0 || (_theme$Fonts = theme.Fonts) === null || _theme$Fonts === void 0 ? void 0 : _theme$Fonts.fontFamily,
|
|
21
|
+
fontSize: (theme === null || theme === void 0 || (_theme$UTTextArea5 = theme.UTTextArea) === null || _theme$UTTextArea5 === void 0 || (_theme$UTTextArea5 = _theme$UTTextArea5.textarea) === null || _theme$UTTextArea5 === void 0 ? void 0 : _theme$UTTextArea5.fontSize) || 14,
|
|
22
|
+
fontWeight: theme === null || theme === void 0 || (_theme$UTTextArea6 = theme.UTTextArea) === null || _theme$UTTextArea6 === void 0 || (_theme$UTTextArea6 = _theme$UTTextArea6.textarea) === null || _theme$UTTextArea6 === void 0 ? void 0 : _theme$UTTextArea6.fontWeight,
|
|
23
|
+
height: theme === null || theme === void 0 || (_theme$UTTextArea7 = theme.UTTextArea) === null || _theme$UTTextArea7 === void 0 || (_theme$UTTextArea7 = _theme$UTTextArea7.textarea) === null || _theme$UTTextArea7 === void 0 ? void 0 : _theme$UTTextArea7.height,
|
|
24
|
+
padding: theme === null || theme === void 0 || (_theme$UTTextArea8 = theme.UTTextArea) === null || _theme$UTTextArea8 === void 0 || (_theme$UTTextArea8 = _theme$UTTextArea8.textarea) === null || _theme$UTTextArea8 === void 0 ? void 0 : _theme$UTTextArea8.padding,
|
|
25
|
+
resize: (theme === null || theme === void 0 || (_theme$UTTextArea9 = theme.UTTextArea) === null || _theme$UTTextArea9 === void 0 || (_theme$UTTextArea9 = _theme$UTTextArea9.textarea) === null || _theme$UTTextArea9 === void 0 ? void 0 : _theme$UTTextArea9.resize) || 'vertical',
|
|
25
26
|
'&:hover': {
|
|
26
|
-
background: theme
|
|
27
|
-
border: theme
|
|
28
|
-
color: theme
|
|
27
|
+
background: theme === null || theme === void 0 || (_theme$UTTextArea10 = theme.UTTextArea) === null || _theme$UTTextArea10 === void 0 || (_theme$UTTextArea10 = _theme$UTTextArea10.textarea) === null || _theme$UTTextArea10 === void 0 || (_theme$UTTextArea10 = _theme$UTTextArea10.hover) === null || _theme$UTTextArea10 === void 0 ? void 0 : _theme$UTTextArea10.background,
|
|
28
|
+
border: theme === null || theme === void 0 || (_theme$UTTextArea11 = theme.UTTextArea) === null || _theme$UTTextArea11 === void 0 || (_theme$UTTextArea11 = _theme$UTTextArea11.textarea) === null || _theme$UTTextArea11 === void 0 || (_theme$UTTextArea11 = _theme$UTTextArea11.hover) === null || _theme$UTTextArea11 === void 0 ? void 0 : _theme$UTTextArea11.border,
|
|
29
|
+
color: theme === null || theme === void 0 || (_theme$UTTextArea12 = theme.UTTextArea) === null || _theme$UTTextArea12 === void 0 || (_theme$UTTextArea12 = _theme$UTTextArea12.textarea) === null || _theme$UTTextArea12 === void 0 || (_theme$UTTextArea12 = _theme$UTTextArea12.hover) === null || _theme$UTTextArea12 === void 0 ? void 0 : _theme$UTTextArea12.color
|
|
29
30
|
},
|
|
30
31
|
'&:focus, &focus-visible': {
|
|
31
|
-
background: theme
|
|
32
|
-
border: theme
|
|
33
|
-
color: theme
|
|
34
|
-
outline: theme
|
|
32
|
+
background: theme === null || theme === void 0 || (_theme$UTTextArea13 = theme.UTTextArea) === null || _theme$UTTextArea13 === void 0 || (_theme$UTTextArea13 = _theme$UTTextArea13.textarea) === null || _theme$UTTextArea13 === void 0 || (_theme$UTTextArea13 = _theme$UTTextArea13.focus) === null || _theme$UTTextArea13 === void 0 ? void 0 : _theme$UTTextArea13.background,
|
|
33
|
+
border: theme === null || theme === void 0 || (_theme$UTTextArea14 = theme.UTTextArea) === null || _theme$UTTextArea14 === void 0 || (_theme$UTTextArea14 = _theme$UTTextArea14.textarea) === null || _theme$UTTextArea14 === void 0 || (_theme$UTTextArea14 = _theme$UTTextArea14.focus) === null || _theme$UTTextArea14 === void 0 ? void 0 : _theme$UTTextArea14.border,
|
|
34
|
+
color: theme === null || theme === void 0 || (_theme$UTTextArea15 = theme.UTTextArea) === null || _theme$UTTextArea15 === void 0 || (_theme$UTTextArea15 = _theme$UTTextArea15.textarea) === null || _theme$UTTextArea15 === void 0 || (_theme$UTTextArea15 = _theme$UTTextArea15.focus) === null || _theme$UTTextArea15 === void 0 ? void 0 : _theme$UTTextArea15.color,
|
|
35
|
+
outline: theme === null || theme === void 0 || (_theme$UTTextArea16 = theme.UTTextArea) === null || _theme$UTTextArea16 === void 0 || (_theme$UTTextArea16 = _theme$UTTextArea16.textarea) === null || _theme$UTTextArea16 === void 0 || (_theme$UTTextArea16 = _theme$UTTextArea16.focus) === null || _theme$UTTextArea16 === void 0 ? void 0 : _theme$UTTextArea16.outline
|
|
35
36
|
},
|
|
36
37
|
'&:disabled': {
|
|
37
|
-
background: theme
|
|
38
|
-
border: theme
|
|
39
|
-
color: theme
|
|
38
|
+
background: theme === null || theme === void 0 || (_theme$UTTextArea17 = theme.UTTextArea) === null || _theme$UTTextArea17 === void 0 || (_theme$UTTextArea17 = _theme$UTTextArea17.textarea) === null || _theme$UTTextArea17 === void 0 || (_theme$UTTextArea17 = _theme$UTTextArea17.disabled) === null || _theme$UTTextArea17 === void 0 ? void 0 : _theme$UTTextArea17.background,
|
|
39
|
+
border: theme === null || theme === void 0 || (_theme$UTTextArea18 = theme.UTTextArea) === null || _theme$UTTextArea18 === void 0 || (_theme$UTTextArea18 = _theme$UTTextArea18.textarea) === null || _theme$UTTextArea18 === void 0 || (_theme$UTTextArea18 = _theme$UTTextArea18.disabled) === null || _theme$UTTextArea18 === void 0 ? void 0 : _theme$UTTextArea18.border,
|
|
40
|
+
color: theme === null || theme === void 0 || (_theme$UTTextArea19 = theme.UTTextArea) === null || _theme$UTTextArea19 === void 0 || (_theme$UTTextArea19 = _theme$UTTextArea19.textarea) === null || _theme$UTTextArea19 === void 0 || (_theme$UTTextArea19 = _theme$UTTextArea19.disabled) === null || _theme$UTTextArea19 === void 0 ? void 0 : _theme$UTTextArea19.color
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
icon: {
|
|
43
|
-
color: theme
|
|
44
|
+
color: theme === null || theme === void 0 || (_theme$UTTextArea20 = theme.UTTextArea) === null || _theme$UTTextArea20 === void 0 || (_theme$UTTextArea20 = _theme$UTTextArea20.icon) === null || _theme$UTTextArea20 === void 0 ? void 0 : _theme$UTTextArea20.color
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
};
|
|
@@ -88,7 +88,7 @@ class UTTextInput extends _react.PureComponent {
|
|
|
88
88
|
outsideIcon,
|
|
89
89
|
adornment,
|
|
90
90
|
helperText
|
|
91
|
-
} = field
|
|
91
|
+
} = (field === null || field === void 0 ? void 0 : field.configuration) || {};
|
|
92
92
|
|
|
93
93
|
// TODO. These props were forwarded to the inner dom element and they were
|
|
94
94
|
// causing errors and warnings. I quit them from the "..." spread to TextField.
|
|
@@ -110,7 +110,7 @@ class UTTextInput extends _react.PureComponent {
|
|
|
110
110
|
}) : adornment;
|
|
111
111
|
const value = inputObjectKey ? input.value[inputObjectKey] : input.value;
|
|
112
112
|
const errorMessage = (0, _form.shouldShowErrors)(meta) && meta.error || captionLabel || '';
|
|
113
|
-
const fieldId = id || field
|
|
113
|
+
const fieldId = id || field !== null && field !== void 0 && field.id ? "".concat(id || field.id) : undefined;
|
|
114
114
|
const TextInput = /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({
|
|
115
115
|
id: fieldId,
|
|
116
116
|
placeholder: placeholder,
|
|
@@ -143,15 +143,11 @@ class UTTextInput extends _react.PureComponent {
|
|
|
143
143
|
id: fieldId,
|
|
144
144
|
endAdornment: endAction && /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
|
|
145
145
|
position: "end",
|
|
146
|
-
className:
|
|
146
|
+
className: "".concat(adornmentInside && _stylesModule.default.adornmentInside)
|
|
147
147
|
}, endAction),
|
|
148
148
|
type: type === _constants.INPUT_TYPES.PASSWORD ? !this.state.visible ? _constants.INPUT_TYPES.PASSWORD : _constants.INPUT_TYPES.TEXT : type || _constants.INPUT_TYPES.TEXT,
|
|
149
149
|
classes: {
|
|
150
|
-
input:
|
|
151
|
-
${bigInput && classes.bigInput}
|
|
152
|
-
${type === _constants.INPUT_TYPES.NUMBER && _stylesModule.default.numberType}
|
|
153
|
-
${inputClassName}
|
|
154
|
-
`
|
|
150
|
+
input: "\n ".concat(bigInput && classes.bigInput, "\n ").concat(type === _constants.INPUT_TYPES.NUMBER && _stylesModule.default.numberType, "\n ").concat(inputClassName, "\n ")
|
|
155
151
|
}
|
|
156
152
|
},
|
|
157
153
|
InputLabelProps: {
|
|
@@ -162,14 +158,14 @@ class UTTextInput extends _react.PureComponent {
|
|
|
162
158
|
}
|
|
163
159
|
}, textFieldPropsToForward));
|
|
164
160
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
165
|
-
className:
|
|
161
|
+
className: "".concat(classes.container, " ").concat(containerClassName, " ").concat(tooltip && _stylesModule.default.containerWithTooltip)
|
|
166
162
|
}, tooltip ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, TextInput, /*#__PURE__*/_react.default.createElement(_UTTooltip.default, {
|
|
167
163
|
tippyProps: tippyProps,
|
|
168
164
|
content: tooltip
|
|
169
165
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
170
166
|
className: _stylesModule.default.tooltipIconContainer
|
|
171
167
|
}, /*#__PURE__*/_react.default.createElement(_HelpOutline.default, {
|
|
172
|
-
className:
|
|
168
|
+
className: "".concat(classes.tooltipIcon, " ").concat(_stylesModule.default.tooltipIcon)
|
|
173
169
|
})))) : /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/(0, _react.isValidElement)(outsideIcon) && /*#__PURE__*/_react.default.createElement("div", {
|
|
174
170
|
className: _stylesModule.default.iconContainer
|
|
175
171
|
}, outsideIcon), TextInput));
|