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
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { css, jsx } from '@emotion/core';
|
|
5
4
|
import { Popover } from "./..";
|
|
6
|
-
import OptionWrapper from "../others/option-wrapper";
|
|
7
5
|
import PropTypes from 'prop-types';
|
|
8
6
|
import { forwardRef, Fragment, memo, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
9
7
|
import { breakAll, breakWord, cursorPointer, displayBlock, displayInlineBlock, italic, overflowHidden, parseHeight, parseMaxWidth, pd, positionRelative, textCapitalize, textCenter, textColor, textLineThrough, textLowercase, textunderline, textUppercase, whiteSpaceBreakSpaces } from "../../styles/general";
|
|
@@ -24,9 +22,7 @@ const {
|
|
|
24
22
|
} = useTheme();
|
|
25
23
|
const colorMap = new Map([['default', textMain], ['secondary', systemRest]]);
|
|
26
24
|
const formatMap = new Map([['capitalize', textCapitalize], ['uppercase', textUppercase], ['lowercase', textLowercase], ['italic', italic], ['line-through', textLineThrough], ['underline', textunderline]]);
|
|
27
|
-
|
|
28
25
|
const isTextClamped = elm => (elm === null || elm === void 0 ? void 0 : elm.scrollHeight) > (elm === null || elm === void 0 ? void 0 : elm.clientHeight);
|
|
29
|
-
|
|
30
26
|
const Typography = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
31
27
|
action = {},
|
|
32
28
|
capitalize,
|
|
@@ -47,7 +43,6 @@ const Typography = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
47
43
|
...props
|
|
48
44
|
}, reference) => {
|
|
49
45
|
var _ref$current;
|
|
50
|
-
|
|
51
46
|
if (!reference) reference = useRef(null);
|
|
52
47
|
const ref = useRef(null);
|
|
53
48
|
const formatCSS = [];
|
|
@@ -56,37 +51,29 @@ const Typography = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
56
51
|
});
|
|
57
52
|
const [openTooltip, setOpenTooltip] = useState(false);
|
|
58
53
|
const _TextRootCSS = [TextRootCSS(color, type, lineClamp, onClick, hoverTooltip), ...formatCSS];
|
|
59
|
-
|
|
60
54
|
const showTooltip = () => {
|
|
61
55
|
if (!hoverTooltip) return;
|
|
62
|
-
|
|
63
56
|
if (isTextClamped(ref.current)) {
|
|
64
57
|
setOpenTooltip(true);
|
|
65
58
|
}
|
|
66
59
|
};
|
|
67
|
-
|
|
68
60
|
const hideTooltip = () => {
|
|
69
61
|
if (!hoverTooltip) return;
|
|
70
|
-
|
|
71
62
|
if (isTextClamped(ref.current)) {
|
|
72
63
|
setOpenTooltip(false);
|
|
73
64
|
}
|
|
74
65
|
};
|
|
75
|
-
|
|
76
66
|
useImperativeHandle(reference, () => {
|
|
77
67
|
const currentRef = ref.current || {};
|
|
78
68
|
currentRef.element = ref.current;
|
|
79
|
-
const _instance = {
|
|
69
|
+
const _instance = {
|
|
70
|
+
...action
|
|
80
71
|
}; // methods
|
|
81
|
-
|
|
82
72
|
_instance.__proto__ = {}; // hidden methods
|
|
83
|
-
|
|
84
73
|
currentRef.instance = _instance;
|
|
85
74
|
return currentRef;
|
|
86
75
|
});
|
|
87
|
-
|
|
88
76
|
const classes = (inTooltip = false) => classNames('DGN-UI-Typography', center && 'DGN-Typography-center', fullWidth && 'DGN-Typography-fullWidth', `DGN-Typography-${type}`, uppercase && `DGN-Typography-Uppercase`, capitalize && 'DGN-Typography-Capitalize', !inTooltip && lineClamp && 'DGN-Typography-Clamp', className);
|
|
89
|
-
|
|
90
77
|
const content = Array.isArray(children) && !children.some(node => node && String(node.$$typeof) === 'Symbol(react.element)') ? children.join('') : children;
|
|
91
78
|
const renderTooltip = hoverTooltip ? jsx(Popover, {
|
|
92
79
|
open: openTooltip,
|
|
@@ -112,7 +99,6 @@ const Typography = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
112
99
|
}), renderTooltip);
|
|
113
100
|
}, [capitalize, center, children, className, color, format, fullWidth, hoverTooltip, italic, lineClamp, mapping, onClick, props, tooltipDirection, type, uppercase, openTooltip]);
|
|
114
101
|
}));
|
|
115
|
-
|
|
116
102
|
const TextRootCSS = (color, type, lineClamp, onClick, hoverTooltip) => css`
|
|
117
103
|
${displayInlineBlock};
|
|
118
104
|
${positionRelative};
|
|
@@ -142,7 +128,6 @@ const TextRootCSS = (color, type, lineClamp, onClick, hoverTooltip) => css`
|
|
|
142
128
|
-webkit-box-orient: vertical;
|
|
143
129
|
}
|
|
144
130
|
`;
|
|
145
|
-
|
|
146
131
|
const PopoverContentCSS = css`
|
|
147
132
|
${textColor('text.tooltip')};
|
|
148
133
|
${pd([1, 1.5])};
|
|
@@ -159,58 +144,45 @@ Typography.defaultProps = {
|
|
|
159
144
|
tooltipDirection: 'bottom',
|
|
160
145
|
type: 'p1'
|
|
161
146
|
};
|
|
162
|
-
/** type of text<br/>
|
|
163
|
-
* h1: Title <br/>
|
|
164
|
-
* h2: Header Popup <br/>
|
|
165
|
-
* h3: Header popup <br/>
|
|
166
|
-
* h4: Button, Tab, Title group <br/>
|
|
167
|
-
* h5: Label column, Title group <br/>
|
|
168
|
-
* h6: Label form <br/>
|
|
169
|
-
* p1: Body text <br/>
|
|
170
|
-
* p2: Body text <br/>
|
|
171
|
-
* p3: Notice, Tooltip <br/>
|
|
172
|
-
*/
|
|
173
147
|
|
|
148
|
+
/** type of text<br/>
|
|
149
|
+
* h1: Title <br/>
|
|
150
|
+
* h2: Header Popup <br/>
|
|
151
|
+
* h3: Header popup <br/>
|
|
152
|
+
* h4: Button, Tab, Title group <br/>
|
|
153
|
+
* h5: Label column, Title group <br/>
|
|
154
|
+
* h6: Label form <br/>
|
|
155
|
+
* p1: Body text <br/>
|
|
156
|
+
* p2: Body text <br/>
|
|
157
|
+
* p3: Notice, Tooltip <br/>
|
|
158
|
+
*/
|
|
174
159
|
export const arrTypeTypography = ['t1', 't2', 't3', 't4', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p1', 'p2', 'p3', 'title1', 'title2', 'title3', 'title4', 'heading1', 'heading2', 'heading3', 'heading4', 'heading5', 'heading6', 'paragraph1', 'paragraph2', 'paragraph3'];
|
|
175
160
|
Typography.propTypes = {
|
|
176
161
|
/** If `true`, text-align is center. */
|
|
177
162
|
center: PropTypes.bool,
|
|
178
|
-
|
|
179
163
|
/** The content of the component. */
|
|
180
164
|
children: PropTypes.node,
|
|
181
|
-
|
|
182
165
|
/** Class for component. */
|
|
183
166
|
className: PropTypes.string,
|
|
184
|
-
|
|
185
167
|
/** Color of text ['primary', 'secondary', 'success', 'warning', 'danger', 'info', '#hex', rgb(#,#,#)]. */
|
|
186
168
|
color: PropTypes.string,
|
|
187
|
-
|
|
188
169
|
/** Option to make the text bold, italic, capitalize or underline. */
|
|
189
170
|
format: PropTypes.arrayOf(PropTypes.oneOf(['capitalize', 'uppercase', 'lowercase', 'italic', 'line-through', 'underline'])),
|
|
190
|
-
|
|
191
171
|
/** If `true`, the component will take up the full width of its container. */
|
|
192
172
|
fullWidth: PropTypes.bool,
|
|
193
|
-
|
|
194
173
|
/** If `true`, hover will show tooltip when text clamped. */
|
|
195
174
|
hoverTooltip: PropTypes.bool,
|
|
196
|
-
|
|
197
175
|
/** The line-clamp property truncates text at a specific number of lines. */
|
|
198
176
|
lineClamp: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['auto'])]),
|
|
199
|
-
|
|
200
177
|
/** The component used for the root node. Either a string to use a HTML element or a component. */
|
|
201
178
|
mapping: PropTypes.string,
|
|
202
|
-
|
|
203
179
|
/** Callback fired when the component is clicked. */
|
|
204
180
|
onClick: PropTypes.func,
|
|
205
|
-
|
|
206
181
|
/** Accepts all props which `mapping` tag support. */
|
|
207
182
|
props: PropTypes.object,
|
|
208
|
-
|
|
209
183
|
/** Tooltip direction. */
|
|
210
184
|
tooltipDirection: PropTypes.oneOf(['top', 'bottom', 'left', 'right']),
|
|
211
|
-
|
|
212
185
|
/** Applies the theme typography styles. */
|
|
213
186
|
type: PropTypes.oneOf(arrTypeTypography)
|
|
214
187
|
};
|
|
215
|
-
export
|
|
216
|
-
export default OptionWrapper(Typography);
|
|
188
|
+
export default Typography;
|
package/global/index.js
CHANGED
|
@@ -149,21 +149,16 @@ const globalObject = {
|
|
|
149
149
|
};
|
|
150
150
|
export const getGlobal = (key, language = locale.get()) => {
|
|
151
151
|
var _globalObject$languag;
|
|
152
|
-
|
|
153
152
|
if (Array.isArray(key)) {
|
|
154
153
|
let result = globalObject[language];
|
|
155
|
-
|
|
156
154
|
for (let i = 0; i < key.length; i++) {
|
|
157
155
|
if (!result[key[i]]) {
|
|
158
156
|
return null;
|
|
159
157
|
}
|
|
160
|
-
|
|
161
158
|
result = result[key[i]];
|
|
162
159
|
}
|
|
163
|
-
|
|
164
160
|
return result;
|
|
165
161
|
}
|
|
166
|
-
|
|
167
162
|
return globalObject[key] || ((_globalObject$languag = globalObject[language]) === null || _globalObject$languag === void 0 ? void 0 : _globalObject$languag[key]);
|
|
168
163
|
};
|
|
169
164
|
export const setGlobal = global => {
|
|
@@ -174,11 +169,9 @@ export const setGlobal = global => {
|
|
|
174
169
|
});
|
|
175
170
|
}
|
|
176
171
|
};
|
|
177
|
-
|
|
178
172
|
const overrideGlobal = (newGlobal, ingredient, key) => {
|
|
179
173
|
const newGlobalValue = newGlobal[key];
|
|
180
174
|
const rootValue = ingredient[key];
|
|
181
|
-
|
|
182
175
|
if (typeof newGlobalValue === 'object' && typeof rootValue === 'object') {
|
|
183
176
|
const newGlobalKeys = Object.keys(newGlobalValue);
|
|
184
177
|
newGlobalKeys.forEach(newKey => {
|
|
@@ -190,5 +183,4 @@ const overrideGlobal = (newGlobal, ingredient, key) => {
|
|
|
190
183
|
globalObject[key] = newGlobalValue;
|
|
191
184
|
}
|
|
192
185
|
};
|
|
193
|
-
|
|
194
186
|
export default globalObject;
|
package/icons/basic.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* eslint-disable react/display-name */
|
|
2
|
-
|
|
3
2
|
/* eslint-disable react/prop-types */
|
|
4
3
|
import React, { memo } from 'react';
|
|
5
4
|
import { useTheme } from "../theme";
|
|
@@ -25,7 +24,6 @@ export const Account = /*#__PURE__*/memo(({
|
|
|
25
24
|
fill: colors[color] || color
|
|
26
25
|
}));
|
|
27
26
|
}
|
|
28
|
-
|
|
29
27
|
return /*#__PURE__*/React.createElement("svg", {
|
|
30
28
|
width: width || 20,
|
|
31
29
|
height: height || 20,
|
|
@@ -120,7 +118,6 @@ export const AddItem = /*#__PURE__*/memo(({
|
|
|
120
118
|
fill: colors[color] || color
|
|
121
119
|
})));
|
|
122
120
|
}
|
|
123
|
-
|
|
124
121
|
return /*#__PURE__*/React.createElement("svg", {
|
|
125
122
|
width: width || 22,
|
|
126
123
|
height: height || 17,
|
|
@@ -155,7 +152,6 @@ export const AddNote = /*#__PURE__*/memo(({
|
|
|
155
152
|
fillOpacity: opacity
|
|
156
153
|
}));
|
|
157
154
|
}
|
|
158
|
-
|
|
159
155
|
return /*#__PURE__*/React.createElement("svg", {
|
|
160
156
|
width: width || 16,
|
|
161
157
|
height: height || 20,
|
|
@@ -214,7 +210,6 @@ export const AddPerson = /*#__PURE__*/memo(({
|
|
|
214
210
|
fill: colors[color] || color
|
|
215
211
|
}));
|
|
216
212
|
}
|
|
217
|
-
|
|
218
213
|
return /*#__PURE__*/React.createElement("svg", {
|
|
219
214
|
width: width || 22,
|
|
220
215
|
height: height || 16,
|
|
@@ -280,7 +275,6 @@ export const AddAttachmentSmall = /*#__PURE__*/memo(({
|
|
|
280
275
|
fill: colors[color] || color
|
|
281
276
|
}));
|
|
282
277
|
}
|
|
283
|
-
|
|
284
278
|
return /*#__PURE__*/React.createElement("svg", {
|
|
285
279
|
width: width || 18,
|
|
286
280
|
height: height || 18,
|
|
@@ -326,7 +320,6 @@ export const AddServer = /*#__PURE__*/memo(({
|
|
|
326
320
|
fillOpacity: opacity
|
|
327
321
|
}));
|
|
328
322
|
}
|
|
329
|
-
|
|
330
323
|
return /*#__PURE__*/React.createElement("svg", {
|
|
331
324
|
width: width || 23,
|
|
332
325
|
height: height || 20,
|
|
@@ -867,7 +860,6 @@ export const Attachment = /*#__PURE__*/memo(({
|
|
|
867
860
|
fill: colors[color] || color
|
|
868
861
|
}));
|
|
869
862
|
}
|
|
870
|
-
|
|
871
863
|
return /*#__PURE__*/React.createElement("svg", {
|
|
872
864
|
width: width || 18,
|
|
873
865
|
height: height || 21,
|
|
@@ -895,7 +887,6 @@ export const Back = /*#__PURE__*/memo(({
|
|
|
895
887
|
fill: colors[color] || color
|
|
896
888
|
}));
|
|
897
889
|
}
|
|
898
|
-
|
|
899
890
|
return /*#__PURE__*/React.createElement("svg", {
|
|
900
891
|
width: width || 18,
|
|
901
892
|
height: height || 12,
|
|
@@ -1153,7 +1144,6 @@ export const Block = /*#__PURE__*/memo(({
|
|
|
1153
1144
|
fill: colors[color] || color
|
|
1154
1145
|
}));
|
|
1155
1146
|
}
|
|
1156
|
-
|
|
1157
1147
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1158
1148
|
width: width || 20,
|
|
1159
1149
|
height: height || 20,
|
|
@@ -1740,7 +1730,6 @@ export const Danger = /*#__PURE__*/memo(({
|
|
|
1740
1730
|
fill: colors[color] || color
|
|
1741
1731
|
}));
|
|
1742
1732
|
}
|
|
1743
|
-
|
|
1744
1733
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1745
1734
|
width: width || 16,
|
|
1746
1735
|
height: height || 22,
|
|
@@ -1772,7 +1761,6 @@ export const Delete = /*#__PURE__*/memo(({
|
|
|
1772
1761
|
fill: colors[color] || color
|
|
1773
1762
|
}));
|
|
1774
1763
|
}
|
|
1775
|
-
|
|
1776
1764
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1777
1765
|
width: width || 14,
|
|
1778
1766
|
height: height || 18,
|
|
@@ -1903,7 +1891,6 @@ export const Display = /*#__PURE__*/memo(({
|
|
|
1903
1891
|
fill: colors[color] || color
|
|
1904
1892
|
}));
|
|
1905
1893
|
}
|
|
1906
|
-
|
|
1907
1894
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1908
1895
|
width: width || 22,
|
|
1909
1896
|
height: height || 22,
|
|
@@ -1963,7 +1950,6 @@ export const Download = /*#__PURE__*/memo(({
|
|
|
1963
1950
|
fill: colors[color] || color
|
|
1964
1951
|
}));
|
|
1965
1952
|
}
|
|
1966
|
-
|
|
1967
1953
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1968
1954
|
width: width || 14,
|
|
1969
1955
|
height: height || 17,
|
|
@@ -2189,7 +2175,6 @@ export const Earth = /*#__PURE__*/memo(({
|
|
|
2189
2175
|
fill: colors[color] || color
|
|
2190
2176
|
}));
|
|
2191
2177
|
}
|
|
2192
|
-
|
|
2193
2178
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2194
2179
|
width: width || 20,
|
|
2195
2180
|
height: height || 20,
|
|
@@ -2357,7 +2342,6 @@ export const Filters = /*#__PURE__*/memo(({
|
|
|
2357
2342
|
fill: colors[color] || color
|
|
2358
2343
|
}));
|
|
2359
2344
|
}
|
|
2360
|
-
|
|
2361
2345
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2362
2346
|
width: width || 18,
|
|
2363
2347
|
height: height || 18,
|
|
@@ -2581,7 +2565,6 @@ export const Gavel = /*#__PURE__*/memo(({
|
|
|
2581
2565
|
fillOpacity: opacity
|
|
2582
2566
|
}));
|
|
2583
2567
|
}
|
|
2584
|
-
|
|
2585
2568
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2586
2569
|
width: width || 22,
|
|
2587
2570
|
height: height || 22,
|
|
@@ -2614,7 +2597,6 @@ export const Generate = /*#__PURE__*/memo(({
|
|
|
2614
2597
|
fill: colors[color] || color
|
|
2615
2598
|
}));
|
|
2616
2599
|
}
|
|
2617
|
-
|
|
2618
2600
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2619
2601
|
width: width || 18,
|
|
2620
2602
|
height: height || 20,
|
|
@@ -2876,7 +2858,6 @@ export const IconView = /*#__PURE__*/memo(({
|
|
|
2876
2858
|
fill: colors[color] || color
|
|
2877
2859
|
}));
|
|
2878
2860
|
}
|
|
2879
|
-
|
|
2880
2861
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2881
2862
|
width: width || 17,
|
|
2882
2863
|
height: height || 17,
|
|
@@ -2911,7 +2892,6 @@ export const Incorrect = /*#__PURE__*/memo(({
|
|
|
2911
2892
|
fill: colors[color] || color
|
|
2912
2893
|
}));
|
|
2913
2894
|
}
|
|
2914
|
-
|
|
2915
2895
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2916
2896
|
width: width || 20,
|
|
2917
2897
|
height: height || 21,
|
|
@@ -3018,7 +2998,6 @@ export const Key = /*#__PURE__*/memo(({
|
|
|
3018
2998
|
fill: colors[color] || color
|
|
3019
2999
|
}));
|
|
3020
3000
|
}
|
|
3021
|
-
|
|
3022
3001
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3023
3002
|
width: width || 22,
|
|
3024
3003
|
height: height || 12,
|
|
@@ -3210,7 +3189,6 @@ export const ListView = /*#__PURE__*/memo(({
|
|
|
3210
3189
|
fill: colors[color] || color
|
|
3211
3190
|
}));
|
|
3212
3191
|
}
|
|
3213
|
-
|
|
3214
3192
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3215
3193
|
width: width || 18,
|
|
3216
3194
|
height: height || 12,
|
|
@@ -3246,7 +3224,6 @@ export const Loading = /*#__PURE__*/memo(({
|
|
|
3246
3224
|
fill: colors[color] || color
|
|
3247
3225
|
}));
|
|
3248
3226
|
}
|
|
3249
|
-
|
|
3250
3227
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3251
3228
|
width: width || 17,
|
|
3252
3229
|
height: height || 6,
|
|
@@ -3560,7 +3537,6 @@ export const Message = /*#__PURE__*/memo(({
|
|
|
3560
3537
|
fillOpacity: opacity
|
|
3561
3538
|
}));
|
|
3562
3539
|
}
|
|
3563
|
-
|
|
3564
3540
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3565
3541
|
width: width || 20,
|
|
3566
3542
|
height: height || 20,
|
|
@@ -3813,7 +3789,6 @@ export const More = /*#__PURE__*/memo(({
|
|
|
3813
3789
|
fill: colors[color] || color
|
|
3814
3790
|
}));
|
|
3815
3791
|
}
|
|
3816
|
-
|
|
3817
3792
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3818
3793
|
width: width || 4,
|
|
3819
3794
|
height: height || 18,
|
|
@@ -4093,7 +4068,6 @@ export const Unlock = /*#__PURE__*/memo(({
|
|
|
4093
4068
|
fill: colors[color] || color
|
|
4094
4069
|
}));
|
|
4095
4070
|
}
|
|
4096
|
-
|
|
4097
4071
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4098
4072
|
width: width || 16,
|
|
4099
4073
|
height: height || 21,
|
|
@@ -4263,7 +4237,6 @@ export const PaperView = /*#__PURE__*/memo(({
|
|
|
4263
4237
|
fill: colors[color] || color
|
|
4264
4238
|
}));
|
|
4265
4239
|
}
|
|
4266
|
-
|
|
4267
4240
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4268
4241
|
width: width || 16,
|
|
4269
4242
|
height: height || 20,
|
|
@@ -4376,7 +4349,6 @@ export const Pen = /*#__PURE__*/memo(({
|
|
|
4376
4349
|
fill: colors[color] || color
|
|
4377
4350
|
}));
|
|
4378
4351
|
}
|
|
4379
|
-
|
|
4380
4352
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4381
4353
|
width: width || 19,
|
|
4382
4354
|
height: height || 19,
|
|
@@ -4428,7 +4400,6 @@ export const DoublePen = /*#__PURE__*/memo(({
|
|
|
4428
4400
|
fill: colors[color] || color
|
|
4429
4401
|
}));
|
|
4430
4402
|
}
|
|
4431
|
-
|
|
4432
4403
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4433
4404
|
width: width || 22,
|
|
4434
4405
|
height: height || 18,
|
|
@@ -4506,7 +4477,6 @@ export const PersonAccept = /*#__PURE__*/memo(({
|
|
|
4506
4477
|
fill: colors[color] || color
|
|
4507
4478
|
}));
|
|
4508
4479
|
}
|
|
4509
|
-
|
|
4510
4480
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4511
4481
|
width: width || 19,
|
|
4512
4482
|
height: height || 17,
|
|
@@ -4895,7 +4865,6 @@ export const Play = /*#__PURE__*/memo(({
|
|
|
4895
4865
|
fillOpacity: opacity
|
|
4896
4866
|
}));
|
|
4897
4867
|
}
|
|
4898
|
-
|
|
4899
4868
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4900
4869
|
width: width || 11,
|
|
4901
4870
|
height: height || 14,
|
|
@@ -4928,7 +4897,6 @@ export const PlayBorder = /*#__PURE__*/memo(({
|
|
|
4928
4897
|
fillOpacity: opacity
|
|
4929
4898
|
}));
|
|
4930
4899
|
}
|
|
4931
|
-
|
|
4932
4900
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4933
4901
|
width: width || 20,
|
|
4934
4902
|
height: height || 20,
|
|
@@ -4963,7 +4931,6 @@ export const PlayFilled = /*#__PURE__*/memo(({
|
|
|
4963
4931
|
fillOpacity: opacity
|
|
4964
4932
|
}));
|
|
4965
4933
|
}
|
|
4966
|
-
|
|
4967
4934
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4968
4935
|
width: width || 20,
|
|
4969
4936
|
height: height || 20,
|
|
@@ -5024,7 +4991,6 @@ export const PersonRemoved = /*#__PURE__*/memo(({
|
|
|
5024
4991
|
fill: colors[color] || color
|
|
5025
4992
|
})));
|
|
5026
4993
|
}
|
|
5027
|
-
|
|
5028
4994
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5029
4995
|
width: width || 18,
|
|
5030
4996
|
height: height || 21,
|
|
@@ -5604,7 +5570,6 @@ export const Search = /*#__PURE__*/memo(({
|
|
|
5604
5570
|
fill: colors[color] || color
|
|
5605
5571
|
}));
|
|
5606
5572
|
}
|
|
5607
|
-
|
|
5608
5573
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5609
5574
|
width: width || 20,
|
|
5610
5575
|
height: height || 20,
|
|
@@ -5660,7 +5625,6 @@ export const Skip = /*#__PURE__*/memo(({
|
|
|
5660
5625
|
fill: colors[color] || color
|
|
5661
5626
|
}));
|
|
5662
5627
|
}
|
|
5663
|
-
|
|
5664
5628
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5665
5629
|
width: width || 18,
|
|
5666
5630
|
height: height || 12,
|
|
@@ -5790,7 +5754,6 @@ export const StarHalf = /*#__PURE__*/memo(({
|
|
|
5790
5754
|
fill: colors[color] || color
|
|
5791
5755
|
}));
|
|
5792
5756
|
}
|
|
5793
|
-
|
|
5794
5757
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5795
5758
|
width: width || 20,
|
|
5796
5759
|
height: height || 19,
|
|
@@ -6040,7 +6003,6 @@ export const Trash = /*#__PURE__*/memo(({
|
|
|
6040
6003
|
fill: colors[color] || color
|
|
6041
6004
|
}));
|
|
6042
6005
|
}
|
|
6043
|
-
|
|
6044
6006
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6045
6007
|
width: width || 14,
|
|
6046
6008
|
height: height || 18,
|
|
@@ -6124,7 +6086,6 @@ export const View = /*#__PURE__*/memo(({
|
|
|
6124
6086
|
fill: colors[color] || color
|
|
6125
6087
|
}));
|
|
6126
6088
|
}
|
|
6127
|
-
|
|
6128
6089
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6129
6090
|
width: width || 22,
|
|
6130
6091
|
height: height || 16,
|
|
@@ -6184,7 +6145,6 @@ export const UnView = /*#__PURE__*/memo(({
|
|
|
6184
6145
|
fill: colors[color] || color
|
|
6185
6146
|
}));
|
|
6186
6147
|
}
|
|
6187
|
-
|
|
6188
6148
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6189
6149
|
width: width || 22,
|
|
6190
6150
|
height: height || 20,
|
|
@@ -6355,7 +6315,6 @@ export const Write = /*#__PURE__*/memo(({
|
|
|
6355
6315
|
fill: colors[color] || color
|
|
6356
6316
|
}));
|
|
6357
6317
|
}
|
|
6358
|
-
|
|
6359
6318
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6360
6319
|
width: width || 19,
|
|
6361
6320
|
height: height || 19,
|
|
@@ -7250,7 +7209,6 @@ export const Pdf = /*#__PURE__*/memo(({
|
|
|
7250
7209
|
fill: color
|
|
7251
7210
|
}))));
|
|
7252
7211
|
}
|
|
7253
|
-
|
|
7254
7212
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7255
7213
|
width: "15",
|
|
7256
7214
|
height: "16",
|
|
@@ -7342,7 +7300,6 @@ export const Word = /*#__PURE__*/memo(({
|
|
|
7342
7300
|
fill: color
|
|
7343
7301
|
})))));
|
|
7344
7302
|
}
|
|
7345
|
-
|
|
7346
7303
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7347
7304
|
width: "15",
|
|
7348
7305
|
height: "16",
|
|
@@ -7458,7 +7415,6 @@ export const Sheet = /*#__PURE__*/memo(({
|
|
|
7458
7415
|
fill: color
|
|
7459
7416
|
})))));
|
|
7460
7417
|
}
|
|
7461
|
-
|
|
7462
7418
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7463
7419
|
width: "15",
|
|
7464
7420
|
height: "16",
|
|
@@ -7575,7 +7531,6 @@ export const Presentation = /*#__PURE__*/memo(({
|
|
|
7575
7531
|
fill: color
|
|
7576
7532
|
})))));
|
|
7577
7533
|
}
|
|
7578
|
-
|
|
7579
7534
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7580
7535
|
width: "14",
|
|
7581
7536
|
height: "16",
|
|
@@ -7656,7 +7611,6 @@ export const Image = /*#__PURE__*/memo(({
|
|
|
7656
7611
|
fill: color
|
|
7657
7612
|
}))));
|
|
7658
7613
|
}
|
|
7659
|
-
|
|
7660
7614
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7661
7615
|
width: "14",
|
|
7662
7616
|
height: "16",
|
|
@@ -7738,7 +7692,6 @@ export const Compressed = /*#__PURE__*/memo(({
|
|
|
7738
7692
|
fill: color
|
|
7739
7693
|
})))));
|
|
7740
7694
|
}
|
|
7741
|
-
|
|
7742
7695
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7743
7696
|
width: "15",
|
|
7744
7697
|
height: "16",
|
|
@@ -7826,7 +7779,6 @@ export const Another = /*#__PURE__*/memo(({
|
|
|
7826
7779
|
fill: color
|
|
7827
7780
|
})))));
|
|
7828
7781
|
}
|
|
7829
|
-
|
|
7830
7782
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7831
7783
|
width: "15",
|
|
7832
7784
|
height: "16",
|
package/icons/effect.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { css, jsx } from '@emotion/core';
|
|
5
4
|
import OptionWrapper from "../components/others/option-wrapper";
|
|
@@ -31,19 +30,15 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
31
30
|
}, reference) => {
|
|
32
31
|
if (!reference) reference = useRef(null);
|
|
33
32
|
const ref = useRef(null);
|
|
34
|
-
|
|
35
33
|
const _IconCSS = IconCSS(width, height);
|
|
36
|
-
|
|
37
34
|
const _NotFoundIconCSS = NotFoundIconCSS(width);
|
|
38
|
-
|
|
39
35
|
useImperativeHandle(reference, () => {
|
|
40
36
|
const currentRef = ref.current || {};
|
|
41
37
|
currentRef.element = ref.current;
|
|
42
|
-
const _instance = {
|
|
38
|
+
const _instance = {
|
|
39
|
+
...action
|
|
43
40
|
}; // methods
|
|
44
|
-
|
|
45
41
|
_instance.__proto__ = {}; // hidden methods
|
|
46
|
-
|
|
47
42
|
currentRef.instance = _instance;
|
|
48
43
|
return currentRef;
|
|
49
44
|
});
|
|
@@ -51,7 +46,6 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
51
46
|
if (!name) return null;
|
|
52
47
|
let node = null;
|
|
53
48
|
const IconComp = Icons[capitalize(name)];
|
|
54
|
-
|
|
55
49
|
if (IconComp) {
|
|
56
50
|
node = jsx(IconComp, {
|
|
57
51
|
width: width,
|
|
@@ -64,7 +58,6 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
64
58
|
css: _NotFoundIconCSS
|
|
65
59
|
});
|
|
66
60
|
}
|
|
67
|
-
|
|
68
61
|
return jsx("span", {
|
|
69
62
|
css: _IconCSS,
|
|
70
63
|
ref: ref,
|
|
@@ -76,7 +69,6 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
76
69
|
}, node);
|
|
77
70
|
}, [className, color, height, id, name, onClick, style, viewBox, width, props]);
|
|
78
71
|
}));
|
|
79
|
-
|
|
80
72
|
const IconCSS = (width = 24, height = 24) => css`
|
|
81
73
|
${flexRow};
|
|
82
74
|
${justifyCenter};
|
|
@@ -87,14 +79,12 @@ const IconCSS = (width = 24, height = 24) => css`
|
|
|
87
79
|
${parseWidthHeight('max-content')};
|
|
88
80
|
${parseMinWidthHeight(width, height)};
|
|
89
81
|
`;
|
|
90
|
-
|
|
91
82
|
const NotFoundIconCSS = (width = 24) => css`
|
|
92
83
|
${flexRow};
|
|
93
84
|
${boxBorder};
|
|
94
85
|
${parseWidthHeight(width)};
|
|
95
86
|
border: 1px dashed ${systemRest};
|
|
96
87
|
`;
|
|
97
|
-
|
|
98
88
|
Icon.defaultProps = {
|
|
99
89
|
className: '',
|
|
100
90
|
color: 'dark6',
|
|
@@ -106,38 +96,31 @@ Icon.defaultProps = {
|
|
|
106
96
|
Icon.propTypes = {
|
|
107
97
|
/** Class for component. */
|
|
108
98
|
className: PropTypes.string,
|
|
109
|
-
|
|
110
99
|
/** The color of the component. */
|
|
111
100
|
color: PropTypes.string,
|
|
112
|
-
|
|
113
101
|
/** Height of the component. */
|
|
114
102
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
115
|
-
|
|
116
103
|
/** Name of icon in [Basic Icon](https://core.diginet.com.vn/ui/?path=/story/icon-basic) */
|
|
117
104
|
name: PropTypes.string.isRequired,
|
|
118
|
-
|
|
119
105
|
/** Style inline of component. */
|
|
120
106
|
style: PropTypes.object,
|
|
121
|
-
|
|
122
107
|
/** If `true`, component have view box. */
|
|
123
108
|
viewBox: PropTypes.bool,
|
|
124
|
-
|
|
125
109
|
/** Width of the component. */
|
|
126
110
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
* *
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* * @param {
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* * @param {options} - object
|
|
111
|
+
/**
|
|
112
|
+
* ref methods (ref.current.instance.*method*)
|
|
113
|
+
*
|
|
114
|
+
* * option(): Gets all UI component properties
|
|
115
|
+
* * Returns value - object
|
|
116
|
+
* * option(optionName): Gets the value of a single property
|
|
117
|
+
* * @param {optionName} - string
|
|
118
|
+
* * Returns value - any
|
|
119
|
+
* * option(optionName, optionValue): Updates the value of a single property
|
|
120
|
+
* * @param {optionName} - string
|
|
121
|
+
* * @param {optionValue} - any
|
|
122
|
+
* * option(options): Updates the values of several properties
|
|
123
|
+
* * @param {options} - object
|
|
141
124
|
*/
|
|
142
125
|
reference: ref
|
|
143
126
|
};
|