diginet-core-ui 1.3.87 → 1.3.88
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 +6 -2
- package/components/accordion/group.js +9 -2
- package/components/accordion/index.js +15 -2
- package/components/accordion/summary.js +27 -4
- package/components/alert/index.js +33 -2
- package/components/alert/notify.js +22 -12
- package/components/avatar/index.js +81 -22
- package/components/badge/index.js +45 -20
- package/components/button/icon.js +56 -25
- package/components/button/index.js +65 -16
- package/components/button/more.js +35 -15
- package/components/button/ripple-effect.js +10 -0
- package/components/card/body.js +7 -2
- package/components/card/extra.js +7 -2
- package/components/card/footer.js +7 -2
- package/components/card/header.js +7 -2
- package/components/card/index.js +22 -2
- package/components/chart/Pie/Circle.js +1 -0
- package/components/chart/Pie/Sector.js +19 -2
- package/components/chart/Pie/Sectors.js +10 -0
- package/components/chart/Pie/index.js +36 -4
- package/components/chart/Pie-v2/Circle.js +1 -0
- package/components/chart/Pie-v2/Sector.js +15 -2
- package/components/chart/Pie-v2/Sectors.js +20 -0
- package/components/chart/Pie-v2/index.js +38 -11
- package/components/chart/bar/Axis.js +12 -0
- package/components/chart/bar/Bar.js +35 -13
- package/components/chart/bar/Grid.js +18 -0
- package/components/chart/bar/Labels.js +18 -0
- package/components/chart/bar/Points.js +17 -0
- package/components/chart/bar/index.js +26 -6
- package/components/chart/bar-v2/Axis.js +12 -0
- package/components/chart/bar-v2/Bar.js +36 -15
- package/components/chart/bar-v2/Grid.js +18 -0
- package/components/chart/bar-v2/Labels.js +18 -0
- package/components/chart/bar-v2/Points.js +17 -0
- package/components/chart/bar-v2/index.js +26 -6
- package/components/chart/line/Axis.js +16 -4
- package/components/chart/line/Grid.js +19 -2
- package/components/chart/line/Labels.js +18 -0
- package/components/chart/line/Path.js +33 -23
- package/components/chart/line/Point.js +40 -6
- package/components/chart/line/Title.js +3 -0
- package/components/chart/line/index.js +35 -12
- package/components/chart/line-v2/Axis.js +13 -0
- package/components/chart/line-v2/Grid.js +18 -0
- package/components/chart/line-v2/Labels.js +18 -0
- package/components/chart/line-v2/Path.js +33 -23
- package/components/chart/line-v2/Point.js +35 -6
- package/components/chart/line-v2/Title.js +3 -0
- package/components/chart/line-v2/index.js +30 -12
- package/components/check-text/index.js +8 -0
- package/components/check-text/interview-confirmation.js +7 -0
- package/components/check-text/interview-status.js +7 -0
- package/components/chip/attach.js +22 -9
- package/components/chip/index.js +33 -6
- package/components/collapse/index.js +13 -0
- package/components/divider/index.js +13 -2
- package/components/form-control/attachment/index.js +202 -41
- package/components/form-control/calendar/function.js +207 -153
- package/components/form-control/calendar/index.js +46 -21
- package/components/form-control/calendar/range.js +28 -11
- package/components/form-control/checkbox/index.js +37 -4
- package/components/form-control/control/index.js +13 -3
- package/components/form-control/date-picker/index-old.js +0 -18
- package/components/form-control/date-picker/index.js +99 -23
- package/components/form-control/date-range-picker/index.js +180 -44
- package/components/form-control/dropdown/index.js +314 -101
- package/components/form-control/dropdown-box/index.js +35 -6
- package/components/form-control/form/index.js +2 -0
- package/components/form-control/form-group/index.js +6 -1
- package/components/form-control/helper-text/index.js +9 -2
- package/components/form-control/input-base/index.js +73 -9
- package/components/form-control/label/index.js +12 -2
- package/components/form-control/money-input/index.js +143 -54
- package/components/form-control/number-input/index.js +124 -26
- package/components/form-control/number-input/index2.js +119 -78
- package/components/form-control/phone-input/index.js +85 -23
- package/components/form-control/radio/index.js +28 -9
- package/components/form-control/text-input/index.js +46 -10
- package/components/form-control/time-picker/index.js +71 -14
- package/components/form-control/time-picker/swiper.js +73 -21
- package/components/form-control/toggle/index.js +23 -8
- package/components/form-view/helper-text.js +2 -2
- package/components/form-view/index.js +14 -0
- package/components/form-view/input.js +13 -2
- package/components/form-view/label.js +2 -0
- package/components/grid/Col.js +16 -2
- package/components/grid/Container.js +21 -2
- package/components/grid/Row.js +21 -2
- package/components/grid/index.js +44 -2
- package/components/image/index.js +22 -2
- package/components/index.js +31 -62
- package/components/list/list-item-action.js +9 -0
- package/components/list/list-item-icon.js +9 -0
- package/components/list/list-item-text.js +5 -0
- package/components/list/list-item.js +11 -0
- package/components/list/list.js +13 -0
- package/components/list/sub-header.js +4 -0
- package/components/modal/body.js +6 -2
- package/components/modal/footer.js +11 -2
- package/components/modal/header.js +12 -2
- package/components/modal/index.js +10 -2
- package/components/modal/modal.js +52 -11
- package/components/others/extra/index.js +10 -3
- package/components/others/import/index.js +7 -0
- package/components/others/option-wrapper/index.js +7 -4
- package/components/others/scrollbar/index.js +3 -0
- package/components/paging/page-info.js +99 -35
- package/components/paging/page-selector.js +35 -7
- package/components/paging/page-selector2.js +74 -35
- package/components/paper/index.js +11 -0
- package/components/popover/body.js +6 -2
- package/components/popover/footer.js +11 -2
- package/components/popover/header.js +7 -2
- package/components/popover/index.js +146 -54
- package/components/popup/danger_popup.js +19 -0
- package/components/popup/index.js +48 -2
- package/components/popup/proposals_popup.js +49 -10
- package/components/popup/v2/index.js +47 -13
- package/components/progress/circular.js +48 -10
- package/components/progress/linear.js +20 -4
- package/components/rating/index.js +32 -8
- package/components/slider/slider-container.js +40 -3
- package/components/slider/slider-item.js +25 -10
- package/components/status/index.js +14 -2
- package/components/tab/tab-container.js +18 -4
- package/components/tab/tab-header.js +24 -4
- package/components/tab/tab-panel.js +16 -4
- package/components/tab/tab.js +30 -6
- package/components/tooltip/index.js +97 -12
- package/components/tooltip/portal.js +2 -0
- package/components/transfer/index.js +70 -25
- package/components/tree-view/index.js +202 -62
- package/components/typography/index.js +70 -47
- package/global/index.js +8 -0
- package/icons/basic.js +232 -0
- package/icons/effect.js +32 -15
- package/icons/general/clock/clock.js +2 -0
- package/icons/general/color-handler/background.js +2 -0
- package/icons/general/color-handler/text.js +2 -0
- package/icons/general/emoji/emoji.js +2 -0
- package/icons/general/font-properties/bold.js +2 -0
- package/icons/general/font-properties/font-family.js +2 -0
- package/icons/general/font-properties/font-size.js +2 -0
- package/icons/general/font-properties/italic.js +2 -0
- package/icons/general/font-properties/underline.js +2 -0
- package/icons/general/hyperlink/hyperlink.js +2 -0
- package/icons/general/indent/decrease.js +2 -0
- package/icons/general/indent/increase.js +2 -0
- package/icons/general/list/bullets.js +2 -0
- package/icons/general/list/numbering.js +2 -0
- package/icons/general/picture/picture.js +2 -0
- package/icons/general/steps/redo.js +2 -0
- package/icons/general/steps/undo.js +2 -0
- package/icons/general/text-align/center.js +2 -0
- package/icons/general/text-align/justify.js +2 -0
- package/icons/general/text-align/left.js +2 -0
- package/icons/general/text-align/right.js +2 -0
- package/icons/menu/dhr.js +1 -2
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +15 -2
- package/package.json +42 -42
- package/readme.md +1027 -1022
- package/styles/animation.js +58 -15
- package/styles/color-helper.js +157 -127
- package/styles/colors.js +9 -17
- package/styles/general.js +80 -18
- package/styles/typography.js +4 -4
- package/styles/utils.js +20 -19
- package/theme/createBreakpoints.js +18 -7
- package/theme/make-styles.js +5 -2
- package/theme/set-theme.js +9 -6
- package/theme/settings.js +2 -3
- package/theme/theme-provider.js +1 -0
- package/utils/array/array.js +54 -45
- package/utils/{classNames.js → classNames/index.js} +5 -0
- package/utils/console.js +6 -0
- package/utils/date.js +138 -69
- package/utils/error/error.js +11 -3
- package/utils/error/errors.js +147 -100
- package/utils/getFileType.js +9 -0
- package/utils/handleBreakpoints.js +5 -0
- package/utils/intersectionObserver.js +5 -0
- package/utils/{isMobile.js → isMobile/index.js} +0 -0
- package/utils/iterator.js +9 -0
- package/utils/map-parent.js +10 -3
- package/utils/object/extend.js +10 -0
- package/utils/object/object.js +11 -12
- package/utils/parseHTML.js +1 -0
- package/utils/promisify.js +5 -0
- package/utils/randomString.js +7 -0
- package/utils/remove-unicode.js +1 -0
- package/utils/render-portal.js +9 -1
- package/utils/renderHTML.js +6 -4
- package/utils/renderIcon.js +19 -9
- package/utils/sb-template.js +5 -6
- package/utils/string/capitalize.js +1 -0
- package/utils/string/capitalizeSentenceCase.js +2 -0
- package/utils/string/string.js +13 -0
- package/utils/type.js +21 -0
- package/utils/updatePosition.js +5 -4
- package/utils/useDelayUnmount.js +4 -0
- package/utils/useElementSize.js +3 -9
- package/utils/useEventListener.js +6 -12
- package/utils/useInput.js +6 -0
- package/utils/{useMediaQuery.js → useMediaQuery/index.js} +10 -8
- package/utils/useOnClickOutside.js +4 -2
- package/utils/usePortal.js +19 -12
- package/utils/validate.js +53 -39
package/components/grid/Col.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { jsx } from '@emotion/core';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
@@ -27,17 +28,18 @@ const useStyles = makeStyles({
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
});
|
|
31
|
+
|
|
30
32
|
const Col = props => {
|
|
31
33
|
const classes = useStyles();
|
|
32
34
|
const {
|
|
33
35
|
className
|
|
34
36
|
} = props;
|
|
35
|
-
return jsx(Grid, {
|
|
36
|
-
...props,
|
|
37
|
+
return jsx(Grid, { ...props,
|
|
37
38
|
className: classNames(`DGN-UI-Col ${classes.customCol}`, className),
|
|
38
39
|
item: true
|
|
39
40
|
});
|
|
40
41
|
};
|
|
42
|
+
|
|
41
43
|
Col.defaultProps = {
|
|
42
44
|
className: '',
|
|
43
45
|
columns: 12,
|
|
@@ -54,28 +56,40 @@ Col.defaultProps = {
|
|
|
54
56
|
Col.propTypes = {
|
|
55
57
|
/** The content of the component. */
|
|
56
58
|
children: PropTypes.node,
|
|
59
|
+
|
|
57
60
|
/** Class for component. */
|
|
58
61
|
className: PropTypes.string,
|
|
62
|
+
|
|
59
63
|
/** The number of columns. */
|
|
60
64
|
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
|
|
65
|
+
|
|
61
66
|
/** Defines the `flex-direction` style property. It is applied for all screen sizes. */
|
|
62
67
|
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
|
68
|
+
|
|
63
69
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `lg` breakpoint and wider screens if not overridden. */
|
|
64
70
|
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
71
|
+
|
|
65
72
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `md` breakpoint and wider screens if not overridden. */
|
|
66
73
|
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
74
|
+
|
|
67
75
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `sm` breakpoint and wider screens if not overridden. */
|
|
68
76
|
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
77
|
+
|
|
69
78
|
/** Style inline of component. */
|
|
70
79
|
style: PropTypes.object,
|
|
80
|
+
|
|
71
81
|
/** Self-align of the grid item. */
|
|
72
82
|
verticalAlign: PropTypes.oneOf(['auto', 'start', 'center', 'end']),
|
|
83
|
+
|
|
73
84
|
/** Defines the flex-wrap style property. It's applied for all screen sizes. */
|
|
74
85
|
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
86
|
+
|
|
75
87
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `xl` breakpoint and wider screens if not overridden. */
|
|
76
88
|
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
89
|
+
|
|
77
90
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for all the screen sizes with the lowest priority. */
|
|
78
91
|
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
92
|
+
|
|
79
93
|
/** If `true`, it sets `min-width: 0` on the item. Refer to the limitations section of the documentation to better understand the use case. */
|
|
80
94
|
zeroMinWidth: PropTypes.bool
|
|
81
95
|
};
|
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { jsx } from '@emotion/core';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
import { classNames } from "../../utils";
|
|
6
7
|
import Grid from '.';
|
|
8
|
+
|
|
7
9
|
const checkChildren = children => {
|
|
8
10
|
if (!children) return false;
|
|
11
|
+
|
|
9
12
|
if (Array.isArray(children)) {
|
|
10
13
|
return !children.every(v => v === false);
|
|
11
14
|
}
|
|
15
|
+
|
|
12
16
|
return true;
|
|
13
17
|
};
|
|
18
|
+
|
|
14
19
|
const Container = props => {
|
|
15
20
|
const {
|
|
16
21
|
className,
|
|
17
22
|
children
|
|
18
23
|
} = props;
|
|
19
|
-
return checkChildren(children) ? jsx(Grid, {
|
|
20
|
-
...props,
|
|
24
|
+
return checkChildren(children) ? jsx(Grid, { ...props,
|
|
21
25
|
className: classNames('DGN-UI-Container', className),
|
|
22
26
|
container: true
|
|
23
27
|
}) : null;
|
|
24
28
|
};
|
|
29
|
+
|
|
25
30
|
Container.defaultProps = {
|
|
26
31
|
className: '',
|
|
27
32
|
columns: 12,
|
|
@@ -60,32 +65,46 @@ Container.defaultProps = {
|
|
|
60
65
|
Container.propTypes = {
|
|
61
66
|
/** The content of the component. */
|
|
62
67
|
children: PropTypes.node,
|
|
68
|
+
|
|
63
69
|
/** Class for component. */
|
|
64
70
|
className: PropTypes.string,
|
|
71
|
+
|
|
65
72
|
/** The number of columns. */
|
|
66
73
|
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
|
|
74
|
+
|
|
67
75
|
/** Defines the horizontal space between the type `Col` components. It overrides the value of the `spacing` prop. */
|
|
68
76
|
columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
77
|
+
|
|
69
78
|
/** Defines the `flex-direction` style property. It is applied for all screen sizes. */
|
|
70
79
|
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
|
80
|
+
|
|
71
81
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `lg` breakpoint and wider screens if not overridden. */
|
|
72
82
|
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
83
|
+
|
|
73
84
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `md` breakpoint and wider screens if not overridden. */
|
|
74
85
|
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
86
|
+
|
|
75
87
|
/** Defines the vertical space between the type `Col` components. It overrides the value of the `spacing` prop. */
|
|
76
88
|
rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
89
|
+
|
|
77
90
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `sm` breakpoint and wider screens if not overridden. */
|
|
78
91
|
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
92
|
+
|
|
79
93
|
/** Defines the space between the type `Col` components */
|
|
80
94
|
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
95
|
+
|
|
81
96
|
/** Style inline of component. */
|
|
82
97
|
style: PropTypes.object,
|
|
98
|
+
|
|
83
99
|
/** Defines the flex-wrap style property. It's applied for all screen sizes. */
|
|
84
100
|
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
101
|
+
|
|
85
102
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `xl` breakpoint and wider screens if not overridden. */
|
|
86
103
|
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
104
|
+
|
|
87
105
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for all the screen sizes with the lowest priority. */
|
|
88
106
|
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
107
|
+
|
|
89
108
|
/** If `true`, it sets `min-width: 0` on the item. Refer to the limitations section of the documentation to better understand the use case. */
|
|
90
109
|
zeroMinWidth: PropTypes.bool
|
|
91
110
|
};
|
package/components/grid/Row.js
CHANGED
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { jsx } from '@emotion/core';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
import { classNames } from "../../utils";
|
|
6
7
|
import Grid from '.';
|
|
8
|
+
|
|
7
9
|
const checkChildren = children => {
|
|
8
10
|
if (!children) return false;
|
|
11
|
+
|
|
9
12
|
if (Array.isArray(children)) {
|
|
10
13
|
return !children.every(v => v === false);
|
|
11
14
|
}
|
|
15
|
+
|
|
12
16
|
return true;
|
|
13
17
|
};
|
|
18
|
+
|
|
14
19
|
const Row = props => {
|
|
15
20
|
const {
|
|
16
21
|
className,
|
|
17
22
|
children
|
|
18
23
|
} = props;
|
|
19
|
-
return checkChildren(children) ? jsx(Grid, {
|
|
20
|
-
...props,
|
|
24
|
+
return checkChildren(children) ? jsx(Grid, { ...props,
|
|
21
25
|
className: classNames('DGN-UI-Row', className),
|
|
22
26
|
container: true
|
|
23
27
|
}) : null;
|
|
24
28
|
};
|
|
29
|
+
|
|
25
30
|
Row.defaultProps = {
|
|
26
31
|
className: '',
|
|
27
32
|
columns: 12,
|
|
@@ -53,32 +58,46 @@ Row.defaultProps = {
|
|
|
53
58
|
Row.propTypes = {
|
|
54
59
|
/** The content of the component. */
|
|
55
60
|
children: PropTypes.node,
|
|
61
|
+
|
|
56
62
|
/** Class for component. */
|
|
57
63
|
className: PropTypes.string,
|
|
64
|
+
|
|
58
65
|
/** The number of columns. */
|
|
59
66
|
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
|
|
67
|
+
|
|
60
68
|
/** Defines the horizontal space between the type `Col` components. It overrides the value of the `spacing` prop. */
|
|
61
69
|
columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
70
|
+
|
|
62
71
|
/** Defines the `flex-direction` style property. It is applied for all screen sizes. */
|
|
63
72
|
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
|
73
|
+
|
|
64
74
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `lg` breakpoint and wider screens if not overridden. */
|
|
65
75
|
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
76
|
+
|
|
66
77
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `md` breakpoint and wider screens if not overridden. */
|
|
67
78
|
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
79
|
+
|
|
68
80
|
/** Defines the vertical space between the type `Col` components. It overrides the value of the `spacing` prop. */
|
|
69
81
|
rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
82
|
+
|
|
70
83
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `sm` breakpoint and wider screens if not overridden. */
|
|
71
84
|
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
85
|
+
|
|
72
86
|
/** Defines the space between the type `Col` components */
|
|
73
87
|
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
88
|
+
|
|
74
89
|
/** Style inline of component. */
|
|
75
90
|
style: PropTypes.object,
|
|
91
|
+
|
|
76
92
|
/** Defines the flex-wrap style property. It's applied for all screen sizes. */
|
|
77
93
|
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
94
|
+
|
|
78
95
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `xl` breakpoint and wider screens if not overridden. */
|
|
79
96
|
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
97
|
+
|
|
80
98
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for all the screen sizes with the lowest priority. */
|
|
81
99
|
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
100
|
+
|
|
82
101
|
/** If `true`, it sets `min-width: 0` on the item. Refer to the limitations section of the documentation to better understand the use case. */
|
|
83
102
|
zeroMinWidth: PropTypes.bool
|
|
84
103
|
};
|
package/components/grid/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { css, jsx } from '@emotion/core';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
@@ -43,16 +44,21 @@ const Grid = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
43
44
|
const topSpacing = topSpacingProp !== null && topSpacingProp !== void 0 ? topSpacingProp : rowSpacing;
|
|
44
45
|
const leftSpacing = leftSpacingProp !== null && leftSpacingProp !== void 0 ? leftSpacingProp : columnSpacing;
|
|
45
46
|
const ref = useRef(null);
|
|
47
|
+
|
|
46
48
|
const _GridCSS = GridCSS(direction, zeroMinWidth, container, item, wrap, verticalAlign);
|
|
49
|
+
|
|
47
50
|
const _GridSpacingCSS = GridSpacingCSS(rowSpacing, columnSpacing, topSpacing, leftSpacing);
|
|
51
|
+
|
|
48
52
|
const _HandleGridCSS = HandleGridCSS([xs, sm, md, lg, xl], columns);
|
|
53
|
+
|
|
49
54
|
useImperativeHandle(reference, () => {
|
|
50
55
|
const currentRef = ref.current || {};
|
|
51
56
|
currentRef.element = ref.current;
|
|
52
|
-
const _instance = {
|
|
53
|
-
...action
|
|
57
|
+
const _instance = { ...action
|
|
54
58
|
}; // methods
|
|
59
|
+
|
|
55
60
|
_instance.__proto__ = {}; // hidden methods
|
|
61
|
+
|
|
56
62
|
currentRef.instance = _instance;
|
|
57
63
|
return currentRef;
|
|
58
64
|
});
|
|
@@ -68,10 +74,12 @@ const Grid = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
68
74
|
}, children));
|
|
69
75
|
}, [columns, columnSpacing, leftSpacing, rowSpacing, topSpacing, children, className, container, direction, id, item, lg, md, sm, spacing, style, verticalAlign, wrap, xl, xs, zeroMinWidth]);
|
|
70
76
|
}));
|
|
77
|
+
|
|
71
78
|
const getOffset = val => {
|
|
72
79
|
const parse = parseFloat(val);
|
|
73
80
|
return `${parse}${String(val).replace(String(parse), '') || 'px'}`;
|
|
74
81
|
};
|
|
82
|
+
|
|
75
83
|
const processSizeArray = sizeArr => {
|
|
76
84
|
let lastValue = false;
|
|
77
85
|
sizeArr = sizeArr.map(item => {
|
|
@@ -80,8 +88,10 @@ const processSizeArray = sizeArr => {
|
|
|
80
88
|
});
|
|
81
89
|
return sizeArr;
|
|
82
90
|
};
|
|
91
|
+
|
|
83
92
|
const handleGrid = (size, value, columns) => {
|
|
84
93
|
let css = '';
|
|
94
|
+
|
|
85
95
|
if (value === true) {
|
|
86
96
|
css = `
|
|
87
97
|
flex-basis: 0;
|
|
@@ -105,10 +115,12 @@ const handleGrid = (size, value, columns) => {
|
|
|
105
115
|
`;
|
|
106
116
|
});
|
|
107
117
|
}
|
|
118
|
+
|
|
108
119
|
return `${themeBreakpoints.up(size)} {
|
|
109
120
|
${css}
|
|
110
121
|
}`;
|
|
111
122
|
};
|
|
123
|
+
|
|
112
124
|
const GridCSS = (direction, zeroMinWidth, container, item, wrap, verticalAlign) => css`
|
|
113
125
|
${boxBorder};
|
|
114
126
|
${container && `
|
|
@@ -125,18 +137,22 @@ const GridCSS = (direction, zeroMinWidth, container, item, wrap, verticalAlign)
|
|
|
125
137
|
return `flex-direction: ${propValue}`;
|
|
126
138
|
})};
|
|
127
139
|
`;
|
|
140
|
+
|
|
128
141
|
const GridSpacingCSS = (rowSpacing, columnSpacing, topSpacing, leftSpacing) => css`
|
|
129
142
|
${topSpacing && handleBreakpoints(topSpacing, propValue => {
|
|
130
143
|
const spacing = typeof propValue === 'number' ? themeSpacing(propValue) : propValue;
|
|
144
|
+
|
|
131
145
|
if (spacing !== '0px') {
|
|
132
146
|
return `
|
|
133
147
|
margin-top: -${getOffset(spacing)};
|
|
134
148
|
`;
|
|
135
149
|
}
|
|
150
|
+
|
|
136
151
|
return '';
|
|
137
152
|
})};
|
|
138
153
|
${rowSpacing && handleBreakpoints(rowSpacing, propValue => {
|
|
139
154
|
const spacing = typeof propValue === 'number' ? themeSpacing(propValue) : propValue;
|
|
155
|
+
|
|
140
156
|
if (spacing !== '0px') {
|
|
141
157
|
return `
|
|
142
158
|
& > .DGN-UI-Grid-item {
|
|
@@ -144,19 +160,23 @@ const GridSpacingCSS = (rowSpacing, columnSpacing, topSpacing, leftSpacing) => c
|
|
|
144
160
|
}
|
|
145
161
|
`;
|
|
146
162
|
}
|
|
163
|
+
|
|
147
164
|
return '';
|
|
148
165
|
})};
|
|
149
166
|
${leftSpacing && handleBreakpoints(leftSpacing, propValue => {
|
|
150
167
|
const spacing = typeof propValue === 'number' ? themeSpacing(propValue) : propValue;
|
|
168
|
+
|
|
151
169
|
if (spacing !== '0px') {
|
|
152
170
|
return `
|
|
153
171
|
margin-left: -${getOffset(spacing)};
|
|
154
172
|
`;
|
|
155
173
|
}
|
|
174
|
+
|
|
156
175
|
return '';
|
|
157
176
|
})};
|
|
158
177
|
${columnSpacing && handleBreakpoints(columnSpacing, propValue => {
|
|
159
178
|
const spacing = typeof propValue === 'number' ? themeSpacing(propValue) : propValue;
|
|
179
|
+
|
|
160
180
|
if (spacing !== '0px') {
|
|
161
181
|
return `
|
|
162
182
|
width: calc(100% + ${getOffset(spacing)});
|
|
@@ -165,14 +185,17 @@ const GridSpacingCSS = (rowSpacing, columnSpacing, topSpacing, leftSpacing) => c
|
|
|
165
185
|
}
|
|
166
186
|
`;
|
|
167
187
|
}
|
|
188
|
+
|
|
168
189
|
return '';
|
|
169
190
|
})};
|
|
170
191
|
`;
|
|
192
|
+
|
|
171
193
|
const HandleGridCSS = (sizeArr, columns) => css`
|
|
172
194
|
${processSizeArray(sizeArr).map((item, idx) => {
|
|
173
195
|
return handleGrid(breakpointKeys[idx], item, columns);
|
|
174
196
|
})}
|
|
175
197
|
`;
|
|
198
|
+
|
|
176
199
|
Grid.defaultProps = {
|
|
177
200
|
className: '',
|
|
178
201
|
columns: 12,
|
|
@@ -193,42 +216,61 @@ Grid.defaultProps = {
|
|
|
193
216
|
Grid.propTypes = {
|
|
194
217
|
/** The content of the component. */
|
|
195
218
|
children: PropTypes.node,
|
|
219
|
+
|
|
196
220
|
/** Style inline of component. */
|
|
197
221
|
style: PropTypes.object,
|
|
222
|
+
|
|
198
223
|
/** Class for component. */
|
|
199
224
|
className: PropTypes.string,
|
|
225
|
+
|
|
200
226
|
/** The number of columns. */
|
|
201
227
|
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
|
|
228
|
+
|
|
202
229
|
/** Defines the horizontal space between the type `item` components. It overrides the value of the `spacing` prop. */
|
|
203
230
|
columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
231
|
+
|
|
204
232
|
/** If true, the component will have the flex *container* behavior. You should be wrapping *items* with a *container*. */
|
|
205
233
|
container: PropTypes.bool,
|
|
234
|
+
|
|
206
235
|
/** Defines the `flex-direction` style property. It is applied for all screen sizes. */
|
|
207
236
|
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
|
237
|
+
|
|
208
238
|
/** If `true`, the component will have the flex *item* behavior. You should be wrapping *items* with a *container*. */
|
|
209
239
|
item: PropTypes.bool,
|
|
240
|
+
|
|
210
241
|
/** Defines the horizontal space of `container` components. */
|
|
211
242
|
leftSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
243
|
+
|
|
212
244
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `lg` breakpoint and wider screens if not overridden. */
|
|
213
245
|
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
246
|
+
|
|
214
247
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `md` breakpoint and wider screens if not overridden. */
|
|
215
248
|
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
249
|
+
|
|
216
250
|
/** Defines the vertical space between the type `item` components. It overrides the value of the `spacing` prop. */
|
|
217
251
|
rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
252
|
+
|
|
218
253
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `sm` breakpoint and wider screens if not overridden. */
|
|
219
254
|
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
255
|
+
|
|
220
256
|
/** Defines the space between the type `item` components. It can only be used on a type `container` component. */
|
|
221
257
|
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
258
|
+
|
|
222
259
|
/** Defines the vertical space of `container` components. */
|
|
223
260
|
topSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
261
|
+
|
|
224
262
|
/** Self-align of the grid item. */
|
|
225
263
|
verticalAlign: PropTypes.oneOf(['auto', 'start', 'center', 'end']),
|
|
264
|
+
|
|
226
265
|
/** Defines the flex-wrap style property. It's applied for all screen sizes. */
|
|
227
266
|
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
267
|
+
|
|
228
268
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for the `xl` breakpoint and wider screens if not overridden. */
|
|
229
269
|
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
270
|
+
|
|
230
271
|
/** If a number, it sets the number of columns the grid item uses. It can't be greater than the total number of columns of the container (12 by default). If 'auto', the grid item's width matches its content. If false, the prop is ignored. If true, the grid item's width grows to use the space available in the grid container. The value is applied for all the screen sizes with the lowest priority. */
|
|
231
272
|
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
273
|
+
|
|
232
274
|
/** If `true`, it sets `min-width: 0` on the item. Refer to the limitations section of the documentation to better understand the use case. */
|
|
233
275
|
zeroMinWidth: PropTypes.bool
|
|
234
276
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { forwardRef, Fragment, memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
@@ -37,17 +38,21 @@ const Image = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
37
38
|
useIntersection(ref, () => {
|
|
38
39
|
setIsInView(true);
|
|
39
40
|
});
|
|
41
|
+
|
|
40
42
|
const _ImageCSS = ImageCSS(width, height, circular);
|
|
43
|
+
|
|
41
44
|
useEffect(() => {
|
|
42
45
|
if (src) {
|
|
43
46
|
if (isInView || !lazyLoading) {
|
|
44
47
|
const img = document.createElement('img');
|
|
45
48
|
img.src = src;
|
|
46
49
|
img.alt = '';
|
|
50
|
+
|
|
47
51
|
img.onerror = () => {
|
|
48
52
|
setSrcState(defaultSrc);
|
|
49
53
|
onError === null || onError === void 0 ? void 0 : onError();
|
|
50
54
|
};
|
|
55
|
+
|
|
51
56
|
img.onload = () => {
|
|
52
57
|
setSrcState(src);
|
|
53
58
|
};
|
|
@@ -57,13 +62,15 @@ const Image = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
57
62
|
useImperativeHandle(reference, () => {
|
|
58
63
|
const currentRef = ref.current || {};
|
|
59
64
|
currentRef.element = ref.current;
|
|
60
|
-
const _instance = {
|
|
61
|
-
...action
|
|
65
|
+
const _instance = { ...action
|
|
62
66
|
}; // methods
|
|
67
|
+
|
|
63
68
|
_instance.__proto__ = {}; // hidden methods
|
|
69
|
+
|
|
64
70
|
currentRef.instance = _instance;
|
|
65
71
|
return currentRef;
|
|
66
72
|
});
|
|
73
|
+
|
|
67
74
|
const renderImage = () => {
|
|
68
75
|
const defaultImage = jsx("img", {
|
|
69
76
|
src: defaultSrc,
|
|
@@ -85,10 +92,12 @@ const Image = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
85
92
|
width: width,
|
|
86
93
|
height: height
|
|
87
94
|
}));
|
|
95
|
+
|
|
88
96
|
if (lazyLoading) {
|
|
89
97
|
return isInView ? image : defaultImage;
|
|
90
98
|
} else return image;
|
|
91
99
|
};
|
|
100
|
+
|
|
92
101
|
return useMemo(() => {
|
|
93
102
|
return jsx("div", {
|
|
94
103
|
ref: ref,
|
|
@@ -99,6 +108,7 @@ const Image = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
99
108
|
}, renderImage());
|
|
100
109
|
}, [alt, circular, className, defaultSrc, height, id, lazyLoading, src, style, width, isInView, onLoaded, srcState]);
|
|
101
110
|
}));
|
|
111
|
+
|
|
102
112
|
const ImageCSS = (width, height, circular) => css`
|
|
103
113
|
${displayInlineFlex};
|
|
104
114
|
${positionRelative};
|
|
@@ -107,6 +117,7 @@ const ImageCSS = (width, height, circular) => css`
|
|
|
107
117
|
${parseWidthHeight(width, height)};
|
|
108
118
|
${circular && `border-radius: 50%`};
|
|
109
119
|
`;
|
|
120
|
+
|
|
110
121
|
const blurAnimationCSS = css`
|
|
111
122
|
animation: ${blurKeyframe} 1s ease;
|
|
112
123
|
`;
|
|
@@ -121,22 +132,31 @@ Image.defaultProps = {
|
|
|
121
132
|
Image.propTypes = {
|
|
122
133
|
/** Image description. */
|
|
123
134
|
alt: PropTypes.string,
|
|
135
|
+
|
|
124
136
|
/** If `true`, image is circular.*/
|
|
125
137
|
circular: PropTypes.bool,
|
|
138
|
+
|
|
126
139
|
/** Class for component. */
|
|
127
140
|
className: PropTypes.string,
|
|
141
|
+
|
|
128
142
|
/** Default img when src error. */
|
|
129
143
|
defaultSrc: PropTypes.string,
|
|
144
|
+
|
|
130
145
|
/** Height of component. */
|
|
131
146
|
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
147
|
+
|
|
132
148
|
/** If `true`, lazy loading image.*/
|
|
133
149
|
lazyLoading: PropTypes.bool,
|
|
150
|
+
|
|
134
151
|
/** Callback fired when the src is error. */
|
|
135
152
|
onError: PropTypes.func,
|
|
153
|
+
|
|
136
154
|
/** Image path. */
|
|
137
155
|
src: PropTypes.string,
|
|
156
|
+
|
|
138
157
|
/** Style inline of component. */
|
|
139
158
|
style: PropTypes.object,
|
|
159
|
+
|
|
140
160
|
/** Width of component. */
|
|
141
161
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
142
162
|
};
|