@hero-design/rn 8.5.0-alpha.0 → 8.6.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/.turbo/turbo-build.log +9 -66
- package/.turbo/turbo-publish:npm.log +0 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +641 -719
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +641 -718
- package/package.json +7 -5
- package/rollup.config.js +1 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/Swipeable/StyledSwipeable.tsx +2 -14
- package/src/components/Swipeable/SwipeableAction.tsx +7 -15
- package/src/components/Swipeable/index.tsx +136 -531
- package/src/components/SwipeableV2/StyledSwipeable.tsx +14 -0
- package/src/components/SwipeableV2/__tests__/__snapshots__/index.spec.tsx.snap +161 -0
- package/src/components/SwipeableV2/__tests__/index.spec.tsx +48 -0
- package/src/components/SwipeableV2/index.tsx +364 -0
- package/src/index.ts +2 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Select/BaseOptionList.d.ts +4 -8
- package/types/components/Select/MultiSelect/OptionList.d.ts +4 -7
- package/types/components/Select/SingleSelect/OptionList.d.ts +4 -4
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +2 -15
- package/types/components/Swipeable/SwipeableAction.d.ts +6 -10
- package/types/components/Swipeable/index.d.ts +41 -24
- package/types/components/SwipeableV2/StyledSwipeable.d.ts +15 -0
- package/types/components/SwipeableV2/index.d.ts +46 -0
- package/types/components/Toolbar/index.d.ts +3 -2
- package/types/index.d.ts +2 -1
- package/src/components/Swipeable/Buttons.tsx +0 -65
- package/types/components/Swipeable/Buttons.d.ts +0 -15
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Swipeable renders correctly 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
onLayout={[Function]}
|
|
6
|
+
onMoveShouldSetResponder={[Function]}
|
|
7
|
+
onMoveShouldSetResponderCapture={[Function]}
|
|
8
|
+
onResponderEnd={[Function]}
|
|
9
|
+
onResponderGrant={[Function]}
|
|
10
|
+
onResponderMove={[Function]}
|
|
11
|
+
onResponderReject={[Function]}
|
|
12
|
+
onResponderRelease={[Function]}
|
|
13
|
+
onResponderStart={[Function]}
|
|
14
|
+
onResponderTerminate={[Function]}
|
|
15
|
+
onResponderTerminationRequest={[Function]}
|
|
16
|
+
onStartShouldSetResponder={[Function]}
|
|
17
|
+
onStartShouldSetResponderCapture={[Function]}
|
|
18
|
+
style={
|
|
19
|
+
Array [
|
|
20
|
+
Object {
|
|
21
|
+
"flexDirection": "row",
|
|
22
|
+
},
|
|
23
|
+
Array [
|
|
24
|
+
Object {
|
|
25
|
+
"flexDirection": "row",
|
|
26
|
+
},
|
|
27
|
+
undefined,
|
|
28
|
+
],
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
>
|
|
32
|
+
<View
|
|
33
|
+
collapsable={false}
|
|
34
|
+
style={
|
|
35
|
+
Object {
|
|
36
|
+
"marginLeft": -0,
|
|
37
|
+
"transform": Array [
|
|
38
|
+
Object {
|
|
39
|
+
"translateX": 0.5,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
"width": 0,
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
>
|
|
46
|
+
<View
|
|
47
|
+
style={
|
|
48
|
+
Array [
|
|
49
|
+
Object {
|
|
50
|
+
"alignItems": "flex-end",
|
|
51
|
+
"flex": 1,
|
|
52
|
+
"justifyContent": "center",
|
|
53
|
+
},
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
>
|
|
57
|
+
<Text
|
|
58
|
+
style={
|
|
59
|
+
Array [
|
|
60
|
+
Object {
|
|
61
|
+
"color": "#001f23",
|
|
62
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
63
|
+
"fontSize": 14,
|
|
64
|
+
"letterSpacing": 0.42,
|
|
65
|
+
"lineHeight": 22,
|
|
66
|
+
},
|
|
67
|
+
undefined,
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
themeFontSize="medium"
|
|
71
|
+
themeFontWeight="regular"
|
|
72
|
+
themeIntent="body"
|
|
73
|
+
themeTypeface="neutral"
|
|
74
|
+
>
|
|
75
|
+
Archive
|
|
76
|
+
</Text>
|
|
77
|
+
</View>
|
|
78
|
+
</View>
|
|
79
|
+
<View
|
|
80
|
+
collapsable={false}
|
|
81
|
+
style={
|
|
82
|
+
Object {
|
|
83
|
+
"flex": 1,
|
|
84
|
+
"transform": Array [
|
|
85
|
+
Object {
|
|
86
|
+
"translateX": 0.5,
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
>
|
|
92
|
+
<Text
|
|
93
|
+
style={
|
|
94
|
+
Array [
|
|
95
|
+
Object {
|
|
96
|
+
"color": "#001f23",
|
|
97
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
98
|
+
"fontSize": 14,
|
|
99
|
+
"letterSpacing": 0.42,
|
|
100
|
+
"lineHeight": 22,
|
|
101
|
+
},
|
|
102
|
+
undefined,
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
themeFontSize="medium"
|
|
106
|
+
themeFontWeight="regular"
|
|
107
|
+
themeIntent="body"
|
|
108
|
+
themeTypeface="neutral"
|
|
109
|
+
>
|
|
110
|
+
Swipeable Item
|
|
111
|
+
</Text>
|
|
112
|
+
</View>
|
|
113
|
+
<View
|
|
114
|
+
collapsable={false}
|
|
115
|
+
style={
|
|
116
|
+
Object {
|
|
117
|
+
"marginRight": -0,
|
|
118
|
+
"transform": Array [
|
|
119
|
+
Object {
|
|
120
|
+
"translateX": 0.5,
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
"width": 0,
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
>
|
|
127
|
+
<View
|
|
128
|
+
style={
|
|
129
|
+
Array [
|
|
130
|
+
Object {
|
|
131
|
+
"alignItems": "flex-start",
|
|
132
|
+
"flex": 1,
|
|
133
|
+
"justifyContent": "center",
|
|
134
|
+
},
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
>
|
|
138
|
+
<Text
|
|
139
|
+
style={
|
|
140
|
+
Array [
|
|
141
|
+
Object {
|
|
142
|
+
"color": "#001f23",
|
|
143
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
144
|
+
"fontSize": 14,
|
|
145
|
+
"letterSpacing": 0.42,
|
|
146
|
+
"lineHeight": 22,
|
|
147
|
+
},
|
|
148
|
+
undefined,
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
themeFontSize="medium"
|
|
152
|
+
themeFontWeight="regular"
|
|
153
|
+
themeIntent="body"
|
|
154
|
+
themeTypeface="neutral"
|
|
155
|
+
>
|
|
156
|
+
Approve
|
|
157
|
+
</Text>
|
|
158
|
+
</View>
|
|
159
|
+
</View>
|
|
160
|
+
</View>
|
|
161
|
+
`;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
4
|
+
import Typography from '../../Typography';
|
|
5
|
+
import SwipeableV2 from '..';
|
|
6
|
+
|
|
7
|
+
describe('Swipeable', () => {
|
|
8
|
+
it('renders correctly', () => {
|
|
9
|
+
const { toJSON, getByText } = renderWithTheme(
|
|
10
|
+
<SwipeableV2
|
|
11
|
+
leftContent={
|
|
12
|
+
<View
|
|
13
|
+
style={[
|
|
14
|
+
{
|
|
15
|
+
flex: 1,
|
|
16
|
+
alignItems: 'flex-end',
|
|
17
|
+
justifyContent: 'center',
|
|
18
|
+
},
|
|
19
|
+
]}
|
|
20
|
+
>
|
|
21
|
+
<Typography.Text>Archive</Typography.Text>
|
|
22
|
+
</View>
|
|
23
|
+
}
|
|
24
|
+
rightContent={
|
|
25
|
+
<View
|
|
26
|
+
style={[
|
|
27
|
+
{
|
|
28
|
+
flex: 1,
|
|
29
|
+
alignItems: 'flex-start',
|
|
30
|
+
justifyContent: 'center',
|
|
31
|
+
},
|
|
32
|
+
]}
|
|
33
|
+
>
|
|
34
|
+
<Typography.Text>Approve</Typography.Text>
|
|
35
|
+
</View>
|
|
36
|
+
}
|
|
37
|
+
rightActionsWidth={168}
|
|
38
|
+
>
|
|
39
|
+
<Typography.Text>Swipeable Item</Typography.Text>
|
|
40
|
+
</SwipeableV2>
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
expect(getByText('Swipeable Item')).toBeDefined();
|
|
44
|
+
expect(getByText('Archive')).toBeDefined();
|
|
45
|
+
expect(getByText('Approve')).toBeDefined();
|
|
46
|
+
expect(toJSON()).toMatchSnapshot();
|
|
47
|
+
});
|
|
48
|
+
});
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Animated,
|
|
4
|
+
Easing,
|
|
5
|
+
GestureResponderEvent,
|
|
6
|
+
PanResponder,
|
|
7
|
+
PanResponderGestureState,
|
|
8
|
+
StyleProp,
|
|
9
|
+
StyleSheet,
|
|
10
|
+
ViewStyle,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import { noop } from '../../utils/functions';
|
|
13
|
+
import { scale } from '../../utils/scale';
|
|
14
|
+
import { StyledContent, StyledWrapper } from './StyledSwipeable';
|
|
15
|
+
|
|
16
|
+
const swipeStartMinDistance = 15;
|
|
17
|
+
|
|
18
|
+
export type SwipeableV2Props = {
|
|
19
|
+
/**
|
|
20
|
+
* Content panel that is going to be revealed from the left side when user swipes right.
|
|
21
|
+
*/
|
|
22
|
+
leftContent?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Content panel that is going to be revealed from the right side when user swipes left.
|
|
25
|
+
*/
|
|
26
|
+
rightContent?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* If the user swipe a distance greater than this value, the callback onSwipeRightEnd is called.
|
|
29
|
+
*/
|
|
30
|
+
leftActionsWidth?: number;
|
|
31
|
+
/**
|
|
32
|
+
* If the user swipe a distance greater than this value, the callback onSwipeLeftEnd is called.
|
|
33
|
+
*/
|
|
34
|
+
rightActionsWidth?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Callback when start swiping to left.
|
|
37
|
+
*/
|
|
38
|
+
onSwipeLeftStart?: (
|
|
39
|
+
event: GestureResponderEvent,
|
|
40
|
+
gestureState: PanResponderGestureState
|
|
41
|
+
) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Callback when end swiping to left.
|
|
44
|
+
*/
|
|
45
|
+
onSwipeLeftEnd?: (
|
|
46
|
+
event: GestureResponderEvent,
|
|
47
|
+
gestureState: PanResponderGestureState
|
|
48
|
+
) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback when start swiping to right.
|
|
51
|
+
*/
|
|
52
|
+
onSwipeRightStart?: (
|
|
53
|
+
event: GestureResponderEvent,
|
|
54
|
+
gestureState: PanResponderGestureState
|
|
55
|
+
) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Callback when end swiping to right.
|
|
58
|
+
*/
|
|
59
|
+
onSwipeRightEnd?: (
|
|
60
|
+
event: GestureResponderEvent,
|
|
61
|
+
gestureState: PanResponderGestureState
|
|
62
|
+
) => void;
|
|
63
|
+
/**
|
|
64
|
+
* additional styles
|
|
65
|
+
*/
|
|
66
|
+
style?: StyleProp<ViewStyle>;
|
|
67
|
+
/**
|
|
68
|
+
* React node that is swipeable.
|
|
69
|
+
*/
|
|
70
|
+
children: React.ReactNode;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
type PropsWithDefaultValue = Required<
|
|
74
|
+
Omit<SwipeableV2Props, 'leftContent' | 'rightContent' | 'style'>
|
|
75
|
+
> &
|
|
76
|
+
Pick<SwipeableV2Props, 'leftContent' | 'rightContent' | 'style'>;
|
|
77
|
+
|
|
78
|
+
type ContextValues = PropsWithDefaultValue & {
|
|
79
|
+
canSwipeLeft: boolean;
|
|
80
|
+
canSwipeRight: boolean;
|
|
81
|
+
unmountedRef: React.MutableRefObject<boolean>;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
type State = {
|
|
85
|
+
pan: Animated.ValueXY;
|
|
86
|
+
lastOffset: { x: number; y: number };
|
|
87
|
+
leftActionActivated: boolean;
|
|
88
|
+
rightActionActivated: boolean;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const ReleaseAnimationConfig = {
|
|
92
|
+
toValue: { x: 0, y: 0 },
|
|
93
|
+
duration: 100,
|
|
94
|
+
easing: Easing.elastic(0.5),
|
|
95
|
+
useNativeDriver: true,
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const animationToNewState = (pan: Animated.ValueXY) => {
|
|
99
|
+
const animationConfig = ReleaseAnimationConfig;
|
|
100
|
+
|
|
101
|
+
pan.flattenOffset();
|
|
102
|
+
|
|
103
|
+
return Animated.timing(pan, animationConfig);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const hanleOnPanResponderEnd = (
|
|
107
|
+
state: State,
|
|
108
|
+
contextValues: ContextValues,
|
|
109
|
+
event: GestureResponderEvent,
|
|
110
|
+
gestureState: PanResponderGestureState
|
|
111
|
+
) => {
|
|
112
|
+
const { unmountedRef, onSwipeLeftEnd, onSwipeRightEnd } = contextValues;
|
|
113
|
+
const { leftActionActivated, rightActionActivated, pan } = state;
|
|
114
|
+
const animationConfig = ReleaseAnimationConfig;
|
|
115
|
+
|
|
116
|
+
animationToNewState(pan).start(() => {
|
|
117
|
+
if (unmountedRef.current) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (leftActionActivated && onSwipeRightEnd) {
|
|
122
|
+
onSwipeRightEnd(event, gestureState);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (rightActionActivated && onSwipeLeftEnd) {
|
|
126
|
+
onSwipeLeftEnd(event, gestureState);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
...state,
|
|
132
|
+
lastOffset: {
|
|
133
|
+
x: animationConfig.toValue.x,
|
|
134
|
+
y: animationConfig.toValue.y,
|
|
135
|
+
},
|
|
136
|
+
leftActionActivated: false,
|
|
137
|
+
rightActionActivated: false,
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const hanleOnPanResponderMove = (
|
|
142
|
+
state: State,
|
|
143
|
+
contextValues: ContextValues,
|
|
144
|
+
event: GestureResponderEvent,
|
|
145
|
+
gestureState: PanResponderGestureState
|
|
146
|
+
) => {
|
|
147
|
+
const {
|
|
148
|
+
leftActionsWidth,
|
|
149
|
+
rightActionsWidth,
|
|
150
|
+
onSwipeLeftStart,
|
|
151
|
+
onSwipeRightStart,
|
|
152
|
+
canSwipeRight,
|
|
153
|
+
canSwipeLeft,
|
|
154
|
+
} = contextValues;
|
|
155
|
+
const { lastOffset, leftActionActivated, rightActionActivated } = state;
|
|
156
|
+
|
|
157
|
+
const { dx } = gestureState;
|
|
158
|
+
const x = dx + lastOffset.x;
|
|
159
|
+
let nextLeftActionActivated = leftActionActivated;
|
|
160
|
+
let nextRightActionActivated = rightActionActivated;
|
|
161
|
+
|
|
162
|
+
Animated.event(
|
|
163
|
+
[
|
|
164
|
+
null,
|
|
165
|
+
{
|
|
166
|
+
dx: state.pan.x,
|
|
167
|
+
dy: state.pan.y,
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
{ useNativeDriver: false }
|
|
171
|
+
)(event, gestureState);
|
|
172
|
+
|
|
173
|
+
if (!leftActionActivated && canSwipeRight && x >= leftActionsWidth) {
|
|
174
|
+
nextLeftActionActivated = true;
|
|
175
|
+
onSwipeRightStart(event, gestureState);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (leftActionActivated && canSwipeRight && x < leftActionsWidth) {
|
|
179
|
+
nextLeftActionActivated = false;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (!rightActionActivated && canSwipeLeft && x <= -rightActionsWidth) {
|
|
183
|
+
nextRightActionActivated = true;
|
|
184
|
+
onSwipeLeftStart(event, gestureState);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (rightActionActivated && canSwipeLeft && x > -rightActionsWidth) {
|
|
188
|
+
nextRightActionActivated = false;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const needsUpdate =
|
|
192
|
+
nextLeftActionActivated !== leftActionActivated ||
|
|
193
|
+
nextRightActionActivated !== rightActionActivated;
|
|
194
|
+
|
|
195
|
+
if (needsUpdate) {
|
|
196
|
+
return {
|
|
197
|
+
...state,
|
|
198
|
+
leftActionActivated: nextLeftActionActivated,
|
|
199
|
+
rightActionActivated: nextRightActionActivated,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
return state;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
const SwipeableV2 = ({
|
|
206
|
+
children,
|
|
207
|
+
leftContent,
|
|
208
|
+
rightContent,
|
|
209
|
+
style,
|
|
210
|
+
leftActionsWidth = scale(200),
|
|
211
|
+
onSwipeLeftStart = noop,
|
|
212
|
+
onSwipeLeftEnd = noop,
|
|
213
|
+
rightActionsWidth = scale(200),
|
|
214
|
+
onSwipeRightStart = noop,
|
|
215
|
+
onSwipeRightEnd = noop,
|
|
216
|
+
...rest
|
|
217
|
+
}: SwipeableV2Props) => {
|
|
218
|
+
const propsWithDefaultValue: PropsWithDefaultValue = {
|
|
219
|
+
children,
|
|
220
|
+
leftContent,
|
|
221
|
+
rightContent,
|
|
222
|
+
style,
|
|
223
|
+
leftActionsWidth,
|
|
224
|
+
onSwipeLeftStart,
|
|
225
|
+
onSwipeLeftEnd,
|
|
226
|
+
rightActionsWidth,
|
|
227
|
+
onSwipeRightStart,
|
|
228
|
+
onSwipeRightEnd,
|
|
229
|
+
...rest,
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
const unmountedRef = React.useRef(false);
|
|
233
|
+
useEffect(() => {
|
|
234
|
+
return () => {
|
|
235
|
+
unmountedRef.current = true;
|
|
236
|
+
};
|
|
237
|
+
}, []);
|
|
238
|
+
|
|
239
|
+
const [width, setWidth] = React.useState(0);
|
|
240
|
+
const canSwipeRight = !!leftContent;
|
|
241
|
+
|
|
242
|
+
const canSwipeLeft = !!rightContent;
|
|
243
|
+
|
|
244
|
+
const propsRef = React.useRef<ContextValues>(
|
|
245
|
+
undefined as unknown as ContextValues
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
const [state, setState] = React.useState<State>({
|
|
249
|
+
pan: new Animated.ValueXY({
|
|
250
|
+
x: 0,
|
|
251
|
+
y: 0,
|
|
252
|
+
}),
|
|
253
|
+
lastOffset: { x: 0, y: 0 },
|
|
254
|
+
leftActionActivated: false,
|
|
255
|
+
rightActionActivated: false,
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
propsRef.current = {
|
|
259
|
+
...propsWithDefaultValue,
|
|
260
|
+
canSwipeLeft,
|
|
261
|
+
canSwipeRight,
|
|
262
|
+
unmountedRef,
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
const transform = [
|
|
266
|
+
{
|
|
267
|
+
translateX: state.pan.x.interpolate({
|
|
268
|
+
inputRange: [canSwipeLeft ? -width : 0, canSwipeRight ? width : 0],
|
|
269
|
+
outputRange: [
|
|
270
|
+
canSwipeLeft ? -width + StyleSheet.hairlineWidth : 0,
|
|
271
|
+
canSwipeRight ? width - StyleSheet.hairlineWidth : 0,
|
|
272
|
+
],
|
|
273
|
+
extrapolate: 'clamp',
|
|
274
|
+
}),
|
|
275
|
+
},
|
|
276
|
+
];
|
|
277
|
+
|
|
278
|
+
const panResponder = React.useRef(
|
|
279
|
+
PanResponder.create({
|
|
280
|
+
onMoveShouldSetPanResponder: (
|
|
281
|
+
_: GestureResponderEvent,
|
|
282
|
+
gestureState: PanResponderGestureState
|
|
283
|
+
) => {
|
|
284
|
+
return Math.abs(gestureState.dx) > swipeStartMinDistance;
|
|
285
|
+
},
|
|
286
|
+
onMoveShouldSetPanResponderCapture: (
|
|
287
|
+
_: GestureResponderEvent,
|
|
288
|
+
gestureState: PanResponderGestureState
|
|
289
|
+
) => {
|
|
290
|
+
return Math.abs(gestureState.dx) > swipeStartMinDistance;
|
|
291
|
+
},
|
|
292
|
+
onPanResponderGrant: () => {
|
|
293
|
+
setState((prevState) => {
|
|
294
|
+
prevState.pan.setOffset(prevState.lastOffset);
|
|
295
|
+
return prevState;
|
|
296
|
+
});
|
|
297
|
+
},
|
|
298
|
+
onPanResponderMove: (event, gestureState) => {
|
|
299
|
+
setState((prevState) => {
|
|
300
|
+
return hanleOnPanResponderMove(
|
|
301
|
+
prevState,
|
|
302
|
+
propsRef.current,
|
|
303
|
+
event,
|
|
304
|
+
gestureState
|
|
305
|
+
);
|
|
306
|
+
});
|
|
307
|
+
},
|
|
308
|
+
|
|
309
|
+
onPanResponderRelease: (event, gestureState) => {
|
|
310
|
+
setState((prevState) => {
|
|
311
|
+
return hanleOnPanResponderEnd(
|
|
312
|
+
prevState,
|
|
313
|
+
propsRef.current,
|
|
314
|
+
event,
|
|
315
|
+
gestureState
|
|
316
|
+
);
|
|
317
|
+
});
|
|
318
|
+
},
|
|
319
|
+
onPanResponderTerminationRequest: () => {
|
|
320
|
+
return false;
|
|
321
|
+
},
|
|
322
|
+
onPanResponderTerminate: (event, gestureState) => {
|
|
323
|
+
setState((prevState) => {
|
|
324
|
+
return hanleOnPanResponderEnd(
|
|
325
|
+
prevState,
|
|
326
|
+
propsRef.current,
|
|
327
|
+
event,
|
|
328
|
+
gestureState
|
|
329
|
+
);
|
|
330
|
+
});
|
|
331
|
+
},
|
|
332
|
+
})
|
|
333
|
+
).current;
|
|
334
|
+
|
|
335
|
+
return (
|
|
336
|
+
<StyledWrapper
|
|
337
|
+
onLayout={(event) => {
|
|
338
|
+
setWidth(event.nativeEvent.layout.width);
|
|
339
|
+
}}
|
|
340
|
+
style={[
|
|
341
|
+
{
|
|
342
|
+
flexDirection: 'row',
|
|
343
|
+
},
|
|
344
|
+
style,
|
|
345
|
+
]}
|
|
346
|
+
{...panResponder.panHandlers}
|
|
347
|
+
{...rest}
|
|
348
|
+
>
|
|
349
|
+
{canSwipeRight && (
|
|
350
|
+
<Animated.View style={[{ transform, marginLeft: -width, width }]}>
|
|
351
|
+
{leftContent}
|
|
352
|
+
</Animated.View>
|
|
353
|
+
)}
|
|
354
|
+
<StyledContent style={{ transform }}>{children}</StyledContent>
|
|
355
|
+
{canSwipeLeft && (
|
|
356
|
+
<Animated.View style={[{ transform, marginRight: -width, width }]}>
|
|
357
|
+
{rightContent}
|
|
358
|
+
</Animated.View>
|
|
359
|
+
)}
|
|
360
|
+
</StyledWrapper>
|
|
361
|
+
);
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
export default SwipeableV2;
|
package/src/index.ts
CHANGED
|
@@ -39,6 +39,7 @@ import Progress from './components/Progress';
|
|
|
39
39
|
import Slider from './components/Slider';
|
|
40
40
|
import Spinner from './components/Spinner';
|
|
41
41
|
import Swipeable from './components/Swipeable';
|
|
42
|
+
import SwipeableV2 from './components/SwipeableV2';
|
|
42
43
|
import Radio from './components/Radio';
|
|
43
44
|
import SectionHeading from './components/SectionHeading';
|
|
44
45
|
import Select from './components/Select';
|
|
@@ -94,6 +95,7 @@ export {
|
|
|
94
95
|
Slider,
|
|
95
96
|
Spinner,
|
|
96
97
|
Swipeable,
|
|
98
|
+
SwipeableV2,
|
|
97
99
|
Radio,
|
|
98
100
|
SectionHeading,
|
|
99
101
|
Select,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const IconList: readonly ["activate", "add-emoji", "add-person", "adjustment", "alignment", "antenna", "archive", "assignment-warning", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "caret-down-small", "caret-down", "caret-left-small", "caret-left", "caret-right-small", "caret-right", "caret-up-small", "caret-up", "check-radio", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock-3", "clock", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "filter", "folder-user", "folder", "format-bold", "format-heading1", "format-heading2", "format-italic", "format-list-bulleted", "format-list-numbered", "format-underlined", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading-2", "loading", "location", "lock", "looks-one", "looks-two", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply-arrow", "reply", "reschedule", "rostering", "save", "schedule-send", "schedule", "search-person", "send", "speaker-active", "speaker", "star-award", "star-badge", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "wallet", "warning", "activate-outlined", "add-credit-card-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-downwards", "arrow-left", "arrow-leftwards", "arrow-right", "arrow-rightwards", "arrow-up", "arrow-upwards", "at-sign", "bell-active-outlined", "bell-outlined", "bell-slash-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-added-outlined", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "chat-bubble-outlined", "chat-unread-outlined", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "cup-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-card-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "explore-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-dollar-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "filter-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "hand-holding-user-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-active-outlined", "home-outlined", "id-card-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "live-help-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "near-me-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "qualification-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "search-secured-outlined", "send-outlined", "share-1", "share-2", "share-outlined", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-active-outlined", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-clock-outlined", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "today-outlined", "transfer", "trash-bin-outlined", "umbrela-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-gear-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined"];
|
|
1
|
+
declare const IconList: readonly ["activate", "add-emoji", "add-person", "adjustment", "alignment", "antenna", "archive", "assignment-warning", "bank", "bell", "billing", "bookmark-added", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "caret-down-small", "caret-down", "caret-left-small", "caret-left", "caret-right-small", "caret-right", "caret-up-small", "caret-up", "check-radio", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock-3", "clock", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "filter", "folder-user", "folder", "format-bold", "format-heading1", "format-heading2", "format-italic", "format-list-bulleted", "format-list-numbered", "format-underlined", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading-2", "loading", "location", "lock", "looks-one", "looks-two", "media-content", "menu", "money-notes", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply-arrow", "reply", "reschedule", "rostering", "save", "schedule-send", "schedule", "search-person", "send", "speaker-active", "speaker", "star-award", "star-badge", "star-circle", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "wallet", "warning", "activate-outlined", "add-credit-card-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-downwards", "arrow-left", "arrow-leftwards", "arrow-right", "arrow-rightwards", "arrow-up", "arrow-upwards", "article-outlined", "at-sign", "auto-graph-outlined", "bell-active-outlined", "bell-outlined", "bell-slash-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-added-outlined", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "chat-bubble-outlined", "chat-unread-outlined", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "cup-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-card-outlined", "dollar-coin-shine-outlined", "dollar-credit-card-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "explore-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-dollar-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-statutory-outlined", "file-verified-outlined", "filter-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "hand-holding-user-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-active-outlined", "home-outlined", "id-card-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "live-help-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "near-me-outlined", "node-outlined", "number-points", "number", "overview-outlined", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "qualification-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "search-secured-outlined", "send-outlined", "share-1", "share-2", "share-outlined", "show-chart-outlined", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-active-outlined", "speaker-outlined", "star-circle-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-clock-outlined", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "today-outlined", "transfer", "trash-bin-outlined", "umbrela-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-gear-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined"];
|
|
2
2
|
export default IconList;
|
|
@@ -29,6 +29,6 @@ export interface IconProps extends AccessibilityProps {
|
|
|
29
29
|
}
|
|
30
30
|
declare const Icon: {
|
|
31
31
|
({ icon, style, size, intent, testID, spin, accessibilityLabel, accessibilityHint, accessibilityRole, accessibilityState, accessibilityValue, accessibilityLiveRegion, accessibilityElementsHidden, accessible, accessibilityIgnoresInvertColors, accessibilityViewIsModal, accessibilityActions, }: IconProps): JSX.Element;
|
|
32
|
-
List: readonly ["activate", "add-emoji", "add-person", "adjustment", "alignment", "antenna", "archive", "assignment-warning", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "caret-down-small", "caret-down", "caret-left-small", "caret-left", "caret-right-small", "caret-right", "caret-up-small", "caret-up", "check-radio", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock-3", "clock", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "filter", "folder-user", "folder", "format-bold", "format-heading1", "format-heading2", "format-italic", "format-list-bulleted", "format-list-numbered", "format-underlined", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading-2", "loading", "location", "lock", "looks-one", "looks-two", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply-arrow", "reply", "reschedule", "rostering", "save", "schedule-send", "schedule", "search-person", "send", "speaker-active", "speaker", "star-award", "star-badge", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "wallet", "warning", "activate-outlined", "add-credit-card-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-downwards", "arrow-left", "arrow-leftwards", "arrow-right", "arrow-rightwards", "arrow-up", "arrow-upwards", "at-sign", "bell-active-outlined", "bell-outlined", "bell-slash-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-added-outlined", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "chat-bubble-outlined", "chat-unread-outlined", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "cup-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-card-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "explore-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-dollar-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "filter-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "hand-holding-user-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-active-outlined", "home-outlined", "id-card-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "live-help-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "near-me-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "qualification-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "search-secured-outlined", "send-outlined", "share-1", "share-2", "share-outlined", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-active-outlined", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-clock-outlined", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "today-outlined", "transfer", "trash-bin-outlined", "umbrela-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-gear-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined"];
|
|
32
|
+
List: readonly ["activate", "add-emoji", "add-person", "adjustment", "alignment", "antenna", "archive", "assignment-warning", "bank", "bell", "billing", "bookmark-added", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "caret-down-small", "caret-down", "caret-left-small", "caret-left", "caret-right-small", "caret-right", "caret-up-small", "caret-up", "check-radio", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock-3", "clock", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "filter", "folder-user", "folder", "format-bold", "format-heading1", "format-heading2", "format-italic", "format-list-bulleted", "format-list-numbered", "format-underlined", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading-2", "loading", "location", "lock", "looks-one", "looks-two", "media-content", "menu", "money-notes", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply-arrow", "reply", "reschedule", "rostering", "save", "schedule-send", "schedule", "search-person", "send", "speaker-active", "speaker", "star-award", "star-badge", "star-circle", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "wallet", "warning", "activate-outlined", "add-credit-card-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-downwards", "arrow-left", "arrow-leftwards", "arrow-right", "arrow-rightwards", "arrow-up", "arrow-upwards", "article-outlined", "at-sign", "auto-graph-outlined", "bell-active-outlined", "bell-outlined", "bell-slash-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-added-outlined", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "chat-bubble-outlined", "chat-unread-outlined", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "cup-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-card-outlined", "dollar-coin-shine-outlined", "dollar-credit-card-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "explore-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-dollar-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-statutory-outlined", "file-verified-outlined", "filter-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "hand-holding-user-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-active-outlined", "home-outlined", "id-card-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "live-help-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "near-me-outlined", "node-outlined", "number-points", "number", "overview-outlined", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "qualification-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "search-secured-outlined", "send-outlined", "share-1", "share-2", "share-outlined", "show-chart-outlined", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-active-outlined", "speaker-outlined", "star-circle-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-clock-outlined", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "today-outlined", "transfer", "trash-bin-outlined", "umbrela-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-gear-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined"];
|
|
33
33
|
};
|
|
34
34
|
export default Icon;
|