@arco-design/mobile-react 2.30.0 → 2.30.2
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/CHANGELOG.md +24 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/carousel/index.js +3 -1
- package/cjs/context-provider/index.d.ts +5 -1
- package/cjs/context-provider/index.js +10 -3
- package/cjs/form/form-item.js +15 -7
- package/cjs/form/type.d.ts +3 -2
- package/cjs/form/utils.d.ts +1 -0
- package/cjs/form/utils.js +6 -2
- package/cjs/nav-bar/back-icon.js +20 -10
- package/cjs/nav-bar/style/css/index.css +1 -1
- package/cjs/picker-view/components/picker-cell.js +1 -1
- package/cjs/picker-view/index.js +1 -1
- package/cjs/tabs/style/css/index.css +1 -1
- package/dist/index.js +57 -27
- package/dist/index.min.js +3 -3
- package/dist/style.css +3 -0
- package/dist/style.min.css +1 -1
- package/esm/carousel/index.js +3 -1
- package/esm/context-provider/index.d.ts +5 -1
- package/esm/context-provider/index.js +11 -4
- package/esm/form/form-item.js +15 -7
- package/esm/form/type.d.ts +3 -2
- package/esm/form/utils.d.ts +1 -0
- package/esm/form/utils.js +6 -2
- package/esm/nav-bar/back-icon.js +18 -10
- package/esm/nav-bar/style/css/index.css +1 -1
- package/esm/picker-view/components/picker-cell.js +1 -1
- package/esm/picker-view/index.js +1 -1
- package/esm/tabs/style/css/index.css +1 -1
- package/package.json +3 -3
- package/style/css/public.css +2 -0
- package/tokens/app/arcodesign/default/css-variables.less +4 -4
- package/tokens/app/arcodesign/default/index.js +4 -4
- package/tokens/app/arcodesign/default/index.json +10 -10
- package/tokens/app/arcodesign/default/index.less +4 -4
- package/umd/carousel/index.js +3 -1
- package/umd/context-provider/index.d.ts +5 -1
- package/umd/context-provider/index.js +10 -3
- package/umd/form/form-item.js +15 -7
- package/umd/form/type.d.ts +3 -2
- package/umd/form/utils.d.ts +1 -0
- package/umd/form/utils.js +6 -2
- package/umd/nav-bar/back-icon.js +20 -14
- package/umd/nav-bar/style/css/index.css +1 -1
- package/umd/picker-view/components/picker-cell.js +1 -1
- package/umd/picker-view/index.js +1 -1
- package/umd/tabs/style/css/index.css +1 -1
- package/cjs/action-sheet/demo/style/css/mobile.css +0 -523
- package/cjs/action-sheet/demo/style/mobile.less +0 -52
- package/cjs/avatar/demo/style/css/mobile.css +0 -578
- package/cjs/avatar/demo/style/mobile.less +0 -96
- package/cjs/badge/demo/style/css/mobile.css +0 -580
- package/cjs/badge/demo/style/mobile.less +0 -107
- package/cjs/button/demo/style/css/mobile.css +0 -530
- package/cjs/button/demo/style/mobile.less +0 -44
- package/cjs/carousel/demo/style/css/mobile.css +0 -553
- package/cjs/carousel/demo/style/mobile.less +0 -70
- package/cjs/cell/demo/style/css/mobile.css +0 -585
- package/cjs/cell/demo/style/mobile.less +0 -102
- package/cjs/checkbox/demo/style/css/mobile.css +0 -520
- package/cjs/checkbox/demo/style/mobile.less +0 -45
- package/cjs/circle-progress/demo/style/css/mobile.css +0 -516
- package/cjs/circle-progress/demo/style/mobile.less +0 -34
- package/cjs/collapse/demo/style/css/mobile.css +0 -516
- package/cjs/collapse/demo/style/mobile.less +0 -33
- package/cjs/context-provider/demo/style/css/mobile.css +0 -520
- package/cjs/context-provider/demo/style/mobile.less +0 -37
- package/cjs/count-down/demo/style/css/mobile.css +0 -575
- package/cjs/count-down/demo/style/mobile.less +0 -96
- package/cjs/date-picker/demo/style/css/mobile.css +0 -520
- package/cjs/date-picker/demo/style/mobile.less +0 -37
- package/cjs/dialog/demo/style/css/mobile.css +0 -547
- package/cjs/dialog/demo/style/mobile.less +0 -79
- package/cjs/divider/demo/style/css/mobile.css +0 -516
- package/cjs/divider/demo/style/mobile.less +0 -36
- package/cjs/dropdown/demo/style/css/mobile.css +0 -515
- package/cjs/dropdown/demo/style/mobile.less +0 -32
- package/cjs/dropdown-menu/demo/style/css/mobile.css +0 -516
- package/cjs/dropdown-menu/demo/style/mobile.less +0 -33
- package/cjs/ellipsis/demo/style/css/mobile.css +0 -528
- package/cjs/ellipsis/demo/style/mobile.less +0 -53
- package/cjs/grid/demo/style/css/mobile.css +0 -613
- package/cjs/grid/demo/style/mobile.less +0 -157
- package/cjs/image/demo/style/css/mobile.css +0 -580
- package/cjs/image/demo/style/mobile.less +0 -86
- package/cjs/image-picker/demo/style/css/mobile.css +0 -550
- package/cjs/image-picker/demo/style/mobile.less +0 -67
- package/cjs/image-preview/demo/style/css/mobile.css +0 -551
- package/cjs/image-preview/demo/style/mobile.less +0 -61
- package/cjs/index-bar/demo/style/css/mobile.css +0 -533
- package/cjs/index-bar/demo/style/mobile.less +0 -51
- package/cjs/input/demo/style/css/mobile.css +0 -584
- package/cjs/input/demo/style/mobile.less +0 -107
- package/cjs/keyboard/demo/style/css/mobile.css +0 -520
- package/cjs/keyboard/demo/style/mobile.less +0 -42
- package/cjs/load-more/demo/style/css/mobile.css +0 -520
- package/cjs/load-more/demo/style/mobile.less +0 -39
- package/cjs/loading/demo/style/css/mobile.css +0 -529
- package/cjs/loading/demo/style/mobile.less +0 -48
- package/cjs/masking/demo/style/css/mobile.css +0 -535
- package/cjs/masking/demo/style/mobile.less +0 -56
- package/cjs/nav-bar/demo/style/css/mobile.css +0 -523
- package/cjs/nav-bar/demo/style/mobile.less +0 -46
- package/cjs/notice-bar/demo/style/css/mobile.css +0 -4
- package/cjs/notice-bar/demo/style/mobile.less +0 -6
- package/cjs/notify/demo/style/css/mobile.css +0 -541
- package/cjs/notify/demo/style/mobile.less +0 -52
- package/cjs/pagination/demo/style/css/index.css +0 -516
- package/cjs/pagination/demo/style/index.less +0 -35
- package/cjs/picker/demo/style/css/mobile.css +0 -531
- package/cjs/picker/demo/style/mobile.less +0 -49
- package/cjs/picker-view/demo/style/css/mobile.css +0 -513
- package/cjs/picker-view/demo/style/mobile.less +0 -32
- package/cjs/popover/demo/style/css/mobile.css +0 -645
- package/cjs/popover/demo/style/mobile.less +0 -125
- package/cjs/popup/demo/style/css/mobile.css +0 -540
- package/cjs/popup/demo/style/mobile.less +0 -66
- package/cjs/popup-swiper/demo/style/css/mobile.css +0 -540
- package/cjs/popup-swiper/demo/style/mobile.less +0 -66
- package/cjs/portal/demo/style/css/mobile.css +0 -527
- package/cjs/portal/demo/style/mobile.less +0 -48
- package/cjs/progress/demo/style/css/mobile.css +0 -520
- package/cjs/progress/demo/style/mobile.less +0 -39
- package/cjs/pull-refresh/demo/style/css/mobile.css +0 -554
- package/cjs/pull-refresh/demo/style/mobile.less +0 -83
- package/cjs/radio/demo/style/css/mobile.css +0 -529
- package/cjs/radio/demo/style/mobile.less +0 -54
- package/cjs/rate/demo/style/css/mobile.css +0 -514
- package/cjs/rate/demo/style/mobile.less +0 -33
- package/cjs/search-bar/demo/style/css/mobile.css +0 -520
- package/cjs/search-bar/demo/style/mobile.less +0 -43
- package/cjs/show-monitor/demo/style/css/mobile.css +0 -569
- package/cjs/show-monitor/demo/style/mobile.less +0 -90
- package/cjs/skeleton/demo/style/css/mobile.css +0 -517
- package/cjs/skeleton/demo/style/mobile.less +0 -38
- package/cjs/slider/demo/style/css/mobile.css +0 -529
- package/cjs/slider/demo/style/mobile.less +0 -60
- package/cjs/stepper/demo/style/css/mobile.css +0 -514
- package/cjs/stepper/demo/style/mobile.less +0 -34
- package/cjs/steps/demo/style/css/mobile.css +0 -611
- package/cjs/steps/demo/style/mobile.less +0 -75
- package/cjs/sticky/demo/style/css/mobile.css +0 -527
- package/cjs/sticky/demo/style/mobile.less +0 -48
- package/cjs/swipe-action/demo/style/css/mobile.css +0 -515
- package/cjs/swipe-action/demo/style/mobile.less +0 -34
- package/cjs/swipe-load/demo/style/css/mobile.css +0 -580
- package/cjs/swipe-load/demo/style/mobile.less +0 -116
- package/cjs/switch/demo/style/css/mobile.css +0 -524
- package/cjs/switch/demo/style/mobile.less +0 -49
- package/cjs/tab-bar/demo/style/css/mobile.css +0 -553
- package/cjs/tab-bar/demo/style/mobile.less +0 -59
- package/cjs/tabs/demo/style/css/mobile.css +0 -629
- package/cjs/tabs/demo/style/mobile.less +0 -168
- package/cjs/tag/demo/style/css/mobile.css +0 -516
- package/cjs/tag/demo/style/mobile.less +0 -33
- package/cjs/textarea/demo/style/css/mobile.css +0 -523
- package/cjs/textarea/demo/style/mobile.less +0 -47
- package/cjs/toast/demo/style/css/mobile.css +0 -520
- package/cjs/toast/demo/style/mobile.less +0 -37
- package/cjs/transition/demo/style/css/mobile.css +0 -529
- package/cjs/transition/demo/style/mobile.less +0 -47
- package/esm/action-sheet/demo/style/css/mobile.css +0 -523
- package/esm/action-sheet/demo/style/mobile.less +0 -52
- package/esm/avatar/demo/style/css/mobile.css +0 -578
- package/esm/avatar/demo/style/mobile.less +0 -96
- package/esm/badge/demo/style/css/mobile.css +0 -580
- package/esm/badge/demo/style/mobile.less +0 -107
- package/esm/button/demo/style/css/mobile.css +0 -530
- package/esm/button/demo/style/mobile.less +0 -44
- package/esm/carousel/demo/style/css/mobile.css +0 -553
- package/esm/carousel/demo/style/mobile.less +0 -70
- package/esm/cell/demo/style/css/mobile.css +0 -585
- package/esm/cell/demo/style/mobile.less +0 -102
- package/esm/checkbox/demo/style/css/mobile.css +0 -520
- package/esm/checkbox/demo/style/mobile.less +0 -45
- package/esm/circle-progress/demo/style/css/mobile.css +0 -516
- package/esm/circle-progress/demo/style/mobile.less +0 -34
- package/esm/collapse/demo/style/css/mobile.css +0 -516
- package/esm/collapse/demo/style/mobile.less +0 -33
- package/esm/context-provider/demo/style/css/mobile.css +0 -520
- package/esm/context-provider/demo/style/mobile.less +0 -37
- package/esm/count-down/demo/style/css/mobile.css +0 -575
- package/esm/count-down/demo/style/mobile.less +0 -96
- package/esm/date-picker/demo/style/css/mobile.css +0 -520
- package/esm/date-picker/demo/style/mobile.less +0 -37
- package/esm/dialog/demo/style/css/mobile.css +0 -547
- package/esm/dialog/demo/style/mobile.less +0 -79
- package/esm/divider/demo/style/css/mobile.css +0 -516
- package/esm/divider/demo/style/mobile.less +0 -36
- package/esm/dropdown/demo/style/css/mobile.css +0 -515
- package/esm/dropdown/demo/style/mobile.less +0 -32
- package/esm/dropdown-menu/demo/style/css/mobile.css +0 -516
- package/esm/dropdown-menu/demo/style/mobile.less +0 -33
- package/esm/ellipsis/demo/style/css/mobile.css +0 -528
- package/esm/ellipsis/demo/style/mobile.less +0 -53
- package/esm/grid/demo/style/css/mobile.css +0 -613
- package/esm/grid/demo/style/mobile.less +0 -157
- package/esm/image/demo/style/css/mobile.css +0 -580
- package/esm/image/demo/style/mobile.less +0 -86
- package/esm/image-picker/demo/style/css/mobile.css +0 -550
- package/esm/image-picker/demo/style/mobile.less +0 -67
- package/esm/image-preview/demo/style/css/mobile.css +0 -551
- package/esm/image-preview/demo/style/mobile.less +0 -61
- package/esm/index-bar/demo/style/css/mobile.css +0 -533
- package/esm/index-bar/demo/style/mobile.less +0 -51
- package/esm/input/demo/style/css/mobile.css +0 -584
- package/esm/input/demo/style/mobile.less +0 -107
- package/esm/keyboard/demo/style/css/mobile.css +0 -520
- package/esm/keyboard/demo/style/mobile.less +0 -42
- package/esm/load-more/demo/style/css/mobile.css +0 -520
- package/esm/load-more/demo/style/mobile.less +0 -39
- package/esm/loading/demo/style/css/mobile.css +0 -529
- package/esm/loading/demo/style/mobile.less +0 -48
- package/esm/masking/demo/style/css/mobile.css +0 -535
- package/esm/masking/demo/style/mobile.less +0 -56
- package/esm/nav-bar/demo/style/css/mobile.css +0 -523
- package/esm/nav-bar/demo/style/mobile.less +0 -46
- package/esm/notice-bar/demo/style/css/mobile.css +0 -4
- package/esm/notice-bar/demo/style/mobile.less +0 -6
- package/esm/notify/demo/style/css/mobile.css +0 -541
- package/esm/notify/demo/style/mobile.less +0 -52
- package/esm/pagination/demo/style/css/index.css +0 -516
- package/esm/pagination/demo/style/index.less +0 -35
- package/esm/picker/demo/style/css/mobile.css +0 -531
- package/esm/picker/demo/style/mobile.less +0 -49
- package/esm/picker-view/demo/style/css/mobile.css +0 -513
- package/esm/picker-view/demo/style/mobile.less +0 -32
- package/esm/popover/demo/style/css/mobile.css +0 -645
- package/esm/popover/demo/style/mobile.less +0 -125
- package/esm/popup/demo/style/css/mobile.css +0 -540
- package/esm/popup/demo/style/mobile.less +0 -66
- package/esm/popup-swiper/demo/style/css/mobile.css +0 -540
- package/esm/popup-swiper/demo/style/mobile.less +0 -66
- package/esm/portal/demo/style/css/mobile.css +0 -527
- package/esm/portal/demo/style/mobile.less +0 -48
- package/esm/progress/demo/style/css/mobile.css +0 -520
- package/esm/progress/demo/style/mobile.less +0 -39
- package/esm/pull-refresh/demo/style/css/mobile.css +0 -554
- package/esm/pull-refresh/demo/style/mobile.less +0 -83
- package/esm/radio/demo/style/css/mobile.css +0 -529
- package/esm/radio/demo/style/mobile.less +0 -54
- package/esm/rate/demo/style/css/mobile.css +0 -514
- package/esm/rate/demo/style/mobile.less +0 -33
- package/esm/search-bar/demo/style/css/mobile.css +0 -520
- package/esm/search-bar/demo/style/mobile.less +0 -43
- package/esm/show-monitor/demo/style/css/mobile.css +0 -569
- package/esm/show-monitor/demo/style/mobile.less +0 -90
- package/esm/skeleton/demo/style/css/mobile.css +0 -517
- package/esm/skeleton/demo/style/mobile.less +0 -38
- package/esm/slider/demo/style/css/mobile.css +0 -529
- package/esm/slider/demo/style/mobile.less +0 -60
- package/esm/stepper/demo/style/css/mobile.css +0 -514
- package/esm/stepper/demo/style/mobile.less +0 -34
- package/esm/steps/demo/style/css/mobile.css +0 -611
- package/esm/steps/demo/style/mobile.less +0 -75
- package/esm/sticky/demo/style/css/mobile.css +0 -527
- package/esm/sticky/demo/style/mobile.less +0 -48
- package/esm/swipe-action/demo/style/css/mobile.css +0 -515
- package/esm/swipe-action/demo/style/mobile.less +0 -34
- package/esm/swipe-load/demo/style/css/mobile.css +0 -580
- package/esm/swipe-load/demo/style/mobile.less +0 -116
- package/esm/switch/demo/style/css/mobile.css +0 -524
- package/esm/switch/demo/style/mobile.less +0 -49
- package/esm/tab-bar/demo/style/css/mobile.css +0 -553
- package/esm/tab-bar/demo/style/mobile.less +0 -59
- package/esm/tabs/demo/style/css/mobile.css +0 -629
- package/esm/tabs/demo/style/mobile.less +0 -168
- package/esm/tag/demo/style/css/mobile.css +0 -516
- package/esm/tag/demo/style/mobile.less +0 -33
- package/esm/textarea/demo/style/css/mobile.css +0 -523
- package/esm/textarea/demo/style/mobile.less +0 -47
- package/esm/toast/demo/style/css/mobile.css +0 -520
- package/esm/toast/demo/style/mobile.less +0 -37
- package/esm/transition/demo/style/css/mobile.css +0 -529
- package/esm/transition/demo/style/mobile.less +0 -47
- package/umd/action-sheet/demo/style/css/mobile.css +0 -523
- package/umd/action-sheet/demo/style/mobile.less +0 -52
- package/umd/avatar/demo/style/css/mobile.css +0 -578
- package/umd/avatar/demo/style/mobile.less +0 -96
- package/umd/badge/demo/style/css/mobile.css +0 -580
- package/umd/badge/demo/style/mobile.less +0 -107
- package/umd/button/demo/style/css/mobile.css +0 -530
- package/umd/button/demo/style/mobile.less +0 -44
- package/umd/carousel/demo/style/css/mobile.css +0 -553
- package/umd/carousel/demo/style/mobile.less +0 -70
- package/umd/cell/demo/style/css/mobile.css +0 -585
- package/umd/cell/demo/style/mobile.less +0 -102
- package/umd/checkbox/demo/style/css/mobile.css +0 -520
- package/umd/checkbox/demo/style/mobile.less +0 -45
- package/umd/circle-progress/demo/style/css/mobile.css +0 -516
- package/umd/circle-progress/demo/style/mobile.less +0 -34
- package/umd/collapse/demo/style/css/mobile.css +0 -516
- package/umd/collapse/demo/style/mobile.less +0 -33
- package/umd/context-provider/demo/style/css/mobile.css +0 -520
- package/umd/context-provider/demo/style/mobile.less +0 -37
- package/umd/count-down/demo/style/css/mobile.css +0 -575
- package/umd/count-down/demo/style/mobile.less +0 -96
- package/umd/date-picker/demo/style/css/mobile.css +0 -520
- package/umd/date-picker/demo/style/mobile.less +0 -37
- package/umd/dialog/demo/style/css/mobile.css +0 -547
- package/umd/dialog/demo/style/mobile.less +0 -79
- package/umd/divider/demo/style/css/mobile.css +0 -516
- package/umd/divider/demo/style/mobile.less +0 -36
- package/umd/dropdown/demo/style/css/mobile.css +0 -515
- package/umd/dropdown/demo/style/mobile.less +0 -32
- package/umd/dropdown-menu/demo/style/css/mobile.css +0 -516
- package/umd/dropdown-menu/demo/style/mobile.less +0 -33
- package/umd/ellipsis/demo/style/css/mobile.css +0 -528
- package/umd/ellipsis/demo/style/mobile.less +0 -53
- package/umd/grid/demo/style/css/mobile.css +0 -613
- package/umd/grid/demo/style/mobile.less +0 -157
- package/umd/image/demo/style/css/mobile.css +0 -580
- package/umd/image/demo/style/mobile.less +0 -86
- package/umd/image-picker/demo/style/css/mobile.css +0 -550
- package/umd/image-picker/demo/style/mobile.less +0 -67
- package/umd/image-preview/demo/style/css/mobile.css +0 -551
- package/umd/image-preview/demo/style/mobile.less +0 -61
- package/umd/index-bar/demo/style/css/mobile.css +0 -533
- package/umd/index-bar/demo/style/mobile.less +0 -51
- package/umd/input/demo/style/css/mobile.css +0 -584
- package/umd/input/demo/style/mobile.less +0 -107
- package/umd/keyboard/demo/style/css/mobile.css +0 -520
- package/umd/keyboard/demo/style/mobile.less +0 -42
- package/umd/load-more/demo/style/css/mobile.css +0 -520
- package/umd/load-more/demo/style/mobile.less +0 -39
- package/umd/loading/demo/style/css/mobile.css +0 -529
- package/umd/loading/demo/style/mobile.less +0 -48
- package/umd/masking/demo/style/css/mobile.css +0 -535
- package/umd/masking/demo/style/mobile.less +0 -56
- package/umd/nav-bar/demo/style/css/mobile.css +0 -523
- package/umd/nav-bar/demo/style/mobile.less +0 -46
- package/umd/notice-bar/demo/style/css/mobile.css +0 -4
- package/umd/notice-bar/demo/style/mobile.less +0 -6
- package/umd/notify/demo/style/css/mobile.css +0 -541
- package/umd/notify/demo/style/mobile.less +0 -52
- package/umd/pagination/demo/style/css/index.css +0 -516
- package/umd/pagination/demo/style/index.less +0 -35
- package/umd/picker/demo/style/css/mobile.css +0 -531
- package/umd/picker/demo/style/mobile.less +0 -49
- package/umd/picker-view/demo/style/css/mobile.css +0 -513
- package/umd/picker-view/demo/style/mobile.less +0 -32
- package/umd/popover/demo/style/css/mobile.css +0 -645
- package/umd/popover/demo/style/mobile.less +0 -125
- package/umd/popup/demo/style/css/mobile.css +0 -540
- package/umd/popup/demo/style/mobile.less +0 -66
- package/umd/popup-swiper/demo/style/css/mobile.css +0 -540
- package/umd/popup-swiper/demo/style/mobile.less +0 -66
- package/umd/portal/demo/style/css/mobile.css +0 -527
- package/umd/portal/demo/style/mobile.less +0 -48
- package/umd/progress/demo/style/css/mobile.css +0 -520
- package/umd/progress/demo/style/mobile.less +0 -39
- package/umd/pull-refresh/demo/style/css/mobile.css +0 -554
- package/umd/pull-refresh/demo/style/mobile.less +0 -83
- package/umd/radio/demo/style/css/mobile.css +0 -529
- package/umd/radio/demo/style/mobile.less +0 -54
- package/umd/rate/demo/style/css/mobile.css +0 -514
- package/umd/rate/demo/style/mobile.less +0 -33
- package/umd/search-bar/demo/style/css/mobile.css +0 -520
- package/umd/search-bar/demo/style/mobile.less +0 -43
- package/umd/show-monitor/demo/style/css/mobile.css +0 -569
- package/umd/show-monitor/demo/style/mobile.less +0 -90
- package/umd/skeleton/demo/style/css/mobile.css +0 -517
- package/umd/skeleton/demo/style/mobile.less +0 -38
- package/umd/slider/demo/style/css/mobile.css +0 -529
- package/umd/slider/demo/style/mobile.less +0 -60
- package/umd/stepper/demo/style/css/mobile.css +0 -514
- package/umd/stepper/demo/style/mobile.less +0 -34
- package/umd/steps/demo/style/css/mobile.css +0 -611
- package/umd/steps/demo/style/mobile.less +0 -75
- package/umd/sticky/demo/style/css/mobile.css +0 -527
- package/umd/sticky/demo/style/mobile.less +0 -48
- package/umd/swipe-action/demo/style/css/mobile.css +0 -515
- package/umd/swipe-action/demo/style/mobile.less +0 -34
- package/umd/swipe-load/demo/style/css/mobile.css +0 -580
- package/umd/swipe-load/demo/style/mobile.less +0 -116
- package/umd/switch/demo/style/css/mobile.css +0 -524
- package/umd/switch/demo/style/mobile.less +0 -49
- package/umd/tab-bar/demo/style/css/mobile.css +0 -553
- package/umd/tab-bar/demo/style/mobile.less +0 -59
- package/umd/tabs/demo/style/css/mobile.css +0 -629
- package/umd/tabs/demo/style/mobile.less +0 -168
- package/umd/tag/demo/style/css/mobile.css +0 -516
- package/umd/tag/demo/style/mobile.less +0 -33
- package/umd/textarea/demo/style/css/mobile.css +0 -523
- package/umd/textarea/demo/style/mobile.less +0 -47
- package/umd/toast/demo/style/css/mobile.css +0 -520
- package/umd/toast/demo/style/mobile.less +0 -37
- package/umd/transition/demo/style/css/mobile.css +0 -529
- package/umd/transition/demo/style/mobile.less +0 -47
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
3
3
|
var _excluded = ["children", "useDarkMode", "isDarkMode", "darkModeSelector", "theme", "locale", "onDarkModeChange"],
|
4
4
|
_excluded2 = ["context"];
|
5
|
-
import React, { createContext, useState, useEffect, useCallback, useMemo } from 'react';
|
5
|
+
import React, { createContext, useState, useEffect, useCallback, useMemo, useRef } from 'react';
|
6
6
|
import { addCssRules, removeCssStyleDom, defaultLocale } from '@arco-design/mobile-utils';
|
7
7
|
var DEFAULT_DARK_MODE_SELECTOR = 'arco-theme-dark';
|
8
8
|
export var defaultContext = {
|
@@ -45,9 +45,15 @@ export default function ContextProvider(props) {
|
|
45
45
|
isDarkModeState = _useState[0],
|
46
46
|
setIsDarkModeState = _useState[1];
|
47
47
|
|
48
|
-
var
|
48
|
+
var mountedRef = useRef(false);
|
49
|
+
|
50
|
+
var setDarkModeState = function setDarkModeState(isDark, needChange) {
|
51
|
+
if (needChange === void 0) {
|
52
|
+
needChange = true;
|
53
|
+
}
|
54
|
+
|
49
55
|
setIsDarkModeState(isDark);
|
50
|
-
onDarkModeChange && onDarkModeChange(isDark);
|
56
|
+
needChange && onDarkModeChange && onDarkModeChange(isDark);
|
51
57
|
};
|
52
58
|
|
53
59
|
var isDarkMode = useMemo(function () {
|
@@ -76,7 +82,7 @@ export default function ContextProvider(props) {
|
|
76
82
|
|
77
83
|
if (useDarkMode) {
|
78
84
|
var dark = matchMedia.matches;
|
79
|
-
setDarkModeState(dark);
|
85
|
+
setDarkModeState(dark, mountedRef.current);
|
80
86
|
|
81
87
|
if (typeof matchMedia.addEventListener === 'function') {
|
82
88
|
matchMedia.addEventListener('change', changeDarkMode);
|
@@ -85,6 +91,7 @@ export default function ContextProvider(props) {
|
|
85
91
|
}
|
86
92
|
}
|
87
93
|
|
94
|
+
mountedRef.current = true;
|
88
95
|
return function () {
|
89
96
|
if (useDarkMode) {
|
90
97
|
if (typeof matchMedia.removeEventListener === 'function') {
|
package/esm/form/form-item.js
CHANGED
@@ -70,12 +70,14 @@ var FormItemInner = /*#__PURE__*/function (_PureComponent) {
|
|
70
70
|
fieldValidator.validate((_fieldValidator$valid = {}, _fieldValidator$valid[field] = value, _fieldValidator$valid), function (errorsMap) {
|
71
71
|
var _getErrorAndWarnings = getErrorAndWarnings((errorsMap == null ? void 0 : errorsMap[field]) || []),
|
72
72
|
errors = _getErrorAndWarnings.errors,
|
73
|
-
warnings = _getErrorAndWarnings.warnings
|
73
|
+
warnings = _getErrorAndWarnings.warnings,
|
74
|
+
errorTypes = _getErrorAndWarnings.errorTypes;
|
74
75
|
|
75
76
|
_this._errors = errors;
|
76
77
|
onValidateStatusChange({
|
77
78
|
errors: _this._errors,
|
78
|
-
warnings: warnings
|
79
|
+
warnings: warnings,
|
80
|
+
errorTypes: errorTypes
|
79
81
|
});
|
80
82
|
return resolve({
|
81
83
|
errors: _this._errors,
|
@@ -319,16 +321,22 @@ export default /*#__PURE__*/forwardRef(function (props, ref) {
|
|
319
321
|
errors = _useState[0],
|
320
322
|
setErrors = _useState[1];
|
321
323
|
|
322
|
-
var _useState2 = useState(
|
323
|
-
|
324
|
-
|
324
|
+
var _useState2 = useState(null),
|
325
|
+
errorTypes = _useState2[0],
|
326
|
+
setErrorTypes = _useState2[1];
|
327
|
+
|
328
|
+
var _useState3 = useState([]),
|
329
|
+
warnings = _useState3[0],
|
330
|
+
setWarnings = _useState3[1];
|
325
331
|
|
326
332
|
var formItemRef = useRef(null);
|
327
333
|
|
328
334
|
var onValidateStatusChange = function onValidateStatusChange(validateResult) {
|
329
335
|
var _errors = validateResult.errors,
|
330
|
-
_warnings = validateResult.warnings
|
336
|
+
_warnings = validateResult.warnings,
|
337
|
+
_errorTypes = validateResult.errorTypes;
|
331
338
|
setErrors(_errors.length ? _errors[0] : null);
|
339
|
+
setErrorTypes(_errorTypes.length ? _errorTypes[0] : null);
|
332
340
|
setWarnings(_warnings);
|
333
341
|
};
|
334
342
|
|
@@ -350,7 +358,7 @@ export default /*#__PURE__*/forwardRef(function (props, ref) {
|
|
350
358
|
return /*#__PURE__*/React.createElement("div", {
|
351
359
|
className: cls(prefixCls + "-form-item", prefixCls + "-form-item-" + (itemLayout || layout), className, (_cls = {
|
352
360
|
disabled: fieldDisabled
|
353
|
-
}, _cls[prefixCls + "-form-item-error"] = !!errors, _cls[prefixCls + "-form-item-warning"] = Boolean(!errors && warnings), _cls)),
|
361
|
+
}, _cls[prefixCls + "-form-item-error"] = !!errors, _cls[prefixCls + "-form-item-warning"] = Boolean(!errors && warnings), _cls[prefixCls + "-form-item-error-" + errorTypes] = errorTypes, _cls)),
|
354
362
|
style: style,
|
355
363
|
ref: formItemRef
|
356
364
|
}, /*#__PURE__*/React.createElement("div", {
|
package/esm/form/type.d.ts
CHANGED
@@ -344,8 +344,9 @@ export interface IFormItemInnerProps {
|
|
344
344
|
* @en The callback when validating status changes
|
345
345
|
*/
|
346
346
|
onValidateStatusChange: (data: {
|
347
|
-
errors:
|
348
|
-
warnings:
|
347
|
+
errors: ReactNode[];
|
348
|
+
warnings: ReactNode[];
|
349
|
+
errorTypes: string[];
|
349
350
|
}) => void;
|
350
351
|
/**
|
351
352
|
* 获取内部表单项的dom
|
package/esm/form/utils.d.ts
CHANGED
package/esm/form/utils.js
CHANGED
@@ -10,11 +10,13 @@ export var isFieldRequired = function isFieldRequired(rules) {
|
|
10
10
|
export var getErrorAndWarnings = function getErrorAndWarnings(result) {
|
11
11
|
var errors = [];
|
12
12
|
var warnings = [];
|
13
|
+
var errorTypes = [];
|
13
14
|
result.map(function (_ref) {
|
14
15
|
var _ref$message = _ref.message,
|
15
16
|
message = _ref$message === void 0 ? [] : _ref$message,
|
16
17
|
_ref$validateLevel = _ref.validateLevel,
|
17
|
-
validateLevel = _ref$validateLevel === void 0 ? 'error' : _ref$validateLevel
|
18
|
+
validateLevel = _ref$validateLevel === void 0 ? 'error' : _ref$validateLevel,
|
19
|
+
resultErrorTypes = _ref.errorTypes;
|
18
20
|
|
19
21
|
if (!(message != null && message.length)) {
|
20
22
|
return;
|
@@ -24,10 +26,12 @@ export var getErrorAndWarnings = function getErrorAndWarnings(result) {
|
|
24
26
|
warnings = [].concat(warnings, message);
|
25
27
|
} else {
|
26
28
|
errors = [].concat(errors, message);
|
29
|
+
errorTypes = [].concat(errorTypes, resultErrorTypes);
|
27
30
|
}
|
28
31
|
});
|
29
32
|
return {
|
30
33
|
warnings: warnings,
|
31
|
-
errors: errors
|
34
|
+
errors: errors,
|
35
|
+
errorTypes: errorTypes
|
32
36
|
};
|
33
37
|
};
|
package/esm/nav-bar/back-icon.js
CHANGED
@@ -1,18 +1,26 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { defaultLocale } from '@arco-design/mobile-utils';
|
3
|
+
import { ContextLayout } from '../context-provider';
|
2
4
|
|
3
5
|
function BackArrow(_ref) {
|
4
6
|
var _ref$color = _ref.color,
|
5
7
|
color = _ref$color === void 0 ? 'currentColor' : _ref$color;
|
6
|
-
return /*#__PURE__*/React.createElement(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
return /*#__PURE__*/React.createElement(ContextLayout, null, function (_ref2) {
|
9
|
+
var _ref2$locale = _ref2.locale,
|
10
|
+
locale = _ref2$locale === void 0 ? defaultLocale : _ref2$locale;
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
12
|
+
role: "button",
|
13
|
+
className: "c-svg-arrow nav-bar-back",
|
14
|
+
"aria-label": locale.NavBar.backBtnAriaLabel
|
15
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
16
|
+
height: "100%",
|
17
|
+
viewBox: "0 0 16 16"
|
18
|
+
}, /*#__PURE__*/React.createElement("path", {
|
19
|
+
id: "path-1_1_",
|
20
|
+
d: "M2.1,8l5.4,5.4c0.1,0.1,0.1,0.3,0,0.5L7,14.4c-0.1,0.1-0.3,0.1-0.5,0L0.7,8.5c-0.3-0.3-0.3-0.7,0-0.9 l5.9-5.9c0.1-0.1,0.3-0.1,0.5,0l0.5,0.5c0.1,0.1,0.1,0.3,0,0.5L2.1,8z",
|
21
|
+
fill: color
|
22
|
+
})));
|
23
|
+
});
|
16
24
|
}
|
17
25
|
|
18
26
|
export default BackArrow;
|
@@ -286,7 +286,7 @@ var PickerCell = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
286
286
|
function getCurrentCellValue() {
|
287
287
|
var _data$currentIndex;
|
288
288
|
|
289
|
-
return
|
289
|
+
return (_data$currentIndex = data[currentIndex]) == null ? void 0 : _data$currentIndex.value;
|
290
290
|
}
|
291
291
|
|
292
292
|
function _clearTimer() {
|
package/esm/picker-view/index.js
CHANGED
@@ -1052,7 +1052,7 @@
|
|
1052
1052
|
color: #f6f6f6 ;
|
1053
1053
|
}
|
1054
1054
|
.arco-theme-dark .arco-tab-cell-container-wrap {
|
1055
|
-
background: #
|
1055
|
+
background: #17171A ;
|
1056
1056
|
}
|
1057
1057
|
.arco-theme-dark .arco-tab-cell-container-inner.has-divider.pos-top {
|
1058
1058
|
box-shadow: 0 -1PX 0 0 #484849 inset;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arco-design/mobile-react",
|
3
|
-
"version": "2.30.
|
3
|
+
"version": "2.30.2",
|
4
4
|
"description": "",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "esm/index.js",
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"author": "taoyiyue@bytedance.com",
|
16
16
|
"license": "ISC",
|
17
17
|
"dependencies": {
|
18
|
-
"@arco-design/mobile-utils": "2.17.
|
18
|
+
"@arco-design/mobile-utils": "2.17.2",
|
19
19
|
"@arco-design/transformable": "^1.0.0",
|
20
20
|
"lodash.throttle": "^4.1.1",
|
21
21
|
"resize-observer-polyfill": "^1.5.1"
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"publishConfig": {
|
50
50
|
"access": "public"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "41b5f19cac228f71b84b7a5df4dcdbd6262e2c46"
|
53
53
|
}
|
package/style/css/public.css
CHANGED
@@ -272,8 +272,8 @@
|
|
272
272
|
--checkbox-text-disabled-opacity: 0.5;
|
273
273
|
--checkbox-group-gutter: ~`pxtorem(24)`;
|
274
274
|
--tabs-tab-bar-font-size: ~`pxtorem(15)`;
|
275
|
-
--dark-tabs-tab-bar-background: var(--dark-
|
276
|
-
--tabs-tab-bar-background: var(--
|
275
|
+
--dark-tabs-tab-bar-background: var(--dark-background-color);
|
276
|
+
--tabs-tab-bar-background: var(--background-color);
|
277
277
|
--tabs-tab-bar-height: ~`pxtorem(42)`;
|
278
278
|
--tabs-tab-bar-width: ~`pxtorem(78)`;
|
279
279
|
--tabs-tab-bar-horizontal-height: ~`pxtorem(54)`;
|
@@ -318,8 +318,8 @@
|
|
318
318
|
--nav-bar-height: ~`pxtorem(44)`;
|
319
319
|
--dark-nav-bar-bottom-border-color: var(--dark-line-color);
|
320
320
|
--nav-bar-bottom-border-color: var(--line-color);
|
321
|
-
--dark-nav-bar-background: var(--dark-
|
322
|
-
--nav-bar-background: var(--
|
321
|
+
--dark-nav-bar-background: var(--dark-background-color);
|
322
|
+
--nav-bar-background: var(--background-color);
|
323
323
|
--dark-nav-bar-font-color: var(--dark-font-color);
|
324
324
|
--nav-bar-font-color: var(--font-color);
|
325
325
|
--nav-bar-two-sides-font-size: ~`pxtorem(16)`;
|
@@ -283,8 +283,8 @@ var tokens = {
|
|
283
283
|
"checkbox-text-disabled-opacity": "0.5",
|
284
284
|
"checkbox-group-gutter": "0.48rem",
|
285
285
|
"tabs-tab-bar-font-size": "0.3rem",
|
286
|
-
"dark-tabs-tab-bar-background": "var(--dark-
|
287
|
-
"tabs-tab-bar-background": "var(--
|
286
|
+
"dark-tabs-tab-bar-background": "var(--dark-background-color)",
|
287
|
+
"tabs-tab-bar-background": "var(--background-color)",
|
288
288
|
"tabs-tab-bar-height": "0.84rem",
|
289
289
|
"tabs-tab-bar-width": "1.56rem",
|
290
290
|
"tabs-tab-bar-horizontal-height": "1.08rem",
|
@@ -329,8 +329,8 @@ var tokens = {
|
|
329
329
|
"nav-bar-height": "0.88rem",
|
330
330
|
"dark-nav-bar-bottom-border-color": "var(--dark-line-color)",
|
331
331
|
"nav-bar-bottom-border-color": "var(--line-color)",
|
332
|
-
"dark-nav-bar-background": "var(--dark-
|
333
|
-
"nav-bar-background": "var(--
|
332
|
+
"dark-nav-bar-background": "var(--dark-background-color)",
|
333
|
+
"nav-bar-background": "var(--background-color)",
|
334
334
|
"dark-nav-bar-font-color": "var(--dark-font-color)",
|
335
335
|
"nav-bar-font-color": "var(--font-color)",
|
336
336
|
"nav-bar-two-sides-font-size": "0.32rem",
|
@@ -3239,9 +3239,9 @@
|
|
3239
3239
|
"cssKey": "dark-nav-bar-background",
|
3240
3240
|
"desc": "",
|
3241
3241
|
"override": "",
|
3242
|
-
"value": "@dark-
|
3243
|
-
"jsValue": "@global@
|
3244
|
-
"staticValue": "#
|
3242
|
+
"value": "@dark-background-color",
|
3243
|
+
"jsValue": "@global@darkBackgroundColor",
|
3244
|
+
"staticValue": "#17171A"
|
3245
3245
|
},
|
3246
3246
|
"darkNavBarBottomBorderColor": {
|
3247
3247
|
"cssKey": "dark-nav-bar-bottom-border-color",
|
@@ -4063,9 +4063,9 @@
|
|
4063
4063
|
"cssKey": "dark-tabs-tab-bar-background",
|
4064
4064
|
"desc": "",
|
4065
4065
|
"override": "",
|
4066
|
-
"value": "@dark-
|
4067
|
-
"jsValue": "@global@
|
4068
|
-
"staticValue": "#
|
4066
|
+
"value": "@dark-background-color",
|
4067
|
+
"jsValue": "@global@darkBackgroundColor",
|
4068
|
+
"staticValue": "#17171A"
|
4069
4069
|
},
|
4070
4070
|
"darkTabsTabBarCardColor": {
|
4071
4071
|
"cssKey": "dark-tabs-tab-bar-card-color",
|
@@ -6737,8 +6737,8 @@
|
|
6737
6737
|
"cssKey": "nav-bar-background",
|
6738
6738
|
"desc": "navBar 背景色",
|
6739
6739
|
"override": "",
|
6740
|
-
"value": "@
|
6741
|
-
"jsValue": "@global@
|
6740
|
+
"value": "@background-color",
|
6741
|
+
"jsValue": "@global@backgroundColor",
|
6742
6742
|
"staticValue": "#FFFFFF",
|
6743
6743
|
"localeDesc": {
|
6744
6744
|
"ch": "navBar 背景色",
|
@@ -10709,8 +10709,8 @@
|
|
10709
10709
|
"cssKey": "tabs-tab-bar-background",
|
10710
10710
|
"desc": "tabs tabbar 背景色",
|
10711
10711
|
"override": "tab-bar-background",
|
10712
|
-
"value": "@
|
10713
|
-
"jsValue": "@global@
|
10712
|
+
"value": "@background-color",
|
10713
|
+
"jsValue": "@global@backgroundColor",
|
10714
10714
|
"staticValue": "#FFFFFF",
|
10715
10715
|
"localeDesc": {
|
10716
10716
|
"ch": "tabs tabbar 背景色",
|
@@ -271,8 +271,8 @@
|
|
271
271
|
@checkbox-text-disabled-opacity: 0.5;
|
272
272
|
@checkbox-group-gutter: ~`pxtorem(24)`;
|
273
273
|
@tabs-tab-bar-font-size: ~`pxtorem(15)`;
|
274
|
-
@dark-tabs-tab-bar-background: @dark-
|
275
|
-
@tabs-tab-bar-background: @
|
274
|
+
@dark-tabs-tab-bar-background: @dark-background-color;
|
275
|
+
@tabs-tab-bar-background: @background-color;
|
276
276
|
@tabs-tab-bar-height: ~`pxtorem(42)`;
|
277
277
|
@tabs-tab-bar-width: ~`pxtorem(78)`;
|
278
278
|
@tabs-tab-bar-horizontal-height: ~`pxtorem(54)`;
|
@@ -317,8 +317,8 @@
|
|
317
317
|
@nav-bar-height: ~`pxtorem(44)`;
|
318
318
|
@dark-nav-bar-bottom-border-color: @dark-line-color;
|
319
319
|
@nav-bar-bottom-border-color: @line-color;
|
320
|
-
@dark-nav-bar-background: @dark-
|
321
|
-
@nav-bar-background: @
|
320
|
+
@dark-nav-bar-background: @dark-background-color;
|
321
|
+
@nav-bar-background: @background-color;
|
322
322
|
@dark-nav-bar-font-color: @dark-font-color;
|
323
323
|
@nav-bar-font-color: @font-color;
|
324
324
|
@nav-bar-two-sides-font-size: ~`pxtorem(16)`;
|
package/umd/carousel/index.js
CHANGED
@@ -742,7 +742,9 @@
|
|
742
742
|
// @en When noLoop is used, the blank space of spaceBetween needs to be exposed at the end, so when sliding to the last one, the transform value moves to the left by the corresponding width
|
743
743
|
|
744
744
|
var translateDis = noLoop ? noLoopDis - (total > 1 && index === total - 1 ? spaceBetween : 0) * rtlRatio : dis;
|
745
|
-
var
|
745
|
+
var initTranslateDis = -1 * index * 100; // bugfix: prop `style` did not match in ssr
|
746
|
+
|
747
|
+
var transStr = childSize > 0 ? "" + translateDis + (translateDis ? 'px' : '') : "" + initTranslateDis + (initTranslateDis ? '%' : '');
|
746
748
|
|
747
749
|
if (vertical) {
|
748
750
|
var _translateStyle = (0, _helpers.getStyleWithVendor)({
|
@@ -47,11 +47,15 @@ export interface GlobalContextParams {
|
|
47
47
|
* @default false
|
48
48
|
*/
|
49
49
|
useRtl?: boolean;
|
50
|
+
/**
|
51
|
+
* 当系统原生暗黑模式发生变化时触发,useDarkMode=true 时有效
|
52
|
+
* @en Triggered when the system's native dark mode changes, valid when useDarkMode=true
|
53
|
+
*/
|
54
|
+
onDarkModeChange?: (isDark: boolean) => void;
|
50
55
|
}
|
51
56
|
export declare const defaultContext: GlobalContextParams;
|
52
57
|
export declare const GlobalContext: React.Context<GlobalContextParams>;
|
53
58
|
export interface ContextProviderProps extends GlobalContextParams {
|
54
|
-
onDarkModeChange?: (isDark: boolean) => void;
|
55
59
|
children: React.ReactNode;
|
56
60
|
}
|
57
61
|
export declare type WithGlobalContext<T> = T & {
|
@@ -73,9 +73,15 @@
|
|
73
73
|
isDarkModeState = _useState[0],
|
74
74
|
setIsDarkModeState = _useState[1];
|
75
75
|
|
76
|
-
var
|
76
|
+
var mountedRef = (0, _react.useRef)(false);
|
77
|
+
|
78
|
+
var setDarkModeState = function setDarkModeState(isDark, needChange) {
|
79
|
+
if (needChange === void 0) {
|
80
|
+
needChange = true;
|
81
|
+
}
|
82
|
+
|
77
83
|
setIsDarkModeState(isDark);
|
78
|
-
onDarkModeChange && onDarkModeChange(isDark);
|
84
|
+
needChange && onDarkModeChange && onDarkModeChange(isDark);
|
79
85
|
};
|
80
86
|
|
81
87
|
var isDarkMode = (0, _react.useMemo)(function () {
|
@@ -104,7 +110,7 @@
|
|
104
110
|
|
105
111
|
if (useDarkMode) {
|
106
112
|
var dark = matchMedia.matches;
|
107
|
-
setDarkModeState(dark);
|
113
|
+
setDarkModeState(dark, mountedRef.current);
|
108
114
|
|
109
115
|
if (typeof matchMedia.addEventListener === 'function') {
|
110
116
|
matchMedia.addEventListener('change', changeDarkMode);
|
@@ -113,6 +119,7 @@
|
|
113
119
|
}
|
114
120
|
}
|
115
121
|
|
122
|
+
mountedRef.current = true;
|
116
123
|
return function () {
|
117
124
|
if (useDarkMode) {
|
118
125
|
if (typeof matchMedia.removeEventListener === 'function') {
|
package/umd/form/form-item.js
CHANGED
@@ -86,12 +86,14 @@
|
|
86
86
|
fieldValidator.validate((_fieldValidator$valid = {}, _fieldValidator$valid[field] = value, _fieldValidator$valid), function (errorsMap) {
|
87
87
|
var _getErrorAndWarnings = (0, _utils.getErrorAndWarnings)((errorsMap == null ? void 0 : errorsMap[field]) || []),
|
88
88
|
errors = _getErrorAndWarnings.errors,
|
89
|
-
warnings = _getErrorAndWarnings.warnings
|
89
|
+
warnings = _getErrorAndWarnings.warnings,
|
90
|
+
errorTypes = _getErrorAndWarnings.errorTypes;
|
90
91
|
|
91
92
|
_this._errors = errors;
|
92
93
|
onValidateStatusChange({
|
93
94
|
errors: _this._errors,
|
94
|
-
warnings: warnings
|
95
|
+
warnings: warnings,
|
96
|
+
errorTypes: errorTypes
|
95
97
|
});
|
96
98
|
return resolve({
|
97
99
|
errors: _this._errors,
|
@@ -336,16 +338,22 @@
|
|
336
338
|
errors = _useState[0],
|
337
339
|
setErrors = _useState[1];
|
338
340
|
|
339
|
-
var _useState2 = (0, _react.useState)(
|
340
|
-
|
341
|
-
|
341
|
+
var _useState2 = (0, _react.useState)(null),
|
342
|
+
errorTypes = _useState2[0],
|
343
|
+
setErrorTypes = _useState2[1];
|
344
|
+
|
345
|
+
var _useState3 = (0, _react.useState)([]),
|
346
|
+
warnings = _useState3[0],
|
347
|
+
setWarnings = _useState3[1];
|
342
348
|
|
343
349
|
var formItemRef = (0, _react.useRef)(null);
|
344
350
|
|
345
351
|
var onValidateStatusChange = function onValidateStatusChange(validateResult) {
|
346
352
|
var _errors = validateResult.errors,
|
347
|
-
_warnings = validateResult.warnings
|
353
|
+
_warnings = validateResult.warnings,
|
354
|
+
_errorTypes = validateResult.errorTypes;
|
348
355
|
setErrors(_errors.length ? _errors[0] : null);
|
356
|
+
setErrorTypes(_errorTypes.length ? _errorTypes[0] : null);
|
349
357
|
setWarnings(_warnings);
|
350
358
|
};
|
351
359
|
|
@@ -367,7 +375,7 @@
|
|
367
375
|
return /*#__PURE__*/_react.default.createElement("div", {
|
368
376
|
className: (0, _mobileUtils.cls)(prefixCls + "-form-item", prefixCls + "-form-item-" + (itemLayout || layout), className, (_cls = {
|
369
377
|
disabled: fieldDisabled
|
370
|
-
}, _cls[prefixCls + "-form-item-error"] = !!errors, _cls[prefixCls + "-form-item-warning"] = Boolean(!errors && warnings), _cls)),
|
378
|
+
}, _cls[prefixCls + "-form-item-error"] = !!errors, _cls[prefixCls + "-form-item-warning"] = Boolean(!errors && warnings), _cls[prefixCls + "-form-item-error-" + errorTypes] = errorTypes, _cls)),
|
371
379
|
style: style,
|
372
380
|
ref: formItemRef
|
373
381
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
package/umd/form/type.d.ts
CHANGED
@@ -344,8 +344,9 @@ export interface IFormItemInnerProps {
|
|
344
344
|
* @en The callback when validating status changes
|
345
345
|
*/
|
346
346
|
onValidateStatusChange: (data: {
|
347
|
-
errors:
|
348
|
-
warnings:
|
347
|
+
errors: ReactNode[];
|
348
|
+
warnings: ReactNode[];
|
349
|
+
errorTypes: string[];
|
349
350
|
}) => void;
|
350
351
|
/**
|
351
352
|
* 获取内部表单项的dom
|
package/umd/form/utils.d.ts
CHANGED
package/umd/form/utils.js
CHANGED
@@ -31,11 +31,13 @@
|
|
31
31
|
var getErrorAndWarnings = function getErrorAndWarnings(result) {
|
32
32
|
var errors = [];
|
33
33
|
var warnings = [];
|
34
|
+
var errorTypes = [];
|
34
35
|
result.map(function (_ref) {
|
35
36
|
var _ref$message = _ref.message,
|
36
37
|
message = _ref$message === void 0 ? [] : _ref$message,
|
37
38
|
_ref$validateLevel = _ref.validateLevel,
|
38
|
-
validateLevel = _ref$validateLevel === void 0 ? 'error' : _ref$validateLevel
|
39
|
+
validateLevel = _ref$validateLevel === void 0 ? 'error' : _ref$validateLevel,
|
40
|
+
resultErrorTypes = _ref.errorTypes;
|
39
41
|
|
40
42
|
if (!(message != null && message.length)) {
|
41
43
|
return;
|
@@ -45,11 +47,13 @@
|
|
45
47
|
warnings = [].concat(warnings, message);
|
46
48
|
} else {
|
47
49
|
errors = [].concat(errors, message);
|
50
|
+
errorTypes = [].concat(errorTypes, resultErrorTypes);
|
48
51
|
}
|
49
52
|
});
|
50
53
|
return {
|
51
54
|
warnings: warnings,
|
52
|
-
errors: errors
|
55
|
+
errors: errors,
|
56
|
+
errorTypes: errorTypes
|
53
57
|
};
|
54
58
|
};
|
55
59
|
|
package/umd/nav-bar/back-icon.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
(function (global, factory) {
|
2
2
|
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports", "react"], factory);
|
3
|
+
define(["exports", "react", "@arco-design/mobile-utils", "../context-provider"], factory);
|
4
4
|
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports, require("react"));
|
5
|
+
factory(exports, require("react"), require("@arco-design/mobile-utils"), require("../context-provider"));
|
6
6
|
} else {
|
7
7
|
var mod = {
|
8
8
|
exports: {}
|
9
9
|
};
|
10
|
-
factory(mod.exports, global.react);
|
10
|
+
factory(mod.exports, global.react, global.mobileUtils, global.contextProvider);
|
11
11
|
global.backIcon = mod.exports;
|
12
12
|
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _react) {
|
13
|
+
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _react, _mobileUtils, _contextProvider) {
|
14
14
|
"use strict";
|
15
15
|
|
16
16
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
@@ -22,16 +22,22 @@
|
|
22
22
|
function BackArrow(_ref) {
|
23
23
|
var _ref$color = _ref.color,
|
24
24
|
color = _ref$color === void 0 ? 'currentColor' : _ref$color;
|
25
|
-
return /*#__PURE__*/_react.default.createElement(
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_contextProvider.ContextLayout, null, function (_ref2) {
|
26
|
+
var _ref2$locale = _ref2.locale,
|
27
|
+
locale = _ref2$locale === void 0 ? _mobileUtils.defaultLocale : _ref2$locale;
|
28
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
29
|
+
role: "button",
|
30
|
+
className: "c-svg-arrow nav-bar-back",
|
31
|
+
"aria-label": locale.NavBar.backBtnAriaLabel
|
32
|
+
}, /*#__PURE__*/_react.default.createElement("svg", {
|
33
|
+
height: "100%",
|
34
|
+
viewBox: "0 0 16 16"
|
35
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
36
|
+
id: "path-1_1_",
|
37
|
+
d: "M2.1,8l5.4,5.4c0.1,0.1,0.1,0.3,0,0.5L7,14.4c-0.1,0.1-0.3,0.1-0.5,0L0.7,8.5c-0.3-0.3-0.3-0.7,0-0.9 l5.9-5.9c0.1-0.1,0.3-0.1,0.5,0l0.5,0.5c0.1,0.1,0.1,0.3,0,0.5L2.1,8z",
|
38
|
+
fill: color
|
39
|
+
})));
|
40
|
+
});
|
35
41
|
}
|
36
42
|
|
37
43
|
var _default = BackArrow;
|
@@ -308,7 +308,7 @@
|
|
308
308
|
function getCurrentCellValue() {
|
309
309
|
var _data$currentIndex;
|
310
310
|
|
311
|
-
return
|
311
|
+
return (_data$currentIndex = data[currentIndex]) == null ? void 0 : _data$currentIndex.value;
|
312
312
|
}
|
313
313
|
|
314
314
|
function _clearTimer() {
|
package/umd/picker-view/index.js
CHANGED
@@ -1052,7 +1052,7 @@
|
|
1052
1052
|
color: #f6f6f6 ;
|
1053
1053
|
}
|
1054
1054
|
.arco-theme-dark .arco-tab-cell-container-wrap {
|
1055
|
-
background: #
|
1055
|
+
background: #17171A ;
|
1056
1056
|
}
|
1057
1057
|
.arco-theme-dark .arco-tab-cell-container-inner.has-divider.pos-top {
|
1058
1058
|
box-shadow: 0 -1PX 0 0 #484849 inset;
|