@cashub/ui-elv 1.0.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 +28 -0
- package/Tab/TabList.js +167 -0
- package/Tab/TabPanel.js +49 -0
- package/Tab/TabTab.js +105 -0
- package/Tab/index.js +30 -0
- package/Tab/subComponent/TabContext.js +9 -0
- 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 +27 -0
- package/VerticalTab/TabPanel.js +52 -0
- package/VerticalTab/TabTab.js +70 -0
- package/VerticalTab/VerticalTab.js +41 -0
- package/VerticalTab/index.js +16 -0
- package/VerticalTab/subComponent/TabContext.js +9 -0
- package/alert/Alert.js +29 -0
- package/alert/index.js +13 -0
- package/animate/Collapse.js +71 -0
- package/animate/Loader.js +58 -0
- package/animate/NumberCounter.js +51 -0
- package/animate/PulseRing.js +35 -0
- package/animate/Spinner.js +18 -0
- package/animate/index.js +41 -0
- package/assets/css/autocomplete.css +16 -0
- package/assets/css/font.css +4 -0
- package/assets/css/global.css +2 -0
- package/assets/font/helvetica/Helvetica.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
- package/assets/icons/app-management.png +0 -0
- package/assets/icons/burger-black.png +0 -0
- package/assets/icons/burger-white.png +0 -0
- package/assets/icons/burger.png +0 -0
- package/assets/icons/file.svg +1 -0
- package/assets/icons/map_icon1.png +0 -0
- package/assets/icons/map_icon4.png +0 -0
- package/assets/images/bg-aside.png +0 -0
- package/assets/images/bg-chart-circle.png +0 -0
- package/assets/images/bg-chart-triangle.png +0 -0
- package/assets/images/cashub-logo-only.png +0 -0
- package/assets/images/default-user.jpg +0 -0
- package/assets/images/logo-cashub.png +0 -0
- package/assets/images/map.png +0 -0
- package/assets/images/qrcode.png +0 -0
- package/backdrop/BaseBackdrop.js +18 -0
- package/backdrop/LoadingBackdrop.js +17 -0
- package/backdrop/ModalBackdrop.js +15 -0
- package/backdrop/index.js +27 -0
- package/badge/Badge.js +26 -0
- package/badge/BadgeDot.js +18 -0
- package/badge/BadgeFill.js +49 -0
- package/badge/BadgeFillTriangle.js +147 -0
- package/badge/BadgeWithText.js +31 -0
- package/badge/index.js +41 -0
- package/billing/BarChart.js +51 -0
- package/billing/Grid.js +45 -0
- package/billing/Header2.js +25 -0
- package/billing/Header3.js +37 -0
- package/billing/Paragraph.js +33 -0
- package/billing/ParagraphGroup.js +22 -0
- package/billing/ParagraphText.js +26 -0
- package/billing/Section.js +50 -0
- package/billing/SectionBody.js +17 -0
- package/billing/SectionHeader.js +26 -0
- package/billing/__stories__/BarChart.stories.js_bak +46 -0
- package/billing/__stories__/Grid.stories.js_bak +57 -0
- package/billing/__stories__/Header2.stories.js_bak +62 -0
- package/billing/__stories__/Header3.stories.js_bak +69 -0
- package/billing/__stories__/Paragraph.stories.js_bak +84 -0
- package/billing/__stories__/ParagraphGroup.stories.js_bak +68 -0
- package/billing/__stories__/ParagraphText.stories.js_bak +64 -0
- package/billing/__stories__/Section.stories.js_bak +115 -0
- package/billing/__stories__/SectionBody.stories.js_bak +62 -0
- package/billing/__stories__/SectionHeader.stories.js-bak +68 -0
- package/breadcrumb/Breadcrumb.js +78 -0
- package/breadcrumb/index.js +13 -0
- package/button/Button.js +154 -0
- package/button/ButtonGroup.js +61 -0
- package/button/IconButton.js +72 -0
- package/button/ScrollToTopButton.js +54 -0
- package/button/index.js +34 -0
- package/callout/Callout.js +52 -0
- package/callout/index.js +13 -0
- package/chart/BarChart.js +148 -0
- package/chart/DoughnutChart.js +118 -0
- package/chart/LineChart.js +146 -0
- package/chart/SingleBarChart.js +42 -0
- package/chart/index.js +52 -0
- package/chart/utils/centerTextPlugin.js +62 -0
- package/chart/utils/customTooltip.js +94 -0
- package/chart/utils/htmlLegendPlugin.js +89 -0
- package/chart/utils/index.js +27 -0
- package/chart/utils/padEmptyChartBar.js +53 -0
- package/chart/utils/yAxisTopTitlePlugin.js +49 -0
- package/container/FlexContainer.js +40 -0
- package/container/index.js +13 -0
- package/cropper/Cropper.js +54 -0
- package/cropper/CropperModalHandler.js +41 -0
- package/cropper/index.js +20 -0
- package/cropper/subComponent/CropImageModal.js +79 -0
- package/datetimePicker/DatePicker.js +363 -0
- package/datetimePicker/DatePickerV2.js +407 -0
- package/datetimePicker/DatetimePicker.js +240 -0
- package/datetimePicker/DatetimePickerV2.js +395 -0
- package/datetimePicker/DatetimePickerV3.js +279 -0
- package/datetimePicker/TimeInput.js +56 -0
- package/datetimePicker/TimePicker.js +317 -0
- package/datetimePicker/TimePickerStyle.js +64 -0
- package/datetimePicker/TimePickerV2.js +208 -0
- package/datetimePicker/accordion/Month.js +254 -0
- package/datetimePicker/accordion/Year.js +284 -0
- package/datetimePicker/hooks/index.js +27 -0
- package/datetimePicker/hooks/useChangeNumber.js +42 -0
- package/datetimePicker/hooks/useDecrease.js +38 -0
- package/datetimePicker/hooks/useIncrease.js +38 -0
- package/datetimePicker/index.js +69 -0
- package/datetimePicker/provider/constant.js +43 -0
- package/datetimePicker/subComponent/Accordion.js +373 -0
- package/datetimePicker/subComponent/CustomTimeInput.js +47 -0
- package/datetimePicker/subComponent/DateTimePickerContext.js +9 -0
- package/datetimePicker/utils/GMTDate.js +15 -0
- package/datetimePicker/utils/pad.js +13 -0
- package/datetimePicker/utils/toUTC0.js +13 -0
- package/descriptionList/DescriptionDetail.js +28 -0
- package/descriptionList/DescriptionList.js +25 -0
- package/descriptionList/DescriptionTerm.js +14 -0
- package/descriptionList/index.js +27 -0
- package/divider/Divider.js +31 -0
- package/divider/index.js +13 -0
- package/dropdown/Dropdown.js +55 -0
- package/dropdown/DropdownButtonOption.js +43 -0
- package/dropdown/DropdownContent.js +90 -0
- package/dropdown/DropdownDivOption.js +26 -0
- package/dropdown/DropdownItem.js +26 -0
- package/dropdown/DropdownLinkOption.js +24 -0
- package/dropdown/DropdownToggle.js +38 -0
- package/dropdown/index.js +42 -0
- package/dropdown/subComponent/DropdownContext.js +9 -0
- package/dropzone/FileDropzone.js +479 -0
- package/dropzone/ImageDropzone.js +334 -0
- package/dropzone/index.js +20 -0
- package/dropzone/subComponent/Message.js +26 -0
- package/figure/IconFigure.js +42 -0
- package/figure/ImageFigure.js +38 -0
- package/figure/index.js +20 -0
- package/file/HiddenFileInput.js +15 -0
- package/file/index.js +13 -0
- package/form/Checkbox.js +166 -0
- package/form/Fieldset.js +18 -0
- package/form/FormItem.js +22 -0
- package/form/Input.js +66 -0
- package/form/Label.js +61 -0
- package/form/MutedText.js +21 -0
- package/form/PasswordInput.js +47 -0
- package/form/RadioButton.js +103 -0
- package/form/SearchSelect.js +181 -0
- package/form/Searchbox.js +98 -0
- package/form/Slider.js +46 -0
- package/form/SwitchButton.js +105 -0
- package/form/Textarea.js +41 -0
- package/form/TreeView.js +73 -0
- package/form/index.js +104 -0
- package/grid/Column.js +46 -0
- package/grid/Grid.js +35 -0
- package/grid/index.js +20 -0
- package/heading/Heading1.js +21 -0
- package/heading/Heading2.js +28 -0
- package/heading/Heading3.js +49 -0
- package/heading/index.js +27 -0
- package/helmet/Helmet.js +23 -0
- package/helmet/index.js +20 -0
- package/iconbox/ApplicationIconBox.js +81 -0
- package/iconbox/IconBox.js +67 -0
- package/iconbox/IconBoxV2.js +72 -0
- package/iconbox/index.js +27 -0
- package/iconbox/subComponent/IconBoxFigure.js +50 -0
- package/iconbox/subComponent/IconBoxImage.js +42 -0
- package/image/ImageFluid.js +17 -0
- package/image/UploadImage.js +250 -0
- package/image/index.js +20 -0
- package/index.js +568 -0
- package/jsoneditor/JsonEditor.js +142 -0
- package/jsoneditor/index.js +13 -0
- package/keyframe/Pulse.js +21 -0
- package/keyframe/Spin.js +13 -0
- package/layout/Aside.js +48 -0
- package/layout/AsideHeader.jsx +27 -0
- package/layout/Backdrop.js +23 -0
- package/layout/Container.js +39 -0
- package/layout/Footer.js +45 -0
- package/layout/Header.jsx +55 -0
- package/layout/Layout.jsx +84 -0
- package/layout/Logo.jsx +17 -0
- package/layout/MenuIcon.jsx +27 -0
- package/layout/Sidebar.jsx +271 -0
- package/layout/index.js +13 -0
- package/link/LinkSpan.js +69 -0
- package/link/index.js +13 -0
- package/map/GoogleMap.js +448 -0
- package/map/GoogleReverseGeolocation.js +200 -0
- package/map/LeafletMap.js +231 -0
- package/map/LeafletReverseGeolocation.js +101 -0
- package/map/index.js +34 -0
- package/map/subComponent/BasicLeafletMap.js +34 -0
- package/map/subComponent/GoogleMapContainer.js +29 -0
- package/map/subComponent/GoogleMapPopup.js +109 -0
- package/map/subComponent/GoogleMapWrapper.js +40 -0
- package/map/subComponent/LeafletDrawControl.js +127 -0
- package/map/subComponent/LeafletMapContainer.js +173 -0
- package/map/subComponent/MapSearchBoxControl.js +54 -0
- package/modal/StateModal.js +178 -0
- package/modal/TitleModal.js +250 -0
- package/modal/index.js +20 -0
- package/package.json +54 -0
- package/page/Disclaimer.js +128 -0
- package/page/index.js +13 -0
- package/paginate/Paginate.js +137 -0
- package/paginate/index.js +13 -0
- package/popover/Popover.js +91 -0
- package/popover/index.js +13 -0
- package/qrcode/QRCode.js +58 -0
- package/qrcode/QRCodeContainter.js +34 -0
- package/qrcode/index.js +20 -0
- package/ribbon/Ribbon.js +42 -0
- package/ribbon/index.js +13 -0
- package/section/Section.js +133 -0
- package/section/SectionBody.js +52 -0
- package/section/SectionHeader.js +70 -0
- package/section/SectionToolbar.js +18 -0
- package/section/SectionToolbarItem.js +17 -0
- package/section/index.js +41 -0
- package/select/InputSelect.js +270 -0
- package/select/Select.js +818 -0
- package/select/index.js +20 -0
- package/select/subComponent/Checkbox.js +48 -0
- package/select/subComponent/Footer.js +13 -0
- package/select/subComponent/ListBox.js +30 -0
- package/select/subComponent/Option.js +45 -0
- package/select/subComponent/OptionGroup.js +23 -0
- package/select/subComponent/Options.js +32 -0
- package/select/subComponent/SearchBox.js +58 -0
- package/select/subComponent/SelectedMultipleCount.js +39 -0
- package/select/subComponent/SelectedMultipleTags.js +54 -0
- package/select/subComponent/SelectedMultipleText.js +70 -0
- package/select/subComponent/SelectedSingle.js +17 -0
- package/styles/GlobalStyle.js +334 -0
- package/styles/config/breakpoint.style.js +13 -0
- package/styles/config/header.style.js +10 -0
- package/styles/config/sidebar.style.js +17 -0
- package/styles/index.js +20 -0
- package/styles/mixin/backgroundColor.js +44 -0
- package/styles/mixin/borderColor.js +37 -0
- package/styles/mixin/color.js +37 -0
- package/styles/mixin/colorOnBackground.js +37 -0
- package/styles/mixin/inputPlaceholder.js +30 -0
- package/styles/mixin/media.js +21 -0
- package/styles/mixin/rounded.js +30 -0
- package/styles/mixin/scrollbar.js +32 -0
- package/styles/theme/dark.theme.js +97 -0
- package/styles/theme/light.theme.js +97 -0
- package/styles/theme/white.theme.js +97 -0
- package/styles/themes.js +16 -0
- package/table/GridTable.js +336 -0
- package/table/ImageBox.js +45 -0
- package/table/InfiniteGridTable.js +403 -0
- package/table/PermissionTable.js +64 -0
- package/table/SimpleGridTable.js +143 -0
- package/table/Table.js +568 -0
- package/table/__mock__/columns.js +70 -0
- package/table/__mock__/data.js +536 -0
- package/table/hooks/index.js +20 -0
- package/table/hooks/useCalculateDataRange.js +28 -0
- package/table/hooks/useGenerateSort.js +39 -0
- package/table/index.js +48 -0
- package/table/subComponent/BaseTableHeadCell.js +62 -0
- package/table/subComponent/GridTableFooter.js +24 -0
- package/table/subComponent/GridTableHeadCell.js +20 -0
- package/table/subComponent/Resizer.js +77 -0
- package/table/subComponent/TableFooter.js +31 -0
- package/table/subComponent/TableFooterInfo.js +13 -0
- package/table/subComponent/TableFooterPager.js +33 -0
- package/table/subComponent/TableHeadCell.js +19 -0
- package/table/subComponent/TableSort.js +38 -0
- package/tagify/TagifyStyle.js +60 -0
- package/tagify/Tags.js +56 -0
- package/tagify/index.js +27 -0
- package/tagify/templates/getCreateButtonTemplate.js +18 -0
- package/text/Paragraph.js +86 -0
- package/text/index.js +13 -0
- package/timeline/Timeline.js +139 -0
- package/timeline/index.js +13 -0
- package/toast/CustomToastContainer.js +45 -0
- package/toast/MessageContainer.js +51 -0
- package/toast/index.js +36 -0
- package/toast/show.js +39 -0
- package/toast/style.css +1 -0
- package/tooltip/Tooltip.js +140 -0
- package/tooltip/index.js +13 -0
- package/treeView/TreeViewV2.js +38 -0
- package/treeView/TreeflexStyle.js +49 -0
- package/treeView/index.js +20 -0
- package/wizard/Wizard.js +251 -0
- package/wizard/index.js +13 -0
package/select/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "InputSelect", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _InputSelect.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "Select", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Select.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _Select = _interopRequireDefault(require("./Select"));
|
|
19
|
+
var _InputSelect = _interopRequireDefault(require("./InputSelect"));
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
+
var _md = require("react-icons/md");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
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); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
const Checkbox = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
selected
|
|
15
|
+
} = _ref;
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Container, {
|
|
17
|
+
selected: selected,
|
|
18
|
+
children: selected && /*#__PURE__*/(0, _jsxRuntime.jsx)(_md.MdDone, {})
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const Container = _styledComponents.default.div`
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 24px;
|
|
24
|
+
height: 24px;
|
|
25
|
+
border: var(--border-width) solid var(--border-color);
|
|
26
|
+
margin-right: var(--spacing-xs);
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
|
|
29
|
+
${_ref2 => {
|
|
30
|
+
let {
|
|
31
|
+
selected
|
|
32
|
+
} = _ref2;
|
|
33
|
+
return selected && (0, _styledComponents.css)`
|
|
34
|
+
background: var(--color-primary);
|
|
35
|
+
border-color: var(--color-primary);
|
|
36
|
+
`;
|
|
37
|
+
}}
|
|
38
|
+
|
|
39
|
+
> svg {
|
|
40
|
+
position: absolute;
|
|
41
|
+
color: var(--font-on-primary);
|
|
42
|
+
font-size: var(--font-h3);
|
|
43
|
+
top: 50%;
|
|
44
|
+
left: 50%;
|
|
45
|
+
transform: translate(-50%, -50%);
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
var _default = exports.default = Checkbox;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const Footer = _styledComponents.default.div`
|
|
10
|
+
padding: var(--spacing-s);
|
|
11
|
+
border-top: 1px solid var(--border-color);
|
|
12
|
+
`;
|
|
13
|
+
var _default = exports.default = Footer;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const ListBox = _styledComponents.default.div`
|
|
10
|
+
visibility: ${_ref => {
|
|
11
|
+
let {
|
|
12
|
+
$display
|
|
13
|
+
} = _ref;
|
|
14
|
+
return $display ? 'visible' : 'hidden';
|
|
15
|
+
}};
|
|
16
|
+
background: var(--color-background1);
|
|
17
|
+
color: var(--font-on-background);
|
|
18
|
+
border: var(--border-width) solid var(--border-color);
|
|
19
|
+
border-radius: var(--border-radius);
|
|
20
|
+
box-shadow: var(--box-shadow);
|
|
21
|
+
width: ${_ref2 => {
|
|
22
|
+
let {
|
|
23
|
+
width
|
|
24
|
+
} = _ref2;
|
|
25
|
+
return width;
|
|
26
|
+
}}px;
|
|
27
|
+
z-index: 85;
|
|
28
|
+
`;
|
|
29
|
+
ListBox.displayName = 'ListBox';
|
|
30
|
+
var _default = exports.default = ListBox;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
const Option = _styledComponents.default.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
word-break: break-all;
|
|
15
|
+
padding: 12px var(--spacing-s);
|
|
16
|
+
background: var(--color-background1);
|
|
17
|
+
transition: background 0.3s;
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
background: var(--color-hover);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
${_ref => {
|
|
24
|
+
let {
|
|
25
|
+
selected,
|
|
26
|
+
focus
|
|
27
|
+
} = _ref;
|
|
28
|
+
return (selected || focus) && (0, _styledComponents.css)`
|
|
29
|
+
background: var(--color-hover);
|
|
30
|
+
`;
|
|
31
|
+
}}
|
|
32
|
+
|
|
33
|
+
${_ref2 => {
|
|
34
|
+
let {
|
|
35
|
+
disabled
|
|
36
|
+
} = _ref2;
|
|
37
|
+
return disabled && (0, _styledComponents.css)`
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
color: var(--font-on-mute);
|
|
41
|
+
`;
|
|
42
|
+
}}
|
|
43
|
+
`;
|
|
44
|
+
Option.displayName = 'Option';
|
|
45
|
+
var _default = exports.default = Option;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const OptionGroup = _styledComponents.default.div`
|
|
10
|
+
[role='presentation'] {
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
background: var(--color-background1);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[role='option'] {
|
|
19
|
+
padding-left: calc(var(--spacing-s) * 2);
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
OptionGroup.displayName = 'OptionGroup';
|
|
23
|
+
var _default = exports.default = OptionGroup;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _scrollbar = _interopRequireDefault(require("../../styles/mixin/scrollbar"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const Options = _styledComponents.default.div`
|
|
11
|
+
position: relative;
|
|
12
|
+
padding: var(--spacing-xs) 0;
|
|
13
|
+
max-height: min(320px, calc(50vh - 36px - 20px - 36px));
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
overflow-x: visible;
|
|
16
|
+
border-radius: var(--border-radius);
|
|
17
|
+
|
|
18
|
+
${_ref => {
|
|
19
|
+
let {
|
|
20
|
+
allowSearch
|
|
21
|
+
} = _ref;
|
|
22
|
+
return allowSearch && `
|
|
23
|
+
padding-top: 0;
|
|
24
|
+
border-top-left-radius: 0;
|
|
25
|
+
border-top-right-radius: 0;
|
|
26
|
+
`;
|
|
27
|
+
}}
|
|
28
|
+
|
|
29
|
+
${_scrollbar.default}
|
|
30
|
+
`;
|
|
31
|
+
Options.displayName = 'Options';
|
|
32
|
+
var _default = exports.default = Options;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _go = require("react-icons/go");
|
|
10
|
+
var _inputPlaceholder = _interopRequireDefault(require("../../styles/mixin/inputPlaceholder"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
const SearchBox = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
+
const handleClick = event => {
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
};
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
|
|
18
|
+
onClick: handleClick,
|
|
19
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_go.GoSearch, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchInput, {
|
|
20
|
+
type: "text",
|
|
21
|
+
ref: ref,
|
|
22
|
+
...props
|
|
23
|
+
})]
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
const Wrapper = _styledComponents.default.div`
|
|
27
|
+
position: relative;
|
|
28
|
+
padding: var(--spacing-xs);
|
|
29
|
+
|
|
30
|
+
> svg {
|
|
31
|
+
color: var(--font-on-mute);
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 50%;
|
|
34
|
+
transform: translateY(-50%);
|
|
35
|
+
left: calc(var(--spacing-s) + var(--spacing-xs));
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
Wrapper.displayName = 'Wrapper';
|
|
39
|
+
const SearchInput = _styledComponents.default.input`
|
|
40
|
+
background: var(--color-background1);
|
|
41
|
+
color: var(--font-on-background);
|
|
42
|
+
border-radius: var(--border-radius-l);
|
|
43
|
+
border: var(--border-width) solid var(--border-color);
|
|
44
|
+
outline: none;
|
|
45
|
+
width: 100%;
|
|
46
|
+
padding: 10px var(--spacing-s) 10px calc(var(--spacing-s) * 2 + 8px);
|
|
47
|
+
max-height: 36px;
|
|
48
|
+
|
|
49
|
+
&:disabled {
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
${(0, _inputPlaceholder.default)`
|
|
54
|
+
color: var(--font-on-mute);
|
|
55
|
+
`}
|
|
56
|
+
`;
|
|
57
|
+
SearchInput.displayName = 'SearchInput';
|
|
58
|
+
var _default = exports.default = SearchBox;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const SelectedMultipleCount = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
placeholder,
|
|
13
|
+
count
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Text, {
|
|
16
|
+
children: [placeholder, count > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(CountBadge, {
|
|
17
|
+
children: count
|
|
18
|
+
})]
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const Text = _styledComponents.default.span`
|
|
22
|
+
color: var(--font-on-background);
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
`;
|
|
29
|
+
const CountBadge = _styledComponents.default.span`
|
|
30
|
+
display: inline-block;
|
|
31
|
+
margin-left: 6px;
|
|
32
|
+
padding: 0 6px;
|
|
33
|
+
border-radius: var(--border-radius-l);
|
|
34
|
+
background: var(--color-primary);
|
|
35
|
+
color: #fff;
|
|
36
|
+
font-size: var(--font-caption);
|
|
37
|
+
line-height: 18px;
|
|
38
|
+
`;
|
|
39
|
+
var _default = exports.default = SelectedMultipleCount;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _fa = require("react-icons/fa");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const SelectedMultipleTags = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
content,
|
|
14
|
+
onClick,
|
|
15
|
+
disabled
|
|
16
|
+
} = _ref;
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Selected, {
|
|
18
|
+
$disabled: disabled,
|
|
19
|
+
children: [!disabled && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20
|
+
onClick: onClick,
|
|
21
|
+
"data-testid": "removeOption",
|
|
22
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaTimes, {})
|
|
23
|
+
}), content]
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const Selected = _styledComponents.default.div`
|
|
27
|
+
align-items: center;
|
|
28
|
+
display: flex;
|
|
29
|
+
background: var(--color-background3);
|
|
30
|
+
border-radius: var(--border-radius-l);
|
|
31
|
+
padding: 0.25rem calc(var(--spacing-xs) + 4px);
|
|
32
|
+
margin: 4px 10px 4px 0;
|
|
33
|
+
color: var(--font-on-background);
|
|
34
|
+
font-weight: var(--font-normal);
|
|
35
|
+
word-break: break-all;
|
|
36
|
+
|
|
37
|
+
> span {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
|
|
41
|
+
> svg {
|
|
42
|
+
margin-right: var(--spacing-xs);
|
|
43
|
+
color: var(--font-on-background);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
${_ref2 => {
|
|
48
|
+
let {
|
|
49
|
+
$disabled
|
|
50
|
+
} = _ref2;
|
|
51
|
+
return $disabled && 'cursor: not-allowed;opacity: 0.5;';
|
|
52
|
+
}}
|
|
53
|
+
`;
|
|
54
|
+
var _default = exports.default = SelectedMultipleTags;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const SelectedMultipleText = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
children
|
|
14
|
+
} = _ref;
|
|
15
|
+
const textRef = (0, _react.useRef)(null);
|
|
16
|
+
const [position, setPosition] = (0, _react.useState)({
|
|
17
|
+
x: 0,
|
|
18
|
+
y: 0
|
|
19
|
+
});
|
|
20
|
+
const [show, setShow] = (0, _react.useState)(false);
|
|
21
|
+
const handleMouseEnter = () => {
|
|
22
|
+
const element = textRef.current;
|
|
23
|
+
// show tooltip on content width exceeds container width only
|
|
24
|
+
if (element.scrollWidth > element.clientWidth) {
|
|
25
|
+
const rect = element.getBoundingClientRect();
|
|
26
|
+
setPosition({
|
|
27
|
+
x: rect.left,
|
|
28
|
+
y: rect.bottom + 8
|
|
29
|
+
});
|
|
30
|
+
setShow(true);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
34
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
35
|
+
ref: textRef,
|
|
36
|
+
onMouseEnter: handleMouseEnter,
|
|
37
|
+
onMouseLeave: () => {
|
|
38
|
+
setShow(false);
|
|
39
|
+
},
|
|
40
|
+
children: children
|
|
41
|
+
}), show && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, {
|
|
42
|
+
style: {
|
|
43
|
+
left: position.x,
|
|
44
|
+
top: position.y
|
|
45
|
+
},
|
|
46
|
+
children: children
|
|
47
|
+
})]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
const Text = _styledComponents.default.span`
|
|
51
|
+
color: var(--font-on-background);
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
`;
|
|
56
|
+
const Tooltip = _styledComponents.default.div`
|
|
57
|
+
position: fixed;
|
|
58
|
+
border: 1px solid var(--border-color);
|
|
59
|
+
color: var(--font-on-background);
|
|
60
|
+
background: var(--color-background2);
|
|
61
|
+
box-shadow: var(--box-shadow);
|
|
62
|
+
border-radius: calc(var(--border-radius) / 2);
|
|
63
|
+
padding: var(--spacing-xs);
|
|
64
|
+
font-size: var(--font-body1);
|
|
65
|
+
font-weight: var(--font-normal);
|
|
66
|
+
z-index: 90;
|
|
67
|
+
width: max-content;
|
|
68
|
+
max-width: 50vw;
|
|
69
|
+
`;
|
|
70
|
+
var _default = exports.default = SelectedMultipleText;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const SelectedSingle = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
color: var(--font-on-background);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
`;
|
|
16
|
+
SelectedSingle.displayName = 'SelectedSingle';
|
|
17
|
+
var _default = exports.default = SelectedSingle;
|