@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,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Document,
|
|
3
|
+
Page,
|
|
4
|
+
PDFViewer,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
View,
|
|
7
|
+
Font,
|
|
8
|
+
} from "@react-pdf/renderer";
|
|
9
|
+
import BillingHeader3 from "../Header3";
|
|
10
|
+
import { useContext } from "react";
|
|
11
|
+
import { ThemeContext } from "styled-components";
|
|
12
|
+
import NanumGothicBold from "../../assets/font/nanumGothic/NanumGothic-Bold.ttf";
|
|
13
|
+
import NanumGothicExtraBold from "../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf";
|
|
14
|
+
import NanumGothicRegular from "../../assets/font/nanumGothic/NanumGothic-Regular.ttf";
|
|
15
|
+
export default {
|
|
16
|
+
title: "billing/header3",
|
|
17
|
+
component: BillingHeader3,
|
|
18
|
+
argTypes: {
|
|
19
|
+
children: {
|
|
20
|
+
description:
|
|
21
|
+
"For displaying text. Supports nesting of other Text or Link components to create inline styling.",
|
|
22
|
+
},
|
|
23
|
+
fontWeightNormal: { description: "Style variant" },
|
|
24
|
+
noMarginBottom: { description: "Style variant" },
|
|
25
|
+
paddingBottom: { description: "Style variant" },
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const Default = (args) => {
|
|
30
|
+
const theme = useContext(ThemeContext);
|
|
31
|
+
Font.register({
|
|
32
|
+
family: "Nanum Gothic",
|
|
33
|
+
fonts: [
|
|
34
|
+
{ src: NanumGothicBold },
|
|
35
|
+
{ src: NanumGothicExtraBold },
|
|
36
|
+
{ src: NanumGothicRegular },
|
|
37
|
+
],
|
|
38
|
+
});
|
|
39
|
+
const styles = StyleSheet.create({
|
|
40
|
+
page: {
|
|
41
|
+
fontFamily: "Nanum Gothic",
|
|
42
|
+
color: "#ffffff",
|
|
43
|
+
backgroundColor: theme.bgColor2,
|
|
44
|
+
padding: 8,
|
|
45
|
+
},
|
|
46
|
+
view: {
|
|
47
|
+
border: "1px solid #ffffff",
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<PDFViewer style={{ width: "100%" }}>
|
|
53
|
+
<Document>
|
|
54
|
+
<Page size="A4" style={styles.page}>
|
|
55
|
+
<View style={styles.view}>
|
|
56
|
+
<BillingHeader3 {...args}></BillingHeader3>
|
|
57
|
+
</View>
|
|
58
|
+
</Page>
|
|
59
|
+
</Document>
|
|
60
|
+
</PDFViewer>
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
Default.args = {
|
|
65
|
+
children: "BillingHeader3 content",
|
|
66
|
+
fontWeightNormal: false,
|
|
67
|
+
noMarginBottom: false,
|
|
68
|
+
paddingBottom: false,
|
|
69
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Document,
|
|
3
|
+
Page,
|
|
4
|
+
PDFViewer,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
View,
|
|
7
|
+
Font,
|
|
8
|
+
} from '@react-pdf/renderer';
|
|
9
|
+
import { useContext } from 'react';
|
|
10
|
+
import { ThemeContext } from 'styled-components';
|
|
11
|
+
import BillingParagraphGroup from '../ParagraphGroup';
|
|
12
|
+
import BillingParagraph from '../Paragraph';
|
|
13
|
+
import BillingParagraphText from '../ParagraphText';
|
|
14
|
+
import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
|
|
15
|
+
import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
|
|
16
|
+
import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
title: 'billing/BillingParagraph',
|
|
20
|
+
component: BillingParagraph,
|
|
21
|
+
subComponent: BillingParagraphText,
|
|
22
|
+
argTypes: {
|
|
23
|
+
children: {
|
|
24
|
+
description: 'A BillingParagraphText component must be passed in.',
|
|
25
|
+
},
|
|
26
|
+
marginRight: { description: 'Style variant' },
|
|
27
|
+
justifyContentBetween: { description: 'Style variant' },
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const Default = (args) => {
|
|
32
|
+
const theme = useContext(ThemeContext);
|
|
33
|
+
Font.register({
|
|
34
|
+
family: 'Nanum Gothic',
|
|
35
|
+
fonts: [
|
|
36
|
+
{ src: NanumGothicBold },
|
|
37
|
+
{ src: NanumGothicExtraBold },
|
|
38
|
+
{ src: NanumGothicRegular },
|
|
39
|
+
],
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const styles = StyleSheet.create({
|
|
43
|
+
page: {
|
|
44
|
+
fontFamily: 'Nanum Gothic',
|
|
45
|
+
color: '#ffffff',
|
|
46
|
+
backgroundColor: theme.bgColor2,
|
|
47
|
+
padding: 8,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<PDFViewer style={{ width: '100%' }}>
|
|
53
|
+
<Document>
|
|
54
|
+
<Page size='A4' style={styles.page}>
|
|
55
|
+
<View>
|
|
56
|
+
<BillingParagraphGroup>
|
|
57
|
+
<BillingParagraph {...args}>
|
|
58
|
+
<BillingParagraphText>Total 01: </BillingParagraphText>
|
|
59
|
+
<BillingParagraphText>10000</BillingParagraphText>
|
|
60
|
+
</BillingParagraph>
|
|
61
|
+
<BillingParagraph {...args}>
|
|
62
|
+
<BillingParagraphText>Available 01: </BillingParagraphText>
|
|
63
|
+
<BillingParagraphText>2000</BillingParagraphText>
|
|
64
|
+
</BillingParagraph>
|
|
65
|
+
</BillingParagraphGroup>
|
|
66
|
+
<BillingParagraph {...args}>
|
|
67
|
+
<BillingParagraphText>Total 02: </BillingParagraphText>
|
|
68
|
+
<BillingParagraphText>10000</BillingParagraphText>
|
|
69
|
+
</BillingParagraph>
|
|
70
|
+
<BillingParagraph {...args}>
|
|
71
|
+
<BillingParagraphText>Available 02: </BillingParagraphText>
|
|
72
|
+
<BillingParagraphText>2000</BillingParagraphText>
|
|
73
|
+
</BillingParagraph>
|
|
74
|
+
</View>
|
|
75
|
+
</Page>
|
|
76
|
+
</Document>
|
|
77
|
+
</PDFViewer>
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
Default.args = {
|
|
82
|
+
marginRight: true,
|
|
83
|
+
justifyContentBetween: false,
|
|
84
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Document,
|
|
3
|
+
Page,
|
|
4
|
+
PDFViewer,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
View,
|
|
7
|
+
Font,
|
|
8
|
+
} from '@react-pdf/renderer';
|
|
9
|
+
import { useContext } from 'react';
|
|
10
|
+
import { ThemeContext } from 'styled-components';
|
|
11
|
+
import BillingParagraph from '../Paragraph';
|
|
12
|
+
import BillingParagraphGroup from '../ParagraphGroup';
|
|
13
|
+
import BillingParagraphText from '../ParagraphText';
|
|
14
|
+
import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
|
|
15
|
+
import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
|
|
16
|
+
import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
title: 'billing/BillingParagraphGroup',
|
|
20
|
+
component: BillingParagraphGroup,
|
|
21
|
+
subComponent: { BillingParagraph },
|
|
22
|
+
argTypes: {
|
|
23
|
+
children: {
|
|
24
|
+
description: 'A BillingParagraph component must be passed in.',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const Default = (args) => {
|
|
30
|
+
const theme = useContext(ThemeContext);
|
|
31
|
+
Font.register({
|
|
32
|
+
family: 'Nanum Gothic',
|
|
33
|
+
fonts: [
|
|
34
|
+
{ src: NanumGothicBold },
|
|
35
|
+
{ src: NanumGothicExtraBold },
|
|
36
|
+
{ src: NanumGothicRegular },
|
|
37
|
+
],
|
|
38
|
+
});
|
|
39
|
+
const styles = StyleSheet.create({
|
|
40
|
+
page: {
|
|
41
|
+
fontFamily: 'Nanum Gothic',
|
|
42
|
+
color: '#ffffff',
|
|
43
|
+
backgroundColor: theme.bgColor2,
|
|
44
|
+
padding: 8,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<PDFViewer style={{ width: '100%' }}>
|
|
50
|
+
<Document>
|
|
51
|
+
<Page size='A4' style={styles.page}>
|
|
52
|
+
<View>
|
|
53
|
+
<BillingParagraphGroup {...args}>
|
|
54
|
+
<BillingParagraph marginRight>
|
|
55
|
+
<BillingParagraphText>Total: </BillingParagraphText>
|
|
56
|
+
<BillingParagraphText>10000</BillingParagraphText>
|
|
57
|
+
</BillingParagraph>
|
|
58
|
+
<BillingParagraph marginRight>
|
|
59
|
+
<BillingParagraphText>Total 2: </BillingParagraphText>
|
|
60
|
+
<BillingParagraphText>20000</BillingParagraphText>
|
|
61
|
+
</BillingParagraph>
|
|
62
|
+
</BillingParagraphGroup>
|
|
63
|
+
</View>
|
|
64
|
+
</Page>
|
|
65
|
+
</Document>
|
|
66
|
+
</PDFViewer>
|
|
67
|
+
);
|
|
68
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Document,
|
|
3
|
+
Page,
|
|
4
|
+
PDFViewer,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
View,
|
|
7
|
+
Font,
|
|
8
|
+
} from '@react-pdf/renderer';
|
|
9
|
+
import { useContext } from 'react';
|
|
10
|
+
import { ThemeContext } from 'styled-components';
|
|
11
|
+
import BillingParagraphText from '../ParagraphText';
|
|
12
|
+
import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
|
|
13
|
+
import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
|
|
14
|
+
import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
title: 'billing/BillingParagraphText',
|
|
18
|
+
component: BillingParagraphText,
|
|
19
|
+
argTypes: {
|
|
20
|
+
children: {
|
|
21
|
+
description:
|
|
22
|
+
'For displaying text. Supports nesting of other Text or Link components to create inline styling.',
|
|
23
|
+
},
|
|
24
|
+
fontWeightBold: { description: 'Style variant' },
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const Default = (args) => {
|
|
29
|
+
const theme = useContext(ThemeContext);
|
|
30
|
+
Font.register({
|
|
31
|
+
family: 'Nanum Gothic',
|
|
32
|
+
fonts: [
|
|
33
|
+
{ src: NanumGothicBold },
|
|
34
|
+
{ src: NanumGothicExtraBold },
|
|
35
|
+
{ src: NanumGothicRegular },
|
|
36
|
+
],
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const styles = StyleSheet.create({
|
|
40
|
+
page: {
|
|
41
|
+
fontFamily: 'Nanum Gothic',
|
|
42
|
+
color: '#ffffff',
|
|
43
|
+
backgroundColor: theme.bgColor2,
|
|
44
|
+
padding: 8,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<PDFViewer style={{ width: '100%' }}>
|
|
50
|
+
<Document>
|
|
51
|
+
<Page size='A4' style={styles.page}>
|
|
52
|
+
<View>
|
|
53
|
+
<BillingParagraphText {...args}></BillingParagraphText>
|
|
54
|
+
</View>
|
|
55
|
+
</Page>
|
|
56
|
+
</Document>
|
|
57
|
+
</PDFViewer>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
Default.args = {
|
|
62
|
+
children: 'BillingParagraphText content',
|
|
63
|
+
fontWeightBold: false,
|
|
64
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { ThemeContext } from 'styled-components';
|
|
3
|
+
import {
|
|
4
|
+
PDFViewer,
|
|
5
|
+
Document,
|
|
6
|
+
Page,
|
|
7
|
+
View,
|
|
8
|
+
StyleSheet,
|
|
9
|
+
Font,
|
|
10
|
+
} from '@react-pdf/renderer';
|
|
11
|
+
import BillingSection from '../Section';
|
|
12
|
+
import BillingSectionHeader from '../SectionHeader';
|
|
13
|
+
import BillingSectionBody from '../SectionBody';
|
|
14
|
+
import BillingHeader3 from '../Header3';
|
|
15
|
+
import BillingParagraph from '../Paragraph';
|
|
16
|
+
import BillingParagraphGroup from '../ParagraphGroup';
|
|
17
|
+
import BillingParagraphText from '../ParagraphText';
|
|
18
|
+
import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
|
|
19
|
+
import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
|
|
20
|
+
import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
title: 'billing/BillingSection',
|
|
24
|
+
component: BillingSection,
|
|
25
|
+
subComponent: {
|
|
26
|
+
BillingSectionHeader,
|
|
27
|
+
BillingSectionBody,
|
|
28
|
+
},
|
|
29
|
+
argTypes: {
|
|
30
|
+
children: {
|
|
31
|
+
description:
|
|
32
|
+
'A BillingSectionHeader and BillingSectionBody component must be passed in.',
|
|
33
|
+
},
|
|
34
|
+
theme: { description: 'Provide theme styles for components to use' },
|
|
35
|
+
backgroundReverse: { description: 'Style variant' },
|
|
36
|
+
noPadding: { description: 'Style variant' },
|
|
37
|
+
noMarginBottom: { description: 'Style variant' },
|
|
38
|
+
paddingS: { description: 'Style variant' },
|
|
39
|
+
marginBottomS: { description: 'Style variant' },
|
|
40
|
+
flexGrow: { description: 'Style variant' },
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const Default = (args) => {
|
|
45
|
+
const theme = useContext(ThemeContext);
|
|
46
|
+
Font.register({
|
|
47
|
+
family: 'Nanum Gothic',
|
|
48
|
+
fonts: [
|
|
49
|
+
{ src: NanumGothicBold },
|
|
50
|
+
{ src: NanumGothicExtraBold },
|
|
51
|
+
{ src: NanumGothicRegular },
|
|
52
|
+
],
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const styles = StyleSheet.create({
|
|
56
|
+
page: {
|
|
57
|
+
fontFamily: 'Nanum Gothic',
|
|
58
|
+
color: '#ffffff',
|
|
59
|
+
backgroundColor: theme.bgColor2,
|
|
60
|
+
padding: 8,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<PDFViewer showToolbar={false} style={{ width: '100%', height: '500px' }}>
|
|
66
|
+
<Document>
|
|
67
|
+
<Page size='A4' style={styles.page}>
|
|
68
|
+
<View>
|
|
69
|
+
<BillingSection {...args} theme={theme}>
|
|
70
|
+
<BillingSectionHeader>
|
|
71
|
+
<BillingHeader3>BillingHeader3</BillingHeader3>
|
|
72
|
+
</BillingSectionHeader>
|
|
73
|
+
<BillingSectionBody>
|
|
74
|
+
<BillingParagraphGroup>
|
|
75
|
+
<BillingParagraph>
|
|
76
|
+
<BillingParagraphText>Used:</BillingParagraphText>
|
|
77
|
+
<BillingParagraphText fontWeightBold>
|
|
78
|
+
200
|
|
79
|
+
</BillingParagraphText>
|
|
80
|
+
</BillingParagraph>
|
|
81
|
+
</BillingParagraphGroup>
|
|
82
|
+
</BillingSectionBody>
|
|
83
|
+
</BillingSection>
|
|
84
|
+
</View>
|
|
85
|
+
<View>
|
|
86
|
+
<BillingSection {...args} theme={theme}>
|
|
87
|
+
<BillingSectionHeader>
|
|
88
|
+
<BillingHeader3>BillingHeader3</BillingHeader3>
|
|
89
|
+
</BillingSectionHeader>
|
|
90
|
+
<BillingSectionBody>
|
|
91
|
+
<BillingParagraphGroup>
|
|
92
|
+
<BillingParagraph>
|
|
93
|
+
<BillingParagraphText>Used:</BillingParagraphText>
|
|
94
|
+
<BillingParagraphText fontWeightBold>
|
|
95
|
+
200
|
|
96
|
+
</BillingParagraphText>
|
|
97
|
+
</BillingParagraph>
|
|
98
|
+
</BillingParagraphGroup>
|
|
99
|
+
</BillingSectionBody>
|
|
100
|
+
</BillingSection>
|
|
101
|
+
</View>
|
|
102
|
+
</Page>
|
|
103
|
+
</Document>
|
|
104
|
+
</PDFViewer>
|
|
105
|
+
);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
Default.args = {
|
|
109
|
+
backgroundReverse: false,
|
|
110
|
+
noPadding: false,
|
|
111
|
+
noMarginBottom: false,
|
|
112
|
+
paddingS: false,
|
|
113
|
+
marginBottomS: false,
|
|
114
|
+
flexGrow: false,
|
|
115
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { ThemeContext } from 'styled-components';
|
|
3
|
+
import {
|
|
4
|
+
PDFViewer,
|
|
5
|
+
Document,
|
|
6
|
+
Page,
|
|
7
|
+
View,
|
|
8
|
+
StyleSheet,
|
|
9
|
+
Text,
|
|
10
|
+
Font,
|
|
11
|
+
} from '@react-pdf/renderer';
|
|
12
|
+
import BillingSectionBody from '../SectionBody';
|
|
13
|
+
import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
|
|
14
|
+
import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
|
|
15
|
+
import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
title: 'billing/BillingSectionBody',
|
|
19
|
+
component: BillingSectionBody,
|
|
20
|
+
argTypes: {
|
|
21
|
+
children: {
|
|
22
|
+
description: 'BillingSectionBody content can have 0 to many children.',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const Default = (args) => {
|
|
28
|
+
const theme = useContext(ThemeContext);
|
|
29
|
+
Font.register({
|
|
30
|
+
family: 'Nanum Gothic',
|
|
31
|
+
fonts: [
|
|
32
|
+
{ src: NanumGothicBold },
|
|
33
|
+
{ src: NanumGothicExtraBold },
|
|
34
|
+
{ src: NanumGothicRegular },
|
|
35
|
+
],
|
|
36
|
+
});
|
|
37
|
+
const styles = StyleSheet.create({
|
|
38
|
+
page: {
|
|
39
|
+
family: 'Nanum Gothic',
|
|
40
|
+
color: '#ffffff',
|
|
41
|
+
backgroundColor: theme.bgColor2,
|
|
42
|
+
padding: 8,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<PDFViewer style={{ width: '100%' }}>
|
|
48
|
+
<Document>
|
|
49
|
+
<Page size='A4' style={styles.page}>
|
|
50
|
+
<View>
|
|
51
|
+
<BillingSectionBody {...args}>
|
|
52
|
+
<View>
|
|
53
|
+
<Text>text1</Text>
|
|
54
|
+
</View>
|
|
55
|
+
<Text>text2</Text>
|
|
56
|
+
</BillingSectionBody>
|
|
57
|
+
</View>
|
|
58
|
+
</Page>
|
|
59
|
+
</Document>
|
|
60
|
+
</PDFViewer>
|
|
61
|
+
);
|
|
62
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { ThemeContext } from 'styled-components';
|
|
3
|
+
import {
|
|
4
|
+
PDFViewer,
|
|
5
|
+
Document,
|
|
6
|
+
Page,
|
|
7
|
+
View,
|
|
8
|
+
StyleSheet,
|
|
9
|
+
Font,
|
|
10
|
+
} from '@react-pdf/renderer';
|
|
11
|
+
import BillingSectionHeader from '../SectionHeader';
|
|
12
|
+
import BillingHeader3 from '../Header3';
|
|
13
|
+
import NanumGothicBold from '../../assets/font/nanumGothic/NanumGothic-Bold.ttf';
|
|
14
|
+
import NanumGothicExtraBold from '../../assets/font/nanumGothic/NanumGothic-ExtraBold.ttf';
|
|
15
|
+
import NanumGothicRegular from '../../assets/font/nanumGothic/NanumGothic-Regular.ttf';
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
title: 'billing/BillingSectionHeader',
|
|
19
|
+
component: BillingSectionHeader,
|
|
20
|
+
subComponent: {
|
|
21
|
+
BillingHeader3,
|
|
22
|
+
},
|
|
23
|
+
argTypes: {
|
|
24
|
+
children: {
|
|
25
|
+
description: 'A BillingHeader3 component must be passed in.',
|
|
26
|
+
},
|
|
27
|
+
inline: { description: 'Style variant' },
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const Default = (args) => {
|
|
32
|
+
const theme = useContext(ThemeContext);
|
|
33
|
+
Font.register({
|
|
34
|
+
family: 'Nanum Gothic',
|
|
35
|
+
fonts: [
|
|
36
|
+
{ src: NanumGothicBold },
|
|
37
|
+
{ src: NanumGothicExtraBold },
|
|
38
|
+
{ src: NanumGothicRegular },
|
|
39
|
+
],
|
|
40
|
+
});
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
page: {
|
|
43
|
+
family: 'Nanum Gothic',
|
|
44
|
+
color: '#ffffff',
|
|
45
|
+
backgroundColor: theme.bgColor2,
|
|
46
|
+
padding: 8,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<PDFViewer style={{ width: '100%' }}>
|
|
52
|
+
<Document>
|
|
53
|
+
<Page size='A4' style={styles.page}>
|
|
54
|
+
<View>
|
|
55
|
+
<BillingSectionHeader {...args}>
|
|
56
|
+
<BillingHeader3>BillingHeader3</BillingHeader3>
|
|
57
|
+
<BillingHeader3>BillingHeader3</BillingHeader3>
|
|
58
|
+
</BillingSectionHeader>
|
|
59
|
+
</View>
|
|
60
|
+
</Page>
|
|
61
|
+
</Document>
|
|
62
|
+
</PDFViewer>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
Default.args = {
|
|
67
|
+
inline: false,
|
|
68
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Link } from 'react-router-dom';
|
|
3
|
+
import media from '../styles/mixin/media';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
const Breadcrumb = _ref => {
|
|
6
|
+
let {
|
|
7
|
+
path = []
|
|
8
|
+
} = _ref;
|
|
9
|
+
return /*#__PURE__*/_jsx(Wrapper, {
|
|
10
|
+
children: path.map((_ref2, index) => {
|
|
11
|
+
let {
|
|
12
|
+
name,
|
|
13
|
+
url
|
|
14
|
+
} = _ref2;
|
|
15
|
+
if (url) {
|
|
16
|
+
return /*#__PURE__*/_jsx(Link, {
|
|
17
|
+
to: url,
|
|
18
|
+
children: /*#__PURE__*/_jsx("p", {
|
|
19
|
+
children: name
|
|
20
|
+
})
|
|
21
|
+
}, index);
|
|
22
|
+
}
|
|
23
|
+
return /*#__PURE__*/_jsx("p", {
|
|
24
|
+
children: name
|
|
25
|
+
}, index);
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const Wrapper = styled.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
align-items: center;
|
|
33
|
+
font-size: var(--font-body2);
|
|
34
|
+
line-height: var(--font-body1);
|
|
35
|
+
color: var(--font-on-background);
|
|
36
|
+
padding: var(--spacing-s) 0;
|
|
37
|
+
|
|
38
|
+
> *:not(:last-child) {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
color: var(--font-on-background);
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
|
|
44
|
+
> p {
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
text-decoration: underline;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:after {
|
|
55
|
+
content: '/';
|
|
56
|
+
padding: 0 var(--spacing-xs);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
> *:last-child {
|
|
61
|
+
text-overflow: ellipsis;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
color: var(--color-primary);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
${media.tablet`
|
|
68
|
+
padding-top: 0;
|
|
69
|
+
`}
|
|
70
|
+
`;
|
|
71
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Breadcrumb } from './Breadcrumb';
|