@cashub/ui 0.21.0 → 0.22.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/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 +14 -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 +18 -15
- package/form/Label.js +20 -13
- package/form/MutedText.js +5 -10
- package/form/RadioButton.js +20 -32
- package/form/Searchbox.js +21 -65
- package/form/Slider.js +25 -0
- package/form/SwitchButton.js +34 -39
- package/form/Textarea.js +2 -11
- package/form/TreeView.js +64 -0
- package/form/index.js +16 -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
package/select/index.js
CHANGED
|
@@ -5,19 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "InputSelect", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _InputSelect.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "Select", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Select.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
|
|
19
18
|
var _Select = _interopRequireDefault(require("./Select"));
|
|
20
|
-
|
|
21
19
|
var _InputSelect = _interopRequireDefault(require("./InputSelect"));
|
|
22
|
-
|
|
23
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,23 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
const ListBox = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n visibility: ", ";\n background: var(--color-background1);\n color: var(--font-on-background);\n border: var(--border-width) solid var(--border-color);\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n width: ", "px;\n z-index: 31;\n"])), _ref => {
|
|
12
|
+
let {
|
|
13
|
+
$display
|
|
14
|
+
} = _ref;
|
|
18
15
|
return $display ? 'visible' : 'hidden';
|
|
19
|
-
},
|
|
20
|
-
|
|
16
|
+
}, _ref2 => {
|
|
17
|
+
let {
|
|
18
|
+
width
|
|
19
|
+
} = _ref2;
|
|
21
20
|
return width;
|
|
22
21
|
});
|
|
23
|
-
|
|
24
22
|
ListBox.displayName = 'ListBox';
|
|
25
|
-
var _default = ListBox;
|
|
26
|
-
exports.default = _default;
|
|
23
|
+
var _default = exports.default = ListBox;
|
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
8
|
var _templateObject, _templateObject2;
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
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); }
|
|
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 && Object.prototype.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; }
|
|
18
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
const Option = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 100%;\n word-break: break-all;\n padding: 12px var(--spacing-s);\n background: var(--color-background1);\n transition: background 0.3s;\n\n &:hover {\n background: var(--color-hover);\n }\n\n ", "\n"])), _ref => {
|
|
13
|
+
let {
|
|
14
|
+
selected,
|
|
15
|
+
focus
|
|
16
|
+
} = _ref;
|
|
23
17
|
return (selected || focus) && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: var(--color-hover);\n "])));
|
|
24
18
|
});
|
|
25
|
-
|
|
26
19
|
Option.displayName = 'Option';
|
|
27
|
-
var _default = Option;
|
|
28
|
-
exports.default = _default;
|
|
20
|
+
var _default = exports.default = Option;
|
|
@@ -4,17 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
-
|
|
16
|
-
var OptionGroup = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [role='presentation'] {\n font-weight: bold;\n\n &:hover {\n background: var(--color-background1);\n }\n }\n\n [role='option'] {\n padding-left: calc(var(--spacing-s) * 2);\n }\n"])));
|
|
17
|
-
|
|
11
|
+
const OptionGroup = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [role='presentation'] {\n font-weight: bold;\n\n &:hover {\n background: var(--color-background1);\n }\n }\n\n [role='option'] {\n padding-left: calc(var(--spacing-s) * 2);\n }\n"])));
|
|
18
12
|
OptionGroup.displayName = 'OptionGroup';
|
|
19
|
-
var _default = OptionGroup;
|
|
20
|
-
exports.default = _default;
|
|
13
|
+
var _default = exports.default = OptionGroup;
|
|
@@ -4,22 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _scrollbar = _interopRequireDefault(require("../../styles/mixin/scrollbar"));
|
|
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
|
-
|
|
19
|
-
|
|
12
|
+
const Options = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs) 0;\n max-height: min(320px, calc(50vh - 36px - 20px - 36px));\n overflow-y: auto;\n overflow-x: visible;\n border-radius: var(--border-radius);\n\n ", "\n\n ", "\n"])), _ref => {
|
|
13
|
+
let {
|
|
14
|
+
allowSearch
|
|
15
|
+
} = _ref;
|
|
20
16
|
return allowSearch && "\n padding-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n ";
|
|
21
17
|
}, _scrollbar.default);
|
|
22
|
-
|
|
23
18
|
Options.displayName = 'Options';
|
|
24
|
-
var _default = Options;
|
|
25
|
-
exports.default = _default;
|
|
19
|
+
var _default = exports.default = Options;
|
|
@@ -4,49 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
-
|
|
12
9
|
var _go = require("react-icons/go");
|
|
13
|
-
|
|
14
10
|
var _inputPlaceholder = _interopRequireDefault(require("../../styles/mixin/inputPlaceholder"));
|
|
15
|
-
|
|
16
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
12
|
var _templateObject, _templateObject2, _templateObject3;
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
var SearchBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
31
|
-
var handleClick = function handleClick(event) {
|
|
15
|
+
const SearchBox = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
16
|
+
const handleClick = event => {
|
|
32
17
|
event.stopPropagation();
|
|
33
18
|
};
|
|
34
|
-
|
|
35
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
|
|
36
20
|
onClick: handleClick,
|
|
37
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_go.GoSearch, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchInput,
|
|
21
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_go.GoSearch, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchInput, {
|
|
38
22
|
type: "text",
|
|
39
|
-
ref: ref
|
|
40
|
-
|
|
23
|
+
ref: ref,
|
|
24
|
+
...props
|
|
25
|
+
})]
|
|
41
26
|
});
|
|
42
27
|
});
|
|
43
|
-
|
|
44
|
-
var Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs);\n\n > svg {\n color: var(--font-on-mute);\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: calc(var(--spacing-s) + var(--spacing-xs));\n }\n"])));
|
|
45
|
-
|
|
28
|
+
const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs);\n\n > svg {\n color: var(--font-on-mute);\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: calc(var(--spacing-s) + var(--spacing-xs));\n }\n"])));
|
|
46
29
|
Wrapper.displayName = 'Wrapper';
|
|
47
|
-
|
|
48
|
-
var SearchInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: var(--color-background1);\n color: var(--font-on-background);\n border-radius: var(--border-radius-l);\n border: var(--border-width) solid var(--border-color);\n outline: none;\n width: 100%;\n padding: 10px var(--spacing-s) 10px calc(var(--spacing-s) * 2 + 8px);\n max-height: 36px;\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ", "\n"])), (0, _inputPlaceholder.default)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: var(--font-on-mute);\n "]))));
|
|
49
|
-
|
|
30
|
+
const SearchInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: var(--color-background1);\n color: var(--font-on-background);\n border-radius: var(--border-radius-l);\n border: var(--border-width) solid var(--border-color);\n outline: none;\n width: 100%;\n padding: 10px var(--spacing-s) 10px calc(var(--spacing-s) * 2 + 8px);\n max-height: 36px;\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ", "\n"])), (0, _inputPlaceholder.default)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: var(--font-on-mute);\n "]))));
|
|
50
31
|
SearchInput.displayName = 'SearchInput';
|
|
51
|
-
var _default = SearchBox;
|
|
52
|
-
exports.default = _default;
|
|
32
|
+
var _default = exports.default = SearchBox;
|
|
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _fa = require("react-icons/fa");
|
|
11
|
-
|
|
12
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
|
|
14
10
|
var _templateObject;
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
const SelectedMultiple = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
content,
|
|
16
|
+
onClick,
|
|
17
|
+
disabled
|
|
18
|
+
} = _ref;
|
|
24
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Selected, {
|
|
25
20
|
children: [!disabled && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
26
21
|
onClick: onClick,
|
|
@@ -29,8 +24,5 @@ var SelectedMultiple = function SelectedMultiple(_ref) {
|
|
|
29
24
|
}), content]
|
|
30
25
|
});
|
|
31
26
|
};
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
var _default = SelectedMultiple;
|
|
36
|
-
exports.default = _default;
|
|
27
|
+
const Selected = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n background: var(--color-background3);\n border-radius: var(--border-radius-l);\n padding: 0.25rem calc(var(--spacing-xs) + 4px);\n margin: 4px 10px 4px 0;\n color: var(--font-on-background);\n font-weight: var(--font-normal);\n word-break: break-all;\n\n > span {\n display: flex;\n align-items: center;\n\n > svg {\n margin-right: var(--spacing-xs);\n color: var(--font-on-background);\n }\n }\n"])));
|
|
28
|
+
var _default = exports.default = SelectedMultiple;
|
|
@@ -4,17 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _templateObject;
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
-
|
|
16
|
-
var SelectedSingle = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: var(--font-on-background);\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
17
|
-
|
|
11
|
+
const SelectedSingle = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: var(--font-on-background);\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
18
12
|
SelectedSingle.displayName = 'SelectedSingle';
|
|
19
|
-
var _default = SelectedSingle;
|
|
20
|
-
exports.default = _default;
|
|
13
|
+
var _default = exports.default = SelectedSingle;
|
package/styles/GlobalStyle.js
CHANGED
|
@@ -4,141 +4,219 @@ 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
|
require("../assets/css/global.css");
|
|
11
|
-
|
|
12
9
|
var _templateObject;
|
|
13
|
-
|
|
14
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
const GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body {\n --color-white: ", ";\n --color-dark: ", ";\n --color-grey: ", ";\n --color-primary: ", ";\n --color-success: ", ";\n --color-warning: ", ";\n --color-danger: ", ";\n --color-hover: ", ";\n --color-active: ", ";\n --color-scroll-bar: ", ";\n --color-background1: ", ";\n --color-background2: ", ";\n --color-background3: ", ";\n --color-backdrop: ", ";\n\n --font-h1: ", ";\n --font-h2: ", ";\n --font-h3: ", ";\n --font-body1: ", ";\n --font-body2: ", ";\n --font-button: ", ";\n --font-caption: ", ";\n --font-family: ", ";\n --font-normal: ", ";\n --font-bold: ", ";\n --font-on-primary: ", ";\n --font-on-success: ", ";\n --font-on-warning: ", ";\n --font-on-danger: ", ";\n --font-on-background: ", ";\n --font-on-mute: ", ";\n\n --box-shadow: ", ";\n --border-color: ", ";\n --border-width: ", ";\n --border-radius-s: ", ";\n --border-radius: ", ";\n --border-radius-l: ", ";\n --border-radius-round: ", ";\n\n --spacing-xs: ", ";\n --spacing-s: ", ";\n --spacing: ", ";\n --spacing-l: ", ";\n\n background : ", ";\n }\n\n .margin-bottom-s {\n margin-bottom: var(--spacing-s);\n }\n"])), _ref => {
|
|
12
|
+
let {
|
|
13
|
+
theme
|
|
14
|
+
} = _ref;
|
|
18
15
|
return theme.colorWhite;
|
|
19
|
-
},
|
|
20
|
-
|
|
16
|
+
}, _ref2 => {
|
|
17
|
+
let {
|
|
18
|
+
theme
|
|
19
|
+
} = _ref2;
|
|
21
20
|
return theme.colorDark;
|
|
22
|
-
},
|
|
23
|
-
|
|
21
|
+
}, _ref3 => {
|
|
22
|
+
let {
|
|
23
|
+
theme
|
|
24
|
+
} = _ref3;
|
|
24
25
|
return theme.colorGrey;
|
|
25
|
-
},
|
|
26
|
-
|
|
26
|
+
}, _ref4 => {
|
|
27
|
+
let {
|
|
28
|
+
theme
|
|
29
|
+
} = _ref4;
|
|
27
30
|
return theme.colorPrimary;
|
|
28
|
-
},
|
|
29
|
-
|
|
31
|
+
}, _ref5 => {
|
|
32
|
+
let {
|
|
33
|
+
theme
|
|
34
|
+
} = _ref5;
|
|
30
35
|
return theme.colorSuccess;
|
|
31
|
-
},
|
|
32
|
-
|
|
36
|
+
}, _ref6 => {
|
|
37
|
+
let {
|
|
38
|
+
theme
|
|
39
|
+
} = _ref6;
|
|
33
40
|
return theme.colorWarning;
|
|
34
|
-
},
|
|
35
|
-
|
|
41
|
+
}, _ref7 => {
|
|
42
|
+
let {
|
|
43
|
+
theme
|
|
44
|
+
} = _ref7;
|
|
36
45
|
return theme.colorDanger;
|
|
37
|
-
},
|
|
38
|
-
|
|
46
|
+
}, _ref8 => {
|
|
47
|
+
let {
|
|
48
|
+
theme
|
|
49
|
+
} = _ref8;
|
|
39
50
|
return theme.colorHover;
|
|
40
|
-
},
|
|
41
|
-
|
|
51
|
+
}, _ref9 => {
|
|
52
|
+
let {
|
|
53
|
+
theme
|
|
54
|
+
} = _ref9;
|
|
42
55
|
return theme.colorActive;
|
|
43
|
-
},
|
|
44
|
-
|
|
56
|
+
}, _ref10 => {
|
|
57
|
+
let {
|
|
58
|
+
theme
|
|
59
|
+
} = _ref10;
|
|
45
60
|
return theme.scrollBarColor;
|
|
46
|
-
},
|
|
47
|
-
|
|
61
|
+
}, _ref11 => {
|
|
62
|
+
let {
|
|
63
|
+
theme
|
|
64
|
+
} = _ref11;
|
|
48
65
|
return theme.bgColor1;
|
|
49
|
-
},
|
|
50
|
-
|
|
66
|
+
}, _ref12 => {
|
|
67
|
+
let {
|
|
68
|
+
theme
|
|
69
|
+
} = _ref12;
|
|
51
70
|
return theme.bgColor2;
|
|
52
|
-
},
|
|
53
|
-
|
|
71
|
+
}, _ref13 => {
|
|
72
|
+
let {
|
|
73
|
+
theme
|
|
74
|
+
} = _ref13;
|
|
54
75
|
return theme.bgColor3;
|
|
55
|
-
},
|
|
56
|
-
|
|
76
|
+
}, _ref14 => {
|
|
77
|
+
let {
|
|
78
|
+
theme
|
|
79
|
+
} = _ref14;
|
|
57
80
|
return theme.backdropBg;
|
|
58
|
-
},
|
|
59
|
-
|
|
81
|
+
}, _ref15 => {
|
|
82
|
+
let {
|
|
83
|
+
theme
|
|
84
|
+
} = _ref15;
|
|
60
85
|
return theme.fontH1;
|
|
61
|
-
},
|
|
62
|
-
|
|
86
|
+
}, _ref16 => {
|
|
87
|
+
let {
|
|
88
|
+
theme
|
|
89
|
+
} = _ref16;
|
|
63
90
|
return theme.fontH2;
|
|
64
|
-
},
|
|
65
|
-
|
|
91
|
+
}, _ref17 => {
|
|
92
|
+
let {
|
|
93
|
+
theme
|
|
94
|
+
} = _ref17;
|
|
66
95
|
return theme.fontH3;
|
|
67
|
-
},
|
|
68
|
-
|
|
96
|
+
}, _ref18 => {
|
|
97
|
+
let {
|
|
98
|
+
theme
|
|
99
|
+
} = _ref18;
|
|
69
100
|
return theme.fontBody1;
|
|
70
|
-
},
|
|
71
|
-
|
|
101
|
+
}, _ref19 => {
|
|
102
|
+
let {
|
|
103
|
+
theme
|
|
104
|
+
} = _ref19;
|
|
72
105
|
return theme.fontBody2;
|
|
73
|
-
},
|
|
74
|
-
|
|
106
|
+
}, _ref20 => {
|
|
107
|
+
let {
|
|
108
|
+
theme
|
|
109
|
+
} = _ref20;
|
|
75
110
|
return theme.fontButton;
|
|
76
|
-
},
|
|
77
|
-
|
|
111
|
+
}, _ref21 => {
|
|
112
|
+
let {
|
|
113
|
+
theme
|
|
114
|
+
} = _ref21;
|
|
78
115
|
return theme.fontCaption;
|
|
79
|
-
},
|
|
80
|
-
|
|
116
|
+
}, _ref22 => {
|
|
117
|
+
let {
|
|
118
|
+
theme
|
|
119
|
+
} = _ref22;
|
|
81
120
|
return theme.fontFamily;
|
|
82
|
-
},
|
|
83
|
-
|
|
121
|
+
}, _ref23 => {
|
|
122
|
+
let {
|
|
123
|
+
theme
|
|
124
|
+
} = _ref23;
|
|
84
125
|
return theme.fontWeightNormal;
|
|
85
|
-
},
|
|
86
|
-
|
|
126
|
+
}, _ref24 => {
|
|
127
|
+
let {
|
|
128
|
+
theme
|
|
129
|
+
} = _ref24;
|
|
87
130
|
return theme.fontWeightBold;
|
|
88
|
-
},
|
|
89
|
-
|
|
131
|
+
}, _ref25 => {
|
|
132
|
+
let {
|
|
133
|
+
theme
|
|
134
|
+
} = _ref25;
|
|
90
135
|
return theme.fontOnPrimary;
|
|
91
|
-
},
|
|
92
|
-
|
|
136
|
+
}, _ref26 => {
|
|
137
|
+
let {
|
|
138
|
+
theme
|
|
139
|
+
} = _ref26;
|
|
93
140
|
return theme.fontOnSuccess;
|
|
94
|
-
},
|
|
95
|
-
|
|
141
|
+
}, _ref27 => {
|
|
142
|
+
let {
|
|
143
|
+
theme
|
|
144
|
+
} = _ref27;
|
|
96
145
|
return theme.fontOnWarning;
|
|
97
|
-
},
|
|
98
|
-
|
|
146
|
+
}, _ref28 => {
|
|
147
|
+
let {
|
|
148
|
+
theme
|
|
149
|
+
} = _ref28;
|
|
99
150
|
return theme.fontOnDanger;
|
|
100
|
-
},
|
|
101
|
-
|
|
151
|
+
}, _ref29 => {
|
|
152
|
+
let {
|
|
153
|
+
theme
|
|
154
|
+
} = _ref29;
|
|
102
155
|
return theme.fontOnBg;
|
|
103
|
-
},
|
|
104
|
-
|
|
156
|
+
}, _ref30 => {
|
|
157
|
+
let {
|
|
158
|
+
theme
|
|
159
|
+
} = _ref30;
|
|
105
160
|
return theme.fontMutedColor;
|
|
106
|
-
},
|
|
107
|
-
|
|
161
|
+
}, _ref31 => {
|
|
162
|
+
let {
|
|
163
|
+
theme
|
|
164
|
+
} = _ref31;
|
|
108
165
|
return theme.boxShadow;
|
|
109
|
-
},
|
|
110
|
-
|
|
166
|
+
}, _ref32 => {
|
|
167
|
+
let {
|
|
168
|
+
theme
|
|
169
|
+
} = _ref32;
|
|
111
170
|
return theme.borderColor;
|
|
112
|
-
},
|
|
113
|
-
|
|
171
|
+
}, _ref33 => {
|
|
172
|
+
let {
|
|
173
|
+
theme
|
|
174
|
+
} = _ref33;
|
|
114
175
|
return theme.borderWidth;
|
|
115
|
-
},
|
|
116
|
-
|
|
176
|
+
}, _ref34 => {
|
|
177
|
+
let {
|
|
178
|
+
theme
|
|
179
|
+
} = _ref34;
|
|
117
180
|
return theme.borderRadiusS;
|
|
118
|
-
},
|
|
119
|
-
|
|
181
|
+
}, _ref35 => {
|
|
182
|
+
let {
|
|
183
|
+
theme
|
|
184
|
+
} = _ref35;
|
|
120
185
|
return theme.borderRadius;
|
|
121
|
-
},
|
|
122
|
-
|
|
186
|
+
}, _ref36 => {
|
|
187
|
+
let {
|
|
188
|
+
theme
|
|
189
|
+
} = _ref36;
|
|
123
190
|
return theme.borderRadiusL;
|
|
124
|
-
},
|
|
125
|
-
|
|
191
|
+
}, _ref37 => {
|
|
192
|
+
let {
|
|
193
|
+
theme
|
|
194
|
+
} = _ref37;
|
|
126
195
|
return theme.borderRadiusRound;
|
|
127
|
-
},
|
|
128
|
-
|
|
196
|
+
}, _ref38 => {
|
|
197
|
+
let {
|
|
198
|
+
theme
|
|
199
|
+
} = _ref38;
|
|
129
200
|
return theme.spacerXS;
|
|
130
|
-
},
|
|
131
|
-
|
|
201
|
+
}, _ref39 => {
|
|
202
|
+
let {
|
|
203
|
+
theme
|
|
204
|
+
} = _ref39;
|
|
132
205
|
return theme.spacerS;
|
|
133
|
-
},
|
|
134
|
-
|
|
206
|
+
}, _ref40 => {
|
|
207
|
+
let {
|
|
208
|
+
theme
|
|
209
|
+
} = _ref40;
|
|
135
210
|
return theme.spacer;
|
|
136
|
-
},
|
|
137
|
-
|
|
211
|
+
}, _ref41 => {
|
|
212
|
+
let {
|
|
213
|
+
theme
|
|
214
|
+
} = _ref41;
|
|
138
215
|
return theme.spacerL;
|
|
139
|
-
},
|
|
140
|
-
|
|
216
|
+
}, _ref42 => {
|
|
217
|
+
let {
|
|
218
|
+
theme
|
|
219
|
+
} = _ref42;
|
|
141
220
|
return theme.bgColor1;
|
|
142
221
|
});
|
|
143
|
-
var _default = GlobalStyle;
|
|
144
|
-
exports.default = _default;
|
|
222
|
+
var _default = exports.default = GlobalStyle;
|
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
7
|
+
const breakpoints = {
|
|
8
8
|
desktop: 1920,
|
|
9
9
|
laptop: 1200,
|
|
10
10
|
tablet: 768,
|
|
11
11
|
mobile: 576
|
|
12
12
|
};
|
|
13
|
-
var _default = breakpoints;
|
|
14
|
-
exports.default = _default;
|
|
13
|
+
var _default = exports.default = breakpoints;
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
7
|
+
const headerStyle = {
|
|
8
8
|
height: '64px'
|
|
9
9
|
};
|
|
10
|
-
var _default = headerStyle;
|
|
11
|
-
exports.default = _default;
|
|
10
|
+
var _default = exports.default = headerStyle;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
7
|
+
const sidebarStyle = {
|
|
8
8
|
close: {
|
|
9
9
|
width: '72px',
|
|
10
10
|
height: '100%'
|
|
@@ -14,5 +14,4 @@ var sidebarStyle = {
|
|
|
14
14
|
height: '100%'
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
var _default = sidebarStyle;
|
|
18
|
-
exports.default = _default;
|
|
17
|
+
var _default = exports.default = sidebarStyle;
|
package/styles/index.js
CHANGED
|
@@ -5,19 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "GlobalStyle", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _GlobalStyle.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "themes", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _themes.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
|
|
19
18
|
var _GlobalStyle = _interopRequireDefault(require("./GlobalStyle"));
|
|
20
|
-
|
|
21
19
|
var _themes = _interopRequireDefault(require("./themes"));
|
|
22
|
-
|
|
23
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|