@arco-design/mobile-react 2.19.1 → 2.21.0
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 +53 -0
- package/README.en-US.md +6 -6
- package/README.md +6 -6
- package/cjs/_helpers/type.d.ts +1 -1
- package/cjs/avatar/group.js +1 -1
- package/cjs/avatar/index.d.ts +1 -1
- package/cjs/avatar/index.js +11 -14
- package/cjs/avatar/style/css/index.css +96 -126
- package/cjs/avatar/style/index.less +54 -72
- package/cjs/badge/index.d.ts +1 -1
- package/cjs/badge/index.js +7 -9
- package/cjs/badge/style/css/index.css +5 -5
- package/cjs/badge/style/index.less +5 -5
- package/cjs/button/hooks.d.ts +1 -2
- package/cjs/button/hooks.js +5 -3
- package/cjs/button/index.d.ts +6 -0
- package/cjs/button/index.js +38 -33
- package/cjs/button/style/css/index.css +75 -310
- package/cjs/button/style/index.less +32 -38
- package/cjs/carousel/index.d.ts +1 -1
- package/cjs/carousel/index.js +1 -1
- package/cjs/cell/index.d.ts +1 -1
- package/cjs/cell/index.js +1 -1
- package/cjs/checkbox/index.d.ts +1 -1
- package/cjs/checkbox/index.js +1 -1
- package/cjs/collapse/index.d.ts +1 -1
- package/cjs/collapse/index.js +1 -1
- package/cjs/count-down/demo/style/mobile.less +1 -1
- package/cjs/count-down/index.d.ts +1 -1
- package/cjs/count-down/index.js +1 -1
- package/cjs/date-picker/index.d.ts +1 -1
- package/cjs/date-picker/index.js +1 -1
- package/cjs/dropdown/dropdown.d.ts +3 -0
- package/cjs/dropdown/dropdown.js +322 -0
- package/cjs/dropdown/index.d.ts +3 -4
- package/cjs/dropdown/index.js +3 -303
- package/cjs/dropdown/options.js +2 -1
- package/cjs/dropdown/style/css/index.css +3 -0
- package/cjs/dropdown/style/index.less +2 -0
- package/cjs/dropdown/type.d.ts +20 -9
- package/cjs/dropdown-menu/dropdown-menu.d.ts +4 -0
- package/cjs/dropdown-menu/dropdown-menu.js +273 -0
- package/cjs/dropdown-menu/helper.d.ts +1 -1
- package/cjs/dropdown-menu/index.d.ts +2 -3
- package/cjs/dropdown-menu/index.js +2 -245
- package/cjs/dropdown-menu/type.d.ts +21 -20
- package/cjs/ellipsis/index.d.ts +1 -1
- package/cjs/ellipsis/index.js +1 -1
- package/cjs/grid/index.js +13 -12
- package/cjs/image/index.d.ts +1 -2
- package/cjs/image/index.js +14 -9
- package/cjs/image/style/css/index.css +2 -1
- package/cjs/image/style/index.less +2 -1
- package/cjs/image-picker/add-icon.d.ts +2 -0
- package/cjs/image-picker/add-icon.js +22 -0
- package/cjs/image-picker/demo/style/css/mobile.css +40 -0
- package/cjs/image-picker/demo/style/mobile.less +42 -0
- package/cjs/image-picker/index.d.ts +13 -0
- package/cjs/image-picker/index.js +331 -0
- package/cjs/image-picker/style/css/index.css +147 -0
- package/cjs/image-picker/style/css/index.d.ts +2 -0
- package/cjs/image-picker/style/css/index.js +5 -0
- package/cjs/image-picker/style/index.d.ts +2 -0
- package/cjs/image-picker/style/index.js +5 -0
- package/cjs/image-picker/style/index.less +116 -0
- package/cjs/image-picker/type.d.ts +174 -0
- package/cjs/image-picker/type.js +3 -0
- package/cjs/image-preview/index.d.ts +3 -3
- package/cjs/image-preview/index.js +1 -1
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +13 -1
- package/cjs/input/hooks.js +49 -8
- package/cjs/input/index.d.ts +1 -1
- package/cjs/input/index.js +1 -1
- package/cjs/input/props.d.ts +8 -2
- package/cjs/nav-bar/index.js +7 -2
- package/cjs/notice-bar/index.d.ts +1 -1
- package/cjs/notice-bar/index.js +1 -1
- package/cjs/picker/index.d.ts +1 -1
- package/cjs/picker/index.js +1 -1
- package/cjs/picker-view/index.d.ts +1 -1
- package/cjs/picker-view/index.js +1 -1
- package/cjs/popover/index.d.ts +1 -1
- package/cjs/popover/index.js +1 -1
- package/cjs/popup-swiper/index.js +3 -2
- package/cjs/radio/index.d.ts +1 -1
- package/cjs/radio/index.js +1 -1
- package/cjs/rate/index.d.ts +1 -1
- package/cjs/rate/index.js +1 -1
- package/cjs/search-bar/association.d.ts +3 -0
- package/cjs/search-bar/association.js +92 -0
- package/cjs/search-bar/cancel-button.d.ts +10 -0
- package/cjs/search-bar/cancel-button.js +41 -0
- package/cjs/search-bar/demo/style/css/mobile.css +5 -0
- package/cjs/search-bar/demo/style/mobile.less +9 -0
- package/cjs/search-bar/highlight.d.ts +12 -0
- package/cjs/search-bar/highlight.js +77 -0
- package/cjs/search-bar/index.d.ts +13 -0
- package/cjs/search-bar/index.js +239 -0
- package/cjs/search-bar/style/css/index.css +148 -0
- package/cjs/search-bar/style/css/index.d.ts +2 -0
- package/cjs/search-bar/style/css/index.js +5 -0
- package/cjs/search-bar/style/index.d.ts +2 -0
- package/cjs/search-bar/style/index.js +5 -0
- package/cjs/search-bar/style/index.less +111 -0
- package/cjs/search-bar/type.d.ts +163 -0
- package/cjs/search-bar/type.js +3 -0
- package/cjs/show-monitor/index.js +31 -3
- package/cjs/slider/index.d.ts +1 -1
- package/cjs/slider/index.js +1 -1
- package/cjs/steps/demo/style/css/mobile.css +1 -1
- package/cjs/steps/demo/style/mobile.less +1 -1
- package/cjs/steps/index.d.ts +1 -1
- package/cjs/steps/index.js +1 -1
- package/cjs/steps/style/css/index.css +5 -15
- package/cjs/steps/style/index.less +6 -10
- package/cjs/sticky/index.d.ts +1 -1
- package/cjs/style.d.ts +3 -0
- package/cjs/style.js +6 -0
- package/cjs/swipe-action/demo/style/css/mobile.css +5 -0
- package/cjs/swipe-action/demo/style/mobile.less +9 -0
- package/cjs/swipe-action/index.d.ts +12 -0
- package/cjs/swipe-action/index.js +339 -0
- package/cjs/swipe-action/item.d.ts +11 -0
- package/cjs/swipe-action/item.js +52 -0
- package/cjs/swipe-action/style/css/index.css +88 -0
- package/cjs/swipe-action/style/css/index.d.ts +2 -0
- package/cjs/swipe-action/style/css/index.js +5 -0
- package/cjs/swipe-action/style/index.d.ts +2 -0
- package/cjs/swipe-action/style/index.js +5 -0
- package/cjs/swipe-action/style/index.less +89 -0
- package/cjs/swipe-action/type.d.ts +123 -0
- package/cjs/swipe-action/type.js +3 -0
- package/cjs/switch/index.d.ts +1 -1
- package/cjs/switch/index.js +1 -1
- package/cjs/tabs/tab-pane.js +5 -1
- package/cjs/tag/index.d.ts +1 -1
- package/cjs/tag/index.js +1 -1
- package/cjs/textarea/index.d.ts +1 -1
- package/cjs/textarea/index.js +1 -1
- package/dist/index.js +8040 -6845
- package/dist/index.min.js +6 -7
- package/dist/style.css +497 -447
- package/dist/style.min.css +1 -1
- package/esm/_helpers/type.d.ts +1 -1
- package/esm/avatar/group.js +1 -1
- package/esm/avatar/index.d.ts +1 -1
- package/esm/avatar/index.js +11 -14
- package/esm/avatar/style/css/index.css +96 -126
- package/esm/avatar/style/index.less +54 -72
- package/esm/badge/index.d.ts +1 -1
- package/esm/badge/index.js +7 -9
- package/esm/badge/style/css/index.css +5 -5
- package/esm/badge/style/index.less +5 -5
- package/esm/button/hooks.d.ts +1 -2
- package/esm/button/hooks.js +5 -3
- package/esm/button/index.d.ts +6 -0
- package/esm/button/index.js +40 -35
- package/esm/button/style/css/index.css +75 -310
- package/esm/button/style/index.less +32 -38
- package/esm/carousel/index.d.ts +1 -1
- package/esm/carousel/index.js +1 -1
- package/esm/cell/index.d.ts +1 -1
- package/esm/cell/index.js +1 -1
- package/esm/checkbox/index.d.ts +1 -1
- package/esm/checkbox/index.js +1 -1
- package/esm/collapse/index.d.ts +1 -1
- package/esm/collapse/index.js +1 -1
- package/esm/count-down/demo/style/mobile.less +1 -1
- package/esm/count-down/index.d.ts +1 -1
- package/esm/count-down/index.js +1 -1
- package/esm/date-picker/index.d.ts +1 -1
- package/esm/date-picker/index.js +1 -1
- package/esm/dropdown/dropdown.d.ts +3 -0
- package/esm/dropdown/dropdown.js +304 -0
- package/esm/dropdown/index.d.ts +3 -4
- package/esm/dropdown/index.js +3 -293
- package/esm/dropdown/options.js +2 -1
- package/esm/dropdown/style/css/index.css +3 -0
- package/esm/dropdown/style/index.less +2 -0
- package/esm/dropdown/type.d.ts +20 -9
- package/esm/dropdown-menu/dropdown-menu.d.ts +4 -0
- package/esm/dropdown-menu/dropdown-menu.js +256 -0
- package/esm/dropdown-menu/helper.d.ts +1 -1
- package/esm/dropdown-menu/index.d.ts +2 -3
- package/esm/dropdown-menu/index.js +2 -237
- package/esm/dropdown-menu/type.d.ts +21 -20
- package/esm/ellipsis/index.d.ts +1 -1
- package/esm/ellipsis/index.js +1 -1
- package/esm/grid/index.js +13 -12
- package/esm/image/index.d.ts +1 -2
- package/esm/image/index.js +15 -10
- package/esm/image/style/css/index.css +2 -1
- package/esm/image/style/index.less +2 -1
- package/esm/image-picker/add-icon.d.ts +2 -0
- package/esm/image-picker/add-icon.js +14 -0
- package/esm/image-picker/demo/style/css/mobile.css +40 -0
- package/esm/image-picker/demo/style/mobile.less +42 -0
- package/esm/image-picker/index.d.ts +13 -0
- package/esm/image-picker/index.js +302 -0
- package/esm/image-picker/style/css/index.css +147 -0
- package/esm/image-picker/style/css/index.d.ts +2 -0
- package/esm/image-picker/style/css/index.js +2 -0
- package/esm/image-picker/style/index.d.ts +2 -0
- package/esm/image-picker/style/index.js +2 -0
- package/esm/image-picker/style/index.less +116 -0
- package/esm/image-picker/type.d.ts +174 -0
- package/esm/image-picker/type.js +1 -0
- package/esm/image-preview/index.d.ts +3 -3
- package/esm/image-preview/index.js +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/input/hooks.js +49 -8
- package/esm/input/index.d.ts +1 -1
- package/esm/input/index.js +1 -1
- package/esm/input/props.d.ts +8 -2
- package/esm/nav-bar/index.js +6 -2
- package/esm/notice-bar/index.d.ts +1 -1
- package/esm/notice-bar/index.js +1 -1
- package/esm/picker/index.d.ts +1 -1
- package/esm/picker/index.js +1 -1
- package/esm/picker-view/index.d.ts +1 -1
- package/esm/picker-view/index.js +1 -1
- package/esm/popover/index.d.ts +1 -1
- package/esm/popover/index.js +1 -1
- package/esm/popup-swiper/index.js +3 -2
- package/esm/radio/index.d.ts +1 -1
- package/esm/radio/index.js +1 -1
- package/esm/rate/index.d.ts +1 -1
- package/esm/rate/index.js +1 -1
- package/esm/search-bar/association.d.ts +3 -0
- package/esm/search-bar/association.js +82 -0
- package/esm/search-bar/cancel-button.d.ts +10 -0
- package/esm/search-bar/cancel-button.js +30 -0
- package/esm/search-bar/demo/style/css/mobile.css +5 -0
- package/esm/search-bar/demo/style/mobile.less +9 -0
- package/esm/search-bar/highlight.d.ts +12 -0
- package/esm/search-bar/highlight.js +66 -0
- package/esm/search-bar/index.d.ts +13 -0
- package/esm/search-bar/index.js +213 -0
- package/esm/search-bar/style/css/index.css +148 -0
- package/esm/search-bar/style/css/index.d.ts +2 -0
- package/esm/search-bar/style/css/index.js +2 -0
- package/esm/search-bar/style/index.d.ts +2 -0
- package/esm/search-bar/style/index.js +2 -0
- package/esm/search-bar/style/index.less +111 -0
- package/esm/search-bar/type.d.ts +163 -0
- package/esm/search-bar/type.js +1 -0
- package/esm/show-monitor/index.js +31 -3
- package/esm/slider/index.d.ts +1 -1
- package/esm/slider/index.js +1 -1
- package/esm/steps/demo/style/css/mobile.css +1 -1
- package/esm/steps/demo/style/mobile.less +1 -1
- package/esm/steps/index.d.ts +1 -1
- package/esm/steps/index.js +1 -1
- package/esm/steps/style/css/index.css +5 -15
- package/esm/steps/style/index.less +6 -10
- package/esm/sticky/index.d.ts +1 -1
- package/esm/style.d.ts +3 -0
- package/esm/style.js +3 -0
- package/esm/swipe-action/demo/style/css/mobile.css +5 -0
- package/esm/swipe-action/demo/style/mobile.less +9 -0
- package/esm/swipe-action/index.d.ts +12 -0
- package/esm/swipe-action/index.js +321 -0
- package/esm/swipe-action/item.d.ts +11 -0
- package/esm/swipe-action/item.js +42 -0
- package/esm/swipe-action/style/css/index.css +88 -0
- package/esm/swipe-action/style/css/index.d.ts +2 -0
- package/esm/swipe-action/style/css/index.js +2 -0
- package/esm/swipe-action/style/index.d.ts +2 -0
- package/esm/swipe-action/style/index.js +2 -0
- package/esm/swipe-action/style/index.less +89 -0
- package/esm/swipe-action/type.d.ts +123 -0
- package/esm/swipe-action/type.js +1 -0
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.js +1 -1
- package/esm/tabs/tab-pane.js +5 -1
- package/esm/tag/index.d.ts +1 -1
- package/esm/tag/index.js +1 -1
- package/esm/textarea/index.d.ts +1 -1
- package/esm/textarea/index.js +1 -1
- package/package.json +3 -3
- package/tokens/app/arcodesign/default/css-variables.less +53 -3
- package/tokens/app/arcodesign/default/index.d.ts +53 -3
- package/tokens/app/arcodesign/default/index.js +54 -4
- package/tokens/app/arcodesign/default/index.json +629 -39
- package/tokens/app/arcodesign/default/index.less +53 -3
- package/umd/_helpers/type.d.ts +1 -1
- package/umd/avatar/group.js +1 -1
- package/umd/avatar/index.d.ts +1 -1
- package/umd/avatar/index.js +11 -14
- package/umd/avatar/style/css/index.css +96 -126
- package/umd/avatar/style/index.less +54 -72
- package/umd/badge/index.d.ts +1 -1
- package/umd/badge/index.js +7 -9
- package/umd/badge/style/css/index.css +5 -5
- package/umd/badge/style/index.less +5 -5
- package/umd/button/hooks.d.ts +1 -2
- package/umd/button/hooks.js +5 -3
- package/umd/button/index.d.ts +6 -0
- package/umd/button/index.js +38 -33
- package/umd/button/style/css/index.css +75 -310
- package/umd/button/style/index.less +32 -38
- package/umd/carousel/index.d.ts +1 -1
- package/umd/carousel/index.js +1 -1
- package/umd/cell/index.d.ts +1 -1
- package/umd/cell/index.js +1 -1
- package/umd/checkbox/index.d.ts +1 -1
- package/umd/checkbox/index.js +1 -1
- package/umd/collapse/index.d.ts +1 -1
- package/umd/collapse/index.js +1 -1
- package/umd/count-down/demo/style/mobile.less +1 -1
- package/umd/count-down/index.d.ts +1 -1
- package/umd/count-down/index.js +1 -1
- package/umd/date-picker/index.d.ts +1 -1
- package/umd/date-picker/index.js +1 -1
- package/umd/dropdown/dropdown.d.ts +3 -0
- package/umd/dropdown/dropdown.js +325 -0
- package/umd/dropdown/index.d.ts +3 -4
- package/umd/dropdown/index.js +5 -298
- package/umd/dropdown/options.js +2 -1
- package/umd/dropdown/style/css/index.css +3 -0
- package/umd/dropdown/style/index.less +2 -0
- package/umd/dropdown/type.d.ts +20 -9
- package/umd/dropdown-menu/dropdown-menu.d.ts +4 -0
- package/umd/dropdown-menu/dropdown-menu.js +278 -0
- package/umd/dropdown-menu/helper.d.ts +1 -1
- package/umd/dropdown-menu/index.d.ts +2 -3
- package/umd/dropdown-menu/index.js +5 -241
- package/umd/dropdown-menu/type.d.ts +21 -20
- package/umd/ellipsis/index.d.ts +1 -1
- package/umd/ellipsis/index.js +1 -1
- package/umd/grid/index.js +13 -12
- package/umd/image/index.d.ts +1 -2
- package/umd/image/index.js +14 -9
- package/umd/image/style/css/index.css +2 -1
- package/umd/image/style/index.less +2 -1
- package/umd/image-picker/add-icon.d.ts +2 -0
- package/umd/image-picker/add-icon.js +35 -0
- package/umd/image-picker/demo/style/css/mobile.css +40 -0
- package/umd/image-picker/demo/style/mobile.less +42 -0
- package/umd/image-picker/index.d.ts +13 -0
- package/umd/image-picker/index.js +329 -0
- package/umd/image-picker/style/css/index.css +147 -0
- package/umd/image-picker/style/css/index.d.ts +2 -0
- package/umd/image-picker/style/css/index.js +15 -0
- package/umd/image-picker/style/index.d.ts +2 -0
- package/umd/image-picker/style/index.js +15 -0
- package/umd/image-picker/style/index.less +116 -0
- package/umd/image-picker/type.d.ts +174 -0
- package/umd/image-picker/type.js +17 -0
- package/umd/image-preview/index.d.ts +3 -3
- package/umd/image-preview/index.js +1 -1
- package/umd/index.d.ts +3 -0
- package/umd/index.js +11 -5
- package/umd/input/hooks.js +48 -7
- package/umd/input/index.d.ts +1 -1
- package/umd/input/index.js +1 -1
- package/umd/input/props.d.ts +8 -2
- package/umd/nav-bar/index.js +9 -6
- package/umd/notice-bar/index.d.ts +1 -1
- package/umd/notice-bar/index.js +1 -1
- package/umd/picker/index.d.ts +1 -1
- package/umd/picker/index.js +1 -1
- package/umd/picker-view/index.d.ts +1 -1
- package/umd/picker-view/index.js +1 -1
- package/umd/popover/index.d.ts +1 -1
- package/umd/popover/index.js +1 -1
- package/umd/popup-swiper/index.js +3 -2
- package/umd/radio/index.d.ts +1 -1
- package/umd/radio/index.js +1 -1
- package/umd/rate/index.d.ts +1 -1
- package/umd/rate/index.js +1 -1
- package/umd/search-bar/association.d.ts +3 -0
- package/umd/search-bar/association.js +101 -0
- package/umd/search-bar/cancel-button.d.ts +10 -0
- package/umd/search-bar/cancel-button.js +52 -0
- package/umd/search-bar/demo/style/css/mobile.css +5 -0
- package/umd/search-bar/demo/style/mobile.less +9 -0
- package/umd/search-bar/highlight.d.ts +12 -0
- package/umd/search-bar/highlight.js +87 -0
- package/umd/search-bar/index.d.ts +13 -0
- package/umd/search-bar/index.js +235 -0
- package/umd/search-bar/style/css/index.css +148 -0
- package/umd/search-bar/style/css/index.d.ts +2 -0
- package/umd/search-bar/style/css/index.js +15 -0
- package/umd/search-bar/style/index.d.ts +2 -0
- package/umd/search-bar/style/index.js +15 -0
- package/umd/search-bar/style/index.less +111 -0
- package/umd/search-bar/type.d.ts +163 -0
- package/umd/search-bar/type.js +17 -0
- package/umd/show-monitor/index.js +31 -3
- package/umd/slider/index.d.ts +1 -1
- package/umd/slider/index.js +1 -1
- package/umd/steps/demo/style/css/mobile.css +1 -1
- package/umd/steps/demo/style/mobile.less +1 -1
- package/umd/steps/index.d.ts +1 -1
- package/umd/steps/index.js +1 -1
- package/umd/steps/style/css/index.css +5 -15
- package/umd/steps/style/index.less +6 -10
- package/umd/sticky/index.d.ts +1 -1
- package/umd/style.d.ts +3 -0
- package/umd/style.js +4 -4
- package/umd/swipe-action/demo/style/css/mobile.css +5 -0
- package/umd/swipe-action/demo/style/mobile.less +9 -0
- package/umd/swipe-action/index.d.ts +12 -0
- package/umd/swipe-action/index.js +342 -0
- package/umd/swipe-action/item.d.ts +11 -0
- package/umd/swipe-action/item.js +62 -0
- package/umd/swipe-action/style/css/index.css +88 -0
- package/umd/swipe-action/style/css/index.d.ts +2 -0
- package/umd/swipe-action/style/css/index.js +15 -0
- package/umd/swipe-action/style/index.d.ts +2 -0
- package/umd/swipe-action/style/index.js +15 -0
- package/umd/swipe-action/style/index.less +89 -0
- package/umd/swipe-action/type.d.ts +123 -0
- package/umd/swipe-action/type.js +17 -0
- package/umd/switch/index.d.ts +1 -1
- package/umd/switch/index.js +1 -1
- package/umd/tabs/tab-pane.js +5 -1
- package/umd/tag/index.d.ts +1 -1
- package/umd/tag/index.js +1 -1
- package/umd/textarea/index.d.ts +1 -1
- package/umd/textarea/index.js +1 -1
package/esm/switch/index.js
CHANGED
package/esm/tabs/tab-pane.js
CHANGED
@@ -160,10 +160,14 @@ var TabPane = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
160
160
|
var topDis = curPaneTop - containerTop - scrollOffset;
|
161
161
|
var scrollAttr = scrollVertical ? 'scrollTop' : 'scrollLeft';
|
162
162
|
var scrollTop = isGlobal ? Math.max(document.documentElement[scrollAttr], document.body[scrollAttr]) : scrollEle[scrollAttr];
|
163
|
+
var scrollSizeAttr = scrollVertical ? 'scrollHeight' : 'scrollWidth';
|
164
|
+
var sizeAttr = scrollVertical ? 'offsetHeight' : 'offsetWidth';
|
165
|
+
var maxTopDis = isGlobal ? Math.max(document.documentElement[scrollSizeAttr], document.body[scrollSizeAttr]) - scrollTop - (scrollVertical ? window.innerHeight : window.innerWidth) : scrollEle[scrollSizeAttr] - scrollTop - scrollEle[sizeAttr];
|
166
|
+
var normalizedTopDis = Math.min(maxTopDis, topDis);
|
163
167
|
clearTimeout(timerRef.current);
|
164
168
|
autoScrollingRef.current = true;
|
165
169
|
var duration = rightNow ? 0 : transitionDuration || 0;
|
166
|
-
scrollWithAnimation(scrollTop, scrollTop +
|
170
|
+
scrollWithAnimation(scrollTop, scrollTop + normalizedTopDis, function (top) {
|
167
171
|
if (isGlobal) {
|
168
172
|
document.documentElement[scrollAttr] = top;
|
169
173
|
document.body[scrollAttr] = top;
|
package/esm/tag/index.d.ts
CHANGED
package/esm/tag/index.js
CHANGED
package/esm/textarea/index.d.ts
CHANGED
package/esm/textarea/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arco-design/mobile-react",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.21.0",
|
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.
|
18
|
+
"@arco-design/mobile-utils": "^2.12.0",
|
19
19
|
"@arco-design/transformable": "^1.0.0",
|
20
20
|
"es6-promise": "^4.2.8",
|
21
21
|
"lodash.throttle": "^4.1.1",
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"publishConfig": {
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "da7492bd1d018d6b69919a01b2fe2d0f2d7fae0d"
|
40
40
|
}
|
@@ -159,8 +159,9 @@
|
|
159
159
|
--avatar-desc-ultra-small-margin-top: ~`pxtorem(2)`;
|
160
160
|
--avatar-name-color: var(--font-color);
|
161
161
|
--avatar-desc-color: var(--sub-info-font-color);
|
162
|
-
--button-
|
162
|
+
--button-line-height: 1.2;
|
163
163
|
--button-radius: 2PX;
|
164
|
+
--button-icon-text-gutter: ~`pxtorem(4)`;
|
164
165
|
--button-primary-background: var(--primary-color);
|
165
166
|
--button-primary-clicked-background: #0E42D2;
|
166
167
|
--button-primary-disabled-background: var(--primary-disabled-color);
|
@@ -518,6 +519,7 @@
|
|
518
519
|
--steps-padding: ~`pxtorem(16)` 0;
|
519
520
|
--steps-tail-horizontal-padding: 0 ~`pxtorem(18)`;
|
520
521
|
--steps-tail-vertical-padding: ~`pxtorem(14)` 0;
|
522
|
+
--steps-tail-vertical-top: ~`pxtorem(9)`;
|
521
523
|
--steps-tail-standard-size: 1PX;
|
522
524
|
--steps-tail-standard-background: var(--line-color);
|
523
525
|
--steps-tail-finish-background: var(--primary-color);
|
@@ -544,8 +546,6 @@
|
|
544
546
|
--steps-wait-description-color: var(--sub-info-font-color);
|
545
547
|
--steps-icon-width: 18PX;
|
546
548
|
--steps-icon-height: 18PX;
|
547
|
-
--steps-custom-icon-width: 20PX;
|
548
|
-
--steps-custom-icon-height: 20PX;
|
549
549
|
--steps-dot-width: 8PX;
|
550
550
|
--steps-dot-height: 8PX;
|
551
551
|
--steps-dot-border-width: 1.5PX;
|
@@ -560,6 +560,16 @@
|
|
560
560
|
--steps-vertical-padding-bottom: 0;
|
561
561
|
--steps-vertical-padding-left: ~`pxtorem(20)`;
|
562
562
|
--steps-process-with-config-item-icon-color: #FFFFFF;
|
563
|
+
--swipe-action-open-transition: cubic-bezier(0.2, 0.8, 0.32, 1.28);
|
564
|
+
--swipe-action-close-transition: cubic-bezier(0.34, 0.69, 0.1, 1);
|
565
|
+
--swipe-action-info-padding: ~`pxtorem(16)`;
|
566
|
+
--swipe-action-info-bounce-buffer: ~`pxtorem(30)`;
|
567
|
+
--swipe-action-text-font-size: ~`pxtorem(16)`;
|
568
|
+
--swipe-action-text-line-height: ~`pxtorem(22)`;
|
569
|
+
--swipe-action-text-color: #ffffff;
|
570
|
+
--swipe-action-icon-width: ~`pxtorem(20)`;
|
571
|
+
--swipe-action-icon-height: ~`pxtorem(20)`;
|
572
|
+
--swipe-action-icon-margin-right: ~`pxtorem(4)`;
|
563
573
|
--badge-background-color: #F53F3F;
|
564
574
|
--badge-text-color: #FFFFFF;
|
565
575
|
--badge-font-size: 12PX;
|
@@ -647,4 +657,44 @@
|
|
647
657
|
--action-sheet-header-padding: ~`pxtorem(16)`;
|
648
658
|
--action-sheet-title-font-size: ~`pxtorem(16)`;
|
649
659
|
--action-sheet-sub-title-font-size: ~`pxtorem(14)`;
|
660
|
+
--search-bar-padding: ~`pxtorem(16)`;
|
661
|
+
--search-bar-background-color: #FFFFFF;
|
662
|
+
--search-bar-square-shape-border-radius: ~`pxtorem(2)`;
|
663
|
+
--search-bar-round-shape-border-radius: ~`pxtorem(9999)`;
|
664
|
+
--search-bar-input-wrapper-height: ~`pxtorem(36)`;
|
665
|
+
--search-bar-input-wrapper-padding: ~`pxtorem(8)` ~`pxtorem(14)`;
|
666
|
+
--search-bar-input-wrapper-background-color: #F2F3F5;
|
667
|
+
--search-bar-input-wrapper-font-size: ~`pxtorem(14)`;
|
668
|
+
--search-bar-input-height: ~`pxtorem(20)`;
|
669
|
+
--search-bar-input-caret-color: var(--primary-color);
|
670
|
+
--search-bar-input-placeholder-color: var(--disabled-color);
|
671
|
+
--search-bar-prefix-margin-right: ~`pxtorem(9)`;
|
672
|
+
--search-bar-clear-icon-color: #C9CDD4;
|
673
|
+
--search-bar-search-icon-color: #86909C;
|
674
|
+
--search-bar-search-icon-font-size: ~`pxtorem(16)`;
|
675
|
+
--search-bar-cancel-btn-color: var(--primary-color);
|
676
|
+
--search-bar-cancel-btn-font-size: ~`pxtorem(15)`;
|
677
|
+
--search-bar-cancel-btn-margin-left: ~`pxtorem(16)`;
|
678
|
+
--search-bar-association-background-color: #FFFFFF;
|
679
|
+
--search-bar-association-item-height: ~`pxtorem(52)`;
|
680
|
+
--search-bar-association-item-padding: ~`pxtorem(16)`;
|
681
|
+
--search-bar-association-item-font-size: ~`pxtorem(15)`;
|
682
|
+
--search-bar-association-item-color: var(--font-color);
|
683
|
+
--search-bar-association-item-highlight-color: var(--primary-color);
|
684
|
+
--image-picker-font-size: ~`pxtorem(14)`;
|
685
|
+
--image-picker-disabled-opacity: 0.7;
|
686
|
+
--image-picker-border-radius: ~`pxtorem(2)`;
|
687
|
+
--image-picker-add-background: #f7f8fa;
|
688
|
+
--image-picker-add-icon-font-size: ~`pxtorem(30)`;
|
689
|
+
--image-picker-add-icon-color: #d8d8d8;
|
690
|
+
--image-picker-add-text-font-size: ~`pxtorem(12)`;
|
691
|
+
--image-picker-add-text-color: var(--sub-info-font-color);
|
692
|
+
--image-picker-error-color: #ffffff;
|
693
|
+
--image-picker-error-background: rgba(0, 0, 0, 0.5);
|
694
|
+
--image-picker-close-color: #ffffff;
|
695
|
+
--image-picker-close-font-size: ~`pxtorem(12)`;
|
696
|
+
--image-picker-close-width: ~`pxtorem(18)`;
|
697
|
+
--image-picker-close-height: ~`pxtorem(18)`;
|
698
|
+
--image-picker-close-background: rgba(0, 0, 0, 0.3);
|
699
|
+
--image-picker-close-border-radius: 0 ~`pxtorem(2)`;
|
650
700
|
}
|
@@ -158,8 +158,9 @@ export interface ArcodesignToken extends Record<string, string> {
|
|
158
158
|
'avatar-desc-ultra-small-margin-top': string;
|
159
159
|
'avatar-name-color': string;
|
160
160
|
'avatar-desc-color': string;
|
161
|
-
'button-
|
161
|
+
'button-line-height': string;
|
162
162
|
'button-radius': string;
|
163
|
+
'button-icon-text-gutter': string;
|
163
164
|
'button-primary-background': string;
|
164
165
|
'button-primary-clicked-background': string;
|
165
166
|
'button-primary-disabled-background': string;
|
@@ -517,6 +518,7 @@ export interface ArcodesignToken extends Record<string, string> {
|
|
517
518
|
'steps-padding': string;
|
518
519
|
'steps-tail-horizontal-padding': string;
|
519
520
|
'steps-tail-vertical-padding': string;
|
521
|
+
'steps-tail-vertical-top': string;
|
520
522
|
'steps-tail-standard-size': string;
|
521
523
|
'steps-tail-standard-background': string;
|
522
524
|
'steps-tail-finish-background': string;
|
@@ -543,8 +545,6 @@ export interface ArcodesignToken extends Record<string, string> {
|
|
543
545
|
'steps-wait-description-color': string;
|
544
546
|
'steps-icon-width': string;
|
545
547
|
'steps-icon-height': string;
|
546
|
-
'steps-custom-icon-width': string;
|
547
|
-
'steps-custom-icon-height': string;
|
548
548
|
'steps-dot-width': string;
|
549
549
|
'steps-dot-height': string;
|
550
550
|
'steps-dot-border-width': string;
|
@@ -559,6 +559,16 @@ export interface ArcodesignToken extends Record<string, string> {
|
|
559
559
|
'steps-vertical-padding-bottom': string;
|
560
560
|
'steps-vertical-padding-left': string;
|
561
561
|
'steps-process-with-config-item-icon-color': string;
|
562
|
+
'swipe-action-open-transition': string;
|
563
|
+
'swipe-action-close-transition': string;
|
564
|
+
'swipe-action-info-padding': string;
|
565
|
+
'swipe-action-info-bounce-buffer': string;
|
566
|
+
'swipe-action-text-font-size': string;
|
567
|
+
'swipe-action-text-line-height': string;
|
568
|
+
'swipe-action-text-color': string;
|
569
|
+
'swipe-action-icon-width': string;
|
570
|
+
'swipe-action-icon-height': string;
|
571
|
+
'swipe-action-icon-margin-right': string;
|
562
572
|
'badge-background-color': string;
|
563
573
|
'badge-text-color': string;
|
564
574
|
'badge-font-size': string;
|
@@ -646,6 +656,46 @@ export interface ArcodesignToken extends Record<string, string> {
|
|
646
656
|
'action-sheet-header-padding': string;
|
647
657
|
'action-sheet-title-font-size': string;
|
648
658
|
'action-sheet-sub-title-font-size': string;
|
659
|
+
'search-bar-padding': string;
|
660
|
+
'search-bar-background-color': string;
|
661
|
+
'search-bar-square-shape-border-radius': string;
|
662
|
+
'search-bar-round-shape-border-radius': string;
|
663
|
+
'search-bar-input-wrapper-height': string;
|
664
|
+
'search-bar-input-wrapper-padding': string;
|
665
|
+
'search-bar-input-wrapper-background-color': string;
|
666
|
+
'search-bar-input-wrapper-font-size': string;
|
667
|
+
'search-bar-input-height': string;
|
668
|
+
'search-bar-input-caret-color': string;
|
669
|
+
'search-bar-input-placeholder-color': string;
|
670
|
+
'search-bar-prefix-margin-right': string;
|
671
|
+
'search-bar-clear-icon-color': string;
|
672
|
+
'search-bar-search-icon-color': string;
|
673
|
+
'search-bar-search-icon-font-size': string;
|
674
|
+
'search-bar-cancel-btn-color': string;
|
675
|
+
'search-bar-cancel-btn-font-size': string;
|
676
|
+
'search-bar-cancel-btn-margin-left': string;
|
677
|
+
'search-bar-association-background-color': string;
|
678
|
+
'search-bar-association-item-height': string;
|
679
|
+
'search-bar-association-item-padding': string;
|
680
|
+
'search-bar-association-item-font-size': string;
|
681
|
+
'search-bar-association-item-color': string;
|
682
|
+
'search-bar-association-item-highlight-color': string;
|
683
|
+
'image-picker-font-size': string;
|
684
|
+
'image-picker-disabled-opacity': string;
|
685
|
+
'image-picker-border-radius': string;
|
686
|
+
'image-picker-add-background': string;
|
687
|
+
'image-picker-add-icon-font-size': string;
|
688
|
+
'image-picker-add-icon-color': string;
|
689
|
+
'image-picker-add-text-font-size': string;
|
690
|
+
'image-picker-add-text-color': string;
|
691
|
+
'image-picker-error-color': string;
|
692
|
+
'image-picker-error-background': string;
|
693
|
+
'image-picker-close-color': string;
|
694
|
+
'image-picker-close-font-size': string;
|
695
|
+
'image-picker-close-width': string;
|
696
|
+
'image-picker-close-height': string;
|
697
|
+
'image-picker-close-background': string;
|
698
|
+
'image-picker-close-border-radius': string;
|
649
699
|
}
|
650
700
|
declare const tokens: ArcodesignToken;
|
651
701
|
export default tokens;
|
@@ -170,8 +170,9 @@ var tokens = {
|
|
170
170
|
"avatar-desc-ultra-small-margin-top": "0.04rem",
|
171
171
|
"avatar-name-color": "#1d2129",
|
172
172
|
"avatar-desc-color": "#86909c",
|
173
|
-
"button-
|
173
|
+
"button-line-height": "1.2",
|
174
174
|
"button-radius": "2PX",
|
175
|
+
"button-icon-text-gutter": "0.08rem",
|
175
176
|
"button-primary-background": "#165dff",
|
176
177
|
"button-primary-clicked-background": "#0E42D2",
|
177
178
|
"button-primary-disabled-background": "#94bfff",
|
@@ -529,6 +530,7 @@ var tokens = {
|
|
529
530
|
"steps-padding": "0.32rem 0",
|
530
531
|
"steps-tail-horizontal-padding": "0 0.36rem",
|
531
532
|
"steps-tail-vertical-padding": "0.28rem 0",
|
533
|
+
"steps-tail-vertical-top": "0.18rem",
|
532
534
|
"steps-tail-standard-size": "1PX",
|
533
535
|
"steps-tail-standard-background": "#e5e6eb",
|
534
536
|
"steps-tail-finish-background": "#165dff",
|
@@ -555,8 +557,6 @@ var tokens = {
|
|
555
557
|
"steps-wait-description-color": "#86909c",
|
556
558
|
"steps-icon-width": "18PX",
|
557
559
|
"steps-icon-height": "18PX",
|
558
|
-
"steps-custom-icon-width": "20PX",
|
559
|
-
"steps-custom-icon-height": "20PX",
|
560
560
|
"steps-dot-width": "8PX",
|
561
561
|
"steps-dot-height": "8PX",
|
562
562
|
"steps-dot-border-width": "1.5PX",
|
@@ -571,6 +571,16 @@ var tokens = {
|
|
571
571
|
"steps-vertical-padding-bottom": "0",
|
572
572
|
"steps-vertical-padding-left": "0.4rem",
|
573
573
|
"steps-process-with-config-item-icon-color": "#FFFFFF",
|
574
|
+
"swipe-action-open-transition": "cubic-bezier(0.2, 0.8, 0.32, 1.28)",
|
575
|
+
"swipe-action-close-transition": "cubic-bezier(0.34, 0.69, 0.1, 1)",
|
576
|
+
"swipe-action-info-padding": "0.32rem",
|
577
|
+
"swipe-action-info-bounce-buffer": "0.6rem",
|
578
|
+
"swipe-action-text-font-size": "0.32rem",
|
579
|
+
"swipe-action-text-line-height": "0.44rem",
|
580
|
+
"swipe-action-text-color": "#ffffff",
|
581
|
+
"swipe-action-icon-width": "0.4rem",
|
582
|
+
"swipe-action-icon-height": "0.4rem",
|
583
|
+
"swipe-action-icon-margin-right": "0.08rem",
|
574
584
|
"badge-background-color": "#F53F3F",
|
575
585
|
"badge-text-color": "#FFFFFF",
|
576
586
|
"badge-font-size": "12PX",
|
@@ -657,7 +667,47 @@ var tokens = {
|
|
657
667
|
"action-sheet-cancel-border-width": "0.16rem",
|
658
668
|
"action-sheet-header-padding": "0.32rem",
|
659
669
|
"action-sheet-title-font-size": "0.32rem",
|
660
|
-
"action-sheet-sub-title-font-size": "0.28rem"
|
670
|
+
"action-sheet-sub-title-font-size": "0.28rem",
|
671
|
+
"search-bar-padding": "0.32rem",
|
672
|
+
"search-bar-background-color": "#FFFFFF",
|
673
|
+
"search-bar-square-shape-border-radius": "0.04rem",
|
674
|
+
"search-bar-round-shape-border-radius": "199.98rem",
|
675
|
+
"search-bar-input-wrapper-height": "0.72rem",
|
676
|
+
"search-bar-input-wrapper-padding": "0.16rem 0.28rem",
|
677
|
+
"search-bar-input-wrapper-background-color": "#F2F3F5",
|
678
|
+
"search-bar-input-wrapper-font-size": "0.28rem",
|
679
|
+
"search-bar-input-height": "0.4rem",
|
680
|
+
"search-bar-input-caret-color": "#165dff",
|
681
|
+
"search-bar-input-placeholder-color": "#c9cdd4",
|
682
|
+
"search-bar-prefix-margin-right": "0.18rem",
|
683
|
+
"search-bar-clear-icon-color": "#C9CDD4",
|
684
|
+
"search-bar-search-icon-color": "#86909C",
|
685
|
+
"search-bar-search-icon-font-size": "0.32rem",
|
686
|
+
"search-bar-cancel-btn-color": "#165dff",
|
687
|
+
"search-bar-cancel-btn-font-size": "0.3rem",
|
688
|
+
"search-bar-cancel-btn-margin-left": "0.32rem",
|
689
|
+
"search-bar-association-background-color": "#FFFFFF",
|
690
|
+
"search-bar-association-item-height": "1.04rem",
|
691
|
+
"search-bar-association-item-padding": "0.32rem",
|
692
|
+
"search-bar-association-item-font-size": "0.3rem",
|
693
|
+
"search-bar-association-item-color": "#1d2129",
|
694
|
+
"search-bar-association-item-highlight-color": "#165dff",
|
695
|
+
"image-picker-font-size": "0.28rem",
|
696
|
+
"image-picker-disabled-opacity": "0.7",
|
697
|
+
"image-picker-border-radius": "0.04rem",
|
698
|
+
"image-picker-add-background": "#f7f8fa",
|
699
|
+
"image-picker-add-icon-font-size": "0.6rem",
|
700
|
+
"image-picker-add-icon-color": "#d8d8d8",
|
701
|
+
"image-picker-add-text-font-size": "0.24rem",
|
702
|
+
"image-picker-add-text-color": "#86909c",
|
703
|
+
"image-picker-error-color": "#ffffff",
|
704
|
+
"image-picker-error-background": "rgba(0, 0, 0, 0.5)",
|
705
|
+
"image-picker-close-color": "#ffffff",
|
706
|
+
"image-picker-close-font-size": "0.24rem",
|
707
|
+
"image-picker-close-width": "0.36rem",
|
708
|
+
"image-picker-close-height": "0.36rem",
|
709
|
+
"image-picker-close-background": "rgba(0, 0, 0, 0.3)",
|
710
|
+
"image-picker-close-border-radius": "0 0.04rem"
|
661
711
|
};
|
662
712
|
var _default = tokens;
|
663
713
|
exports["default"] = _default;
|