@arco-design/mobile-react 2.30.1 → 2.30.3
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/form/type.d.ts +2 -2
- package/cjs/image-preview/index.d.ts +6 -0
- package/cjs/image-preview/index.js +48 -14
- package/cjs/image-preview/style/css/index.css +2 -1
- package/cjs/image-preview/style/index.less +2 -1
- package/cjs/nav-bar/back-icon.js +20 -10
- package/cjs/picker-view/components/picker-cell.js +1 -1
- package/cjs/picker-view/index.js +1 -1
- package/cjs/popover/style/css/index.css +9 -2
- package/cjs/popover/style/css/menu.css +4 -0
- package/cjs/popover/style/index.less +1 -2
- package/cjs/popover/style/menu.less +1 -1
- package/cjs/slider/hooks/useSliderEvents.js +14 -8
- package/cjs/slider/hooks/useSliderStyle.js +13 -7
- package/cjs/slider/index.js +4 -2
- package/cjs/slider/marks.js +4 -2
- package/cjs/slider/style/css/index.css +28 -0
- package/cjs/slider/style/index.less +13 -4
- package/dist/index.js +118 -64
- package/dist/index.min.js +4 -4
- package/dist/style.css +39 -3
- package/dist/style.min.css +1 -1
- package/esm/form/type.d.ts +2 -2
- package/esm/image-preview/index.d.ts +6 -0
- package/esm/image-preview/index.js +48 -14
- package/esm/image-preview/style/css/index.css +2 -1
- package/esm/image-preview/style/index.less +2 -1
- package/esm/nav-bar/back-icon.js +18 -10
- package/esm/picker-view/components/picker-cell.js +1 -1
- package/esm/picker-view/index.js +1 -1
- package/esm/popover/style/css/index.css +9 -2
- package/esm/popover/style/css/menu.css +4 -0
- package/esm/popover/style/index.less +1 -2
- package/esm/popover/style/menu.less +1 -1
- package/esm/slider/hooks/useSliderEvents.js +13 -8
- package/esm/slider/hooks/useSliderStyle.js +12 -7
- package/esm/slider/index.js +4 -2
- package/esm/slider/marks.js +4 -2
- package/esm/slider/style/css/index.css +28 -0
- package/esm/slider/style/index.less +13 -4
- package/package.json +3 -3
- package/style/css/public.css +2 -0
- package/tokens/app/arcodesign/default/css-variables.less +1 -1
- package/tokens/app/arcodesign/default/index.d.ts +1 -1
- package/tokens/app/arcodesign/default/index.js +1 -1
- package/tokens/app/arcodesign/default/index.json +7 -7
- package/tokens/app/arcodesign/default/index.less +1 -1
- package/umd/form/type.d.ts +2 -2
- package/umd/image-preview/index.d.ts +6 -0
- package/umd/image-preview/index.js +48 -14
- package/umd/image-preview/style/css/index.css +2 -1
- package/umd/image-preview/style/index.less +2 -1
- package/umd/nav-bar/back-icon.js +20 -14
- package/umd/picker-view/components/picker-cell.js +1 -1
- package/umd/picker-view/index.js +1 -1
- package/umd/popover/style/css/index.css +9 -2
- package/umd/popover/style/css/menu.css +4 -0
- package/umd/popover/style/index.less +1 -2
- package/umd/popover/style/menu.less +1 -1
- package/umd/slider/hooks/useSliderEvents.js +16 -12
- package/umd/slider/hooks/useSliderStyle.js +15 -11
- package/umd/slider/index.js +4 -2
- package/umd/slider/marks.js +4 -2
- package/umd/slider/style/css/index.css +28 -0
- package/umd/slider/style/index.less +13 -4
- 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 -548
- package/cjs/dialog/demo/style/mobile.less +0 -80
- 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 -602
- package/cjs/input/demo/style/mobile.less +0 -132
- 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 -545
- package/cjs/notify/demo/style/mobile.less +0 -60
- 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 -649
- package/cjs/popover/demo/style/mobile.less +0 -135
- 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 -633
- package/cjs/tabs/demo/style/mobile.less +0 -174
- 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 -548
- package/esm/dialog/demo/style/mobile.less +0 -80
- 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 -602
- package/esm/input/demo/style/mobile.less +0 -132
- 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 -545
- package/esm/notify/demo/style/mobile.less +0 -60
- 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 -649
- package/esm/popover/demo/style/mobile.less +0 -135
- 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 -633
- package/esm/tabs/demo/style/mobile.less +0 -174
- 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 -548
- package/umd/dialog/demo/style/mobile.less +0 -80
- 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 -602
- package/umd/input/demo/style/mobile.less +0 -132
- 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 -545
- package/umd/notify/demo/style/mobile.less +0 -60
- 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 -649
- package/umd/popover/demo/style/mobile.less +0 -135
- 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 -633
- package/umd/tabs/demo/style/mobile.less +0 -174
- 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
package/dist/index.js
CHANGED
@@ -1715,6 +1715,9 @@
|
|
1715
1715
|
boolean: {
|
1716
1716
|
equal: '%s 不等于 `%s`'
|
1717
1717
|
}
|
1718
|
+
},
|
1719
|
+
NavBar: {
|
1720
|
+
backBtnAriaLabel: '返回'
|
1718
1721
|
}
|
1719
1722
|
};
|
1720
1723
|
|
@@ -12457,7 +12460,7 @@
|
|
12457
12460
|
function getCurrentCellValue() {
|
12458
12461
|
var _a;
|
12459
12462
|
|
12460
|
-
return
|
12463
|
+
return (_a = data[currentIndex]) === null || _a === void 0 ? void 0 : _a.value;
|
12461
12464
|
}
|
12462
12465
|
|
12463
12466
|
function _clearTimer() {
|
@@ -12754,7 +12757,7 @@
|
|
12754
12757
|
// @en Remove empty values from cascader
|
12755
12758
|
|
12756
12759
|
return curValues.filter(function (v) {
|
12757
|
-
return v;
|
12760
|
+
return v !== undefined;
|
12758
12761
|
});
|
12759
12762
|
};
|
12760
12763
|
|
@@ -20870,7 +20873,7 @@
|
|
20870
20873
|
transformersRef.current = []; // 移除过渡图片
|
20871
20874
|
// @en Remove transition image
|
20872
20875
|
|
20873
|
-
removeChild(
|
20876
|
+
removeChild(transImageRef.current);
|
20874
20877
|
setTransImageInfo(null);
|
20875
20878
|
setPlaceholders({});
|
20876
20879
|
var mounted_1 = isInitialMount.current;
|
@@ -20912,8 +20915,10 @@
|
|
20912
20915
|
}, [getMaxScale]);
|
20913
20916
|
|
20914
20917
|
function removeChild(child) {
|
20918
|
+
var _a, _b, _c;
|
20919
|
+
|
20915
20920
|
try {
|
20916
|
-
child &&
|
20921
|
+
child && ((_c = (_b = (_a = domRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.carousel-item')) === null || _b === void 0 ? void 0 : _b[innerIndexRef.current]) === null || _c === void 0 ? void 0 : _c.removeChild(child));
|
20917
20922
|
} catch (e) {}
|
20918
20923
|
} // 监听滑动到上下边缘后还在往外滑动的操作,则关闭弹窗
|
20919
20924
|
// @en Monitor the operation of sliding out after sliding to the upper and lower edges, then close the popup
|
@@ -21333,7 +21338,41 @@
|
|
21333
21338
|
}
|
21334
21339
|
}
|
21335
21340
|
|
21336
|
-
var handleClick = useSingleAndDoubleClick(handleImageClick, handleImageDoubleClick);
|
21341
|
+
var handleClick = useSingleAndDoubleClick(handleImageClick, handleImageDoubleClick); // 当使用 getThumbBounds 时,关闭图片预览有缩小效果
|
21342
|
+
// @en When using getThumbBounds, closing the image preview has a shrinking effect
|
21343
|
+
|
21344
|
+
function animateBeforeClose() {
|
21345
|
+
var _a;
|
21346
|
+
|
21347
|
+
var index = innerIndexRef.current;
|
21348
|
+
var imageDom = (_a = imagesRef.current[index]) === null || _a === void 0 ? void 0 : _a.image;
|
21349
|
+
var thumbBounds = getThumbBounds === null || getThumbBounds === void 0 ? void 0 : getThumbBounds(index);
|
21350
|
+
|
21351
|
+
if (!imageDom || !thumbBounds || !thumbBounds.width || !thumbBounds.height) {
|
21352
|
+
return;
|
21353
|
+
} // 小图超过一半在视野外时,不展示缩小效果
|
21354
|
+
// @en When more than half of the thumbnail is outside the field of view, the zoom effect will not be displayed
|
21355
|
+
|
21356
|
+
|
21357
|
+
if (thumbBounds.top < -1 * thumbBounds.height / 2 || thumbBounds.top > windowHeight - thumbBounds.height / 2 || thumbBounds.left < -1 * thumbBounds.width / 2 || thumbBounds.left > windowWidth - thumbBounds.width / 2) {
|
21358
|
+
return;
|
21359
|
+
}
|
21360
|
+
|
21361
|
+
var imageDomRect = imageDom.getBoundingClientRect();
|
21362
|
+
|
21363
|
+
if (!imageDomRect.width || !imageDomRect.height) {
|
21364
|
+
return;
|
21365
|
+
}
|
21366
|
+
|
21367
|
+
imageDom.classList.add('closing-animation');
|
21368
|
+
setImageBounds(imageDom, imageDomRect, imageDomRect);
|
21369
|
+
imageDom.style.objectPosition = images[index].thumbPosition || 'top center';
|
21370
|
+
nextTick(function () {
|
21371
|
+
imageDom.style.transitionDuration = displayDuration + "ms";
|
21372
|
+
imageDom.style.webkitTransitionDuration = displayDuration + "ms";
|
21373
|
+
setImageBounds(imageDom, thumbBounds, imageDomRect);
|
21374
|
+
});
|
21375
|
+
}
|
21337
21376
|
|
21338
21377
|
function goClose(e) {
|
21339
21378
|
if (closingRef.current) {
|
@@ -21341,6 +21380,7 @@
|
|
21341
21380
|
}
|
21342
21381
|
|
21343
21382
|
closingRef.current = true;
|
21383
|
+
animateBeforeClose();
|
21344
21384
|
close(e);
|
21345
21385
|
}
|
21346
21386
|
/**
|
@@ -21363,7 +21403,7 @@
|
|
21363
21403
|
|
21364
21404
|
|
21365
21405
|
function setDisplayAnimation(index) {
|
21366
|
-
var _a;
|
21406
|
+
var _a, _b, _c, _d;
|
21367
21407
|
|
21368
21408
|
var firstLoaded = (_a = imagesStatusRef.current[index]) === null || _a === void 0 ? void 0 : _a.firstLoaded;
|
21369
21409
|
var fallbackSrc = replaceFallbackWhenLoaded && firstLoaded ? images[index].src : images[index].fallbackSrc; // 用户设置了getThumbBounds和images的fallbackSrc属性才有放大过渡效果
|
@@ -21394,7 +21434,7 @@
|
|
21394
21434
|
transImage.style.opacity = '0';
|
21395
21435
|
transImage.style.transitionDuration = displayDuration + "ms";
|
21396
21436
|
transImage.style.webkitTransitionDuration = displayDuration + "ms";
|
21397
|
-
|
21437
|
+
(_d = (_c = (_b = domRef.current) === null || _b === void 0 ? void 0 : _b.querySelectorAll('.carousel-item')) === null || _c === void 0 ? void 0 : _c[index]) === null || _d === void 0 ? void 0 : _d.prepend(transImage); // 拿到放大之后的位置rect,没拿到就取消小图放大效果
|
21398
21438
|
// @en Get the zoomed-in position rect, and cancel the zoom-in effect if not getting it
|
21399
21439
|
|
21400
21440
|
getNewImageBounds(index, fallbackSrc, transImage, function (rect) {
|
@@ -21416,9 +21456,10 @@
|
|
21416
21456
|
return __assign$2(__assign$2({}, holders), (_a = {}, _a[index] = true, _a));
|
21417
21457
|
});
|
21418
21458
|
}, Math.max(0, displayDuration - 80));
|
21459
|
+
var transitionEndDelay = images[index].transitionEndDelay || 30;
|
21419
21460
|
setTimeout(function () {
|
21420
21461
|
resetAnimation(index);
|
21421
|
-
}, displayDuration +
|
21462
|
+
}, displayDuration + transitionEndDelay);
|
21422
21463
|
});
|
21423
21464
|
});
|
21424
21465
|
}
|
@@ -21577,18 +21618,14 @@
|
|
21577
21618
|
}) : null;
|
21578
21619
|
}
|
21579
21620
|
|
21580
|
-
function renderLoadingArea(
|
21581
|
-
|
21582
|
-
// @en The loadingArea is extracted and placed on the upper layer of the transition image
|
21583
|
-
return index === openIndex ? /*#__PURE__*/React__default["default"].createElement(Portal, {
|
21584
|
-
getContainer: getContainer
|
21585
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
21621
|
+
function renderLoadingArea() {
|
21622
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
21586
21623
|
className: "image-preview-loading-area"
|
21587
21624
|
}, loadingArea || /*#__PURE__*/React__default["default"].createElement(Loading, {
|
21588
21625
|
type: "circle",
|
21589
21626
|
className: "loading-icon",
|
21590
21627
|
radius: 7
|
21591
|
-
}))
|
21628
|
+
}));
|
21592
21629
|
}
|
21593
21630
|
|
21594
21631
|
return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
|
@@ -21636,7 +21673,7 @@
|
|
21636
21673
|
imagesRef.current[index] = r;
|
21637
21674
|
},
|
21638
21675
|
showLoading: showLoading,
|
21639
|
-
loadingArea: renderLoadingArea(
|
21676
|
+
loadingArea: renderLoadingArea(),
|
21640
21677
|
errorArea: errorArea,
|
21641
21678
|
showError: showError,
|
21642
21679
|
retryTime: retryTime,
|
@@ -22974,16 +23011,22 @@
|
|
22974
23011
|
function BackArrow(_a) {
|
22975
23012
|
var _b = _a.color,
|
22976
23013
|
color = _b === void 0 ? 'currentColor' : _b;
|
22977
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
22978
|
-
|
22979
|
-
|
22980
|
-
|
22981
|
-
|
22982
|
-
|
22983
|
-
|
22984
|
-
|
22985
|
-
|
22986
|
-
|
23014
|
+
return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
|
23015
|
+
var _b = _a.locale,
|
23016
|
+
locale = _b === void 0 ? defaultLocale : _b;
|
23017
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
23018
|
+
role: "button",
|
23019
|
+
className: "c-svg-arrow nav-bar-back",
|
23020
|
+
"aria-label": locale.NavBar.backBtnAriaLabel
|
23021
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
23022
|
+
height: "100%",
|
23023
|
+
viewBox: "0 0 16 16"
|
23024
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
23025
|
+
id: "path-1_1_",
|
23026
|
+
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\n 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",
|
23027
|
+
fill: color
|
23028
|
+
})));
|
23029
|
+
});
|
22987
23030
|
}
|
22988
23031
|
|
22989
23032
|
/**
|
@@ -27713,6 +27756,7 @@
|
|
27713
27756
|
var getLinePosition = _a.getLinePosition,
|
27714
27757
|
commonIsTouching = _a.commonIsTouching,
|
27715
27758
|
valueGroup = _a.valueGroup;
|
27759
|
+
var useRtl = React.useContext(GlobalContext).useRtl;
|
27716
27760
|
|
27717
27761
|
var _b = React.useContext(SliderContext),
|
27718
27762
|
size = _b.size,
|
@@ -27751,7 +27795,8 @@
|
|
27751
27795
|
length = (larger - min) / (max - min) * length - start;
|
27752
27796
|
}
|
27753
27797
|
|
27754
|
-
|
27798
|
+
var leftStyle = useRtl ? 'right' : 'left';
|
27799
|
+
return _a = {}, _a[isHorizontal ? leftStyle : 'bottom'] = start + "px", _a[isHorizontal ? 'width' : 'height'] = Math.abs(length) + "px", _a;
|
27755
27800
|
}, [valueGroup, getLinePosition, min, max, isHorizontal]);
|
27756
27801
|
return {
|
27757
27802
|
heightStyle: heightStyle,
|
@@ -27774,6 +27819,7 @@
|
|
27774
27819
|
valueGroup = _a.valueGroup,
|
27775
27820
|
setValueGroup = _a.setValueGroup,
|
27776
27821
|
setCommonIsTouching = _a.setCommonIsTouching;
|
27822
|
+
var useRtl = React.useContext(GlobalContext).useRtl;
|
27777
27823
|
|
27778
27824
|
var _b = React.useContext(SliderContext),
|
27779
27825
|
disabled = _b.disabled,
|
@@ -27807,7 +27853,8 @@
|
|
27807
27853
|
length = _a.length,
|
27808
27854
|
start = _a.start;
|
27809
27855
|
if (length === 0) return 0;
|
27810
|
-
var
|
27856
|
+
var rtlRatio = useRtl ? -1 : 1;
|
27857
|
+
var newWidth = isHorizontal ? (touchPosition - start) * rtlRatio : length - touchPosition + start;
|
27811
27858
|
|
27812
27859
|
if (newWidth < 0) {
|
27813
27860
|
newWidth = 0;
|
@@ -28039,20 +28086,24 @@
|
|
28039
28086
|
className = _b === void 0 ? '' : _b,
|
28040
28087
|
_c = _a.style,
|
28041
28088
|
style = _c === void 0 ? {} : _c;
|
28042
|
-
var _d = React.useContext(GlobalContext).prefixCls,
|
28043
|
-
prefixCls = _d === void 0 ? '' : _d;
|
28044
28089
|
|
28045
|
-
var
|
28046
|
-
|
28047
|
-
|
28048
|
-
|
28049
|
-
|
28090
|
+
var _d = React.useContext(GlobalContext),
|
28091
|
+
_e = _d.prefixCls,
|
28092
|
+
prefixCls = _e === void 0 ? '' : _e,
|
28093
|
+
useRtl = _d.useRtl;
|
28094
|
+
|
28095
|
+
var _f = React.useContext(SliderContext),
|
28096
|
+
type = _f.type,
|
28097
|
+
showMarks = _f.showMarks,
|
28098
|
+
max = _f.max,
|
28099
|
+
min = _f.min;
|
28050
28100
|
|
28051
28101
|
var isHorizontal = /^horizontal/g.test(type);
|
28052
28102
|
var genMarkStyle = React.useCallback(function (value) {
|
28053
28103
|
var _a;
|
28054
28104
|
|
28055
|
-
|
28105
|
+
var leftStyle = useRtl ? 'right' : 'left';
|
28106
|
+
return _a = {}, _a[isHorizontal ? leftStyle : 'bottom'] = (value - min) / (max - min) * 100 + "%", _a;
|
28056
28107
|
}, [isHorizontal, min, max]);
|
28057
28108
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
28058
28109
|
className: prefixCls + "-slider-marks"
|
@@ -28073,26 +28124,28 @@
|
|
28073
28124
|
}
|
28074
28125
|
|
28075
28126
|
var Slider = /*#__PURE__*/React.forwardRef(function (_, ref) {
|
28076
|
-
var _a = React.useContext(GlobalContext)
|
28077
|
-
|
28127
|
+
var _a = React.useContext(GlobalContext),
|
28128
|
+
_b = _a.prefixCls,
|
28129
|
+
prefixCls = _b === void 0 ? '' : _b,
|
28130
|
+
useRtl = _a.useRtl;
|
28078
28131
|
|
28079
|
-
var
|
28080
|
-
className =
|
28081
|
-
style =
|
28082
|
-
disabled =
|
28083
|
-
min =
|
28084
|
-
max =
|
28085
|
-
type =
|
28086
|
-
showTooltip =
|
28087
|
-
showMarks =
|
28132
|
+
var _c = React.useContext(SliderContext),
|
28133
|
+
className = _c.className,
|
28134
|
+
style = _c.style,
|
28135
|
+
disabled = _c.disabled,
|
28136
|
+
min = _c.min,
|
28137
|
+
max = _c.max,
|
28138
|
+
type = _c.type,
|
28139
|
+
showTooltip = _c.showTooltip,
|
28140
|
+
showMarks = _c.showMarks;
|
28088
28141
|
|
28089
28142
|
var domRef = React.useRef(null);
|
28090
28143
|
var lineRef = React.useRef(null); // 拖动滑块的 index 为当前的 isTouching
|
28091
28144
|
// @en The index of the slider is the current isTouching
|
28092
28145
|
|
28093
|
-
var
|
28094
|
-
commonIsTouching =
|
28095
|
-
setCommonIsTouching =
|
28146
|
+
var _d = React.useState(-1),
|
28147
|
+
commonIsTouching = _d[0],
|
28148
|
+
setCommonIsTouching = _d[1];
|
28096
28149
|
|
28097
28150
|
var isHorizontal = /^horizontal/g.test(type);
|
28098
28151
|
React.useImperativeHandle(ref, function () {
|
@@ -28101,14 +28154,14 @@
|
|
28101
28154
|
};
|
28102
28155
|
});
|
28103
28156
|
|
28104
|
-
var
|
28157
|
+
var _e = useSliderInit({
|
28105
28158
|
commonIsTouching: commonIsTouching
|
28106
28159
|
}),
|
28107
|
-
firstRender =
|
28108
|
-
valueGroup =
|
28109
|
-
setValueGroup =
|
28110
|
-
runTimeConfig =
|
28111
|
-
isMultiThumb =
|
28160
|
+
firstRender = _e.firstRender,
|
28161
|
+
valueGroup = _e.valueGroup,
|
28162
|
+
setValueGroup = _e.setValueGroup,
|
28163
|
+
runTimeConfig = _e.runTimeConfig,
|
28164
|
+
isMultiThumb = _e.isMultiThumb; // 最长线 div 位置
|
28112
28165
|
|
28113
28166
|
|
28114
28167
|
var getLinePosition = React.useCallback(function () {
|
@@ -28125,20 +28178,21 @@
|
|
28125
28178
|
top = _c.top,
|
28126
28179
|
height = _c.height;
|
28127
28180
|
|
28181
|
+
var leftValue = useRtl ? left + width : left;
|
28128
28182
|
return {
|
28129
28183
|
length: isHorizontal ? width : height,
|
28130
|
-
start: isHorizontal ?
|
28184
|
+
start: isHorizontal ? leftValue : top
|
28131
28185
|
};
|
28132
28186
|
}, [isHorizontal, firstRender]);
|
28133
28187
|
|
28134
|
-
var
|
28188
|
+
var _f = useSliderStyle({
|
28135
28189
|
getLinePosition: getLinePosition,
|
28136
28190
|
commonIsTouching: commonIsTouching,
|
28137
28191
|
valueGroup: valueGroup
|
28138
28192
|
}),
|
28139
|
-
heightStyle =
|
28140
|
-
transitionClass =
|
28141
|
-
activeLineStyle =
|
28193
|
+
heightStyle = _f.heightStyle,
|
28194
|
+
transitionClass = _f.transitionClass,
|
28195
|
+
activeLineStyle = _f.activeLineStyle;
|
28142
28196
|
|
28143
28197
|
useSliderEvents({
|
28144
28198
|
lineRef: lineRef,
|
@@ -28148,11 +28202,11 @@
|
|
28148
28202
|
setCommonIsTouching: setCommonIsTouching
|
28149
28203
|
});
|
28150
28204
|
|
28151
|
-
var
|
28205
|
+
var _g = useSliderIcon({
|
28152
28206
|
valueGroup: valueGroup
|
28153
28207
|
}),
|
28154
|
-
renderPrefixLabel =
|
28155
|
-
renderSuffixLabel =
|
28208
|
+
renderPrefixLabel = _g.renderPrefixLabel,
|
28209
|
+
renderSuffixLabel = _g.renderSuffixLabel;
|
28156
28210
|
/**
|
28157
28211
|
* 为了减少 dom 元素计算,只改变激活 line 的样式,让对应的 thumb 附着在两边,所以需要实时调整 className
|
28158
28212
|
* @en In order to reduce the calculation of dom elements, only the style of the active line is changed, so that the corresponding thumb is attached to both sides, so the className needs to be adjusted in real time
|