@arco-design/mobile-react 2.20.0 → 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 +30 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/avatar/index.d.ts +1 -1
- package/cjs/avatar/index.js +1 -1
- package/cjs/badge/index.d.ts +1 -1
- package/cjs/badge/index.js +1 -1
- 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/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.js +36 -20
- package/cjs/dropdown/style/css/index.css +3 -0
- package/cjs/dropdown/style/index.less +2 -0
- package/cjs/ellipsis/index.d.ts +1 -1
- package/cjs/ellipsis/index.js +1 -1
- package/cjs/image/index.d.ts +1 -1
- package/cjs/image/index.js +1 -1
- package/cjs/image-picker/index.d.ts +4 -175
- package/cjs/image-picker/index.js +41 -18
- package/cjs/image-picker/type.d.ts +174 -0
- package/cjs/image-picker/type.js +3 -0
- package/cjs/image-preview/index.d.ts +1 -1
- package/cjs/image-preview/index.js +1 -1
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +9 -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/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/slider/index.d.ts +1 -1
- package/cjs/slider/index.js +1 -1
- package/cjs/steps/index.d.ts +1 -1
- package/cjs/steps/index.js +1 -1
- package/cjs/sticky/index.d.ts +1 -1
- package/cjs/style.d.ts +2 -0
- package/cjs/style.js +4 -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 +7450 -6611
- package/dist/index.min.js +6 -6
- package/dist/style.css +203 -0
- package/dist/style.min.css +1 -1
- package/esm/avatar/index.d.ts +1 -1
- package/esm/avatar/index.js +1 -1
- package/esm/badge/index.d.ts +1 -1
- package/esm/badge/index.js +1 -1
- 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/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.js +36 -20
- package/esm/dropdown/style/css/index.css +3 -0
- package/esm/dropdown/style/index.less +2 -0
- package/esm/ellipsis/index.d.ts +1 -1
- package/esm/ellipsis/index.js +1 -1
- package/esm/image/index.d.ts +1 -1
- package/esm/image/index.js +1 -1
- package/esm/image-picker/index.d.ts +4 -175
- package/esm/image-picker/index.js +30 -17
- package/esm/image-picker/type.d.ts +174 -0
- package/esm/image-picker/type.js +1 -0
- package/esm/image-preview/index.d.ts +1 -1
- package/esm/image-preview/index.js +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -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/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/slider/index.d.ts +1 -1
- package/esm/slider/index.js +1 -1
- package/esm/steps/index.d.ts +1 -1
- package/esm/steps/index.js +1 -1
- package/esm/sticky/index.d.ts +1 -1
- package/esm/style.d.ts +2 -0
- package/esm/style.js +2 -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 +34 -0
- package/tokens/app/arcodesign/default/index.d.ts +34 -0
- package/tokens/app/arcodesign/default/index.js +34 -0
- package/tokens/app/arcodesign/default/index.json +398 -0
- package/tokens/app/arcodesign/default/index.less +34 -0
- package/umd/avatar/index.d.ts +1 -1
- package/umd/avatar/index.js +1 -1
- package/umd/badge/index.d.ts +1 -1
- package/umd/badge/index.js +1 -1
- 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/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.js +36 -20
- package/umd/dropdown/style/css/index.css +3 -0
- package/umd/dropdown/style/index.less +2 -0
- package/umd/ellipsis/index.d.ts +1 -1
- package/umd/ellipsis/index.js +1 -1
- package/umd/image/index.d.ts +1 -1
- package/umd/image/index.js +1 -1
- package/umd/image-picker/index.d.ts +4 -175
- package/umd/image-picker/index.js +40 -22
- package/umd/image-picker/type.d.ts +174 -0
- package/umd/image-picker/type.js +17 -0
- package/umd/image-preview/index.d.ts +1 -1
- package/umd/image-preview/index.js +1 -1
- package/umd/index.d.ts +2 -0
- package/umd/index.js +9 -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/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/slider/index.d.ts +1 -1
- package/umd/slider/index.js +1 -1
- package/umd/steps/index.d.ts +1 -1
- package/umd/steps/index.js +1 -1
- package/umd/sticky/index.d.ts +1 -1
- package/umd/style.d.ts +2 -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
@@ -0,0 +1,123 @@
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
2
|
+
export interface SwipeActionProps {
|
3
|
+
/**
|
4
|
+
* 自定义类名
|
5
|
+
* @en Custom classname
|
6
|
+
*/
|
7
|
+
className?: string;
|
8
|
+
/**
|
9
|
+
* 自定义样式
|
10
|
+
* @en Custom style
|
11
|
+
*/
|
12
|
+
style?: React.CSSProperties;
|
13
|
+
/**
|
14
|
+
* 子元素
|
15
|
+
* @en Inner Content
|
16
|
+
*/
|
17
|
+
children: ReactNode;
|
18
|
+
/**
|
19
|
+
* 右侧菜单
|
20
|
+
* @en right Menu
|
21
|
+
*/
|
22
|
+
rightActions?: Action[];
|
23
|
+
/**
|
24
|
+
* 左侧菜单
|
25
|
+
* @en left Menu
|
26
|
+
*/
|
27
|
+
leftActions?: Action[];
|
28
|
+
/**
|
29
|
+
* 点击外部是否自动归位
|
30
|
+
* @en Click outside for auto return
|
31
|
+
* @default false
|
32
|
+
*/
|
33
|
+
closeOnTouchOutside?: boolean;
|
34
|
+
/**
|
35
|
+
* 菜单滑出多少距离后自动滑出/关闭的系数 范围 0-1
|
36
|
+
* @en How far the menu slides off/off automatically ranges from 0 to 1
|
37
|
+
* @default 0.15
|
38
|
+
*/
|
39
|
+
threshold?: number;
|
40
|
+
/**
|
41
|
+
* 是否禁用
|
42
|
+
* @en Whether to disable
|
43
|
+
* @default false
|
44
|
+
*/
|
45
|
+
disabled?: boolean;
|
46
|
+
/**
|
47
|
+
* 动画的执行时间 (单位ms)
|
48
|
+
* @en Animation execution time in ms
|
49
|
+
* @default 300
|
50
|
+
*/
|
51
|
+
transitionDuration?: number;
|
52
|
+
/**
|
53
|
+
* 阻尼系数
|
54
|
+
* @en Damping coefficient
|
55
|
+
* @default 15
|
56
|
+
*/
|
57
|
+
dampRate?: number;
|
58
|
+
/**
|
59
|
+
* 菜单滑入时的样式类型,layer - 分层堆叠进入,push - 直接依次推入
|
60
|
+
* @en The style type when the menu slides in. layer - the menu is stacked in layers; push - the menu is pushed directly in sequence
|
61
|
+
* @default "layer"
|
62
|
+
*/
|
63
|
+
openStyleType?: 'layer' | 'push';
|
64
|
+
/**
|
65
|
+
* 滑出动画结束后触发
|
66
|
+
* @en Triggered when the slide out animation ends
|
67
|
+
*/
|
68
|
+
onOpen?: (direction: 'left' | 'right') => void;
|
69
|
+
/**
|
70
|
+
* 滑入动画结束后触发
|
71
|
+
* @en Triggered when the slide in animation ends
|
72
|
+
*/
|
73
|
+
onClose?: (direction: 'left' | 'right') => void;
|
74
|
+
}
|
75
|
+
export interface SwipeActionRef {
|
76
|
+
/**
|
77
|
+
* 最外层元素 DOM
|
78
|
+
* @en The outermost element DOM
|
79
|
+
*/
|
80
|
+
dom: HTMLDivElement | null;
|
81
|
+
/**
|
82
|
+
* 使滑动条归位
|
83
|
+
* @en Bring the slider back into position
|
84
|
+
*/
|
85
|
+
close: () => void;
|
86
|
+
/**
|
87
|
+
* 打开滑动条,默认打开右边
|
88
|
+
* @en Open the slider, the right by default
|
89
|
+
*/
|
90
|
+
open: (direction: 'left' | 'right') => void;
|
91
|
+
}
|
92
|
+
export interface Action {
|
93
|
+
/**
|
94
|
+
* 自定义内容
|
95
|
+
* @en Custom Content
|
96
|
+
*/
|
97
|
+
text?: ReactNode;
|
98
|
+
/**
|
99
|
+
* 自定义图标
|
100
|
+
* @en Custom Icon
|
101
|
+
*/
|
102
|
+
icon?: ReactNode;
|
103
|
+
/**
|
104
|
+
* 自定义样式
|
105
|
+
* @en Custom Style
|
106
|
+
*/
|
107
|
+
style?: CSSProperties;
|
108
|
+
/**
|
109
|
+
* 自定义类名
|
110
|
+
* @en Custom Style
|
111
|
+
*/
|
112
|
+
className?: string;
|
113
|
+
/**
|
114
|
+
* 点击事件 返回true可以阻止菜单的关闭
|
115
|
+
* @en Clicking the event to return true prevents the menu from closing
|
116
|
+
*/
|
117
|
+
onClick?: () => (void | boolean) | Promise<void | boolean>;
|
118
|
+
/**
|
119
|
+
* 子元素没有text或者icon的传递children
|
120
|
+
* @en Child elements do not pass children with text or icon
|
121
|
+
*/
|
122
|
+
children?: ReactNode;
|
123
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/esm/switch/index.d.ts
CHANGED
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
|
}
|
@@ -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,6 +657,30 @@
|
|
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);
|
650
684
|
--image-picker-font-size: ~`pxtorem(14)`;
|
651
685
|
--image-picker-disabled-opacity: 0.7;
|
652
686
|
--image-picker-border-radius: ~`pxtorem(2)`;
|
@@ -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,30 @@ 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;
|
649
683
|
'image-picker-font-size': string;
|
650
684
|
'image-picker-disabled-opacity': string;
|
651
685
|
'image-picker-border-radius': string;
|
@@ -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",
|
@@ -658,6 +668,30 @@ var tokens = {
|
|
658
668
|
"action-sheet-header-padding": "0.32rem",
|
659
669
|
"action-sheet-title-font-size": "0.32rem",
|
660
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",
|
661
695
|
"image-picker-font-size": "0.28rem",
|
662
696
|
"image-picker-disabled-opacity": "0.7",
|
663
697
|
"image-picker-border-radius": "0.04rem",
|