@cashub/ui 0.48.28 → 0.49.0-beta.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/dist/Tab/TabList.js +167 -0
- package/dist/Tab/TabPanel.js +49 -0
- package/dist/Tab/TabTab.js +105 -0
- package/dist/Tab/index.js +30 -0
- package/dist/Tab/subComponent/TabListV2.js +25 -0
- package/dist/Tab/subComponent/TabPanelV2.js +52 -0
- package/dist/Tab/subComponent/TabTabV2.js +63 -0
- package/dist/VerticalTab/TabList.js +27 -0
- package/dist/VerticalTab/TabPanel.js +52 -0
- package/dist/VerticalTab/TabTab.js +70 -0
- package/dist/VerticalTab/VerticalTab.js +41 -0
- package/dist/alert/Alert.js +29 -0
- package/dist/animate/Collapse.js +71 -0
- package/dist/animate/Loader.js +58 -0
- package/dist/animate/PulseRing.js +35 -0
- package/dist/animate/Spinner.js +18 -0
- package/dist/assets/images/bg-aside.png +0 -0
- package/dist/assets/images/bg-main-vivid.png +0 -0
- package/dist/assets/images/bg-main.png +0 -0
- package/dist/backdrop/BaseBackdrop.js +18 -0
- package/dist/backdrop/LoadingBackdrop.js +17 -0
- package/dist/backdrop/ModalBackdrop.js +15 -0
- package/dist/badge/Badge.js +26 -0
- package/dist/badge/BadgeDot.js +18 -0
- package/dist/badge/BadgeFill.js +49 -0
- package/dist/badge/BadgeFillTriangle.js +147 -0
- package/dist/badge/BadgeWithText.js +31 -0
- package/dist/billing/BarChart.js +51 -0
- package/dist/breadcrumb/Breadcrumb.js +78 -0
- package/dist/button/Button.js +154 -0
- package/dist/button/ButtonGroup.js +61 -0
- package/dist/button/IconButton.js +70 -0
- package/dist/button/ScrollToTopButton.js +54 -0
- package/dist/callout/Callout.js +52 -0
- package/dist/chart/BarChart.js +148 -0
- package/dist/chart/DoughnutChart.js +118 -0
- package/dist/chart/LineChart.js +146 -0
- package/dist/chart/SingleBarChart.js +42 -0
- package/dist/chart/utils/centerTextPlugin.js +62 -0
- package/dist/chart/utils/customTooltip.js +94 -0
- package/dist/chart/utils/htmlLegendPlugin.js +89 -0
- package/dist/chart/utils/yAxisTopTitlePlugin.js +49 -0
- package/dist/container/FlexContainer.js +40 -0
- package/dist/cropper/Cropper.js +54 -0
- package/dist/datetimePicker/DatePicker.js +363 -0
- package/dist/datetimePicker/DatePickerV2.js +407 -0
- package/dist/datetimePicker/DatetimePicker.js +240 -0
- package/dist/datetimePicker/DatetimePickerV2.js +395 -0
- package/dist/datetimePicker/DatetimePickerV3.js +279 -0
- package/dist/datetimePicker/TimeInput.js +56 -0
- package/dist/datetimePicker/TimePicker.js +317 -0
- package/dist/datetimePicker/TimePickerStyle.js +64 -0
- package/dist/datetimePicker/TimePickerV2.js +208 -0
- package/dist/datetimePicker/accordion/Month.js +254 -0
- package/dist/datetimePicker/accordion/Year.js +284 -0
- package/dist/datetimePicker/hooks/useChangeNumber.js +42 -0
- package/dist/datetimePicker/hooks/useDecrease.js +38 -0
- package/dist/datetimePicker/hooks/useIncrease.js +38 -0
- package/dist/datetimePicker/subComponent/Accordion.js +373 -0
- package/dist/descriptionList/DescriptionDetail.js +28 -0
- package/dist/descriptionList/DescriptionList.js +25 -0
- package/dist/descriptionList/DescriptionTerm.js +14 -0
- package/dist/divider/Divider.js +31 -0
- package/dist/dropdown/DropdownButtonOption.js +43 -0
- package/dist/dropdown/DropdownContent.js +90 -0
- package/dist/dropdown/DropdownDivOption.js +26 -0
- package/dist/dropdown/DropdownLinkOption.js +24 -0
- package/dist/dropdown/DropdownToggle.js +38 -0
- package/dist/dropzone/FileDropzone.js +479 -0
- package/dist/dropzone/ImageDropzone.js +334 -0
- package/dist/dropzone/subComponent/Message.js +26 -0
- package/dist/figure/IconFigure.js +42 -0
- package/dist/figure/ImageFigure.js +38 -0
- package/dist/file/HiddenFileInput.js +15 -0
- package/dist/form/Checkbox.js +166 -0
- package/dist/form/Fieldset.js +18 -0
- package/dist/form/FormItem.js +22 -0
- package/dist/form/Input.js +66 -0
- package/dist/form/Label.js +61 -0
- package/dist/form/MutedText.js +21 -0
- package/dist/form/PasswordInput.js +47 -0
- package/dist/form/RadioButton.js +103 -0
- package/dist/form/SearchSelect.js +181 -0
- package/dist/form/Searchbox.js +98 -0
- package/dist/form/Slider.js +46 -0
- package/dist/form/SwitchButton.js +105 -0
- package/dist/form/Textarea.js +41 -0
- package/dist/form/TreeView.js +73 -0
- package/dist/grid/Column.js +46 -0
- package/dist/grid/Grid.js +35 -0
- package/dist/heading/Heading1.js +21 -0
- package/dist/heading/Heading2.js +28 -0
- package/dist/heading/Heading3.js +49 -0
- package/dist/icon/assets/android.jsx +10 -0
- package/dist/icon/assets/app-management.jsx +10 -0
- package/dist/icon/assets/appStore.jsx +6 -0
- package/dist/icon/assets/battery.jsx +15 -0
- package/dist/icon/assets/bill.jsx +10 -0
- package/dist/icon/assets/campaign.jsx +9 -0
- package/dist/icon/assets/casstore.jsx +8 -0
- package/dist/icon/assets/dashboard.jsx +6 -0
- package/dist/icon/assets/enterprise.jsx +15 -0
- package/dist/icon/assets/firmware.jsx +8 -0
- package/dist/icon/assets/folder.jsx +8 -0
- package/dist/icon/assets/group.jsx +18 -0
- package/dist/icon/assets/heartbeats.jsx +9 -0
- package/dist/icon/assets/invite-user.jsx +9 -0
- package/dist/icon/assets/log.jsx +9 -0
- package/dist/icon/assets/manufacturer.jsx +7 -0
- package/dist/icon/assets/merchant.jsx +16 -0
- package/dist/icon/assets/package-collection.jsx +8 -0
- package/dist/icon/assets/report.jsx +11 -0
- package/dist/icon/assets/resource.jsx +9 -0
- package/dist/icon/assets/role.jsx +7 -0
- package/dist/icon/assets/shield-lock.jsx +202 -0
- package/dist/icon/assets/shield-no-signal.jsx +195 -0
- package/dist/icon/assets/shield-unsafe.jsx +191 -0
- package/dist/icon/assets/shield.jsx +186 -0
- package/dist/icon/assets/statistics.jsx +9 -0
- package/dist/icon/assets/tag.jsx +14 -0
- package/dist/icon/assets/template-management.jsx +8 -0
- package/dist/icon/assets/terminal.jsx +7 -0
- package/dist/icon/assets/tradeye.jsx +7 -0
- package/dist/icon/registry.js +70 -0
- package/dist/iconbox/ApplicationIconBox.js +81 -0
- package/dist/iconbox/IconBox.js +103 -0
- package/dist/iconbox/IconBoxV2.js +72 -0
- package/dist/iconbox/assets/bg-enterprise.png +0 -0
- package/dist/iconbox/assets/bg-merchant.png +0 -0
- package/dist/iconbox/assets/bg-terminal.png +0 -0
- package/dist/iconbox/assets/bg-user.png +0 -0
- package/dist/iconbox/bgImageRegistry.js +18 -0
- package/dist/iconbox/subComponent/IconBoxFigure.js +50 -0
- package/dist/iconbox/subComponent/IconBoxImage.js +85 -0
- package/dist/image/ImageFluid.js +17 -0
- package/dist/image/UploadImage.js +250 -0
- package/dist/jsoneditor/JsonEditor.js +142 -0
- package/dist/keyframe/Pulse.js +21 -0
- package/dist/keyframe/Spin.js +13 -0
- package/dist/layout/Aside.js +58 -0
- package/dist/layout/Backdrop.js +23 -0
- package/dist/layout/Container.js +56 -0
- package/dist/layout/Footer.js +45 -0
- package/dist/layout/Header.jsx +48 -0
- package/dist/layout/Layout.jsx +69 -0
- package/dist/layout/Logo.jsx +17 -0
- package/dist/layout/MenuIcon.jsx +45 -0
- package/dist/layout/Sidebar.jsx +261 -0
- package/dist/layout/assets/burger-modern.jsx +9 -0
- package/dist/layout/bgMainRegistry.js +14 -0
- package/dist/link/LinkSpan.js +69 -0
- package/dist/map/GoogleMap.js +448 -0
- package/dist/map/GoogleReverseGeolocation.js +200 -0
- package/dist/map/LeafletMap.js +231 -0
- package/dist/map/subComponent/GoogleMapContainer.js +29 -0
- package/dist/map/subComponent/GoogleMapPopup.js +109 -0
- package/dist/map/subComponent/GoogleMapWrapper.js +40 -0
- package/dist/map/subComponent/LeafletDrawControl.js +127 -0
- package/dist/map/subComponent/LeafletMapContainer.js +173 -0
- package/dist/modal/StateModal.js +178 -0
- package/dist/modal/TitleModal.js +250 -0
- package/dist/package.json +55 -0
- package/dist/page/Disclaimer.js +128 -0
- package/dist/paginate/Paginate.js +137 -0
- package/dist/popover/Popover.js +91 -0
- package/dist/qrcode/QRCode.js +58 -0
- package/dist/qrcode/QRCodeContainter.js +34 -0
- package/dist/ribbon/Ribbon.js +42 -0
- package/dist/section/Section.js +133 -0
- package/dist/section/SectionBody.js +52 -0
- package/dist/section/SectionHeader.js +70 -0
- package/dist/section/SectionToolbar.js +18 -0
- package/dist/section/SectionToolbarItem.js +17 -0
- package/dist/select/InputSelect.js +270 -0
- package/dist/select/Select.js +819 -0
- package/dist/select/subComponent/Checkbox.js +48 -0
- package/dist/select/subComponent/Footer.js +13 -0
- package/dist/select/subComponent/ListBox.js +30 -0
- package/dist/select/subComponent/Option.js +45 -0
- package/dist/select/subComponent/OptionGroup.js +23 -0
- package/dist/select/subComponent/Options.js +32 -0
- package/dist/select/subComponent/SearchBox.js +58 -0
- package/dist/select/subComponent/SelectedMultipleCount.js +50 -0
- package/dist/select/subComponent/SelectedMultipleTags.js +54 -0
- package/dist/select/subComponent/SelectedMultipleText.js +70 -0
- package/dist/select/subComponent/SelectedSingle.js +17 -0
- package/dist/styles/GlobalStyle.js +356 -0
- package/dist/styles/mixin/backgroundColor.js +44 -0
- package/dist/styles/mixin/borderColor.js +44 -0
- package/dist/styles/mixin/color.js +44 -0
- package/dist/styles/mixin/colorOnBackground.js +37 -0
- package/dist/styles/mixin/inputPlaceholder.js +30 -0
- package/dist/styles/mixin/media.js +21 -0
- package/dist/styles/mixin/rounded.js +30 -0
- package/dist/styles/mixin/scrollbar.js +32 -0
- package/dist/styles/theme/dark.theme.js +99 -0
- package/dist/styles/theme/ember.theme.js +100 -0
- package/dist/styles/theme/light.theme.js +97 -0
- package/dist/styles/theme/midnight.theme.js +99 -0
- package/dist/styles/theme/white.theme.js +101 -0
- package/dist/styles/themes.js +20 -0
- package/dist/table/GridTable.js +336 -0
- package/dist/table/ImageBox.js +45 -0
- package/dist/table/InfiniteGridTable.js +403 -0
- package/dist/table/PermissionTable.js +64 -0
- package/dist/table/SimpleGridTable.js +143 -0
- package/dist/table/Table.js +568 -0
- package/dist/table/__mock__/columns.js +70 -0
- package/dist/table/subComponent/BaseTableHeadCell.js +62 -0
- package/dist/table/subComponent/GridTableFooter.js +24 -0
- package/dist/table/subComponent/GridTableHeadCell.js +20 -0
- package/dist/table/subComponent/Resizer.js +77 -0
- package/dist/table/subComponent/TableFooter.js +31 -0
- package/dist/table/subComponent/TableFooterInfo.js +13 -0
- package/dist/table/subComponent/TableFooterPager.js +33 -0
- package/dist/table/subComponent/TableHeadCell.js +19 -0
- package/dist/table/subComponent/TableSort.js +38 -0
- package/dist/tagify/TagifyStyle.js +60 -0
- package/dist/tagify/Tags.js +56 -0
- package/dist/tagify/templates/getCreateButtonTemplate.js +18 -0
- package/dist/text/Paragraph.js +86 -0
- package/dist/timeline/Timeline.js +139 -0
- package/dist/toast/CustomToastContainer.js +45 -0
- package/dist/toast/MessageContainer.js +51 -0
- package/dist/tooltip/Tooltip.js +140 -0
- package/dist/treeView/TreeViewV2.js +38 -0
- package/dist/treeView/TreeflexStyle.js +49 -0
- package/dist/wizard/Wizard.js +251 -0
- package/package.json +64 -55
- package/setupTests.js +9 -0
- package/src/Tab/Tab.js +11 -0
- package/src/Tab/TabList.js +159 -0
- package/src/Tab/TabPanel.js +35 -0
- package/src/Tab/TabTab.js +99 -0
- package/src/Tab/__stories__/Tab.stories.js +55 -0
- package/src/Tab/__stories__/TabList.stories.js +49 -0
- package/src/Tab/__stories__/TabPanel.stories.js +45 -0
- package/src/Tab/__stories__/TabTab.stories.js +30 -0
- package/src/Tab/__stories__/TabV2.stories.js +47 -0
- package/src/Tab/__test__/Tab.test.js +43 -0
- package/src/Tab/__test__/TabList.test.js +22 -0
- package/src/Tab/__test__/TabPanel.test.js +27 -0
- package/src/Tab/__test__/TabTab.test.js +58 -0
- package/src/Tab/index.js +22 -0
- package/src/Tab/subComponent/TabContext.js +5 -0
- package/src/Tab/subComponent/TabListV2.js +16 -0
- package/src/Tab/subComponent/TabPanelV2.js +38 -0
- package/src/Tab/subComponent/TabTabV2.js +47 -0
- package/src/VerticalTab/TabList.js +18 -0
- package/src/VerticalTab/TabPanel.js +38 -0
- package/src/VerticalTab/TabTab.js +54 -0
- package/src/VerticalTab/VerticalTab.js +20 -0
- package/src/VerticalTab/index.js +10 -0
- package/src/VerticalTab/subComponent/TabContext.js +5 -0
- package/src/VerticalTab/subComponent/VerticalTab.stories.js +82 -0
- package/src/alert/Alert.js +15 -0
- package/src/alert/__stories__/Alert.stories.js +18 -0
- package/src/alert/index.js +1 -0
- package/src/animate/Collapse.js +68 -0
- package/src/animate/Loader.js +36 -0
- package/src/animate/NumberCounter.js +49 -0
- package/src/animate/PulseRing.js +25 -0
- package/src/animate/Spinner.js +13 -0
- package/src/animate/__stories__/Collapse.stories.js +60 -0
- package/src/animate/__stories__/Loader.stories.js +33 -0
- package/src/animate/__stories__/NumberCounter.stories.js +29 -0
- package/src/animate/__stories__/PulseRing.stories.js +17 -0
- package/src/animate/__stories__/Spinner.stories.js +13 -0
- package/src/animate/__test__/Collapse.test.js +125 -0
- package/src/animate/__test__/Loader.test.js +42 -0
- package/src/animate/__test__/NumberCounter.test.js +71 -0
- package/src/animate/__test__/PulseRing.test.js +37 -0
- package/src/animate/__test__/Spinner.test.js +18 -0
- package/src/animate/index.js +5 -0
- package/src/assets/css/autocomplete.css +16 -0
- package/src/assets/css/font.css +4 -0
- package/src/assets/css/global.css +2 -0
- package/src/assets/font/helvetica/Helvetica.ttf +0 -0
- package/src/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
- package/src/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
- package/src/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
- package/src/assets/icons/app-management.png +0 -0
- package/src/assets/icons/burger-black.png +0 -0
- package/src/assets/icons/burger-white.png +0 -0
- package/src/assets/icons/burger.png +0 -0
- package/src/assets/icons/file.svg +1 -0
- package/src/assets/icons/map_icon1.png +0 -0
- package/src/assets/icons/map_icon4.png +0 -0
- package/src/assets/images/bg-aside.png +0 -0
- package/src/assets/images/bg-chart-circle.png +0 -0
- package/src/assets/images/bg-chart-triangle.png +0 -0
- package/src/assets/images/bg-main-vivid.png +0 -0
- package/src/assets/images/bg-main.png +0 -0
- package/src/assets/images/cashub-logo-only.png +0 -0
- package/src/assets/images/default-user.jpg +0 -0
- package/src/assets/images/logo-cashub.png +0 -0
- package/src/assets/images/map.png +0 -0
- package/src/assets/images/qrcode.png +0 -0
- package/src/backdrop/BaseBackdrop.js +13 -0
- package/src/backdrop/LoadingBackdrop.js +12 -0
- package/src/backdrop/ModalBackdrop.js +10 -0
- package/src/backdrop/__test__/BaseBackdrop.test.js +10 -0
- package/src/backdrop/__test__/LoadingBackdrop.test.js +9 -0
- package/src/backdrop/__test__/ModalBackdrop.test.js +8 -0
- package/src/backdrop/index.js +3 -0
- package/src/badge/Badge.js +21 -0
- package/src/badge/BadgeDot.js +13 -0
- package/src/badge/BadgeFill.js +29 -0
- package/src/badge/BadgeFillTriangle.js +76 -0
- package/src/badge/BadgeWithText.js +21 -0
- package/src/badge/__stories__/Badge.stories.js +47 -0
- package/src/badge/__stories__/BadgeDot.stories.js +23 -0
- package/src/badge/__stories__/BadgeFill.stories.js +29 -0
- package/src/badge/__stories__/BadgeFillTriangle.stories.js +29 -0
- package/src/badge/__stories__/BadgeWithText.stories.js +26 -0
- package/src/badge/__test__/Badge.test.js +32 -0
- package/src/badge/__test__/BadgeDot.test.js +22 -0
- package/src/badge/__test__/BadgeFill.test.js +41 -0
- package/src/badge/__test__/BadgeWithText.test.js +22 -0
- package/src/badge/index.js +5 -0
- package/src/billing/BarChart.js +42 -0
- package/src/billing/Grid.js +30 -0
- package/src/billing/Header2.js +15 -0
- package/src/billing/Header3.js +32 -0
- package/src/billing/Paragraph.js +27 -0
- package/src/billing/ParagraphGroup.js +12 -0
- package/src/billing/ParagraphText.js +16 -0
- package/src/billing/Section.js +48 -0
- package/src/billing/SectionBody.js +7 -0
- package/src/billing/SectionHeader.js +16 -0
- package/src/billing/__stories__/BarChart.stories.js_bak +46 -0
- package/src/billing/__stories__/Grid.stories.js_bak +57 -0
- package/src/billing/__stories__/Header2.stories.js_bak +62 -0
- package/src/billing/__stories__/Header3.stories.js_bak +69 -0
- package/src/billing/__stories__/Paragraph.stories.js_bak +84 -0
- package/src/billing/__stories__/ParagraphGroup.stories.js_bak +68 -0
- package/src/billing/__stories__/ParagraphText.stories.js_bak +64 -0
- package/src/billing/__stories__/Section.stories.js_bak +115 -0
- package/src/billing/__stories__/SectionBody.stories.js_bak +62 -0
- package/src/billing/__stories__/SectionHeader.stories.js-bak +68 -0
- package/src/breadcrumb/Breadcrumb.js +66 -0
- package/src/breadcrumb/__stories__/Breadcrumb.stories.js +31 -0
- package/src/breadcrumb/__test__/breadcrumb.test.js +27 -0
- package/src/breadcrumb/index.js +1 -0
- package/src/button/Button.js +110 -0
- package/src/button/ButtonGroup.js +33 -0
- package/src/button/IconButton.js +35 -0
- package/src/button/ScrollToTopButton.js +48 -0
- package/src/button/__stories__/Button.stories.js +104 -0
- package/src/button/__stories__/ButtonGroup.stories.js +48 -0
- package/src/button/__stories__/IconButton.stories.js +30 -0
- package/src/button/__stories__/ScrollToTopButton.stories.js +22 -0
- package/src/button/__test__/Button.test.js +32 -0
- package/src/button/__test__/ButtonGroup.test.js +25 -0
- package/src/button/__test__/IconButton.test.js +34 -0
- package/src/button/__test__/ScrollToTopButton.test.js +19 -0
- package/src/button/index.js +4 -0
- package/src/callout/Callout.js +52 -0
- package/src/callout/__stories__/Callout.stories.js +23 -0
- package/src/callout/__test__/Callout.test.js +29 -0
- package/src/callout/index.js +1 -0
- package/src/chart/BarChart.js +158 -0
- package/src/chart/DoughnutChart.js +118 -0
- package/src/chart/LineChart.js +151 -0
- package/src/chart/SingleBarChart.js +27 -0
- package/src/chart/__stories__/BarChart.stories.js +56 -0
- package/src/chart/__stories__/DoughnutChart.stories.js +63 -0
- package/src/chart/__stories__/LineChart.stories.js +75 -0
- package/src/chart/__stories__/SingleBarChart.stories.js +22 -0
- package/src/chart/index.js +5 -0
- package/src/chart/utils/centerTextPlugin.js +51 -0
- package/src/chart/utils/customTooltip.js +116 -0
- package/src/chart/utils/htmlLegendPlugin.js +98 -0
- package/src/chart/utils/index.js +3 -0
- package/src/chart/utils/padEmptyChartBar.js +41 -0
- package/src/chart/utils/yAxisTopTitlePlugin.js +38 -0
- package/src/container/FlexContainer.js +15 -0
- package/src/container/__stories__/FlexContainer.stories.js +39 -0
- package/src/container/__test__/FlexContainer.test.js +21 -0
- package/src/container/index.js +1 -0
- package/src/cropper/Cropper.js +49 -0
- package/src/cropper/CropperModalHandler.js +36 -0
- package/src/cropper/__stories__/Cropper.stories.js +32 -0
- package/src/cropper/__test__/Cropper.test.js +90 -0
- package/src/cropper/index.js +2 -0
- package/src/cropper/subComponent/CropImageModal.js +84 -0
- package/src/datetimePicker/DatePicker.js +493 -0
- package/src/datetimePicker/DatePickerV2.js +500 -0
- package/src/datetimePicker/DatetimePicker.js +235 -0
- package/src/datetimePicker/DatetimePickerV2.js +512 -0
- package/src/datetimePicker/DatetimePickerV3.js +292 -0
- package/src/datetimePicker/TimeInput.js +45 -0
- package/src/datetimePicker/TimePicker.js +318 -0
- package/src/datetimePicker/TimePickerStyle.js +59 -0
- package/src/datetimePicker/TimePickerV2.js +222 -0
- package/src/datetimePicker/__stories__/DatePicker.stories.js +51 -0
- package/src/datetimePicker/__stories__/DatePickerV2.stories.js +73 -0
- package/src/datetimePicker/__stories__/DatetimePicker.stories.js +74 -0
- package/src/datetimePicker/__stories__/DatetimePickerV2.stories.js +91 -0
- package/src/datetimePicker/__stories__/DatetimePickerV3.stories.js +80 -0
- package/src/datetimePicker/__stories__/TimeInput.stories.js +67 -0
- package/src/datetimePicker/__stories__/TimePicker.stories.js +29 -0
- package/src/datetimePicker/__stories__/TimePickerV2.stories.js +22 -0
- package/src/datetimePicker/__test__/CustomTimeInput.test.js +25 -0
- package/src/datetimePicker/__test__/DatetimePicker.test.js +121 -0
- package/src/datetimePicker/__test__/TimeInput.test.js +22 -0
- package/src/datetimePicker/accordion/Month.js +258 -0
- package/src/datetimePicker/accordion/Year.js +307 -0
- package/src/datetimePicker/hooks/index.js +3 -0
- package/src/datetimePicker/hooks/useChangeNumber.js +42 -0
- package/src/datetimePicker/hooks/useDecrease.js +31 -0
- package/src/datetimePicker/hooks/useIncrease.js +31 -0
- package/src/datetimePicker/index.js +9 -0
- package/src/datetimePicker/provider/constant.js +16 -0
- package/src/datetimePicker/subComponent/Accordion.js +407 -0
- package/src/datetimePicker/subComponent/CustomTimeInput.js +48 -0
- package/src/datetimePicker/subComponent/DateTimePickerContext.js +5 -0
- package/src/datetimePicker/utils/GMTDate.js +13 -0
- package/src/datetimePicker/utils/pad.js +9 -0
- package/src/datetimePicker/utils/toUTC0.js +10 -0
- package/src/descriptionList/DescriptionDetail.js +18 -0
- package/src/descriptionList/DescriptionList.js +15 -0
- package/src/descriptionList/DescriptionTerm.js +9 -0
- package/src/descriptionList/__stories__/DescriptionDetail.stories.js +39 -0
- package/src/descriptionList/__stories__/DescriptionList.stories.js +39 -0
- package/src/descriptionList/__stories__/DescriptionTerm.stories.js +13 -0
- package/src/descriptionList/__test__/DescriptionDetail.test.js +13 -0
- package/src/descriptionList/__test__/DescriptionList.test.js +12 -0
- package/src/descriptionList/__test__/DescriptionTerm.test.js +7 -0
- package/src/descriptionList/index.js +3 -0
- package/src/divider/Divider.js +21 -0
- package/src/divider/__stories__/Divider.stories.js +23 -0
- package/src/divider/__test__/Divider.test.js +24 -0
- package/src/divider/index.js +1 -0
- package/src/dropdown/Dropdown.js +50 -0
- package/src/dropdown/DropdownButtonOption.js +25 -0
- package/src/dropdown/DropdownContent.js +78 -0
- package/src/dropdown/DropdownDivOption.js +21 -0
- package/src/dropdown/DropdownItem.js +17 -0
- package/src/dropdown/DropdownLinkOption.js +19 -0
- package/src/dropdown/DropdownToggle.js +26 -0
- package/src/dropdown/__stories__/Dropdown.stories.js +46 -0
- package/src/dropdown/__stories__/DropdownButtonOption.stories.js +33 -0
- package/src/dropdown/__stories__/DropdownContent.stories.js +34 -0
- package/src/dropdown/__stories__/DropdownDivOption.stories.js +27 -0
- package/src/dropdown/__stories__/DropdownItem.stories.js +48 -0
- package/src/dropdown/__stories__/DropdownLinkOption.stories.js +63 -0
- package/src/dropdown/__stories__/DropdownToggle.stories.js +40 -0
- package/src/dropdown/__test__/Dropdown.test.js +132 -0
- package/src/dropdown/__test__/DropdownButtonOption.test.js +8 -0
- package/src/dropdown/__test__/DropdownContent.test.js +85 -0
- package/src/dropdown/__test__/DropdownDivOption.test.js +8 -0
- package/src/dropdown/__test__/DropdownItem.test.js +55 -0
- package/src/dropdown/__test__/DropdownLinkOption.test.js +14 -0
- package/src/dropdown/__test__/DropdownToggle.test.js +53 -0
- package/src/dropdown/index.js +12 -0
- package/src/dropdown/subComponent/DropdownContext.js +5 -0
- package/src/dropzone/FileDropzone.js +541 -0
- package/src/dropzone/ImageDropzone.js +365 -0
- package/src/dropzone/__stories__/FileDropzone.stories.js +148 -0
- package/src/dropzone/__stories__/ImageDropzone.stories.js +101 -0
- package/src/dropzone/__test__/FileDropzone.test.js +382 -0
- package/src/dropzone/__test__/ImageDropzone.test.js +290 -0
- package/src/dropzone/__test__/Message.test.js +14 -0
- package/src/dropzone/index.js +2 -0
- package/src/dropzone/subComponent/Message.js +16 -0
- package/src/figure/IconFigure.js +31 -0
- package/src/figure/ImageFigure.js +25 -0
- package/src/figure/__stories__/IconFigure.stories.js +25 -0
- package/src/figure/__stories__/ImageFigure.stories.js +26 -0
- package/src/figure/__test__/IconFigure.test.js +28 -0
- package/src/figure/__test__/ImageFigure.test.js +38 -0
- package/src/figure/index.js +2 -0
- package/src/file/HiddenFileInput.js +10 -0
- package/src/file/index.js +1 -0
- package/src/form/Checkbox.js +138 -0
- package/src/form/Fieldset.js +13 -0
- package/src/form/FormItem.js +12 -0
- package/src/form/Input.js +42 -0
- package/src/form/Label.js +35 -0
- package/src/form/MutedText.js +11 -0
- package/src/form/PasswordInput.js +40 -0
- package/src/form/RadioButton.js +82 -0
- package/src/form/SearchSelect.js +198 -0
- package/src/form/Searchbox.js +95 -0
- package/src/form/Slider.js +34 -0
- package/src/form/SwitchButton.js +86 -0
- package/src/form/Textarea.js +36 -0
- package/src/form/TreeView.js +77 -0
- package/src/form/__stories__/Checkbox.stories.js +87 -0
- package/src/form/__stories__/FormItem.stories.js +33 -0
- package/src/form/__stories__/Input.stories.js +30 -0
- package/src/form/__stories__/Label.stories.js +38 -0
- package/src/form/__stories__/MutedText.stories.js +27 -0
- package/src/form/__stories__/PasswordInput.stories.js +16 -0
- package/src/form/__stories__/RadioButton.stories.js +48 -0
- package/src/form/__stories__/SearchSelect.stories.js +99 -0
- package/src/form/__stories__/Searchbox.stories.js +24 -0
- package/src/form/__stories__/Slider.stories.js +46 -0
- package/src/form/__stories__/SwitchButton.stories.js +48 -0
- package/src/form/__stories__/Textarea.stories.js +19 -0
- package/src/form/__stories__/TreeView.stories.js +76 -0
- package/src/form/__test__/Checkbox.test.js +68 -0
- package/src/form/__test__/FormItem.test.js +8 -0
- package/src/form/__test__/Input.test.js +28 -0
- package/src/form/__test__/Label.test.js +33 -0
- package/src/form/__test__/MutedText.test.js +18 -0
- package/src/form/__test__/RadioButton.test.js +57 -0
- package/src/form/__test__/Searchbox.test.js +50 -0
- package/src/form/__test__/Textarea.test.js +25 -0
- package/src/form/index.js +14 -0
- package/src/grid/Column.js +36 -0
- package/src/grid/Grid.js +15 -0
- package/src/grid/__stories__/Grid.stories.js +38 -0
- package/src/grid/__test__/Grid.test.js +44 -0
- package/src/grid/index.js +2 -0
- package/src/heading/Heading1.js +11 -0
- package/src/heading/Heading2.js +13 -0
- package/src/heading/Heading3.js +21 -0
- package/src/heading/__stories__/Heading1.stories.js +24 -0
- package/src/heading/__stories__/Heading2.stories.js +24 -0
- package/src/heading/__stories__/Heading3.stories.js +24 -0
- package/src/heading/__test__/Heading1.test.js +21 -0
- package/src/heading/__test__/Heading2.test.js +34 -0
- package/src/heading/__test__/Heading3.test.js +46 -0
- package/src/heading/index.js +3 -0
- package/src/helmet/Helmet.js +12 -0
- package/src/helmet/__test__/Helmet.test.js +38 -0
- package/src/helmet/index.js +2 -0
- package/src/icon/assets/android.jsx +10 -0
- package/src/icon/assets/app-management.jsx +10 -0
- package/src/icon/assets/appStore.jsx +6 -0
- package/src/icon/assets/battery.jsx +15 -0
- package/src/icon/assets/bill.jsx +10 -0
- package/src/icon/assets/campaign.jsx +9 -0
- package/src/icon/assets/casstore.jsx +8 -0
- package/src/icon/assets/dashboard.jsx +6 -0
- package/src/icon/assets/enterprise.jsx +15 -0
- package/src/icon/assets/firmware.jsx +8 -0
- package/src/icon/assets/folder.jsx +8 -0
- package/src/icon/assets/group.jsx +18 -0
- package/src/icon/assets/heartbeats.jsx +9 -0
- package/src/icon/assets/invite-user.jsx +9 -0
- package/src/icon/assets/log.jsx +9 -0
- package/src/icon/assets/manufacturer.jsx +7 -0
- package/src/icon/assets/merchant.jsx +16 -0
- package/src/icon/assets/package-collection.jsx +8 -0
- package/src/icon/assets/report.jsx +11 -0
- package/src/icon/assets/resource.jsx +9 -0
- package/src/icon/assets/role.jsx +7 -0
- package/src/icon/assets/shield-lock.jsx +202 -0
- package/src/icon/assets/shield-no-signal.jsx +195 -0
- package/src/icon/assets/shield-unsafe.jsx +191 -0
- package/src/icon/assets/shield.jsx +186 -0
- package/src/icon/assets/statistics.jsx +9 -0
- package/src/icon/assets/tag.jsx +14 -0
- package/src/icon/assets/template-management.jsx +8 -0
- package/src/icon/assets/terminal.jsx +7 -0
- package/src/icon/assets/tradeye.jsx +7 -0
- package/src/icon/registry.js +65 -0
- package/src/iconbox/ApplicationIconBox.js +62 -0
- package/src/iconbox/IconBox.js +85 -0
- package/src/iconbox/IconBoxV2.js +61 -0
- package/src/iconbox/__stories__/ApplicationIconBox.stories.js +53 -0
- package/src/iconbox/__stories__/IconBox.stories.js +34 -0
- package/src/iconbox/__stories__/IconBoxFigure.stories.js +67 -0
- package/src/iconbox/__stories__/IconBoxFigure.stories_V2.stories.js +41 -0
- package/src/iconbox/__stories__/IconBoxImage.stories.js +32 -0
- package/src/iconbox/__stories__/IconBoxV2.stories.js +66 -0
- package/src/iconbox/__test__/ApplicationIconBox.test.js +77 -0
- package/src/iconbox/__test__/IconBox.test.js +22 -0
- package/src/iconbox/__test__/IconBoxFigure.test.js +37 -0
- package/src/iconbox/__test__/IconBoxImage.test.js +32 -0
- package/src/iconbox/__test__/IconBoxV2.test.js +51 -0
- package/src/iconbox/assets/bg-enterprise.png +0 -0
- package/src/iconbox/assets/bg-merchant.png +0 -0
- package/src/iconbox/assets/bg-terminal.png +0 -0
- package/src/iconbox/assets/bg-user.png +0 -0
- package/src/iconbox/bgImageRegistry.js +13 -0
- package/src/iconbox/index.js +3 -0
- package/src/iconbox/subComponent/IconBoxFigure.js +16 -0
- package/src/iconbox/subComponent/IconBoxImage.js +52 -0
- package/src/image/ImageFluid.js +12 -0
- package/src/image/UploadImage.js +287 -0
- package/src/image/__stories__/ImageFluid.stories.js +25 -0
- package/src/image/__stories__/UploadImage.stories.js +56 -0
- package/src/image/__test__/ImageFluid.test.js +44 -0
- package/src/image/__test__/UploadImage.test.js +315 -0
- package/src/image/index.js +2 -0
- package/src/index.js +49 -0
- package/src/jsoneditor/JsonEditor.js +132 -0
- package/src/jsoneditor/__stories__/JsonEditor.stories.js +55 -0
- package/src/jsoneditor/__test__/JsonEditor.test.js +52 -0
- package/src/jsoneditor/index.js +1 -0
- package/src/keyframe/Pulse.js +17 -0
- package/src/keyframe/Spin.js +9 -0
- package/src/layout/Aside.js +47 -0
- package/src/layout/AsideHeader.jsx +27 -0
- package/src/layout/Backdrop.js +13 -0
- package/src/layout/Container.js +48 -0
- package/src/layout/Footer.js +32 -0
- package/src/layout/Header.jsx +48 -0
- package/src/layout/Layout.jsx +69 -0
- package/src/layout/Logo.jsx +17 -0
- package/src/layout/MenuIcon.jsx +45 -0
- package/src/layout/Sidebar.jsx +261 -0
- package/src/layout/assets/burger-modern.jsx +9 -0
- package/src/layout/bgMainRegistry.js +9 -0
- package/src/layout/index.js +1 -0
- package/src/link/LinkSpan.js +44 -0
- package/src/link/__stories__/LinkSpan.stories.js +27 -0
- package/src/link/__test__/LinkSpan.test.js +52 -0
- package/src/link/index.js +1 -0
- package/src/map/GoogleMap.js +489 -0
- package/src/map/GoogleReverseGeolocation.js +197 -0
- package/src/map/LeafletMap.js +264 -0
- package/src/map/LeafletReverseGeolocation.js +89 -0
- package/src/map/__stories__/GoogleMap.stories.js +139 -0
- package/src/map/__stories__/GoogleReverseGeolocation.stories.js +95 -0
- package/src/map/__stories__/LeafletMap.stories.js +136 -0
- package/src/map/__stories__/LeafletReverseGeolocation.stories.js +91 -0
- package/src/map/__test__/LeafletReverseGeolocation.test.js +245 -0
- package/src/map/__test__/MapSearchBoxControl.test.js +89 -0
- package/src/map/index.js +4 -0
- package/src/map/subComponent/BasicLeafletMap.js +33 -0
- package/src/map/subComponent/GoogleMapContainer.js +19 -0
- package/src/map/subComponent/GoogleMapPopup.js +115 -0
- package/src/map/subComponent/GoogleMapWrapper.js +27 -0
- package/src/map/subComponent/LeafletDrawControl.js +133 -0
- package/src/map/subComponent/LeafletMapContainer.js +163 -0
- package/src/map/subComponent/MapSearchBoxControl.js +43 -0
- package/src/modal/StateModal.js +182 -0
- package/src/modal/TitleModal.js +244 -0
- package/src/modal/__stories__/StateModal.stories.js +119 -0
- package/src/modal/__stories__/TitleModal.stories.js +56 -0
- package/src/modal/__test__/StateModal.test.js +144 -0
- package/src/modal/index.js +2 -0
- package/src/page/Disclaimer.js +123 -0
- package/src/page/index.js +1 -0
- package/src/paginate/Paginate.js +132 -0
- package/src/paginate/__stories__/Paginate.stories.js +49 -0
- package/src/paginate/__test__/Paginate.test.js +124 -0
- package/src/paginate/index.js +1 -0
- package/src/popover/Popover.js +82 -0
- package/src/popover/__stories__/Popover.stories.js +44 -0
- package/src/popover/index.js +1 -0
- package/src/qrcode/QRCode.js +54 -0
- package/src/qrcode/QRCodeContainter.js +25 -0
- package/src/qrcode/__stories__/QRCode.stories.js +36 -0
- package/src/qrcode/__stories__/QRCodeContainter.stories.js +28 -0
- package/src/qrcode/index.js +2 -0
- package/src/ribbon/Ribbon.js +38 -0
- package/src/ribbon/__stories__/Ribbon.stories.js +25 -0
- package/src/ribbon/index.js +1 -0
- package/src/section/Section.js +66 -0
- package/src/section/SectionBody.js +34 -0
- package/src/section/SectionHeader.js +41 -0
- package/src/section/SectionToolbar.js +13 -0
- package/src/section/SectionToolbarItem.js +12 -0
- package/src/section/__stories__/Section.stories.js +52 -0
- package/src/section/__stories__/SectionBody.stories.js +40 -0
- package/src/section/__stories__/SectionHeader.stories.js +67 -0
- package/src/section/__stories__/SectionToolbar.stories.js +43 -0
- package/src/section/__test__/Section.test.js +98 -0
- package/src/section/__test__/SectionBody.test.js +89 -0
- package/src/section/__test__/SectionHeader.test.js +35 -0
- package/src/section/__test__/SectionToolbar.test.js +17 -0
- package/src/section/index.js +5 -0
- package/src/select/InputSelect.js +314 -0
- package/src/select/Select.js +935 -0
- package/src/select/__stories__/InputSelect.stories.js +60 -0
- package/src/select/__stories__/Select.stories.js +236 -0
- package/src/select/__test__/Select.test.js +219 -0
- package/src/select/index.js +2 -0
- package/src/select/subComponent/Checkbox.js +33 -0
- package/src/select/subComponent/Footer.js +8 -0
- package/src/select/subComponent/ListBox.js +15 -0
- package/src/select/subComponent/Option.js +30 -0
- package/src/select/subComponent/OptionGroup.js +18 -0
- package/src/select/subComponent/Options.js +24 -0
- package/src/select/subComponent/SearchBox.js +53 -0
- package/src/select/subComponent/SelectedMultipleCount.js +42 -0
- package/src/select/subComponent/SelectedMultipleTags.js +41 -0
- package/src/select/subComponent/SelectedMultipleText.js +61 -0
- package/src/select/subComponent/SelectedSingle.js +12 -0
- package/src/styles/GlobalStyle.js +110 -0
- package/src/styles/config/breakpoint.style.js +8 -0
- package/src/styles/config/header.style.js +5 -0
- package/src/styles/config/sidebar.style.js +12 -0
- package/src/styles/index.js +2 -0
- package/src/styles/mixin/backgroundColor.js +15 -0
- package/src/styles/mixin/borderColor.js +15 -0
- package/src/styles/mixin/color.js +15 -0
- package/src/styles/mixin/colorOnBackground.js +13 -0
- package/src/styles/mixin/inputPlaceholder.js +26 -0
- package/src/styles/mixin/media.js +14 -0
- package/src/styles/mixin/rounded.js +12 -0
- package/src/styles/mixin/scrollbar.js +26 -0
- package/src/styles/theme/dark.theme.js +101 -0
- package/src/styles/theme/ember.theme.js +94 -0
- package/src/styles/theme/light.theme.js +99 -0
- package/src/styles/theme/midnight.theme.js +93 -0
- package/src/styles/theme/white.theme.js +103 -0
- package/src/styles/themes.js +15 -0
- package/src/table/GridTable.js +333 -0
- package/src/table/ImageBox.js +37 -0
- package/src/table/InfiniteGridTable.js +424 -0
- package/src/table/PermissionTable.js +36 -0
- package/src/table/SimpleGridTable.js +135 -0
- package/src/table/Table.js +553 -0
- package/src/table/__mock__/columns.js +67 -0
- package/src/table/__mock__/data.js +456 -0
- package/src/table/__stories__/GridTable.stories.js +129 -0
- package/src/table/__stories__/ImageBox.stories.js +27 -0
- package/src/table/__stories__/InfiniteGridTable.stories.js +120 -0
- package/src/table/__stories__/PermissionTable.stories.js +52 -0
- package/src/table/__stories__/SimpleGridTable.stories.js +58 -0
- package/src/table/__stories__/Table.stories.js +158 -0
- package/src/table/hooks/index.js +2 -0
- package/src/table/hooks/useCalculateDataRange.js +26 -0
- package/src/table/hooks/useGenerateSort.js +37 -0
- package/src/table/index.js +6 -0
- package/src/table/subComponent/BaseTableHeadCell.js +48 -0
- package/src/table/subComponent/GridTableFooter.js +18 -0
- package/src/table/subComponent/GridTableHeadCell.js +14 -0
- package/src/table/subComponent/Resizer.js +81 -0
- package/src/table/subComponent/TableFooter.js +19 -0
- package/src/table/subComponent/TableFooterInfo.js +8 -0
- package/src/table/subComponent/TableFooterPager.js +26 -0
- package/src/table/subComponent/TableHeadCell.js +14 -0
- package/src/table/subComponent/TableSort.js +25 -0
- package/src/tagify/TagifyStyle.js +55 -0
- package/src/tagify/Tags.js +49 -0
- package/src/tagify/__stories__/Tags.stories.js +59 -0
- package/src/tagify/index.js +3 -0
- package/src/tagify/templates/getCreateButtonTemplate.js +12 -0
- package/src/text/Paragraph.js +52 -0
- package/src/text/__stories__/Paragraph.stories.js +40 -0
- package/src/text/index.js +1 -0
- package/src/timeline/Timeline.js +106 -0
- package/src/timeline/__stories__/Timeline.stories.js +55 -0
- package/src/timeline/index.js +1 -0
- package/src/toast/CustomToastContainer.js +40 -0
- package/src/toast/MessageContainer.js +40 -0
- package/src/toast/__stories__/MessageContainer.stories.js +47 -0
- package/src/toast/index.js +3 -0
- package/src/toast/show.js +39 -0
- package/src/toast/style.css +1 -0
- package/src/tooltip/Tooltip.js +149 -0
- package/src/tooltip/__stories__/Tooltip.stories.js +72 -0
- package/src/tooltip/__test__/tooltip.test.js +130 -0
- package/src/tooltip/index.js +1 -0
- package/src/treeView/TreeViewV2.js +33 -0
- package/src/treeView/TreeflexStyle.js +44 -0
- package/src/treeView/index.js +2 -0
- package/src/wizard/Wizard.js +276 -0
- package/src/wizard/__stories__/Wizard.stories.js +81 -0
- package/src/wizard/__test__/Wizard.test.js +173 -0
- package/src/wizard/index.js +1 -0
- package/src/xmleditor/XmlEditor.js +25 -0
- package/src/xmleditor/index.js +1 -0
- package/transformer/fileTransformer.js +9 -0
- package/Tab/TabList.js +0 -155
- package/Tab/TabPanel.js +0 -56
- package/Tab/TabTab.js +0 -93
- package/Tab/index.js +0 -33
- package/Tab/subComponent/TabListV2.js +0 -32
- package/Tab/subComponent/TabPanelV2.js +0 -56
- package/Tab/subComponent/TabTabV2.js +0 -51
- package/VerticalTab/TabList.js +0 -32
- package/VerticalTab/TabPanel.js +0 -56
- package/VerticalTab/TabTab.js +0 -51
- package/VerticalTab/VerticalTab.js +0 -37
- package/alert/Alert.js +0 -22
- package/animate/Collapse.js +0 -73
- package/animate/Loader.js +0 -47
- package/animate/PulseRing.js +0 -22
- package/animate/Spinner.js +0 -13
- package/assets/images/bg-aside.png +0 -0
- package/backdrop/BaseBackdrop.js +0 -12
- package/backdrop/LoadingBackdrop.js +0 -13
- package/backdrop/ModalBackdrop.js +0 -13
- package/badge/Badge.js +0 -14
- package/badge/BadgeDot.js +0 -13
- package/badge/BadgeFill.js +0 -31
- package/badge/BadgeFillTriangle.js +0 -110
- package/badge/BadgeWithText.js +0 -21
- package/billing/BarChart.js +0 -51
- package/breadcrumb/Breadcrumb.js +0 -39
- package/button/Button.js +0 -74
- package/button/ButtonGroup.js +0 -37
- package/button/IconButton.js +0 -45
- package/button/ScrollToTopButton.js +0 -46
- package/callout/Callout.js +0 -23
- package/chart/BarChart.js +0 -156
- package/chart/DoughnutChart.js +0 -104
- package/chart/LineChart.js +0 -154
- package/chart/SingleBarChart.js +0 -25
- package/chart/utils/centerTextPlugin.js +0 -62
- package/chart/utils/customTooltip.js +0 -94
- package/chart/utils/htmlLegendPlugin.js +0 -89
- package/chart/utils/yAxisTopTitlePlugin.js +0 -49
- package/container/FlexContainer.js +0 -32
- package/cropper/Cropper.js +0 -55
- package/datetimePicker/DatePicker.js +0 -309
- package/datetimePicker/DatePickerV2.js +0 -348
- package/datetimePicker/DatetimePicker.js +0 -77
- package/datetimePicker/DatetimePickerV2.js +0 -341
- package/datetimePicker/DatetimePickerV3.js +0 -116
- package/datetimePicker/TimeInput.js +0 -31
- package/datetimePicker/TimePicker.js +0 -262
- package/datetimePicker/TimePickerStyle.js +0 -14
- package/datetimePicker/TimePickerV2.js +0 -175
- package/datetimePicker/accordion/Month.js +0 -177
- package/datetimePicker/accordion/Year.js +0 -206
- package/datetimePicker/hooks/useChangeNumber.js +0 -45
- package/datetimePicker/hooks/useDecrease.js +0 -41
- package/datetimePicker/hooks/useIncrease.js +0 -41
- package/datetimePicker/subComponent/Accordion.js +0 -292
- package/descriptionList/DescriptionDetail.js +0 -17
- package/descriptionList/DescriptionList.js +0 -17
- package/descriptionList/DescriptionTerm.js +0 -12
- package/divider/Divider.js +0 -22
- package/dropdown/DropdownButtonOption.js +0 -27
- package/dropdown/DropdownContent.js +0 -76
- package/dropdown/DropdownDivOption.js +0 -12
- package/dropdown/DropdownLinkOption.js +0 -13
- package/dropdown/DropdownToggle.js +0 -46
- package/dropzone/FileDropzone.js +0 -380
- package/dropzone/ImageDropzone.js +0 -265
- package/dropzone/subComponent/Message.js +0 -19
- package/figure/IconFigure.js +0 -33
- package/figure/ImageFigure.js +0 -25
- package/file/HiddenFileInput.js +0 -15
- package/form/Checkbox.js +0 -101
- package/form/Fieldset.js +0 -12
- package/form/FormItem.js +0 -17
- package/form/Input.js +0 -33
- package/form/Label.js +0 -37
- package/form/MutedText.js +0 -17
- package/form/PasswordInput.js +0 -40
- package/form/RadioButton.js +0 -56
- package/form/SearchSelect.js +0 -129
- package/form/Searchbox.js +0 -72
- package/form/Slider.js +0 -28
- package/form/SwitchButton.js +0 -71
- package/form/Textarea.js +0 -14
- package/form/TreeView.js +0 -66
- package/grid/Column.js +0 -33
- package/grid/Grid.js +0 -27
- package/heading/Heading1.js +0 -17
- package/heading/Heading2.js +0 -22
- package/heading/Heading3.js +0 -37
- package/iconbox/ApplicationIconBox.js +0 -45
- package/iconbox/IconBox.js +0 -43
- package/iconbox/IconBoxV2.js +0 -37
- package/iconbox/subComponent/IconBoxFigure.js +0 -42
- package/iconbox/subComponent/IconBoxImage.js +0 -29
- package/image/ImageFluid.js +0 -13
- package/image/UploadImage.js +0 -202
- package/jsoneditor/JsonEditor.js +0 -36
- package/keyframe/Pulse.js +0 -11
- package/keyframe/Spin.js +0 -11
- package/layout/Aside.js +0 -23
- package/layout/Backdrop.js +0 -19
- package/layout/Container.js +0 -23
- package/layout/Footer.js +0 -26
- package/layout/Header.jsx +0 -55
- package/layout/Layout.jsx +0 -84
- package/layout/Logo.jsx +0 -17
- package/layout/MenuIcon.jsx +0 -27
- package/layout/Sidebar.jsx +0 -271
- package/link/LinkSpan.js +0 -51
- package/map/GoogleMap.js +0 -452
- package/map/GoogleReverseGeolocation.js +0 -197
- package/map/LeafletMap.js +0 -231
- package/map/subComponent/GoogleMapContainer.js +0 -17
- package/map/subComponent/GoogleMapPopup.js +0 -112
- package/map/subComponent/GoogleMapWrapper.js +0 -47
- package/map/subComponent/LeafletDrawControl.js +0 -125
- package/map/subComponent/LeafletMapContainer.js +0 -18
- package/modal/StateModal.js +0 -154
- package/modal/TitleModal.js +0 -209
- package/page/Disclaimer.js +0 -12
- package/paginate/Paginate.js +0 -95
- package/popover/Popover.js +0 -86
- package/qrcode/QRCode.js +0 -44
- package/qrcode/QRCodeContainter.js +0 -26
- package/ribbon/Ribbon.js +0 -17
- package/section/Section.js +0 -85
- package/section/SectionBody.js +0 -31
- package/section/SectionHeader.js +0 -45
- package/section/SectionToolbar.js +0 -12
- package/section/SectionToolbarItem.js +0 -12
- package/select/InputSelect.js +0 -277
- package/select/Select.js +0 -746
- package/select/subComponent/Checkbox.js +0 -29
- package/select/subComponent/Footer.js +0 -12
- package/select/subComponent/ListBox.js +0 -23
- package/select/subComponent/Option.js +0 -25
- package/select/subComponent/OptionGroup.js +0 -13
- package/select/subComponent/Options.js +0 -19
- package/select/subComponent/SearchBox.js +0 -36
- package/select/subComponent/SelectedMultipleCount.js +0 -25
- package/select/subComponent/SelectedMultipleTags.js +0 -34
- package/select/subComponent/SelectedMultipleText.js +0 -54
- package/select/subComponent/SelectedSingle.js +0 -13
- package/styles/GlobalStyle.js +0 -223
- package/styles/mixin/backgroundColor.js +0 -36
- package/styles/mixin/borderColor.js +0 -36
- package/styles/mixin/color.js +0 -36
- package/styles/mixin/colorOnBackground.js +0 -31
- package/styles/mixin/inputPlaceholder.js +0 -13
- package/styles/mixin/media.js +0 -19
- package/styles/mixin/rounded.js +0 -26
- package/styles/mixin/scrollbar.js +0 -22
- package/styles/theme/dark.theme.js +0 -96
- package/styles/theme/light.theme.js +0 -96
- package/styles/theme/white.theme.js +0 -96
- package/styles/themes.js +0 -16
- package/table/GridTable.js +0 -298
- package/table/ImageBox.js +0 -35
- package/table/InfiniteGridTable.js +0 -357
- package/table/PermissionTable.js +0 -42
- package/table/SimpleGridTable.js +0 -108
- package/table/Table.js +0 -418
- package/table/__mock__/columns.js +0 -70
- package/table/subComponent/BaseTableHeadCell.js +0 -33
- package/table/subComponent/GridTableFooter.js +0 -18
- package/table/subComponent/GridTableHeadCell.js +0 -18
- package/table/subComponent/Resizer.js +0 -62
- package/table/subComponent/TableFooter.js +0 -22
- package/table/subComponent/TableFooterInfo.js +0 -12
- package/table/subComponent/TableFooterPager.js +0 -20
- package/table/subComponent/TableHeadCell.js +0 -13
- package/table/subComponent/TableSort.js +0 -28
- package/tagify/TagifyStyle.js +0 -14
- package/tagify/Tags.js +0 -40
- package/tagify/templates/getCreateButtonTemplate.js +0 -15
- package/text/Paragraph.js +0 -48
- package/timeline/Timeline.js +0 -62
- package/toast/CustomToastContainer.js +0 -13
- package/toast/MessageContainer.js +0 -33
- package/tooltip/Tooltip.js +0 -111
- package/treeView/TreeViewV2.js +0 -38
- package/treeView/TreeflexStyle.js +0 -14
- package/wizard/Wizard.js +0 -142
- /package/{Tab → dist/Tab}/Tab.js +0 -0
- /package/{Tab → dist/Tab}/subComponent/TabContext.js +0 -0
- /package/{VerticalTab → dist/VerticalTab}/index.js +0 -0
- /package/{VerticalTab → dist/VerticalTab}/subComponent/TabContext.js +0 -0
- /package/{alert → dist/alert}/index.js +0 -0
- /package/{animate → dist/animate}/NumberCounter.js +0 -0
- /package/{animate → dist/animate}/index.js +0 -0
- /package/{assets → dist/assets}/css/autocomplete.css +0 -0
- /package/{assets → dist/assets}/css/font.css +0 -0
- /package/{assets → dist/assets}/css/global.css +0 -0
- /package/{assets → dist/assets}/font/helvetica/Helvetica.ttf +0 -0
- /package/{assets → dist/assets}/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
- /package/{assets → dist/assets}/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
- /package/{assets → dist/assets}/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
- /package/{assets → dist/assets}/icons/app-management.png +0 -0
- /package/{assets → dist/assets}/icons/burger-black.png +0 -0
- /package/{assets → dist/assets}/icons/burger-white.png +0 -0
- /package/{assets → dist/assets}/icons/burger.png +0 -0
- /package/{assets → dist/assets}/icons/file.svg +0 -0
- /package/{assets → dist/assets}/icons/map_icon1.png +0 -0
- /package/{assets → dist/assets}/icons/map_icon4.png +0 -0
- /package/{assets → dist/assets}/images/bg-chart-circle.png +0 -0
- /package/{assets → dist/assets}/images/bg-chart-triangle.png +0 -0
- /package/{assets → dist/assets}/images/cashub-logo-only.png +0 -0
- /package/{assets → dist/assets}/images/default-user.jpg +0 -0
- /package/{assets → dist/assets}/images/logo-cashub.png +0 -0
- /package/{assets → dist/assets}/images/map.png +0 -0
- /package/{assets → dist/assets}/images/qrcode.png +0 -0
- /package/{backdrop → dist/backdrop}/index.js +0 -0
- /package/{badge → dist/badge}/index.js +0 -0
- /package/{billing → dist/billing}/Grid.js +0 -0
- /package/{billing → dist/billing}/Header2.js +0 -0
- /package/{billing → dist/billing}/Header3.js +0 -0
- /package/{billing → dist/billing}/Paragraph.js +0 -0
- /package/{billing → dist/billing}/ParagraphGroup.js +0 -0
- /package/{billing → dist/billing}/ParagraphText.js +0 -0
- /package/{billing → dist/billing}/Section.js +0 -0
- /package/{billing → dist/billing}/SectionBody.js +0 -0
- /package/{billing → dist/billing}/SectionHeader.js +0 -0
- /package/{billing → dist/billing}/__stories__/BarChart.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/Grid.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/Header2.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/Header3.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/Paragraph.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/ParagraphGroup.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/ParagraphText.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/Section.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/SectionBody.stories.js_bak +0 -0
- /package/{billing → dist/billing}/__stories__/SectionHeader.stories.js-bak +0 -0
- /package/{breadcrumb → dist/breadcrumb}/index.js +0 -0
- /package/{button → dist/button}/index.js +0 -0
- /package/{callout → dist/callout}/index.js +0 -0
- /package/{chart → dist/chart}/index.js +0 -0
- /package/{chart → dist/chart}/utils/index.js +0 -0
- /package/{chart → dist/chart}/utils/padEmptyChartBar.js +0 -0
- /package/{container → dist/container}/index.js +0 -0
- /package/{cropper → dist/cropper}/CropperModalHandler.js +0 -0
- /package/{cropper → dist/cropper}/index.js +0 -0
- /package/{cropper → dist/cropper}/subComponent/CropImageModal.js +0 -0
- /package/{datetimePicker → dist/datetimePicker}/hooks/index.js +0 -0
- /package/{datetimePicker → dist/datetimePicker}/index.js +0 -0
- /package/{datetimePicker → dist/datetimePicker}/provider/constant.js +0 -0
- /package/{datetimePicker → dist/datetimePicker}/subComponent/CustomTimeInput.js +0 -0
- /package/{datetimePicker → dist/datetimePicker}/subComponent/DateTimePickerContext.js +0 -0
- /package/{datetimePicker → dist/datetimePicker}/utils/GMTDate.js +0 -0
- /package/{datetimePicker → dist/datetimePicker}/utils/pad.js +0 -0
- /package/{datetimePicker → dist/datetimePicker}/utils/toUTC0.js +0 -0
- /package/{descriptionList → dist/descriptionList}/index.js +0 -0
- /package/{divider → dist/divider}/index.js +0 -0
- /package/{dropdown → dist/dropdown}/Dropdown.js +0 -0
- /package/{dropdown → dist/dropdown}/DropdownItem.js +0 -0
- /package/{dropdown → dist/dropdown}/index.js +0 -0
- /package/{dropdown → dist/dropdown}/subComponent/DropdownContext.js +0 -0
- /package/{dropzone → dist/dropzone}/index.js +0 -0
- /package/{figure → dist/figure}/index.js +0 -0
- /package/{file → dist/file}/index.js +0 -0
- /package/{form → dist/form}/index.js +0 -0
- /package/{grid → dist/grid}/index.js +0 -0
- /package/{heading → dist/heading}/index.js +0 -0
- /package/{helmet → dist/helmet}/Helmet.js +0 -0
- /package/{helmet → dist/helmet}/index.js +0 -0
- /package/{iconbox → dist/iconbox}/index.js +0 -0
- /package/{image → dist/image}/index.js +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{jsoneditor → dist/jsoneditor}/index.js +0 -0
- /package/{layout → dist/layout}/AsideHeader.jsx +0 -0
- /package/{layout → dist/layout}/index.js +0 -0
- /package/{link → dist/link}/index.js +0 -0
- /package/{map → dist/map}/LeafletReverseGeolocation.js +0 -0
- /package/{map → dist/map}/index.js +0 -0
- /package/{map → dist/map}/subComponent/BasicLeafletMap.js +0 -0
- /package/{map → dist/map}/subComponent/MapSearchBoxControl.js +0 -0
- /package/{modal → dist/modal}/index.js +0 -0
- /package/{page → dist/page}/index.js +0 -0
- /package/{paginate → dist/paginate}/index.js +0 -0
- /package/{popover → dist/popover}/index.js +0 -0
- /package/{qrcode → dist/qrcode}/index.js +0 -0
- /package/{ribbon → dist/ribbon}/index.js +0 -0
- /package/{section → dist/section}/index.js +0 -0
- /package/{select → dist/select}/index.js +0 -0
- /package/{styles → dist/styles}/config/breakpoint.style.js +0 -0
- /package/{styles → dist/styles}/config/header.style.js +0 -0
- /package/{styles → dist/styles}/config/sidebar.style.js +0 -0
- /package/{styles → dist/styles}/index.js +0 -0
- /package/{table → dist/table}/__mock__/data.js +0 -0
- /package/{table → dist/table}/hooks/index.js +0 -0
- /package/{table → dist/table}/hooks/useCalculateDataRange.js +0 -0
- /package/{table → dist/table}/hooks/useGenerateSort.js +0 -0
- /package/{table → dist/table}/index.js +0 -0
- /package/{tagify → dist/tagify}/index.js +0 -0
- /package/{text → dist/text}/index.js +0 -0
- /package/{timeline → dist/timeline}/index.js +0 -0
- /package/{toast → dist/toast}/index.js +0 -0
- /package/{toast → dist/toast}/show.js +0 -0
- /package/{toast → dist/toast}/style.css +0 -0
- /package/{tooltip → dist/tooltip}/index.js +0 -0
- /package/{treeView → dist/treeView}/index.js +0 -0
- /package/{wizard → dist/wizard}/index.js +0 -0
- /package/{xmleditor → dist/xmleditor}/XmlEditor.js +0 -0
- /package/{xmleditor → dist/xmleditor}/index.js +0 -0
package/iconbox/IconBox.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _IconBoxFigure = _interopRequireDefault(require("./subComponent/IconBoxFigure"));
|
|
9
|
-
var _IconBoxImage = _interopRequireDefault(require("./subComponent/IconBoxImage"));
|
|
10
|
-
var _bgChartTriangle = _interopRequireDefault(require("../assets/images/bg-chart-triangle.png"));
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
15
|
-
const IconBox = _ref => {
|
|
16
|
-
let {
|
|
17
|
-
icon,
|
|
18
|
-
title,
|
|
19
|
-
children
|
|
20
|
-
} = _ref;
|
|
21
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
|
|
22
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(IconBoxHead, {
|
|
23
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconBoxFigure.default, {
|
|
24
|
-
sizeXS: true,
|
|
25
|
-
marginRight: true,
|
|
26
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconBoxImage.default, {
|
|
27
|
-
sizeXS: true,
|
|
28
|
-
src: icon,
|
|
29
|
-
alt: "".concat(title, "'s icon")
|
|
30
|
-
})
|
|
31
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxTitle, {
|
|
32
|
-
children: title
|
|
33
|
-
})]
|
|
34
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconBoxBody, {
|
|
35
|
-
children: children
|
|
36
|
-
})]
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: var(--spacing-l);\n margin-bottom: var(--spacing);\n border-radius: var(--border-radius);\n background: var(--color-background2);\n color: var(--font-on-background);\n\n background: var(--color-background2);\n background-image: url(", ");\n background-repeat: no-repeat;\n background-position: right bottom;\n background-size: 30% 70%;\n"])), _bgChartTriangle.default);
|
|
40
|
-
const IconBoxHead = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-bottom: var(--spacing);\n"])));
|
|
41
|
-
const IconBoxTitle = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: var(--font-h2);\n font-weight: bold;\n word-break: break-all;\n"])));
|
|
42
|
-
const IconBoxBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: var(--font-h1);\n font-weight: bold;\n text-align: center;\n"])));
|
|
43
|
-
var _default = exports.default = IconBox;
|
package/iconbox/IconBoxV2.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
-
var _IconBoxFigure = _interopRequireDefault(require("./subComponent/IconBoxFigure"));
|
|
9
|
-
var _IconBoxImage = _interopRequireDefault(require("./subComponent/IconBoxImage"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
15
|
-
const IconBoxV2 = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: var(--spacing);\n margin-bottom: var(--spacing);\n background: var(--color-background1);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n color: var(--font-on-background);\n border: 2px solid transparent;\n\n ", "\n\n ", "\n"])), _ref => {
|
|
16
|
-
let {
|
|
17
|
-
fullHeight
|
|
18
|
-
} = _ref;
|
|
19
|
-
return fullHeight && 'height: calc(100% - var(--spacing));';
|
|
20
|
-
}, _ref2 => {
|
|
21
|
-
let {
|
|
22
|
-
selected
|
|
23
|
-
} = _ref2;
|
|
24
|
-
return selected && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-color: var(--color-primary);\n background: color-mix(\n in srgb,\n var(--color-primary) 10%,\n var(--color-background1)\n );\n "])));
|
|
25
|
-
});
|
|
26
|
-
const Body = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
27
|
-
const Description = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1 1 auto;\n font-size: var(--font-body1);\n"])));
|
|
28
|
-
const Info = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n word-break: break-all;\n\n &:not(:last-child) {\n margin-bottom: var(--spacing-s);\n }\n"])));
|
|
29
|
-
const Tool = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n flex: 0 0 calc(var(--spacing-s) + 36px);\n padding-left: var(--spacing-s);\n\n > *:not(:last-child) {\n margin-bottom: var(--spacing-s);\n }\n"])));
|
|
30
|
-
var _default = exports.default = Object.assign(IconBoxV2, {
|
|
31
|
-
Body,
|
|
32
|
-
Description,
|
|
33
|
-
Info,
|
|
34
|
-
Tool,
|
|
35
|
-
Figure: _IconBoxFigure.default,
|
|
36
|
-
Image: _IconBoxImage.default
|
|
37
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
-
const IconBoxFigure = _styledComponents.default.figure(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 0 0 120px;\n\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), _ref => {
|
|
12
|
-
let {
|
|
13
|
-
marginRight
|
|
14
|
-
} = _ref;
|
|
15
|
-
return marginRight && 'margin-right: var(--spacing);';
|
|
16
|
-
}, _ref2 => {
|
|
17
|
-
let {
|
|
18
|
-
paddingRight
|
|
19
|
-
} = _ref2;
|
|
20
|
-
return paddingRight && 'padding-right: var(--spacing);';
|
|
21
|
-
}, _ref3 => {
|
|
22
|
-
let {
|
|
23
|
-
paddingRightS
|
|
24
|
-
} = _ref3;
|
|
25
|
-
return paddingRightS && 'padding-right: var(--spacing-s);';
|
|
26
|
-
}, _ref4 => {
|
|
27
|
-
let {
|
|
28
|
-
paddingBottomS
|
|
29
|
-
} = _ref4;
|
|
30
|
-
return paddingBottomS && 'padding-bottom: var(--spacing-s);';
|
|
31
|
-
}, _ref5 => {
|
|
32
|
-
let {
|
|
33
|
-
sizeS
|
|
34
|
-
} = _ref5;
|
|
35
|
-
return sizeS && 'flex-basis: 80px;';
|
|
36
|
-
}, _ref6 => {
|
|
37
|
-
let {
|
|
38
|
-
sizeXS
|
|
39
|
-
} = _ref6;
|
|
40
|
-
return sizeXS && 'flex-basis: 40px;';
|
|
41
|
-
});
|
|
42
|
-
var _default = exports.default = IconBoxFigure;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject;
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
-
const IconBoxImage = _styledComponents.default.img.attrs(() => ({
|
|
12
|
-
crossOrigin: 'anonymous'
|
|
13
|
-
}))(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 120px;\n height: 120px;\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
14
|
-
let {
|
|
15
|
-
rounded
|
|
16
|
-
} = _ref;
|
|
17
|
-
return rounded && 'border-radius: var(--border-radius);';
|
|
18
|
-
}, _ref2 => {
|
|
19
|
-
let {
|
|
20
|
-
sizeS
|
|
21
|
-
} = _ref2;
|
|
22
|
-
return sizeS && "\n width: 80px;\n height: 80px;\n ";
|
|
23
|
-
}, _ref3 => {
|
|
24
|
-
let {
|
|
25
|
-
sizeXS
|
|
26
|
-
} = _ref3;
|
|
27
|
-
return sizeXS && "\n width: 40px;\n height: 40px;\n ";
|
|
28
|
-
});
|
|
29
|
-
var _default = exports.default = IconBoxImage;
|
package/image/ImageFluid.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _rounded = _interopRequireDefault(require("../styles/mixin/rounded"));
|
|
9
|
-
var _templateObject;
|
|
10
|
-
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
|
-
const ImageFluid = _styledComponents.default.img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n\n ", "\n"])), _rounded.default);
|
|
13
|
-
var _default = exports.default = ImageFluid;
|
package/image/UploadImage.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactI18next = require("react-i18next");
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _fa = require("react-icons/fa");
|
|
11
|
-
var _md = require("react-icons/md");
|
|
12
|
-
var _utils = require("@cashub/utils");
|
|
13
|
-
var _toast = require("../toast");
|
|
14
|
-
var _HiddenFileInput = _interopRequireDefault(require("../file/HiddenFileInput"));
|
|
15
|
-
var _ImageFigure = _interopRequireDefault(require("../figure/ImageFigure"));
|
|
16
|
-
var _ImageFluid = _interopRequireDefault(require("./ImageFluid"));
|
|
17
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
19
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
21
|
-
const UploadImage = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
22
|
-
var _ref$current;
|
|
23
|
-
let {
|
|
24
|
-
id,
|
|
25
|
-
src,
|
|
26
|
-
alt = 'user avatar',
|
|
27
|
-
roundedCircle = false,
|
|
28
|
-
cropperHandler,
|
|
29
|
-
onBlur,
|
|
30
|
-
onClear,
|
|
31
|
-
allowClear = false
|
|
32
|
-
} = _ref;
|
|
33
|
-
const {
|
|
34
|
-
t
|
|
35
|
-
} = (0, _reactI18next.useTranslation)();
|
|
36
|
-
const refWrapper = (0, _react.useRef)();
|
|
37
|
-
const [currentSrc, setCurrentSrc] = (0, _react.useState)(src);
|
|
38
|
-
const [currentFile, setCurrentFile] = (0, _react.useState)(null);
|
|
39
|
-
const [focusCount, setFocusCount] = (0, _react.useState)(0);
|
|
40
|
-
const handleAvatarRemove = () => {
|
|
41
|
-
setCurrentSrc(src);
|
|
42
|
-
ref.current.value = '';
|
|
43
|
-
setCurrentFile(null);
|
|
44
|
-
};
|
|
45
|
-
const restoreFile = (0, _react.useCallback)(() => {
|
|
46
|
-
if (!currentFile) return;
|
|
47
|
-
const dataTransfer = new DataTransfer();
|
|
48
|
-
dataTransfer.items.add(currentFile);
|
|
49
|
-
ref.current.files = dataTransfer.files;
|
|
50
|
-
}, [ref, currentFile]);
|
|
51
|
-
const handleImageFile = (0, _react.useCallback)((file, src) => {
|
|
52
|
-
const dataTransfer = new DataTransfer();
|
|
53
|
-
const changedImageFile = (0, _utils.dataURLtoFile)(src, file.name);
|
|
54
|
-
dataTransfer.items.add(changedImageFile);
|
|
55
|
-
setCurrentSrc(src);
|
|
56
|
-
setCurrentFile(changedImageFile);
|
|
57
|
-
ref.current.files = dataTransfer.files;
|
|
58
|
-
}, [ref]);
|
|
59
|
-
const handleOnChange = files => {
|
|
60
|
-
if (files.length === 0) {
|
|
61
|
-
// close file selector or cancel upload file need to restore to last uploaded file
|
|
62
|
-
restoreFile();
|
|
63
|
-
} else {
|
|
64
|
-
const fileType = files[0].name.slice(files[0].name.lastIndexOf('.')).toLowerCase();
|
|
65
|
-
if (['.jpeg', '.bmp', '.jpg', '.png'].includes(fileType)) {
|
|
66
|
-
if (files[0].size < 2097152) {
|
|
67
|
-
const srcUrl = URL.createObjectURL(files[0]);
|
|
68
|
-
handleCrop(srcUrl, files[0]);
|
|
69
|
-
} else {
|
|
70
|
-
ref.current.value = '';
|
|
71
|
-
restoreFile();
|
|
72
|
-
(0, _toast.showErrorMessage)({
|
|
73
|
-
title: t('error:Upload'),
|
|
74
|
-
message: t('error:UploadSize', {
|
|
75
|
-
size: '2MB'
|
|
76
|
-
})
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
ref.current.value = '';
|
|
81
|
-
restoreFile();
|
|
82
|
-
(0, _toast.showErrorMessage)({
|
|
83
|
-
title: t('error:Upload'),
|
|
84
|
-
message: t('error:LogoMerchantFileType')
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const handleCrop = (0, _react.useCallback)((src, file) => {
|
|
90
|
-
cropperHandler({
|
|
91
|
-
src,
|
|
92
|
-
file,
|
|
93
|
-
width: 160,
|
|
94
|
-
height: 160,
|
|
95
|
-
onCrop: croppedSrc => {
|
|
96
|
-
handleImageFile(file, croppedSrc);
|
|
97
|
-
},
|
|
98
|
-
onClose: () => {
|
|
99
|
-
(0, _utils.getBase64DataUrlFromFile)(file, dataUrl => {
|
|
100
|
-
handleImageFile(file, dataUrl);
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}, [cropperHandler, handleImageFile]);
|
|
105
|
-
const handleFocus = event => {
|
|
106
|
-
event.preventDefault();
|
|
107
|
-
event.stopPropagation();
|
|
108
|
-
if (event.target.tagName === 'BUTTON') {
|
|
109
|
-
setFocusCount(focusCount + 1);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
const handleBlur = event => {
|
|
113
|
-
event.preventDefault();
|
|
114
|
-
event.stopPropagation();
|
|
115
|
-
|
|
116
|
-
// if click figure,after click button
|
|
117
|
-
if (refWrapper.current.contains(event.relatedTarget)) return;
|
|
118
|
-
if (event.target === refWrapper.current && onBlur) {
|
|
119
|
-
onBlur();
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
(0, _react.useEffect)(() => {
|
|
123
|
-
setCurrentSrc(src);
|
|
124
|
-
}, [src, ref]);
|
|
125
|
-
|
|
126
|
-
// if click button icon,can focus figure element
|
|
127
|
-
(0, _react.useEffect)(() => {
|
|
128
|
-
if (focusCount === 2) {
|
|
129
|
-
refWrapper.current.focus();
|
|
130
|
-
setFocusCount(0);
|
|
131
|
-
}
|
|
132
|
-
}, [ref, focusCount]);
|
|
133
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
|
|
134
|
-
ref: refWrapper,
|
|
135
|
-
roundedCircle: roundedCircle,
|
|
136
|
-
onBlur: handleBlur,
|
|
137
|
-
onFocus: handleFocus,
|
|
138
|
-
tabIndex: "0",
|
|
139
|
-
children: [currentSrc && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageFluid.default, {
|
|
140
|
-
crossOrigin: "anonymous",
|
|
141
|
-
src: currentSrc,
|
|
142
|
-
alt: alt,
|
|
143
|
-
rounded: true,
|
|
144
|
-
roundedCircle: roundedCircle
|
|
145
|
-
}), ref && /*#__PURE__*/(0, _jsxRuntime.jsxs)(ButtonGroup, {
|
|
146
|
-
roundedCircle: roundedCircle,
|
|
147
|
-
children: [ref.current && ref.current.files && ref.current.files.length !== 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(CropButton, {
|
|
148
|
-
roundedCircle: roundedCircle,
|
|
149
|
-
onClick: () => {
|
|
150
|
-
handleCrop(currentSrc, ref.current.files[0]);
|
|
151
|
-
},
|
|
152
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_md.MdCrop, {})
|
|
153
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ModifyButton, {
|
|
154
|
-
roundedCircle: roundedCircle,
|
|
155
|
-
onClick: () => {
|
|
156
|
-
ref.current.click();
|
|
157
|
-
},
|
|
158
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaPen, {})
|
|
159
|
-
})]
|
|
160
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_HiddenFileInput.default, {
|
|
161
|
-
ref: ref && ref,
|
|
162
|
-
id: id,
|
|
163
|
-
accept: ".jpeg, .bmp, .jpg, .png",
|
|
164
|
-
onChange: event => handleOnChange(event.target.files)
|
|
165
|
-
}), ref && ref.current && ref.current.files && ref.current.files.length !== 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(RemoveIcon, {
|
|
166
|
-
onClick: handleAvatarRemove,
|
|
167
|
-
roundedCircle: roundedCircle,
|
|
168
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaTimes, {})
|
|
169
|
-
}), allowClear && src && ref && !((_ref$current = ref.current) !== null && _ref$current !== void 0 && (_ref$current = _ref$current.files) !== null && _ref$current !== void 0 && _ref$current.length) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(RemoveIcon, {
|
|
170
|
-
onClick: onClear,
|
|
171
|
-
roundedCircle: roundedCircle,
|
|
172
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaTimes, {})
|
|
173
|
-
})]
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
const Wrapper = (0, _styledComponents.default)(_ImageFigure.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: var(--spacing-xs);\n"])));
|
|
177
|
-
const ButtonGroup = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n top: -16px;\n right: -12px;\n\n ", "\n"])), _ref2 => {
|
|
178
|
-
let {
|
|
179
|
-
rounded
|
|
180
|
-
} = _ref2;
|
|
181
|
-
return rounded && "\n top: 0;\n right: 0;\n ";
|
|
182
|
-
});
|
|
183
|
-
const ActionButton = _styledComponents.default.button(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n width: 32px;\n height: 32px;\n border: none;\n"])));
|
|
184
|
-
const CropButton = (0, _styledComponents.default)(ActionButton)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: var(--font-on-primary);\n background: var(--color-primary);\n border-radius: var(--border-radius);\n\n ", "\n"])), _ref3 => {
|
|
185
|
-
let {
|
|
186
|
-
roundedCircle
|
|
187
|
-
} = _ref3;
|
|
188
|
-
return roundedCircle && "\n position: relative;\n top: -16px;\n ";
|
|
189
|
-
});
|
|
190
|
-
const ModifyButton = (0, _styledComponents.default)(ActionButton)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: var(--font-on-primary);\n background: var(--color-primary);\n border-radius: var(--border-radius);\n margin-left: var(--spacing-xs);\n\n ", "\n"])), _ref4 => {
|
|
191
|
-
let {
|
|
192
|
-
roundedCircle
|
|
193
|
-
} = _ref4;
|
|
194
|
-
return roundedCircle && "\n position: relative;\n top: 4px;\n ";
|
|
195
|
-
});
|
|
196
|
-
const RemoveIcon = (0, _styledComponents.default)(ActionButton)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n position: absolute;\n color: var(--font-on-danger);\n background: var(--color-danger);\n border-radius: var(--border-radius);\n bottom: -12px;\n right: -12px;\n\n ", "\n"])), _ref5 => {
|
|
197
|
-
let {
|
|
198
|
-
roundedCircle
|
|
199
|
-
} = _ref5;
|
|
200
|
-
return roundedCircle && "\n bottom: 0;\n right: 4px;\n ";
|
|
201
|
-
});
|
|
202
|
-
var _default = exports.default = UploadImage;
|
package/jsoneditor/JsonEditor.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
var _jsoneditorReact = require("jsoneditor-react");
|
|
10
|
-
var _brace = _interopRequireDefault(require("brace"));
|
|
11
|
-
require("jsoneditor-react/es/editor.min.css");
|
|
12
|
-
require("brace/mode/json");
|
|
13
|
-
require("brace/theme/github");
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
var _templateObject;
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
18
|
-
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; }
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22
|
-
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); }
|
|
23
|
-
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
24
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
25
|
-
const JsonEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
26
|
-
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
27
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
|
|
28
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsoneditorReact.JsonEditor, _objectSpread(_objectSpread({
|
|
29
|
-
ref: ref
|
|
30
|
-
}, props), {}, {
|
|
31
|
-
ace: _brace.default
|
|
32
|
-
}))
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .jsoneditor {\n border: 0;\n\n div.jsoneditor-tree {\n background: transparent;\n }\n }\n\n div.jsoneditor td.jsoneditor-tree {\n vertical-align: middle;\n }\n\n .jsoneditor-popover,\n .jsoneditor-schema-error,\n div.jsoneditor th,\n div.jsoneditor td,\n div.jsoneditor textarea,\n div.jsoneditor select,\n div.jsoneditor-field,\n div.jsoneditor-value,\n pre.jsoneditor-preview {\n font-size: var(--font-body1);\n color: var(--font-on-background);\n }\n\n div.jsoneditor select {\n background: var(--color-background1);\n }\n\n div {\n &.jsoneditor-readonly {\n color: var(--font-on-background);\n }\n\n &.jsoneditor-value.jsoneditor-number {\n color: var(--color-danger);\n }\n\n &.jsoneditor-field.jsoneditor-empty::after,\n &.jsoneditor-value.jsoneditor-empty::after {\n font-size: var(--font-body1);\n color: var(--font-on-background);\n }\n\n &.jsoneditor-field[contenteditable='true']:focus,\n &.jsoneditor-field[contenteditable='true']:hover,\n &.jsoneditor-value[contenteditable='true']:focus,\n &.jsoneditor-value[contenteditable='true']:hover,\n &.jsoneditor-field.jsoneditor-highlight,\n &.jsoneditor-value.jsoneditor-highlight {\n background-color: transparent;\n border: var(--border-width) solid var(--border-color);\n }\n\n &.jsoneditor-empty {\n border-color: transparent;\n border-style: none;\n }\n\n &.jsoneditor-tree button.jsoneditor-button {\n filter: invert(100%) sepia(0%) saturate(2%) hue-rotate(78deg)\n brightness(104%) contrast(101%);\n }\n\n &.jsoneditor-tree button.jsoneditor-button:focus {\n background-color: transparent;\n }\n }\n\n // ace editor\n .ace_editor.ace-jsoneditor {\n border-radius: 8px;\n }\n\n .ace_gutter {\n background: rgb(59, 57, 87) !important;\n color: #ffffff !important;\n z-index: 0;\n }\n\n .ace-jsoneditor .ace_gutter-active-line {\n background: #00001d;\n }\n\n .ace_content {\n background: rgb(76, 72, 110);\n z-index: 0;\n }\n\n .ace-jsoneditor .ace_marker-layer .ace_active-line {\n background: #00001d;\n }\n\n .ace-jsoneditor .ace_text-layer {\n color: #fff;\n }\n\n .ace-jsoneditor .ace_variable {\n color: #fff;\n }\n\n .ace-jsoneditor .ace_string {\n color: #11d8cd;\n }\n\n .ace-jsoneditor .ace_cursor {\n border-left: 2px solid #fff;\n }\n\n .ace_hidden-cursors .ace_cursor {\n opacity: 0.5;\n }\n"])));
|
|
36
|
-
var _default = exports.default = JsonEditor;
|
package/keyframe/Pulse.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = require("styled-components");
|
|
8
|
-
var _templateObject;
|
|
9
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
|
-
const Pulse = (0, _styledComponents.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: scale(0.1, 0.1);\n opacity: 0;\n }\n 10% {\n opacity: 1;\n }\n 100% {\n transform: scale(1.2, 1.2);\n opacity: 0;\n }\n"])));
|
|
11
|
-
var _default = exports.default = Pulse;
|
package/keyframe/Spin.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = require("styled-components");
|
|
8
|
-
var _templateObject;
|
|
9
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
|
-
const Spin = (0, _styledComponents.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n to {\n transform: rotate(360deg);\n }\n"])));
|
|
11
|
-
var _default = exports.default = Spin;
|
package/layout/Aside.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
-
var _header = _interopRequireDefault(require("../styles/config/header.style"));
|
|
9
|
-
var _sidebar = _interopRequireDefault(require("../styles/config/sidebar.style"));
|
|
10
|
-
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
11
|
-
var _bgAside = _interopRequireDefault(require("../assets/images/bg-aside.png"));
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
17
|
-
const Aside = _styledComponents.default.aside(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", ";\n\n padding-top: var(--spacing-s);\n height: calc(100vh - ", " - var(--spacing));\n background: url(", "), var(--color-background2);\n background-size: 356px 436px;\n background-repeat: no-repeat;\n background-position: bottom;\n border-top-right-radius: var(--border-radius);\n position: fixed;\n top: calc(", " + var(--spacing));\n transition: width 0.2s;\n z-index: 60;\n\n ", ";\n"])), _ref => {
|
|
18
|
-
let {
|
|
19
|
-
$display
|
|
20
|
-
} = _ref;
|
|
21
|
-
return $display ? "".concat(_sidebar.default.open.width) : "".concat(_sidebar.default.close.width);
|
|
22
|
-
}, _header.default.height, _bgAside.default, _header.default.height, _media.default.tablet(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 100%;\n top: 0;\n padding-top:0;\n border-top-right-radius:0;\n left: 0;\n box-shadow: var(--box-shadow);\n \n ", "\n "])), props => props.$display === false && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n left: -", ";\n "])), _sidebar.default.open.width)));
|
|
23
|
-
var _default = exports.default = Aside;
|
package/layout/Backdrop.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _backdrop = require("../backdrop");
|
|
9
|
-
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
|
-
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
|
-
const Backdrop = (0, _styledComponents.default)(_backdrop.BaseBackdrop)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n visibility: hidden;\n\n ", "\n"])), _media.default.tablet(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n visibility: ", ";\n "])), _ref => {
|
|
14
|
-
let {
|
|
15
|
-
$display
|
|
16
|
-
} = _ref;
|
|
17
|
-
return $display === true ? 'visible' : 'hidden';
|
|
18
|
-
}));
|
|
19
|
-
var _default = exports.default = Backdrop;
|
package/layout/Container.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
-
var _header = _interopRequireDefault(require("../styles/config/header.style"));
|
|
9
|
-
var _sidebar = _interopRequireDefault(require("../styles/config/sidebar.style"));
|
|
10
|
-
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
|
-
const Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: 0.3s;\n width: 100%;\n padding: calc(", " + var(--spacing)) var(--spacing)\n var(--spacing);\n\n ", "\n"])), _header.default.height, _ref => {
|
|
17
|
-
let {
|
|
18
|
-
hasSidebar,
|
|
19
|
-
$display
|
|
20
|
-
} = _ref;
|
|
21
|
-
return hasSidebar === true && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: calc(\n 100% -\n ", "\n );\n margin-left: ", ";\n\n ", "\n "])), $display === true ? _sidebar.default.open.width : _sidebar.default.close.width, $display === true ? _sidebar.default.open.width : _sidebar.default.close.width, _media.default.tablet(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n margin-left: 0;\n "]))));
|
|
22
|
-
});
|
|
23
|
-
var _default = exports.default = Container;
|
package/layout/Footer.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
-
var _sidebar = _interopRequireDefault(require("../styles/config/sidebar.style"));
|
|
9
|
-
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
15
|
-
const Footer = _styledComponents.default.footer(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: 0.3s;\n border-top: var(--border-width) solid var(--border-color);\n color: var(--font-on-mute);\n height: 64px;\n line-height: 64px;\n font-size: var(--font-body2);\n padding: 0 var(--spacing);\n\n ", "\n\n ", "\n"])), _ref => {
|
|
16
|
-
let {
|
|
17
|
-
hasSidebar
|
|
18
|
-
} = _ref;
|
|
19
|
-
return hasSidebar === true && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0 var(--spacing) 0 calc(var(--spacing) + ", ");\n\n ", "\n "])), _sidebar.default.close.width, _media.default.tablet(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin:0 ;\n "]))));
|
|
20
|
-
}, _ref2 => {
|
|
21
|
-
let {
|
|
22
|
-
$display
|
|
23
|
-
} = _ref2;
|
|
24
|
-
return $display && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 0 var(--spacing) 0\n calc(var(--spacing) + ", ");\n "])), _sidebar.default.open.width);
|
|
25
|
-
});
|
|
26
|
-
var _default = exports.default = Footer;
|
package/layout/Header.jsx
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import headerStyle from '../styles/config/header.style';
|
|
3
|
-
import media from '../styles/mixin/media';
|
|
4
|
-
import MenuIcon from './MenuIcon';
|
|
5
|
-
import Logo from './Logo';
|
|
6
|
-
|
|
7
|
-
const Header = ({ theme, logo, hasSidebar, toggleSidebar, children }) => {
|
|
8
|
-
return (
|
|
9
|
-
<>
|
|
10
|
-
<Wrapper>
|
|
11
|
-
<Brand>
|
|
12
|
-
{hasSidebar && (
|
|
13
|
-
<MenuIcon theme={theme} toggleSidebar={toggleSidebar} />
|
|
14
|
-
)}
|
|
15
|
-
{logo && <Logo src={logo} />}
|
|
16
|
-
</Brand>
|
|
17
|
-
<Topbar>{children}</Topbar>
|
|
18
|
-
</Wrapper>
|
|
19
|
-
</>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const Wrapper = styled.header`
|
|
24
|
-
background: var(--color-background2);
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
align-items: center;
|
|
28
|
-
position: fixed;
|
|
29
|
-
z-index: 40;
|
|
30
|
-
width: 100%;
|
|
31
|
-
height: ${headerStyle.height};
|
|
32
|
-
padding: 0 calc(var(--spacing-s) + 0.25rem) 0 var(--spacing-s);
|
|
33
|
-
|
|
34
|
-
${media.tablet`
|
|
35
|
-
padding: 0 var(--spacing-s) 0 calc(var(--spacing-s) - 0.25rem);
|
|
36
|
-
`}
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
const Brand = styled.div`
|
|
40
|
-
display: flex;
|
|
41
|
-
|
|
42
|
-
> * {
|
|
43
|
-
flex: none;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
const Topbar = styled.div`
|
|
48
|
-
display: flex;
|
|
49
|
-
|
|
50
|
-
> *:not(:last-child) {
|
|
51
|
-
margin-right: calc(var(--spacing) - 0.5rem);
|
|
52
|
-
}
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
export default Header;
|