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