@cashub/ui-elv 1.0.1 → 1.0.3
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/chart/BarChart.js +8 -2
- package/chart/DoughnutChart.js +2 -1
- package/chart/LineChart.js +2 -1
- package/chart/utils/customTooltip.js +3 -7
- package/chart/utils/customTooltipLifecyclePlugin.js +21 -0
- package/chart/utils/tooltipElement.js +25 -0
- package/chart/utils/xAxisLabelTooltipPlugin.js +107 -0
- package/datetimePicker/index.js +2 -37
- package/esm/Tab/Tab.js +21 -0
- package/esm/Tab/TabList.js +160 -0
- package/esm/Tab/TabPanel.js +42 -0
- package/esm/Tab/TabTab.js +98 -0
- package/esm/Tab/index.js +23 -0
- package/esm/Tab/subComponent/TabContext.js +3 -0
- package/esm/Tab/subComponent/TabListV2.js +18 -0
- package/esm/Tab/subComponent/TabPanelV2.js +45 -0
- package/esm/Tab/subComponent/TabTabV2.js +56 -0
- package/esm/VerticalTab/TabList.js +20 -0
- package/esm/VerticalTab/TabPanel.js +45 -0
- package/esm/VerticalTab/TabTab.js +63 -0
- package/esm/VerticalTab/VerticalTab.js +34 -0
- package/esm/VerticalTab/index.js +9 -0
- package/esm/VerticalTab/subComponent/TabContext.js +3 -0
- package/esm/alert/Alert.js +22 -0
- package/esm/alert/index.js +1 -0
- package/esm/animate/Collapse.js +65 -0
- package/esm/animate/Loader.js +51 -0
- package/esm/animate/NumberCounter.js +45 -0
- package/esm/animate/PulseRing.js +26 -0
- package/esm/animate/Spinner.js +11 -0
- package/esm/animate/index.js +5 -0
- package/esm/assets/css/autocomplete.css +16 -0
- package/esm/assets/css/font.css +4 -0
- package/esm/assets/css/global.css +2 -0
- package/esm/assets/font/helvetica/Helvetica.ttf +0 -0
- package/esm/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
- package/esm/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
- package/esm/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
- package/esm/assets/icons/app-management.png +0 -0
- package/esm/assets/icons/burger-black.png +0 -0
- package/esm/assets/icons/burger-white.png +0 -0
- package/esm/assets/icons/burger.png +0 -0
- package/esm/assets/icons/file.svg +1 -0
- package/esm/assets/icons/map_icon1.png +0 -0
- package/esm/assets/icons/map_icon4.png +0 -0
- package/esm/assets/images/bg-aside.png +0 -0
- package/esm/assets/images/bg-chart-circle.png +0 -0
- package/esm/assets/images/bg-chart-triangle.png +0 -0
- package/esm/assets/images/cashub-logo-only.png +0 -0
- package/esm/assets/images/default-user.jpg +0 -0
- package/esm/assets/images/logo-cashub.png +0 -0
- package/esm/assets/images/map.png +0 -0
- package/esm/assets/images/qrcode.png +0 -0
- package/esm/backdrop/BaseBackdrop.js +11 -0
- package/esm/backdrop/LoadingBackdrop.js +10 -0
- package/esm/backdrop/ModalBackdrop.js +8 -0
- package/esm/backdrop/index.js +3 -0
- package/esm/badge/Badge.js +19 -0
- package/esm/badge/BadgeDot.js +11 -0
- package/esm/badge/BadgeFill.js +42 -0
- package/esm/badge/BadgeFillTriangle.js +138 -0
- package/esm/badge/BadgeWithText.js +24 -0
- package/esm/badge/index.js +5 -0
- package/esm/billing/BarChart.js +45 -0
- package/esm/billing/Grid.js +38 -0
- package/esm/billing/Header2.js +19 -0
- package/esm/billing/Header3.js +31 -0
- package/esm/billing/Paragraph.js +27 -0
- package/esm/billing/ParagraphGroup.js +16 -0
- package/esm/billing/ParagraphText.js +20 -0
- package/esm/billing/Section.js +44 -0
- package/esm/billing/SectionBody.js +11 -0
- package/esm/billing/SectionHeader.js +20 -0
- package/esm/billing/__stories__/BarChart.stories.js_bak +46 -0
- package/esm/billing/__stories__/Grid.stories.js_bak +57 -0
- package/esm/billing/__stories__/Header2.stories.js_bak +62 -0
- package/esm/billing/__stories__/Header3.stories.js_bak +69 -0
- package/esm/billing/__stories__/Paragraph.stories.js_bak +84 -0
- package/esm/billing/__stories__/ParagraphGroup.stories.js_bak +68 -0
- package/esm/billing/__stories__/ParagraphText.stories.js_bak +64 -0
- package/esm/billing/__stories__/Section.stories.js_bak +115 -0
- package/esm/billing/__stories__/SectionBody.stories.js_bak +62 -0
- package/esm/billing/__stories__/SectionHeader.stories.js-bak +68 -0
- package/esm/breadcrumb/Breadcrumb.js +71 -0
- package/esm/breadcrumb/index.js +1 -0
- package/esm/button/Button.js +145 -0
- package/esm/button/ButtonGroup.js +54 -0
- package/esm/button/IconButton.js +64 -0
- package/esm/button/ScrollToTopButton.js +47 -0
- package/esm/button/index.js +4 -0
- package/esm/callout/Callout.js +45 -0
- package/esm/callout/index.js +1 -0
- package/esm/chart/BarChart.js +147 -0
- package/esm/chart/DoughnutChart.js +110 -0
- package/esm/chart/LineChart.js +140 -0
- package/esm/chart/SingleBarChart.js +35 -0
- package/esm/chart/index.js +5 -0
- package/esm/chart/utils/centerTextPlugin.js +56 -0
- package/esm/chart/utils/customTooltip.js +84 -0
- package/esm/chart/utils/customTooltipLifecyclePlugin.js +16 -0
- package/esm/chart/utils/htmlLegendPlugin.js +83 -0
- package/esm/chart/utils/index.js +3 -0
- package/esm/chart/utils/padEmptyChartBar.js +47 -0
- package/esm/chart/utils/tooltipElement.js +17 -0
- package/esm/chart/utils/xAxisLabelTooltipPlugin.js +101 -0
- package/esm/chart/utils/yAxisTopTitlePlugin.js +43 -0
- package/esm/container/FlexContainer.js +33 -0
- package/esm/container/index.js +1 -0
- package/esm/cropper/Cropper.js +47 -0
- package/esm/cropper/CropperModalHandler.js +34 -0
- package/esm/cropper/index.js +2 -0
- package/esm/cropper/subComponent/CropImageModal.js +72 -0
- package/{datetimePicker/DatetimePicker.js → esm/datetimePicker/DatetimePickerV3.js} +63 -31
- package/esm/datetimePicker/TimeInput.js +49 -0
- package/esm/datetimePicker/TimePickerStyle.js +58 -0
- package/esm/datetimePicker/TimePickerV2.js +199 -0
- package/esm/datetimePicker/accordion/Month.js +245 -0
- package/esm/datetimePicker/accordion/Year.js +275 -0
- package/esm/datetimePicker/index.js +4 -0
- package/esm/datetimePicker/provider/constant.js +38 -0
- package/esm/datetimePicker/subComponent/DateTimePickerContext.js +3 -0
- package/esm/datetimePicker/utils/GMTDate.js +9 -0
- package/esm/datetimePicker/utils/pad.js +7 -0
- package/esm/datetimePicker/utils/toUTC0.js +7 -0
- package/esm/descriptionList/DescriptionDetail.js +21 -0
- package/esm/descriptionList/DescriptionList.js +18 -0
- package/esm/descriptionList/DescriptionTerm.js +7 -0
- package/esm/descriptionList/index.js +3 -0
- package/esm/divider/Divider.js +24 -0
- package/esm/divider/index.js +1 -0
- package/esm/dropdown/Dropdown.js +48 -0
- package/esm/dropdown/DropdownButtonOption.js +36 -0
- package/esm/dropdown/DropdownContent.js +83 -0
- package/esm/dropdown/DropdownDivOption.js +19 -0
- package/esm/dropdown/DropdownItem.js +19 -0
- package/esm/dropdown/DropdownLinkOption.js +17 -0
- package/esm/dropdown/DropdownToggle.js +31 -0
- package/esm/dropdown/index.js +11 -0
- package/esm/dropdown/subComponent/DropdownContext.js +3 -0
- package/esm/dropzone/FileDropzone.js +472 -0
- package/esm/dropzone/ImageDropzone.js +327 -0
- package/esm/dropzone/index.js +2 -0
- package/esm/dropzone/subComponent/Message.js +19 -0
- package/esm/figure/IconFigure.js +35 -0
- package/esm/figure/ImageFigure.js +31 -0
- package/esm/figure/index.js +2 -0
- package/esm/file/HiddenFileInput.js +8 -0
- package/esm/file/index.js +1 -0
- package/esm/form/Checkbox.js +157 -0
- package/esm/form/Fieldset.js +11 -0
- package/esm/form/FormItem.js +15 -0
- package/esm/form/Input.js +59 -0
- package/esm/form/Label.js +54 -0
- package/esm/form/MutedText.js +14 -0
- package/esm/form/PasswordInput.js +40 -0
- package/esm/form/RadioButton.js +94 -0
- package/esm/form/SearchSelect.js +174 -0
- package/esm/form/Searchbox.js +91 -0
- package/esm/form/Slider.js +39 -0
- package/esm/form/SwitchButton.js +97 -0
- package/esm/form/Textarea.js +34 -0
- package/esm/form/TreeView.js +66 -0
- package/esm/form/index.js +14 -0
- package/esm/grid/Column.js +39 -0
- package/esm/grid/Grid.js +28 -0
- package/esm/grid/index.js +2 -0
- package/esm/heading/Heading1.js +14 -0
- package/esm/heading/Heading2.js +21 -0
- package/esm/heading/Heading3.js +42 -0
- package/esm/heading/index.js +3 -0
- package/esm/helmet/Helmet.js +17 -0
- package/esm/helmet/index.js +2 -0
- package/esm/iconbox/ApplicationIconBox.js +74 -0
- package/esm/iconbox/IconBox.js +60 -0
- package/esm/iconbox/IconBoxV2.js +63 -0
- package/esm/iconbox/index.js +3 -0
- package/esm/iconbox/subComponent/IconBoxFigure.js +43 -0
- package/esm/iconbox/subComponent/IconBoxImage.js +35 -0
- package/esm/image/ImageFluid.js +10 -0
- package/esm/image/UploadImage.js +243 -0
- package/esm/image/index.js +2 -0
- package/esm/index.js +47 -0
- package/esm/keyframe/Pulse.js +15 -0
- package/esm/keyframe/Spin.js +7 -0
- package/esm/layout/Aside.js +39 -0
- package/esm/layout/AsideHeader.jsx +27 -0
- package/esm/layout/Backdrop.js +16 -0
- package/esm/layout/Container.js +30 -0
- package/esm/layout/Footer.js +36 -0
- package/esm/layout/Header.jsx +55 -0
- package/esm/layout/Layout.jsx +84 -0
- package/esm/layout/Logo.jsx +17 -0
- package/esm/layout/MenuIcon.jsx +27 -0
- package/esm/layout/Sidebar.jsx +271 -0
- package/esm/layout/index.js +1 -0
- package/esm/link/LinkSpan.js +62 -0
- package/esm/link/index.js +1 -0
- package/esm/map/GoogleMap.js +439 -0
- package/esm/map/GoogleReverseGeolocation.js +193 -0
- package/esm/map/LeafletMap.js +224 -0
- package/esm/map/LeafletReverseGeolocation.js +94 -0
- package/esm/map/index.js +4 -0
- package/esm/map/subComponent/BasicLeafletMap.js +27 -0
- package/esm/map/subComponent/GoogleMapContainer.js +22 -0
- package/esm/map/subComponent/GoogleMapPopup.js +103 -0
- package/esm/map/subComponent/GoogleMapWrapper.js +34 -0
- package/esm/map/subComponent/LeafletDrawControl.js +116 -0
- package/esm/map/subComponent/LeafletMapContainer.js +166 -0
- package/esm/map/subComponent/MapSearchBoxControl.js +47 -0
- package/esm/modal/StateModal.js +169 -0
- package/esm/modal/TitleModal.js +241 -0
- package/esm/modal/index.js +2 -0
- package/esm/page/Disclaimer.js +121 -0
- package/esm/page/index.js +1 -0
- package/esm/paginate/Paginate.js +129 -0
- package/esm/paginate/index.js +1 -0
- package/esm/popover/Popover.js +82 -0
- package/esm/popover/index.js +1 -0
- package/esm/qrcode/QRCode.js +51 -0
- package/esm/qrcode/QRCodeContainter.js +27 -0
- package/esm/qrcode/index.js +2 -0
- package/esm/ribbon/Ribbon.js +35 -0
- package/esm/ribbon/index.js +1 -0
- package/esm/section/Section.js +126 -0
- package/esm/section/SectionBody.js +43 -0
- package/esm/section/SectionHeader.js +61 -0
- package/esm/section/SectionToolbar.js +11 -0
- package/esm/section/SectionToolbarItem.js +10 -0
- package/esm/section/index.js +5 -0
- package/esm/select/InputSelect.js +263 -0
- package/esm/select/Select.js +811 -0
- package/esm/select/index.js +2 -0
- package/esm/select/subComponent/Checkbox.js +40 -0
- package/esm/select/subComponent/Footer.js +6 -0
- package/esm/select/subComponent/ListBox.js +23 -0
- package/esm/select/subComponent/Option.js +37 -0
- package/esm/select/subComponent/OptionGroup.js +16 -0
- package/esm/select/subComponent/Options.js +25 -0
- package/esm/select/subComponent/SearchBox.js +51 -0
- package/esm/select/subComponent/SelectedMultipleCount.js +32 -0
- package/esm/select/subComponent/SelectedMultipleTags.js +47 -0
- package/esm/select/subComponent/SelectedMultipleText.js +63 -0
- package/esm/select/subComponent/SelectedSingle.js +10 -0
- package/esm/styles/GlobalStyle.js +328 -0
- package/esm/styles/config/breakpoint.style.js +7 -0
- package/esm/styles/config/header.style.js +4 -0
- package/esm/styles/config/sidebar.style.js +11 -0
- package/esm/styles/index.js +2 -0
- package/esm/styles/mixin/backgroundColor.js +38 -0
- package/esm/styles/mixin/borderColor.js +31 -0
- package/esm/styles/mixin/color.js +31 -0
- package/esm/styles/mixin/colorOnBackground.js +31 -0
- package/esm/styles/mixin/inputPlaceholder.js +24 -0
- package/esm/styles/mixin/media.js +15 -0
- package/esm/styles/mixin/rounded.js +24 -0
- package/esm/styles/mixin/scrollbar.js +26 -0
- package/esm/styles/theme/dark.theme.js +91 -0
- package/esm/styles/theme/light.theme.js +91 -0
- package/esm/styles/theme/white.theme.js +91 -0
- package/esm/styles/themes.js +9 -0
- package/esm/table/GridTable.js +329 -0
- package/esm/table/ImageBox.js +38 -0
- package/esm/table/InfiniteGridTable.js +396 -0
- package/esm/table/PermissionTable.js +57 -0
- package/esm/table/SimpleGridTable.js +136 -0
- package/esm/table/Table.js +559 -0
- package/esm/table/__mock__/columns.js +64 -0
- package/esm/table/__mock__/data.js +530 -0
- package/esm/table/hooks/index.js +2 -0
- package/esm/table/hooks/useCalculateDataRange.js +22 -0
- package/esm/table/hooks/useGenerateSort.js +32 -0
- package/esm/table/index.js +6 -0
- package/esm/table/subComponent/BaseTableHeadCell.js +54 -0
- package/esm/table/subComponent/GridTableFooter.js +17 -0
- package/esm/table/subComponent/GridTableHeadCell.js +13 -0
- package/esm/table/subComponent/Resizer.js +70 -0
- package/esm/table/subComponent/TableFooter.js +24 -0
- package/esm/table/subComponent/TableFooterInfo.js +6 -0
- package/esm/table/subComponent/TableFooterPager.js +26 -0
- package/esm/table/subComponent/TableHeadCell.js +12 -0
- package/esm/table/subComponent/TableSort.js +31 -0
- package/esm/tagify/TagifyStyle.js +54 -0
- package/esm/tagify/Tags.js +49 -0
- package/esm/tagify/index.js +3 -0
- package/esm/tagify/templates/getCreateButtonTemplate.js +12 -0
- package/esm/text/Paragraph.js +79 -0
- package/esm/text/index.js +1 -0
- package/esm/timeline/Timeline.js +132 -0
- package/esm/timeline/index.js +1 -0
- package/esm/toast/CustomToastContainer.js +38 -0
- package/esm/toast/MessageContainer.js +44 -0
- package/esm/toast/index.js +3 -0
- package/esm/toast/show.js +29 -0
- package/esm/toast/style.css +1 -0
- package/esm/tooltip/Tooltip.js +133 -0
- package/esm/tooltip/index.js +1 -0
- package/esm/treeView/TreeViewV2.js +32 -0
- package/esm/treeView/TreeflexStyle.js +43 -0
- package/esm/treeView/index.js +2 -0
- package/esm/wizard/Wizard.js +244 -0
- package/esm/wizard/index.js +1 -0
- package/index.js +0 -12
- package/layout/Sidebar.jsx +1 -1
- package/package.json +5 -4
- package/datetimePicker/DatePicker.js +0 -363
- package/datetimePicker/DatePickerV2.js +0 -407
- package/datetimePicker/DatetimePickerV2.js +0 -395
- package/datetimePicker/TimePicker.js +0 -317
- package/datetimePicker/hooks/index.js +0 -27
- package/datetimePicker/hooks/useChangeNumber.js +0 -42
- package/datetimePicker/hooks/useDecrease.js +0 -38
- package/datetimePicker/hooks/useIncrease.js +0 -38
- package/datetimePicker/subComponent/Accordion.js +0 -373
- package/datetimePicker/subComponent/CustomTimeInput.js +0 -47
- package/jsoneditor/JsonEditor.js +0 -142
- package/jsoneditor/index.js +0 -13
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
const Disclaimer = styled.div`
|
|
3
|
+
border: var(--border-width) solid var(--border-color);
|
|
4
|
+
border-radius: var(--border-radius);
|
|
5
|
+
color: var(--font-on-background);
|
|
6
|
+
padding: var(--spacing);
|
|
7
|
+
|
|
8
|
+
> article {
|
|
9
|
+
line-height: 1.5;
|
|
10
|
+
|
|
11
|
+
&:not(:last-child) {
|
|
12
|
+
padding-bottom: var(--spacing-l);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
> h2 {
|
|
16
|
+
text-align: center;
|
|
17
|
+
margin-bottom: var(--spacing-l);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> em {
|
|
21
|
+
display: block;
|
|
22
|
+
margin-bottom: var(--spacing-s);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> section {
|
|
26
|
+
margin-bottom: var(--spacing);
|
|
27
|
+
|
|
28
|
+
> h3 {
|
|
29
|
+
margin-bottom: var(--spacing-xs);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
> p {
|
|
33
|
+
margin-bottom: var(--spacing-xs);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
ul {
|
|
37
|
+
margin: var(--spacing-s) 0;
|
|
38
|
+
|
|
39
|
+
li {
|
|
40
|
+
margin: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-s);
|
|
41
|
+
|
|
42
|
+
&.disc {
|
|
43
|
+
list-style: disc;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ol {
|
|
49
|
+
padding: 0;
|
|
50
|
+
margin: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-s);
|
|
51
|
+
|
|
52
|
+
&.counter-number {
|
|
53
|
+
counter-reset: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.counter-number-alpha {
|
|
57
|
+
counter-reset: number alpha;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.nested-counter-number {
|
|
61
|
+
counter-reset: nested-number;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.ml-0 {
|
|
65
|
+
margin-left: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
li {
|
|
69
|
+
margin: var(--spacing-s) 0;
|
|
70
|
+
|
|
71
|
+
&.decimal {
|
|
72
|
+
list-style: decimal;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.counter-number-increment {
|
|
76
|
+
counter-increment: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.counter-alpha-increment {
|
|
80
|
+
counter-increment: alpha;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.counter-number {
|
|
84
|
+
display: flex;
|
|
85
|
+
margin: var(--spacing-xs) 0;
|
|
86
|
+
|
|
87
|
+
&::before {
|
|
88
|
+
margin-right: var(--spacing-xs);
|
|
89
|
+
content: counters(number, '.') ' ';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.counter-alpha {
|
|
94
|
+
display: flex;
|
|
95
|
+
margin: var(--spacing-xs) 0;
|
|
96
|
+
|
|
97
|
+
&::before {
|
|
98
|
+
margin-right: var(--spacing-xs);
|
|
99
|
+
content: '(' counter(alpha, upper-alpha) ')';
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.nested-counter-number-increment {
|
|
104
|
+
counter-increment: nested-number;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.nested-counter-number {
|
|
108
|
+
display: flex;
|
|
109
|
+
margin: var(--spacing-xs) 0;
|
|
110
|
+
|
|
111
|
+
&::before {
|
|
112
|
+
margin-right: var(--spacing-xs);
|
|
113
|
+
content: counters(number, '.') '.' counters(nested-number, '.');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
export default Disclaimer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Disclaimer } from './Disclaimer';
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import { FaAngleLeft, FaAngleRight } from 'react-icons/fa/index.esm';
|
|
3
|
+
import { usePagination, DOTS } from '@cashub/hooks';
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
const Paginate = props => {
|
|
6
|
+
const {
|
|
7
|
+
currentPage,
|
|
8
|
+
totalCount,
|
|
9
|
+
pageSize,
|
|
10
|
+
siblingCount = 1,
|
|
11
|
+
onPageChange,
|
|
12
|
+
alignRight
|
|
13
|
+
} = props;
|
|
14
|
+
const paginationRange = usePagination({
|
|
15
|
+
currentPage,
|
|
16
|
+
totalCount,
|
|
17
|
+
siblingCount,
|
|
18
|
+
pageSize
|
|
19
|
+
});
|
|
20
|
+
const onNext = () => {
|
|
21
|
+
if (currentPage === lastPage) return;
|
|
22
|
+
onPageChange(currentPage + 1);
|
|
23
|
+
};
|
|
24
|
+
const onPrevious = () => {
|
|
25
|
+
if (currentPage === 1) return;
|
|
26
|
+
onPageChange(currentPage - 1);
|
|
27
|
+
};
|
|
28
|
+
if (currentPage === 0 || paginationRange.length < 1) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const lastPage = paginationRange[paginationRange.length - 1];
|
|
32
|
+
return /*#__PURE__*/_jsxs(Container, {
|
|
33
|
+
alignRight: alignRight,
|
|
34
|
+
children: [/*#__PURE__*/_jsx(Link, {
|
|
35
|
+
disabled: currentPage === 1,
|
|
36
|
+
onClick: onPrevious,
|
|
37
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
38
|
+
children: /*#__PURE__*/_jsx(FaAngleLeft, {})
|
|
39
|
+
})
|
|
40
|
+
}), paginationRange.map((pageNumber, index) => {
|
|
41
|
+
if (pageNumber === DOTS) {
|
|
42
|
+
return /*#__PURE__*/_jsx(Link, {
|
|
43
|
+
className: "paginationDots",
|
|
44
|
+
children: "\u2026"
|
|
45
|
+
}, index);
|
|
46
|
+
}
|
|
47
|
+
return /*#__PURE__*/_jsx(Link, {
|
|
48
|
+
active: pageNumber === currentPage,
|
|
49
|
+
onClick: () => onPageChange(pageNumber),
|
|
50
|
+
children: pageNumber
|
|
51
|
+
}, index);
|
|
52
|
+
}), /*#__PURE__*/_jsx(Link, {
|
|
53
|
+
disabled: currentPage === lastPage,
|
|
54
|
+
onClick: onNext,
|
|
55
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
56
|
+
children: /*#__PURE__*/_jsx(FaAngleRight, {})
|
|
57
|
+
})
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
const Container = styled.ul`
|
|
62
|
+
display: flex;
|
|
63
|
+
text-align: center;
|
|
64
|
+
|
|
65
|
+
${_ref => {
|
|
66
|
+
let {
|
|
67
|
+
alignRight
|
|
68
|
+
} = _ref;
|
|
69
|
+
return alignRight && 'justify-content: flex-end';
|
|
70
|
+
}};
|
|
71
|
+
`;
|
|
72
|
+
const Link = styled.li`
|
|
73
|
+
width: 36px;
|
|
74
|
+
line-height: 37px;
|
|
75
|
+
font-size: var(--font-body1);
|
|
76
|
+
color: var(--font-on-background);
|
|
77
|
+
border-radius: var(--border-radius-round);
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
transition: 0.3s;
|
|
80
|
+
|
|
81
|
+
&:not(:last-child) {
|
|
82
|
+
margin-right: var(--spacing-xs);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
${_ref2 => {
|
|
86
|
+
let {
|
|
87
|
+
disabled
|
|
88
|
+
} = _ref2;
|
|
89
|
+
return disabled && css`
|
|
90
|
+
opacity: 0.5;
|
|
91
|
+
cursor: no-drop;
|
|
92
|
+
`;
|
|
93
|
+
}};
|
|
94
|
+
|
|
95
|
+
${_ref3 => {
|
|
96
|
+
let {
|
|
97
|
+
active
|
|
98
|
+
} = _ref3;
|
|
99
|
+
return active && `
|
|
100
|
+
background-color: var(--color-primary);
|
|
101
|
+
color: var(--font-on-primary);
|
|
102
|
+
`;
|
|
103
|
+
}}
|
|
104
|
+
|
|
105
|
+
&:hover {
|
|
106
|
+
${_ref4 => {
|
|
107
|
+
let {
|
|
108
|
+
disabled,
|
|
109
|
+
className
|
|
110
|
+
} = _ref4;
|
|
111
|
+
return !disabled && !className && `
|
|
112
|
+
background-color: var(--color-primary);
|
|
113
|
+
color: var(--font-on-primary);
|
|
114
|
+
`;
|
|
115
|
+
}}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&.paginationDots {
|
|
119
|
+
cursor: default;
|
|
120
|
+
}
|
|
121
|
+
`;
|
|
122
|
+
const Icon = styled.span`
|
|
123
|
+
font-size: var(--font-body1);
|
|
124
|
+
display: flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
align-items: center;
|
|
127
|
+
height: 100%;
|
|
128
|
+
`;
|
|
129
|
+
export default Paginate;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Paginate } from './Paginate';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import ReactDOM, { unmountComponentAtNode } from 'react-dom';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import OutsideClickHandler from 'react-outside-click-handler';
|
|
5
|
+
import { useCustomPopper } from '@cashub/hooks';
|
|
6
|
+
import { appendElementTo } from '@cashub/utils';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const Popover = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
container,
|
|
11
|
+
id,
|
|
12
|
+
...props
|
|
13
|
+
} = _ref;
|
|
14
|
+
const rootElement = appendElementTo('PopoverContainer', 'div', container);
|
|
15
|
+
const handleClose = () => {
|
|
16
|
+
// unmount component and clear event handler and state before remove container
|
|
17
|
+
unmountComponentAtNode(rootElement);
|
|
18
|
+
rootElement.remove();
|
|
19
|
+
};
|
|
20
|
+
const result = document.getElementById(`popover${id}`);
|
|
21
|
+
// found previous element mean want to close popover now, so remove it
|
|
22
|
+
if (result) {
|
|
23
|
+
handleClose();
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
ReactDOM.render(/*#__PURE__*/_jsx(Box, {
|
|
27
|
+
...props,
|
|
28
|
+
id: `popover${id}`,
|
|
29
|
+
handleClose: handleClose
|
|
30
|
+
}), rootElement);
|
|
31
|
+
};
|
|
32
|
+
const Box = _ref2 => {
|
|
33
|
+
let {
|
|
34
|
+
target,
|
|
35
|
+
id,
|
|
36
|
+
handleClose,
|
|
37
|
+
content,
|
|
38
|
+
boundary
|
|
39
|
+
} = _ref2;
|
|
40
|
+
const [popoverElement, setTooltipElement] = useState(null);
|
|
41
|
+
const {
|
|
42
|
+
styles,
|
|
43
|
+
attributes,
|
|
44
|
+
state
|
|
45
|
+
} = useCustomPopper(target, popoverElement, {
|
|
46
|
+
boundary
|
|
47
|
+
});
|
|
48
|
+
return /*#__PURE__*/_jsx(OutsideClickHandler, {
|
|
49
|
+
onOutsideClick: event => {
|
|
50
|
+
if (`popover${event.target.id}` !== id) {
|
|
51
|
+
handleClose();
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
children: /*#__PURE__*/_jsx(Wrapper, {
|
|
55
|
+
children: /*#__PURE__*/_jsx(PopoverBox, {
|
|
56
|
+
id: id,
|
|
57
|
+
ref: setTooltipElement,
|
|
58
|
+
style: styles.popper,
|
|
59
|
+
...attributes.popper,
|
|
60
|
+
placement: state && state.placement,
|
|
61
|
+
children: content
|
|
62
|
+
})
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const Wrapper = styled.div`
|
|
67
|
+
position: relative;
|
|
68
|
+
`;
|
|
69
|
+
const PopoverBox = styled.div`
|
|
70
|
+
border: 1px solid var(--border-color);
|
|
71
|
+
color: var(--font-on-background);
|
|
72
|
+
background: var(--color-background2);
|
|
73
|
+
box-shadow: var(--box-shadow);
|
|
74
|
+
border-radius: calc(var(--border-radius) / 2);
|
|
75
|
+
padding: var(--spacing-xs);
|
|
76
|
+
z-index: 80;
|
|
77
|
+
font-size: var(--font-body1);
|
|
78
|
+
font-weight: var(--font-normal);
|
|
79
|
+
max-width: 50vw;
|
|
80
|
+
word-break: break-all;
|
|
81
|
+
`;
|
|
82
|
+
export default Popover;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Popover } from './Popover';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import QRCode from 'qrcode.react';
|
|
3
|
+
import CasHUBLogoOnly from '../assets/images/cashub-logo-only.png';
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
const QRCodeBox = _ref => {
|
|
6
|
+
let {
|
|
7
|
+
content,
|
|
8
|
+
options = {}
|
|
9
|
+
} = _ref;
|
|
10
|
+
return /*#__PURE__*/_jsxs(Wrapper, {
|
|
11
|
+
children: [/*#__PURE__*/_jsxs(Container, {
|
|
12
|
+
children: [/*#__PURE__*/_jsx(QRCode, {
|
|
13
|
+
value: content,
|
|
14
|
+
size: 300,
|
|
15
|
+
imageSettings: {
|
|
16
|
+
src: CasHUBLogoOnly,
|
|
17
|
+
x: null,
|
|
18
|
+
y: null,
|
|
19
|
+
height: 40,
|
|
20
|
+
width: 40,
|
|
21
|
+
excavate: true
|
|
22
|
+
}
|
|
23
|
+
}), options.text && /*#__PURE__*/_jsx(Text, {
|
|
24
|
+
children: options.text
|
|
25
|
+
})]
|
|
26
|
+
}), options.message && /*#__PURE__*/_jsx(Message, {
|
|
27
|
+
children: options.message
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
const Wrapper = styled.div`
|
|
32
|
+
color: var(--font-on-background);
|
|
33
|
+
text-align: center;
|
|
34
|
+
font-weight: var(--font-bold);
|
|
35
|
+
`;
|
|
36
|
+
const Container = styled.div`
|
|
37
|
+
display: inline-block;
|
|
38
|
+
padding: var(--spacing);
|
|
39
|
+
background: #fff;
|
|
40
|
+
border-radius: var(--border-radius);
|
|
41
|
+
`;
|
|
42
|
+
const Text = styled.p`
|
|
43
|
+
margin-top: var(--spacing-s);
|
|
44
|
+
font-size: var(--font-h3);
|
|
45
|
+
color: #000;
|
|
46
|
+
`;
|
|
47
|
+
const Message = styled.p`
|
|
48
|
+
margin-top: var(--spacing);
|
|
49
|
+
font-size: var(--font-h2);
|
|
50
|
+
`;
|
|
51
|
+
export default QRCodeBox;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const QRCodeContainter = _ref => {
|
|
4
|
+
let {
|
|
5
|
+
src,
|
|
6
|
+
alt
|
|
7
|
+
} = _ref;
|
|
8
|
+
return /*#__PURE__*/_jsx(Figure, {
|
|
9
|
+
children: /*#__PURE__*/_jsx(Image, {
|
|
10
|
+
src: src,
|
|
11
|
+
alt: alt
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
const Figure = styled.figure`
|
|
16
|
+
height: 240px;
|
|
17
|
+
padding: var(--spacing-s);
|
|
18
|
+
text-align: center;
|
|
19
|
+
border: var(--border-width) solid var(--border-color);
|
|
20
|
+
border-radius: var(--border-radius);
|
|
21
|
+
`;
|
|
22
|
+
const Image = styled.img`
|
|
23
|
+
height: 100%;
|
|
24
|
+
object-fit: contain;
|
|
25
|
+
border-radius: var(--border-radius);
|
|
26
|
+
`;
|
|
27
|
+
export default QRCodeContainter;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import backgroundColor from '../styles/mixin/backgroundColor';
|
|
3
|
+
import colorOnBackground from '../styles/mixin/colorOnBackground';
|
|
4
|
+
const Ribbon = styled.div`
|
|
5
|
+
width: 120px;
|
|
6
|
+
height: 120px;
|
|
7
|
+
position: absolute;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
top: -3px;
|
|
10
|
+
left: -3px;
|
|
11
|
+
`;
|
|
12
|
+
const RibbonContent = styled.span`
|
|
13
|
+
position: absolute;
|
|
14
|
+
text-transform: uppercase;
|
|
15
|
+
text-align: center;
|
|
16
|
+
display: block;
|
|
17
|
+
width: 200px;
|
|
18
|
+
transform: rotate(-45deg);
|
|
19
|
+
top: 25px;
|
|
20
|
+
right: -25px;
|
|
21
|
+
padding: 5px 0;
|
|
22
|
+
|
|
23
|
+
&::before,
|
|
24
|
+
&::after {
|
|
25
|
+
display: block;
|
|
26
|
+
content: '';
|
|
27
|
+
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
${backgroundColor}
|
|
31
|
+
${colorOnBackground}
|
|
32
|
+
`;
|
|
33
|
+
export default Object.assign(Ribbon, {
|
|
34
|
+
Content: RibbonContent
|
|
35
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Ribbon } from './Ribbon';
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import bgChartTriangle from '../assets/images/bg-chart-triangle.png';
|
|
3
|
+
import bgChartCircle from '../assets/images/bg-chart-circle.png';
|
|
4
|
+
import bgMap from '../assets/images/map.png';
|
|
5
|
+
const Section = styled.div`
|
|
6
|
+
background: var(--color-background1);
|
|
7
|
+
border-radius: var(--border-radius);
|
|
8
|
+
color: var(--font-on-background);
|
|
9
|
+
padding: var(--spacing);
|
|
10
|
+
margin-bottom: var(--spacing);
|
|
11
|
+
|
|
12
|
+
${_ref => {
|
|
13
|
+
let {
|
|
14
|
+
backgroundReverse
|
|
15
|
+
} = _ref;
|
|
16
|
+
return backgroundReverse && 'background: var(--color-background2);';
|
|
17
|
+
}}
|
|
18
|
+
|
|
19
|
+
${_ref2 => {
|
|
20
|
+
let {
|
|
21
|
+
paddingS
|
|
22
|
+
} = _ref2;
|
|
23
|
+
return paddingS && 'padding: var(--spacing-s);';
|
|
24
|
+
}}
|
|
25
|
+
|
|
26
|
+
${_ref3 => {
|
|
27
|
+
let {
|
|
28
|
+
paddingXS
|
|
29
|
+
} = _ref3;
|
|
30
|
+
return paddingXS && 'padding: var(--spacing-xs);';
|
|
31
|
+
}}
|
|
32
|
+
|
|
33
|
+
${_ref4 => {
|
|
34
|
+
let {
|
|
35
|
+
noPadding
|
|
36
|
+
} = _ref4;
|
|
37
|
+
return noPadding && 'padding: 0;';
|
|
38
|
+
}}
|
|
39
|
+
|
|
40
|
+
${_ref5 => {
|
|
41
|
+
let {
|
|
42
|
+
noPaddingX
|
|
43
|
+
} = _ref5;
|
|
44
|
+
return noPaddingX && 'padding-left: 0; padding-right: 0;';
|
|
45
|
+
}}
|
|
46
|
+
|
|
47
|
+
${_ref6 => {
|
|
48
|
+
let {
|
|
49
|
+
noPaddingTop
|
|
50
|
+
} = _ref6;
|
|
51
|
+
return noPaddingTop && 'padding-top: 0;';
|
|
52
|
+
}}
|
|
53
|
+
|
|
54
|
+
${_ref7 => {
|
|
55
|
+
let {
|
|
56
|
+
noPaddingBottom
|
|
57
|
+
} = _ref7;
|
|
58
|
+
return noPaddingBottom && 'padding-bottom: 0;';
|
|
59
|
+
}}
|
|
60
|
+
|
|
61
|
+
${_ref8 => {
|
|
62
|
+
let {
|
|
63
|
+
marginBottomS
|
|
64
|
+
} = _ref8;
|
|
65
|
+
return marginBottomS && 'margin-bottom: var(--spacing-s);';
|
|
66
|
+
}}
|
|
67
|
+
|
|
68
|
+
${_ref9 => {
|
|
69
|
+
let {
|
|
70
|
+
noMarginBottom
|
|
71
|
+
} = _ref9;
|
|
72
|
+
return noMarginBottom && 'margin-bottom: 0;';
|
|
73
|
+
}}
|
|
74
|
+
|
|
75
|
+
${_ref10 => {
|
|
76
|
+
let {
|
|
77
|
+
fullHeight
|
|
78
|
+
} = _ref10;
|
|
79
|
+
return fullHeight && 'height: calc(100% - var(--spacing));';
|
|
80
|
+
}}
|
|
81
|
+
|
|
82
|
+
${_ref11 => {
|
|
83
|
+
let {
|
|
84
|
+
backgroundMarker
|
|
85
|
+
} = _ref11;
|
|
86
|
+
return backgroundMarker && `
|
|
87
|
+
background: var(--color-background2);
|
|
88
|
+
background-image: url(${bgChartCircle}), url(${bgChartTriangle});
|
|
89
|
+
background-repeat: no-repeat;
|
|
90
|
+
background-position: left top, right bottom;
|
|
91
|
+
background-size: 337px 312px, 166px 225px;
|
|
92
|
+
`;
|
|
93
|
+
}}
|
|
94
|
+
|
|
95
|
+
${_ref12 => {
|
|
96
|
+
let {
|
|
97
|
+
backgroundMap
|
|
98
|
+
} = _ref12;
|
|
99
|
+
return backgroundMap && `
|
|
100
|
+
background: var(--color-background2);
|
|
101
|
+
background-image: url(${bgMap});
|
|
102
|
+
background-repeat: no-repeat;
|
|
103
|
+
background-size: cover;
|
|
104
|
+
`;
|
|
105
|
+
}}
|
|
106
|
+
|
|
107
|
+
${_ref13 => {
|
|
108
|
+
let {
|
|
109
|
+
border
|
|
110
|
+
} = _ref13;
|
|
111
|
+
return border && 'border: var(--border-width) solid var(--border-color);';
|
|
112
|
+
}}
|
|
113
|
+
|
|
114
|
+
${_ref14 => {
|
|
115
|
+
let {
|
|
116
|
+
checkboxGroup
|
|
117
|
+
} = _ref14;
|
|
118
|
+
return checkboxGroup && `
|
|
119
|
+
background: transparent;
|
|
120
|
+
width: 50%;
|
|
121
|
+
margin-left: auto;
|
|
122
|
+
margin-right: auto;
|
|
123
|
+
`;
|
|
124
|
+
}}
|
|
125
|
+
`;
|
|
126
|
+
export default Section;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import scrollbar from '../styles/mixin/scrollbar';
|
|
3
|
+
import media from '../styles/mixin/media';
|
|
4
|
+
const SectionBody = styled.div`
|
|
5
|
+
// fix: overflow element(relate to z-index problem)
|
|
6
|
+
// position: relative;
|
|
7
|
+
background: transparent;
|
|
8
|
+
padding: var(--spacing) 0 0 0;
|
|
9
|
+
|
|
10
|
+
${_ref => {
|
|
11
|
+
let {
|
|
12
|
+
noPadding
|
|
13
|
+
} = _ref;
|
|
14
|
+
return noPadding && 'padding: 0;';
|
|
15
|
+
}}
|
|
16
|
+
|
|
17
|
+
${_ref2 => {
|
|
18
|
+
let {
|
|
19
|
+
maxHeight
|
|
20
|
+
} = _ref2;
|
|
21
|
+
return maxHeight && css`
|
|
22
|
+
max-height: ${maxHeight}px;
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
overflow-x: hidden;
|
|
25
|
+
${scrollbar}
|
|
26
|
+
`;
|
|
27
|
+
}}
|
|
28
|
+
|
|
29
|
+
${_ref3 => {
|
|
30
|
+
let {
|
|
31
|
+
maxHeightLaptop
|
|
32
|
+
} = _ref3;
|
|
33
|
+
return maxHeightLaptop && css`
|
|
34
|
+
${media.laptop`
|
|
35
|
+
max-height: ${maxHeightLaptop}px;
|
|
36
|
+
overflow-y: auto;
|
|
37
|
+
overflow-x: hidden;
|
|
38
|
+
${scrollbar}
|
|
39
|
+
`}
|
|
40
|
+
`;
|
|
41
|
+
}}
|
|
42
|
+
`;
|
|
43
|
+
export default SectionBody;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import headerStyle from '../styles/config/header.style';
|
|
3
|
+
const SectionHeader = styled.div`
|
|
4
|
+
background: transparent;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin-bottom: calc(var(--spacing-s) * -1);
|
|
7
|
+
|
|
8
|
+
> * {
|
|
9
|
+
padding-bottom: var(--spacing-s);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
${_ref => {
|
|
13
|
+
let {
|
|
14
|
+
inline
|
|
15
|
+
} = _ref;
|
|
16
|
+
return inline && css`
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
align-items: center;
|
|
20
|
+
`;
|
|
21
|
+
}}
|
|
22
|
+
|
|
23
|
+
${_ref2 => {
|
|
24
|
+
let {
|
|
25
|
+
flexStart
|
|
26
|
+
} = _ref2;
|
|
27
|
+
return flexStart && 'justify-content: flex-start;';
|
|
28
|
+
}}
|
|
29
|
+
|
|
30
|
+
${_ref3 => {
|
|
31
|
+
let {
|
|
32
|
+
border
|
|
33
|
+
} = _ref3;
|
|
34
|
+
return border && 'border-bottom: var(--border-width) solid var(--border-color);';
|
|
35
|
+
}}
|
|
36
|
+
|
|
37
|
+
${_ref4 => {
|
|
38
|
+
let {
|
|
39
|
+
backgroundFill
|
|
40
|
+
} = _ref4;
|
|
41
|
+
return backgroundFill && 'background: var(--color-background1);';
|
|
42
|
+
}}
|
|
43
|
+
|
|
44
|
+
${_ref5 => {
|
|
45
|
+
let {
|
|
46
|
+
backgroundReverse
|
|
47
|
+
} = _ref5;
|
|
48
|
+
return backgroundReverse && 'background: var(--color-background2);';
|
|
49
|
+
}}
|
|
50
|
+
|
|
51
|
+
${_ref6 => {
|
|
52
|
+
let {
|
|
53
|
+
sticky
|
|
54
|
+
} = _ref6;
|
|
55
|
+
return sticky && `position: sticky;
|
|
56
|
+
z-index:20;
|
|
57
|
+
top: ${headerStyle.height};
|
|
58
|
+
`;
|
|
59
|
+
}}
|
|
60
|
+
`;
|
|
61
|
+
export default SectionHeader;
|