@cashub/ui 0.48.12 → 0.48.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Tab/TabList.js +38 -26
- package/Tab/TabPanel.js +13 -20
- package/Tab/TabTab.js +41 -25
- package/Tab/index.js +3 -6
- package/Tab/subComponent/TabListV2.js +11 -18
- package/Tab/subComponent/TabPanelV2.js +16 -20
- package/Tab/subComponent/TabTabV2.js +33 -21
- package/VerticalTab/TabList.js +13 -18
- package/VerticalTab/TabPanel.js +16 -20
- package/VerticalTab/TabTab.js +40 -21
- package/VerticalTab/VerticalTab.js +8 -4
- package/alert/Alert.js +12 -5
- package/animate/Collapse.js +5 -7
- package/animate/Loader.js +18 -7
- package/animate/PulseRing.js +18 -5
- package/animate/Spinner.js +8 -3
- package/backdrop/BaseBackdrop.js +9 -3
- package/backdrop/LoadingBackdrop.js +7 -3
- package/backdrop/ModalBackdrop.js +5 -3
- package/badge/Badge.js +15 -3
- package/badge/BadgeDot.js +8 -3
- package/badge/BadgeFill.js +24 -6
- package/badge/BadgeWithText.js +13 -3
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +42 -3
- package/button/Button.js +88 -20
- package/button/ButtonGroup.js +33 -9
- package/button/IconButton.js +37 -10
- package/button/ScrollToTopButton.js +12 -4
- package/callout/Callout.js +37 -8
- package/chart/BarChart.js +13 -21
- package/chart/DoughnutChart.js +34 -20
- package/chart/LineChart.js +13 -21
- package/chart/SingleBarChart.js +22 -5
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +8 -8
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/chart/utils/yAxisTopTitlePlugin.js +1 -1
- package/container/FlexContainer.js +15 -7
- package/cropper/Cropper.js +1 -2
- package/datetimePicker/DatePicker.js +80 -26
- package/datetimePicker/DatePickerV2.js +95 -36
- package/datetimePicker/DatetimePicker.js +174 -11
- package/datetimePicker/DatetimePickerV2.js +87 -33
- package/datetimePicker/DatetimePickerV3.js +177 -14
- package/datetimePicker/TimeInput.js +35 -10
- package/datetimePicker/TimePicker.js +77 -22
- package/datetimePicker/TimePickerStyle.js +53 -3
- package/datetimePicker/TimePickerV2.js +58 -28
- package/datetimePicker/accordion/Month.js +93 -16
- package/datetimePicker/accordion/Year.js +96 -18
- package/datetimePicker/hooks/useChangeNumber.js +3 -6
- package/datetimePicker/hooks/useDecrease.js +3 -6
- package/datetimePicker/hooks/useIncrease.js +3 -6
- package/datetimePicker/subComponent/Accordion.js +101 -20
- package/descriptionList/DescriptionDetail.js +15 -4
- package/descriptionList/DescriptionList.js +12 -4
- package/descriptionList/DescriptionTerm.js +5 -3
- package/divider/Divider.js +15 -6
- package/dropdown/DropdownButtonOption.js +22 -6
- package/dropdown/DropdownContent.js +29 -15
- package/dropdown/DropdownDivOption.js +17 -3
- package/dropdown/DropdownLinkOption.js +14 -3
- package/dropdown/DropdownToggle.js +7 -15
- package/dropzone/FileDropzone.js +121 -22
- package/dropzone/ImageDropzone.js +83 -14
- package/dropzone/subComponent/Message.js +11 -4
- package/figure/IconFigure.js +16 -7
- package/figure/ImageFigure.js +19 -6
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +74 -13
- package/form/Fieldset.js +9 -3
- package/form/FormItem.js +10 -5
- package/form/Input.js +40 -7
- package/form/Label.js +34 -10
- package/form/MutedText.js +8 -4
- package/form/PasswordInput.js +20 -13
- package/form/RadioButton.js +55 -8
- package/form/SearchSelect.js +64 -12
- package/form/Searchbox.js +45 -19
- package/form/Slider.js +28 -10
- package/form/SwitchButton.js +48 -14
- package/form/Textarea.js +30 -3
- package/form/TreeView.js +13 -6
- package/grid/Column.js +23 -10
- package/grid/Grid.js +14 -6
- package/heading/Heading1.js +8 -4
- package/heading/Heading2.js +11 -5
- package/heading/Heading3.js +20 -8
- package/iconbox/ApplicationIconBox.js +48 -12
- package/iconbox/IconBox.js +31 -7
- package/iconbox/IconBoxV2.js +33 -8
- package/iconbox/subComponent/IconBoxFigure.js +17 -9
- package/iconbox/subComponent/IconBoxImage.js +21 -8
- package/image/ImageFluid.js +7 -3
- package/image/UploadImage.js +66 -18
- package/jsoneditor/JsonEditor.js +121 -15
- package/keyframe/Pulse.js +13 -3
- package/keyframe/Spin.js +5 -3
- package/layout/Aside.js +30 -5
- package/layout/Backdrop.js +8 -4
- package/layout/Container.js +21 -5
- package/layout/Footer.js +26 -7
- package/link/LinkSpan.js +37 -19
- package/map/GoogleMap.js +3 -7
- package/map/GoogleReverseGeolocation.js +6 -3
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +16 -4
- package/map/subComponent/GoogleMapPopup.js +7 -10
- package/map/subComponent/GoogleMapWrapper.js +8 -15
- package/map/subComponent/LeafletDrawControl.js +9 -7
- package/map/subComponent/LeafletMapContainer.js +159 -4
- package/modal/StateModal.js +56 -33
- package/modal/TitleModal.js +70 -29
- package/package.json +1 -1
- package/page/Disclaimer.js +119 -3
- package/paginate/Paginate.js +54 -12
- package/popover/Popover.js +30 -25
- package/qrcode/QRCode.js +20 -6
- package/qrcode/QRCodeContainter.js +12 -4
- package/ribbon/Ribbon.js +29 -4
- package/section/Section.js +68 -20
- package/section/SectionBody.js +29 -8
- package/section/SectionHeader.js +36 -11
- package/section/SectionToolbar.js +9 -3
- package/section/SectionToolbarItem.js +8 -3
- package/select/InputSelect.js +16 -23
- package/select/Select.js +112 -43
- package/select/subComponent/Checkbox.js +24 -5
- package/select/subComponent/Footer.js +4 -3
- package/select/subComponent/ListBox.js +12 -5
- package/select/subComponent/Option.js +27 -7
- package/select/subComponent/OptionGroup.js +13 -3
- package/select/subComponent/Options.js +18 -5
- package/select/subComponent/SearchBox.js +34 -12
- package/select/subComponent/SelectedMultipleTags.js +21 -3
- package/select/subComponent/SelectedMultipleText.js +20 -4
- package/select/subComponent/SelectedSingle.js +7 -3
- package/styles/GlobalStyle.js +156 -45
- package/styles/mixin/backgroundColor.js +16 -8
- package/styles/mixin/borderColor.js +13 -7
- package/styles/mixin/color.js +13 -7
- package/styles/mixin/colorOnBackground.js +13 -7
- package/styles/mixin/inputPlaceholder.js +20 -3
- package/styles/mixin/media.js +5 -3
- package/styles/mixin/rounded.js +10 -6
- package/styles/mixin/scrollbar.js +13 -3
- package/styles/theme/dark.theme.js +15 -14
- package/styles/theme/light.theme.js +15 -14
- package/styles/theme/white.theme.js +15 -14
- package/table/GridTable.js +71 -33
- package/table/ImageBox.js +15 -5
- package/table/InfiniteGridTable.js +92 -46
- package/table/PermissionTable.js +32 -10
- package/table/SimpleGridTable.js +52 -17
- package/table/Table.js +198 -48
- package/table/__mock__/columns.js +1 -1
- package/table/subComponent/BaseTableHeadCell.js +37 -8
- package/table/subComponent/GridTableFooter.js +10 -4
- package/table/subComponent/GridTableHeadCell.js +6 -4
- package/table/subComponent/Resizer.js +19 -4
- package/table/subComponent/TableFooter.js +15 -6
- package/table/subComponent/TableFooterInfo.js +4 -3
- package/table/subComponent/TableFooterPager.js +19 -6
- package/table/subComponent/TableHeadCell.js +9 -3
- package/table/subComponent/TableSort.js +17 -7
- package/tagify/TagifyStyle.js +49 -3
- package/tagify/Tags.js +37 -21
- package/tagify/templates/getCreateButtonTemplate.js +5 -2
- package/text/Paragraph.js +50 -12
- package/timeline/Timeline.js +94 -17
- package/toast/CustomToastContainer.js +35 -3
- package/toast/MessageContainer.js +22 -4
- package/tooltip/Tooltip.js +47 -19
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +38 -3
- package/wizard/Wizard.js +115 -6
|
@@ -7,10 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
8
|
var _md = require("react-icons/md");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
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); }
|
|
12
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; }
|
|
13
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
14
12
|
const Checkbox = _ref => {
|
|
15
13
|
let {
|
|
16
14
|
selected
|
|
@@ -20,10 +18,31 @@ const Checkbox = _ref => {
|
|
|
20
18
|
children: selected && /*#__PURE__*/(0, _jsxRuntime.jsx)(_md.MdDone, {})
|
|
21
19
|
});
|
|
22
20
|
};
|
|
23
|
-
const Container = _styledComponents.default.div
|
|
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 => {
|
|
24
30
|
let {
|
|
25
31
|
selected
|
|
26
32
|
} = _ref2;
|
|
27
|
-
return selected && (0, _styledComponents.css)
|
|
28
|
-
|
|
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
|
+
`;
|
|
29
48
|
var _default = exports.default = Checkbox;
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const Footer = _styledComponents.default.div`
|
|
10
|
+
padding: var(--spacing-s);
|
|
11
|
+
border-top: 1px solid var(--border-color);
|
|
12
|
+
`;
|
|
12
13
|
var _default = exports.default = Footer;
|
|
@@ -5,19 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const ListBox = _styledComponents.default.div`
|
|
10
|
+
visibility: ${_ref => {
|
|
12
11
|
let {
|
|
13
12
|
$display
|
|
14
13
|
} = _ref;
|
|
15
14
|
return $display ? 'visible' : 'hidden';
|
|
16
|
-
}
|
|
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 => {
|
|
17
22
|
let {
|
|
18
23
|
width
|
|
19
24
|
} = _ref2;
|
|
20
25
|
return width;
|
|
21
|
-
}
|
|
26
|
+
}}px;
|
|
27
|
+
z-index: 85;
|
|
28
|
+
`;
|
|
22
29
|
ListBox.displayName = 'ListBox';
|
|
23
30
|
var _default = exports.default = ListBox;
|
|
@@ -5,21 +5,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
9
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); }
|
|
10
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; }
|
|
11
|
-
|
|
12
|
-
|
|
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 => {
|
|
13
24
|
let {
|
|
14
25
|
selected,
|
|
15
26
|
focus
|
|
16
27
|
} = _ref;
|
|
17
|
-
return (selected || focus) && (0, _styledComponents.css)
|
|
18
|
-
|
|
28
|
+
return (selected || focus) && (0, _styledComponents.css)`
|
|
29
|
+
background: var(--color-hover);
|
|
30
|
+
`;
|
|
31
|
+
}}
|
|
32
|
+
|
|
33
|
+
${_ref2 => {
|
|
19
34
|
let {
|
|
20
35
|
disabled
|
|
21
36
|
} = _ref2;
|
|
22
|
-
return disabled && (0, _styledComponents.css)
|
|
23
|
-
|
|
37
|
+
return disabled && (0, _styledComponents.css)`
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
color: var(--font-on-mute);
|
|
41
|
+
`;
|
|
42
|
+
}}
|
|
43
|
+
`;
|
|
24
44
|
Option.displayName = 'Option';
|
|
25
45
|
var _default = exports.default = Option;
|
|
@@ -5,9 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
`;
|
|
12
22
|
OptionGroup.displayName = 'OptionGroup';
|
|
13
23
|
var _default = exports.default = OptionGroup;
|
|
@@ -6,14 +6,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _scrollbar = _interopRequireDefault(require("../../styles/mixin/scrollbar"));
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
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 => {
|
|
13
19
|
let {
|
|
14
20
|
allowSearch
|
|
15
21
|
} = _ref;
|
|
16
|
-
return allowSearch &&
|
|
17
|
-
|
|
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
|
+
`;
|
|
18
31
|
Options.displayName = 'Options';
|
|
19
32
|
var _default = exports.default = Options;
|
|
@@ -9,28 +9,50 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
9
|
var _go = require("react-icons/go");
|
|
10
10
|
var _inputPlaceholder = _interopRequireDefault(require("../../styles/mixin/inputPlaceholder"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
13
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
15
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
13
|
const SearchBox = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
21
14
|
const handleClick = event => {
|
|
22
15
|
event.stopPropagation();
|
|
23
16
|
};
|
|
24
17
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
|
|
25
18
|
onClick: handleClick,
|
|
26
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_go.GoSearch, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchInput,
|
|
19
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_go.GoSearch, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SearchInput, {
|
|
27
20
|
type: "text",
|
|
28
|
-
ref: ref
|
|
29
|
-
|
|
21
|
+
ref: ref,
|
|
22
|
+
...props
|
|
23
|
+
})]
|
|
30
24
|
});
|
|
31
25
|
});
|
|
32
|
-
const Wrapper = _styledComponents.default.div
|
|
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
|
+
`;
|
|
33
38
|
Wrapper.displayName = 'Wrapper';
|
|
34
|
-
const SearchInput = _styledComponents.default.input
|
|
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
|
+
`;
|
|
35
57
|
SearchInput.displayName = 'SearchInput';
|
|
36
58
|
var _default = exports.default = SearchBox;
|
|
@@ -7,9 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _fa = require("react-icons/fa");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
var _templateObject;
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
13
11
|
const SelectedMultipleTags = _ref => {
|
|
14
12
|
let {
|
|
15
13
|
content,
|
|
@@ -24,5 +22,25 @@ const SelectedMultipleTags = _ref => {
|
|
|
24
22
|
}), content]
|
|
25
23
|
});
|
|
26
24
|
};
|
|
27
|
-
const Selected = _styledComponents.default.div
|
|
25
|
+
const Selected = _styledComponents.default.div`
|
|
26
|
+
align-items: center;
|
|
27
|
+
display: flex;
|
|
28
|
+
background: var(--color-background3);
|
|
29
|
+
border-radius: var(--border-radius-l);
|
|
30
|
+
padding: 0.25rem calc(var(--spacing-xs) + 4px);
|
|
31
|
+
margin: 4px 10px 4px 0;
|
|
32
|
+
color: var(--font-on-background);
|
|
33
|
+
font-weight: var(--font-normal);
|
|
34
|
+
word-break: break-all;
|
|
35
|
+
|
|
36
|
+
> span {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
|
|
40
|
+
> svg {
|
|
41
|
+
margin-right: var(--spacing-xs);
|
|
42
|
+
color: var(--font-on-background);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
28
46
|
var _default = exports.default = SelectedMultipleTags;
|
|
@@ -7,9 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
13
11
|
const SelectedMultipleText = _ref => {
|
|
14
12
|
let {
|
|
15
13
|
children
|
|
@@ -49,6 +47,24 @@ const SelectedMultipleText = _ref => {
|
|
|
49
47
|
})]
|
|
50
48
|
});
|
|
51
49
|
};
|
|
52
|
-
const Text = _styledComponents.default.span
|
|
53
|
-
|
|
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
|
+
`;
|
|
54
70
|
var _default = exports.default = SelectedMultipleText;
|
|
@@ -5,9 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
`;
|
|
12
16
|
SelectedSingle.displayName = 'SelectedSingle';
|
|
13
17
|
var _default = exports.default = SelectedSingle;
|