@cashub/ui 0.48.2 → 0.48.3
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/Tab/TabList.js +26 -38
- package/Tab/TabPanel.js +20 -13
- package/Tab/TabTab.js +24 -36
- package/Tab/index.js +6 -3
- package/Tab/subComponent/TabListV2.js +18 -11
- package/Tab/subComponent/TabPanelV2.js +20 -16
- package/Tab/subComponent/TabTabV2.js +21 -33
- package/VerticalTab/TabList.js +18 -13
- package/VerticalTab/TabPanel.js +20 -16
- package/VerticalTab/TabTab.js +21 -40
- package/VerticalTab/VerticalTab.js +4 -8
- package/alert/Alert.js +5 -12
- package/animate/Collapse.js +7 -5
- package/animate/Loader.js +7 -18
- package/animate/PulseRing.js +5 -18
- package/animate/Spinner.js +3 -8
- package/backdrop/BaseBackdrop.js +3 -9
- package/backdrop/LoadingBackdrop.js +3 -7
- package/backdrop/ModalBackdrop.js +3 -5
- package/badge/Badge.js +3 -15
- package/badge/BadgeDot.js +3 -8
- package/badge/BadgeFill.js +6 -24
- package/badge/BadgeWithText.js +3 -13
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +3 -42
- package/button/Button.js +20 -88
- package/button/ButtonGroup.js +9 -33
- package/button/IconButton.js +10 -37
- package/button/ScrollToTopButton.js +4 -12
- package/callout/Callout.js +8 -37
- package/chart/BarChart.js +17 -10
- package/chart/DoughnutChart.js +20 -34
- package/chart/LineChart.js +18 -11
- package/chart/SingleBarChart.js +5 -22
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +14 -8
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/chart/utils/yAxisTopTitlePlugin.js +1 -1
- package/container/FlexContainer.js +7 -15
- package/cropper/Cropper.js +2 -1
- package/datetimePicker/DatePicker.js +26 -80
- package/datetimePicker/DatePickerV2.js +36 -95
- package/datetimePicker/DatetimePicker.js +11 -174
- package/datetimePicker/DatetimePickerV2.js +33 -87
- package/datetimePicker/DatetimePickerV3.js +11 -174
- package/datetimePicker/TimeInput.js +10 -35
- package/datetimePicker/TimePicker.js +22 -77
- package/datetimePicker/TimePickerStyle.js +3 -53
- package/datetimePicker/TimePickerV2.js +21 -54
- package/datetimePicker/accordion/Month.js +16 -93
- package/datetimePicker/accordion/Year.js +18 -96
- package/datetimePicker/hooks/useChangeNumber.js +6 -3
- package/datetimePicker/hooks/useDecrease.js +6 -3
- package/datetimePicker/hooks/useIncrease.js +6 -3
- package/datetimePicker/subComponent/Accordion.js +20 -101
- package/descriptionList/DescriptionDetail.js +4 -15
- package/descriptionList/DescriptionList.js +4 -12
- package/descriptionList/DescriptionTerm.js +3 -5
- package/divider/Divider.js +6 -15
- package/dropdown/DropdownButtonOption.js +6 -22
- package/dropdown/DropdownContent.js +15 -29
- package/dropdown/DropdownDivOption.js +3 -17
- package/dropdown/DropdownLinkOption.js +3 -14
- package/dropdown/DropdownToggle.js +15 -7
- package/dropzone/FileDropzone.js +22 -121
- package/dropzone/ImageDropzone.js +14 -83
- package/dropzone/subComponent/Message.js +4 -11
- package/figure/IconFigure.js +7 -16
- package/figure/ImageFigure.js +6 -19
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +13 -74
- package/form/Fieldset.js +3 -9
- package/form/FormItem.js +5 -10
- package/form/Input.js +7 -40
- package/form/Label.js +10 -34
- package/form/MutedText.js +4 -8
- package/form/PasswordInput.js +13 -20
- package/form/RadioButton.js +8 -55
- package/form/SearchSelect.js +12 -64
- package/form/Searchbox.js +19 -45
- package/form/Slider.js +10 -28
- package/form/SwitchButton.js +14 -48
- package/form/Textarea.js +3 -30
- package/form/TreeView.js +6 -13
- package/grid/Column.js +10 -23
- package/grid/Grid.js +6 -14
- package/heading/Heading1.js +4 -8
- package/heading/Heading2.js +5 -11
- package/heading/Heading3.js +8 -20
- package/iconbox/ApplicationIconBox.js +12 -48
- package/iconbox/IconBox.js +7 -31
- package/iconbox/IconBoxV2.js +8 -33
- package/iconbox/subComponent/IconBoxFigure.js +9 -17
- package/iconbox/subComponent/IconBoxImage.js +8 -21
- package/image/ImageFluid.js +3 -7
- package/image/UploadImage.js +18 -66
- package/jsoneditor/JsonEditor.js +15 -121
- package/keyframe/Pulse.js +3 -13
- package/keyframe/Spin.js +3 -5
- package/layout/Aside.js +5 -30
- package/layout/Backdrop.js +4 -8
- package/layout/Container.js +5 -21
- package/layout/Footer.js +7 -26
- package/link/LinkSpan.js +19 -37
- package/map/GoogleMap.js +7 -3
- package/map/GoogleReverseGeolocation.js +3 -6
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +4 -16
- package/map/subComponent/GoogleMapPopup.js +10 -7
- package/map/subComponent/GoogleMapWrapper.js +15 -8
- package/map/subComponent/LeafletDrawControl.js +7 -9
- package/map/subComponent/LeafletMapContainer.js +4 -159
- package/modal/StateModal.js +28 -49
- package/modal/TitleModal.js +29 -70
- package/package.json +1 -1
- package/page/Disclaimer.js +3 -119
- package/paginate/Paginate.js +12 -54
- package/popover/Popover.js +25 -30
- package/qrcode/QRCode.js +6 -20
- package/qrcode/QRCodeContainter.js +4 -12
- package/ribbon/Ribbon.js +4 -29
- package/section/Section.js +20 -68
- package/section/SectionBody.js +8 -29
- package/section/SectionHeader.js +11 -36
- package/section/SectionToolbar.js +3 -9
- package/section/SectionToolbarItem.js +3 -8
- package/select/InputSelect.js +23 -16
- package/select/Select.js +43 -112
- package/select/subComponent/Checkbox.js +5 -24
- package/select/subComponent/Footer.js +3 -4
- package/select/subComponent/ListBox.js +5 -12
- package/select/subComponent/Option.js +7 -27
- package/select/subComponent/OptionGroup.js +3 -13
- package/select/subComponent/Options.js +5 -18
- package/select/subComponent/SearchBox.js +12 -34
- package/select/subComponent/SelectedMultipleTags.js +3 -21
- package/select/subComponent/SelectedMultipleText.js +4 -20
- package/select/subComponent/SelectedSingle.js +3 -7
- package/styles/GlobalStyle.js +45 -156
- package/styles/mixin/backgroundColor.js +8 -16
- package/styles/mixin/borderColor.js +7 -13
- package/styles/mixin/color.js +7 -13
- package/styles/mixin/colorOnBackground.js +7 -13
- package/styles/mixin/inputPlaceholder.js +3 -20
- package/styles/mixin/media.js +3 -5
- package/styles/mixin/rounded.js +6 -10
- package/styles/mixin/scrollbar.js +3 -13
- package/styles/theme/dark.theme.js +14 -15
- package/styles/theme/light.theme.js +14 -15
- package/styles/theme/white.theme.js +14 -15
- package/table/GridTable.js +33 -71
- package/table/ImageBox.js +5 -15
- package/table/InfiniteGridTable.js +46 -92
- package/table/PermissionTable.js +10 -32
- package/table/SimpleGridTable.js +17 -52
- package/table/Table.js +48 -198
- package/table/__mock__/columns.js +1 -1
- package/table/subComponent/BaseTableHeadCell.js +8 -37
- package/table/subComponent/GridTableFooter.js +4 -10
- package/table/subComponent/GridTableHeadCell.js +4 -6
- package/table/subComponent/Resizer.js +4 -19
- package/table/subComponent/TableFooter.js +6 -15
- package/table/subComponent/TableFooterInfo.js +3 -4
- package/table/subComponent/TableFooterPager.js +6 -19
- package/table/subComponent/TableHeadCell.js +3 -9
- package/table/subComponent/TableSort.js +7 -17
- package/tagify/TagifyStyle.js +3 -49
- package/tagify/Tags.js +21 -37
- package/tagify/templates/getCreateButtonTemplate.js +2 -5
- package/text/Paragraph.js +12 -50
- package/timeline/Timeline.js +17 -94
- package/toast/CustomToastContainer.js +3 -35
- package/toast/MessageContainer.js +4 -22
- package/tooltip/Tooltip.js +19 -47
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +3 -38
- package/wizard/Wizard.js +6 -115
package/table/Table.js
CHANGED
|
@@ -16,9 +16,19 @@ var _Paginate = _interopRequireDefault(require("../paginate/Paginate"));
|
|
|
16
16
|
var _Select = _interopRequireDefault(require("../select/Select"));
|
|
17
17
|
var _Popover = _interopRequireDefault(require("../popover/Popover"));
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
|
|
20
|
+
const _excluded = ["title", "fieldName", "render", "custom", "customPop"];
|
|
19
21
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
25
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
26
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
27
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
30
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
31
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
32
|
const Table = _ref => {
|
|
23
33
|
let {
|
|
24
34
|
columns,
|
|
@@ -56,10 +66,7 @@ const Table = _ref => {
|
|
|
56
66
|
info: 'Showing _START_ to _END_ of _TOTAL_ entries',
|
|
57
67
|
empty: 'No data available in table'
|
|
58
68
|
};
|
|
59
|
-
return {
|
|
60
|
-
...defaultTexts,
|
|
61
|
-
...translation
|
|
62
|
-
};
|
|
69
|
+
return _objectSpread(_objectSpread({}, defaultTexts), translation);
|
|
63
70
|
}, [translation]);
|
|
64
71
|
const handleSortChange = (0, _react.useCallback)(columnName => {
|
|
65
72
|
if (onSortChange) {
|
|
@@ -143,7 +150,7 @@ const Table = _ref => {
|
|
|
143
150
|
children: title
|
|
144
151
|
}), sortable && generateSort(fieldName)]
|
|
145
152
|
})
|
|
146
|
-
},
|
|
153
|
+
}, "TH".concat(index));
|
|
147
154
|
});
|
|
148
155
|
}, [columns, handleSortChange, generateSort, showFullValue]);
|
|
149
156
|
const tableRows = (0, _react.useMemo)(() => {
|
|
@@ -164,13 +171,13 @@ const Table = _ref => {
|
|
|
164
171
|
// row data cell
|
|
165
172
|
const tds = columns.map((column, columnIndex) => {
|
|
166
173
|
const {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
title,
|
|
175
|
+
fieldName,
|
|
176
|
+
render,
|
|
177
|
+
custom,
|
|
178
|
+
customPop
|
|
179
|
+
} = column,
|
|
180
|
+
props = _objectWithoutProperties(column, _excluded);
|
|
174
181
|
const key = rowIndex + columnIndex.toString();
|
|
175
182
|
let value = row[fieldName];
|
|
176
183
|
|
|
@@ -203,13 +210,13 @@ const Table = _ref => {
|
|
|
203
210
|
children: render ? render(value, row) : String(value)
|
|
204
211
|
});
|
|
205
212
|
}
|
|
206
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(TableDataCell, {
|
|
213
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(TableDataCell, _objectSpread(_objectSpread({
|
|
207
214
|
"data-label": title,
|
|
208
215
|
enableRowDrag: columnIndex === columns.length - 1 && enableRowDrag,
|
|
209
216
|
backgroundReverse: backgroundReverse,
|
|
210
217
|
border: rowConfig.border,
|
|
211
|
-
custom: isCustom
|
|
212
|
-
|
|
218
|
+
custom: isCustom
|
|
219
|
+
}, props), {}, {
|
|
213
220
|
children: [renderedData, enableRowDrag && columnIndex === columns.length - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(DragHandle, {
|
|
214
221
|
draggable: true,
|
|
215
222
|
onDragStart: event => {
|
|
@@ -231,7 +238,7 @@ const Table = _ref => {
|
|
|
231
238
|
})]
|
|
232
239
|
})
|
|
233
240
|
})]
|
|
234
|
-
}, columnIndex);
|
|
241
|
+
}), columnIndex);
|
|
235
242
|
});
|
|
236
243
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(BodyTR, {
|
|
237
244
|
clickable: onRowClick,
|
|
@@ -327,112 +334,46 @@ const Table = _ref => {
|
|
|
327
334
|
})]
|
|
328
335
|
});
|
|
329
336
|
};
|
|
330
|
-
const ResponsiveTable = _styledComponents.default.table
|
|
331
|
-
width: 100%;
|
|
332
|
-
border-collapse: separate;
|
|
333
|
-
margin-top: calc(var(--spacing-s) * -1);
|
|
334
|
-
border-spacing: 0 var(--spacing-s);
|
|
335
|
-
color: var(--font-on-background);
|
|
336
|
-
table-layout: fixed;
|
|
337
|
-
|
|
338
|
-
${_ref2 => {
|
|
337
|
+
const ResponsiveTable = _styledComponents.default.table(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n border-collapse: separate;\n margin-top: calc(var(--spacing-s) * -1);\n border-spacing: 0 var(--spacing-s);\n color: var(--font-on-background);\n table-layout: fixed;\n\n ", "\n"])), _ref2 => {
|
|
339
338
|
let {
|
|
340
339
|
enableRowDrag
|
|
341
340
|
} = _ref2;
|
|
342
341
|
return enableRowDrag && 'padding-right: calc(1.5rem + 0.5rem);';
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
const
|
|
346
|
-
${_media.default.mobile`
|
|
347
|
-
display: none;
|
|
348
|
-
`}
|
|
349
|
-
`;
|
|
350
|
-
const BodyTR = _styledComponents.default.tr`
|
|
351
|
-
&:hover {
|
|
352
|
-
> td {
|
|
353
|
-
border-color: var(--color-primary);
|
|
354
|
-
border-width: var(--border-width);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
${_ref3 => {
|
|
342
|
+
});
|
|
343
|
+
const TableHead = _styledComponents.default.thead(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), _media.default.mobile(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: none;\n "]))));
|
|
344
|
+
const BodyTR = _styledComponents.default.tr(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n &:hover {\n > td {\n border-color: var(--color-primary);\n border-width: var(--border-width);\n }\n }\n\n ", "\n\n ", "\n \n ", "\n"])), _ref3 => {
|
|
359
345
|
let {
|
|
360
346
|
active,
|
|
361
347
|
primary
|
|
362
348
|
} = _ref3;
|
|
363
|
-
return (active || primary) && (0, _styledComponents.css)
|
|
364
|
-
|
|
365
|
-
background: var(--color-background3);
|
|
366
|
-
}
|
|
367
|
-
`;
|
|
368
|
-
}}
|
|
369
|
-
|
|
370
|
-
${_ref4 => {
|
|
349
|
+
return (active || primary) && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n > td {\n background: var(--color-background3);\n }\n "])));
|
|
350
|
+
}, _ref4 => {
|
|
371
351
|
let {
|
|
372
352
|
clickable
|
|
373
353
|
} = _ref4;
|
|
374
354
|
return clickable && 'pointer: cursor;';
|
|
375
|
-
}}
|
|
376
|
-
|
|
377
|
-
${_media.default.mobile`
|
|
378
|
-
overflow: hidden;
|
|
379
|
-
position: relative;
|
|
380
|
-
transition: .3s;
|
|
381
|
-
display: block;
|
|
382
|
-
margin-bottom: 0.75rem;
|
|
383
|
-
padding: var(--spacing-xs) var(--spacing-s);
|
|
384
|
-
background: var(
|
|
385
|
-
--color-background${_ref5 => {
|
|
355
|
+
}, _media.default.mobile(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow: hidden;\n position: relative;\n transition: .3s;\n display: block;\n margin-bottom: 0.75rem;\n padding: var(--spacing-xs) var(--spacing-s);\n background: var(\n --color-background", "\n );\n border-radius: var(--border-radius);\n transition: .3s;\n border: 1px solid transparent;\n\n &:hover {\n border: var(--border-width) solid var(--color-primary);\n }\n\n ", "\n\n ", "\n\n ", "\n "])), _ref5 => {
|
|
386
356
|
let {
|
|
387
357
|
backgroundReverse
|
|
388
358
|
} = _ref5;
|
|
389
359
|
return backgroundReverse ? 1 : 2;
|
|
390
|
-
}
|
|
391
|
-
);
|
|
392
|
-
border-radius: var(--border-radius);
|
|
393
|
-
transition: .3s;
|
|
394
|
-
border: 1px solid transparent;
|
|
395
|
-
|
|
396
|
-
&:hover {
|
|
397
|
-
border: var(--border-width) solid var(--color-primary);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
${_ref6 => {
|
|
360
|
+
}, _ref6 => {
|
|
401
361
|
let {
|
|
402
362
|
active,
|
|
403
363
|
primary
|
|
404
364
|
} = _ref6;
|
|
405
|
-
return (active || primary) && (0, _styledComponents.css)
|
|
406
|
-
|
|
407
|
-
`;
|
|
408
|
-
}}
|
|
409
|
-
|
|
410
|
-
${_ref7 => {
|
|
365
|
+
return (active || primary) && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background: var(--color-background3);\n "])));
|
|
366
|
+
}, _ref7 => {
|
|
411
367
|
let {
|
|
412
368
|
border
|
|
413
369
|
} = _ref7;
|
|
414
|
-
return border && (0, _styledComponents.css)
|
|
415
|
-
|
|
416
|
-
border-width: 3px;
|
|
417
|
-
`;
|
|
418
|
-
}}
|
|
419
|
-
|
|
420
|
-
${_ref8 => {
|
|
370
|
+
return border && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-color: var(--font-on-background);\n border-width: 3px;\n "])));
|
|
371
|
+
}, _ref8 => {
|
|
421
372
|
let {
|
|
422
373
|
noData
|
|
423
374
|
} = _ref8;
|
|
424
|
-
return noData && (0, _styledComponents.css)
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
> td {
|
|
428
|
-
&:first-child:before {
|
|
429
|
-
display: none;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
`;
|
|
433
|
-
}}
|
|
434
|
-
`}
|
|
435
|
-
`;
|
|
375
|
+
return noData && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n height: 168px;\n\n > td {\n &:first-child:before {\n display: none;\n }\n }\n "])));
|
|
376
|
+
}));
|
|
436
377
|
const TableDataCell = _styledComponents.default.td.attrs(_ref9 => {
|
|
437
378
|
let {
|
|
438
379
|
border
|
|
@@ -441,128 +382,37 @@ const TableDataCell = _styledComponents.default.td.attrs(_ref9 => {
|
|
|
441
382
|
borderWidth: border ? '3px' : 'var(--border-width)',
|
|
442
383
|
borderColor: border ? 'var(--font-on-background)' : 'transparent'
|
|
443
384
|
};
|
|
444
|
-
})
|
|
445
|
-
height: 48px;
|
|
446
|
-
background: ${_ref10 => {
|
|
385
|
+
})(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n height: 48px;\n background: ", ";\n padding: 0 var(--spacing-xs);\n max-width: 0px;\n text-align: ", ";\n vertical-align: middle;\n transition: border-color 0.3s;\n\n ", "\n > span {\n display: inline-block;\n width: 100%;\n overflow: hidden;\n white-space: pre;\n text-overflow: ellipsis;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), _ref10 => {
|
|
447
386
|
let {
|
|
448
387
|
backgroundReverse
|
|
449
388
|
} = _ref10;
|
|
450
389
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
451
|
-
}
|
|
452
|
-
padding: 0 var(--spacing-xs);
|
|
453
|
-
max-width: 0px;
|
|
454
|
-
text-align: ${_ref11 => {
|
|
390
|
+
}, _ref11 => {
|
|
455
391
|
let {
|
|
456
392
|
center
|
|
457
393
|
} = _ref11;
|
|
458
394
|
return center ? 'center' : 'left';
|
|
459
|
-
}
|
|
460
|
-
vertical-align: middle;
|
|
461
|
-
transition: border-color 0.3s;
|
|
462
|
-
|
|
463
|
-
${_ref12 => {
|
|
395
|
+
}, _ref12 => {
|
|
464
396
|
let {
|
|
465
397
|
borderWidth,
|
|
466
398
|
borderColor
|
|
467
399
|
} = _ref12;
|
|
468
|
-
return (0, _styledComponents.css)
|
|
469
|
-
|
|
470
|
-
border-bottom: ${borderWidth} solid ${borderColor};
|
|
471
|
-
&:first-child {
|
|
472
|
-
border-left: ${borderWidth} solid ${borderColor};
|
|
473
|
-
border-top-left-radius: var(--border-radius-l);
|
|
474
|
-
border-bottom-left-radius: var(--border-radius-l);
|
|
475
|
-
padding-left: var(--spacing);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
&:last-child {
|
|
479
|
-
border-right: ${borderWidth} solid ${borderColor};
|
|
480
|
-
border-top-right-radius: var(--border-radius-l);
|
|
481
|
-
border-bottom-right-radius: var(--border-radius-l);
|
|
482
|
-
padding-right: var(--spacing);
|
|
483
|
-
}
|
|
484
|
-
`;
|
|
485
|
-
}}
|
|
486
|
-
> span {
|
|
487
|
-
display: inline-block;
|
|
488
|
-
width: 100%;
|
|
489
|
-
overflow: hidden;
|
|
490
|
-
white-space: pre;
|
|
491
|
-
text-overflow: ellipsis;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
${_ref13 => {
|
|
400
|
+
return (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n border-top: ", " solid ", ";\n border-bottom: ", " solid ", ";\n &:first-child {\n border-left: ", " solid ", ";\n border-top-left-radius: var(--border-radius-l);\n border-bottom-left-radius: var(--border-radius-l);\n padding-left: var(--spacing);\n }\n\n &:last-child {\n border-right: ", " solid ", ";\n border-top-right-radius: var(--border-radius-l);\n border-bottom-right-radius: var(--border-radius-l);\n padding-right: var(--spacing);\n }\n "])), borderWidth, borderColor, borderWidth, borderColor, borderWidth, borderColor, borderWidth, borderColor);
|
|
401
|
+
}, _ref13 => {
|
|
495
402
|
let {
|
|
496
403
|
noData
|
|
497
404
|
} = _ref13;
|
|
498
|
-
return noData && (0, _styledComponents.css)
|
|
499
|
-
|
|
500
|
-
`;
|
|
501
|
-
}}
|
|
502
|
-
|
|
503
|
-
${_ref14 => {
|
|
405
|
+
return noData && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding: 20px 0;\n "])));
|
|
406
|
+
}, _ref14 => {
|
|
504
407
|
let {
|
|
505
408
|
enableRowDrag
|
|
506
409
|
} = _ref14;
|
|
507
410
|
return enableRowDrag && 'position: relative;';
|
|
508
|
-
}}
|
|
509
|
-
|
|
510
|
-
${_media.default.mobile`
|
|
511
|
-
display: flex;
|
|
512
|
-
height: auto;
|
|
513
|
-
margin-bottom: var(--spacing-xs);
|
|
514
|
-
background: transparent !important;
|
|
515
|
-
border: none !important;
|
|
516
|
-
min-width: 100%;
|
|
517
|
-
|
|
518
|
-
&:first-child {
|
|
519
|
-
padding: var(--spacing-xs) 0 0 var(--spacing-xs);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
&:last-child {
|
|
523
|
-
padding-right: var(--spacing-xs);
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
&:before {
|
|
527
|
-
content: attr(data-label) ": ";
|
|
528
|
-
font-weight: bold;
|
|
529
|
-
padding-right: var(--spacing-xs);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
> span {
|
|
533
|
-
flex: 1;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
${_ref15 => {
|
|
411
|
+
}, _media.default.mobile(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: flex;\n height: auto;\n margin-bottom: var(--spacing-xs);\n background: transparent !important;\n border: none !important;\n min-width: 100%;\n \n &:first-child {\n padding: var(--spacing-xs) 0 0 var(--spacing-xs);\n }\n\n &:last-child {\n padding-right: var(--spacing-xs);\n }\n\n &:before {\n content: attr(data-label) \": \";\n font-weight: bold;\n padding-right: var(--spacing-xs);\n }\n\n > span {\n flex: 1;\n }\n \n ", "\n "])), _ref15 => {
|
|
537
412
|
let {
|
|
538
413
|
custom
|
|
539
414
|
} = _ref15;
|
|
540
|
-
return custom && (0, _styledComponents.css)
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
&:last-child {
|
|
546
|
-
padding: 0;
|
|
547
|
-
position: absolute;
|
|
548
|
-
right: 0.75rem;
|
|
549
|
-
top: var(--spacing-xs);
|
|
550
|
-
justify-content: flex-end;
|
|
551
|
-
}
|
|
552
|
-
`;
|
|
553
|
-
}}
|
|
554
|
-
`}
|
|
555
|
-
`;
|
|
556
|
-
const DragHandle = _styledComponents.default.div`
|
|
557
|
-
display: flex;
|
|
558
|
-
align-items: center;
|
|
559
|
-
justify-content: center;
|
|
560
|
-
width: var(--spacing);
|
|
561
|
-
height: var(--spacing);
|
|
562
|
-
position: absolute;
|
|
563
|
-
left: calc(100% + var(--spacing-xs));
|
|
564
|
-
cursor: grab;
|
|
565
|
-
top: 50%;
|
|
566
|
-
transform: translateY(-50%);
|
|
567
|
-
`;
|
|
415
|
+
return custom && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n &:last-child:before {\n display: none;\n }\n\n &:last-child {\n padding: 0;\n position: absolute;\n right: 0.75rem;\n top: var(--spacing-xs);\n justify-content: flex-end;\n }\n "])));
|
|
416
|
+
}));
|
|
417
|
+
const DragHandle = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: var(--spacing);\n height: var(--spacing);\n position: absolute;\n left: calc(100% + var(--spacing-xs));\n cursor: grab;\n top: 50%;\n transform: translateY(-50%);\n"])));
|
|
568
418
|
var _default = exports.default = Table;
|
|
@@ -5,58 +5,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
8
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
10
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
-
|
|
11
|
-
position: relative
|
|
12
|
-
font-size: var(--font-body1);
|
|
13
|
-
font-weight: var(--font-bold);
|
|
14
|
-
width: ${_ref => {
|
|
11
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
|
+
const BaseTableHeadCell = _styledComponents.default.th(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n font-size: var(--font-body1);\n font-weight: var(--font-bold);\n width: ", ";\n padding: var(--spacing-s) var(--spacing-xs);\n\n > div {\n display: flex;\n\n > span {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n }\n\n ", "\n\n ", "\n"])), _ref => {
|
|
15
13
|
let {
|
|
16
14
|
width
|
|
17
15
|
} = _ref;
|
|
18
16
|
return width || 'auto';
|
|
19
|
-
}
|
|
20
|
-
padding: var(--spacing-s) var(--spacing-xs);
|
|
21
|
-
|
|
22
|
-
> div {
|
|
23
|
-
display: flex;
|
|
24
|
-
|
|
25
|
-
> span {
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
text-overflow: ellipsis;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
${_ref2 => {
|
|
17
|
+
}, _ref2 => {
|
|
33
18
|
let {
|
|
34
19
|
sortable
|
|
35
20
|
} = _ref2;
|
|
36
|
-
return sortable && (0, _styledComponents.css)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
> div > span {
|
|
40
|
-
max-width: calc(100% - 1rem);
|
|
41
|
-
padding-right: var(--spacing-xs);
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
44
|
-
}}
|
|
45
|
-
|
|
46
|
-
${_ref3 => {
|
|
21
|
+
return sortable && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n cursor: pointer;\n\n > div > span {\n max-width: calc(100% - 1rem);\n padding-right: var(--spacing-xs);\n }\n "])));
|
|
22
|
+
}, _ref3 => {
|
|
47
23
|
let {
|
|
48
24
|
align
|
|
49
25
|
} = _ref3;
|
|
50
26
|
switch (align) {
|
|
51
27
|
case 'center':
|
|
52
|
-
return (0, _styledComponents.css)
|
|
53
|
-
> div {
|
|
54
|
-
justify-content: center;
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
28
|
+
return (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n > div {\n justify-content: center;\n }\n "])));
|
|
57
29
|
default:
|
|
58
30
|
break;
|
|
59
31
|
}
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
32
|
+
});
|
|
62
33
|
var _default = exports.default = BaseTableHeadCell;
|
|
@@ -6,19 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _TableFooter = _interopRequireDefault(require("./TableFooter"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _templateObject;
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
position: sticky
|
|
12
|
-
bottom: 0;
|
|
13
|
-
height: 48px;
|
|
14
|
-
padding: 0 var(--spacing-xs);
|
|
15
|
-
border-top: 1px solid var(--border-color);
|
|
16
|
-
border-bottom: 1px solid var(--border-color);
|
|
17
|
-
background: ${_ref => {
|
|
11
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
|
+
const GridTableFooter = (0, _styledComponents.default)(_TableFooter.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: sticky;\n bottom: 0;\n height: 48px;\n padding: 0 var(--spacing-xs);\n border-top: 1px solid var(--border-color);\n border-bottom: 1px solid var(--border-color);\n background: ", ";\n"])), _ref => {
|
|
18
13
|
let {
|
|
19
14
|
backgroundReverse
|
|
20
15
|
} = _ref;
|
|
21
16
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
17
|
+
});
|
|
24
18
|
var _default = exports.default = GridTableFooter;
|
|
@@ -6,15 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _BaseTableHeadCell = _interopRequireDefault(require("./BaseTableHeadCell"));
|
|
9
|
+
var _templateObject;
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
border-top: 1px solid var(--border-color)
|
|
12
|
-
border-bottom: 1px solid var(--border-color);
|
|
13
|
-
background: ${_ref => {
|
|
11
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
|
+
const GridTableHeadCell = (0, _styledComponents.default)(_BaseTableHeadCell.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top: 1px solid var(--border-color);\n border-bottom: 1px solid var(--border-color);\n background: ", ";\n"])), _ref => {
|
|
14
13
|
let {
|
|
15
14
|
backgroundReverse
|
|
16
15
|
} = _ref;
|
|
17
16
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
17
|
+
});
|
|
20
18
|
var _default = exports.default = GridTableHeadCell;
|
|
@@ -7,7 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
var _templateObject;
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
13
|
const Resizer = _ref => {
|
|
12
14
|
let {
|
|
13
15
|
index,
|
|
@@ -21,7 +23,7 @@ const Resizer = _ref => {
|
|
|
21
23
|
if (targetWidth < 1) {
|
|
22
24
|
targetWidth = 1;
|
|
23
25
|
}
|
|
24
|
-
parentNode.style.width =
|
|
26
|
+
parentNode.style.width = "".concat(targetWidth, "px");
|
|
25
27
|
if (typeof onResize === 'function') {
|
|
26
28
|
onResize(index, targetWidth);
|
|
27
29
|
}
|
|
@@ -56,22 +58,5 @@ const Resizer = _ref => {
|
|
|
56
58
|
onMouseDown: initResize
|
|
57
59
|
});
|
|
58
60
|
};
|
|
59
|
-
const ColResize = _styledComponents.default.div
|
|
60
|
-
position: absolute;
|
|
61
|
-
right: 0;
|
|
62
|
-
top: 0;
|
|
63
|
-
z-index: 1;
|
|
64
|
-
height: 100%;
|
|
65
|
-
|
|
66
|
-
&::after {
|
|
67
|
-
content: '';
|
|
68
|
-
width: 8px;
|
|
69
|
-
margin-right: -4px;
|
|
70
|
-
cursor: col-resize;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:hover::after {
|
|
74
|
-
background: var(--color-hover);
|
|
75
|
-
}
|
|
76
|
-
`;
|
|
61
|
+
const ColResize = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n height: 100%;\n\n &::after {\n content: '';\n width: 8px;\n margin-right: -4px;\n cursor: col-resize;\n }\n\n &:hover::after {\n background: var(--color-hover);\n }\n"])));
|
|
77
62
|
var _default = exports.default = Resizer;
|
|
@@ -5,27 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
display: flex
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
|
|
14
|
-
${_ref => {
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
+
const TableFooter = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n\n ", "\n"])), _ref => {
|
|
15
12
|
let {
|
|
16
13
|
center
|
|
17
14
|
} = _ref;
|
|
18
|
-
return center &&
|
|
19
|
-
|
|
20
|
-
justify-content: center;
|
|
21
|
-
`;
|
|
22
|
-
}}
|
|
23
|
-
|
|
24
|
-
${_ref2 => {
|
|
15
|
+
return center && "\n flex-direction: column;\n justify-content: center;\n ";
|
|
16
|
+
}, _ref2 => {
|
|
25
17
|
let {
|
|
26
18
|
enableRowDrag
|
|
27
19
|
} = _ref2;
|
|
28
20
|
return enableRowDrag && 'padding-right: calc(1.5rem + 0.5rem);';
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
21
|
+
});
|
|
31
22
|
var _default = exports.default = TableFooter;
|
|
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
font-size: var(--font-body2);
|
|
11
|
-
color: var(--font-on-background);
|
|
12
|
-
`;
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
+
const TableFooterInfo = _styledComponents.default.p(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: var(--font-body2);\n color: var(--font-on-background);\n"])));
|
|
13
12
|
var _default = exports.default = TableFooterInfo;
|
|
@@ -5,29 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
display: flex
|
|
11
|
-
|
|
12
|
-
${_ref => {
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
+
const TableFooterPager = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n\n ", "\n"])), _ref => {
|
|
13
12
|
let {
|
|
14
13
|
center
|
|
15
14
|
} = _ref;
|
|
16
15
|
if (center) {
|
|
17
|
-
return
|
|
18
|
-
flex-wrap: wrap;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
|
|
21
|
-
> * {
|
|
22
|
-
margin-top: var(--spacing-xs);
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
16
|
+
return "\n flex-wrap: wrap;\n justify-content: center;\n\n > * {\n margin-top: var(--spacing-xs);\n }\n ";
|
|
25
17
|
}
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
margin-left: var(--spacing-xs);
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
31
|
-
}}
|
|
32
|
-
`;
|
|
18
|
+
return "\n > :last-child {\n margin-left: var(--spacing-xs);\n }\n ";
|
|
19
|
+
});
|
|
33
20
|
var _default = exports.default = TableFooterPager;
|
|
@@ -6,14 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _BaseTableHeadCell = _interopRequireDefault(require("./BaseTableHeadCell"));
|
|
9
|
+
var _templateObject;
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
&:first-child {
|
|
12
|
-
padding-left: var(--spacing);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&:last-child {
|
|
16
|
-
padding-right: var(--spacing);
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
11
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
|
+
const TableHeadCell = (0, _styledComponents.default)(_BaseTableHeadCell.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &:first-child {\n padding-left: var(--spacing);\n }\n\n &:last-child {\n padding-right: var(--spacing);\n }\n"])));
|
|
19
13
|
var _default = exports.default = TableHeadCell;
|