@adiraku/react-native-ui 0.1.14 → 0.1.16
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/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js +5 -1
- package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
- package/lib/commonjs/components/RadioInput/RadioInput.component.js +5 -1
- package/lib/commonjs/components/RadioInput/RadioInput.component.js.map +1 -1
- package/lib/commonjs/components/TextArea/TextArea.style.js +4 -5
- package/lib/commonjs/components/TextArea/TextArea.style.js.map +1 -1
- package/lib/commonjs/components/coachmark/coachmark.style.js +3 -3
- package/lib/commonjs/components/coachmark/coachmark.style.js.map +1 -1
- package/lib/commonjs/components/countdown/countdown.component.js +94 -0
- package/lib/commonjs/components/countdown/countdown.component.js.map +1 -0
- package/lib/commonjs/components/countdown/countdown.style.js +34 -0
- package/lib/commonjs/components/countdown/countdown.style.js.map +1 -0
- package/lib/commonjs/components/countdown/countdown.type.js +2 -0
- package/lib/commonjs/components/countdown/countdown.type.js.map +1 -0
- package/lib/commonjs/components/index.js +7 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/slider-indicator/slider-indicator.style.js +3 -3
- package/lib/commonjs/components/slider-indicator/slider-indicator.style.js.map +1 -1
- package/lib/commonjs/icons/actions/IconEmail.js +32 -0
- package/lib/commonjs/icons/actions/IconEmail.js.map +1 -0
- package/lib/commonjs/icons/actions/IconHamburger.js +34 -0
- package/lib/commonjs/icons/actions/IconHamburger.js.map +1 -0
- package/lib/commonjs/icons/actions/IconOther.js +37 -0
- package/lib/commonjs/icons/actions/IconOther.js.map +1 -0
- package/lib/commonjs/icons/actions/IconReload.js +32 -0
- package/lib/commonjs/icons/actions/IconReload.js.map +1 -0
- package/lib/commonjs/icons/actions/IconSeeHide.js +37 -0
- package/lib/commonjs/icons/actions/IconSeeHide.js.map +1 -0
- package/lib/commonjs/icons/actions/IconSeeShow.js +35 -0
- package/lib/commonjs/icons/actions/IconSeeShow.js.map +1 -0
- package/lib/commonjs/icons/actions/IconSorting.js +38 -0
- package/lib/commonjs/icons/actions/IconSorting.js.map +1 -0
- package/lib/commonjs/icons/index.js +63 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/icons/navigations/IconArrowDiagonal.js +41 -0
- package/lib/commonjs/icons/navigations/IconArrowDiagonal.js.map +1 -0
- package/lib/commonjs/icons/navigations/IconClose.js +39 -0
- package/lib/commonjs/icons/navigations/IconClose.js.map +1 -0
- package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js +5 -1
- package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
- package/lib/module/components/RadioInput/RadioInput.component.js +5 -1
- package/lib/module/components/RadioInput/RadioInput.component.js.map +1 -1
- package/lib/module/components/TextArea/TextArea.style.js +4 -5
- package/lib/module/components/TextArea/TextArea.style.js.map +1 -1
- package/lib/module/components/coachmark/coachmark.style.js +3 -3
- package/lib/module/components/coachmark/coachmark.style.js.map +1 -1
- package/lib/module/components/countdown/countdown.component.js +86 -0
- package/lib/module/components/countdown/countdown.component.js.map +1 -0
- package/lib/module/components/countdown/countdown.style.js +27 -0
- package/lib/module/components/countdown/countdown.style.js.map +1 -0
- package/lib/module/components/countdown/countdown.type.js +2 -0
- package/lib/module/components/countdown/countdown.type.js.map +1 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/slider-indicator/slider-indicator.style.js +4 -4
- package/lib/module/components/slider-indicator/slider-indicator.style.js.map +1 -1
- package/lib/module/icons/actions/IconEmail.js +23 -0
- package/lib/module/icons/actions/IconEmail.js.map +1 -0
- package/lib/module/icons/actions/IconHamburger.js +25 -0
- package/lib/module/icons/actions/IconHamburger.js.map +1 -0
- package/lib/module/icons/actions/IconOther.js +28 -0
- package/lib/module/icons/actions/IconOther.js.map +1 -0
- package/lib/module/icons/actions/IconReload.js +23 -0
- package/lib/module/icons/actions/IconReload.js.map +1 -0
- package/lib/module/icons/actions/IconSeeHide.js +28 -0
- package/lib/module/icons/actions/IconSeeHide.js.map +1 -0
- package/lib/module/icons/actions/IconSeeShow.js +26 -0
- package/lib/module/icons/actions/IconSeeShow.js.map +1 -0
- package/lib/module/icons/actions/IconSorting.js +29 -0
- package/lib/module/icons/actions/IconSorting.js.map +1 -0
- package/lib/module/icons/index.js +9 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/icons/navigations/IconArrowDiagonal.js +32 -0
- package/lib/module/icons/navigations/IconArrowDiagonal.js.map +1 -0
- package/lib/module/icons/navigations/IconClose.js +30 -0
- package/lib/module/icons/navigations/IconClose.js.map +1 -0
- package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts.map +1 -1
- package/lib/typescript/components/RadioInput/RadioInput.component.d.ts.map +1 -1
- package/lib/typescript/components/TextArea/TextArea.style.d.ts.map +1 -1
- package/lib/typescript/components/countdown/countdown.component.d.ts +5 -0
- package/lib/typescript/components/countdown/countdown.component.d.ts.map +1 -0
- package/lib/typescript/components/countdown/countdown.style.d.ts +10 -0
- package/lib/typescript/components/countdown/countdown.style.d.ts.map +1 -0
- package/lib/typescript/components/countdown/countdown.type.d.ts +7 -0
- package/lib/typescript/components/countdown/countdown.type.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/icons/actions/IconEmail.d.ts +4 -0
- package/lib/typescript/icons/actions/IconEmail.d.ts.map +1 -0
- package/lib/typescript/icons/actions/IconHamburger.d.ts +4 -0
- package/lib/typescript/icons/actions/IconHamburger.d.ts.map +1 -0
- package/lib/typescript/icons/actions/IconOther.d.ts +4 -0
- package/lib/typescript/icons/actions/IconOther.d.ts.map +1 -0
- package/lib/typescript/icons/actions/IconReload.d.ts +4 -0
- package/lib/typescript/icons/actions/IconReload.d.ts.map +1 -0
- package/lib/typescript/icons/actions/IconSeeHide.d.ts +4 -0
- package/lib/typescript/icons/actions/IconSeeHide.d.ts.map +1 -0
- package/lib/typescript/icons/actions/IconSeeShow.d.ts +4 -0
- package/lib/typescript/icons/actions/IconSeeShow.d.ts.map +1 -0
- package/lib/typescript/icons/actions/IconSorting.d.ts +4 -0
- package/lib/typescript/icons/actions/IconSorting.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +9 -0
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/icons/navigations/IconArrowDiagonal.d.ts +4 -0
- package/lib/typescript/icons/navigations/IconArrowDiagonal.d.ts.map +1 -0
- package/lib/typescript/icons/navigations/IconClose.d.ts +4 -0
- package/lib/typescript/icons/navigations/IconClose.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/CheckBoxInput/CheckBoxInput.component.tsx +6 -1
- package/src/components/RadioInput/RadioInput.component.tsx +10 -1
- package/src/components/TextArea/TextArea.style.tsx +1 -2
- package/src/components/coachmark/coachmark.style.tsx +1 -1
- package/src/components/countdown/countdown.component.tsx +98 -0
- package/src/components/countdown/countdown.style.tsx +42 -0
- package/src/components/countdown/countdown.type.ts +6 -0
- package/src/components/index.ts +1 -0
- package/src/components/slider-indicator/slider-indicator.style.tsx +2 -2
- package/src/icons/actions/IconEmail.tsx +30 -0
- package/src/icons/actions/IconHamburger.tsx +32 -0
- package/src/icons/actions/IconOther.tsx +36 -0
- package/src/icons/actions/IconReload.tsx +30 -0
- package/src/icons/actions/IconSeeHide.tsx +31 -0
- package/src/icons/actions/IconSeeShow.tsx +30 -0
- package/src/icons/actions/IconSorting.tsx +38 -0
- package/src/icons/index.ts +9 -0
- package/src/icons/navigations/IconArrowDiagonal.tsx +39 -0
- package/src/icons/navigations/IconClose.tsx +38 -0
|
@@ -2,10 +2,12 @@ export { IconArrowLeft } from './navigations/IconArrowLeft';
|
|
|
2
2
|
export { IconArrowRight } from './navigations/IconArrowRight';
|
|
3
3
|
export { IconArrowUp } from './navigations/IconArrowUp';
|
|
4
4
|
export { IconArrowDown } from './navigations/IconArrowDown';
|
|
5
|
+
export { IconArrowDiagonal } from './navigations/IconArrowDiagonal';
|
|
5
6
|
export { IconChevronDown } from './navigations/IconChevronDown';
|
|
6
7
|
export { IconChevronUp } from './navigations/IconChevronUp';
|
|
7
8
|
export { IconChevronRight } from './navigations/IconChevronRight';
|
|
8
9
|
export { IconChevronLeft } from './navigations/IconChevronLeft';
|
|
10
|
+
export { IconClose } from './navigations/IconClose';
|
|
9
11
|
export { IconAddMinus } from './actions/IconAddMinus';
|
|
10
12
|
export { IconAddPlus } from './actions/IconAddPlus';
|
|
11
13
|
export { IconAddRemove } from './actions/IconAddRemove';
|
|
@@ -36,6 +38,13 @@ export { IconEdit } from './actions/IconEdit';
|
|
|
36
38
|
export { IconFilter } from './actions/IconFilter';
|
|
37
39
|
export { IconCustomerService } from './actions/IconCustomerService';
|
|
38
40
|
export { IconAttach } from './actions/IconAttach';
|
|
41
|
+
export { IconSeeShow } from './actions/IconSeeShow';
|
|
42
|
+
export { IconSeeHide } from './actions/IconSeeHide';
|
|
43
|
+
export { IconReload } from './actions/IconReload';
|
|
44
|
+
export { IconOther } from './actions/IconOther';
|
|
45
|
+
export { IconEmail } from './actions/IconEmail';
|
|
46
|
+
export { IconSorting } from './actions/IconSorting';
|
|
47
|
+
export { IconHamburger } from './actions/IconHamburger';
|
|
39
48
|
export { IconMyLocation } from './misc/IconMyLocation';
|
|
40
49
|
export { IconHistory } from './misc/IconHistory';
|
|
41
50
|
export { IconGroup } from './misc/IconGroup';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B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;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconArrowDiagonal.d.ts","sourceRoot":"","sources":["../../../../src/icons/navigations/IconArrowDiagonal.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,iBAAiB,UAAW,SAAS,gBAgCjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconClose.d.ts","sourceRoot":"","sources":["../../../../src/icons/navigations/IconClose.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,SAAS,UAAW,SAAS,gBA+BzC,CAAC"}
|
package/package.json
CHANGED
|
@@ -132,6 +132,11 @@ const CheckBoxInput: React.FunctionComponent<CheckboxInputProps> = (props) => {
|
|
|
132
132
|
bottomSheetref.current?.close();
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
+
const handleOnBottomSheetDismiss = () => {
|
|
136
|
+
setSelectedValue(value);
|
|
137
|
+
onInputDismiss();
|
|
138
|
+
};
|
|
139
|
+
|
|
135
140
|
const openBottomSheet = () => {
|
|
136
141
|
if (!disabled && editable) {
|
|
137
142
|
bottomSheetref.current?.open();
|
|
@@ -177,7 +182,7 @@ const CheckBoxInput: React.FunctionComponent<CheckboxInputProps> = (props) => {
|
|
|
177
182
|
</TouchableWithoutFeedback>
|
|
178
183
|
<BottomSheet
|
|
179
184
|
ref={bottomSheetref}
|
|
180
|
-
onDismiss={
|
|
185
|
+
onDismiss={handleOnBottomSheetDismiss}
|
|
181
186
|
{...bottomSheetOpt}
|
|
182
187
|
>
|
|
183
188
|
<FlatList
|
|
@@ -102,6 +102,11 @@ const RadioInput: React.FunctionComponent<RadioInputProps> = (props) => {
|
|
|
102
102
|
ref.current?.close();
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
+
const handleOnBottomSheetDismiss = () => {
|
|
106
|
+
onInputDismiss();
|
|
107
|
+
setSelectedValue(value);
|
|
108
|
+
};
|
|
109
|
+
|
|
105
110
|
const openBottomSheet = () => {
|
|
106
111
|
if (!disabled && editable) {
|
|
107
112
|
ref.current?.open();
|
|
@@ -145,7 +150,11 @@ const RadioInput: React.FunctionComponent<RadioInputProps> = (props) => {
|
|
|
145
150
|
) : null}
|
|
146
151
|
</View>
|
|
147
152
|
</TouchableWithoutFeedback>
|
|
148
|
-
<BottomSheet
|
|
153
|
+
<BottomSheet
|
|
154
|
+
onDismiss={handleOnBottomSheetDismiss}
|
|
155
|
+
ref={ref}
|
|
156
|
+
{...bottomSheetOpt}
|
|
157
|
+
>
|
|
149
158
|
<FlatList
|
|
150
159
|
data={data}
|
|
151
160
|
renderItem={(item) => (
|
|
@@ -30,7 +30,6 @@ export const getStyle = (props: TextAreaProps, isFocused: boolean) => {
|
|
|
30
30
|
|
|
31
31
|
computedStyle.fieldContainer = {
|
|
32
32
|
width: '100%',
|
|
33
|
-
gap: Spacing[8],
|
|
34
33
|
};
|
|
35
34
|
|
|
36
35
|
computedStyle.label = {
|
|
@@ -43,6 +42,7 @@ export const getStyle = (props: TextAreaProps, isFocused: boolean) => {
|
|
|
43
42
|
borderColor: stateColor.border,
|
|
44
43
|
padding: Spacing[12],
|
|
45
44
|
backgroundColor: editable ? Palettes.white[50] : Palettes.grey[50],
|
|
45
|
+
marginVertical: Spacing[8],
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
computedStyle.TextInput = {
|
|
@@ -54,7 +54,6 @@ export const getStyle = (props: TextAreaProps, isFocused: boolean) => {
|
|
|
54
54
|
lineHeight: 21,
|
|
55
55
|
fontFamily: 'Montserrat-Regular',
|
|
56
56
|
color: Palettes.black[900],
|
|
57
|
-
verticalAlign: 'top',
|
|
58
57
|
};
|
|
59
58
|
|
|
60
59
|
computedStyle.counter = {
|
|
@@ -50,11 +50,11 @@ export const getStyle = (props: CoachmarkProps) => {
|
|
|
50
50
|
|
|
51
51
|
computedStyle.headerContainer = {
|
|
52
52
|
flexDirection: 'row',
|
|
53
|
-
gap: Spacing[16],
|
|
54
53
|
};
|
|
55
54
|
|
|
56
55
|
computedStyle.title = {
|
|
57
56
|
flex: 1,
|
|
57
|
+
marginRight: Spacing[16],
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
computedStyle.arrowPointer = {
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { Typography } from '../typography/typography.component';
|
|
4
|
+
|
|
5
|
+
import type { CountdownProps } from './countdown.type';
|
|
6
|
+
|
|
7
|
+
import { getStyle } from './countdown.style';
|
|
8
|
+
|
|
9
|
+
const Countdown: React.FunctionComponent<CountdownProps> = (props) => {
|
|
10
|
+
const { targetDateTime } = props;
|
|
11
|
+
|
|
12
|
+
const computedStyle = getStyle();
|
|
13
|
+
|
|
14
|
+
const [timeLeft, setTimeLeft] = React.useState(
|
|
15
|
+
calculateTimeRemaining(targetDateTime)
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
React.useEffect(() => {
|
|
19
|
+
const timer = setInterval(() => {
|
|
20
|
+
setTimeLeft(calculateTimeRemaining(targetDateTime));
|
|
21
|
+
}, 1000);
|
|
22
|
+
|
|
23
|
+
return () => clearInterval(timer);
|
|
24
|
+
}, []);
|
|
25
|
+
|
|
26
|
+
const formatTime = (time: number) => {
|
|
27
|
+
if (time <= 0) {
|
|
28
|
+
return {
|
|
29
|
+
days: `0 hari`,
|
|
30
|
+
hours: appendZero(0),
|
|
31
|
+
minutes: appendZero(0),
|
|
32
|
+
seconds: appendZero(0),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const days = Math.floor(time / (1000 * 60 * 60 * 24));
|
|
37
|
+
const hours = appendZero(Math.floor((time / (1000 * 60 * 60)) % 24));
|
|
38
|
+
const minutes = appendZero(Math.floor((time / 1000 / 60) % 60));
|
|
39
|
+
const seconds = appendZero(Math.floor((time / 1000) % 60));
|
|
40
|
+
|
|
41
|
+
return { days: `${days} hari`, hours, minutes, seconds };
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<View style={[computedStyle.container]}>
|
|
46
|
+
<View style={[computedStyle.textContainer]}>
|
|
47
|
+
<Typography variant="overline" style={[computedStyle.textLabel]}>
|
|
48
|
+
{formatTime(timeLeft).days}
|
|
49
|
+
</Typography>
|
|
50
|
+
</View>
|
|
51
|
+
|
|
52
|
+
<View style={[computedStyle.dividerContainer]}>
|
|
53
|
+
<Typography variant="overline">:</Typography>
|
|
54
|
+
</View>
|
|
55
|
+
|
|
56
|
+
<View style={[computedStyle.textContainer]}>
|
|
57
|
+
<Typography variant="overline" style={[computedStyle.textLabel]}>
|
|
58
|
+
{formatTime(timeLeft).hours}
|
|
59
|
+
</Typography>
|
|
60
|
+
</View>
|
|
61
|
+
<View style={[computedStyle.dividerContainer]}>
|
|
62
|
+
<Typography variant="overline">:</Typography>
|
|
63
|
+
</View>
|
|
64
|
+
<View style={[computedStyle.textContainer]}>
|
|
65
|
+
<Typography variant="overline" style={[computedStyle.textLabel]}>
|
|
66
|
+
{formatTime(timeLeft).minutes}
|
|
67
|
+
</Typography>
|
|
68
|
+
</View>
|
|
69
|
+
<View style={[computedStyle.dividerContainer]}>
|
|
70
|
+
<Typography variant="overline">:</Typography>
|
|
71
|
+
</View>
|
|
72
|
+
<View style={[computedStyle.textContainer]}>
|
|
73
|
+
<Typography variant="overline" style={[computedStyle.textLabel]}>
|
|
74
|
+
{formatTime(timeLeft).seconds}
|
|
75
|
+
</Typography>
|
|
76
|
+
</View>
|
|
77
|
+
</View>
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const calculateTimeRemaining = (
|
|
82
|
+
targetDateTime: CountdownProps['targetDateTime']
|
|
83
|
+
): number => {
|
|
84
|
+
const currentTime = new Date().getTime();
|
|
85
|
+
const targetTime = new Date(targetDateTime).getTime();
|
|
86
|
+
const difference = targetTime - currentTime;
|
|
87
|
+
return Math.max(0, difference);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const appendZero = (num: string | number) => {
|
|
91
|
+
if (Number(num) < 10) {
|
|
92
|
+
return `0${0}`;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return num;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export { Countdown };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import { Palettes, Radius, Spacing } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
6
|
+
|
|
7
|
+
interface ComputedStyleProps {
|
|
8
|
+
container?: ViewStyle;
|
|
9
|
+
textLabel?: TextStyle;
|
|
10
|
+
textContainer?: ViewStyle;
|
|
11
|
+
dividerContainer?: ViewStyle;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const getStyle = () => {
|
|
15
|
+
const computedStyle: ComputedStyleProps = {};
|
|
16
|
+
|
|
17
|
+
computedStyle.container = {
|
|
18
|
+
flexDirection: 'row',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
computedStyle.textLabel = {
|
|
22
|
+
color: Palettes.white[50],
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
computedStyle.textContainer = {
|
|
26
|
+
backgroundColor: Palettes.black[900],
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
borderRadius: Radius[4],
|
|
30
|
+
paddingHorizontal: Spacing[4],
|
|
31
|
+
minWidth: 22,
|
|
32
|
+
height: 18,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
computedStyle.dividerContainer = {
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
width: 8,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return StyleSheet.create(computedStyle);
|
|
42
|
+
};
|
package/src/components/index.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { Switch } from './switch/switch.component';
|
|
|
21
21
|
export { Dot } from './dot/dot.component';
|
|
22
22
|
export { InformationBox } from './information-box/information-box.component';
|
|
23
23
|
export { RoundedTab } from './rounded-tab/rounded-tab.component';
|
|
24
|
+
export { Countdown } from './countdown/countdown.component';
|
|
24
25
|
|
|
25
26
|
export type { ButtonProps } from './button/button.type';
|
|
26
27
|
export type { TextInputProps } from './TextInput/TextInput.type';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ViewStyle } from 'react-native';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
|
-
import { Palettes, Radius
|
|
3
|
+
import { Palettes, Radius } from '../../themes';
|
|
4
4
|
|
|
5
5
|
interface ComputedStyleProps {
|
|
6
6
|
container?: ViewStyle;
|
|
@@ -13,7 +13,6 @@ export const getStyle = () => {
|
|
|
13
13
|
|
|
14
14
|
computedStyle.container = {
|
|
15
15
|
flexDirection: 'row',
|
|
16
|
-
gap: Spacing[4],
|
|
17
16
|
};
|
|
18
17
|
|
|
19
18
|
computedStyle.sliderItem = {
|
|
@@ -21,6 +20,7 @@ export const getStyle = () => {
|
|
|
21
20
|
width: 4,
|
|
22
21
|
borderRadius: Radius.full,
|
|
23
22
|
backgroundColor: Palettes.grey[500],
|
|
23
|
+
marginHorizontal: 2,
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
computedStyle.activeSlider = {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
import { Palettes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { IconProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export const IconEmail = (props: IconProps) => {
|
|
8
|
+
const {
|
|
9
|
+
width = 24,
|
|
10
|
+
height = 24,
|
|
11
|
+
fill = Palettes.black[900],
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Svg
|
|
17
|
+
width={width}
|
|
18
|
+
height={height}
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<Path
|
|
25
|
+
d="M19 4H5C3.35 4 2 5.35 2 7v10c0 1.65 1.35 3 3 3h14c1.65 0 3-1.35 3-3V7c0-1.65-1.35-3-3-3zm-.44 2.01l-5.85 5.87c-.38.38-1.04.38-1.42 0L5.43 6.01h13.13zM20 17c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V7.4l5.88 5.89c.57.57 1.32.88 2.12.88s1.56-.31 2.12-.88L20 7.4V17z"
|
|
26
|
+
fill={fill}
|
|
27
|
+
/>
|
|
28
|
+
</Svg>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
import { Palettes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { IconProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export const IconHamburger = (props: IconProps) => {
|
|
8
|
+
const {
|
|
9
|
+
width = 24,
|
|
10
|
+
height = 24,
|
|
11
|
+
fill = Palettes.black[900],
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Svg
|
|
17
|
+
width={width}
|
|
18
|
+
height={height}
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<Path
|
|
25
|
+
fillRule="evenodd"
|
|
26
|
+
clipRule="evenodd"
|
|
27
|
+
d="M2 6.333c0-.46.373-.833.833-.833h18.334a.833.833 0 010 1.667H2.833A.833.833 0 012 6.333zM2 12c0-.46.373-.833.833-.833h18.334a.833.833 0 010 1.666H2.833A.833.833 0 012 12zM2 17.667c0-.46.373-.834.833-.834h18.334a.833.833 0 010 1.667H2.833A.833.833 0 012 17.667z"
|
|
28
|
+
fill={fill}
|
|
29
|
+
/>
|
|
30
|
+
</Svg>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
import { Palettes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { IconProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export const IconOther = (props: IconProps) => {
|
|
8
|
+
const {
|
|
9
|
+
width = 24,
|
|
10
|
+
height = 24,
|
|
11
|
+
fill = Palettes.black[900],
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Svg
|
|
17
|
+
width={width}
|
|
18
|
+
height={height}
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<Path
|
|
25
|
+
fillRule="evenodd"
|
|
26
|
+
clipRule="evenodd"
|
|
27
|
+
d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8-8-3.6-8-8z"
|
|
28
|
+
fill={fill}
|
|
29
|
+
/>
|
|
30
|
+
<Path
|
|
31
|
+
d="M12 13a1 1 0 100-2 1 1 0 000 2zM16 13a1 1 0 100-2 1 1 0 000 2zM8 13a1 1 0 100-2 1 1 0 000 2z"
|
|
32
|
+
fill={fill}
|
|
33
|
+
/>
|
|
34
|
+
</Svg>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
import { Palettes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { IconProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export const IconReload = (props: IconProps) => {
|
|
8
|
+
const {
|
|
9
|
+
width = 24,
|
|
10
|
+
height = 24,
|
|
11
|
+
fill = Palettes.black[900],
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Svg
|
|
17
|
+
width={width}
|
|
18
|
+
height={height}
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<Path
|
|
25
|
+
d="M14.18 8.37c.04.52.48.92 1 .92h.08l3.75-.31c.41-.03.76-.32.88-.71l1.08-3.6a1.003 1.003 0 00-1.92-.58l-.52 1.73A8.92 8.92 0 0012.01 3C7.04 2.99 3 7.03 3 11.99s4.04 9 9 9c3.73 0 7.12-2.34 8.43-5.83a1.01 1.01 0 00-.58-1.29c-.51-.19-1.09.07-1.29.58-1.02 2.71-3.65 4.54-6.55 4.54-3.86 0-7-3.14-7-7s3.14-7 7-7c1.93 0 3.72.78 5.02 2.14l-1.93.16c-.55.05-.96.53-.91 1.08h-.01z"
|
|
26
|
+
fill={fill}
|
|
27
|
+
/>
|
|
28
|
+
</Svg>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { G, Path } from 'react-native-svg';
|
|
3
|
+
import { Palettes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { IconProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export const IconSeeHide = (props: IconProps) => {
|
|
8
|
+
const {
|
|
9
|
+
width = 24,
|
|
10
|
+
height = 24,
|
|
11
|
+
fill = Palettes.black[900],
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Svg
|
|
17
|
+
width={width}
|
|
18
|
+
height={height}
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<G fill={fill}>
|
|
25
|
+
<Path d="M12 7.247c3.35 0 6.48 1.72 8.25 4.5-1.76 2.78-4.9 4.5-8.25 4.5-3.35 0-6.48-1.72-8.25-4.5 1.76-2.78 4.9-4.5 8.25-4.5zm0-1.5c-3.99 0-7.71 2.11-9.7 5.5l-.3.5.3.5c2.01 3.39 5.72 5.5 9.7 5.5 3.98 0 7.71-2.11 9.7-5.5l.3-.5-.3-.5c-2.01-3.39-5.71-5.5-9.7-5.5z" />
|
|
26
|
+
<Path d="M12 15.998a4.26 4.26 0 01-4.25-4.25A4.26 4.26 0 0112 7.498a4.26 4.26 0 014.25 4.25 4.26 4.26 0 01-4.25 4.25zm0-7c-1.52 0-2.75 1.23-2.75 2.75s1.23 2.75 2.75 2.75 2.75-1.23 2.75-2.75-1.23-2.75-2.75-2.75z" />
|
|
27
|
+
<Path d="M6 18.497c-.19 0-.38-.07-.53-.22a.754.754 0 010-1.06l12-12c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-12 12c-.15.15-.34.22-.53.22z" />
|
|
28
|
+
</G>
|
|
29
|
+
</Svg>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { G, Path } from 'react-native-svg';
|
|
3
|
+
import { Palettes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { IconProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export const IconSeeShow = (props: IconProps) => {
|
|
8
|
+
const {
|
|
9
|
+
width = 24,
|
|
10
|
+
height = 24,
|
|
11
|
+
fill = Palettes.black[900],
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Svg
|
|
17
|
+
width={width}
|
|
18
|
+
height={height}
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<G fill={fill}>
|
|
25
|
+
<Path d="M12 7.5c3.35 0 6.48 1.72 8.25 4.5-1.76 2.78-4.9 4.5-8.25 4.5-3.35 0-6.48-1.72-8.25-4.5C5.51 9.22 8.65 7.5 12 7.5zM12 6c-3.99 0-7.71 2.11-9.7 5.5L2 12l.3.5C4.31 15.89 8.02 18 12 18c3.98 0 7.71-2.11 9.7-5.5l.3-.5-.3-.5C19.69 8.11 15.99 6 12 6z" />
|
|
26
|
+
<Path d="M12 16.25A4.26 4.26 0 017.75 12 4.26 4.26 0 0112 7.75 4.26 4.26 0 0116.25 12 4.26 4.26 0 0112 16.25zm0-7c-1.52 0-2.75 1.23-2.75 2.75s1.23 2.75 2.75 2.75 2.75-1.23 2.75-2.75S13.52 9.25 12 9.25z" />
|
|
27
|
+
</G>
|
|
28
|
+
</Svg>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
import { Palettes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { IconProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export const IconSorting = (props: IconProps) => {
|
|
8
|
+
const {
|
|
9
|
+
width = 24,
|
|
10
|
+
height = 24,
|
|
11
|
+
fill = Palettes.black[900],
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Svg
|
|
17
|
+
width={width}
|
|
18
|
+
height={height}
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<Path
|
|
25
|
+
d="M8 21c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1s1 .4 1 1v16c0 .6-.4 1-1 1z"
|
|
26
|
+
fill={fill}
|
|
27
|
+
/>
|
|
28
|
+
<Path
|
|
29
|
+
d="M12 9c-.3 0-.5-.1-.7-.3L8 5.4 4.7 8.7c-.4.4-1 .4-1.4 0-.4-.4-.4-1 0-1.4l4-4c.4-.4 1-.4 1.4 0l4 4c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3zM16 21c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1s1 .4 1 1v16c0 .6-.4 1-1 1z"
|
|
30
|
+
fill={fill}
|
|
31
|
+
/>
|
|
32
|
+
<Path
|
|
33
|
+
d="M16 21c-.3 0-.5-.1-.7-.3l-4-4c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l3.3 3.3 3.3-3.3c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4l-4 4c-.2.2-.4.3-.7.3z"
|
|
34
|
+
fill={fill}
|
|
35
|
+
/>
|
|
36
|
+
</Svg>
|
|
37
|
+
);
|
|
38
|
+
};
|
package/src/icons/index.ts
CHANGED
|
@@ -2,10 +2,12 @@ export { IconArrowLeft } from './navigations/IconArrowLeft';
|
|
|
2
2
|
export { IconArrowRight } from './navigations/IconArrowRight';
|
|
3
3
|
export { IconArrowUp } from './navigations/IconArrowUp';
|
|
4
4
|
export { IconArrowDown } from './navigations/IconArrowDown';
|
|
5
|
+
export { IconArrowDiagonal } from './navigations/IconArrowDiagonal';
|
|
5
6
|
export { IconChevronDown } from './navigations/IconChevronDown';
|
|
6
7
|
export { IconChevronUp } from './navigations/IconChevronUp';
|
|
7
8
|
export { IconChevronRight } from './navigations/IconChevronRight';
|
|
8
9
|
export { IconChevronLeft } from './navigations/IconChevronLeft';
|
|
10
|
+
export { IconClose } from './navigations/IconClose';
|
|
9
11
|
|
|
10
12
|
export { IconAddMinus } from './actions/IconAddMinus';
|
|
11
13
|
export { IconAddPlus } from './actions/IconAddPlus';
|
|
@@ -37,6 +39,13 @@ export { IconEdit } from './actions/IconEdit';
|
|
|
37
39
|
export { IconFilter } from './actions/IconFilter';
|
|
38
40
|
export { IconCustomerService } from './actions/IconCustomerService';
|
|
39
41
|
export { IconAttach } from './actions/IconAttach';
|
|
42
|
+
export { IconSeeShow } from './actions/IconSeeShow';
|
|
43
|
+
export { IconSeeHide } from './actions/IconSeeHide';
|
|
44
|
+
export { IconReload } from './actions/IconReload';
|
|
45
|
+
export { IconOther } from './actions/IconOther';
|
|
46
|
+
export { IconEmail } from './actions/IconEmail';
|
|
47
|
+
export { IconSorting } from './actions/IconSorting';
|
|
48
|
+
export { IconHamburger } from './actions/IconHamburger';
|
|
40
49
|
|
|
41
50
|
export { IconMyLocation } from './misc/IconMyLocation';
|
|
42
51
|
export { IconHistory } from './misc/IconHistory';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { ClipPath, Defs, G, Path } from 'react-native-svg';
|
|
3
|
+
import { Palettes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
import type { IconProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export const IconArrowDiagonal = (props: IconProps) => {
|
|
8
|
+
const {
|
|
9
|
+
width = 24,
|
|
10
|
+
height = 24,
|
|
11
|
+
fill = Palettes.black[900],
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Svg
|
|
17
|
+
width={width}
|
|
18
|
+
height={height}
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
fill="none"
|
|
21
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<G clipPath="url(#clip0_12_2167)">
|
|
25
|
+
<Path
|
|
26
|
+
fillRule="evenodd"
|
|
27
|
+
clipRule="evenodd"
|
|
28
|
+
d="M17.364 16.95a1 1 0 102 0V5.636a1 1 0 00-1-1H7.05a1 1 0 000 2h8.9L4.93 17.657a1 1 0 101.414 1.414l11.02-11.02.001 8.899z"
|
|
29
|
+
fill={fill}
|
|
30
|
+
/>
|
|
31
|
+
</G>
|
|
32
|
+
<Defs>
|
|
33
|
+
<ClipPath id="clip0_12_2167">
|
|
34
|
+
<Path fill="#fff" d="M0 0H24V24H0z" />
|
|
35
|
+
</ClipPath>
|
|
36
|
+
</Defs>
|
|
37
|
+
</Svg>
|
|
38
|
+
);
|
|
39
|
+
};
|