diginet-core-ui 1.3.24
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/assets/avatar/default.svg +3 -0
- package/assets/images/menu/dhr/Default.svg +13 -0
- package/assets/images/menu/dhr/MHRM00N0001.svg +14 -0
- package/assets/images/menu/dhr/MHRM09N0001.svg +1 -0
- package/assets/images/menu/dhr/MHRM09N0002.svg +3 -0
- package/assets/images/menu/dhr/MHRM09N0003.svg +25 -0
- package/assets/images/menu/dhr/MHRM25N0001.svg +26 -0
- package/assets/images/menu/dhr/MHRM29N0001.svg +30 -0
- package/assets/images/menu/dhr/MHRM29N0015.svg +63 -0
- package/assets/images/menu/dhr/MHRM39N0012.svg +43 -0
- package/assets/images/menu/dhr/MHRM39N0013.svg +24 -0
- package/assets/images/menu/dhr/MHRM39N0014.svg +14 -0
- package/assets/images/menu/dhr/MHRM39N0015.svg +36 -0
- package/assets/images/menu/dhr/MHRM39N0016.svg +23 -0
- package/assets/images/menu/dhr/MHRM77N0001.svg +28 -0
- package/assets/images/menu/dhr/MHRM84N0001.svg +27 -0
- package/assets/images/menu/dhr/MHRM84N0002.svg +24 -0
- package/assets/images/menu/dhr/MHRM89N0001.svg +16 -0
- package/assets/images/menu/dhr/MHRP00N0001.svg +10 -0
- package/assets/images/menu/dhr/MHRP09N0001.svg +22 -0
- package/assets/images/menu/dhr/MHRP09N0002.svg +19 -0
- package/assets/images/menu/dhr/MHRP09N0003.svg +12 -0
- package/assets/images/menu/dhr/MHRP09N0004.svg +6 -0
- package/assets/images/menu/dhr/MHRP09N0005.svg +10 -0
- package/assets/images/menu/dhr/MHRP09N0006.svg +17 -0
- package/assets/images/menu/dhr/MHRP09N0007.svg +15 -0
- package/assets/images/menu/dhr/MHRP09N0008.svg +8 -0
- package/assets/images/menu/dhr/MHRP09N0009.svg +10 -0
- package/assets/images/menu/dhr/MHRP09N0010.svg +12 -0
- package/assets/images/menu/dhr/MHRP09N0011.svg +16 -0
- package/assets/images/menu/dhr/MHRP09N0012.svg +6 -0
- package/assets/images/menu/dhr/MHRP09N0013.svg +8 -0
- package/assets/images/menu/dhr/MHRP09N0014.svg +11 -0
- package/assets/images/menu/dhr/MHRP09N0015.svg +12 -0
- package/assets/images/menu/dhr/MHRP09N0016.svg +18 -0
- package/assets/images/menu/dhr/MHRP09N0017.svg +18 -0
- package/assets/images/menu/dhr/MHRP09N0018.svg +12 -0
- package/assets/images/menu/dhr/MHRP09N0019.svg +13 -0
- package/assets/images/menu/dhr/MHRP09N0020.svg +17 -0
- package/assets/images/menu/dhr/MHRP09N0021.svg +10 -0
- package/assets/images/menu/dhr/MHRP09N0022.svg +16 -0
- package/assets/images/menu/dhr/MHRP09N0023.svg +8 -0
- package/assets/images/menu/dhr/MHRP09N0024.svg +15 -0
- package/assets/images/menu/dhr/MHRP09N0025.svg +16 -0
- package/assets/images/menu/dhr/MHRP09N0026.svg +13 -0
- package/assets/images/menu/dhr/MHRP09N0027.svg +10 -0
- package/assets/images/menu/dhr/MHRP13N0001.svg +9 -0
- package/assets/images/menu/dhr/MHRP21N0001.svg +12 -0
- package/assets/images/menu/dhr/MHRP21N0002.svg +13 -0
- package/assets/images/menu/dhr/MHRP25N0001.svg +13 -0
- package/assets/images/menu/dhr/MHRP25N0002.svg +16 -0
- package/assets/images/menu/dhr/MHRP25N0003.svg +38 -0
- package/assets/images/menu/dhr/MHRP25N0004.svg +17 -0
- package/assets/images/menu/dhr/MHRP25N0005.svg +20 -0
- package/assets/images/menu/dhr/MHRP29N0001.svg +18 -0
- package/assets/images/menu/dhr/MHRP29N0002.svg +15 -0
- package/assets/images/menu/dhr/MHRP29N0003.svg +20 -0
- package/assets/images/menu/dhr/MHRP29N0004.svg +21 -0
- package/assets/images/menu/dhr/MHRP29N0005.svg +21 -0
- package/assets/images/menu/dhr/MHRP29N0006.svg +14 -0
- package/assets/images/menu/dhr/MHRP29N0007.svg +19 -0
- package/assets/images/menu/dhr/MHRP29N0008.svg +20 -0
- package/assets/images/menu/dhr/MHRP29N0009.svg +11 -0
- package/assets/images/menu/dhr/MHRP29N0010.svg +11 -0
- package/assets/images/menu/dhr/MHRP29N0011.svg +12 -0
- package/assets/images/menu/dhr/MHRP29N0013.svg +27 -0
- package/assets/images/menu/dhr/MHRP29N0014.svg +32 -0
- package/assets/images/menu/dhr/MHRP29N0016.svg +54 -0
- package/assets/images/menu/dhr/MHRP29N0017.svg +24 -0
- package/assets/images/menu/dhr/MHRP29N0018.svg +44 -0
- package/assets/images/menu/dhr/MHRP29N0019.svg +17 -0
- package/assets/images/menu/dhr/MHRP29N0020.svg +11 -0
- package/assets/images/menu/dhr/MHRP38N0001.svg +13 -0
- package/assets/images/menu/dhr/MHRP38N0002.svg +14 -0
- package/assets/images/menu/dhr/MHRP39N0001.svg +15 -0
- package/assets/images/menu/dhr/MHRP39N0002.svg +13 -0
- package/assets/images/menu/dhr/MHRP39N0003.svg +16 -0
- package/assets/images/menu/dhr/MHRP39N0004.svg +22 -0
- package/assets/images/menu/dhr/MHRP39N0005.svg +16 -0
- package/assets/images/menu/dhr/MHRP39N0006.svg +17 -0
- package/assets/images/menu/dhr/MHRP39N0007.svg +13 -0
- package/assets/images/menu/dhr/MHRP39N0008.svg +3 -0
- package/assets/images/menu/dhr/MHRP39N0009.svg +3 -0
- package/assets/images/menu/dhr/MHRP39N0010.svg +7 -0
- package/assets/images/menu/dhr/MHRP39N0011.svg +14 -0
- package/assets/images/menu/dhr/MHRP39N0013.svg +10 -0
- package/assets/images/menu/dhr/MHRP39N0014.svg +11 -0
- package/assets/images/menu/dhr/MHRP39N1222.svg +12 -0
- package/assets/images/menu/dhr/MHRP51N0001.svg +9 -0
- package/assets/images/menu/dhr/MHRP51N0002.svg +13 -0
- package/assets/images/menu/dhr/MHRP52N0001.svg +21 -0
- package/assets/images/menu/dhr/MHRP52N0002.svg +21 -0
- package/assets/images/menu/dhr/MHRP52N0003.svg +16 -0
- package/assets/images/menu/dhr/MHRP75N0001.svg +19 -0
- package/assets/images/menu/dhr/MHRP75N0002.svg +25 -0
- package/assets/images/menu/dhr/MHRP75N0003.svg +3 -0
- package/assets/images/menu/dhr/MHRP75N0006.svg +14 -0
- package/assets/images/menu/dhr/MHRP75N0007.svg +19 -0
- package/assets/images/menu/dhr/MHRP75N0008.svg +19 -0
- package/assets/images/menu/dhr/MHRP77N0007.svg +28 -0
- package/assets/images/menu/dhr/MHRP77N0008.svg +17 -0
- package/assets/images/menu/dhr/MHRP77N0009.svg +19 -0
- package/assets/images/menu/dhr/MHRP77N0010.svg +20 -0
- package/assets/images/menu/dhr/MHRP89N1000.svg +6 -0
- package/assets/images/menu/dhr/MHRP89N1001.svg +6 -0
- package/assets/images/menu/dhr/W00F0001.svg +3 -0
- package/assets/images/menu/dhr/W00F0002.svg +3 -0
- package/assets/images/menu/dhr/W00F0003.svg +3 -0
- package/assets/images/menu/dhr/W00F0004.svg +3 -0
- package/assets/images/menu/dhr/W00F0005.svg +1 -0
- package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -0
- package/assets/images/menu/dhr/W09F2000.svg +6 -0
- package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -0
- package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -0
- package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -0
- package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -0
- package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -0
- package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -0
- package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -0
- package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -0
- package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -0
- package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -0
- package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -0
- package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -0
- package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -0
- package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -0
- package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -0
- package/assets/images/menu/dhr/W77F1011.svg +19 -0
- package/assets/images/menu/dhr/W77F1013.svg +22 -0
- package/assets/images/menu/erp/W00F0001.svg +3 -0
- package/assets/images/menu/erp/W00F0002.svg +3 -0
- package/assets/images/menu/erp/W00F0003.svg +3 -0
- package/assets/images/menu/erp/W00F0004.svg +3 -0
- package/assets/images/menu/erp/W05F0001.svg +16 -0
- package/assets/images/menu/erp/W05F0001N0000.svg +16 -0
- package/assets/images/menu/erp/W05F0004N0000.svg +6 -0
- package/assets/images/menu/erp/W05F0006.svg +30 -0
- package/assets/images/menu/erp/W05F0007N0000.svg +6 -0
- package/assets/images/menu/erp/W05F0008.svg +14 -0
- package/assets/images/menu/erp/W05F4000.svg +9 -0
- package/assets/images/menu/erp/W06F0001.svg +17 -0
- package/assets/images/menu/erp/W06F0001N0000.svg +17 -0
- package/assets/images/menu/erp/W06F0004N0000.svg +22 -0
- package/assets/images/menu/erp/W06F0005.svg +22 -0
- package/assets/images/menu/erp/W06F0006.svg +55 -0
- package/assets/images/menu/erp/W06F0008.svg +17 -0
- package/assets/images/menu/erp/WA3F1025.svg +5 -0
- package/assets/images/menu/erp/WA3F2100.svg +10 -0
- package/components/accordion/context.js +6 -0
- package/components/accordion/css.js +159 -0
- package/components/accordion/details.js +60 -0
- package/components/accordion/group.js +122 -0
- package/components/accordion/index.js +117 -0
- package/components/accordion/summary.js +175 -0
- package/components/alert/index.js +264 -0
- package/components/alert/notify.js +192 -0
- package/components/avatar/index.js +556 -0
- package/components/badge/index.js +223 -0
- package/components/button/icon.js +493 -0
- package/components/button/index.js +653 -0
- package/components/button/more.js +135 -0
- package/components/button/ripple-effect.js +85 -0
- package/components/card/body-card.js +67 -0
- package/components/card/card.js +127 -0
- package/components/card/context.js +6 -0
- package/components/card/index.js +50 -0
- package/components/chart/Pie/Circle.js +50 -0
- package/components/chart/Pie/Sector.js +142 -0
- package/components/chart/Pie/Sectors.js +91 -0
- package/components/chart/Pie/index.js +311 -0
- package/components/chart/Pie-v2/Circle.js +50 -0
- package/components/chart/Pie-v2/Sector.js +128 -0
- package/components/chart/Pie-v2/Sectors.js +224 -0
- package/components/chart/Pie-v2/index.js +397 -0
- package/components/chart/bar/Axis.js +79 -0
- package/components/chart/bar/Bar.js +365 -0
- package/components/chart/bar/Grid.js +115 -0
- package/components/chart/bar/Labels.js +175 -0
- package/components/chart/bar/Points.js +111 -0
- package/components/chart/bar/index.js +172 -0
- package/components/chart/bar-v2/Axis.js +79 -0
- package/components/chart/bar-v2/Bar.js +374 -0
- package/components/chart/bar-v2/Grid.js +115 -0
- package/components/chart/bar-v2/Labels.js +175 -0
- package/components/chart/bar-v2/Points.js +111 -0
- package/components/chart/bar-v2/index.js +172 -0
- package/components/chart/line/Axis.js +79 -0
- package/components/chart/line/Grid.js +115 -0
- package/components/chart/line/Labels.js +172 -0
- package/components/chart/line/Path.js +163 -0
- package/components/chart/line/Point.js +348 -0
- package/components/chart/line/Title.js +56 -0
- package/components/chart/line/index.js +174 -0
- package/components/chart/line-v2/Axis.js +79 -0
- package/components/chart/line-v2/Grid.js +115 -0
- package/components/chart/line-v2/Labels.js +172 -0
- package/components/chart/line-v2/Path.js +163 -0
- package/components/chart/line-v2/Point.js +354 -0
- package/components/chart/line-v2/Title.js +56 -0
- package/components/chart/line-v2/index.js +174 -0
- package/components/check-text/index.js +157 -0
- package/components/check-text/interview-confirmation.js +172 -0
- package/components/check-text/interview-status.js +138 -0
- package/components/chip/attach.js +180 -0
- package/components/chip/index.js +340 -0
- package/components/collapse/index.js +67 -0
- package/components/dialogs/colors.js +11 -0
- package/components/divider/index.js +71 -0
- package/components/divider/style.js +12 -0
- package/components/form-control/attachment/index.js +1890 -0
- package/components/form-control/calendar/function.js +673 -0
- package/components/form-control/calendar/index.js +248 -0
- package/components/form-control/calendar/range.js +293 -0
- package/components/form-control/checkbox/index.js +306 -0
- package/components/form-control/control/index.js +92 -0
- package/components/form-control/date-picker/index-old.js +953 -0
- package/components/form-control/date-picker/index.js +676 -0
- package/components/form-control/date-range-picker/index.js +1305 -0
- package/components/form-control/dropdown/index.js +1865 -0
- package/components/form-control/dropdown-box/index.js +292 -0
- package/components/form-control/form/context.js +5 -0
- package/components/form-control/form/index.js +41 -0
- package/components/form-control/form-group/index.js +118 -0
- package/components/form-control/helper-text/index.js +71 -0
- package/components/form-control/input-base/index.js +733 -0
- package/components/form-control/label/index.js +73 -0
- package/components/form-control/money-input/index.js +491 -0
- package/components/form-control/number-input/index.js +633 -0
- package/components/form-control/phone-input/index.js +433 -0
- package/components/form-control/radio/index.js +263 -0
- package/components/form-control/text-input/index.js +523 -0
- package/components/form-control/time-picker/index.js +829 -0
- package/components/form-control/time-picker/swiper.js +590 -0
- package/components/form-control/toggle/index.js +250 -0
- package/components/form-view/helper-text.js +33 -0
- package/components/form-view/index.js +107 -0
- package/components/form-view/input.js +129 -0
- package/components/form-view/label.js +38 -0
- package/components/index.js +100 -0
- package/components/list/list-item-action.js +82 -0
- package/components/list/list-item-icon.js +76 -0
- package/components/list/list-item-text.js +57 -0
- package/components/list/list-item.js +114 -0
- package/components/list/list.js +155 -0
- package/components/list/sub-header.js +61 -0
- package/components/modal/body.js +71 -0
- package/components/modal/context.js +6 -0
- package/components/modal/footer.js +63 -0
- package/components/modal/header.js +108 -0
- package/components/modal/index.js +69 -0
- package/components/modal/modal.js +339 -0
- package/components/others/extra/index.js +124 -0
- package/components/others/scrollbar/index.js +95 -0
- package/components/paging/page-info.js +298 -0
- package/components/paging/page-selector.js +281 -0
- package/components/paper/index.js +119 -0
- package/components/popover/index.js +417 -0
- package/components/popup/danger_popup.js +215 -0
- package/components/popup/index.js +469 -0
- package/components/popup/proposals_popup.js +364 -0
- package/components/popup/v2/danger-popup.js +17 -0
- package/components/popup/v2/index.js +460 -0
- package/components/popup/v2/info-popup.js +17 -0
- package/components/popup/v2/success-popup.js +17 -0
- package/components/popup/v2/warning-popup.js +17 -0
- package/components/popup/v2/yes-no-popup.js +20 -0
- package/components/progress/circular.js +414 -0
- package/components/progress/linear.js +327 -0
- package/components/rating/index.js +392 -0
- package/components/slider/slider-container.js +356 -0
- package/components/slider/slider-item.js +183 -0
- package/components/status/index.js +123 -0
- package/components/tab/context.js +3 -0
- package/components/tab/tab-container.js +83 -0
- package/components/tab/tab-header.js +133 -0
- package/components/tab/tab-panel.js +51 -0
- package/components/tab/tab.js +206 -0
- package/components/tooltip/index.js +602 -0
- package/components/tooltip/portal.js +13 -0
- package/components/transfer/index.js +489 -0
- package/components/tree-view/css.js +94 -0
- package/components/tree-view/index.js +1009 -0
- package/components/typography/index.js +218 -0
- package/css/styles.css +1 -0
- package/css/styles.css.map +1 -0
- package/global/index.js +175 -0
- package/icons/basic.js +6326 -0
- package/icons/effect.js +171 -0
- package/icons/general/clock/clock.js +21 -0
- package/icons/general/color-handler/background.js +41 -0
- package/icons/general/color-handler/text.js +41 -0
- package/icons/general/emoji/emoji.js +35 -0
- package/icons/general/font-properties/bold.js +21 -0
- package/icons/general/font-properties/font-family.js +35 -0
- package/icons/general/font-properties/font-size.js +27 -0
- package/icons/general/font-properties/italic.js +21 -0
- package/icons/general/font-properties/underline.js +31 -0
- package/icons/general/hyperlink/hyperlink.js +38 -0
- package/icons/general/indent/decrease.js +55 -0
- package/icons/general/indent/increase.js +55 -0
- package/icons/general/index.js +21 -0
- package/icons/general/list/bullets.js +77 -0
- package/icons/general/list/numbering.js +71 -0
- package/icons/general/picture/picture.js +21 -0
- package/icons/general/steps/redo.js +21 -0
- package/icons/general/steps/undo.js +21 -0
- package/icons/general/text-align/center.js +21 -0
- package/icons/general/text-align/justify.js +21 -0
- package/icons/general/text-align/left.js +21 -0
- package/icons/general/text-align/right.js +21 -0
- package/icons/index.js +3 -0
- package/icons/menu/dhr.js +2440 -0
- package/icons/menu/erp.js +490 -0
- package/icons/menu/index.js +5 -0
- package/icons/menu/v2/index.js +52 -0
- package/locale/index.js +11 -0
- package/package.json +45 -0
- package/readme.md +517 -0
- package/styles/animation.js +890 -0
- package/styles/color-helper.js +504 -0
- package/styles/colors.js +306 -0
- package/styles/general.js +48 -0
- package/styles/media-queries.js +10 -0
- package/styles/typography.js +122 -0
- package/styles/utils.js +10 -0
- package/theme/index.js +5 -0
- package/theme/make-styles.js +95 -0
- package/theme/set-theme.js +39 -0
- package/theme/settings.js +230 -0
- package/theme/theme-provider.js +68 -0
- package/theme/theme.js +56 -0
- package/theme/with-styles.js +17 -0
- package/theme/with-theme.js +11 -0
- package/utils/array/array.js +186 -0
- package/utils/console.js +34 -0
- package/utils/date.js +471 -0
- package/utils/error/error.js +62 -0
- package/utils/error/errors.js +247 -0
- package/utils/getFileType.js +32 -0
- package/utils/index.js +23 -0
- package/utils/iterator.js +45 -0
- package/utils/map-parent.js +53 -0
- package/utils/number.js +64 -0
- package/utils/object/extend.js +57 -0
- package/utils/object/object.js +68 -0
- package/utils/parseHTML.js +8 -0
- package/utils/promisify.js +38 -0
- package/utils/randomString.js +33 -0
- package/utils/remove-unicode.js +6 -0
- package/utils/render-portal.js +90 -0
- package/utils/renderHTML.js +21 -0
- package/utils/renderIcon.js +57 -0
- package/utils/string/capitalize.js +3 -0
- package/utils/string/capitalizeSentenceCase.js +10 -0
- package/utils/string/string.js +81 -0
- package/utils/type.js +90 -0
- package/utils/updatePosition.js +36 -0
- package/utils/useOnClickOutside.js +23 -0
- package/utils/usePortal.js +56 -0
- package/utils/validate.js +149 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { jsx, css } from '@emotion/core';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import { memo } from 'react';
|
|
7
|
+
import { dark8 } from '../../styles/colors';
|
|
8
|
+
import { fontFamily } from '../../styles/typography';
|
|
9
|
+
const Label = /*#__PURE__*/memo(({
|
|
10
|
+
label,
|
|
11
|
+
labelProps
|
|
12
|
+
}) => {
|
|
13
|
+
const labelText = css`
|
|
14
|
+
display: block;
|
|
15
|
+
color: ${dark8};
|
|
16
|
+
font-family: ${fontFamily};
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
line-height: 16px;
|
|
21
|
+
margin-bottom: 5px;
|
|
22
|
+
`;
|
|
23
|
+
return jsx("label", {
|
|
24
|
+
style: labelProps,
|
|
25
|
+
css: labelText
|
|
26
|
+
}, label);
|
|
27
|
+
});
|
|
28
|
+
Label.defaultProps = {
|
|
29
|
+
label: ''
|
|
30
|
+
};
|
|
31
|
+
Label.propTypes = {
|
|
32
|
+
/** label for input */
|
|
33
|
+
label: PropTypes.string,
|
|
34
|
+
|
|
35
|
+
/** style inline of label in Label component */
|
|
36
|
+
labelProps: PropTypes.object
|
|
37
|
+
};
|
|
38
|
+
export default Label;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as components from '.'; //TOOLTIP
|
|
2
|
+
|
|
3
|
+
export { default as Tooltip } from './tooltip/index'; //TEXT
|
|
4
|
+
|
|
5
|
+
export { default as Typography } from './typography'; // PROGRESS
|
|
6
|
+
|
|
7
|
+
export { default as CircularProgress } from './progress/circular';
|
|
8
|
+
export { default as LinearProgress } from './progress/linear'; // ACCORDION
|
|
9
|
+
|
|
10
|
+
export { default as Accordion } from './accordion';
|
|
11
|
+
export { default as AccordionSummary } from './accordion/summary';
|
|
12
|
+
export { default as AccordionDetails } from './accordion/details';
|
|
13
|
+
export { default as AccordionGroup } from './accordion/group'; // ALERT
|
|
14
|
+
|
|
15
|
+
export { default as Alert } from './alert';
|
|
16
|
+
export { default as Notify } from './alert/notify'; // AVATAR
|
|
17
|
+
|
|
18
|
+
export { default as Avatar } from './avatar'; // BADGE
|
|
19
|
+
|
|
20
|
+
export { default as Badge } from './badge'; // BUTTON
|
|
21
|
+
|
|
22
|
+
export { default as Button } from './button';
|
|
23
|
+
export { default as ButtonIcon } from './button/icon'; // CARD
|
|
24
|
+
|
|
25
|
+
export { default as CardContainer } from './card'; // CHART
|
|
26
|
+
|
|
27
|
+
export { default as PieChart } from './chart/Pie';
|
|
28
|
+
export { default as ColumnChart } from './chart/bar';
|
|
29
|
+
export { default as LineChart } from './chart/line'; // CHECK-TEXT
|
|
30
|
+
|
|
31
|
+
export { default as CheckTextConfirmation } from './check-text/interview-confirmation';
|
|
32
|
+
export { default as CheckTextStatus } from './check-text/interview-status'; // CHIP
|
|
33
|
+
|
|
34
|
+
export { default as Chip } from './chip';
|
|
35
|
+
export { default as AttachChip } from './chip/attach'; // COLLAPSE
|
|
36
|
+
|
|
37
|
+
export { default as Collapse } from './collapse'; // DIVIDER
|
|
38
|
+
|
|
39
|
+
export { default as Divider } from './divider'; // FORM CONTROL
|
|
40
|
+
|
|
41
|
+
export { default as Attachment } from './form-control/attachment';
|
|
42
|
+
export { default as Checkbox } from './form-control/checkbox';
|
|
43
|
+
export { default as DatePicker } from './form-control/date-picker';
|
|
44
|
+
export { default as DateRangePicker } from './form-control/date-range-picker';
|
|
45
|
+
export { default as TimePicker } from './form-control/time-picker';
|
|
46
|
+
export { default as Dropdown } from './form-control/dropdown';
|
|
47
|
+
export { default as DropdownBox } from './form-control/dropdown-box';
|
|
48
|
+
export { default as FormGroup } from './form-control/form-group';
|
|
49
|
+
export { default as Radio } from './form-control/radio';
|
|
50
|
+
export { default as InputBase } from './form-control/input-base';
|
|
51
|
+
export { default as Label } from './form-control/label';
|
|
52
|
+
export { default as HelperText } from './form-control/helper-text';
|
|
53
|
+
export { default as TextInput } from './form-control/text-input';
|
|
54
|
+
export { default as MoneyInput } from './form-control/money-input';
|
|
55
|
+
export { default as NumberInput } from './form-control/number-input';
|
|
56
|
+
export { default as Toggle } from './form-control/toggle'; // List
|
|
57
|
+
|
|
58
|
+
export { default as List } from './list/list';
|
|
59
|
+
export { default as ListItem } from './list/list-item';
|
|
60
|
+
export { default as ListItemIcon } from './list/list-item-icon';
|
|
61
|
+
export { default as ListItemText } from './list/list-item-text';
|
|
62
|
+
export { default as ListItemAction } from './list/list-item-action'; // MODAL
|
|
63
|
+
|
|
64
|
+
export { default as ModalSample } from './modal';
|
|
65
|
+
export { default as Modal } from './modal/modal';
|
|
66
|
+
export { default as ModalHeader } from './modal/header';
|
|
67
|
+
export { default as ModalBody } from './modal/body';
|
|
68
|
+
export { default as ModalFooter } from './modal/footer'; // PAGING
|
|
69
|
+
|
|
70
|
+
export { default as PagingInfo } from './paging/page-info';
|
|
71
|
+
export { default as PagingSelector } from './paging/page-selector'; // PAPER
|
|
72
|
+
|
|
73
|
+
export { default as Paper } from './paper'; // POPOVER
|
|
74
|
+
|
|
75
|
+
export { default as Popover } from './popover'; // POPUP
|
|
76
|
+
|
|
77
|
+
export { default as Popup } from './popup';
|
|
78
|
+
export { default as PopupV2 } from './popup/v2';
|
|
79
|
+
export { default as DangerPopup } from './popup/danger_popup';
|
|
80
|
+
export { default as ProposalsPopup } from './popup/proposals_popup'; // SLIDER
|
|
81
|
+
|
|
82
|
+
export { default as Slider } from './slider/slider-container';
|
|
83
|
+
export { default as SliderItem } from './slider/slider-item'; // Rating
|
|
84
|
+
|
|
85
|
+
export { default as Rating } from './rating'; // STATUS
|
|
86
|
+
|
|
87
|
+
export { default as Status } from './status'; // TAB
|
|
88
|
+
|
|
89
|
+
export { default as TabContainer } from './tab/tab-container';
|
|
90
|
+
export { default as TabHeader } from './tab/tab-header';
|
|
91
|
+
export { default as TabPanel } from './tab/tab-panel';
|
|
92
|
+
export { default as TabItem } from './tab/tab'; // TREE VIEW
|
|
93
|
+
|
|
94
|
+
export { default as Transfer } from './transfer'; // TREE VIEW
|
|
95
|
+
|
|
96
|
+
export { default as TreeView } from './tree-view'; // OTHERS
|
|
97
|
+
|
|
98
|
+
export { default as Extra } from './others/extra';
|
|
99
|
+
export { default as ScrollBar } from './others/scrollbar';
|
|
100
|
+
export default components;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
/** @jsxRuntime classic */
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { jsx, css } from '@emotion/core';
|
|
9
|
+
import theme from '../../theme/settings';
|
|
10
|
+
import Icon from '../../icons';
|
|
11
|
+
const ListItemAction = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
12
|
+
children,
|
|
13
|
+
name,
|
|
14
|
+
className,
|
|
15
|
+
style,
|
|
16
|
+
onClick,
|
|
17
|
+
refs,
|
|
18
|
+
...props
|
|
19
|
+
}, ref) => {
|
|
20
|
+
if (!ref) {
|
|
21
|
+
ref = useRef(null);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const ListItemActionRoot = css`
|
|
25
|
+
display: flex;
|
|
26
|
+
position: relative;
|
|
27
|
+
align-items: center;
|
|
28
|
+
max-height: 24px;
|
|
29
|
+
margin-left: 16px;
|
|
30
|
+
line-height: 40px;
|
|
31
|
+
color: ${theme.colors.primary};
|
|
32
|
+
background-color: transparent;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
order: 3;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
`;
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (refs) refs(ref);
|
|
39
|
+
}, []);
|
|
40
|
+
const ListItemActionView = useMemo(() => {
|
|
41
|
+
let node = children;
|
|
42
|
+
|
|
43
|
+
if (!node) {
|
|
44
|
+
node = jsx(Icon, {
|
|
45
|
+
name: name,
|
|
46
|
+
viewBox: true,
|
|
47
|
+
onClick: onClick
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return jsx("div", _extends({
|
|
52
|
+
className: 'DGN-UI-List-Item-Action ' + className,
|
|
53
|
+
css: ListItemActionRoot,
|
|
54
|
+
ref: ref,
|
|
55
|
+
style: style
|
|
56
|
+
}, props), node);
|
|
57
|
+
}, [children, name, style]);
|
|
58
|
+
return ListItemActionView;
|
|
59
|
+
}));
|
|
60
|
+
ListItemAction.defaultProps = {
|
|
61
|
+
className: ''
|
|
62
|
+
};
|
|
63
|
+
ListItemAction.propTypes = {
|
|
64
|
+
/** the name of icon to display in ListItemAction (used instead of children) */
|
|
65
|
+
name: PropTypes.string,
|
|
66
|
+
|
|
67
|
+
/** classes name for list item action */
|
|
68
|
+
className: PropTypes.string,
|
|
69
|
+
|
|
70
|
+
/** the function to get ref of ListItemAction */
|
|
71
|
+
refs: PropTypes.func,
|
|
72
|
+
|
|
73
|
+
/** the function for click event */
|
|
74
|
+
onClick: PropTypes.func,
|
|
75
|
+
|
|
76
|
+
/** style inline of ListItemAction */
|
|
77
|
+
style: PropTypes.object,
|
|
78
|
+
|
|
79
|
+
/** content to display in ListItem */
|
|
80
|
+
children: PropTypes.node
|
|
81
|
+
};
|
|
82
|
+
export default ListItemAction;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
/** @jsxRuntime classic */
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { jsx, css } from '@emotion/core';
|
|
9
|
+
import theme from '../../theme/settings';
|
|
10
|
+
import * as Icons from '../../icons';
|
|
11
|
+
const ListItemIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
12
|
+
className,
|
|
13
|
+
children,
|
|
14
|
+
name,
|
|
15
|
+
style,
|
|
16
|
+
refs,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => {
|
|
19
|
+
if (!ref) {
|
|
20
|
+
ref = useRef(null);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const ListItemIconRoot = css`
|
|
24
|
+
display: flex;
|
|
25
|
+
position: relative;
|
|
26
|
+
align-items: center;
|
|
27
|
+
min-width: 40px;
|
|
28
|
+
color: ${theme.colors.primary};
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
order: 1;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
`;
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (refs) refs(ref);
|
|
36
|
+
}, []);
|
|
37
|
+
const ListItemIconView = useMemo(() => {
|
|
38
|
+
let node = children;
|
|
39
|
+
|
|
40
|
+
if (!node) {
|
|
41
|
+
const Icon = Icons[name];
|
|
42
|
+
|
|
43
|
+
if (Icon) {
|
|
44
|
+
node = jsx(Icon, null);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return jsx("div", _extends({
|
|
49
|
+
css: ListItemIconRoot,
|
|
50
|
+
className: 'DGN-UI-List-Item-Icon ' + className,
|
|
51
|
+
ref: ref,
|
|
52
|
+
style: style
|
|
53
|
+
}, props), node);
|
|
54
|
+
}, [children, name]);
|
|
55
|
+
return ListItemIconView;
|
|
56
|
+
}));
|
|
57
|
+
ListItemIcon.defaultProps = {
|
|
58
|
+
className: ''
|
|
59
|
+
};
|
|
60
|
+
ListItemIcon.propTypes = {
|
|
61
|
+
/** the name of icon to display in ListItemIcon (used instead of children) */
|
|
62
|
+
name: PropTypes.string,
|
|
63
|
+
|
|
64
|
+
/** class for ListItemIcon */
|
|
65
|
+
className: PropTypes.string,
|
|
66
|
+
|
|
67
|
+
/** the function to get ref of ListItemIcon */
|
|
68
|
+
refs: PropTypes.func,
|
|
69
|
+
|
|
70
|
+
/** style inline of ListItemIcon */
|
|
71
|
+
style: PropTypes.object,
|
|
72
|
+
|
|
73
|
+
/** the icon to display in ListItem */
|
|
74
|
+
children: PropTypes.node
|
|
75
|
+
};
|
|
76
|
+
export default ListItemIcon;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
/** @jsxRuntime classic */
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { jsx, css } from '@emotion/core';
|
|
9
|
+
import { Typography } from '../';
|
|
10
|
+
const ListItemText = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
11
|
+
className,
|
|
12
|
+
children,
|
|
13
|
+
style,
|
|
14
|
+
refs,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => {
|
|
17
|
+
if (!ref) {
|
|
18
|
+
ref = useRef(null);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const ListItemTextRoot = css`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex: 1 1 auto;
|
|
24
|
+
position: relative;
|
|
25
|
+
align-items: center;
|
|
26
|
+
background-color: inherit;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
order: 2;
|
|
29
|
+
`;
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (refs) refs(ref);
|
|
32
|
+
}, []);
|
|
33
|
+
const ListItemTextView = useMemo(() => jsx("div", _extends({
|
|
34
|
+
css: ListItemTextRoot,
|
|
35
|
+
className: 'DGN-UI-List-Item-Text ' + className,
|
|
36
|
+
ref: ref,
|
|
37
|
+
style: style
|
|
38
|
+
}, props), jsx(Typography, null, children)), [children]);
|
|
39
|
+
return ListItemTextView;
|
|
40
|
+
}));
|
|
41
|
+
ListItemText.defaultProps = {
|
|
42
|
+
className: ''
|
|
43
|
+
};
|
|
44
|
+
ListItemText.propTypes = {
|
|
45
|
+
/** class for ListItemText */
|
|
46
|
+
className: PropTypes.string,
|
|
47
|
+
|
|
48
|
+
/** the function to get ref of ListItemText */
|
|
49
|
+
refs: PropTypes.func,
|
|
50
|
+
|
|
51
|
+
/** style inline of ListItemText */
|
|
52
|
+
style: PropTypes.object,
|
|
53
|
+
|
|
54
|
+
/** content to display in ListItem */
|
|
55
|
+
children: PropTypes.node
|
|
56
|
+
};
|
|
57
|
+
export default ListItemText;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
/** @jsxRuntime classic */
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { memo, useRef, forwardRef, useEffect, useMemo } from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { jsx, css } from '@emotion/core';
|
|
9
|
+
import theme from '../../theme/settings';
|
|
10
|
+
import Ripple from '../button/ripple-effect';
|
|
11
|
+
const ListItem = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
12
|
+
children,
|
|
13
|
+
className,
|
|
14
|
+
style,
|
|
15
|
+
onClick,
|
|
16
|
+
button,
|
|
17
|
+
inset,
|
|
18
|
+
refs,
|
|
19
|
+
...props
|
|
20
|
+
}, ref) => {
|
|
21
|
+
if (!ref) {
|
|
22
|
+
ref = useRef(null);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const ListItemRoot = css`
|
|
26
|
+
display: flex;
|
|
27
|
+
position: relative;
|
|
28
|
+
flex: 1 1 auto;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
width: 100%;
|
|
32
|
+
max-width: 360px;
|
|
33
|
+
height: auto;
|
|
34
|
+
min-height: 32px;
|
|
35
|
+
padding: 0 16px;
|
|
36
|
+
color: ${theme.colors.primary};
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
background-color: inherit;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
&.click-able {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
user-select: none;
|
|
43
|
+
&:hover {
|
|
44
|
+
background-color: ${theme.colors.hover};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
&.DGN-Active {
|
|
48
|
+
background-color: ${theme.colors.hover};
|
|
49
|
+
}
|
|
50
|
+
&.inset {
|
|
51
|
+
padding-left: 56px;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
const handleClick = e => {
|
|
56
|
+
const {
|
|
57
|
+
currentTarget,
|
|
58
|
+
target
|
|
59
|
+
} = e;
|
|
60
|
+
const actionNode = currentTarget.querySelector('.DGN-UI-List-Item-Action');
|
|
61
|
+
|
|
62
|
+
if (!actionNode || !actionNode.contains(target)) {
|
|
63
|
+
onClick(e);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
if (refs) refs(ref);
|
|
69
|
+
}, []);
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (inset) {
|
|
72
|
+
ref.current.classList.add('inset');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return () => {
|
|
76
|
+
if (inset && ref.current) {
|
|
77
|
+
ref.current.classList.remove('inset');
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}, [inset]);
|
|
81
|
+
const ListItemView = useMemo(() => jsx("div", _extends({
|
|
82
|
+
css: ListItemRoot,
|
|
83
|
+
className: 'DGN-UI-List-Item ' + (onClick ? 'click-able ' : '') + className,
|
|
84
|
+
ref: ref,
|
|
85
|
+
onClick: onClick ? handleClick : null,
|
|
86
|
+
style: style
|
|
87
|
+
}, props), children, button && jsx(Ripple, {
|
|
88
|
+
color: '#8F9BB3'
|
|
89
|
+
})), [children, button, style]);
|
|
90
|
+
return ListItemView;
|
|
91
|
+
}));
|
|
92
|
+
ListItem.defaultProps = {
|
|
93
|
+
className: ''
|
|
94
|
+
};
|
|
95
|
+
ListItem.propTypes = {
|
|
96
|
+
/** has the same effect as a button if true */
|
|
97
|
+
button: PropTypes.bool,
|
|
98
|
+
|
|
99
|
+
/** classes name for list item */
|
|
100
|
+
className: PropTypes.string,
|
|
101
|
+
|
|
102
|
+
/** the function to get ref of ListItem */
|
|
103
|
+
refs: PropTypes.func,
|
|
104
|
+
|
|
105
|
+
/** the function for click event */
|
|
106
|
+
onClick: PropTypes.func,
|
|
107
|
+
|
|
108
|
+
/** style inline of ListItem */
|
|
109
|
+
style: PropTypes.object,
|
|
110
|
+
|
|
111
|
+
/** includes ListItemIcon, ListItemText, ListItemAction */
|
|
112
|
+
children: PropTypes.node
|
|
113
|
+
};
|
|
114
|
+
export default ListItem;
|