@cashub/ui 0.47.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Tab/TabList.js +38 -26
- package/Tab/TabPanel.js +13 -20
- package/Tab/TabTab.js +36 -24
- package/Tab/index.js +15 -1
- package/Tab/subComponent/TabListV2.js +25 -0
- package/Tab/subComponent/TabPanelV2.js +52 -0
- package/Tab/subComponent/TabTabV2.js +63 -0
- package/VerticalTab/TabList.js +13 -18
- package/VerticalTab/TabPanel.js +16 -20
- package/VerticalTab/TabTab.js +40 -21
- package/VerticalTab/VerticalTab.js +8 -4
- package/alert/Alert.js +12 -5
- package/animate/Collapse.js +5 -7
- package/animate/Loader.js +18 -7
- package/animate/PulseRing.js +18 -5
- package/animate/Spinner.js +8 -3
- package/backdrop/BaseBackdrop.js +9 -3
- package/backdrop/LoadingBackdrop.js +7 -3
- package/backdrop/ModalBackdrop.js +5 -3
- package/badge/Badge.js +15 -3
- package/badge/BadgeDot.js +8 -3
- package/badge/BadgeFill.js +24 -6
- package/badge/BadgeWithText.js +13 -3
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +42 -3
- package/button/Button.js +88 -20
- package/button/ButtonGroup.js +33 -9
- package/button/IconButton.js +37 -10
- package/button/ScrollToTopButton.js +12 -4
- package/callout/Callout.js +37 -8
- package/chart/BarChart.js +10 -17
- package/chart/DoughnutChart.js +34 -20
- package/chart/LineChart.js +11 -18
- package/chart/SingleBarChart.js +22 -5
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +7 -7
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/container/FlexContainer.js +15 -7
- package/cropper/Cropper.js +1 -2
- package/datetimePicker/DatePicker.js +80 -26
- package/datetimePicker/DatePickerV2.js +95 -36
- package/datetimePicker/DatetimePicker.js +174 -11
- package/datetimePicker/DatetimePickerV2.js +87 -33
- package/datetimePicker/DatetimePickerV3.js +174 -11
- package/datetimePicker/TimeInput.js +35 -10
- package/datetimePicker/TimePicker.js +77 -22
- package/datetimePicker/TimePickerStyle.js +53 -3
- package/datetimePicker/TimePickerV2.js +54 -21
- package/datetimePicker/accordion/Month.js +93 -16
- package/datetimePicker/accordion/Year.js +96 -18
- package/datetimePicker/hooks/useChangeNumber.js +3 -6
- package/datetimePicker/hooks/useDecrease.js +3 -6
- package/datetimePicker/hooks/useIncrease.js +3 -6
- package/datetimePicker/subComponent/Accordion.js +101 -20
- package/descriptionList/DescriptionDetail.js +15 -4
- package/descriptionList/DescriptionList.js +12 -4
- package/descriptionList/DescriptionTerm.js +5 -3
- package/divider/Divider.js +15 -6
- package/dropdown/DropdownButtonOption.js +22 -6
- package/dropdown/DropdownContent.js +29 -15
- package/dropdown/DropdownDivOption.js +17 -3
- package/dropdown/DropdownLinkOption.js +14 -3
- package/dropdown/DropdownToggle.js +7 -15
- package/dropzone/FileDropzone.js +121 -22
- package/dropzone/ImageDropzone.js +83 -14
- package/dropzone/subComponent/Message.js +11 -4
- package/figure/IconFigure.js +16 -7
- package/figure/ImageFigure.js +19 -6
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +74 -13
- package/form/Fieldset.js +9 -3
- package/form/FormItem.js +10 -5
- package/form/Input.js +40 -7
- package/form/Label.js +34 -10
- package/form/MutedText.js +8 -4
- package/form/PasswordInput.js +20 -13
- package/form/RadioButton.js +55 -8
- package/form/SearchSelect.js +64 -12
- package/form/Searchbox.js +45 -19
- package/form/Slider.js +28 -10
- package/form/SwitchButton.js +48 -14
- package/form/Textarea.js +30 -3
- package/form/TreeView.js +13 -6
- package/grid/Column.js +23 -10
- package/grid/Grid.js +14 -6
- package/heading/Heading1.js +8 -4
- package/heading/Heading2.js +11 -5
- package/heading/Heading3.js +20 -8
- package/iconbox/ApplicationIconBox.js +48 -12
- package/iconbox/IconBox.js +31 -7
- package/iconbox/IconBoxV2.js +33 -8
- package/iconbox/subComponent/IconBoxFigure.js +17 -9
- package/iconbox/subComponent/IconBoxImage.js +21 -8
- package/image/ImageFluid.js +7 -3
- package/image/UploadImage.js +66 -18
- package/index.js +8 -1
- package/jsoneditor/JsonEditor.js +121 -15
- package/keyframe/Pulse.js +13 -3
- package/keyframe/Spin.js +5 -3
- package/layout/Aside.js +30 -5
- package/layout/Backdrop.js +8 -4
- package/layout/Container.js +21 -5
- package/layout/Footer.js +26 -7
- package/link/LinkSpan.js +37 -19
- package/map/GoogleMap.js +3 -7
- package/map/GoogleReverseGeolocation.js +6 -3
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +16 -4
- package/map/subComponent/GoogleMapPopup.js +7 -10
- package/map/subComponent/GoogleMapWrapper.js +8 -15
- package/map/subComponent/LeafletDrawControl.js +9 -7
- package/map/subComponent/LeafletMapContainer.js +159 -4
- package/modal/StateModal.js +49 -28
- package/modal/TitleModal.js +70 -29
- package/package.json +1 -1
- package/page/Disclaimer.js +119 -3
- package/paginate/Paginate.js +54 -12
- package/popover/Popover.js +30 -25
- package/qrcode/QRCode.js +20 -6
- package/qrcode/QRCodeContainter.js +12 -4
- package/ribbon/Ribbon.js +29 -4
- package/section/Section.js +68 -20
- package/section/SectionBody.js +29 -8
- package/section/SectionHeader.js +36 -11
- package/section/SectionToolbar.js +9 -3
- package/section/SectionToolbarItem.js +8 -3
- package/select/InputSelect.js +16 -23
- package/select/Select.js +112 -43
- package/select/subComponent/Checkbox.js +24 -5
- package/select/subComponent/Footer.js +4 -3
- package/select/subComponent/ListBox.js +12 -5
- package/select/subComponent/Option.js +27 -7
- package/select/subComponent/OptionGroup.js +13 -3
- package/select/subComponent/Options.js +18 -5
- package/select/subComponent/SearchBox.js +34 -12
- package/select/subComponent/SelectedMultipleTags.js +21 -3
- package/select/subComponent/SelectedMultipleText.js +19 -4
- package/select/subComponent/SelectedSingle.js +7 -3
- package/styles/GlobalStyle.js +156 -45
- package/styles/mixin/backgroundColor.js +16 -8
- package/styles/mixin/borderColor.js +13 -7
- package/styles/mixin/color.js +13 -7
- package/styles/mixin/colorOnBackground.js +13 -7
- package/styles/mixin/inputPlaceholder.js +20 -3
- package/styles/mixin/media.js +5 -3
- package/styles/mixin/rounded.js +10 -6
- package/styles/mixin/scrollbar.js +13 -3
- package/styles/theme/dark.theme.js +15 -14
- package/styles/theme/light.theme.js +15 -14
- package/styles/theme/white.theme.js +15 -14
- package/table/GridTable.js +71 -33
- package/table/ImageBox.js +15 -5
- package/table/InfiniteGridTable.js +92 -46
- package/table/PermissionTable.js +32 -10
- package/table/SimpleGridTable.js +143 -0
- package/table/Table.js +198 -48
- package/table/__mock__/columns.js +1 -1
- package/table/index.js +7 -0
- package/table/subComponent/BaseTableHeadCell.js +37 -8
- package/table/subComponent/GridTableFooter.js +10 -4
- package/table/subComponent/GridTableHeadCell.js +6 -4
- package/table/subComponent/Resizer.js +19 -4
- package/table/subComponent/TableFooter.js +15 -6
- package/table/subComponent/TableFooterInfo.js +4 -3
- package/table/subComponent/TableFooterPager.js +19 -6
- package/table/subComponent/TableHeadCell.js +9 -3
- package/table/subComponent/TableSort.js +17 -7
- package/tagify/TagifyStyle.js +49 -3
- package/tagify/Tags.js +37 -21
- package/tagify/templates/getCreateButtonTemplate.js +5 -2
- package/text/Paragraph.js +50 -12
- package/timeline/Timeline.js +94 -17
- package/toast/CustomToastContainer.js +35 -3
- package/toast/MessageContainer.js +22 -4
- package/tooltip/Tooltip.js +47 -19
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +38 -3
- package/wizard/Wizard.js +115 -6
package/form/Textarea.js
CHANGED
|
@@ -7,8 +7,35 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _inputPlaceholder = _interopRequireDefault(require("../styles/mixin/inputPlaceholder"));
|
|
9
9
|
var _scrollbar = _interopRequireDefault(require("../styles/mixin/scrollbar"));
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const Textarea = _styledComponents.default.textarea`
|
|
12
|
+
display: block;
|
|
13
|
+
width: 100%;
|
|
14
|
+
border: var(--border-width) solid var(--border-color);
|
|
15
|
+
padding: 10px var(--spacing-s);
|
|
16
|
+
border-radius: var(--border-radius);
|
|
17
|
+
background: transparent;
|
|
18
|
+
color: var(--font-on-background);
|
|
19
|
+
transition: 0.3s;
|
|
20
|
+
line-height: 1.5;
|
|
21
|
+
|
|
22
|
+
/* disable resize because currently cannot fully control the resizer element */
|
|
23
|
+
resize: none;
|
|
24
|
+
|
|
25
|
+
${_scrollbar.default}
|
|
26
|
+
|
|
27
|
+
&:focus {
|
|
28
|
+
border: var(--border-width) solid var(--color-primary);
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:disabled {
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
opacity: 0.5;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
${(0, _inputPlaceholder.default)`
|
|
38
|
+
color: var(--font-on-mute);
|
|
39
|
+
`}
|
|
40
|
+
`;
|
|
14
41
|
var _default = exports.default = Textarea;
|
package/form/TreeView.js
CHANGED
|
@@ -10,9 +10,7 @@ var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
|
10
10
|
var _Input = _interopRequireDefault(require("./Input"));
|
|
11
11
|
var _container = require("../container");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var _templateObject;
|
|
14
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
14
|
const TreeView = _ref => {
|
|
17
15
|
let {
|
|
18
16
|
data,
|
|
@@ -23,8 +21,7 @@ const TreeView = _ref => {
|
|
|
23
21
|
let parentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
24
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(UnorderedList, {
|
|
25
23
|
children: data.map(item => {
|
|
26
|
-
|
|
27
|
-
const id = "".concat(parentPath.join('')).concat(item.id).replace(/\s/g, '');
|
|
24
|
+
const id = `${parentPath.join('')}${item.id}`.replace(/\s/g, '');
|
|
28
25
|
const currentPath = parentPath.concat(item.id);
|
|
29
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
30
27
|
children: [item.type === 'checkbox' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox.default, {
|
|
@@ -55,12 +52,22 @@ const TreeView = _ref => {
|
|
|
55
52
|
},
|
|
56
53
|
disabled: item.disabled
|
|
57
54
|
})]
|
|
58
|
-
}),
|
|
55
|
+
}), item.children?.length > 0 ? renderList(item.children, parentPath.concat(item.id)) : null]
|
|
59
56
|
}, item.id);
|
|
60
57
|
})
|
|
61
58
|
});
|
|
62
59
|
};
|
|
63
60
|
return renderList(data);
|
|
64
61
|
};
|
|
65
|
-
const UnorderedList = _styledComponents.default.ul
|
|
62
|
+
const UnorderedList = _styledComponents.default.ul`
|
|
63
|
+
color: var(--font-on-background);
|
|
64
|
+
|
|
65
|
+
ul {
|
|
66
|
+
margin-left: var(--spacing-s);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
li {
|
|
70
|
+
margin-top: var(--spacing-xs);
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
66
73
|
var _default = exports.default = TreeView;
|
package/grid/Column.js
CHANGED
|
@@ -6,28 +6,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const Column = _styledComponents.default.div`
|
|
11
|
+
padding: 0 calc(var(--spacing) / 2);
|
|
12
|
+
grid-column-end: span ${_ref => {
|
|
13
13
|
let {
|
|
14
14
|
desktop
|
|
15
15
|
} = _ref;
|
|
16
16
|
return desktop;
|
|
17
|
-
}
|
|
17
|
+
}};
|
|
18
|
+
|
|
19
|
+
${_ref2 => {
|
|
18
20
|
let {
|
|
19
21
|
laptop
|
|
20
22
|
} = _ref2;
|
|
21
|
-
return laptop && _media.default.laptop
|
|
22
|
-
|
|
23
|
+
return laptop && _media.default.laptop`
|
|
24
|
+
grid-column-end: span ${laptop};
|
|
25
|
+
`;
|
|
26
|
+
}}
|
|
27
|
+
|
|
28
|
+
${_ref3 => {
|
|
23
29
|
let {
|
|
24
30
|
tablet
|
|
25
31
|
} = _ref3;
|
|
26
|
-
return tablet && _media.default.tablet
|
|
27
|
-
|
|
32
|
+
return tablet && _media.default.tablet`
|
|
33
|
+
grid-column-end: span ${tablet};
|
|
34
|
+
`;
|
|
35
|
+
}}
|
|
36
|
+
|
|
37
|
+
${_ref4 => {
|
|
28
38
|
let {
|
|
29
39
|
mobile
|
|
30
40
|
} = _ref4;
|
|
31
|
-
return mobile && _media.default.mobile
|
|
32
|
-
}
|
|
41
|
+
return mobile && _media.default.mobile`
|
|
42
|
+
grid-column-end: span ${mobile};
|
|
43
|
+
`;
|
|
44
|
+
}}
|
|
45
|
+
`;
|
|
33
46
|
var _default = exports.default = Column;
|
package/grid/Grid.js
CHANGED
|
@@ -5,23 +5,31 @@ 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 Grid = _styledComponents.default.div`
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: repeat(${_ref => {
|
|
12
12
|
let {
|
|
13
13
|
columns
|
|
14
14
|
} = _ref;
|
|
15
15
|
return columns;
|
|
16
|
-
},
|
|
16
|
+
}}, minmax(0, 1fr));
|
|
17
|
+
margin: 0 calc(var(--spacing) * -1 / 2);
|
|
18
|
+
|
|
19
|
+
> * {
|
|
20
|
+
grid-column-end: span ${_ref2 => {
|
|
17
21
|
let {
|
|
18
22
|
columns
|
|
19
23
|
} = _ref2;
|
|
20
24
|
return columns;
|
|
21
|
-
}
|
|
25
|
+
}};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
${_ref3 => {
|
|
22
29
|
let {
|
|
23
30
|
alignCenter
|
|
24
31
|
} = _ref3;
|
|
25
32
|
return alignCenter && 'align-items: center;';
|
|
26
|
-
}
|
|
33
|
+
}}
|
|
34
|
+
`;
|
|
27
35
|
var _default = exports.default = Grid;
|
package/heading/Heading1.js
CHANGED
|
@@ -5,13 +5,17 @@ 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 Heading1 = _styledComponents.default.h1`
|
|
10
|
+
font-size: var(--font-h1);
|
|
11
|
+
word-break: break-word;
|
|
12
|
+
white-space: pre-wrap;
|
|
13
|
+
|
|
14
|
+
${_ref => {
|
|
12
15
|
let {
|
|
13
16
|
center
|
|
14
17
|
} = _ref;
|
|
15
18
|
return center && 'text-align: center;';
|
|
16
|
-
}
|
|
19
|
+
}}
|
|
20
|
+
`;
|
|
17
21
|
var _default = exports.default = Heading1;
|
package/heading/Heading2.js
CHANGED
|
@@ -5,18 +5,24 @@ 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 Heading2 = _styledComponents.default.h2`
|
|
10
|
+
font-size: var(--font-h2);
|
|
11
|
+
word-break: break-word;
|
|
12
|
+
white-space: pre-wrap;
|
|
13
|
+
|
|
14
|
+
${_ref => {
|
|
12
15
|
let {
|
|
13
16
|
center
|
|
14
17
|
} = _ref;
|
|
15
18
|
return center && 'text-align: center;';
|
|
16
|
-
}
|
|
19
|
+
}}
|
|
20
|
+
|
|
21
|
+
${_ref2 => {
|
|
17
22
|
let {
|
|
18
23
|
marginBottom
|
|
19
24
|
} = _ref2;
|
|
20
25
|
return marginBottom && 'margin-bottom: var(--spacing);';
|
|
21
|
-
}
|
|
26
|
+
}}
|
|
27
|
+
`;
|
|
22
28
|
var _default = exports.default = Heading2;
|
package/heading/Heading3.js
CHANGED
|
@@ -5,33 +5,45 @@ 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 Heading3 = _styledComponents.default.h3`
|
|
10
|
+
font-size: var(--font-h3);
|
|
11
|
+
word-break: break-word;
|
|
12
|
+
white-space: pre-wrap;
|
|
13
|
+
|
|
14
|
+
${_ref => {
|
|
12
15
|
let {
|
|
13
16
|
center
|
|
14
17
|
} = _ref;
|
|
15
18
|
return center && 'text-align: center;';
|
|
16
|
-
}
|
|
19
|
+
}}
|
|
20
|
+
|
|
21
|
+
${_ref2 => {
|
|
17
22
|
let {
|
|
18
23
|
fontWeightNormal
|
|
19
24
|
} = _ref2;
|
|
20
25
|
return fontWeightNormal && 'font-weight: normal;';
|
|
21
|
-
}
|
|
26
|
+
}}
|
|
27
|
+
|
|
28
|
+
${_ref3 => {
|
|
22
29
|
let {
|
|
23
30
|
marginBottomS
|
|
24
31
|
} = _ref3;
|
|
25
32
|
return marginBottomS && 'margin-bottom: var(--spacing-s);';
|
|
26
|
-
}
|
|
33
|
+
}}
|
|
34
|
+
|
|
35
|
+
${_ref4 => {
|
|
27
36
|
let {
|
|
28
37
|
marginBottomXS
|
|
29
38
|
} = _ref4;
|
|
30
39
|
return marginBottomXS && 'margin-bottom: var(--spacing-xs);';
|
|
31
|
-
}
|
|
40
|
+
}}
|
|
41
|
+
|
|
42
|
+
${_ref5 => {
|
|
32
43
|
let {
|
|
33
44
|
paddingBottomXS
|
|
34
45
|
} = _ref5;
|
|
35
46
|
return paddingBottomXS && 'padding-bottom: var(--spacing-xs);';
|
|
36
|
-
}
|
|
47
|
+
}}
|
|
48
|
+
`;
|
|
37
49
|
var _default = exports.default = Heading3;
|
|
@@ -7,34 +7,70 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _IconBoxFigure = _interopRequireDefault(require("./subComponent/IconBoxFigure"));
|
|
9
9
|
var _IconBoxImage = _interopRequireDefault(require("./subComponent/IconBoxImage"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const ApplicationIconBox = _styledComponents.default.div`
|
|
12
|
+
margin-bottom: var(--spacing);
|
|
13
|
+
|
|
14
|
+
${_ref => {
|
|
14
15
|
let {
|
|
15
16
|
clickable
|
|
16
17
|
} = _ref;
|
|
17
18
|
return clickable && 'cursor: pointer';
|
|
18
|
-
}
|
|
19
|
-
|
|
19
|
+
}};
|
|
20
|
+
`;
|
|
21
|
+
const Body = _styledComponents.default.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
padding-top: var(--spacing-xs);
|
|
25
|
+
border: var(--border-width) solid transparent;
|
|
26
|
+
|
|
27
|
+
${_ref2 => {
|
|
20
28
|
let {
|
|
21
29
|
horizontal
|
|
22
30
|
} = _ref2;
|
|
23
31
|
return horizontal && 'flex-direction: row;';
|
|
24
|
-
}
|
|
32
|
+
}}
|
|
33
|
+
${_ref3 => {
|
|
25
34
|
let {
|
|
26
35
|
alignCenter
|
|
27
36
|
} = _ref3;
|
|
28
37
|
return alignCenter && 'text-align: center;';
|
|
29
|
-
}
|
|
38
|
+
}}
|
|
39
|
+
${_ref4 => {
|
|
30
40
|
let {
|
|
31
41
|
selected
|
|
32
42
|
} = _ref4;
|
|
33
|
-
return selected &&
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
43
|
+
return selected && `
|
|
44
|
+
border-color: var(--border-color);
|
|
45
|
+
border-radius: var(--border-radius);
|
|
46
|
+
box-shadow: var(--box-shadow);
|
|
47
|
+
`;
|
|
48
|
+
}}
|
|
49
|
+
`;
|
|
50
|
+
const Description = _styledComponents.default.div`
|
|
51
|
+
min-width: 0;
|
|
52
|
+
`;
|
|
53
|
+
const Title = _styledComponents.default.div`
|
|
54
|
+
font-weight: var(--font-bold);
|
|
55
|
+
font-size: var(--font-body1);
|
|
56
|
+
margin-bottom: var(--spacing-xs);
|
|
57
|
+
color: var(--font-on-background);
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
white-space: pre;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
|
|
62
|
+
a {
|
|
63
|
+
color: var(--font-on-background);
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
const Content = _styledComponents.default.div`
|
|
67
|
+
font-size: var(--font-body1);
|
|
68
|
+
color: var(--font-on-mute);
|
|
69
|
+
margin-bottom: var(--spacing-xs);
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
white-space: pre;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
`;
|
|
38
74
|
var _default = exports.default = Object.assign(ApplicationIconBox, {
|
|
39
75
|
Body,
|
|
40
76
|
Description,
|
package/iconbox/IconBox.js
CHANGED
|
@@ -9,9 +9,7 @@ var _IconBoxFigure = _interopRequireDefault(require("./subComponent/IconBoxFigur
|
|
|
9
9
|
var _IconBoxImage = _interopRequireDefault(require("./subComponent/IconBoxImage"));
|
|
10
10
|
var _bgChartTriangle = _interopRequireDefault(require("../assets/images/bg-chart-triangle.png"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
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
13
|
const IconBox = _ref => {
|
|
16
14
|
let {
|
|
17
15
|
icon,
|
|
@@ -26,7 +24,7 @@ const IconBox = _ref => {
|
|
|
26
24
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconBoxImage.default, {
|
|
27
25
|
sizeXS: true,
|
|
28
26
|
src: icon,
|
|
29
|
-
alt:
|
|
27
|
+
alt: `${title}'s icon`
|
|
30
28
|
})
|
|
31
29
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxTitle, {
|
|
32
30
|
children: title
|
|
@@ -36,8 +34,34 @@ const IconBox = _ref => {
|
|
|
36
34
|
})]
|
|
37
35
|
});
|
|
38
36
|
};
|
|
39
|
-
const Wrapper = _styledComponents.default.div
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
const Wrapper = _styledComponents.default.div`
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
padding: var(--spacing-l);
|
|
41
|
+
margin-bottom: var(--spacing);
|
|
42
|
+
border-radius: var(--border-radius);
|
|
43
|
+
background: var(--color-background2);
|
|
44
|
+
color: var(--font-on-background);
|
|
45
|
+
|
|
46
|
+
background: var(--color-background2);
|
|
47
|
+
background-image: url(${_bgChartTriangle.default});
|
|
48
|
+
background-repeat: no-repeat;
|
|
49
|
+
background-position: right bottom;
|
|
50
|
+
background-size: 30% 70%;
|
|
51
|
+
`;
|
|
52
|
+
const IconBoxHead = _styledComponents.default.div`
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
margin-bottom: var(--spacing);
|
|
56
|
+
`;
|
|
57
|
+
const IconBoxTitle = _styledComponents.default.div`
|
|
58
|
+
font-size: var(--font-h2);
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
word-break: break-all;
|
|
61
|
+
`;
|
|
62
|
+
const IconBoxBody = _styledComponents.default.div`
|
|
63
|
+
font-size: var(--font-h1);
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
text-align: center;
|
|
66
|
+
`;
|
|
43
67
|
var _default = exports.default = IconBox;
|
package/iconbox/IconBoxV2.js
CHANGED
|
@@ -7,19 +7,44 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _IconBoxFigure = _interopRequireDefault(require("./subComponent/IconBoxFigure"));
|
|
9
9
|
var _IconBoxImage = _interopRequireDefault(require("./subComponent/IconBoxImage"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const IconBoxV2 = _styledComponents.default.div`
|
|
12
|
+
padding: var(--spacing);
|
|
13
|
+
margin-bottom: var(--spacing);
|
|
14
|
+
background: var(--color-background1);
|
|
15
|
+
box-shadow: var(--box-shadow);
|
|
16
|
+
border-radius: var(--border-radius);
|
|
17
|
+
color: var(--font-on-background);
|
|
18
|
+
|
|
19
|
+
${_ref => {
|
|
14
20
|
let {
|
|
15
21
|
fullHeight
|
|
16
22
|
} = _ref;
|
|
17
23
|
return fullHeight && 'height: calc(100% - var(--spacing));';
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
}}
|
|
25
|
+
`;
|
|
26
|
+
const Body = _styledComponents.default.div`
|
|
27
|
+
display: flex;
|
|
28
|
+
`;
|
|
29
|
+
const Description = _styledComponents.default.div`
|
|
30
|
+
flex: 1 1 auto;
|
|
31
|
+
font-size: var(--font-body1);
|
|
32
|
+
`;
|
|
33
|
+
const Info = _styledComponents.default.div`
|
|
34
|
+
word-break: break-all;
|
|
35
|
+
|
|
36
|
+
&:not(:last-child) {
|
|
37
|
+
margin-bottom: var(--spacing-s);
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
const Tool = _styledComponents.default.div`
|
|
41
|
+
flex: 0 0 calc(var(--spacing-s) + 36px);
|
|
42
|
+
padding-left: var(--spacing-s);
|
|
43
|
+
|
|
44
|
+
> *:not(:last-child) {
|
|
45
|
+
margin-bottom: var(--spacing-s);
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
23
48
|
var _default = exports.default = Object.assign(IconBoxV2, {
|
|
24
49
|
Body,
|
|
25
50
|
Description,
|
|
@@ -5,38 +5,46 @@ 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 IconBoxFigure = _styledComponents.default.figure`
|
|
10
|
+
flex: 0 0 120px;
|
|
11
|
+
|
|
12
|
+
${_ref => {
|
|
12
13
|
let {
|
|
13
14
|
marginRight
|
|
14
15
|
} = _ref;
|
|
15
16
|
return marginRight && 'margin-right: var(--spacing);';
|
|
16
|
-
}
|
|
17
|
+
}}
|
|
18
|
+
${_ref2 => {
|
|
17
19
|
let {
|
|
18
20
|
paddingRight
|
|
19
21
|
} = _ref2;
|
|
20
22
|
return paddingRight && 'padding-right: var(--spacing);';
|
|
21
|
-
}
|
|
23
|
+
}}
|
|
24
|
+
${_ref3 => {
|
|
22
25
|
let {
|
|
23
26
|
paddingRightS
|
|
24
27
|
} = _ref3;
|
|
25
28
|
return paddingRightS && 'padding-right: var(--spacing-s);';
|
|
26
|
-
}
|
|
29
|
+
}}
|
|
30
|
+
${_ref4 => {
|
|
27
31
|
let {
|
|
28
32
|
paddingBottomS
|
|
29
33
|
} = _ref4;
|
|
30
34
|
return paddingBottomS && 'padding-bottom: var(--spacing-s);';
|
|
31
|
-
}
|
|
35
|
+
}}
|
|
36
|
+
|
|
37
|
+
${_ref5 => {
|
|
32
38
|
let {
|
|
33
39
|
sizeS
|
|
34
40
|
} = _ref5;
|
|
35
41
|
return sizeS && 'flex-basis: 80px;';
|
|
36
|
-
}
|
|
42
|
+
}}
|
|
43
|
+
${_ref6 => {
|
|
37
44
|
let {
|
|
38
45
|
sizeXS
|
|
39
46
|
} = _ref6;
|
|
40
47
|
return sizeXS && 'flex-basis: 40px;';
|
|
41
|
-
}
|
|
48
|
+
}}
|
|
49
|
+
`;
|
|
42
50
|
var _default = exports.default = IconBoxFigure;
|
|
@@ -5,25 +5,38 @@ 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
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
9
|
const IconBoxImage = _styledComponents.default.img.attrs(() => ({
|
|
12
10
|
crossOrigin: 'anonymous'
|
|
13
|
-
}))
|
|
11
|
+
}))`
|
|
12
|
+
width: 120px;
|
|
13
|
+
height: 120px;
|
|
14
|
+
|
|
15
|
+
${_ref => {
|
|
14
16
|
let {
|
|
15
17
|
rounded
|
|
16
18
|
} = _ref;
|
|
17
19
|
return rounded && 'border-radius: var(--border-radius);';
|
|
18
|
-
}
|
|
20
|
+
}}
|
|
21
|
+
|
|
22
|
+
${_ref2 => {
|
|
19
23
|
let {
|
|
20
24
|
sizeS
|
|
21
25
|
} = _ref2;
|
|
22
|
-
return sizeS &&
|
|
23
|
-
|
|
26
|
+
return sizeS && `
|
|
27
|
+
width: 80px;
|
|
28
|
+
height: 80px;
|
|
29
|
+
`;
|
|
30
|
+
}}
|
|
31
|
+
|
|
32
|
+
${_ref3 => {
|
|
24
33
|
let {
|
|
25
34
|
sizeXS
|
|
26
35
|
} = _ref3;
|
|
27
|
-
return sizeXS &&
|
|
28
|
-
|
|
36
|
+
return sizeXS && `
|
|
37
|
+
width: 40px;
|
|
38
|
+
height: 40px;
|
|
39
|
+
`;
|
|
40
|
+
}}
|
|
41
|
+
`;
|
|
29
42
|
var _default = exports.default = IconBoxImage;
|
package/image/ImageFluid.js
CHANGED
|
@@ -6,8 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _rounded = _interopRequireDefault(require("../styles/mixin/rounded"));
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const ImageFluid = _styledComponents.default.img`
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
object-fit: cover;
|
|
14
|
+
|
|
15
|
+
${_rounded.default}
|
|
16
|
+
`;
|
|
13
17
|
var _default = exports.default = ImageFluid;
|