diginet-core-ui 1.3.88 → 1.3.89
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 -3
- package/assets/images/icons/wifi.svg +3 -3
- package/assets/images/menu/bem/WA3F0100.svg +6 -6
- package/assets/images/menu/bem/WA3F1025.svg +10 -10
- package/assets/images/menu/bem/WA3F2000.svg +10 -10
- package/assets/images/menu/bem/WA3F2020.svg +6 -6
- package/assets/images/menu/bem/WA3F2030.svg +14 -14
- package/assets/images/menu/bem/WA3F2040.svg +8 -8
- package/assets/images/menu/bem/WA3F2100.svg +6 -6
- package/assets/images/menu/dhr/ALL.svg +6 -6
- package/assets/images/menu/dhr/D00.svg +12 -12
- package/assets/images/menu/dhr/D09.svg +8 -8
- package/assets/images/menu/dhr/D13.svg +10 -10
- package/assets/images/menu/dhr/D15.svg +10 -10
- package/assets/images/menu/dhr/D21.svg +10 -10
- package/assets/images/menu/dhr/D25.svg +11 -11
- package/assets/images/menu/dhr/D29.svg +11 -11
- package/assets/images/menu/dhr/D38.svg +6 -6
- package/assets/images/menu/dhr/D39.svg +10 -10
- package/assets/images/menu/dhr/D51.svg +12 -12
- package/assets/images/menu/dhr/D52.svg +16 -16
- package/assets/images/menu/dhr/D77.svg +16 -16
- package/assets/images/menu/dhr/D84.svg +12 -12
- package/assets/images/menu/dhr/D89.svg +8 -8
- package/assets/images/menu/dhr/Default.svg +13 -13
- package/assets/images/menu/dhr/MHRM00N0001.svg +14 -14
- package/assets/images/menu/dhr/MHRM00N0002.svg +22 -22
- package/assets/images/menu/dhr/MHRM00N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM00N0004.svg +12 -12
- package/assets/images/menu/dhr/MHRM00N0005.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N0002.svg +3 -3
- package/assets/images/menu/dhr/MHRM09N0003.svg +25 -25
- package/assets/images/menu/dhr/MHRM09N0004.svg +14 -14
- package/assets/images/menu/dhr/MHRM09N0005.svg +7 -7
- package/assets/images/menu/dhr/MHRM09N1010.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1015.svg +18 -18
- package/assets/images/menu/dhr/MHRM09N1020.svg +13 -13
- package/assets/images/menu/dhr/MHRM09N1025.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1030.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N1035.svg +15 -15
- package/assets/images/menu/dhr/MHRM09N1040.svg +8 -8
- package/assets/images/menu/dhr/MHRM09N1400.svg +11 -11
- package/assets/images/menu/dhr/MHRM13N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRM13N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM13N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRM13N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRM25N0001.svg +26 -26
- package/assets/images/menu/dhr/MHRM29N0001.svg +30 -30
- package/assets/images/menu/dhr/MHRM29N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM29N0004.svg +18 -18
- package/assets/images/menu/dhr/MHRM29N0005.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0015.svg +63 -63
- package/assets/images/menu/dhr/MHRM39N0012.svg +43 -43
- package/assets/images/menu/dhr/MHRM39N0013.svg +24 -24
- package/assets/images/menu/dhr/MHRM39N0014.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0015.svg +36 -36
- package/assets/images/menu/dhr/MHRM39N0016.svg +23 -23
- package/assets/images/menu/dhr/MHRM39N0017.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0018.svg +5 -5
- package/assets/images/menu/dhr/MHRM39N0019.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0021.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0022.svg +18 -18
- package/assets/images/menu/dhr/MHRM39N0023.svg +13 -13
- package/assets/images/menu/dhr/MHRM77N0001.svg +28 -28
- package/assets/images/menu/dhr/MHRM82N0001.svg +8 -8
- package/assets/images/menu/dhr/MHRM82N0002.svg +5 -5
- package/assets/images/menu/dhr/MHRM84N0001.svg +27 -27
- package/assets/images/menu/dhr/MHRM84N0002.svg +24 -24
- package/assets/images/menu/dhr/MHRM89N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRP00N0001.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0001.svg +22 -22
- package/assets/images/menu/dhr/MHRP09N0002.svg +19 -19
- package/assets/images/menu/dhr/MHRP09N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0004.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0005.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0007.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0008.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0009.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0010.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0011.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0012.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0013.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP09N0015.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0016.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0017.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0018.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0019.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0020.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0021.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0022.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0023.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0024.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0025.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0027.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0028.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0029.svg +14 -14
- package/assets/images/menu/dhr/MHRP09N0030.svg +4 -4
- package/assets/images/menu/dhr/MHRP09N0031.svg +5 -5
- package/assets/images/menu/dhr/MHRP09N0032.svg +7 -7
- package/assets/images/menu/dhr/MHRP13N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP21N0001.svg +12 -12
- package/assets/images/menu/dhr/MHRP21N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP25L0101.svg +15 -15
- package/assets/images/menu/dhr/MHRP25L0501.svg +14 -14
- package/assets/images/menu/dhr/MHRP25N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP25N0002.svg +16 -16
- package/assets/images/menu/dhr/MHRP25N0003.svg +38 -38
- package/assets/images/menu/dhr/MHRP25N0004.svg +17 -17
- package/assets/images/menu/dhr/MHRP25N0005.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0001.svg +18 -18
- package/assets/images/menu/dhr/MHRP29N0002.svg +15 -15
- package/assets/images/menu/dhr/MHRP29N0003.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0005.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP29N0008.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0009.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0010.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0011.svg +12 -12
- package/assets/images/menu/dhr/MHRP29N0012.svg +7 -7
- package/assets/images/menu/dhr/MHRP29N0013.svg +27 -27
- package/assets/images/menu/dhr/MHRP29N0014.svg +32 -32
- package/assets/images/menu/dhr/MHRP29N0016.svg +54 -54
- package/assets/images/menu/dhr/MHRP29N0017.svg +24 -24
- package/assets/images/menu/dhr/MHRP29N0018.svg +44 -44
- package/assets/images/menu/dhr/MHRP29N0019.svg +17 -17
- package/assets/images/menu/dhr/MHRP29N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0021.svg +8 -8
- package/assets/images/menu/dhr/MHRP29N0022.svg +9 -9
- package/assets/images/menu/dhr/MHRP29N0023.svg +22 -22
- package/assets/images/menu/dhr/MHRP29N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP29N0027.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0028.svg +15 -15
- package/assets/images/menu/dhr/MHRP38N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP38N0002.svg +14 -14
- package/assets/images/menu/dhr/MHRP39N0001.svg +15 -15
- package/assets/images/menu/dhr/MHRP39N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0004.svg +22 -22
- package/assets/images/menu/dhr/MHRP39N0005.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP39N0007.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0008.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0009.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0010.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0011.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0013.svg +10 -10
- package/assets/images/menu/dhr/MHRP39N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0015.svg +5 -5
- package/assets/images/menu/dhr/MHRP39N0017.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0018.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N1222.svg +12 -12
- package/assets/images/menu/dhr/MHRP51N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP51N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP52N0001.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0002.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP75N0001.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0002.svg +25 -25
- package/assets/images/menu/dhr/MHRP75N0003.svg +3 -3
- package/assets/images/menu/dhr/MHRP75N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP75N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0008.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0007.svg +28 -28
- package/assets/images/menu/dhr/MHRP77N0008.svg +17 -17
- package/assets/images/menu/dhr/MHRP77N0009.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0010.svg +20 -20
- package/assets/images/menu/dhr/MHRP89N1000.svg +5 -5
- package/assets/images/menu/dhr/MHRP89N1001.svg +5 -5
- package/assets/images/menu/dhr/TASK.svg +9 -9
- package/assets/images/menu/dhr/W00F0001.svg +3 -3
- package/assets/images/menu/dhr/W00F0002.svg +3 -3
- package/assets/images/menu/dhr/W00F0003.svg +3 -3
- package/assets/images/menu/dhr/W00F0004.svg +3 -3
- package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W09F2000.svg +4 -4
- package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -18
- package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -15
- package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W77F1011.svg +19 -19
- package/assets/images/menu/dhr/W77F1013.svg +22 -22
- package/assets/images/menu/erp/D05.svg +8 -8
- package/assets/images/menu/erp/D06.svg +4 -4
- package/assets/images/menu/erp/D90R.svg +9 -9
- package/assets/images/menu/erp/DBC.svg +9 -9
- package/assets/images/menu/erp/W00F0001.svg +3 -3
- package/assets/images/menu/erp/W00F0002.svg +3 -3
- package/assets/images/menu/erp/W00F0003.svg +3 -3
- package/assets/images/menu/erp/W00F0004.svg +3 -3
- package/assets/images/menu/erp/W05F0001.svg +16 -16
- package/assets/images/menu/erp/W05F0001N0000.svg +16 -16
- package/assets/images/menu/erp/W05F0004N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0006N0000.svg +30 -30
- package/assets/images/menu/erp/W05F0007N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0008N0000.svg +14 -14
- package/assets/images/menu/erp/W05F0011N0000.svg +20 -20
- package/assets/images/menu/erp/W05F0013N0000.svg +9 -9
- package/assets/images/menu/erp/W05F4000N0000.svg +9 -9
- package/assets/images/menu/erp/W06F0001.svg +17 -17
- package/assets/images/menu/erp/W06F0001N0000.svg +17 -17
- package/assets/images/menu/erp/W06F0004N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0005N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0006N0000.svg +55 -55
- package/assets/images/menu/erp/W06F0008N0000.svg +17 -17
- package/assets/images/menu/erp/W94F1000N0000.svg +9 -9
- package/assets/images/menu/erp/W94F1000N0001.svg +9 -9
- package/assets/images/menu/erp/WA3F1025.svg +5 -5
- package/assets/images/menu/erp/WA3F2100.svg +10 -10
- package/assets/storybook/avatar01.svg +9 -9
- package/assets/storybook/cover01.svg +9 -9
- package/components/accordion/details.js +2 -6
- package/components/accordion/group.js +2 -9
- package/components/accordion/index.js +2 -15
- package/components/accordion/summary.js +4 -27
- package/components/alert/index.js +2 -33
- package/components/alert/notify.js +12 -22
- package/components/avatar/index.js +22 -81
- package/components/badge/index.js +20 -45
- package/components/button/icon.js +25 -56
- package/components/button/index.js +16 -65
- package/components/button/more.js +15 -35
- package/components/button/ripple-effect.js +0 -10
- package/components/card/body.js +2 -7
- package/components/card/extra.js +2 -7
- package/components/card/footer.js +2 -7
- package/components/card/header.js +2 -7
- package/components/card/index.js +2 -22
- package/components/chart/Pie/Circle.js +0 -1
- package/components/chart/Pie/Sector.js +2 -19
- package/components/chart/Pie/Sectors.js +0 -10
- package/components/chart/Pie/index.js +4 -36
- package/components/chart/Pie-v2/Circle.js +0 -1
- package/components/chart/Pie-v2/Sector.js +2 -15
- package/components/chart/Pie-v2/Sectors.js +0 -20
- package/components/chart/Pie-v2/index.js +11 -38
- package/components/chart/bar/Axis.js +0 -12
- package/components/chart/bar/Bar.js +13 -35
- package/components/chart/bar/Grid.js +0 -18
- package/components/chart/bar/Labels.js +4 -22
- package/components/chart/bar/Points.js +0 -17
- package/components/chart/bar/index.js +6 -26
- package/components/chart/bar-v2/Axis.js +0 -12
- package/components/chart/bar-v2/Bar.js +15 -36
- package/components/chart/bar-v2/Grid.js +0 -18
- package/components/chart/bar-v2/Labels.js +4 -22
- package/components/chart/bar-v2/Points.js +0 -17
- package/components/chart/bar-v2/index.js +6 -26
- package/components/chart/line/Axis.js +4 -16
- package/components/chart/line/Grid.js +2 -19
- package/components/chart/line/Labels.js +4 -22
- package/components/chart/line/Path.js +24 -34
- package/components/chart/line/Point.js +7 -41
- package/components/chart/line/Title.js +0 -3
- package/components/chart/line/index.js +12 -35
- package/components/chart/line-v2/Axis.js +0 -13
- package/components/chart/line-v2/Grid.js +0 -18
- package/components/chart/line-v2/Labels.js +4 -22
- package/components/chart/line-v2/Path.js +23 -33
- package/components/chart/line-v2/Point.js +6 -35
- package/components/chart/line-v2/Title.js +0 -3
- package/components/chart/line-v2/index.js +12 -30
- package/components/check-text/index.js +7 -15
- package/components/check-text/interview-confirmation.js +24 -31
- package/components/check-text/interview-status.js +24 -31
- package/components/chip/attach.js +9 -22
- package/components/chip/index.js +13 -38
- package/components/collapse/index.js +0 -13
- package/components/divider/index.js +2 -13
- package/components/form-control/attachment/index.js +41 -202
- package/components/form-control/calendar/function.js +154 -208
- package/components/form-control/calendar/index.js +21 -46
- package/components/form-control/calendar/range.js +11 -28
- package/components/form-control/checkbox/index.js +12 -46
- package/components/form-control/control/index.js +4 -14
- package/components/form-control/date-picker/index-old.js +18 -0
- package/components/form-control/date-picker/index.js +23 -99
- package/components/form-control/date-range-picker/index.js +44 -180
- package/components/form-control/dropdown/index.js +101 -314
- package/components/form-control/dropdown-box/index.js +7 -37
- package/components/form-control/form/index.js +0 -2
- package/components/form-control/form-group/index.js +1 -6
- package/components/form-control/helper-text/index.js +2 -9
- package/components/form-control/input-base/index.js +4 -68
- package/components/form-control/label/index.js +2 -12
- package/components/form-control/money-input/index.js +54 -143
- package/components/form-control/number-input/index.js +26 -124
- package/components/form-control/number-input/index2.js +95 -134
- package/components/form-control/phone-input/index.js +23 -85
- package/components/form-control/radio/index.js +16 -35
- package/components/form-control/text-input/index.js +10 -46
- package/components/form-control/time-picker/index.js +43 -100
- package/components/form-control/time-picker/swiper.js +21 -73
- package/components/form-control/toggle/index.js +26 -40
- package/components/form-view/helper-text.js +2 -2
- package/components/form-view/index.js +0 -14
- package/components/form-view/input.js +2 -13
- package/components/form-view/label.js +0 -2
- package/components/grid/Col.js +2 -16
- package/components/grid/Container.js +2 -21
- package/components/grid/Row.js +2 -21
- package/components/grid/index.js +2 -44
- package/components/image/index.js +2 -22
- package/components/index.js +62 -31
- package/components/list/list-item-action.js +12 -21
- package/components/list/list-item-icon.js +10 -19
- package/components/list/list-item-text.js +0 -5
- package/components/list/list-item.js +27 -38
- package/components/list/list.js +37 -50
- package/components/list/sub-header.js +13 -17
- package/components/modal/body.js +2 -6
- package/components/modal/footer.js +2 -11
- package/components/modal/header.js +2 -12
- package/components/modal/index.js +2 -10
- package/components/modal/modal.js +11 -52
- package/components/others/extra/index.js +3 -10
- package/components/others/import/index.js +0 -7
- package/components/others/option-wrapper/index.js +4 -7
- package/components/others/scrollbar/index.js +0 -3
- package/components/paging/page-info.js +35 -99
- package/components/paging/page-selector.js +10 -38
- package/components/paging/page-selector2.js +35 -74
- package/components/paper/index.js +23 -34
- package/components/popover/body.js +2 -6
- package/components/popover/footer.js +2 -11
- package/components/popover/header.js +2 -7
- package/components/popover/index.js +54 -146
- package/components/popup/danger_popup.js +0 -19
- package/components/popup/index.js +4 -50
- package/components/popup/proposals_popup.js +11 -50
- package/components/popup/v2/index.js +13 -47
- package/components/progress/circular.js +10 -48
- package/components/progress/linear.js +58 -74
- package/components/rating/index.js +10 -35
- package/components/slider/slider-container.js +4 -41
- package/components/slider/slider-item.js +10 -25
- package/components/status/index.js +2 -14
- package/components/tab/tab-container.js +4 -18
- package/components/tab/tab-header.js +4 -24
- package/components/tab/tab-panel.js +4 -16
- package/components/tab/tab.js +8 -33
- package/components/tooltip/index.js +12 -97
- package/components/tooltip/portal.js +0 -2
- package/components/transfer/index.js +28 -73
- package/components/tree-view/index.js +62 -202
- package/components/typography/index.js +14 -42
- package/global/index.js +0 -8
- package/icons/basic.js +0 -48
- package/icons/effect.js +15 -32
- package/icons/general/clock/clock.js +0 -2
- package/icons/general/color-handler/background.js +0 -2
- package/icons/general/color-handler/text.js +0 -2
- package/icons/general/emoji/emoji.js +0 -2
- package/icons/general/font-properties/bold.js +0 -2
- package/icons/general/font-properties/font-family.js +0 -2
- package/icons/general/font-properties/font-size.js +0 -2
- package/icons/general/font-properties/italic.js +0 -2
- package/icons/general/font-properties/underline.js +0 -2
- package/icons/general/hyperlink/hyperlink.js +0 -2
- package/icons/general/indent/decrease.js +0 -2
- package/icons/general/indent/increase.js +0 -2
- package/icons/general/list/bullets.js +0 -2
- package/icons/general/list/numbering.js +0 -2
- package/icons/general/picture/picture.js +0 -2
- package/icons/general/steps/redo.js +0 -2
- package/icons/general/steps/undo.js +0 -2
- package/icons/general/text-align/center.js +0 -2
- package/icons/general/text-align/justify.js +0 -2
- package/icons/general/text-align/left.js +0 -2
- package/icons/general/text-align/right.js +0 -2
- package/icons/menu/dhr.js +2 -1
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +2 -15
- package/package.json +42 -42
- package/readme.md +1034 -1027
- package/styles/animation.js +15 -58
- package/styles/color-helper.js +127 -157
- package/styles/colors.js +17 -9
- package/styles/general.js +16 -57
- package/styles/typography.js +4 -4
- package/styles/utils.js +18 -18
- package/theme/createBreakpoints.js +7 -18
- package/theme/make-styles.js +2 -5
- package/theme/set-theme.js +6 -9
- package/theme/settings.js +17 -22
- package/theme/theme-provider.js +0 -1
- package/utils/array/array.js +45 -54
- package/utils/classNames/index.js +0 -5
- package/utils/console.js +0 -6
- package/utils/date.js +69 -138
- package/utils/error/error.js +3 -11
- package/utils/error/errors.js +100 -147
- package/utils/getFileType.js +0 -9
- package/utils/handleBreakpoints.js +0 -5
- package/utils/intersectionObserver.js +0 -5
- package/utils/iterator.js +0 -9
- package/utils/map-parent.js +3 -10
- package/utils/object/extend.js +0 -10
- package/utils/object/object.js +12 -11
- package/utils/parseHTML.js +0 -1
- package/utils/promisify.js +0 -5
- package/utils/randomString.js +0 -7
- package/utils/remove-unicode.js +0 -1
- package/utils/render-portal.js +1 -9
- package/utils/renderHTML.js +4 -6
- package/utils/renderIcon.js +9 -19
- package/utils/sb-template.js +6 -5
- package/utils/string/capitalize.js +0 -1
- package/utils/string/capitalizeSentenceCase.js +0 -2
- package/utils/string/string.js +0 -13
- package/utils/type.js +0 -21
- package/utils/updatePosition.js +4 -5
- package/utils/useDelayUnmount.js +0 -4
- package/utils/useElementSize.js +9 -3
- package/utils/useEventListener.js +12 -6
- package/utils/useInput.js +0 -6
- package/utils/useMediaQuery/index.js +8 -10
- package/utils/useOnClickOutside.js +2 -4
- package/utils/usePortal.js +12 -19
- package/utils/validate.js +39 -53
package/components/modal/body.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useMemo, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -27,11 +26,10 @@ const ModalBody = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
27
26
|
useImperativeHandle(reference, () => {
|
|
28
27
|
const currentRef = ref.current || {};
|
|
29
28
|
currentRef.element = ref.current;
|
|
30
|
-
const _instance = {
|
|
29
|
+
const _instance = {
|
|
30
|
+
...action
|
|
31
31
|
}; // methods
|
|
32
|
-
|
|
33
32
|
_instance.__proto__ = {}; // hidden methods
|
|
34
|
-
|
|
35
33
|
currentRef.instance = _instance;
|
|
36
34
|
return currentRef;
|
|
37
35
|
});
|
|
@@ -72,10 +70,8 @@ ModalBody.defaultProps = {
|
|
|
72
70
|
ModalBody.propTypes = {
|
|
73
71
|
/** The content of the component. */
|
|
74
72
|
children: PropTypes.node,
|
|
75
|
-
|
|
76
73
|
/** Class for component. */
|
|
77
74
|
className: PropTypes.string,
|
|
78
|
-
|
|
79
75
|
/** Style inline of component. */
|
|
80
76
|
style: PropTypes.object
|
|
81
77
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useMemo, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -16,17 +15,14 @@ const ModalFooter = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
16
15
|
style
|
|
17
16
|
}, reference) => {
|
|
18
17
|
const ref = useRef(null);
|
|
19
|
-
|
|
20
18
|
const _ModalFooterCSS = ModalFooterCSS(boxShadow);
|
|
21
|
-
|
|
22
19
|
useImperativeHandle(reference, () => {
|
|
23
20
|
const currentRef = ref.current || {};
|
|
24
21
|
currentRef.element = ref.current;
|
|
25
|
-
const _instance = {
|
|
22
|
+
const _instance = {
|
|
23
|
+
...action
|
|
26
24
|
}; // methods
|
|
27
|
-
|
|
28
25
|
_instance.__proto__ = {}; // hidden methods
|
|
29
|
-
|
|
30
26
|
currentRef.instance = _instance;
|
|
31
27
|
return currentRef;
|
|
32
28
|
});
|
|
@@ -38,7 +34,6 @@ const ModalFooter = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
38
34
|
ref: ref
|
|
39
35
|
}, children), [boxShadow, children, className, id, style]);
|
|
40
36
|
}));
|
|
41
|
-
|
|
42
37
|
const ModalFooterCSS = boxShadow => css`
|
|
43
38
|
${flexRow};
|
|
44
39
|
${positionRelative};
|
|
@@ -52,7 +47,6 @@ const ModalFooterCSS = boxShadow => css`
|
|
|
52
47
|
order: 3;
|
|
53
48
|
${responsivePaddingCSS};
|
|
54
49
|
`;
|
|
55
|
-
|
|
56
50
|
ModalFooter.defaultProps = {
|
|
57
51
|
boxShadow: '0px -1px 1px rgba(0, 0, 0, 0.25)',
|
|
58
52
|
className: '',
|
|
@@ -61,13 +55,10 @@ ModalFooter.defaultProps = {
|
|
|
61
55
|
ModalFooter.propTypes = {
|
|
62
56
|
/** The box-shadow of component. */
|
|
63
57
|
boxShadow: PropTypes.string,
|
|
64
|
-
|
|
65
58
|
/** The content of the component. */
|
|
66
59
|
children: PropTypes.node,
|
|
67
|
-
|
|
68
60
|
/** Class for component. */
|
|
69
61
|
className: PropTypes.string,
|
|
70
|
-
|
|
71
62
|
/** Style inline of component. */
|
|
72
63
|
style: PropTypes.object
|
|
73
64
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useMemo, useContext, useRef, forwardRef, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -37,17 +36,14 @@ const ModalHeader = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
37
36
|
}, reference) => {
|
|
38
37
|
const modal = useContext(ModalContext);
|
|
39
38
|
const ref = useRef(null);
|
|
40
|
-
|
|
41
39
|
const _ModalHeaderCSS = ModalHeaderCSS(modal);
|
|
42
|
-
|
|
43
40
|
useImperativeHandle(reference, () => {
|
|
44
41
|
const currentRef = ref.current || {};
|
|
45
42
|
currentRef.element = ref.current;
|
|
46
|
-
const _instance = {
|
|
43
|
+
const _instance = {
|
|
44
|
+
...action
|
|
47
45
|
}; // methods
|
|
48
|
-
|
|
49
46
|
_instance.__proto__ = {}; // hidden methods
|
|
50
|
-
|
|
51
47
|
currentRef.instance = _instance;
|
|
52
48
|
return currentRef;
|
|
53
49
|
});
|
|
@@ -75,7 +71,6 @@ const ModalHeader = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
75
71
|
onClick: modal.close
|
|
76
72
|
})), [children, className, id, showClose, style, title]);
|
|
77
73
|
}));
|
|
78
|
-
|
|
79
74
|
const ModalHeaderCSS = modal => css`
|
|
80
75
|
${flexRow};
|
|
81
76
|
${positionRelative};
|
|
@@ -90,7 +85,6 @@ const ModalHeaderCSS = modal => css`
|
|
|
90
85
|
order: 1;
|
|
91
86
|
${responsivePaddingCSS};
|
|
92
87
|
`;
|
|
93
|
-
|
|
94
88
|
ModalHeader.defaultProps = {
|
|
95
89
|
className: '',
|
|
96
90
|
showClose: true,
|
|
@@ -100,16 +94,12 @@ ModalHeader.defaultProps = {
|
|
|
100
94
|
ModalHeader.propTypes = {
|
|
101
95
|
/** The content of the component. */
|
|
102
96
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
103
|
-
|
|
104
97
|
/** Class for component. */
|
|
105
98
|
className: PropTypes.string,
|
|
106
|
-
|
|
107
99
|
/** If `true`, button close is shown. */
|
|
108
100
|
showClose: PropTypes.bool,
|
|
109
|
-
|
|
110
101
|
/** Style inline of component. */
|
|
111
102
|
style: PropTypes.object,
|
|
112
|
-
|
|
113
103
|
/** The content of the component if not have prop `children`. */
|
|
114
104
|
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
115
105
|
};
|
|
@@ -20,11 +20,10 @@ const ModalSample = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
20
20
|
useImperativeHandle(reference, () => {
|
|
21
21
|
const currentRef = ref.current || {};
|
|
22
22
|
currentRef.element = ref.current;
|
|
23
|
-
const _instance = {
|
|
23
|
+
const _instance = {
|
|
24
|
+
...action
|
|
24
25
|
}; // methods
|
|
25
|
-
|
|
26
26
|
_instance.__proto__ = {}; // hidden methods
|
|
27
|
-
|
|
28
27
|
currentRef.instance = _instance;
|
|
29
28
|
return currentRef;
|
|
30
29
|
});
|
|
@@ -46,25 +45,18 @@ ModalSample.defaultProps = {
|
|
|
46
45
|
ModalSample.propTypes = {
|
|
47
46
|
/** Style inline of the body component. */
|
|
48
47
|
bodyStyle: PropTypes.object,
|
|
49
|
-
|
|
50
48
|
/** The content of the body component. */
|
|
51
49
|
children: PropTypes.node,
|
|
52
|
-
|
|
53
50
|
/** The content of the footer component. */
|
|
54
51
|
footer: PropTypes.node,
|
|
55
|
-
|
|
56
52
|
/** Style inline of the footer component. */
|
|
57
53
|
footerStyle: PropTypes.object,
|
|
58
|
-
|
|
59
54
|
/** Style inline of the header component. */
|
|
60
55
|
headerStyle: PropTypes.object,
|
|
61
|
-
|
|
62
56
|
/** Style inline of component. */
|
|
63
57
|
style: PropTypes.object,
|
|
64
|
-
|
|
65
58
|
/** The content of the header component. */
|
|
66
59
|
title: PropTypes.node,
|
|
67
|
-
|
|
68
60
|
/** Any props else. */
|
|
69
61
|
props: PropTypes.any
|
|
70
62
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useState, useRef, forwardRef, useEffect, useMemo, useImperativeHandle } from 'react';
|
|
5
4
|
import { createPortal } from 'react-dom';
|
|
@@ -48,44 +47,34 @@ const Modal = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
48
47
|
const modalBoxRef = useRef(null);
|
|
49
48
|
const [openState, setOpenState] = useState(open);
|
|
50
49
|
const showModal = useDelayUnmount(openState, 200);
|
|
51
|
-
|
|
52
50
|
const _ModalContainerCSS = ModalContainerCSS(zIndex, alignment, darkTheme);
|
|
53
|
-
|
|
54
51
|
const _ModalBoxCSS = ModalBoxCSS(width, moveable, dragAnyWhere);
|
|
55
|
-
|
|
56
52
|
const onShowModal = () => {
|
|
57
53
|
setOpenState(true);
|
|
58
54
|
};
|
|
59
|
-
|
|
60
55
|
const onCloseModal = () => {
|
|
61
56
|
document.body.style.overflow = overflow.current; // reset overflow of <body /> before open modal
|
|
62
|
-
|
|
63
57
|
onClose && onClose();
|
|
64
58
|
setOpenState(false);
|
|
65
59
|
};
|
|
66
|
-
|
|
67
60
|
const pressESCHandler = event => {
|
|
68
61
|
if (event.key === 'Escape') {
|
|
69
62
|
const modals = document.querySelectorAll('.DGN-UI-Portal');
|
|
70
|
-
|
|
71
63
|
if ((modals === null || modals === void 0 ? void 0 : modals.length) > 1 && Array.from(modals)[modals.length - 1] && !Array.from(modals)[modals.length - 1].contains(ref.current)) {
|
|
72
64
|
return;
|
|
73
65
|
}
|
|
74
|
-
|
|
75
66
|
onCloseModal();
|
|
76
67
|
}
|
|
77
68
|
};
|
|
78
|
-
|
|
79
69
|
const dragMouseDown = e => {
|
|
80
70
|
let pos1 = 0,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
pos2 = 0,
|
|
72
|
+
pos3 = 0,
|
|
73
|
+
pos4 = 0;
|
|
84
74
|
pos3 = e.clientX;
|
|
85
75
|
pos4 = e.clientY;
|
|
86
76
|
const maxTop = window.innerHeight - modalBoxRef.current.offsetHeight;
|
|
87
77
|
const maxLeft = window.innerWidth - modalBoxRef.current.offsetWidth;
|
|
88
|
-
|
|
89
78
|
if (modalBoxRef.current.style.display !== 'block') {
|
|
90
79
|
const top = modalBoxRef.current.offsetTop;
|
|
91
80
|
const left = modalBoxRef.current.offsetLeft;
|
|
@@ -95,14 +84,12 @@ const Modal = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
95
84
|
modalBoxRef.current.style.top = top + 'px';
|
|
96
85
|
modalBoxRef.current.style.left = left + 'px';
|
|
97
86
|
}
|
|
98
|
-
|
|
99
87
|
document.onmouseup = () => {
|
|
100
88
|
/* stop moving when mouse button is released:*/
|
|
101
89
|
document.onmouseup = null;
|
|
102
90
|
document.onmousemove = null;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
};
|
|
92
|
+
// call a function whenever the cursor moves:
|
|
106
93
|
document.onmousemove = el => {
|
|
107
94
|
pos1 = pos3 - el.clientX;
|
|
108
95
|
pos2 = pos4 - el.clientY;
|
|
@@ -110,27 +97,23 @@ const Modal = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
110
97
|
pos4 = el.clientY;
|
|
111
98
|
let newTop = modalBoxRef.current.offsetTop - pos2;
|
|
112
99
|
let newLeft = modalBoxRef.current.offsetLeft - pos1;
|
|
113
|
-
|
|
114
100
|
if (!moveOutScreen) {
|
|
115
101
|
if (newTop > maxTop) {
|
|
116
102
|
newTop = maxTop;
|
|
117
103
|
} else if (newTop < 0) {
|
|
118
104
|
newTop = 0;
|
|
119
105
|
}
|
|
120
|
-
|
|
121
106
|
if (newLeft > maxLeft) {
|
|
122
107
|
newLeft = maxLeft;
|
|
123
108
|
} else if (newLeft < 0) {
|
|
124
109
|
newLeft = 0;
|
|
125
110
|
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
111
|
+
}
|
|
112
|
+
// set the element's new position:
|
|
129
113
|
modalBoxRef.current.style.top = newTop + 'px';
|
|
130
114
|
modalBoxRef.current.style.left = newLeft + 'px';
|
|
131
115
|
};
|
|
132
116
|
};
|
|
133
|
-
|
|
134
117
|
useEffect(() => {
|
|
135
118
|
return () => {
|
|
136
119
|
document.body.style.overflow = overflow.current; // reset overflow of <body /> before open modal
|
|
@@ -143,11 +126,9 @@ const Modal = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
143
126
|
if (openState) {
|
|
144
127
|
if (ref.current) {
|
|
145
128
|
const modals = document.querySelectorAll('.DGN-UI-Modal');
|
|
146
|
-
|
|
147
129
|
if (!darkTheme && modals && modals.length > 1) {
|
|
148
130
|
ref.current.style.backgroundColor = 'transparent';
|
|
149
131
|
}
|
|
150
|
-
|
|
151
132
|
if (autoFocus) {
|
|
152
133
|
if (!ref.current.contains(document.activeElement)) {
|
|
153
134
|
ref.current.tabIndex = -1;
|
|
@@ -155,18 +136,14 @@ const Modal = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
155
136
|
}
|
|
156
137
|
}
|
|
157
138
|
}
|
|
158
|
-
|
|
159
139
|
overflow.current = document.body.style.overflow; // overflow of <body /> before open modal
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
140
|
+
document.body.style.overflow = 'hidden';
|
|
141
|
+
// Allow press ESC to close popup
|
|
163
142
|
if (pressESCToClose) {
|
|
164
143
|
document.addEventListener('keydown', pressESCHandler);
|
|
165
144
|
}
|
|
166
|
-
|
|
167
145
|
return () => {
|
|
168
146
|
document.body.style.overflow = overflow.current; // reset overflow of <body /> before open modal
|
|
169
|
-
|
|
170
147
|
if (pressESCToClose) {
|
|
171
148
|
document.removeEventListener('keydown', pressESCHandler);
|
|
172
149
|
}
|
|
@@ -176,11 +153,10 @@ const Modal = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
176
153
|
useImperativeHandle(reference, () => {
|
|
177
154
|
const currentRef = ref.current || {};
|
|
178
155
|
currentRef.element = ref.current;
|
|
179
|
-
const _instance = {
|
|
156
|
+
const _instance = {
|
|
157
|
+
...action
|
|
180
158
|
}; // methods
|
|
181
|
-
|
|
182
159
|
_instance.__proto__ = {}; // hidden methods
|
|
183
|
-
|
|
184
160
|
currentRef.instance = _instance;
|
|
185
161
|
return currentRef;
|
|
186
162
|
});
|
|
@@ -213,11 +189,9 @@ const Modal = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
213
189
|
}, children))));
|
|
214
190
|
return /*#__PURE__*/createPortal(node, document.body);
|
|
215
191
|
}
|
|
216
|
-
|
|
217
192
|
return null;
|
|
218
193
|
}, [children, className, dragAnyWhere, id, moveable, moveOutScreen, onClose, style, openState, showModal]);
|
|
219
194
|
}));
|
|
220
|
-
|
|
221
195
|
const ModalContainerCSS = (zIndex, alignment, darkTheme) => css`
|
|
222
196
|
${flexRow};
|
|
223
197
|
${positionFixed};
|
|
@@ -230,7 +204,6 @@ const ModalContainerCSS = (zIndex, alignment, darkTheme) => css`
|
|
|
230
204
|
top: 0;
|
|
231
205
|
left: 0;
|
|
232
206
|
`;
|
|
233
|
-
|
|
234
207
|
const ModalBoxCSS = (width, moveable, dragAnyWhere) => css`
|
|
235
208
|
${paragraph1};
|
|
236
209
|
${flexCol};
|
|
@@ -258,7 +231,6 @@ const ModalBoxCSS = (width, moveable, dragAnyWhere) => css`
|
|
|
258
231
|
animation-fill-mode: forwards;
|
|
259
232
|
}
|
|
260
233
|
`;
|
|
261
|
-
|
|
262
234
|
Modal.defaultProps = {
|
|
263
235
|
alignment: 'top',
|
|
264
236
|
autoFocus: true,
|
|
@@ -276,43 +248,30 @@ Modal.defaultProps = {
|
|
|
276
248
|
Modal.propTypes = {
|
|
277
249
|
/** The component alignment. */
|
|
278
250
|
alignment: PropTypes.oneOf(['top', 'center']),
|
|
279
|
-
|
|
280
251
|
/** If `true`, focus when component is shown. */
|
|
281
252
|
autoFocus: PropTypes.bool,
|
|
282
|
-
|
|
283
253
|
/** The content of the component. */
|
|
284
254
|
children: PropTypes.node,
|
|
285
|
-
|
|
286
255
|
/** Class for component. */
|
|
287
256
|
className: PropTypes.string,
|
|
288
|
-
|
|
289
257
|
/** If `true`, dark backdrop when component is shown. */
|
|
290
258
|
darkTheme: PropTypes.bool,
|
|
291
|
-
|
|
292
259
|
/** If `true`, allow drag the component at any position. */
|
|
293
260
|
dragAnyWhere: PropTypes.bool,
|
|
294
|
-
|
|
295
261
|
/** If `true`, allow move the component by drag and move. */
|
|
296
262
|
moveable: PropTypes.bool,
|
|
297
|
-
|
|
298
263
|
/** If `true`, allows drag the component out of the screen. */
|
|
299
264
|
moveOutScreen: PropTypes.bool,
|
|
300
|
-
|
|
301
265
|
/** Callback fired when the component requests to be closed. */
|
|
302
266
|
onClose: PropTypes.func,
|
|
303
|
-
|
|
304
267
|
/** If `true`, the component is shown. */
|
|
305
268
|
open: PropTypes.bool,
|
|
306
|
-
|
|
307
269
|
/** If `true`, hitting escape will close component. */
|
|
308
270
|
pressESCToClose: PropTypes.bool,
|
|
309
|
-
|
|
310
271
|
/** Style inline of component. */
|
|
311
272
|
style: PropTypes.object,
|
|
312
|
-
|
|
313
273
|
/** Width of the component. */
|
|
314
274
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
315
|
-
|
|
316
275
|
/** The z-index of component. */
|
|
317
276
|
zIndex: PropTypes.number
|
|
318
277
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
-
|
|
3
2
|
/** @jsxRuntime classic */
|
|
4
|
-
|
|
5
3
|
/** @jsx jsx */
|
|
6
4
|
import { memo, useState, useEffect, useMemo, useRef } from 'react';
|
|
7
5
|
import PropTypes from 'prop-types';
|
|
@@ -16,7 +14,6 @@ const icons = {
|
|
|
16
14
|
<path fillRule="evenodd" clip-rule="evenodd" d="M7.00011 6.99993C7.22711 6.99993 7.45511 7.07693 7.64011 7.23193L13.6401 12.2319C14.0641 12.5859 14.1211 13.2159 13.7681 13.6399C13.4141 14.0649 12.7851 14.1209 12.3601 13.7679L6.98911 9.29293L1.62711 13.6069C1.19711 13.9529 0.566109 13.8849 0.221108 13.4549C-0.125891 13.0249 -0.0568903 12.3959 0.373109 12.0489L6.37311 7.22093C6.55611 7.07393 6.77811 6.99993 7.00011 6.99993ZM6.98901 2.29243L1.62701 6.60743C1.19701 6.95243 0.56601 6.88443 0.22101 6.45543C-0.12499 6.02443 -0.0569899 5.39543 0.37301 5.04843L6.37301 0.220434C6.55601 0.0734332 6.77801 0.000434244 7.00001 0.000434264C7.22801 0.000434283 7.45501 0.077434 7.64001 0.232434L13.64 5.23243C14.065 5.58543 14.122 6.21543 13.768 6.64043C13.415 7.06443 12.785 7.12243 12.36 6.76843L6.98901 2.29243Z" fill="currentColor"/>
|
|
17
15
|
</svg>`
|
|
18
16
|
};
|
|
19
|
-
|
|
20
17
|
const Extra = ({
|
|
21
18
|
type,
|
|
22
19
|
displayText,
|
|
@@ -28,8 +25,8 @@ const Extra = ({
|
|
|
28
25
|
const textRef = useRef(null);
|
|
29
26
|
const iconRef = useRef(null);
|
|
30
27
|
const [typeState, setTypeState] = useState(type);
|
|
31
|
-
/* Start styled */
|
|
32
28
|
|
|
29
|
+
/* Start styled */
|
|
33
30
|
const extraIcon = css`
|
|
34
31
|
display: flex;
|
|
35
32
|
align-items: center;
|
|
@@ -64,7 +61,6 @@ const Extra = ({
|
|
|
64
61
|
/* End styled */
|
|
65
62
|
|
|
66
63
|
/* Start handler */
|
|
67
|
-
|
|
68
64
|
const handleClick = () => {
|
|
69
65
|
if (typeState === 'expand') {
|
|
70
66
|
iconRef.current.innerHTML = icons.collapse;
|
|
@@ -75,12 +71,10 @@ const Extra = ({
|
|
|
75
71
|
textRef.current.innerHTML = displayText || 'Xem thêm';
|
|
76
72
|
setTypeState('expand');
|
|
77
73
|
}
|
|
78
|
-
|
|
79
74
|
if (onClick) onClick({
|
|
80
75
|
type: typeState === 'expand' ? 'collapse' : 'expand'
|
|
81
76
|
});
|
|
82
77
|
};
|
|
83
|
-
|
|
84
78
|
useEffect(() => {
|
|
85
79
|
iconRef.current.innerHTML = type === 'expand' ? icons.expand : icons.collapse;
|
|
86
80
|
setTypeState(type);
|
|
@@ -91,7 +85,6 @@ const Extra = ({
|
|
|
91
85
|
/* End handler */
|
|
92
86
|
|
|
93
87
|
/* Start component */
|
|
94
|
-
|
|
95
88
|
const iconComp = useMemo(() => jsx("div", {
|
|
96
89
|
ref: iconRef,
|
|
97
90
|
css: extraIcon
|
|
@@ -102,14 +95,14 @@ const Extra = ({
|
|
|
102
95
|
}, displayText), []);
|
|
103
96
|
/* End component */
|
|
104
97
|
|
|
105
|
-
return jsx("div", {
|
|
98
|
+
return jsx("div", {
|
|
99
|
+
...props,
|
|
106
100
|
ref: extraRef,
|
|
107
101
|
css: extra,
|
|
108
102
|
onClick: handleClick,
|
|
109
103
|
style: style
|
|
110
104
|
}, iconComp, textComp);
|
|
111
105
|
};
|
|
112
|
-
|
|
113
106
|
Extra.defaultProps = {
|
|
114
107
|
type: 'expand'
|
|
115
108
|
};
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button, Typography, Notify as AlertNotify } from "../..";
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
|
|
5
4
|
const ImportComp = ({
|
|
6
5
|
components,
|
|
7
6
|
from = 'components',
|
|
8
7
|
importDefault = false
|
|
9
8
|
}) => {
|
|
10
9
|
let text = Array.isArray(components) ? components.join(', ') : components;
|
|
11
|
-
|
|
12
10
|
if (!importDefault) {
|
|
13
11
|
text = `{ ${text} }`;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
const importText = `import ${text} from 'diginet-core-ui/${from}';`;
|
|
17
14
|
let Notify = null;
|
|
18
|
-
|
|
19
15
|
const onCopyImport = () => {
|
|
20
16
|
if (!components) {
|
|
21
17
|
Notify(`Không có components để copy`, {
|
|
@@ -23,7 +19,6 @@ const ImportComp = ({
|
|
|
23
19
|
});
|
|
24
20
|
return;
|
|
25
21
|
}
|
|
26
|
-
|
|
27
22
|
const el = document.createElement('input');
|
|
28
23
|
el.value = importText;
|
|
29
24
|
document.body.appendChild(el);
|
|
@@ -32,7 +27,6 @@ const ImportComp = ({
|
|
|
32
27
|
document.body.removeChild(el);
|
|
33
28
|
Notify(`Đã copy ${text} from ${from}`);
|
|
34
29
|
};
|
|
35
|
-
|
|
36
30
|
return components ? /*#__PURE__*/React.createElement("div", {
|
|
37
31
|
style: {
|
|
38
32
|
display: 'flex',
|
|
@@ -69,7 +63,6 @@ const ImportComp = ({
|
|
|
69
63
|
color: 'warning'
|
|
70
64
|
}, "(Khoan h\u1EB5n d\xF9ng)"));
|
|
71
65
|
};
|
|
72
|
-
|
|
73
66
|
ImportComp.propTypes = {
|
|
74
67
|
components: PropTypes.string,
|
|
75
68
|
from: PropTypes.string,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { useState, forwardRef, useEffect } from 'react';
|
|
5
4
|
import { jsx } from '@emotion/core';
|
|
6
|
-
|
|
7
5
|
const OptionWrapper = WrappedComponent => {
|
|
8
6
|
return /*#__PURE__*/forwardRef((props, ref) => {
|
|
9
7
|
const [options, setOptions] = useState({});
|
|
10
|
-
|
|
11
8
|
const option = (option, optionValue) => {
|
|
12
9
|
if (typeof option === 'undefined') {
|
|
13
10
|
return props;
|
|
@@ -16,16 +13,17 @@ const OptionWrapper = WrappedComponent => {
|
|
|
16
13
|
[option]: optionValue
|
|
17
14
|
});
|
|
18
15
|
} else if (typeof option === 'object') {
|
|
19
|
-
setOptions({
|
|
16
|
+
setOptions({
|
|
17
|
+
...options,
|
|
20
18
|
...option
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
};
|
|
24
|
-
|
|
25
22
|
useEffect(() => {
|
|
26
23
|
setOptions({});
|
|
27
24
|
}, [props]);
|
|
28
|
-
return jsx(WrappedComponent, {
|
|
25
|
+
return jsx(WrappedComponent, {
|
|
26
|
+
...props,
|
|
29
27
|
...options,
|
|
30
28
|
action: {
|
|
31
29
|
option
|
|
@@ -34,5 +32,4 @@ const OptionWrapper = WrappedComponent => {
|
|
|
34
32
|
});
|
|
35
33
|
});
|
|
36
34
|
};
|
|
37
|
-
|
|
38
35
|
export default OptionWrapper;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -19,7 +18,6 @@ const getPosition = {
|
|
|
19
18
|
text-align: left;
|
|
20
19
|
`
|
|
21
20
|
};
|
|
22
|
-
|
|
23
21
|
const scrollbar = ({
|
|
24
22
|
backgroundScroll,
|
|
25
23
|
backgroundThumb,
|
|
@@ -70,7 +68,6 @@ const scrollbar = ({
|
|
|
70
68
|
...props
|
|
71
69
|
}, children);
|
|
72
70
|
};
|
|
73
|
-
|
|
74
71
|
scrollbar.defaultProps = {
|
|
75
72
|
backgroundScroll: white,
|
|
76
73
|
backgroundThumb: dark12,
|