@cashub/ui 0.46.1 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Tab/TabList.js +38 -26
- package/Tab/TabPanel.js +13 -20
- package/Tab/TabTab.js +36 -24
- package/Tab/index.js +15 -1
- package/Tab/subComponent/TabListV2.js +25 -0
- package/Tab/subComponent/TabPanelV2.js +52 -0
- package/Tab/subComponent/TabTabV2.js +63 -0
- package/VerticalTab/TabList.js +13 -18
- package/VerticalTab/TabPanel.js +16 -20
- package/VerticalTab/TabTab.js +40 -21
- package/VerticalTab/VerticalTab.js +8 -4
- package/alert/Alert.js +12 -5
- package/animate/Collapse.js +5 -7
- package/animate/Loader.js +18 -7
- package/animate/PulseRing.js +18 -5
- package/animate/Spinner.js +8 -3
- package/backdrop/BaseBackdrop.js +9 -3
- package/backdrop/LoadingBackdrop.js +7 -3
- package/backdrop/ModalBackdrop.js +5 -3
- package/badge/Badge.js +15 -3
- package/badge/BadgeDot.js +8 -3
- package/badge/BadgeFill.js +24 -6
- package/badge/BadgeWithText.js +13 -3
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +42 -3
- package/button/Button.js +88 -20
- package/button/ButtonGroup.js +33 -9
- package/button/IconButton.js +37 -10
- package/button/ScrollToTopButton.js +12 -4
- package/callout/Callout.js +37 -8
- package/chart/BarChart.js +10 -17
- package/chart/DoughnutChart.js +34 -20
- package/chart/LineChart.js +14 -20
- package/chart/SingleBarChart.js +22 -5
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +7 -7
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/container/FlexContainer.js +15 -7
- package/cropper/Cropper.js +1 -2
- package/datetimePicker/DatePicker.js +80 -26
- package/datetimePicker/DatePickerV2.js +95 -36
- package/datetimePicker/DatetimePicker.js +174 -11
- package/datetimePicker/DatetimePickerV2.js +87 -33
- package/datetimePicker/DatetimePickerV3.js +174 -11
- package/datetimePicker/TimeInput.js +35 -10
- package/datetimePicker/TimePicker.js +77 -22
- package/datetimePicker/TimePickerStyle.js +53 -3
- package/datetimePicker/TimePickerV2.js +54 -21
- package/datetimePicker/accordion/Month.js +93 -16
- package/datetimePicker/accordion/Year.js +96 -18
- package/datetimePicker/hooks/useChangeNumber.js +3 -6
- package/datetimePicker/hooks/useDecrease.js +3 -6
- package/datetimePicker/hooks/useIncrease.js +3 -6
- package/datetimePicker/subComponent/Accordion.js +101 -20
- package/descriptionList/DescriptionDetail.js +15 -4
- package/descriptionList/DescriptionList.js +12 -4
- package/descriptionList/DescriptionTerm.js +5 -3
- package/divider/Divider.js +15 -6
- package/dropdown/DropdownButtonOption.js +22 -6
- package/dropdown/DropdownContent.js +29 -15
- package/dropdown/DropdownDivOption.js +17 -3
- package/dropdown/DropdownLinkOption.js +14 -3
- package/dropdown/DropdownToggle.js +7 -15
- package/dropzone/FileDropzone.js +121 -22
- package/dropzone/ImageDropzone.js +83 -14
- package/dropzone/subComponent/Message.js +11 -4
- package/figure/IconFigure.js +16 -7
- package/figure/ImageFigure.js +19 -6
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +74 -13
- package/form/Fieldset.js +9 -3
- package/form/FormItem.js +10 -5
- package/form/Input.js +40 -7
- package/form/Label.js +34 -10
- package/form/MutedText.js +8 -4
- package/form/PasswordInput.js +20 -13
- package/form/RadioButton.js +55 -8
- package/form/SearchSelect.js +64 -12
- package/form/Searchbox.js +45 -19
- package/form/Slider.js +28 -10
- package/form/SwitchButton.js +48 -14
- package/form/Textarea.js +30 -3
- package/form/TreeView.js +13 -6
- package/grid/Column.js +23 -10
- package/grid/Grid.js +14 -6
- package/heading/Heading1.js +8 -4
- package/heading/Heading2.js +11 -5
- package/heading/Heading3.js +20 -8
- package/iconbox/ApplicationIconBox.js +48 -12
- package/iconbox/IconBox.js +31 -7
- package/iconbox/IconBoxV2.js +33 -8
- package/iconbox/subComponent/IconBoxFigure.js +17 -9
- package/iconbox/subComponent/IconBoxImage.js +21 -8
- package/image/ImageFluid.js +7 -3
- package/image/UploadImage.js +66 -18
- package/index.js +8 -1
- package/jsoneditor/JsonEditor.js +121 -15
- package/keyframe/Pulse.js +13 -3
- package/keyframe/Spin.js +5 -3
- package/layout/Aside.js +30 -5
- package/layout/Backdrop.js +8 -4
- package/layout/Container.js +21 -5
- package/layout/Footer.js +26 -7
- package/layout/Sidebar.jsx +33 -3
- package/link/LinkSpan.js +37 -19
- package/map/GoogleMap.js +3 -7
- package/map/GoogleReverseGeolocation.js +6 -3
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +16 -4
- package/map/subComponent/GoogleMapPopup.js +7 -10
- package/map/subComponent/GoogleMapWrapper.js +8 -15
- package/map/subComponent/LeafletDrawControl.js +9 -7
- package/map/subComponent/LeafletMapContainer.js +159 -4
- package/modal/StateModal.js +49 -28
- package/modal/TitleModal.js +70 -29
- package/package.json +1 -1
- package/page/Disclaimer.js +119 -3
- package/paginate/Paginate.js +54 -12
- package/popover/Popover.js +30 -25
- package/qrcode/QRCode.js +20 -6
- package/qrcode/QRCodeContainter.js +12 -4
- package/ribbon/Ribbon.js +29 -4
- package/section/Section.js +68 -20
- package/section/SectionBody.js +29 -8
- package/section/SectionHeader.js +36 -11
- package/section/SectionToolbar.js +9 -3
- package/section/SectionToolbarItem.js +8 -3
- package/select/InputSelect.js +16 -23
- package/select/Select.js +112 -43
- package/select/subComponent/Checkbox.js +24 -5
- package/select/subComponent/Footer.js +4 -3
- package/select/subComponent/ListBox.js +12 -5
- package/select/subComponent/Option.js +27 -7
- package/select/subComponent/OptionGroup.js +13 -3
- package/select/subComponent/Options.js +18 -5
- package/select/subComponent/SearchBox.js +34 -12
- package/select/subComponent/SelectedMultipleTags.js +21 -3
- package/select/subComponent/SelectedMultipleText.js +19 -4
- package/select/subComponent/SelectedSingle.js +7 -3
- package/styles/GlobalStyle.js +156 -45
- package/styles/mixin/backgroundColor.js +16 -8
- package/styles/mixin/borderColor.js +13 -7
- package/styles/mixin/color.js +13 -7
- package/styles/mixin/colorOnBackground.js +13 -7
- package/styles/mixin/inputPlaceholder.js +20 -3
- package/styles/mixin/media.js +5 -3
- package/styles/mixin/rounded.js +10 -6
- package/styles/mixin/scrollbar.js +13 -3
- package/styles/theme/dark.theme.js +15 -14
- package/styles/theme/light.theme.js +15 -14
- package/styles/theme/white.theme.js +15 -14
- package/table/GridTable.js +71 -33
- package/table/ImageBox.js +15 -5
- package/table/InfiniteGridTable.js +92 -46
- package/table/PermissionTable.js +32 -10
- package/table/SimpleGridTable.js +143 -0
- package/table/Table.js +198 -48
- package/table/__mock__/columns.js +1 -1
- package/table/index.js +7 -0
- package/table/subComponent/BaseTableHeadCell.js +37 -8
- package/table/subComponent/GridTableFooter.js +10 -4
- package/table/subComponent/GridTableHeadCell.js +6 -4
- package/table/subComponent/Resizer.js +19 -4
- package/table/subComponent/TableFooter.js +15 -6
- package/table/subComponent/TableFooterInfo.js +4 -3
- package/table/subComponent/TableFooterPager.js +19 -6
- package/table/subComponent/TableHeadCell.js +9 -3
- package/table/subComponent/TableSort.js +17 -7
- package/tagify/TagifyStyle.js +49 -3
- package/tagify/Tags.js +37 -21
- package/tagify/templates/getCreateButtonTemplate.js +5 -2
- package/text/Paragraph.js +50 -12
- package/timeline/Timeline.js +94 -17
- package/toast/CustomToastContainer.js +35 -3
- package/toast/MessageContainer.js +22 -4
- package/tooltip/Tooltip.js +47 -19
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +38 -3
- package/wizard/Wizard.js +115 -6
|
@@ -4,11 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
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; }
|
|
8
|
-
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; }
|
|
9
|
-
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; }
|
|
10
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
-
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); }
|
|
12
7
|
// Currently, some style is all same for all viewport size
|
|
13
8
|
// Common color style
|
|
14
9
|
const colorStyle = {
|
|
@@ -50,10 +45,12 @@ const fontStyle = {
|
|
|
50
45
|
|
|
51
46
|
// Theme stylesheet
|
|
52
47
|
const darkTheme = {
|
|
53
|
-
desktop:
|
|
48
|
+
desktop: {
|
|
49
|
+
...fontStyle,
|
|
50
|
+
...colorStyle,
|
|
54
51
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
55
52
|
borderColor: colorStyle.colorGrey,
|
|
56
|
-
borderColorTransparent:
|
|
53
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
57
54
|
borderWidth: '1px',
|
|
58
55
|
borderRadiusS: '0.5rem',
|
|
59
56
|
borderRadius: '1rem',
|
|
@@ -63,11 +60,13 @@ const darkTheme = {
|
|
|
63
60
|
spacerS: '1rem',
|
|
64
61
|
spacer: '1.5rem',
|
|
65
62
|
spacerL: '2rem'
|
|
66
|
-
}
|
|
67
|
-
tablet:
|
|
63
|
+
},
|
|
64
|
+
tablet: {
|
|
65
|
+
...fontStyle,
|
|
66
|
+
...colorStyle,
|
|
68
67
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
69
68
|
borderColor: colorStyle.colorGrey,
|
|
70
|
-
borderColorTransparent:
|
|
69
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
71
70
|
borderWidth: '1px',
|
|
72
71
|
borderRadiusS: '0.5rem',
|
|
73
72
|
borderRadius: '1rem',
|
|
@@ -77,11 +76,13 @@ const darkTheme = {
|
|
|
77
76
|
spacerS: '0.75rem',
|
|
78
77
|
spacer: '1rem',
|
|
79
78
|
spacerL: '1.25rem'
|
|
80
|
-
}
|
|
81
|
-
mobile:
|
|
79
|
+
},
|
|
80
|
+
mobile: {
|
|
81
|
+
...fontStyle,
|
|
82
|
+
...colorStyle,
|
|
82
83
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
83
84
|
borderColor: colorStyle.colorGrey,
|
|
84
|
-
borderColorTransparent:
|
|
85
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
85
86
|
borderWidth: '1px',
|
|
86
87
|
borderRadiusS: '0.5rem',
|
|
87
88
|
borderRadius: '1rem',
|
|
@@ -91,6 +92,6 @@ const darkTheme = {
|
|
|
91
92
|
spacerS: '0.75rem',
|
|
92
93
|
spacer: '1rem',
|
|
93
94
|
spacerL: '1.25rem'
|
|
94
|
-
}
|
|
95
|
+
}
|
|
95
96
|
};
|
|
96
97
|
var _default = exports.default = darkTheme;
|
|
@@ -4,11 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
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; }
|
|
8
|
-
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; }
|
|
9
|
-
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; }
|
|
10
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
-
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); }
|
|
12
7
|
// Currently, some style is all same for all viewport size
|
|
13
8
|
// Common color style
|
|
14
9
|
const colorStyle = {
|
|
@@ -50,10 +45,12 @@ const fontStyle = {
|
|
|
50
45
|
|
|
51
46
|
// Theme stylesheet
|
|
52
47
|
const lightTheme = {
|
|
53
|
-
desktop:
|
|
48
|
+
desktop: {
|
|
49
|
+
...fontStyle,
|
|
50
|
+
...colorStyle,
|
|
54
51
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
55
52
|
borderColor: colorStyle.colorGrey,
|
|
56
|
-
borderColorTransparent:
|
|
53
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
57
54
|
borderWidth: '1px',
|
|
58
55
|
borderRadiusS: '0.5rem',
|
|
59
56
|
borderRadius: '1rem',
|
|
@@ -63,11 +60,13 @@ const lightTheme = {
|
|
|
63
60
|
spacerS: '1rem',
|
|
64
61
|
spacer: '1.5rem',
|
|
65
62
|
spacerL: '2rem'
|
|
66
|
-
}
|
|
67
|
-
tablet:
|
|
63
|
+
},
|
|
64
|
+
tablet: {
|
|
65
|
+
...fontStyle,
|
|
66
|
+
...colorStyle,
|
|
68
67
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
69
68
|
borderColor: colorStyle.colorGrey,
|
|
70
|
-
borderColorTransparent:
|
|
69
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
71
70
|
borderWidth: '1px',
|
|
72
71
|
borderRadiusS: '0.5rem',
|
|
73
72
|
borderRadius: '1rem',
|
|
@@ -77,11 +76,13 @@ const lightTheme = {
|
|
|
77
76
|
spacerS: '0.75rem',
|
|
78
77
|
spacer: '1rem',
|
|
79
78
|
spacerL: '1.25rem'
|
|
80
|
-
}
|
|
81
|
-
mobile:
|
|
79
|
+
},
|
|
80
|
+
mobile: {
|
|
81
|
+
...fontStyle,
|
|
82
|
+
...colorStyle,
|
|
82
83
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
83
84
|
borderColor: colorStyle.colorGrey,
|
|
84
|
-
borderColorTransparent:
|
|
85
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
85
86
|
borderWidth: '1px',
|
|
86
87
|
borderRadiusS: '0.5rem',
|
|
87
88
|
borderRadius: '1rem',
|
|
@@ -91,6 +92,6 @@ const lightTheme = {
|
|
|
91
92
|
spacerS: '0.75rem',
|
|
92
93
|
spacer: '1rem',
|
|
93
94
|
spacerL: '1.25rem'
|
|
94
|
-
}
|
|
95
|
+
}
|
|
95
96
|
};
|
|
96
97
|
var _default = exports.default = lightTheme;
|
|
@@ -4,11 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
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; }
|
|
8
|
-
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; }
|
|
9
|
-
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; }
|
|
10
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
-
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); }
|
|
12
7
|
// Currently, some style is all same for all viewport size
|
|
13
8
|
// Common color style
|
|
14
9
|
const colorStyle = {
|
|
@@ -50,10 +45,12 @@ const fontStyle = {
|
|
|
50
45
|
|
|
51
46
|
// Theme stylesheet
|
|
52
47
|
const whiteTheme = {
|
|
53
|
-
desktop:
|
|
48
|
+
desktop: {
|
|
49
|
+
...fontStyle,
|
|
50
|
+
...colorStyle,
|
|
54
51
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
55
52
|
borderColor: colorStyle.colorGrey,
|
|
56
|
-
borderColorTransparent:
|
|
53
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
57
54
|
borderWidth: '1px',
|
|
58
55
|
borderRadiusS: '0.5rem',
|
|
59
56
|
borderRadius: '1rem',
|
|
@@ -63,11 +60,13 @@ const whiteTheme = {
|
|
|
63
60
|
spacerS: '1rem',
|
|
64
61
|
spacer: '1.5rem',
|
|
65
62
|
spacerL: '2rem'
|
|
66
|
-
}
|
|
67
|
-
tablet:
|
|
63
|
+
},
|
|
64
|
+
tablet: {
|
|
65
|
+
...fontStyle,
|
|
66
|
+
...colorStyle,
|
|
68
67
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
69
68
|
borderColor: colorStyle.colorGrey,
|
|
70
|
-
borderColorTransparent:
|
|
69
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
71
70
|
borderWidth: '1px',
|
|
72
71
|
borderRadiusS: '0.5rem',
|
|
73
72
|
borderRadius: '1rem',
|
|
@@ -77,11 +76,13 @@ const whiteTheme = {
|
|
|
77
76
|
spacerS: '0.75rem',
|
|
78
77
|
spacer: '1rem',
|
|
79
78
|
spacerL: '1.25rem'
|
|
80
|
-
}
|
|
81
|
-
mobile:
|
|
79
|
+
},
|
|
80
|
+
mobile: {
|
|
81
|
+
...fontStyle,
|
|
82
|
+
...colorStyle,
|
|
82
83
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
83
84
|
borderColor: colorStyle.colorGrey,
|
|
84
|
-
borderColorTransparent:
|
|
85
|
+
borderColorTransparent: `${colorStyle.colorGrey}80`,
|
|
85
86
|
borderWidth: '1px',
|
|
86
87
|
borderRadiusS: '0.5rem',
|
|
87
88
|
borderRadius: '1rem',
|
|
@@ -91,6 +92,6 @@ const whiteTheme = {
|
|
|
91
92
|
spacerS: '0.75rem',
|
|
92
93
|
spacer: '1rem',
|
|
93
94
|
spacerL: '1.25rem'
|
|
94
|
-
}
|
|
95
|
+
}
|
|
95
96
|
};
|
|
96
97
|
var _default = exports.default = whiteTheme;
|
package/table/GridTable.js
CHANGED
|
@@ -17,17 +17,7 @@ var _Paginate = _interopRequireDefault(require("../paginate/Paginate"));
|
|
|
17
17
|
var _Select = _interopRequireDefault(require("../select/Select"));
|
|
18
18
|
var _Popover = _interopRequireDefault(require("../popover/Popover"));
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
21
|
-
const _excluded = ["title", "fieldName", "render", "custom"];
|
|
22
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
24
|
-
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; }
|
|
25
|
-
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; }
|
|
26
|
-
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; }
|
|
27
|
-
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; }
|
|
28
|
-
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; }
|
|
29
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
30
|
-
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); }
|
|
31
21
|
const GridTable = _ref => {
|
|
32
22
|
let {
|
|
33
23
|
columns,
|
|
@@ -56,7 +46,10 @@ const GridTable = _ref => {
|
|
|
56
46
|
info: 'Showing _START_ to _END_ of _TOTAL_ entries',
|
|
57
47
|
empty: 'No data available in table'
|
|
58
48
|
};
|
|
59
|
-
return
|
|
49
|
+
return {
|
|
50
|
+
...defaultTexts,
|
|
51
|
+
...translation
|
|
52
|
+
};
|
|
60
53
|
}, [translation]);
|
|
61
54
|
const handleSortChange = (0, _react.useCallback)(columnName => {
|
|
62
55
|
if (onSortChange) {
|
|
@@ -134,7 +127,7 @@ const GridTable = _ref => {
|
|
|
134
127
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Resizer.default, {
|
|
135
128
|
onResize: handleResize
|
|
136
129
|
})]
|
|
137
|
-
},
|
|
130
|
+
}, `TH${index}`);
|
|
138
131
|
});
|
|
139
132
|
tableHeads.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_GridTableHeadCell.default, {
|
|
140
133
|
role: "presentation",
|
|
@@ -150,12 +143,12 @@ const GridTable = _ref => {
|
|
|
150
143
|
return data.map((row, rowIndex) => {
|
|
151
144
|
const tds = columns.map((column, columnIndex) => {
|
|
152
145
|
const {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
146
|
+
title,
|
|
147
|
+
fieldName,
|
|
148
|
+
render,
|
|
149
|
+
custom,
|
|
150
|
+
...props
|
|
151
|
+
} = column;
|
|
159
152
|
const key = rowIndex + columnIndex.toString();
|
|
160
153
|
let renderedData = null;
|
|
161
154
|
if (custom && render) {
|
|
@@ -169,12 +162,12 @@ const GridTable = _ref => {
|
|
|
169
162
|
children: render ? render(row[fieldName], row) : String(row[fieldName])
|
|
170
163
|
});
|
|
171
164
|
}
|
|
172
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TD,
|
|
165
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TD, {
|
|
173
166
|
"data-label": title,
|
|
174
|
-
backgroundReverse: backgroundReverse
|
|
175
|
-
|
|
167
|
+
backgroundReverse: backgroundReverse,
|
|
168
|
+
...props,
|
|
176
169
|
children: renderedData
|
|
177
|
-
}
|
|
170
|
+
}, columnIndex);
|
|
178
171
|
});
|
|
179
172
|
tds.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(TD, {
|
|
180
173
|
role: "presentation",
|
|
@@ -264,35 +257,80 @@ const GridTable = _ref => {
|
|
|
264
257
|
})]
|
|
265
258
|
});
|
|
266
259
|
};
|
|
267
|
-
const TableWrapper = _styledComponents.default.div
|
|
260
|
+
const TableWrapper = _styledComponents.default.div`
|
|
261
|
+
overflow: hidden;
|
|
262
|
+
background: ${_ref2 => {
|
|
268
263
|
let {
|
|
269
264
|
backgroundReverse
|
|
270
265
|
} = _ref2;
|
|
271
266
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
const
|
|
267
|
+
}};
|
|
268
|
+
`;
|
|
269
|
+
const ResponsiveTable = _styledComponents.default.table`
|
|
270
|
+
/* make fixed width work */
|
|
271
|
+
width: 0px;
|
|
272
|
+
color: var(--font-on-background);
|
|
273
|
+
table-layout: fixed;
|
|
274
|
+
border-collapse: collapse;
|
|
275
|
+
`;
|
|
276
|
+
const TD = _styledComponents.default.td`
|
|
277
|
+
height: 48px;
|
|
278
|
+
padding: 0 var(--spacing-xs);
|
|
279
|
+
border-top: 1px solid var(--border-color);
|
|
280
|
+
border-right: 1px solid var(--border-color);
|
|
281
|
+
border-bottom: 1px solid var(--border-color);
|
|
282
|
+
text-align: ${_ref3 => {
|
|
275
283
|
let {
|
|
276
284
|
center
|
|
277
285
|
} = _ref3;
|
|
278
286
|
return center ? 'center' : 'left';
|
|
279
|
-
}
|
|
287
|
+
}};
|
|
288
|
+
background: ${_ref4 => {
|
|
280
289
|
let {
|
|
281
290
|
backgroundReverse
|
|
282
291
|
} = _ref4;
|
|
283
292
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
284
|
-
}
|
|
285
|
-
|
|
293
|
+
}};
|
|
294
|
+
|
|
295
|
+
&:last-child {
|
|
296
|
+
border-right: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
> span {
|
|
300
|
+
display: inline-block;
|
|
301
|
+
width: 100%;
|
|
302
|
+
padding: 0 2px;
|
|
303
|
+
overflow: hidden;
|
|
304
|
+
white-space: pre;
|
|
305
|
+
text-overflow: ellipsis;
|
|
306
|
+
}
|
|
307
|
+
`;
|
|
308
|
+
const Scrollbar = _styledComponents.default.div`
|
|
309
|
+
position: sticky;
|
|
310
|
+
bottom: 48px;
|
|
311
|
+
width: 100%;
|
|
312
|
+
overflow: auto;
|
|
313
|
+
background: ${_ref5 => {
|
|
286
314
|
let {
|
|
287
315
|
backgroundReverse
|
|
288
316
|
} = _ref5;
|
|
289
317
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
290
|
-
}
|
|
318
|
+
}};
|
|
319
|
+
|
|
320
|
+
::before {
|
|
321
|
+
display: block;
|
|
322
|
+
content: '';
|
|
323
|
+
width: ${_ref6 => {
|
|
291
324
|
let {
|
|
292
325
|
width
|
|
293
326
|
} = _ref6;
|
|
294
|
-
return
|
|
295
|
-
}
|
|
327
|
+
return `${width}px`;
|
|
328
|
+
}};
|
|
329
|
+
height: 1px;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
${(0, _scrollbar.default)({
|
|
296
333
|
size: 'large'
|
|
297
|
-
})
|
|
334
|
+
})}
|
|
335
|
+
`;
|
|
298
336
|
var _default = exports.default = GridTable;
|
package/table/ImageBox.js
CHANGED
|
@@ -8,9 +8,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
8
8
|
var _IconFigure = _interopRequireDefault(require("../figure/IconFigure"));
|
|
9
9
|
var _ImageFluid = _interopRequireDefault(require("../image/ImageFluid"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
var _templateObject, _templateObject2;
|
|
12
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
14
12
|
const ImageBox = _ref => {
|
|
15
13
|
let {
|
|
16
14
|
image,
|
|
@@ -22,7 +20,7 @@ const ImageBox = _ref => {
|
|
|
22
20
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageFluid.default, {
|
|
23
21
|
crossOrigin: "anonymous",
|
|
24
22
|
src: image,
|
|
25
|
-
alt:
|
|
23
|
+
alt: `${text}'s pic`,
|
|
26
24
|
roundedCircle: true
|
|
27
25
|
})
|
|
28
26
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
@@ -30,6 +28,18 @@ const ImageBox = _ref => {
|
|
|
30
28
|
})]
|
|
31
29
|
});
|
|
32
30
|
};
|
|
33
|
-
const Wrapper = _styledComponents.default.div
|
|
34
|
-
|
|
31
|
+
const Wrapper = _styledComponents.default.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
|
|
35
|
+
> figure {
|
|
36
|
+
flex: 0 0 auto;
|
|
37
|
+
margin-right: var(--spacing-xs);
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
const Text = _styledComponents.default.span`
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
`;
|
|
35
45
|
var _default = exports.default = ImageBox;
|
|
@@ -12,17 +12,7 @@ var _GridTableHeadCell = _interopRequireDefault(require("./subComponent/GridTabl
|
|
|
12
12
|
var _Resizer = _interopRequireDefault(require("./subComponent/Resizer"));
|
|
13
13
|
var _Popover = _interopRequireDefault(require("../popover/Popover"));
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
16
|
-
const _excluded = ["title", "fieldName", "render", "custom", "width"];
|
|
17
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
|
-
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; }
|
|
22
|
-
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; }
|
|
23
|
-
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; }
|
|
24
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
25
|
-
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); }
|
|
26
16
|
const ROW_HEIGHT = 48;
|
|
27
17
|
const OVER_SCAN_COUNT = 5;
|
|
28
18
|
const InfiniteGridTable = _ref => {
|
|
@@ -50,7 +40,10 @@ const InfiniteGridTable = _ref => {
|
|
|
50
40
|
info: 'Showing _START_ to _END_ of _TOTAL_ entries',
|
|
51
41
|
empty: 'No data available in table'
|
|
52
42
|
};
|
|
53
|
-
return
|
|
43
|
+
return {
|
|
44
|
+
...defaultTexts,
|
|
45
|
+
...translation
|
|
46
|
+
};
|
|
54
47
|
}, [translation]);
|
|
55
48
|
const tableHeight = (0, _react.useMemo)(() => {
|
|
56
49
|
// when data is empty, table will generate a row to show a message
|
|
@@ -100,11 +93,14 @@ const InfiniteGridTable = _ref => {
|
|
|
100
93
|
setTableColumns(previous => {
|
|
101
94
|
return previous.map((column, index) => {
|
|
102
95
|
if (index === targetIndex) {
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
return {
|
|
97
|
+
...column,
|
|
98
|
+
width: `${width}px`
|
|
99
|
+
};
|
|
106
100
|
}
|
|
107
|
-
return
|
|
101
|
+
return {
|
|
102
|
+
...column
|
|
103
|
+
};
|
|
108
104
|
});
|
|
109
105
|
});
|
|
110
106
|
}, []);
|
|
@@ -153,11 +149,11 @@ const InfiniteGridTable = _ref => {
|
|
|
153
149
|
} = column;
|
|
154
150
|
let key = 'TH';
|
|
155
151
|
if (title) {
|
|
156
|
-
key +=
|
|
152
|
+
key += `${key}${title}`;
|
|
157
153
|
} else if (fieldName) {
|
|
158
|
-
key +=
|
|
154
|
+
key += `${key}${fieldName}`;
|
|
159
155
|
} else {
|
|
160
|
-
key +=
|
|
156
|
+
key += `${key}${index}`;
|
|
161
157
|
}
|
|
162
158
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_GridTableHeadCell.default, {
|
|
163
159
|
width: width,
|
|
@@ -193,13 +189,13 @@ const InfiniteGridTable = _ref => {
|
|
|
193
189
|
return visibleData.map((row, rowIndex) => {
|
|
194
190
|
const tds = tableColumns.map((column, columnIndex) => {
|
|
195
191
|
const {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
192
|
+
title,
|
|
193
|
+
fieldName,
|
|
194
|
+
render,
|
|
195
|
+
custom,
|
|
196
|
+
width,
|
|
197
|
+
...props
|
|
198
|
+
} = column;
|
|
203
199
|
const key = rowIndex + columnIndex.toString();
|
|
204
200
|
let renderedData = null;
|
|
205
201
|
if (custom && render) {
|
|
@@ -213,13 +209,13 @@ const InfiniteGridTable = _ref => {
|
|
|
213
209
|
children: render ? render(row[fieldName], row) : String(row[fieldName])
|
|
214
210
|
});
|
|
215
211
|
}
|
|
216
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TD,
|
|
212
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TD, {
|
|
217
213
|
"data-label": title,
|
|
218
214
|
backgroundReverse: backgroundReverse,
|
|
219
|
-
$width: width
|
|
220
|
-
|
|
215
|
+
$width: width,
|
|
216
|
+
...props,
|
|
221
217
|
children: renderedData
|
|
222
|
-
}
|
|
218
|
+
}, columnIndex);
|
|
223
219
|
});
|
|
224
220
|
tds.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(TD, {
|
|
225
221
|
role: "presentation",
|
|
@@ -234,7 +230,7 @@ const InfiniteGridTable = _ref => {
|
|
|
234
230
|
position: 'absolute',
|
|
235
231
|
display: 'flex',
|
|
236
232
|
left: 0,
|
|
237
|
-
top:
|
|
233
|
+
top: `${top}px`
|
|
238
234
|
},
|
|
239
235
|
children: tds
|
|
240
236
|
}, index);
|
|
@@ -266,10 +262,11 @@ const InfiniteGridTable = _ref => {
|
|
|
266
262
|
} = column;
|
|
267
263
|
return title === previousTitle && fieldName === previousFieldName;
|
|
268
264
|
});
|
|
269
|
-
const width =
|
|
270
|
-
return
|
|
265
|
+
const width = previousColumn?.width || column.width;
|
|
266
|
+
return {
|
|
267
|
+
...column,
|
|
271
268
|
width
|
|
272
|
-
}
|
|
269
|
+
};
|
|
273
270
|
});
|
|
274
271
|
});
|
|
275
272
|
}, [columns]);
|
|
@@ -296,7 +293,7 @@ const InfiniteGridTable = _ref => {
|
|
|
296
293
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
297
294
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(TableWrapper, {
|
|
298
295
|
style: {
|
|
299
|
-
height:
|
|
296
|
+
height: `${tableHeight}px`
|
|
300
297
|
},
|
|
301
298
|
ref: wrapperRef,
|
|
302
299
|
backgroundReverse: backgroundReverse,
|
|
@@ -318,40 +315,89 @@ const InfiniteGridTable = _ref => {
|
|
|
318
315
|
})]
|
|
319
316
|
});
|
|
320
317
|
};
|
|
321
|
-
const TableWrapper = _styledComponents.default.div
|
|
318
|
+
const TableWrapper = _styledComponents.default.div`
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
background: ${_ref2 => {
|
|
322
321
|
let {
|
|
323
322
|
backgroundReverse
|
|
324
323
|
} = _ref2;
|
|
325
324
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
const
|
|
325
|
+
}};
|
|
326
|
+
`;
|
|
327
|
+
const ResponsiveTable = _styledComponents.default.table`
|
|
328
|
+
/* make fixed width work */
|
|
329
|
+
position: relative;
|
|
330
|
+
width: 0px;
|
|
331
|
+
color: var(--font-on-background);
|
|
332
|
+
table-layout: fixed;
|
|
333
|
+
border-collapse: collapse;
|
|
334
|
+
`;
|
|
335
|
+
const TD = _styledComponents.default.td`
|
|
336
|
+
align-content: center;
|
|
337
|
+
width: ${_ref3 => {
|
|
329
338
|
let {
|
|
330
339
|
$width
|
|
331
340
|
} = _ref3;
|
|
332
341
|
return $width;
|
|
333
|
-
}
|
|
342
|
+
}};
|
|
343
|
+
height: 48px;
|
|
344
|
+
padding: 0 var(--spacing-xs);
|
|
345
|
+
border-top: 1px solid var(--border-color);
|
|
346
|
+
border-right: 1px solid var(--border-color);
|
|
347
|
+
border-bottom: 1px solid var(--border-color);
|
|
348
|
+
text-align: ${_ref4 => {
|
|
334
349
|
let {
|
|
335
350
|
center
|
|
336
351
|
} = _ref4;
|
|
337
352
|
return center ? 'center' : 'left';
|
|
338
|
-
}
|
|
353
|
+
}};
|
|
354
|
+
background: ${_ref5 => {
|
|
339
355
|
let {
|
|
340
356
|
backgroundReverse
|
|
341
357
|
} = _ref5;
|
|
342
358
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
343
|
-
}
|
|
344
|
-
|
|
359
|
+
}};
|
|
360
|
+
|
|
361
|
+
&:last-child {
|
|
362
|
+
border-right: none;
|
|
363
|
+
padding: 0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
> span {
|
|
367
|
+
display: inline-block;
|
|
368
|
+
width: 100%;
|
|
369
|
+
padding: 0 2px;
|
|
370
|
+
overflow: hidden;
|
|
371
|
+
white-space: pre;
|
|
372
|
+
text-overflow: ellipsis;
|
|
373
|
+
}
|
|
374
|
+
`;
|
|
375
|
+
const Scrollbar = _styledComponents.default.div`
|
|
376
|
+
position: sticky;
|
|
377
|
+
bottom: 0;
|
|
378
|
+
width: 100%;
|
|
379
|
+
overflow: auto;
|
|
380
|
+
background: ${_ref6 => {
|
|
345
381
|
let {
|
|
346
382
|
backgroundReverse
|
|
347
383
|
} = _ref6;
|
|
348
384
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
349
|
-
}
|
|
385
|
+
}};
|
|
386
|
+
|
|
387
|
+
::before {
|
|
388
|
+
display: block;
|
|
389
|
+
content: '';
|
|
390
|
+
width: ${_ref7 => {
|
|
350
391
|
let {
|
|
351
392
|
width
|
|
352
393
|
} = _ref7;
|
|
353
|
-
return
|
|
354
|
-
}
|
|
394
|
+
return `${width}px`;
|
|
395
|
+
}};
|
|
396
|
+
height: 1px;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
${(0, _scrollbar.default)({
|
|
355
400
|
size: 'large'
|
|
356
|
-
})
|
|
401
|
+
})}
|
|
402
|
+
`;
|
|
357
403
|
var _default = exports.default = InfiniteGridTable;
|