diginet-core-ui 1.4.39 → 1.4.40
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/.browserslistrc +6 -0
- package/.eslintrc.js +91 -0
- package/.husky/pre-commit +4 -0
- package/.prettierrc +32 -0
- package/.storybook/main.js +4 -0
- package/.storybook/manager.js +10 -0
- package/.storybook/preview-head.html +17 -0
- package/.storybook/preview.js +36 -0
- package/.storybook/themeDecorator.js +19 -0
- package/babel.config.json +17 -0
- package/bitbucket-pipelines.yml +18 -0
- package/jsconfig.json +8 -0
- package/package.json +78 -44
- package/package.json.tmp +44 -0
- package/postcss.config.js +9 -0
- package/readme.md +5 -0
- package/src/assets/images/menu/dhr/MHRP15N0002.svg +17 -0
- package/src/assets/images/menu/dhr/MHRP15N0003.svg +26 -0
- package/src/components/accordion/context.js +5 -0
- package/src/components/accordion/details.js +80 -0
- package/src/components/accordion/group.js +140 -0
- package/src/components/accordion/index.js +207 -0
- package/src/components/accordion/index.stories.js +278 -0
- package/src/components/accordion/summary.js +380 -0
- package/src/components/alert/index.js +312 -0
- package/src/components/alert/index.stories.js +109 -0
- package/src/components/alert/notify.js +179 -0
- package/src/components/avatar/index.js +472 -0
- package/src/components/avatar/index.stories.js +80 -0
- package/src/components/badge/index.js +307 -0
- package/src/components/badge/index.stories.js +187 -0
- package/src/components/breadcrumb/index.js +280 -0
- package/src/components/breadcrumb/index.stories.js +69 -0
- package/src/components/button/button.stories.js +34 -0
- package/src/components/button/buttonIcon.stories.js +36 -0
- package/src/components/button/buttonMore.stories.js +58 -0
- package/src/components/button/icon.js +468 -0
- package/src/components/button/index.js +582 -0
- package/src/components/button/more.js +249 -0
- package/src/components/button/ripple-effect.js +95 -0
- package/src/components/button/sample.stories.js +194 -0
- package/src/components/card/body.js +73 -0
- package/src/components/card/extra.js +73 -0
- package/src/components/card/footer.js +73 -0
- package/src/components/card/header.js +74 -0
- package/src/components/card/index.js +256 -0
- package/src/components/card/index.stories.js +242 -0
- package/src/components/chart/Pie/Circle.js +68 -0
- package/src/components/chart/Pie/Sector.js +134 -0
- package/src/components/chart/Pie/Sectors.js +96 -0
- package/src/components/chart/Pie/index.js +312 -0
- package/src/components/chart/Pie/index.stories.js +77 -0
- package/src/components/chart/Pie-v2/Circle.js +62 -0
- package/src/components/chart/Pie-v2/Sector.js +128 -0
- package/src/components/chart/Pie-v2/Sectors.js +353 -0
- package/src/components/chart/Pie-v2/index.js +499 -0
- package/src/components/chart/Pie-v2/index.stories.js +77 -0
- package/src/components/chart/bar/Axis.js +67 -0
- package/src/components/chart/bar/Bar.js +365 -0
- package/src/components/chart/bar/Grid.js +111 -0
- package/src/components/chart/bar/Labels.js +193 -0
- package/src/components/chart/bar/Points.js +112 -0
- package/src/components/chart/bar/index.js +170 -0
- package/src/components/chart/bar/index.stories.js +174 -0
- package/src/components/chart/bar-v2/Axis.js +67 -0
- package/src/components/chart/bar-v2/Bar.js +372 -0
- package/src/components/chart/bar-v2/Grid.js +111 -0
- package/src/components/chart/bar-v2/Labels.js +193 -0
- package/src/components/chart/bar-v2/Points.js +112 -0
- package/src/components/chart/bar-v2/index.js +170 -0
- package/src/components/chart/bar-v2/index.stories.js +174 -0
- package/src/components/chart/line/Axis.js +68 -0
- package/src/components/chart/line/Grid.js +98 -0
- package/src/components/chart/line/Labels.js +191 -0
- package/src/components/chart/line/Path.js +155 -0
- package/src/components/chart/line/Point.js +358 -0
- package/src/components/chart/line/Title.js +50 -0
- package/src/components/chart/line/index.js +202 -0
- package/src/components/chart/line/index.stories.js +148 -0
- package/src/components/chart/line-v2/Axis.js +66 -0
- package/src/components/chart/line-v2/Grid.js +111 -0
- package/src/components/chart/line-v2/Labels.js +190 -0
- package/src/components/chart/line-v2/Path.js +154 -0
- package/src/components/chart/line-v2/Point.js +336 -0
- package/src/components/chart/line-v2/Title.js +50 -0
- package/src/components/chart/line-v2/index.js +172 -0
- package/src/components/chart/line-v2/index.stories.js +148 -0
- package/src/components/check-text/index.js +168 -0
- package/src/components/check-text/index.stories.js +50 -0
- package/src/components/check-text/interview-confirmation.js +169 -0
- package/src/components/check-text/interview-status.js +142 -0
- package/src/components/chip/attach.js +156 -0
- package/src/components/chip/index.js +366 -0
- package/src/components/chip/index.stories.js +190 -0
- package/src/components/collapse/index.js +104 -0
- package/src/components/collapse/index.stories.js +35 -0
- package/src/components/dialogs/colors.js +13 -0
- package/src/components/divider/index.js +87 -0
- package/src/components/divider/index.stories.js +52 -0
- package/src/components/form-control/attachment/index.js +1770 -0
- package/src/components/form-control/attachment/index.stories.js +106 -0
- package/src/components/form-control/calendar/function.js +959 -0
- package/src/components/form-control/calendar/index.js +413 -0
- package/src/components/form-control/calendar/index.stories.js +40 -0
- package/src/components/form-control/calendar/range.js +329 -0
- package/src/components/form-control/checkbox/index.js +382 -0
- package/src/components/form-control/checkbox/index.stories.js +110 -0
- package/src/components/form-control/control/index.js +99 -0
- package/src/components/form-control/date-input/DateField.js +191 -0
- package/src/components/form-control/date-input/index.js +315 -0
- package/src/components/form-control/date-input/index.stories.js +96 -0
- package/src/components/form-control/date-input/useDateInputState.js +138 -0
- package/src/components/form-control/date-input/useIsFocused.js +25 -0
- package/src/components/form-control/date-input/useKeyboardInputEvent.js +45 -0
- package/src/components/form-control/date-input/utils.js +293 -0
- package/src/components/form-control/date-picker/index.js +429 -0
- package/src/components/form-control/date-picker/index.stories.js +141 -0
- package/src/components/form-control/date-range-picker/index.js +1349 -0
- package/src/components/form-control/date-range-picker/index.stories.js +43 -0
- package/src/components/form-control/dropdown/index.js +1858 -0
- package/src/components/form-control/dropdown/index.stories.js +222 -0
- package/src/components/form-control/dropdown-box/index.js +271 -0
- package/src/components/form-control/dropdown-box/index.stories.js +103 -0
- package/src/components/form-control/form/context.js +5 -0
- package/src/components/form-control/form/index.js +39 -0
- package/src/components/form-control/form-group/index.js +131 -0
- package/src/components/form-control/form-group/index.stories.js +57 -0
- package/src/components/form-control/helper-text/index.js +92 -0
- package/src/components/form-control/helper-text/index.stories.js +29 -0
- package/src/components/form-control/input-base/UncontrolledInputBase.js +499 -0
- package/src/components/form-control/input-base/index.js +706 -0
- package/src/components/form-control/input-base/index.stories.js +69 -0
- package/src/components/form-control/label/index.js +127 -0
- package/src/components/form-control/label/index.stories.js +69 -0
- package/src/components/form-control/money-input/index.js +622 -0
- package/src/components/form-control/money-input/index.stories.js +42 -0
- package/src/components/form-control/number-input/index.js +582 -0
- package/src/components/form-control/number-input/index.stories.js +53 -0
- package/src/components/form-control/number-input/index2.js +531 -0
- package/src/components/form-control/password-input/index.js +259 -0
- package/src/components/form-control/password-input/index.stories.js +32 -0
- package/src/components/form-control/phone-input/index.js +382 -0
- package/src/components/form-control/phone-input/index.stories.js +39 -0
- package/src/components/form-control/radio/index.js +241 -0
- package/src/components/form-control/radio/index.stories.js +51 -0
- package/src/components/form-control/text-input/index.js +254 -0
- package/src/components/form-control/text-input/index.stories.js +60 -0
- package/src/components/form-control/time-picker/index.js +782 -0
- package/src/components/form-control/time-picker/index.mdx +49 -0
- package/src/components/form-control/time-picker/index.stories.js +69 -0
- package/src/components/form-control/time-picker/swiper.js +568 -0
- package/src/components/form-control/time-picker/v2/index.js +785 -0
- package/src/components/form-control/time-picker/v2/index.stories.js +43 -0
- package/src/components/form-control/toggle/index.js +247 -0
- package/src/components/form-control/toggle/index.stories.js +51 -0
- package/src/components/form-view/helper-text.js +30 -0
- package/src/components/form-view/index.js +100 -0
- package/src/components/form-view/index.stories.js +25 -0
- package/src/components/form-view/input.js +134 -0
- package/src/components/form-view/label.js +39 -0
- package/src/components/grid/Col.js +89 -0
- package/src/components/grid/Container.js +99 -0
- package/src/components/grid/Row.js +97 -0
- package/src/components/grid/context.js +5 -0
- package/src/components/grid/index.js +323 -0
- package/src/components/grid/index.stories.js +523 -0
- package/src/components/image/index.js +191 -0
- package/src/components/image/index.stories.js +53 -0
- package/src/components/index.js +157 -0
- package/src/components/list/index.stories.js +261 -0
- package/src/components/list/list-item-action.js +94 -0
- package/src/components/list/list-item-icon.js +89 -0
- package/src/components/list/list-item-text.js +69 -0
- package/src/components/list/list-item.js +131 -0
- package/src/components/list/list.js +164 -0
- package/src/components/list/sub-header.js +79 -0
- package/src/components/modal/body.js +84 -0
- package/src/components/modal/context.js +5 -0
- package/src/components/modal/footer.js +90 -0
- package/src/components/modal/header.js +145 -0
- package/src/components/modal/index.js +59 -0
- package/src/components/modal/index.stories.js +95 -0
- package/src/components/modal/modal.js +330 -0
- package/src/components/others/date/index.stories.js +217 -0
- package/src/components/others/extra/index.js +129 -0
- package/src/components/others/extra/index.mdx +39 -0
- package/src/components/others/extra/index.stories.js +17 -0
- package/src/components/others/import/index.js +66 -0
- package/src/components/others/import/index.stories.js +70 -0
- package/src/components/others/locale/index.stories.js +42 -0
- package/src/components/others/option-wrapper/index.js +34 -0
- package/src/components/others/scrollbar/index.js +106 -0
- package/src/components/others/scrollbar/index.stories.js +68 -0
- package/src/components/others/validate/index.stories.js +113 -0
- package/src/components/paging/index.stories.js +76 -0
- package/src/components/paging/page-info.js +637 -0
- package/src/components/paging/page-selector.js +437 -0
- package/src/components/paper/index.js +128 -0
- package/src/components/paper/index.stories.js +37 -0
- package/src/components/popover/body.js +98 -0
- package/src/components/popover/footer.js +96 -0
- package/src/components/popover/header.js +99 -0
- package/src/components/popover/index.js +718 -0
- package/src/components/popover/index.stories.js +189 -0
- package/src/components/popup/danger_popup.js +196 -0
- package/src/components/popup/index.js +464 -0
- package/src/components/popup/v2/index.js +556 -0
- package/src/components/popup/v2/index.stories.js +113 -0
- package/src/components/progress/circular.js +326 -0
- package/src/components/progress/index.stories.js +51 -0
- package/src/components/progress/linear.js +361 -0
- package/src/components/rating/index.js +309 -0
- package/src/components/rating/index.stories.js +78 -0
- package/src/components/skeleton/index.js +79 -0
- package/src/components/skeleton/index.stories.js +29 -0
- package/src/components/slider/index.stories.js +50 -0
- package/src/components/slider/slider-container.js +415 -0
- package/src/components/slider/slider-item.js +222 -0
- package/src/components/status/index.js +145 -0
- package/src/components/status/index.stories.js +71 -0
- package/src/components/tab/context.js +5 -0
- package/src/components/tab/index.stories.js +123 -0
- package/src/components/tab/tab-container.js +109 -0
- package/src/components/tab/tab-header.js +177 -0
- package/src/components/tab/tab-panel.js +101 -0
- package/src/components/tab/tab.js +249 -0
- package/src/components/tooltip/index.js +580 -0
- package/src/components/tooltip/index.stories.js +282 -0
- package/src/components/tooltip/portal.js +10 -0
- package/src/components/transfer/index.js +555 -0
- package/src/components/transfer/index.stories.js +53 -0
- package/src/components/tree-view/index.js +1085 -0
- package/src/components/tree-view/index.stories.js +347 -0
- package/src/components/typography/index.js +331 -0
- package/src/components/typography/index.stories.js +166 -0
- package/src/docs/changelog/changelog.md +1354 -0
- package/src/docs/changelog/index.stories.js +20 -0
- package/src/global/index.js +247 -0
- package/src/icons/basic.js +5930 -0
- package/src/icons/basic.stories.js +178 -0
- package/src/icons/effect.js +167 -0
- package/src/icons/general/clock/clock.js +16 -0
- package/src/icons/general/color-handler/background.js +34 -0
- package/src/icons/general/color-handler/text.js +34 -0
- package/src/icons/general/emoji/emoji.js +27 -0
- package/src/icons/general/font-properties/bold.js +17 -0
- package/src/icons/general/font-properties/font-family.js +27 -0
- package/src/icons/general/font-properties/font-size.js +24 -0
- package/src/icons/general/font-properties/italic.js +17 -0
- package/src/icons/general/font-properties/underline.js +26 -0
- package/src/icons/general/hyperlink/hyperlink.js +33 -0
- package/src/icons/general/indent/decrease.js +54 -0
- package/src/icons/general/indent/increase.js +54 -0
- package/src/icons/general/index.js +21 -0
- package/src/icons/general/index.mdx +68 -0
- package/src/icons/general/list/bullets.js +76 -0
- package/src/icons/general/list/numbering.js +69 -0
- package/src/icons/general/picture/picture.js +17 -0
- package/src/icons/general/steps/redo.js +17 -0
- package/src/icons/general/steps/undo.js +17 -0
- package/src/icons/general/text-align/center.js +17 -0
- package/src/icons/general/text-align/justify.js +17 -0
- package/src/icons/general/text-align/left.js +17 -0
- package/src/icons/general/text-align/right.js +17 -0
- package/src/icons/index.js +3 -0
- package/src/icons/index.stories.js +22 -0
- package/src/icons/menu/dhr.js +2625 -0
- package/src/icons/menu/erp.js +513 -0
- package/src/icons/menu/index.js +6 -0
- package/src/icons/menu/index.stories.js +107 -0
- package/src/icons/menu/v2/index.js +77 -0
- package/src/icons/menu/v2/index.stories.js +426 -0
- package/src/locale/index.js +13 -0
- package/src/scss/styles.scss +10 -0
- package/src/styles/animation.js +930 -0
- package/src/styles/animations.js +13 -0
- package/src/styles/color-helper.js +364 -0
- package/src/styles/colors.js +504 -0
- package/src/styles/colors.stories.js +105 -0
- package/src/styles/font.js +26 -0
- package/src/styles/general.js +824 -0
- package/src/styles/sx/index.js +35 -0
- package/src/styles/typography.js +181 -0
- package/src/styles/utils.js +35 -0
- package/src/theme/createBreakpoints.js +95 -0
- package/src/theme/createSpacing.js +12 -0
- package/src/theme/createTheme.js +29 -0
- package/src/theme/createZIndex.js +10 -0
- package/src/theme/docs/breakpoints.md +242 -0
- package/src/theme/docs/colors.md +64 -0
- package/src/theme/docs/components.md +32 -0
- package/src/theme/docs/darkMode.md +20 -0
- package/src/theme/docs/spacing.md +52 -0
- package/src/theme/docs/theming.md +69 -0
- package/src/theme/docs/zIndex.md +27 -0
- package/src/theme/index.js +15 -0
- package/src/theme/make-styles.js +32 -0
- package/src/theme/settings.js +816 -0
- package/src/theme/stories/breakpoints.stories.js +20 -0
- package/src/theme/stories/colors.stories.js +20 -0
- package/src/theme/stories/components.stories.js +20 -0
- package/src/theme/stories/darkMode.stories.js +20 -0
- package/src/theme/stories/spacing.stories.js +20 -0
- package/src/theme/stories/theming.stories.js +20 -0
- package/src/theme/stories/zIndex.stories.js +20 -0
- package/src/theme/theme-provider.js +101 -0
- package/src/theme/theme.js +57 -0
- package/src/theme/use-classes.js +19 -0
- package/src/theme/utils/getThemeProps.js +11 -0
- package/src/theme/utils/resolveProps.js +16 -0
- package/src/theme/utils/useThemeProps.js +8 -0
- package/src/utils/array/array.js +197 -0
- package/src/utils/classNames/index.js +28 -0
- package/src/utils/classNames/index.stories.js +61 -0
- package/src/utils/console.js +30 -0
- package/src/utils/date.js +391 -0
- package/src/utils/error/error.js +65 -0
- package/src/utils/error/errors.js +250 -0
- package/src/utils/getFileType.js +24 -0
- package/src/utils/handleBreakpoints.js +27 -0
- package/src/utils/hexToRGBA/index.js +25 -0
- package/src/utils/hexToRGBA/index.stories.js +43 -0
- package/src/utils/index.js +40 -0
- package/src/utils/intersectionObserver.js +45 -0
- package/src/utils/isMobile/index.js +22 -0
- package/src/utils/isMobile/index.stories.js +49 -0
- package/src/utils/isUndefined.js +3 -0
- package/src/utils/iterator.js +45 -0
- package/src/utils/map-parent.js +49 -0
- package/src/utils/object/deepmerge.js +129 -0
- package/src/utils/object/extend.js +55 -0
- package/src/utils/object/object.js +61 -0
- package/src/utils/parseHTML.js +20 -0
- package/src/utils/promisify.js +37 -0
- package/src/utils/randomString.js +22 -0
- package/src/utils/refMethodType.js +9 -0
- package/src/utils/refType.js +5 -0
- package/src/utils/remove-unicode.js +13 -0
- package/src/utils/render-portal.js +87 -0
- package/src/utils/renderHTML.js +17 -0
- package/src/utils/renderIcon.js +41 -0
- package/src/utils/sb-template.js +115 -0
- package/src/utils/storybook/index.js +1 -0
- package/src/utils/storybook/refArgTypes.js +46 -0
- package/src/utils/string/capitalize.js +6 -0
- package/src/utils/string/capitalizeSentenceCase.js +9 -0
- package/src/utils/string/string.js +83 -0
- package/src/utils/type.js +121 -0
- package/src/utils/updatePosition.js +27 -0
- package/src/utils/useControlled/index.js +23 -0
- package/src/utils/useDelayUnmount.js +17 -0
- package/src/utils/useElementSize.js +59 -0
- package/src/utils/useEventListener.js +54 -0
- package/src/utils/useInput.js +39 -0
- package/src/utils/useMediaQuery/index.js +50 -0
- package/src/utils/useMediaQuery/index.stories.js +55 -0
- package/src/utils/useOnClickOutside.js +28 -0
- package/src/utils/usePortal.js +54 -0
- package/src/utils/validate.js +135 -0
- package/components/accordion/context.js +0 -6
- package/components/accordion/details.js +0 -76
- package/components/accordion/group.js +0 -135
- package/components/accordion/index.js +0 -178
- package/components/accordion/summary.js +0 -324
- package/components/alert/index.js +0 -257
- package/components/alert/notify.js +0 -140
- package/components/avatar/index.js +0 -388
- package/components/badge/index.js +0 -231
- package/components/breadcrumb/index.js +0 -220
- package/components/button/icon.js +0 -357
- package/components/button/index.js +0 -444
- package/components/button/more.js +0 -210
- package/components/button/ripple-effect.js +0 -81
- package/components/card/body.js +0 -76
- package/components/card/extra.js +0 -76
- package/components/card/footer.js +0 -76
- package/components/card/header.js +0 -80
- package/components/card/index.js +0 -203
- package/components/chart/Pie/Circle.js +0 -50
- package/components/chart/Pie/Sector.js +0 -124
- package/components/chart/Pie/Sectors.js +0 -81
- package/components/chart/Pie/index.js +0 -277
- package/components/chart/Pie-v2/Circle.js +0 -48
- package/components/chart/Pie-v2/Sector.js +0 -108
- package/components/chart/Pie-v2/Sectors.js +0 -204
- package/components/chart/Pie-v2/index.js +0 -488
- package/components/chart/bar/Axis.js +0 -67
- package/components/chart/bar/Bar.js +0 -344
- package/components/chart/bar/Grid.js +0 -97
- package/components/chart/bar/Labels.js +0 -162
- package/components/chart/bar/Points.js +0 -94
- package/components/chart/bar/index.js +0 -161
- package/components/chart/bar-v2/Axis.js +0 -67
- package/components/chart/bar-v2/Bar.js +0 -354
- package/components/chart/bar-v2/Grid.js +0 -97
- package/components/chart/bar-v2/Labels.js +0 -162
- package/components/chart/bar-v2/Points.js +0 -94
- package/components/chart/bar-v2/index.js +0 -161
- package/components/chart/line/Axis.js +0 -68
- package/components/chart/line/Grid.js +0 -99
- package/components/chart/line/Labels.js +0 -160
- package/components/chart/line/Path.js +0 -154
- package/components/chart/line/Point.js +0 -343
- package/components/chart/line/Title.js +0 -52
- package/components/chart/line/index.js +0 -199
- package/components/chart/line-v2/Axis.js +0 -66
- package/components/chart/line-v2/Grid.js +0 -97
- package/components/chart/line-v2/Labels.js +0 -160
- package/components/chart/line-v2/Path.js +0 -153
- package/components/chart/line-v2/Point.js +0 -326
- package/components/chart/line-v2/Title.js +0 -52
- package/components/chart/line-v2/index.js +0 -165
- package/components/check-text/index.js +0 -155
- package/components/check-text/interview-confirmation.js +0 -171
- package/components/check-text/interview-status.js +0 -137
- package/components/chip/attach.js +0 -167
- package/components/chip/index.js +0 -275
- package/components/collapse/index.js +0 -93
- package/components/dialogs/colors.js +0 -13
- package/components/divider/index.js +0 -89
- package/components/form-control/attachment/index.js +0 -1537
- package/components/form-control/calendar/function.js +0 -752
- package/components/form-control/calendar/index.js +0 -317
- package/components/form-control/calendar/range.js +0 -291
- package/components/form-control/checkbox/index.js +0 -329
- package/components/form-control/control/index.js +0 -91
- package/components/form-control/date-input/DateField.js +0 -187
- package/components/form-control/date-input/index.js +0 -292
- package/components/form-control/date-input/useDateInputState.js +0 -129
- package/components/form-control/date-input/useIsFocused.js +0 -20
- package/components/form-control/date-input/useKeyboardInputEvent.js +0 -45
- package/components/form-control/date-input/utils.js +0 -290
- package/components/form-control/date-picker/index.js +0 -357
- package/components/form-control/date-range-picker/index.js +0 -1183
- package/components/form-control/dropdown/index.js +0 -1624
- package/components/form-control/dropdown-box/index.js +0 -238
- package/components/form-control/form/context.js +0 -5
- package/components/form-control/form/index.js +0 -40
- package/components/form-control/form-group/index.js +0 -117
- package/components/form-control/helper-text/index.js +0 -88
- package/components/form-control/input-base/UncontrolledInputBase.js +0 -450
- package/components/form-control/input-base/index.js +0 -646
- package/components/form-control/label/index.js +0 -117
- package/components/form-control/money-input/index.js +0 -513
- package/components/form-control/number-input/index.js +0 -582
- package/components/form-control/number-input/index2.js +0 -481
- package/components/form-control/password-input/index.js +0 -242
- package/components/form-control/phone-input/index.js +0 -364
- package/components/form-control/radio/index.js +0 -224
- package/components/form-control/text-input/index.js +0 -239
- package/components/form-control/time-picker/index.js +0 -781
- package/components/form-control/time-picker/swiper.js +0 -540
- package/components/form-control/time-picker/v2/index.js +0 -809
- package/components/form-control/toggle/index.js +0 -222
- package/components/form-view/helper-text.js +0 -33
- package/components/form-view/index.js +0 -95
- package/components/form-view/input.js +0 -117
- package/components/form-view/label.js +0 -37
- package/components/grid/Col.js +0 -91
- package/components/grid/Container.js +0 -85
- package/components/grid/Row.js +0 -81
- package/components/grid/context.js +0 -3
- package/components/grid/index.js +0 -251
- package/components/image/index.js +0 -170
- package/components/index.js +0 -156
- package/components/list/list-item-action.js +0 -82
- package/components/list/list-item-icon.js +0 -71
- package/components/list/list-item-text.js +0 -56
- package/components/list/list-item.js +0 -108
- package/components/list/list.js +0 -149
- package/components/list/sub-header.js +0 -63
- package/components/modal/body.js +0 -74
- package/components/modal/context.js +0 -6
- package/components/modal/footer.js +0 -78
- package/components/modal/header.js +0 -128
- package/components/modal/index.js +0 -63
- package/components/modal/modal.js +0 -292
- package/components/others/extra/index.js +0 -116
- package/components/others/import/index.js +0 -71
- package/components/others/option-wrapper/index.js +0 -39
- package/components/others/scrollbar/index.js +0 -94
- package/components/paging/page-info.js +0 -582
- package/components/paging/page-selector.js +0 -381
- package/components/paper/index.js +0 -112
- package/components/popover/body.js +0 -86
- package/components/popover/footer.js +0 -84
- package/components/popover/header.js +0 -88
- package/components/popover/index.js +0 -663
- package/components/popup/danger_popup.js +0 -189
- package/components/popup/index.js +0 -414
- package/components/popup/v2/index.js +0 -398
- package/components/progress/circular.js +0 -296
- package/components/progress/linear.js +0 -324
- package/components/rating/index.js +0 -243
- package/components/skeleton/index.js +0 -79
- package/components/slider/slider-container.js +0 -340
- package/components/slider/slider-item.js +0 -205
- package/components/status/index.js +0 -111
- package/components/tab/context.js +0 -3
- package/components/tab/tab-container.js +0 -100
- package/components/tab/tab-header.js +0 -160
- package/components/tab/tab-panel.js +0 -91
- package/components/tab/tab.js +0 -210
- package/components/tooltip/index.js +0 -522
- package/components/tooltip/portal.js +0 -11
- package/components/transfer/index.js +0 -434
- package/components/tree-view/index.js +0 -1017
- package/components/typography/index.js +0 -193
- package/css/styles.css +0 -1
- package/css/styles.css.map +0 -1
- package/global/index.js +0 -194
- package/icons/basic.js +0 -7864
- package/icons/effect.js +0 -131
- package/icons/general/clock/clock.js +0 -20
- package/icons/general/color-handler/background.js +0 -40
- package/icons/general/color-handler/text.js +0 -40
- package/icons/general/emoji/emoji.js +0 -34
- package/icons/general/font-properties/bold.js +0 -20
- package/icons/general/font-properties/font-family.js +0 -34
- package/icons/general/font-properties/font-size.js +0 -26
- package/icons/general/font-properties/italic.js +0 -20
- package/icons/general/font-properties/underline.js +0 -30
- package/icons/general/hyperlink/hyperlink.js +0 -37
- package/icons/general/indent/decrease.js +0 -54
- package/icons/general/indent/increase.js +0 -54
- package/icons/general/index.js +0 -21
- package/icons/general/list/bullets.js +0 -76
- package/icons/general/list/numbering.js +0 -70
- package/icons/general/picture/picture.js +0 -20
- package/icons/general/steps/redo.js +0 -20
- package/icons/general/steps/undo.js +0 -20
- package/icons/general/text-align/center.js +0 -20
- package/icons/general/text-align/justify.js +0 -20
- package/icons/general/text-align/left.js +0 -20
- package/icons/general/text-align/right.js +0 -20
- package/icons/index.js +0 -3
- package/icons/menu/dhr.js +0 -2442
- package/icons/menu/erp.js +0 -491
- package/icons/menu/index.js +0 -5
- package/icons/menu/v2/index.js +0 -71
- package/locale/index.js +0 -11
- package/styles/animation.js +0 -848
- package/styles/animations.js +0 -13
- package/styles/color-helper.js +0 -343
- package/styles/colors.js +0 -476
- package/styles/font.js +0 -24
- package/styles/general.js +0 -568
- package/styles/sx/index.js +0 -28
- package/styles/typography.js +0 -156
- package/styles/utils.js +0 -35
- package/theme/createBreakpoints.js +0 -82
- package/theme/createSpacing.js +0 -10
- package/theme/createTheme.js +0 -26
- package/theme/createZIndex.js +0 -9
- package/theme/index.js +0 -14
- package/theme/make-styles.js +0 -30
- package/theme/settings.js +0 -861
- package/theme/theme-provider.js +0 -102
- package/theme/theme.js +0 -57
- package/theme/use-classes.js +0 -15
- package/theme/utils/getThemeProps.js +0 -12
- package/theme/utils/resolveProps.js +0 -17
- package/theme/utils/useThemeProps.js +0 -14
- package/utils/array/array.js +0 -169
- package/utils/classNames/index.js +0 -25
- package/utils/console.js +0 -27
- package/utils/date.js +0 -401
- package/utils/error/error.js +0 -53
- package/utils/error/errors.js +0 -200
- package/utils/getFileType.js +0 -23
- package/utils/handleBreakpoints.js +0 -25
- package/utils/hexToRGBA/index.js +0 -23
- package/utils/index.js +0 -38
- package/utils/intersectionObserver.js +0 -37
- package/utils/isMobile/index.js +0 -21
- package/utils/isUndefined.js +0 -2
- package/utils/iterator.js +0 -36
- package/utils/map-parent.js +0 -46
- package/utils/object/deepmerge.js +0 -103
- package/utils/object/extend.js +0 -47
- package/utils/object/object.js +0 -54
- package/utils/parseHTML.js +0 -18
- package/utils/promisify.js +0 -34
- package/utils/randomString.js +0 -26
- package/utils/refMethodType.js +0 -6
- package/utils/refType.js +0 -5
- package/utils/remove-unicode.js +0 -5
- package/utils/render-portal.js +0 -87
- package/utils/renderHTML.js +0 -18
- package/utils/renderIcon.js +0 -53
- package/utils/sb-template.js +0 -113
- package/utils/storybook/index.js +0 -1
- package/utils/storybook/refArgTypes.js +0 -41
- package/utils/string/capitalize.js +0 -3
- package/utils/string/capitalizeSentenceCase.js +0 -8
- package/utils/string/string.js +0 -60
- package/utils/type.js +0 -69
- package/utils/updatePosition.js +0 -35
- package/utils/useControlled/index.js +0 -14
- package/utils/useDelayUnmount.js +0 -15
- package/utils/useElementSize.js +0 -55
- package/utils/useEventListener.js +0 -51
- package/utils/useInput.js +0 -33
- package/utils/useMediaQuery/index.js +0 -44
- package/utils/useOnClickOutside.js +0 -21
- package/utils/usePortal.js +0 -49
- package/utils/validate.js +0 -135
- /package/{assets → src/assets}/avatar/default.svg +0 -0
- /package/{assets → src/assets}/fonts/SF-Pro-Display-Bold.otf +0 -0
- /package/{assets → src/assets}/fonts/SF-Pro-Display-Medium.otf +0 -0
- /package/{assets → src/assets}/fonts/SF-Pro-Display-Regular.otf +0 -0
- /package/{assets → src/assets}/fonts/text-security-disc-compat.eot +0 -0
- /package/{assets → src/assets}/fonts/text-security-disc-compat.ttf +0 -0
- /package/{assets → src/assets}/fonts/text-security-disc-compat.woff2 +0 -0
- /package/{assets → src/assets}/fonts/text-security-disc.woff2 +0 -0
- /package/{assets → src/assets}/image/default.png +0 -0
- /package/{assets → src/assets}/images/icons/wifi.svg +0 -0
- /package/{assets → src/assets}/images/menu/bem/WA3F0100.svg +0 -0
- /package/{assets → src/assets}/images/menu/bem/WA3F1025.svg +0 -0
- /package/{assets → src/assets}/images/menu/bem/WA3F2000.svg +0 -0
- /package/{assets → src/assets}/images/menu/bem/WA3F2020.svg +0 -0
- /package/{assets → src/assets}/images/menu/bem/WA3F2030.svg +0 -0
- /package/{assets → src/assets}/images/menu/bem/WA3F2040.svg +0 -0
- /package/{assets → src/assets}/images/menu/bem/WA3F2100.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/ALL.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D00.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D09.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D13.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D15.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D21.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D25.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D29.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D38.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D39.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D51.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D52.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D77.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D84.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/D89.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/Default.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR21N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR29N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR29N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR29N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR29N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR29N0011.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR29N0012.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR29N0013.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR75N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR75N0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR75N0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR75N0008.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR75N0009.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR75N0010.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR89N0014.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MAHR89N0015.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM00N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM00N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM00N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM00N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM00N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM00N0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM00N0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N1010.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N1015.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N1020.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N1025.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N1030.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N1035.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N1040.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM09N1400.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM13N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM13N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM13N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM13N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM15N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM25N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM29N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM29N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM29N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM29N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM29N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM29N0015.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM38N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM38N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM38N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0012.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0013.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0014.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0015.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0016.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0017.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0018.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0019.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0020.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0021.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0022.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM39N0023.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM51N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM51N0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM51N0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM77N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM77N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM82N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM82N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM84N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM84N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM89N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRM89N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP00N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0008.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0009.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0010.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0011.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0012.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0013.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0014.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0015.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0016.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0017.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0018.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0019.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0020.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0021.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0022.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0023.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0024.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0025.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0026.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0027.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0028.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0029.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0030.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0031.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0032.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0033.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0034.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP09N0035.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP13N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP13N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP13N0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP21N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP21N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP25L0101.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP25L0501.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP25N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP25N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP25N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP25N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP25N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0008.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0009.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0010.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0011.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0012.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0013.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0014.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0016.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0017.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0018.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0019.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0020.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0021.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0022.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0023.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0026.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0027.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0028.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0029.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP29N0030.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP38N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP38N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0008.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0009.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0010.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0011.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0013.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0014.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0015.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0017.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0018.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0019.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0020.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N0021.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP39N1222.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP51N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP51N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP51N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP51N0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP52N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP52N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP52N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP75N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP75N0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP75N0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP75N0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP75N0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP75N0008.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP77N0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP77N0008.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP77N0009.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP77N0010.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP77N0011.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP89N1000.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/MHRP89N1001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/TASK.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W00F0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W00F0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W00F0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W00F0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W00F0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2000-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2000.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2002-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2005-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2020-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2022-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2150-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2152-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2160-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W09F2162-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W29F4006-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W75F2260-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W75F2261-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W75F3005-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W75F4070-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W75F4071-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W75F4100-WEB5.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W77F1011.svg +0 -0
- /package/{assets → src/assets}/images/menu/dhr/W77F1013.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/W00F0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/W00F0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/W00F0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/W00F0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76APP0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76APP0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76LIS0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76LIS0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76LIS0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76LIS0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76LIS0005.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76LIS0006.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76LIS0007.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76REQ0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76REQ0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76REQ0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WEO76TRA0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WTM76ACC0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WTM76INF0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WTM76PRO0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/eo/WTM76SYS0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/D05.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/D06.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/D90R.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/DBC.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W00F0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W00F0002.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W00F0003.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W00F0004.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F0001N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F0004N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F0006N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F0007N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F0008N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F0011N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F0013N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W05F4000N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W06F0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W06F0001N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W06F0004N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W06F0005N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W06F0006N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W06F0008N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W94F1000N0000.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/W94F1000N0001.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/WA3F1025.svg +0 -0
- /package/{assets → src/assets}/images/menu/erp/WA3F2100.svg +0 -0
- /package/{assets → src/assets}/storybook/avatar01.svg +0 -0
- /package/{assets → src/assets}/storybook/cover01.svg +0 -0
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import { jsx } from '@emotion/core';
|
|
5
|
-
const Grid = ({
|
|
6
|
-
getX,
|
|
7
|
-
getY,
|
|
8
|
-
gridColor,
|
|
9
|
-
GridLines,
|
|
10
|
-
gridWidth,
|
|
11
|
-
labelsCountY,
|
|
12
|
-
maxX,
|
|
13
|
-
maxY,
|
|
14
|
-
minX,
|
|
15
|
-
minY,
|
|
16
|
-
unitWidth
|
|
17
|
-
}) => {
|
|
18
|
-
let gridX = [];
|
|
19
|
-
let gridY = [];
|
|
20
|
-
for (let i = minX; i <= maxX + unitWidth; i++) {
|
|
21
|
-
gridX.push(jsx("line", {
|
|
22
|
-
key: i,
|
|
23
|
-
x1: getX(i),
|
|
24
|
-
y1: getY(minY),
|
|
25
|
-
x2: getX(i),
|
|
26
|
-
y2: getY(maxY + 5)
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
const yStep = labelsCountY > 0 ? labelsCountY : unitWidth;
|
|
30
|
-
for (let i = minY; i <= maxY; i += Math.floor(maxY / yStep)) {
|
|
31
|
-
gridY.push(jsx("line", {
|
|
32
|
-
key: i,
|
|
33
|
-
x1: getX(minX),
|
|
34
|
-
y1: getY(i),
|
|
35
|
-
x2: getX(maxX + unitWidth + 0.5),
|
|
36
|
-
y2: getY(i)
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
if (GridLines === 'full') {
|
|
40
|
-
return jsx("g", {
|
|
41
|
-
className: 'DGN-Grid-BarChart',
|
|
42
|
-
stroke: gridColor,
|
|
43
|
-
strokeWidth: gridWidth
|
|
44
|
-
}, gridX, gridY);
|
|
45
|
-
}
|
|
46
|
-
if (GridLines === 'horizontal') {
|
|
47
|
-
return jsx("g", {
|
|
48
|
-
className: 'DGN-Grid-BarChart',
|
|
49
|
-
stroke: gridColor,
|
|
50
|
-
strokeWidth: gridWidth
|
|
51
|
-
}, gridY);
|
|
52
|
-
}
|
|
53
|
-
if (GridLines === 'none') {
|
|
54
|
-
return null;
|
|
55
|
-
} else {
|
|
56
|
-
return jsx("g", {
|
|
57
|
-
className: 'DGN-Grid-BarChart',
|
|
58
|
-
stroke: gridColor,
|
|
59
|
-
strokeWidth: gridWidth
|
|
60
|
-
}, gridY);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
Grid.propTypes = {
|
|
64
|
-
/** the getX position x on Ox*/
|
|
65
|
-
getX: PropTypes.func,
|
|
66
|
-
/** the getY position y on Oy */
|
|
67
|
-
getY: PropTypes.func,
|
|
68
|
-
/** change color of grid Columb*/
|
|
69
|
-
gridColor: PropTypes.string,
|
|
70
|
-
/** change Columb grid display style ['full' , 'horizontal', 'none']*/
|
|
71
|
-
GridLines: PropTypes.string,
|
|
72
|
-
/** hiden or show grid columb*/
|
|
73
|
-
gridVisible: PropTypes.bool,
|
|
74
|
-
gridWidth: PropTypes.number,
|
|
75
|
-
labelsCountY: PropTypes.number,
|
|
76
|
-
/** the maxX is maximum of Ox quantity returned by data*/
|
|
77
|
-
maxX: PropTypes.number,
|
|
78
|
-
/** the maxY is maximum of Oy quantity returned by data*/
|
|
79
|
-
maxY: PropTypes.number,
|
|
80
|
-
/** the minX is minimum of OX quantity returned by data*/
|
|
81
|
-
minX: PropTypes.number,
|
|
82
|
-
/** the minY is minimum of Oy quantity returned by data*/
|
|
83
|
-
minY: PropTypes.number,
|
|
84
|
-
/** the unitWidth */
|
|
85
|
-
unitWidth: PropTypes.number
|
|
86
|
-
};
|
|
87
|
-
Grid.defaultProps = {
|
|
88
|
-
getX: x => x,
|
|
89
|
-
getY: y => y,
|
|
90
|
-
gridColor: 'rgba(127, 130, 142, 0.15)',
|
|
91
|
-
GridLines: 'full',
|
|
92
|
-
gridVisible: false,
|
|
93
|
-
gridWidth: 0.5,
|
|
94
|
-
labelsCountY: 5,
|
|
95
|
-
unitWidth: 1
|
|
96
|
-
};
|
|
97
|
-
export default Grid;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/prop-types */
|
|
2
|
-
/** @jsxRuntime classic */
|
|
3
|
-
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/core';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import { useTheme } from "../../../theme";
|
|
7
|
-
import { getProp } from "../../../utils";
|
|
8
|
-
const Labels = ({
|
|
9
|
-
getX,
|
|
10
|
-
getY,
|
|
11
|
-
data,
|
|
12
|
-
labelsColor: labelsColorProp,
|
|
13
|
-
labelsCountY,
|
|
14
|
-
labelsFormatX,
|
|
15
|
-
viewBoxWidth,
|
|
16
|
-
labelsFormatY,
|
|
17
|
-
labelsHeightX,
|
|
18
|
-
labelsOffsetX,
|
|
19
|
-
labelStyle,
|
|
20
|
-
labelsOffsetY,
|
|
21
|
-
labelsVisible,
|
|
22
|
-
maxY,
|
|
23
|
-
minX,
|
|
24
|
-
unitWidth
|
|
25
|
-
}) => {
|
|
26
|
-
const theme = useTheme();
|
|
27
|
-
const {
|
|
28
|
-
colors,
|
|
29
|
-
typography
|
|
30
|
-
} = theme;
|
|
31
|
-
const labelsColor = getProp(colors, labelsColorProp, labelsColorProp);
|
|
32
|
-
const labelContainerCSS = css`
|
|
33
|
-
transform: translate(0, ${labelsOffsetX}px);
|
|
34
|
-
`;
|
|
35
|
-
const Label = css`
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
text-align: center;
|
|
39
|
-
`;
|
|
40
|
-
const LabelCSS = labelStyle === 'italic' ? css`
|
|
41
|
-
fill: ${getProp(colors, 'system/rest')};
|
|
42
|
-
text-anchor: start;
|
|
43
|
-
${typography.paragraph3};
|
|
44
|
-
text-transform: capitalize;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
display: inline-block;
|
|
47
|
-
transform-box: fill-box;
|
|
48
|
-
transform: rotateZ(45deg);
|
|
49
|
-
` : css`
|
|
50
|
-
color: ${getProp(colors, 'system/rest')};
|
|
51
|
-
text-anchor: middle;
|
|
52
|
-
${typography.paragraph3};
|
|
53
|
-
text-transform: capitalize;
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
display: inline-block;
|
|
56
|
-
word-break: break-word;
|
|
57
|
-
`;
|
|
58
|
-
const TextCSS = css`
|
|
59
|
-
${typography.paragraph3};
|
|
60
|
-
fill: ${getProp(colors, 'system/rest')};
|
|
61
|
-
cursor: 'pointer';
|
|
62
|
-
`;
|
|
63
|
-
if (labelsVisible) {
|
|
64
|
-
let xLabels;
|
|
65
|
-
let yLabels;
|
|
66
|
-
let tile = 4;
|
|
67
|
-
let tile2 = 9;
|
|
68
|
-
const TiLe = () => {
|
|
69
|
-
if (viewBoxWidth >= 800) {
|
|
70
|
-
return tile;
|
|
71
|
-
} else {
|
|
72
|
-
return tile2;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
xLabels = labelStyle === 'italic' ? data.map((point, x) => jsx("text", {
|
|
76
|
-
key: x,
|
|
77
|
-
css: LabelCSS,
|
|
78
|
-
fill: labelsColor,
|
|
79
|
-
x: getX(point.x + unitWidth / 2),
|
|
80
|
-
y: getY(0) + labelsHeightX
|
|
81
|
-
}, labelsFormatX(point.name))) : data.map((point, x) => jsx("foreignObject", {
|
|
82
|
-
key: x,
|
|
83
|
-
css: Label,
|
|
84
|
-
x: getX(point.x + unitWidth / TiLe()),
|
|
85
|
-
y: getY(0) + labelsHeightX,
|
|
86
|
-
width: "40",
|
|
87
|
-
height: "80"
|
|
88
|
-
}, jsx("span", {
|
|
89
|
-
css: LabelCSS
|
|
90
|
-
}, labelsFormatX(point.name))));
|
|
91
|
-
const yLabelsRange = [];
|
|
92
|
-
const yStep = labelsCountY > 0 ? labelsCountY : 1;
|
|
93
|
-
for (let i = 0; i <= maxY; i += Math.floor(maxY / yStep)) {
|
|
94
|
-
yLabelsRange.push(i);
|
|
95
|
-
}
|
|
96
|
-
yLabels = yLabelsRange.map(quantity => jsx("text", {
|
|
97
|
-
key: quantity,
|
|
98
|
-
fill: labelsColor,
|
|
99
|
-
x: getX(minX),
|
|
100
|
-
y: getY(quantity) + labelsHeightX / 3,
|
|
101
|
-
transform: `translate(-${labelsOffsetY}, 0)`,
|
|
102
|
-
textAnchor: "end",
|
|
103
|
-
css: TextCSS
|
|
104
|
-
}, labelsFormatY(quantity)));
|
|
105
|
-
return jsx("g", {
|
|
106
|
-
className: 'DGN-Labels-BarChart'
|
|
107
|
-
}, xLabels && jsx("g", {
|
|
108
|
-
className: 'DGN-AxisX',
|
|
109
|
-
css: labelContainerCSS
|
|
110
|
-
}, xLabels), yLabels && jsx("g", {
|
|
111
|
-
className: 'DGN-AxisY'
|
|
112
|
-
}, yLabels));
|
|
113
|
-
} else {
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
Labels.defaultProps = {
|
|
118
|
-
getX: x => x,
|
|
119
|
-
getY: quantity => quantity,
|
|
120
|
-
labelsCharacterWidth: 10,
|
|
121
|
-
labelsColor: 'system/rest',
|
|
122
|
-
labelsCountY: 5,
|
|
123
|
-
labelsFormatX: label => label,
|
|
124
|
-
labelsFormatY: quantity => quantity,
|
|
125
|
-
labelsHeightX: 5,
|
|
126
|
-
labelsOffsetX: 10,
|
|
127
|
-
labelsOffsetY: 10,
|
|
128
|
-
labelsStepX: 1,
|
|
129
|
-
labelsVisible: true,
|
|
130
|
-
unitWidth: 1,
|
|
131
|
-
labelStyle: 'italic'
|
|
132
|
-
};
|
|
133
|
-
Labels.propTypes = {
|
|
134
|
-
/** the getX position x on Ox*/
|
|
135
|
-
getX: PropTypes.func,
|
|
136
|
-
/** the getY position y on Oy */
|
|
137
|
-
getY: PropTypes.func,
|
|
138
|
-
/** the labelsColor change color */
|
|
139
|
-
labelsColor: PropTypes.string,
|
|
140
|
-
/** change style show of label ['', 'italic'], default: 'italic' */
|
|
141
|
-
labelStyle: PropTypes.string,
|
|
142
|
-
labelsCountY: PropTypes.number,
|
|
143
|
-
labelsFormatX: PropTypes.func,
|
|
144
|
-
labelsFormatY: PropTypes.func,
|
|
145
|
-
labelsHeightX: PropTypes.number,
|
|
146
|
-
labelsOffsetX: PropTypes.number,
|
|
147
|
-
labelsOffsetY: PropTypes.number,
|
|
148
|
-
labelsStepX: PropTypes.number,
|
|
149
|
-
/** change show or hiden of label */
|
|
150
|
-
labelsVisible: PropTypes.bool,
|
|
151
|
-
/** the maxX is maximum of Ox quantity returned by data*/
|
|
152
|
-
maxX: PropTypes.number,
|
|
153
|
-
/** the maxY is maximum of Oy quantity returned by data*/
|
|
154
|
-
maxY: PropTypes.number,
|
|
155
|
-
/** the minX is minimum of OX quantity returned by data*/
|
|
156
|
-
minX: PropTypes.number,
|
|
157
|
-
/** the minY is minimum of Oy quantity returned by data*/
|
|
158
|
-
minY: PropTypes.number,
|
|
159
|
-
/** the unitWidth */
|
|
160
|
-
unitWidth: PropTypes.number
|
|
161
|
-
};
|
|
162
|
-
export default Labels;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import { jsx } from '@emotion/core';
|
|
5
|
-
const Points = ({
|
|
6
|
-
data,
|
|
7
|
-
getX,
|
|
8
|
-
getY,
|
|
9
|
-
maxY,
|
|
10
|
-
minX,
|
|
11
|
-
minY,
|
|
12
|
-
pointsColor,
|
|
13
|
-
pointsIsHoverOnZone,
|
|
14
|
-
onHover,
|
|
15
|
-
pointsRadius,
|
|
16
|
-
pointsStrokeColor,
|
|
17
|
-
pointsStrokeWidth,
|
|
18
|
-
pointsVisible,
|
|
19
|
-
unitWidth
|
|
20
|
-
}) => {
|
|
21
|
-
return pointsVisible ? jsx("g", {
|
|
22
|
-
className: 'DGN-Point-BarChart'
|
|
23
|
-
}, data.map((point, i) => {
|
|
24
|
-
return jsx("circle", {
|
|
25
|
-
key: i,
|
|
26
|
-
r: point.active ? pointsRadius * 1.2 : pointsRadius,
|
|
27
|
-
cx: getX(point.x + unitWidth / 2),
|
|
28
|
-
cy: getY(point.quantity),
|
|
29
|
-
onMouseEnter: e => onHover(point, e),
|
|
30
|
-
onMouseLeave: () => onHover(null, null),
|
|
31
|
-
fill: pointsColor,
|
|
32
|
-
stroke: pointsStrokeColor,
|
|
33
|
-
strokeWidth: pointsStrokeWidth
|
|
34
|
-
});
|
|
35
|
-
}), pointsIsHoverOnZone && data.map((point, i) => {
|
|
36
|
-
return jsx("rect", {
|
|
37
|
-
key: i,
|
|
38
|
-
x: getX(point.x > minX ? (data[i].x + data[i - 1].x) / 2 : minX),
|
|
39
|
-
y: getY(maxY),
|
|
40
|
-
fill: 'transparent',
|
|
41
|
-
width: getX(1),
|
|
42
|
-
height: getY(minY),
|
|
43
|
-
onMouseEnter: e => onHover(point, e),
|
|
44
|
-
onMouseLeave: () => onHover(null, null)
|
|
45
|
-
}, jsx("title", null, point.name, " : ", point.quantity));
|
|
46
|
-
})) : null;
|
|
47
|
-
};
|
|
48
|
-
Points.propTypes = {
|
|
49
|
-
data: PropTypes.arrayOf(PropTypes.shape({
|
|
50
|
-
x: PropTypes.number,
|
|
51
|
-
quantity: PropTypes.number
|
|
52
|
-
})).isRequired,
|
|
53
|
-
/** the getX position x on Ox*/
|
|
54
|
-
getX: PropTypes.func,
|
|
55
|
-
/** the getY position y on Oy */
|
|
56
|
-
getY: PropTypes.func,
|
|
57
|
-
/** the maxX is maximum of Ox quantity returned by data*/
|
|
58
|
-
maxX: PropTypes.number,
|
|
59
|
-
/** the maxY is maximum of Oy quantity returned by data*/
|
|
60
|
-
maxY: PropTypes.number,
|
|
61
|
-
/** the minX is minimum of OX quantity returned by data*/
|
|
62
|
-
minX: PropTypes.number,
|
|
63
|
-
/** the minY is minimum of Oy quantity returned by data*/
|
|
64
|
-
minY: PropTypes.number,
|
|
65
|
-
/** change the inner color of the point button */
|
|
66
|
-
pointsColor: PropTypes.string,
|
|
67
|
-
/** show data information when hovering in the area containing the column */
|
|
68
|
-
pointsIsHoverOnZone: PropTypes.bool,
|
|
69
|
-
/** function change event hover */
|
|
70
|
-
onHover: PropTypes.func,
|
|
71
|
-
/** change the radius of the point is created */
|
|
72
|
-
pointsRadius: PropTypes.number,
|
|
73
|
-
/** change the border color of the point button */
|
|
74
|
-
pointsStrokeColor: PropTypes.string,
|
|
75
|
-
/** the thickness of the inner core point */
|
|
76
|
-
pointsStrokeWidth: PropTypes.number,
|
|
77
|
-
/** show or hiden point */
|
|
78
|
-
pointsVisible: PropTypes.bool,
|
|
79
|
-
/** the unitWidth */
|
|
80
|
-
unitWidth: PropTypes.number
|
|
81
|
-
};
|
|
82
|
-
Points.defaultProps = {
|
|
83
|
-
getX: x => x,
|
|
84
|
-
getY: quantity => quantity,
|
|
85
|
-
pointsColor: '#fff',
|
|
86
|
-
pointsIsHoverOnZone: false,
|
|
87
|
-
onHover: () => {},
|
|
88
|
-
pointsRadius: 3,
|
|
89
|
-
pointsStrokeColor: '#111d5e',
|
|
90
|
-
pointsStrokeWidth: 1,
|
|
91
|
-
pointsVisible: false,
|
|
92
|
-
unitWidth: 1
|
|
93
|
-
};
|
|
94
|
-
export default Points;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { memo, forwardRef } from 'react';
|
|
5
|
-
import { jsx } from '@emotion/core';
|
|
6
|
-
import Axis from "./Axis";
|
|
7
|
-
import Points from "./Points";
|
|
8
|
-
import Labels from "./Labels";
|
|
9
|
-
import Grid from "./Grid";
|
|
10
|
-
import Bars from "./Bar";
|
|
11
|
-
import { randomString } from "../../../utils";
|
|
12
|
-
const BarChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(({
|
|
13
|
-
labelsVisible,
|
|
14
|
-
labelsCharacterWidth,
|
|
15
|
-
labelsCountY,
|
|
16
|
-
data,
|
|
17
|
-
viewBoxHeight,
|
|
18
|
-
labelsOffsetY,
|
|
19
|
-
viewBoxWidth,
|
|
20
|
-
labelsOffsetX,
|
|
21
|
-
labelsHeightX,
|
|
22
|
-
...props
|
|
23
|
-
}, ref) => {
|
|
24
|
-
const dataSource = data.map((item, i) => ({
|
|
25
|
-
...item,
|
|
26
|
-
x: i
|
|
27
|
-
}));
|
|
28
|
-
const UNIT_WIDTH = 1;
|
|
29
|
-
const id = 'DGN-CUI-BarChart-' + randomString(6, {
|
|
30
|
-
allowNumber: false,
|
|
31
|
-
allowSymbol: false
|
|
32
|
-
});
|
|
33
|
-
const round = n => {
|
|
34
|
-
return Math.round(n * 100) / 100;
|
|
35
|
-
};
|
|
36
|
-
const getMinX = () => {
|
|
37
|
-
return dataSource.length > 0 ? dataSource[0].x : 0;
|
|
38
|
-
};
|
|
39
|
-
const getMaxX = () => {
|
|
40
|
-
return dataSource.length > 0 ? dataSource[dataSource.length - 1].x : 0;
|
|
41
|
-
};
|
|
42
|
-
const getMinY = () => {
|
|
43
|
-
return 0;
|
|
44
|
-
};
|
|
45
|
-
const getMaxY = () => {
|
|
46
|
-
const yStep = labelsCountY > 0 ? labelsCountY : 1;
|
|
47
|
-
const maxY = dataSource.length > 0 ? dataSource.reduce((max, point) => point.quantity > max ? point.quantity : max, dataSource[0].quantity) : 0;
|
|
48
|
-
return maxY ? Math.ceil(maxY / yStep) * yStep : yStep;
|
|
49
|
-
};
|
|
50
|
-
const getSvgX = x => {
|
|
51
|
-
const minX = getMinX();
|
|
52
|
-
const maxX = getMaxX();
|
|
53
|
-
const paddingLeft = getLabelsYWidth();
|
|
54
|
-
return round((x - minX) / (maxX + 1 - minX) * (Math.abs(viewBoxWidth) - paddingLeft));
|
|
55
|
-
};
|
|
56
|
-
const getSvgY = y => {
|
|
57
|
-
const paddingBottom = labelsVisible ? labelsHeightX + labelsOffsetX : 0;
|
|
58
|
-
const height = Math.abs(viewBoxHeight) - paddingBottom;
|
|
59
|
-
const maxY = getMaxY();
|
|
60
|
-
return round(height - y / maxY * height);
|
|
61
|
-
};
|
|
62
|
-
const getLabelsYWidth = () => {
|
|
63
|
-
const maxY = getMaxY();
|
|
64
|
-
return labelsVisible ? maxY.toString().length * labelsCharacterWidth + labelsOffsetY : 0;
|
|
65
|
-
};
|
|
66
|
-
const minX = getMinX();
|
|
67
|
-
const maxX = getMaxX();
|
|
68
|
-
const maxY = getMaxY();
|
|
69
|
-
const minY = getMinY();
|
|
70
|
-
const commonProps = {
|
|
71
|
-
getX: getSvgX.bind(),
|
|
72
|
-
getY: getSvgY.bind(),
|
|
73
|
-
maxX: maxX,
|
|
74
|
-
maxY: maxY,
|
|
75
|
-
minX: minX,
|
|
76
|
-
minY: minY,
|
|
77
|
-
round: round,
|
|
78
|
-
labelsWidthY: getLabelsYWidth(),
|
|
79
|
-
unitWidth: UNIT_WIDTH
|
|
80
|
-
};
|
|
81
|
-
return jsx("svg", {
|
|
82
|
-
id: id,
|
|
83
|
-
ref: ref,
|
|
84
|
-
viewBox: `0 0 ${Math.abs(viewBoxWidth)} ${Math.abs(viewBoxHeight)}`,
|
|
85
|
-
style: {
|
|
86
|
-
display: 'block',
|
|
87
|
-
overflow: 'visible',
|
|
88
|
-
margin: `${getLabelsYWidth() * 2}`
|
|
89
|
-
}
|
|
90
|
-
}, jsx(Axis, {
|
|
91
|
-
...props,
|
|
92
|
-
...commonProps
|
|
93
|
-
}), jsx(Grid, {
|
|
94
|
-
...props,
|
|
95
|
-
...commonProps
|
|
96
|
-
}), jsx(Bars, {
|
|
97
|
-
data: dataSource,
|
|
98
|
-
viewBoxWidth: viewBoxWidth,
|
|
99
|
-
...props,
|
|
100
|
-
...commonProps
|
|
101
|
-
}), jsx(Labels, {
|
|
102
|
-
data: dataSource,
|
|
103
|
-
viewBoxWidth: viewBoxWidth,
|
|
104
|
-
...props,
|
|
105
|
-
...commonProps
|
|
106
|
-
}), jsx(Points, {
|
|
107
|
-
data: dataSource,
|
|
108
|
-
...props,
|
|
109
|
-
...commonProps
|
|
110
|
-
}));
|
|
111
|
-
}));
|
|
112
|
-
BarChart.defaultProps = {
|
|
113
|
-
data: [],
|
|
114
|
-
viewBoxHeight: 200,
|
|
115
|
-
viewBoxWidth: 500,
|
|
116
|
-
...Bars.defaultProps,
|
|
117
|
-
...Axis.defaultProps,
|
|
118
|
-
...Grid.defaultProps,
|
|
119
|
-
...Points.defaultProps,
|
|
120
|
-
...Labels.defaultProps
|
|
121
|
-
};
|
|
122
|
-
BarChart.propTypes = {
|
|
123
|
-
data: PropTypes.arrayOf(PropTypes.shape({
|
|
124
|
-
x: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
125
|
-
quantity: PropTypes.number
|
|
126
|
-
})).isRequired,
|
|
127
|
-
/** drawn Ratio of viewBoxHeight entered by user, default is: 200px */
|
|
128
|
-
viewBoxHeight: PropTypes.number,
|
|
129
|
-
/** drawn Ratio of viewBoxWidth entered by user, default is: 500px */
|
|
130
|
-
viewBoxWidth: PropTypes.number,
|
|
131
|
-
/** change color of Bar in BarChart */
|
|
132
|
-
barsColor: PropTypes.string,
|
|
133
|
-
/** change ColumB grid display style ['full' , 'horizontal', 'none']*/
|
|
134
|
-
GridLines: PropTypes.string,
|
|
135
|
-
//** change style show of label (default, italic) */
|
|
136
|
-
labelStyle: PropTypes.string,
|
|
137
|
-
/** the axisVisible Hide or show the Axis axis */
|
|
138
|
-
axisVisible: PropTypes.bool,
|
|
139
|
-
/** the axisColor change color */
|
|
140
|
-
axisColor: PropTypes.string,
|
|
141
|
-
/** change color of grid Columb*/
|
|
142
|
-
gridColor: PropTypes.string,
|
|
143
|
-
/** show data information when hovering in the area containing the column */
|
|
144
|
-
pointsIsHoverOnZone: PropTypes.bool,
|
|
145
|
-
/** show or hiden point */
|
|
146
|
-
pointsVisible: PropTypes.bool,
|
|
147
|
-
/** change the inner color of the point button */
|
|
148
|
-
pointsColor: PropTypes.string,
|
|
149
|
-
/** change the border color of the point button */
|
|
150
|
-
pointsStrokeColor: PropTypes.string,
|
|
151
|
-
/** the thickness of the inner core point */
|
|
152
|
-
pointsStrokeWidth: PropTypes.number,
|
|
153
|
-
/** change the radius of the point is created */
|
|
154
|
-
pointsRadius: PropTypes.number,
|
|
155
|
-
...Bars.propTypes,
|
|
156
|
-
...Grid.propTypes,
|
|
157
|
-
...Axis.propTypes,
|
|
158
|
-
...Points.propTypes,
|
|
159
|
-
...Labels.propTypes
|
|
160
|
-
};
|
|
161
|
-
export default BarChart;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { jsx } from '@emotion/core';
|
|
5
|
-
const Axis = ({
|
|
6
|
-
axisColor,
|
|
7
|
-
axisVisible,
|
|
8
|
-
axisWidth,
|
|
9
|
-
getX,
|
|
10
|
-
getY,
|
|
11
|
-
// maxX,
|
|
12
|
-
// maxY,
|
|
13
|
-
minX,
|
|
14
|
-
minY
|
|
15
|
-
// unitWidth,
|
|
16
|
-
}) => {
|
|
17
|
-
// drawn Oxygen coordinate systems for width and height are entered or by default
|
|
18
|
-
return axisVisible ? jsx("g", {
|
|
19
|
-
className: 'DGN-UI-LineChart-Axis',
|
|
20
|
-
stroke: axisColor,
|
|
21
|
-
strokeWidth: axisWidth
|
|
22
|
-
}, jsx("line", {
|
|
23
|
-
x1: getX(minX),
|
|
24
|
-
y1: getY(minY)
|
|
25
|
-
// x2={getX(maxX + unitWidth + 0.5)}
|
|
26
|
-
,
|
|
27
|
-
x2: '100%',
|
|
28
|
-
y2: getY(minY)
|
|
29
|
-
}), jsx("line", {
|
|
30
|
-
x1: getX(minX),
|
|
31
|
-
y1: getY(minX),
|
|
32
|
-
x2: getX(minX),
|
|
33
|
-
y2: '-10%'
|
|
34
|
-
})) : null;
|
|
35
|
-
};
|
|
36
|
-
Axis.defaultProps = {
|
|
37
|
-
axisColor: '#7F828E',
|
|
38
|
-
axisVisible: true,
|
|
39
|
-
axisWidth: 0.5,
|
|
40
|
-
getX: x => x,
|
|
41
|
-
getY: quantity => quantity,
|
|
42
|
-
unitWidth: 1
|
|
43
|
-
};
|
|
44
|
-
Axis.propTypes = {
|
|
45
|
-
/** the axisColor change color */
|
|
46
|
-
axisColor: PropTypes.string,
|
|
47
|
-
/** the axisOpacity property sets the opacity of an element*/
|
|
48
|
-
axisOpacity: PropTypes.number,
|
|
49
|
-
/** the axisVisible Hide or show the Axis axis */
|
|
50
|
-
axisVisible: PropTypes.bool,
|
|
51
|
-
/** the axisWidth change the thickness of the column */
|
|
52
|
-
axisWidth: PropTypes.number,
|
|
53
|
-
/** the getX position x on Ox*/
|
|
54
|
-
getX: PropTypes.func,
|
|
55
|
-
/** the getY position y on Oy */
|
|
56
|
-
getY: PropTypes.func,
|
|
57
|
-
/** the maxX is maximum of Ox quantity returned by data*/
|
|
58
|
-
maxX: PropTypes.number,
|
|
59
|
-
/** the maxY is maximum of Oy quantity returned by data*/
|
|
60
|
-
maxY: PropTypes.number,
|
|
61
|
-
/** the minX is minimum of OX quantity returned by data*/
|
|
62
|
-
minX: PropTypes.number,
|
|
63
|
-
/** the minY is minimum of Oy quantity returned by data*/
|
|
64
|
-
minY: PropTypes.number,
|
|
65
|
-
/** the unitWidth */
|
|
66
|
-
unitWidth: PropTypes.number
|
|
67
|
-
};
|
|
68
|
-
export default Axis;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { jsx } from '@emotion/core';
|
|
5
|
-
const Grid = ({
|
|
6
|
-
getX,
|
|
7
|
-
getY,
|
|
8
|
-
gridColor,
|
|
9
|
-
GridLines,
|
|
10
|
-
gridWidth,
|
|
11
|
-
labelsCountY,
|
|
12
|
-
maxX,
|
|
13
|
-
maxY,
|
|
14
|
-
minX,
|
|
15
|
-
minY,
|
|
16
|
-
unitWidth
|
|
17
|
-
}) => {
|
|
18
|
-
let gridX = [];
|
|
19
|
-
let gridY = [];
|
|
20
|
-
for (let i = minX; i <= maxX; i++) {
|
|
21
|
-
gridX.push(jsx("line", {
|
|
22
|
-
key: i,
|
|
23
|
-
x1: getX(i + unitWidth / 1.5),
|
|
24
|
-
y1: getY(minY),
|
|
25
|
-
x2: getX(i + unitWidth / 1.5),
|
|
26
|
-
y2: getY(maxY + 10)
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
const yStep = labelsCountY > 0 ? labelsCountY : unitWidth;
|
|
30
|
-
for (let i = minY; i <= maxY; i += Math.floor(maxY / yStep)) {
|
|
31
|
-
gridY.push(jsx("line", {
|
|
32
|
-
key: i,
|
|
33
|
-
x1: getX(minX),
|
|
34
|
-
y1: getY(i)
|
|
35
|
-
// x2={getX(maxX + unitWidth + 0.5)}
|
|
36
|
-
,
|
|
37
|
-
x2: '100%',
|
|
38
|
-
y2: getY(i)
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
if (GridLines === 'full') {
|
|
42
|
-
return jsx("g", {
|
|
43
|
-
className: 'DGN-Grid-LineChart',
|
|
44
|
-
stroke: gridColor,
|
|
45
|
-
strokeWidth: gridWidth
|
|
46
|
-
}, gridX, gridY);
|
|
47
|
-
}
|
|
48
|
-
if (GridLines === 'horizontal') {
|
|
49
|
-
return jsx("g", {
|
|
50
|
-
className: 'DGN-Grid-LineChart',
|
|
51
|
-
stroke: gridColor,
|
|
52
|
-
strokeWidth: gridWidth
|
|
53
|
-
}, gridY);
|
|
54
|
-
}
|
|
55
|
-
if (GridLines === 'none') {
|
|
56
|
-
return null;
|
|
57
|
-
} else {
|
|
58
|
-
return jsx("g", {
|
|
59
|
-
className: 'DGN-Grid-LineChart',
|
|
60
|
-
stroke: gridColor,
|
|
61
|
-
strokeWidth: gridWidth
|
|
62
|
-
}, gridY);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
Grid.propTypes = {
|
|
66
|
-
/** the getX position x on Ox*/
|
|
67
|
-
getX: PropTypes.func,
|
|
68
|
-
/** the getY position y on Oy */
|
|
69
|
-
getY: PropTypes.func,
|
|
70
|
-
/** change color of grid Line*/
|
|
71
|
-
gridColor: PropTypes.string,
|
|
72
|
-
/** change Line grid display style ['full' , 'horizontal', 'none'], default: 'full'*/
|
|
73
|
-
GridLines: PropTypes.string,
|
|
74
|
-
/** hiden or show grid Line*/
|
|
75
|
-
gridVisible: PropTypes.bool,
|
|
76
|
-
gridWidth: PropTypes.number,
|
|
77
|
-
labelsCountY: PropTypes.number,
|
|
78
|
-
/** the maxX is maximum of Ox quantity returned by data*/
|
|
79
|
-
maxX: PropTypes.number,
|
|
80
|
-
/** the maxY is maximum of Oy quantity returned by data*/
|
|
81
|
-
maxY: PropTypes.number,
|
|
82
|
-
/** the minX is minimum of OX quantity returned by data*/
|
|
83
|
-
minX: PropTypes.number,
|
|
84
|
-
/** the minY is minimum of Oy quantity returned by data*/
|
|
85
|
-
minY: PropTypes.number,
|
|
86
|
-
/** the unitWidth */
|
|
87
|
-
unitWidth: PropTypes.number
|
|
88
|
-
};
|
|
89
|
-
Grid.defaultProps = {
|
|
90
|
-
getX: x => x,
|
|
91
|
-
getY: y => y,
|
|
92
|
-
gridColor: 'rgba(127, 130, 142, 0.15)',
|
|
93
|
-
GridLines: 'full',
|
|
94
|
-
gridVisible: false,
|
|
95
|
-
gridWidth: 0.5,
|
|
96
|
-
labelsCountY: 5,
|
|
97
|
-
unitWidth: 1
|
|
98
|
-
};
|
|
99
|
-
export default Grid;
|