@cashub/ui 0.21.0 → 0.21.1
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/Tab.js +9 -13
- package/Tab/TabList.js +14 -32
- package/Tab/TabPanel.js +21 -58
- package/Tab/TabTab.js +20 -40
- package/Tab/index.js +2 -10
- package/Tab/subComponent/TabContext.js +2 -5
- package/animate/Collapse.js +26 -53
- package/animate/Loader.js +21 -26
- package/animate/NumberCounter.js +22 -44
- package/animate/PulseRing.js +9 -21
- package/animate/Spinner.js +2 -10
- package/animate/index.js +5 -11
- package/backdrop/BaseBackdrop.js +2 -9
- package/backdrop/LoadingBackdrop.js +2 -9
- package/backdrop/ModalBackdrop.js +2 -9
- package/backdrop/index.js +3 -7
- package/badge/Badge.js +2 -11
- package/badge/BadgeDot.js +2 -10
- package/badge/BadgeFill.js +15 -20
- package/badge/BadgeWithText.js +6 -13
- package/badge/index.js +4 -9
- package/billing/BarChart.js +10 -17
- package/billing/Grid.js +11 -15
- package/billing/Header2.js +6 -9
- package/billing/Header3.js +9 -16
- package/billing/Paragraph.js +8 -14
- package/billing/ParagraphGroup.js +6 -9
- package/billing/ParagraphText.js +7 -12
- package/billing/Section.js +13 -23
- package/billing/SectionBody.js +5 -8
- package/billing/SectionHeader.js +7 -12
- package/breadcrumb/Breadcrumb.js +11 -21
- package/breadcrumb/index.js +1 -3
- package/button/Button.js +41 -38
- package/button/ButtonGroup.js +21 -18
- package/button/IconButton.js +29 -29
- package/button/ScrollToTopButton.js +12 -39
- package/button/index.js +4 -9
- package/callout/Callout.js +13 -26
- package/callout/index.js +1 -3
- package/chart/BarChart.js +28 -53
- package/chart/DoughnutChart.js +23 -62
- package/chart/LineChart.js +33 -55
- package/chart/SingleBarChart.js +11 -17
- package/chart/index.js +5 -12
- package/chart/utils/customTooltip.js +26 -43
- package/chart/utils/htmlLegendPlugin.js +24 -30
- package/chart/utils/index.js +3 -7
- package/chart/utils/padEmptyChartBar.js +24 -22
- package/container/FlexContainer.js +9 -12
- package/container/index.js +1 -3
- package/cropper/Cropper.js +21 -34
- package/cropper/CropperModalHandler.js +15 -21
- package/cropper/index.js +2 -5
- package/cropper/subComponent/CropImageModal.js +23 -58
- package/datetimePicker/DatePicker.js +103 -217
- package/datetimePicker/DatePickerV2.js +116 -221
- package/datetimePicker/DatetimePicker.js +27 -48
- package/datetimePicker/DatetimePickerV2.js +115 -231
- package/datetimePicker/TimeInput.js +9 -22
- package/datetimePicker/TimePicker.js +94 -151
- package/datetimePicker/TimePickerStyle.js +2 -9
- package/datetimePicker/accordion/Month.js +70 -90
- package/datetimePicker/accordion/Year.js +91 -135
- package/datetimePicker/hooks/index.js +3 -7
- package/datetimePicker/hooks/useChangeNumber.js +14 -27
- package/datetimePicker/hooks/useDecrease.js +19 -35
- package/datetimePicker/hooks/useIncrease.js +19 -35
- package/datetimePicker/index.js +7 -15
- package/datetimePicker/provider/constant.js +2 -3
- package/datetimePicker/subComponent/Accordion.js +108 -158
- package/datetimePicker/subComponent/CustomTimeInput.js +18 -48
- package/datetimePicker/subComponent/DateTimePickerContext.js +2 -5
- package/datetimePicker/utils/GMTDate.js +3 -7
- package/datetimePicker/utils/pad.js +2 -6
- package/datetimePicker/utils/toUTC0.js +3 -6
- package/descriptionList/DescriptionDetail.js +5 -10
- package/descriptionList/DescriptionList.js +5 -10
- package/descriptionList/DescriptionTerm.js +2 -9
- package/descriptionList/index.js +3 -7
- package/divider/Divider.js +9 -12
- package/divider/index.js +1 -3
- package/dropdown/Dropdown.js +28 -65
- package/dropdown/DropdownButtonOption.js +2 -9
- package/dropdown/DropdownContent.js +33 -64
- package/dropdown/DropdownDivOption.js +2 -9
- package/dropdown/DropdownItem.js +10 -16
- package/dropdown/DropdownLinkOption.js +2 -9
- package/dropdown/DropdownToggle.js +18 -38
- package/dropdown/index.js +6 -17
- package/dropdown/subComponent/DropdownContext.js +2 -5
- package/dropzone/FileDropzone.js +148 -302
- package/dropzone/ImageDropzone.js +96 -171
- package/dropzone/index.js +2 -5
- package/dropzone/subComponent/Message.js +7 -14
- package/figure/IconFigure.js +9 -16
- package/figure/ImageFigure.js +11 -17
- package/figure/index.js +2 -5
- package/file/HiddenFileInput.js +5 -14
- package/file/index.js +1 -3
- package/form/Checkbox.js +34 -43
- package/form/FormItem.js +2 -9
- package/form/Input.js +13 -15
- package/form/Label.js +10 -13
- package/form/MutedText.js +5 -10
- package/form/RadioButton.js +20 -32
- package/form/Searchbox.js +21 -65
- package/form/Slider.js +14 -0
- package/form/SwitchButton.js +34 -39
- package/form/Textarea.js +2 -11
- package/form/index.js +9 -19
- package/grid/Column.js +17 -17
- package/grid/Grid.js +13 -14
- package/grid/index.js +2 -5
- package/heading/Heading1.js +5 -10
- package/heading/Heading2.js +9 -12
- package/heading/Heading3.js +21 -18
- package/heading/index.js +3 -7
- package/helmet/Helmet.js +6 -9
- package/helmet/index.js +2 -5
- package/iconbox/ApplicationIconBox.js +25 -31
- package/iconbox/IconBox.js +11 -24
- package/iconbox/IconBoxV2.js +14 -26
- package/iconbox/index.js +3 -7
- package/iconbox/subComponent/IconBoxFigure.js +25 -20
- package/iconbox/subComponent/IconBoxImage.js +15 -18
- package/image/ImageFluid.js +2 -10
- package/image/UploadImage.js +65 -113
- package/image/index.js +2 -5
- package/index.js +44 -130
- package/jsoneditor/JsonEditor.js +10 -32
- package/jsoneditor/index.js +1 -3
- package/keyframe/Pulse.js +2 -7
- package/keyframe/Spin.js +2 -7
- package/link/LinkSpan.js +22 -35
- package/link/index.js +1 -3
- package/map/GoogleMap.js +122 -175
- package/map/GoogleReverseGeolocation.js +79 -186
- package/map/LeafletMap.js +78 -132
- package/map/LeafletReverseGeolocation.js +49 -121
- package/map/index.js +4 -9
- package/map/subComponent/BasicLeafletMap.js +8 -14
- package/map/subComponent/GoogleMapContainer.js +5 -10
- package/map/subComponent/GoogleMapPopup.js +66 -123
- package/map/subComponent/GoogleMapWrapper.js +13 -32
- package/map/subComponent/GoogleMarkerSpiderfier.js +14 -24
- package/map/subComponent/LeafletDrawControl.js +47 -84
- package/map/subComponent/LeafletMapContainer.js +5 -10
- package/map/subComponent/MapSearchBoxControl.js +24 -70
- package/modal/StateModal.js +41 -100
- package/modal/TitleModal.js +89 -190
- package/modal/index.js +2 -5
- package/package.json +1 -1
- package/paginate/Paginate.js +40 -54
- package/paginate/index.js +1 -3
- package/popover/Popover.js +39 -87
- package/popover/index.js +1 -3
- package/qrcode/QRCode.js +10 -23
- package/qrcode/QRCodeContainter.js +8 -16
- package/qrcode/index.js +2 -5
- package/ribbon/Ribbon.js +4 -15
- package/ribbon/index.js +1 -3
- package/section/Section.js +57 -39
- package/section/SectionBody.js +15 -22
- package/section/SectionHeader.js +27 -27
- package/section/SectionToolbar.js +2 -9
- package/section/SectionToolbarItem.js +2 -9
- package/section/index.js +5 -11
- package/select/InputSelect.js +103 -215
- package/select/Select.js +204 -362
- package/select/index.js +2 -5
- package/select/subComponent/ListBox.js +9 -12
- package/select/subComponent/Option.js +8 -16
- package/select/subComponent/OptionGroup.js +2 -9
- package/select/subComponent/Options.js +5 -11
- package/select/subComponent/SearchBox.js +9 -29
- package/select/subComponent/SelectedMultiple.js +8 -16
- package/select/subComponent/SelectedSingle.js +2 -9
- package/styles/GlobalStyle.js +169 -91
- package/styles/config/breakpoint.style.js +2 -3
- package/styles/config/header.style.js +2 -3
- package/styles/config/sidebar.style.js +2 -3
- package/styles/index.js +2 -5
- package/styles/mixin/backgroundColor.js +17 -14
- package/styles/mixin/borderColor.js +17 -14
- package/styles/mixin/color.js +17 -14
- package/styles/mixin/colorOnBackground.js +17 -14
- package/styles/mixin/inputPlaceholder.js +3 -9
- package/styles/mixin/media.js +3 -11
- package/styles/mixin/rounded.js +13 -12
- package/styles/mixin/scrollbar.js +7 -13
- package/styles/theme/dark.theme.js +20 -20
- package/styles/theme/light.theme.js +20 -20
- package/styles/theme/white.theme.js +20 -20
- package/styles/themes.js +2 -8
- package/table/GridTable.js +105 -143
- package/table/ImageBox.js +8 -18
- package/table/PermissionTable.js +25 -25
- package/table/Table.js +137 -153
- package/table/__mock__/columns.js +2 -3
- package/table/__mock__/data.js +2 -3
- package/table/hooks/index.js +2 -5
- package/table/hooks/useCalculateDataRange.js +9 -36
- package/table/hooks/useGenerateSort.js +6 -17
- package/table/index.js +4 -9
- package/table/subComponent/BaseTableHeadCell.js +15 -21
- package/table/subComponent/GridTableFooter.js +5 -10
- package/table/subComponent/GridTableHeadCell.js +5 -10
- package/table/subComponent/Resizer.js +17 -44
- package/table/subComponent/TableFooter.js +5 -10
- package/table/subComponent/TableFooterInfo.js +2 -9
- package/table/subComponent/TableFooterPager.js +5 -12
- package/table/subComponent/TableHeadCell.js +2 -9
- package/table/subComponent/TableSort.js +13 -19
- package/tagify/TagifyStyle.js +2 -9
- package/tagify/Tags.js +15 -37
- package/tagify/index.js +2 -5
- package/text/Paragraph.js +25 -20
- package/text/index.js +1 -3
- package/timeline/Timeline.js +28 -37
- package/timeline/index.js +1 -3
- package/toast/CustomToastContainer.js +2 -9
- package/toast/MessageContainer.js +9 -18
- package/toast/index.js +3 -8
- package/toast/show.js +18 -28
- package/tooltip/Tooltip.js +48 -97
- package/tooltip/index.js +1 -3
- package/wizard/Wizard.js +63 -133
- package/wizard/index.js +1 -3
|
@@ -4,25 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = require("styled-components");
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const backgroundColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
11
|
+
let {
|
|
12
|
+
primary
|
|
13
|
+
} = _ref;
|
|
16
14
|
return primary && 'background-color: var(--color-primary);';
|
|
17
|
-
},
|
|
18
|
-
|
|
15
|
+
}, _ref2 => {
|
|
16
|
+
let {
|
|
17
|
+
success
|
|
18
|
+
} = _ref2;
|
|
19
19
|
return success && 'background-color: var(--color-success);';
|
|
20
|
-
},
|
|
21
|
-
|
|
20
|
+
}, _ref3 => {
|
|
21
|
+
let {
|
|
22
|
+
warning
|
|
23
|
+
} = _ref3;
|
|
22
24
|
return warning && 'background-color: var(--color-warning);';
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
+
}, _ref4 => {
|
|
26
|
+
let {
|
|
27
|
+
danger
|
|
28
|
+
} = _ref4;
|
|
25
29
|
return danger && 'background-color: var(--color-danger);';
|
|
26
30
|
});
|
|
27
|
-
var _default = backgroundColor;
|
|
28
|
-
exports.default = _default;
|
|
31
|
+
var _default = exports.default = backgroundColor;
|
|
@@ -4,25 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = require("styled-components");
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const borderColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
11
|
+
let {
|
|
12
|
+
primary
|
|
13
|
+
} = _ref;
|
|
16
14
|
return primary && 'border-color: var(--color-primary);';
|
|
17
|
-
},
|
|
18
|
-
|
|
15
|
+
}, _ref2 => {
|
|
16
|
+
let {
|
|
17
|
+
success
|
|
18
|
+
} = _ref2;
|
|
19
19
|
return success && 'border-color: var(--color-success);';
|
|
20
|
-
},
|
|
21
|
-
|
|
20
|
+
}, _ref3 => {
|
|
21
|
+
let {
|
|
22
|
+
warning
|
|
23
|
+
} = _ref3;
|
|
22
24
|
return warning && 'border-color: var(--color-warning);';
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
+
}, _ref4 => {
|
|
26
|
+
let {
|
|
27
|
+
danger
|
|
28
|
+
} = _ref4;
|
|
25
29
|
return danger && 'border-color: var(--color-danger);';
|
|
26
30
|
});
|
|
27
|
-
var _default = borderColor;
|
|
28
|
-
exports.default = _default;
|
|
31
|
+
var _default = exports.default = borderColor;
|
package/styles/mixin/color.js
CHANGED
|
@@ -4,25 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = require("styled-components");
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const color = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
11
|
+
let {
|
|
12
|
+
primary
|
|
13
|
+
} = _ref;
|
|
16
14
|
return primary && 'color: var(--color-primary);';
|
|
17
|
-
},
|
|
18
|
-
|
|
15
|
+
}, _ref2 => {
|
|
16
|
+
let {
|
|
17
|
+
success
|
|
18
|
+
} = _ref2;
|
|
19
19
|
return success && 'color: var(--color-success);';
|
|
20
|
-
},
|
|
21
|
-
|
|
20
|
+
}, _ref3 => {
|
|
21
|
+
let {
|
|
22
|
+
warning
|
|
23
|
+
} = _ref3;
|
|
22
24
|
return warning && 'color: var(--color-warning);';
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
+
}, _ref4 => {
|
|
26
|
+
let {
|
|
27
|
+
danger
|
|
28
|
+
} = _ref4;
|
|
25
29
|
return danger && 'color: var(--color-danger);';
|
|
26
30
|
});
|
|
27
|
-
var _default = color;
|
|
28
|
-
exports.default = _default;
|
|
31
|
+
var _default = exports.default = color;
|
|
@@ -4,25 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = require("styled-components");
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const colorOnBackground = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
11
|
+
let {
|
|
12
|
+
primary
|
|
13
|
+
} = _ref;
|
|
16
14
|
return primary && 'color: var(--font-on-primary);';
|
|
17
|
-
},
|
|
18
|
-
|
|
15
|
+
}, _ref2 => {
|
|
16
|
+
let {
|
|
17
|
+
success
|
|
18
|
+
} = _ref2;
|
|
19
19
|
return success && 'color: var(--font-on-success);';
|
|
20
|
-
},
|
|
21
|
-
|
|
20
|
+
}, _ref3 => {
|
|
21
|
+
let {
|
|
22
|
+
warning
|
|
23
|
+
} = _ref3;
|
|
22
24
|
return warning && 'color: var(--font-on-warning);';
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
+
}, _ref4 => {
|
|
26
|
+
let {
|
|
27
|
+
danger
|
|
28
|
+
} = _ref4;
|
|
25
29
|
return danger && 'color: var(--font-on-danger);';
|
|
26
30
|
});
|
|
27
|
-
var _default = colorOnBackground;
|
|
28
|
-
exports.default = _default;
|
|
31
|
+
var _default = exports.default = colorOnBackground;
|
|
@@ -4,16 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = require("styled-components");
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ::placeholder {\n ", "\n }\n\n ::-moz-placeholder {\n ", "\n opacity: 1;\n }\n\n // Internet Explorer 10+\n :-ms-input-placeholder {\n ", "\n }\n\n // Safari and Chrome\n ::-webkit-input-placeholder {\n ", "\n }\n "])), _styledComponents.css.apply(void 0, arguments), _styledComponents.css.apply(void 0, arguments), _styledComponents.css.apply(void 0, arguments), _styledComponents.css.apply(void 0, arguments));
|
|
10
|
+
const inputPlaceholder = function () {
|
|
11
|
+
return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ::placeholder {\n ", "\n }\n\n ::-moz-placeholder {\n ", "\n opacity: 1;\n }\n\n // Internet Explorer 10+\n :-ms-input-placeholder {\n ", "\n }\n\n // Safari and Chrome\n ::-webkit-input-placeholder {\n ", "\n }\n "])), (0, _styledComponents.css)(...arguments), (0, _styledComponents.css)(...arguments), (0, _styledComponents.css)(...arguments), (0, _styledComponents.css)(...arguments));
|
|
16
12
|
};
|
|
17
|
-
|
|
18
|
-
var _default = inputPlaceholder;
|
|
19
|
-
exports.default = _default;
|
|
13
|
+
var _default = exports.default = inputPlaceholder;
|
package/styles/mixin/media.js
CHANGED
|
@@ -4,24 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = require("styled-components");
|
|
9
|
-
|
|
10
8
|
var _breakpoint = _interopRequireDefault(require("../config/breakpoint.style"));
|
|
11
|
-
|
|
12
9
|
var _templateObject;
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
|
-
|
|
18
12
|
// Iterate through the breakpoint and create a media template
|
|
19
|
-
|
|
13
|
+
const media = Object.keys(_breakpoint.default).reduce((func, label) => {
|
|
20
14
|
func[label] = function () {
|
|
21
|
-
return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (max-width: ", "px) {\n ", "\n }\n "])), _breakpoint.default[label], _styledComponents.css
|
|
15
|
+
return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (max-width: ", "px) {\n ", "\n }\n "])), _breakpoint.default[label], (0, _styledComponents.css)(...arguments));
|
|
22
16
|
};
|
|
23
|
-
|
|
24
17
|
return func;
|
|
25
18
|
}, {});
|
|
26
|
-
var _default = media;
|
|
27
|
-
exports.default = _default;
|
|
19
|
+
var _default = exports.default = media;
|
package/styles/mixin/rounded.js
CHANGED
|
@@ -4,22 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = require("styled-components");
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const rounded = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
11
|
+
let {
|
|
12
|
+
roundedS
|
|
13
|
+
} = _ref;
|
|
16
14
|
return roundedS && 'border-radius: var(--border-radius-s);';
|
|
17
|
-
},
|
|
18
|
-
|
|
15
|
+
}, _ref2 => {
|
|
16
|
+
let {
|
|
17
|
+
rounded
|
|
18
|
+
} = _ref2;
|
|
19
19
|
return rounded && 'border-radius: var(--border-radius);';
|
|
20
|
-
},
|
|
21
|
-
|
|
20
|
+
}, _ref3 => {
|
|
21
|
+
let {
|
|
22
|
+
roundedCircle
|
|
23
|
+
} = _ref3;
|
|
22
24
|
return roundedCircle && 'border-radius: var(--border-radius-round);';
|
|
23
25
|
});
|
|
24
|
-
var _default = rounded;
|
|
25
|
-
exports.default = _default;
|
|
26
|
+
var _default = exports.default = rounded;
|
|
@@ -4,25 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = require("styled-components");
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
const scrollbar = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
size
|
|
13
|
+
} = _ref;
|
|
14
|
+
let scrollbarWidth = '12px';
|
|
15
|
+
let thumbWidth = '4px';
|
|
19
16
|
if (size === 'large') {
|
|
20
17
|
scrollbarWidth = '24px';
|
|
21
18
|
thumbWidth = '8px';
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &::-webkit-scrollbar {\n width: ", ";\n height: ", ";\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: var(--color-scroll-bar);\n background-clip: padding-box;\n border: ", " solid transparent;\n border-radius: var(--border-radius);\n }\n "])), scrollbarWidth, scrollbarWidth, thumbWidth);
|
|
25
21
|
};
|
|
26
|
-
|
|
27
|
-
var _default = scrollbar;
|
|
28
|
-
exports.default = _default;
|
|
22
|
+
var _default = exports.default = scrollbar;
|
|
@@ -4,16 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
-
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
|
-
|
|
12
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
-
|
|
14
7
|
// Currently, some style is all same for all viewport size
|
|
15
8
|
// Common color style
|
|
16
|
-
|
|
9
|
+
const colorStyle = {
|
|
17
10
|
colorWhite: '#ffffff',
|
|
18
11
|
colorDark: '#000000',
|
|
19
12
|
colorGrey: '#5b5f6f',
|
|
@@ -28,9 +21,10 @@ var colorStyle = {
|
|
|
28
21
|
bgColor2: '#222143',
|
|
29
22
|
bgColor3: '#2d2a5d',
|
|
30
23
|
backdropBg: 'rgba(0, 0, 0, 0.75)'
|
|
31
|
-
};
|
|
24
|
+
};
|
|
32
25
|
|
|
33
|
-
|
|
26
|
+
// Common font style
|
|
27
|
+
const fontStyle = {
|
|
34
28
|
fontH1: '2.25rem',
|
|
35
29
|
fontH2: '1.5rem',
|
|
36
30
|
fontH3: '1.25rem',
|
|
@@ -47,10 +41,13 @@ var fontStyle = {
|
|
|
47
41
|
fontOnDanger: colorStyle.colorWhite,
|
|
48
42
|
fontOnBg: colorStyle.colorWhite,
|
|
49
43
|
fontMutedColor: 'rgba(255, 255, 255, 0.5)'
|
|
50
|
-
};
|
|
44
|
+
};
|
|
51
45
|
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
// Theme stylesheet
|
|
47
|
+
const darkTheme = {
|
|
48
|
+
desktop: {
|
|
49
|
+
...fontStyle,
|
|
50
|
+
...colorStyle,
|
|
54
51
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
55
52
|
borderColor: colorStyle.colorGrey,
|
|
56
53
|
borderWidth: '1px',
|
|
@@ -62,8 +59,10 @@ var darkTheme = {
|
|
|
62
59
|
spacerS: '1rem',
|
|
63
60
|
spacer: '1.5rem',
|
|
64
61
|
spacerL: '2rem'
|
|
65
|
-
}
|
|
66
|
-
tablet:
|
|
62
|
+
},
|
|
63
|
+
tablet: {
|
|
64
|
+
...fontStyle,
|
|
65
|
+
...colorStyle,
|
|
67
66
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
68
67
|
borderColor: colorStyle.colorGrey,
|
|
69
68
|
borderWidth: '1px',
|
|
@@ -75,8 +74,10 @@ var darkTheme = {
|
|
|
75
74
|
spacerS: '0.75rem',
|
|
76
75
|
spacer: '1rem',
|
|
77
76
|
spacerL: '1.25rem'
|
|
78
|
-
}
|
|
79
|
-
mobile:
|
|
77
|
+
},
|
|
78
|
+
mobile: {
|
|
79
|
+
...fontStyle,
|
|
80
|
+
...colorStyle,
|
|
80
81
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
81
82
|
borderColor: colorStyle.colorGrey,
|
|
82
83
|
borderWidth: '1px',
|
|
@@ -88,7 +89,6 @@ var darkTheme = {
|
|
|
88
89
|
spacerS: '0.75rem',
|
|
89
90
|
spacer: '1rem',
|
|
90
91
|
spacerL: '1.25rem'
|
|
91
|
-
}
|
|
92
|
+
}
|
|
92
93
|
};
|
|
93
|
-
var _default = darkTheme;
|
|
94
|
-
exports.default = _default;
|
|
94
|
+
var _default = exports.default = darkTheme;
|
|
@@ -4,16 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
-
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
|
-
|
|
12
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
-
|
|
14
7
|
// Currently, some style is all same for all viewport size
|
|
15
8
|
// Common color style
|
|
16
|
-
|
|
9
|
+
const colorStyle = {
|
|
17
10
|
colorWhite: '#ffffff',
|
|
18
11
|
colorDark: '#353351',
|
|
19
12
|
colorGrey: '#989cad',
|
|
@@ -28,9 +21,10 @@ var colorStyle = {
|
|
|
28
21
|
bgColor2: '#F8F4FF',
|
|
29
22
|
bgColor3: '#E6E1FF',
|
|
30
23
|
backdropBg: 'rgba(0, 0, 0, 0.75)'
|
|
31
|
-
};
|
|
24
|
+
};
|
|
32
25
|
|
|
33
|
-
|
|
26
|
+
// Common font style
|
|
27
|
+
const fontStyle = {
|
|
34
28
|
fontH1: '2.25rem',
|
|
35
29
|
fontH2: '1.5rem',
|
|
36
30
|
fontH3: '1.25rem',
|
|
@@ -47,10 +41,13 @@ var fontStyle = {
|
|
|
47
41
|
fontOnDanger: colorStyle.colorDark,
|
|
48
42
|
fontOnBg: colorStyle.colorDark,
|
|
49
43
|
fontMutedColor: 'rgba(53, 51, 81, 0.6)'
|
|
50
|
-
};
|
|
44
|
+
};
|
|
51
45
|
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
// Theme stylesheet
|
|
47
|
+
const lightTheme = {
|
|
48
|
+
desktop: {
|
|
49
|
+
...fontStyle,
|
|
50
|
+
...colorStyle,
|
|
54
51
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
55
52
|
borderColor: colorStyle.colorGrey,
|
|
56
53
|
borderWidth: '1px',
|
|
@@ -62,8 +59,10 @@ var lightTheme = {
|
|
|
62
59
|
spacerS: '1rem',
|
|
63
60
|
spacer: '1.5rem',
|
|
64
61
|
spacerL: '2rem'
|
|
65
|
-
}
|
|
66
|
-
tablet:
|
|
62
|
+
},
|
|
63
|
+
tablet: {
|
|
64
|
+
...fontStyle,
|
|
65
|
+
...colorStyle,
|
|
67
66
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
68
67
|
borderColor: colorStyle.colorGrey,
|
|
69
68
|
borderWidth: '1px',
|
|
@@ -75,8 +74,10 @@ var lightTheme = {
|
|
|
75
74
|
spacerS: '0.75rem',
|
|
76
75
|
spacer: '1rem',
|
|
77
76
|
spacerL: '1.25rem'
|
|
78
|
-
}
|
|
79
|
-
mobile:
|
|
77
|
+
},
|
|
78
|
+
mobile: {
|
|
79
|
+
...fontStyle,
|
|
80
|
+
...colorStyle,
|
|
80
81
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
81
82
|
borderColor: colorStyle.colorGrey,
|
|
82
83
|
borderWidth: '1px',
|
|
@@ -88,7 +89,6 @@ var lightTheme = {
|
|
|
88
89
|
spacerS: '0.75rem',
|
|
89
90
|
spacer: '1rem',
|
|
90
91
|
spacerL: '1.25rem'
|
|
91
|
-
}
|
|
92
|
+
}
|
|
92
93
|
};
|
|
93
|
-
var _default = lightTheme;
|
|
94
|
-
exports.default = _default;
|
|
94
|
+
var _default = exports.default = lightTheme;
|
|
@@ -4,16 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
-
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
|
-
|
|
12
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
-
|
|
14
7
|
// Currently, some style is all same for all viewport size
|
|
15
8
|
// Common color style
|
|
16
|
-
|
|
9
|
+
const colorStyle = {
|
|
17
10
|
colorWhite: '#ffffff',
|
|
18
11
|
colorDark: '#353351',
|
|
19
12
|
colorGrey: '#b7bbcd',
|
|
@@ -28,9 +21,10 @@ var colorStyle = {
|
|
|
28
21
|
bgColor2: '#F7F7F7',
|
|
29
22
|
bgColor3: '#FFFFFF',
|
|
30
23
|
backdropBg: 'rgba(0, 0, 0, 0.75)'
|
|
31
|
-
};
|
|
24
|
+
};
|
|
32
25
|
|
|
33
|
-
|
|
26
|
+
// Common font style
|
|
27
|
+
const fontStyle = {
|
|
34
28
|
fontH1: '2.25rem',
|
|
35
29
|
fontH2: '1.5rem',
|
|
36
30
|
fontH3: '1.25rem',
|
|
@@ -47,10 +41,13 @@ var fontStyle = {
|
|
|
47
41
|
fontOnDanger: colorStyle.colorDark,
|
|
48
42
|
fontOnBg: colorStyle.colorDark,
|
|
49
43
|
fontMutedColor: 'rgba(53, 51, 81, 0.6)'
|
|
50
|
-
};
|
|
44
|
+
};
|
|
51
45
|
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
// Theme stylesheet
|
|
47
|
+
const whiteTheme = {
|
|
48
|
+
desktop: {
|
|
49
|
+
...fontStyle,
|
|
50
|
+
...colorStyle,
|
|
54
51
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
55
52
|
borderColor: colorStyle.colorGrey,
|
|
56
53
|
borderWidth: '1px',
|
|
@@ -62,8 +59,10 @@ var whiteTheme = {
|
|
|
62
59
|
spacerS: '1rem',
|
|
63
60
|
spacer: '1.5rem',
|
|
64
61
|
spacerL: '2rem'
|
|
65
|
-
}
|
|
66
|
-
tablet:
|
|
62
|
+
},
|
|
63
|
+
tablet: {
|
|
64
|
+
...fontStyle,
|
|
65
|
+
...colorStyle,
|
|
67
66
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
68
67
|
borderColor: colorStyle.colorGrey,
|
|
69
68
|
borderWidth: '1px',
|
|
@@ -75,8 +74,10 @@ var whiteTheme = {
|
|
|
75
74
|
spacerS: '0.75rem',
|
|
76
75
|
spacer: '1rem',
|
|
77
76
|
spacerL: '1.25rem'
|
|
78
|
-
}
|
|
79
|
-
mobile:
|
|
77
|
+
},
|
|
78
|
+
mobile: {
|
|
79
|
+
...fontStyle,
|
|
80
|
+
...colorStyle,
|
|
80
81
|
boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
|
|
81
82
|
borderColor: colorStyle.colorGrey,
|
|
82
83
|
borderWidth: '1px',
|
|
@@ -88,7 +89,6 @@ var whiteTheme = {
|
|
|
88
89
|
spacerS: '0.75rem',
|
|
89
90
|
spacer: '1rem',
|
|
90
91
|
spacerL: '1.25rem'
|
|
91
|
-
}
|
|
92
|
+
}
|
|
92
93
|
};
|
|
93
|
-
var _default = whiteTheme;
|
|
94
|
-
exports.default = _default;
|
|
94
|
+
var _default = exports.default = whiteTheme;
|
package/styles/themes.js
CHANGED
|
@@ -4,19 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _white = _interopRequireDefault(require("./theme/white.theme"));
|
|
9
|
-
|
|
10
8
|
var _light = _interopRequireDefault(require("./theme/light.theme"));
|
|
11
|
-
|
|
12
9
|
var _dark = _interopRequireDefault(require("./theme/dark.theme"));
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
var themes = {
|
|
11
|
+
const themes = {
|
|
17
12
|
White: _white.default,
|
|
18
13
|
Light: _light.default,
|
|
19
14
|
Dark: _dark.default
|
|
20
15
|
};
|
|
21
|
-
var _default = themes;
|
|
22
|
-
exports.default = _default;
|
|
16
|
+
var _default = exports.default = themes;
|