@cashub/ui 0.46.1 → 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 +14 -20
- 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/layout/Sidebar.jsx +33 -3
- 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
|
@@ -6,13 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _TableFooter = _interopRequireDefault(require("./TableFooter"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const GridTableFooter = (0, _styledComponents.default)(_TableFooter.default)`
|
|
11
|
+
position: sticky;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
height: 48px;
|
|
14
|
+
padding: 0 var(--spacing-xs);
|
|
15
|
+
border-top: 1px solid var(--border-color);
|
|
16
|
+
border-bottom: 1px solid var(--border-color);
|
|
17
|
+
background: ${_ref => {
|
|
13
18
|
let {
|
|
14
19
|
backgroundReverse
|
|
15
20
|
} = _ref;
|
|
16
21
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
17
|
-
}
|
|
22
|
+
}};
|
|
23
|
+
`;
|
|
18
24
|
var _default = exports.default = GridTableFooter;
|
|
@@ -6,13 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _BaseTableHeadCell = _interopRequireDefault(require("./BaseTableHeadCell"));
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const GridTableHeadCell = (0, _styledComponents.default)(_BaseTableHeadCell.default)`
|
|
11
|
+
border-top: 1px solid var(--border-color);
|
|
12
|
+
border-bottom: 1px solid var(--border-color);
|
|
13
|
+
background: ${_ref => {
|
|
13
14
|
let {
|
|
14
15
|
backgroundReverse
|
|
15
16
|
} = _ref;
|
|
16
17
|
return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
|
|
17
|
-
}
|
|
18
|
+
}};
|
|
19
|
+
`;
|
|
18
20
|
var _default = exports.default = GridTableHeadCell;
|
|
@@ -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;
|
|
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 Resizer = _ref => {
|
|
14
12
|
let {
|
|
15
13
|
index,
|
|
@@ -23,7 +21,7 @@ const Resizer = _ref => {
|
|
|
23
21
|
if (targetWidth < 1) {
|
|
24
22
|
targetWidth = 1;
|
|
25
23
|
}
|
|
26
|
-
parentNode.style.width =
|
|
24
|
+
parentNode.style.width = `${targetWidth}px`;
|
|
27
25
|
if (typeof onResize === 'function') {
|
|
28
26
|
onResize(index, targetWidth);
|
|
29
27
|
}
|
|
@@ -58,5 +56,22 @@ const Resizer = _ref => {
|
|
|
58
56
|
onMouseDown: initResize
|
|
59
57
|
});
|
|
60
58
|
};
|
|
61
|
-
const ColResize = _styledComponents.default.div
|
|
59
|
+
const ColResize = _styledComponents.default.div`
|
|
60
|
+
position: absolute;
|
|
61
|
+
right: 0;
|
|
62
|
+
top: 0;
|
|
63
|
+
z-index: 1;
|
|
64
|
+
height: 100%;
|
|
65
|
+
|
|
66
|
+
&::after {
|
|
67
|
+
content: '';
|
|
68
|
+
width: 8px;
|
|
69
|
+
margin-right: -4px;
|
|
70
|
+
cursor: col-resize;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:hover::after {
|
|
74
|
+
background: var(--color-hover);
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
62
77
|
var _default = exports.default = Resizer;
|
|
@@ -5,18 +5,27 @@ 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 TableFooter = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
${_ref => {
|
|
12
15
|
let {
|
|
13
16
|
center
|
|
14
17
|
} = _ref;
|
|
15
|
-
return center &&
|
|
16
|
-
|
|
18
|
+
return center && `
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
`;
|
|
22
|
+
}}
|
|
23
|
+
|
|
24
|
+
${_ref2 => {
|
|
17
25
|
let {
|
|
18
26
|
enableRowDrag
|
|
19
27
|
} = _ref2;
|
|
20
28
|
return enableRowDrag && 'padding-right: calc(1.5rem + 0.5rem);';
|
|
21
|
-
}
|
|
29
|
+
}}
|
|
30
|
+
`;
|
|
22
31
|
var _default = exports.default = TableFooter;
|
|
@@ -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 TableFooterInfo = _styledComponents.default.p`
|
|
10
|
+
font-size: var(--font-body2);
|
|
11
|
+
color: var(--font-on-background);
|
|
12
|
+
`;
|
|
12
13
|
var _default = exports.default = TableFooterInfo;
|
|
@@ -5,16 +5,29 @@ 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 TableFooterPager = _styledComponents.default.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
|
|
12
|
+
${_ref => {
|
|
12
13
|
let {
|
|
13
14
|
center
|
|
14
15
|
} = _ref;
|
|
15
16
|
if (center) {
|
|
16
|
-
return
|
|
17
|
+
return `
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
|
|
21
|
+
> * {
|
|
22
|
+
margin-top: var(--spacing-xs);
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
17
25
|
}
|
|
18
|
-
return
|
|
19
|
-
|
|
26
|
+
return `
|
|
27
|
+
> :last-child {
|
|
28
|
+
margin-left: var(--spacing-xs);
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
}}
|
|
32
|
+
`;
|
|
20
33
|
var _default = exports.default = TableFooterPager;
|
|
@@ -6,8 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _BaseTableHeadCell = _interopRequireDefault(require("./BaseTableHeadCell"));
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const TableHeadCell = (0, _styledComponents.default)(_BaseTableHeadCell.default)`
|
|
11
|
+
&:first-child {
|
|
12
|
+
padding-left: var(--spacing);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:last-child {
|
|
16
|
+
padding-right: var(--spacing);
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
13
19
|
var _default = exports.default = TableHeadCell;
|
|
@@ -6,22 +6,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _fa = require("react-icons/fa");
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const TableSort = _styledComponents.default.div`
|
|
11
|
+
position: relative;
|
|
12
|
+
|
|
13
|
+
> svg {
|
|
14
|
+
color: var(--color-primary);
|
|
15
|
+
position: absolute;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
const UpIcon = (0, _styledComponents.default)(_fa.FaSortUp)`
|
|
19
|
+
top: -2px;
|
|
20
|
+
opacity: ${_ref => {
|
|
14
21
|
let {
|
|
15
22
|
$active
|
|
16
23
|
} = _ref;
|
|
17
24
|
return $active ? 1 : 0.5;
|
|
18
|
-
}
|
|
19
|
-
|
|
25
|
+
}};
|
|
26
|
+
`;
|
|
27
|
+
const DownIcon = (0, _styledComponents.default)(_fa.FaSortDown)`
|
|
28
|
+
opacity: ${_ref2 => {
|
|
20
29
|
let {
|
|
21
30
|
$active
|
|
22
31
|
} = _ref2;
|
|
23
32
|
return $active ? 1 : 0.5;
|
|
24
|
-
}
|
|
33
|
+
}};
|
|
34
|
+
`;
|
|
25
35
|
var _default = exports.default = Object.assign(TableSort, {
|
|
26
36
|
UpIcon,
|
|
27
37
|
DownIcon
|
package/tagify/TagifyStyle.js
CHANGED
|
@@ -6,9 +6,55 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = 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
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
10
|
// integrate tagify component
|
|
13
|
-
const TagifyStyle = (0, _styledComponents.createGlobalStyle)
|
|
11
|
+
const TagifyStyle = (0, _styledComponents.createGlobalStyle)`
|
|
12
|
+
.tagify__dropdown {
|
|
13
|
+
&__wrapper {
|
|
14
|
+
max-height: 320px;
|
|
15
|
+
border: 1px solid var(--border-color);
|
|
16
|
+
color: var(--font-on-background);
|
|
17
|
+
background: var(--color-background1);
|
|
18
|
+
box-shadow: var(--box-shadow);
|
|
19
|
+
border-radius: var(--border-radius);
|
|
20
|
+
padding: var(--spacing-s) 0;
|
|
21
|
+
overflow-y: auto;
|
|
22
|
+
overflow-x: visible;
|
|
23
|
+
|
|
24
|
+
${_scrollbar.default}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__item {
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
word-break: break-all;
|
|
30
|
+
padding: 12px var(--spacing-s);
|
|
31
|
+
background: var(--color-background1);
|
|
32
|
+
transition: 0.3s;
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
background: var(--color-hover);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-value="__create__"] {
|
|
39
|
+
border-radius: 0 0 var(--border-radius) var(--border-radius);
|
|
40
|
+
border-top: 1px solid var(--border-color);
|
|
41
|
+
padding-top: var(--spacing);
|
|
42
|
+
|
|
43
|
+
&.fixed-bottom{
|
|
44
|
+
position: fixed;
|
|
45
|
+
bottom: 0;
|
|
46
|
+
left: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
padding: var(--spacing-s);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.has-fixed-bottom {
|
|
54
|
+
.tagify__dropdown__wrapper {
|
|
55
|
+
padding-bottom: 60px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
14
60
|
var _default = exports.default = TagifyStyle;
|
package/tagify/Tags.js
CHANGED
|
@@ -9,32 +9,48 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
9
|
var _react2 = _interopRequireDefault(require("@yaireo/tagify/dist/react.tagify"));
|
|
10
10
|
require("@yaireo/tagify/dist/tagify.css");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _templateObject;
|
|
13
|
-
const _excluded = ["onChange", "settings", "tagifyProps"];
|
|
14
12
|
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
|
-
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; }
|
|
17
|
-
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; }
|
|
18
|
-
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; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
20
|
-
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); }
|
|
21
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
22
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
23
13
|
const Tags = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
24
14
|
let {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
onChange,
|
|
16
|
+
settings,
|
|
17
|
+
tagifyProps,
|
|
18
|
+
...props
|
|
19
|
+
} = _ref;
|
|
30
20
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
|
|
31
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.default,
|
|
21
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.default, {
|
|
32
22
|
tagifyRef: ref,
|
|
33
|
-
settings: settings
|
|
34
|
-
|
|
35
|
-
onChange: onChange
|
|
36
|
-
|
|
23
|
+
settings: settings,
|
|
24
|
+
...tagifyProps,
|
|
25
|
+
onChange: onChange,
|
|
26
|
+
...props
|
|
27
|
+
})
|
|
37
28
|
});
|
|
38
29
|
});
|
|
39
|
-
const Wrapper = _styledComponents.default.div
|
|
30
|
+
const Wrapper = _styledComponents.default.div`
|
|
31
|
+
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) {
|
|
32
|
+
opacity: 0.5;
|
|
33
|
+
}
|
|
34
|
+
.tagify {
|
|
35
|
+
--tags-disabled-bg: var(--font-on-mute);
|
|
36
|
+
--tags-border-color: var(--border-color);
|
|
37
|
+
--tags-hover-border-color: var(--border-color);
|
|
38
|
+
--tags-focus-border-color: var(--color-primary);
|
|
39
|
+
--tag-invalid-color: var(--color-danger);
|
|
40
|
+
--tag-remove-btn-bg--hover: var(--color-danger);
|
|
41
|
+
--input-color: var(--font-on-background);
|
|
42
|
+
|
|
43
|
+
border-radius: var(--border-radius-l);
|
|
44
|
+
width: 100%;
|
|
45
|
+
|
|
46
|
+
.tagify__tag {
|
|
47
|
+
> div::before {
|
|
48
|
+
border-radius: var(--border-radius-l);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.tagify__input::before {
|
|
52
|
+
color: var(--font-on-mute);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
40
56
|
var _default = exports.default = Tags;
|
|
@@ -8,8 +8,11 @@ const getCreateButtonTemplate = function (label) {
|
|
|
8
8
|
let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9
9
|
const attrString = Object.entries(props).map(_ref => {
|
|
10
10
|
let [key, val] = _ref;
|
|
11
|
-
return
|
|
11
|
+
return `${key}="${val}"`;
|
|
12
12
|
}).join(' ');
|
|
13
|
-
return
|
|
13
|
+
return `
|
|
14
|
+
<div ${attrString} tabindex="0" role="option" data-value="__create__">
|
|
15
|
+
${label}
|
|
16
|
+
</div>`;
|
|
14
17
|
};
|
|
15
18
|
var _default = exports.default = getCreateButtonTemplate;
|
package/text/Paragraph.js
CHANGED
|
@@ -6,43 +6,81 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _color = _interopRequireDefault(require("../styles/mixin/color"));
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const Paragraph = _styledComponents.default.p`
|
|
11
|
+
color: var(--font-on-background);
|
|
12
|
+
font-size: var(--font-body1);
|
|
13
|
+
margin-bottom: var(--spacing-s);
|
|
14
|
+
word-break: break-word;
|
|
15
|
+
overflow-wrap: break-word;
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
&:last-child {
|
|
19
|
+
margin-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
${_ref => {
|
|
13
23
|
let {
|
|
14
24
|
flex
|
|
15
25
|
} = _ref;
|
|
16
26
|
return flex && 'display: flex;';
|
|
17
|
-
}
|
|
27
|
+
}}
|
|
28
|
+
|
|
29
|
+
${_ref2 => {
|
|
18
30
|
let {
|
|
19
31
|
justifyContentBetween
|
|
20
32
|
} = _ref2;
|
|
21
33
|
return justifyContentBetween && 'justify-content: space-between;';
|
|
22
|
-
}
|
|
34
|
+
}}
|
|
35
|
+
|
|
36
|
+
${_ref3 => {
|
|
23
37
|
let {
|
|
24
38
|
inline
|
|
25
39
|
} = _ref3;
|
|
26
|
-
return inline &&
|
|
27
|
-
|
|
40
|
+
return inline && `
|
|
41
|
+
display: inline;
|
|
42
|
+
margin-right: var(--spacing-s);
|
|
43
|
+
`;
|
|
44
|
+
}}
|
|
45
|
+
|
|
46
|
+
${_ref4 => {
|
|
28
47
|
let {
|
|
29
48
|
fontH3
|
|
30
49
|
} = _ref4;
|
|
31
50
|
return fontH3 && 'font-size: var(--font-h3);';
|
|
32
|
-
}
|
|
51
|
+
}}
|
|
52
|
+
|
|
53
|
+
${_ref5 => {
|
|
33
54
|
let {
|
|
34
55
|
fontWeightBold
|
|
35
56
|
} = _ref5;
|
|
36
57
|
return fontWeightBold && 'font-weight: bold;';
|
|
37
|
-
}
|
|
58
|
+
}}
|
|
59
|
+
|
|
60
|
+
${_ref6 => {
|
|
38
61
|
let {
|
|
39
62
|
marginBottomXS
|
|
40
63
|
} = _ref6;
|
|
41
64
|
return marginBottomXS && 'margin-bottom: var(--spacing-xs);';
|
|
42
|
-
}
|
|
65
|
+
}}
|
|
66
|
+
|
|
67
|
+
${_color.default}
|
|
68
|
+
|
|
69
|
+
${_ref7 => {
|
|
43
70
|
let {
|
|
44
71
|
badge
|
|
45
72
|
} = _ref7;
|
|
46
|
-
return badge &&
|
|
47
|
-
|
|
73
|
+
return badge && `&:after {
|
|
74
|
+
content: '';
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: -2px;
|
|
77
|
+
right: -12px;
|
|
78
|
+
height: 8px;
|
|
79
|
+
width: 8px;
|
|
80
|
+
border-radius: var(--border-radius);
|
|
81
|
+
background-color: var(--color-${badge});
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
}}
|
|
85
|
+
`;
|
|
48
86
|
var _default = exports.default = Paragraph;
|
package/timeline/Timeline.js
CHANGED
|
@@ -5,52 +5,129 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
9
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const Timeline = _styledComponents.default.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
&:before {
|
|
13
|
+
content: '';
|
|
14
|
+
position: absolute;
|
|
15
|
+
left: 7.8rem;
|
|
16
|
+
width: 0.214rem;
|
|
17
|
+
top: 5px;
|
|
18
|
+
bottom: 5px;
|
|
19
|
+
height: calc(100% - 5px);
|
|
20
|
+
background-color: #e7e9f5;
|
|
21
|
+
|
|
22
|
+
${_ref => {
|
|
12
23
|
let {
|
|
13
24
|
noTag
|
|
14
25
|
} = _ref;
|
|
15
26
|
return noTag && 'left: 0.8rem;';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
const
|
|
27
|
+
}}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const Items = _styledComponents.default.div``;
|
|
31
|
+
const Item = _styledComponents.default.div`
|
|
32
|
+
display: table;
|
|
33
|
+
position: relative;
|
|
34
|
+
margin-bottom: 1.5rem;
|
|
35
|
+
|
|
36
|
+
&:last-child {
|
|
37
|
+
margin-bottom: 0;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
const ItemTag = _styledComponents.default.span`
|
|
41
|
+
display: table-cell;
|
|
42
|
+
font-size: var(--font-body1);
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
vertical-align: top;
|
|
45
|
+
position: absolute;
|
|
46
|
+
padding-top: 0.5rem;
|
|
47
|
+
color: var(--font-on-background);
|
|
48
|
+
width: 6.5rem;
|
|
49
|
+
text-align: center;
|
|
50
|
+
`;
|
|
51
|
+
const ItemCircle = _styledComponents.default.div`
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
border: 0.89rem solid #2d2c4c;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
top: 0.2rem;
|
|
56
|
+
left: 7rem;
|
|
57
|
+
position: relative;
|
|
58
|
+
|
|
59
|
+
> svg {
|
|
60
|
+
font-size: 1.5rem;
|
|
61
|
+
top: 0;
|
|
62
|
+
left: 0;
|
|
63
|
+
transform: translate(-50%, -50%);
|
|
64
|
+
position: absolute;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
${_ref2 => {
|
|
21
68
|
let {
|
|
22
69
|
noTag
|
|
23
70
|
} = _ref2;
|
|
24
71
|
return noTag && 'left: 0;';
|
|
25
|
-
}
|
|
72
|
+
}}
|
|
73
|
+
|
|
74
|
+
${_ref3 => {
|
|
26
75
|
let {
|
|
27
76
|
success
|
|
28
77
|
} = _ref3;
|
|
29
78
|
return success && 'color: var(--color-success);';
|
|
30
|
-
}
|
|
79
|
+
}}
|
|
80
|
+
|
|
81
|
+
${_ref4 => {
|
|
31
82
|
let {
|
|
32
83
|
danger
|
|
33
84
|
} = _ref4;
|
|
34
85
|
return danger && 'color: var(--color-danger);';
|
|
35
|
-
}
|
|
86
|
+
}}
|
|
87
|
+
|
|
88
|
+
${_ref5 => {
|
|
36
89
|
let {
|
|
37
90
|
warning
|
|
38
91
|
} = _ref5;
|
|
39
92
|
return warning && 'color: var(--color-warning);';
|
|
40
|
-
}
|
|
93
|
+
}}
|
|
94
|
+
|
|
95
|
+
${_ref6 => {
|
|
41
96
|
let {
|
|
42
97
|
grey
|
|
43
98
|
} = _ref6;
|
|
44
99
|
return grey && 'color: var(--color-grey);';
|
|
45
|
-
}
|
|
46
|
-
|
|
100
|
+
}}
|
|
101
|
+
`;
|
|
102
|
+
const ItemDescription = _styledComponents.default.div`
|
|
103
|
+
display: table-cell;
|
|
104
|
+
vertical-align: top;
|
|
105
|
+
font-size: 1rem;
|
|
106
|
+
padding: 0 0 0 8rem;
|
|
107
|
+
color: var(--font-on-background);
|
|
108
|
+
|
|
109
|
+
${_ref7 => {
|
|
47
110
|
let {
|
|
48
111
|
noTag
|
|
49
112
|
} = _ref7;
|
|
50
113
|
return noTag && 'padding-left: 1rem;';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const
|
|
114
|
+
}}
|
|
115
|
+
`;
|
|
116
|
+
const ItemTitle = _styledComponents.default.span`
|
|
117
|
+
display: block;
|
|
118
|
+
font-weight: 400;
|
|
119
|
+
|
|
120
|
+
&:last-child {
|
|
121
|
+
margin-top: 8px;
|
|
122
|
+
}
|
|
123
|
+
`;
|
|
124
|
+
const ItemText = _styledComponents.default.span`
|
|
125
|
+
display: block;
|
|
126
|
+
color: var(--font-on-mute);
|
|
127
|
+
margin-top: 8px;
|
|
128
|
+
line-height: 1.25;
|
|
129
|
+
word-break: break-all;
|
|
130
|
+
`;
|
|
54
131
|
var _default = exports.default = Object.assign(Timeline, {
|
|
55
132
|
Items,
|
|
56
133
|
Item,
|