@axelor/aos-mobile-ui 8.3.7 → 8.4.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.
Files changed (57) hide show
  1. package/README.md +2 -199
  2. package/lib/components/atoms/BootstrapIcon/BootstrapIcon.js +2 -2
  3. package/lib/components/atoms/BootstrapIcon/BootstrapIcon.js.map +1 -1
  4. package/lib/components/atoms/Icon/Icon.d.ts +1 -9
  5. package/lib/components/atoms/Icon/Icon.js +6 -25
  6. package/lib/components/atoms/Icon/Icon.js.map +1 -1
  7. package/lib/components/atoms/ProgressCircle/ProgressCircle.d.ts +12 -0
  8. package/lib/components/atoms/ProgressCircle/ProgressCircle.js +54 -0
  9. package/lib/components/atoms/ProgressCircle/ProgressCircle.js.map +1 -0
  10. package/lib/components/atoms/index.d.ts +2 -1
  11. package/lib/components/atoms/index.js +2 -1
  12. package/lib/components/atoms/index.js.map +1 -1
  13. package/lib/components/molecules/Button/Button.js +1 -1
  14. package/lib/components/molecules/Button/Button.js.map +1 -1
  15. package/lib/components/molecules/DropdownMenu/DropdownMenu.d.ts +3 -1
  16. package/lib/components/molecules/DropdownMenu/DropdownMenu.js +4 -7
  17. package/lib/components/molecules/DropdownMenu/DropdownMenu.js.map +1 -1
  18. package/lib/components/molecules/RightIconButton/RightIconButton.js +1 -1
  19. package/lib/components/molecules/Stepper/StepList.d.ts +8 -0
  20. package/lib/components/molecules/Stepper/StepList.js +80 -0
  21. package/lib/components/molecules/Stepper/StepList.js.map +1 -0
  22. package/lib/components/molecules/Stepper/Stepper.d.ts +11 -0
  23. package/lib/components/molecules/Stepper/Stepper.js +87 -0
  24. package/lib/components/molecules/Stepper/Stepper.js.map +1 -0
  25. package/lib/components/molecules/Stepper/index.d.ts +2 -0
  26. package/lib/components/molecules/Stepper/index.js +20 -0
  27. package/lib/components/molecules/Stepper/index.js.map +1 -0
  28. package/lib/components/molecules/Stepper/types.d.ts +10 -0
  29. package/lib/components/molecules/Stepper/types.js +25 -0
  30. package/lib/components/molecules/Stepper/types.js.map +1 -0
  31. package/lib/components/molecules/index.d.ts +1 -2
  32. package/lib/components/molecules/index.js +1 -2
  33. package/lib/components/molecules/index.js.map +1 -1
  34. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.d.ts +4 -1
  35. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js +8 -12
  36. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js.map +1 -1
  37. package/lib/components/organisms/Picker/Picker.js +0 -2
  38. package/lib/components/organisms/Picker/Picker.js.map +1 -1
  39. package/lib/hooks/use-click-outside.d.ts +23 -6
  40. package/lib/hooks/use-click-outside.js +42 -45
  41. package/lib/hooks/use-click-outside.js.map +1 -1
  42. package/lib/index.d.ts +1 -1
  43. package/lib/index.js +1 -1
  44. package/lib/index.js.map +1 -1
  45. package/lib/types/index.d.ts +0 -1
  46. package/lib/types/index.js +0 -1
  47. package/lib/types/index.js.map +1 -1
  48. package/package.json +15 -17
  49. package/lib/components/molecules/AttachmentCard/AttachmentCard.d.ts +0 -9
  50. package/lib/components/molecules/AttachmentCard/AttachmentCard.js +0 -61
  51. package/lib/components/molecules/AttachmentCard/AttachmentCard.js.map +0 -1
  52. package/lib/components/molecules/MessageBox/MessageBox.d.ts +0 -10
  53. package/lib/components/molecules/MessageBox/MessageBox.js +0 -69
  54. package/lib/components/molecules/MessageBox/MessageBox.js.map +0 -1
  55. package/lib/types/file.d.ts +0 -5
  56. package/lib/types/file.js +0 -62
  57. package/lib/types/file.js.map +0 -1
package/README.md CHANGED
@@ -20,6 +20,7 @@ It contains:
20
20
  - Writing themes management system with basic theme
21
21
  - UseOutsideClick hook to notify components when the user clicked outside of itself
22
22
  - Basic animation tools
23
+ - and many more...
23
24
 
24
25
  ## Usage
25
26
 
@@ -29,207 +30,9 @@ Install the library :
29
30
  yarn add @axelor/aos-mobile-ui
30
31
  ```
31
32
 
32
- Compatibility with React v18.2.x and React Native v0.70.x.
33
-
34
33
  This package has a few required libraries as peer dependencies, please check package.json for more informations.
35
34
 
36
- ### Use of basic components
37
-
38
- You can import components from the main bundle:
39
-
40
- ```typescript
41
- import {Button} from '@axelor/aos-mobile-ui';
42
- ```
43
-
44
- Then, you can use it as a regular component with the specified props :
45
-
46
- ```typescript
47
- <Button title="Save" onPress={() => console.log('Pressed')} />
48
- ```
49
-
50
- ### Use themes management system
51
-
52
- This package provides a context to manage themes system. To use this context you need to wrap your application with the ThemeProvider component. You can also define additional themes and the default theme value through the component props:
53
-
54
- ```typescript
55
- import { ThemeProvider } from '@axelor/aos-mobile-ui';
56
-
57
- ...
58
-
59
- <ThemeProvider themes={themes} defaultTheme={defaultTheme}>
60
- ...
61
- </ThemeProvider>
62
- ```
63
-
64
- A theme in the application has the following structure:
65
-
66
- ```typescript
67
- export interface Theme {
68
- key: string;
69
- name: string;
70
- colors: ThemeColors;
71
- }
72
-
73
- export interface ThemeColors {
74
- screenBackgroundColor: string;
75
- backgroundColor: string;
76
- primaryColor: Color;
77
- secondaryColor: Color;
78
- secondaryColor_dark: Color;
79
- errorColor: Color;
80
- cautionColor: Color;
81
- plannedColor: Color;
82
- progressColor: Color;
83
- priorityColor: Color;
84
- defaultColor: Color;
85
- importantColor: Color;
86
- successColor: Color;
87
- warningColor: Color;
88
- inverseColor: Color;
89
- infoColor: Color;
90
- text: string;
91
- placeholderTextColor: string;
92
- }
93
-
94
- export interface Color {
95
- background_light: string; // This color is a lighter variation of the main color
96
- foreground: string; // This color is mainly used for text to maintain a good contrast with the background color
97
- background: string; // This is the main color for this structure
98
- }
99
- ```
100
-
101
- Once the context is in place, you can access current theme colors with the hook `useThemeColor`. Then, you can use the colors directly in your components:
102
-
103
- ```typescript
104
- import { Button, useThemeColor } from '@axelor/aos-mobile-ui';
105
-
106
- ...
107
-
108
- const Colors = useThemeColor();
109
-
110
- ...
111
- <Button
112
- title="Save"
113
- color={Colors.primaryColor}
114
- onPress={() => console.log("Pressed")}
115
- />
116
- ```
117
-
118
- ### Use writing themes management system
119
-
120
- Writing themes management system is based on the same structure as theme system defined above with a context provider called `WritingThemeProvider`.
121
-
122
- A writing theme in the application has the following structure:
123
-
124
- ```typescript
125
- export interface Writing {
126
- key: string;
127
- name: string;
128
- style: WritingStyles;
129
- }
130
-
131
- export interface WritingStyles {
132
- defaultSize: number;
133
- title: TextStyle;
134
- subTitle: TextStyle;
135
- textImportant: TextStyle;
136
- textDetails: TextStyle;
137
- }
138
-
139
- export interface TextStyle {
140
- fontSize?: number;
141
- fontWeight?: 'normal' | 'bold';
142
- fontStyle?: 'normal' | 'italic';
143
- }
144
- ```
145
-
146
- Once the context is in place, you can access the current theme with the hook `useWritingStyle`. Then, you can use the writing styles directly in your components:
147
-
148
- ```typescript
149
- import { Text, useWritingStyle } from '@axelor/aos-mobile-ui';
150
-
151
- ...
152
-
153
- const Writing = useWritingStyle();
154
-
155
- ...
156
- <Text style={Writing.title}>Hello World</Text>
157
- ```
158
-
159
- ### Use outside click notifier
160
-
161
- This package provides a context provider to notify components when the user clicks out, this provider is called `OutsideAlerterProvider` and should wrap the application component.
162
-
163
- Once the context is in place, you can ask to be notified in the component by using the hook `useClickOutside`. This hook needs the reference of the global view of your component and a boolean to know if the component is active:
164
-
165
- ```typescript
166
- import { OUTSIDE_INDICATOR, useClickOutside } from '@axelor/aos-mobile-ui';
167
-
168
- ...
169
-
170
- const ComponentName = (...) => {
171
- const [isOpen, setIsOpen] = useState(false);
172
- const wrapperRef = useRef(null);
173
- const clickOutside = useClickOutside({wrapperRef, visible: isOpen});
174
-
175
- useEffect(() => {
176
- if (clickOutside === OUTSIDE_INDICATOR && isOpen) {
177
- setIsOpen(false);
178
- }
179
- }, [clickOutside, isOpen]);
180
-
181
- return (
182
- <View ref={wrapperRef}>
183
- ...
184
- </View>
185
- );
186
- };
187
- ```
188
-
189
- ### Use animation tools
190
-
191
- This package provides basic tools to create animation in your application.
192
-
193
- All you have to do is to call the method `animateNext` from the object `animationUtil`. This method can take the animation config as an optional parameter or nothing. If nothing is provided, it will use the default config defined in the package:
194
-
195
- ```typescript
196
- {
197
- easeInEaseOut: LayoutAnimation.Presets.easeInEaseOut,
198
- linear: LayoutAnimation.Presets.linear,
199
- spring: LayoutAnimation.Presets.spring,
200
- };
201
- ```
202
-
203
- For example, if you want to animate the appearance and disappearance of a component children:
204
-
205
- ```typescript
206
- import { animationUtil, Icon, useThemeColor } from '@axelor/aos-mobile-ui';
207
-
208
- ...
209
-
210
- const ComponentName = ({children}) => {
211
- const [isVisible, setVisible] = useState(true);
212
- const Colors = useThemeColor();
213
-
214
- const handleExpandPress = useCallback(() => {
215
- animationUtil.animateNext();
216
- setVisible(!isVisible);
217
- }, [isVisible]);
218
-
219
- return (
220
- <View>
221
- {isVisible && children}
222
- <TouchableOpacity onPress={handleExpandPress}>
223
- <Icon
224
- name={isVisible ? 'angle-up' : 'angle-down'}
225
- size={22}
226
- color={Colors.primaryColor.background}
227
- />
228
- </TouchableOpacity>
229
- </View>
230
- );
231
- };
232
- ```
35
+ For more information about how to use the tools, please check the [documentation](https://docs.axelor.com/aos-mobile/).
233
36
 
234
37
  ## Developpment
235
38
 
@@ -16,7 +16,7 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  import React from 'react';
19
- import Svg, { Path } from 'react-native-svg';
19
+ import { Svg, Path } from 'react-native-svg';
20
20
  import Text from '../Text/Text';
21
21
  import iconsMap from '../../../icons/bootstrap-icon-map.json';
22
22
  import { useThemeColor } from '../../../theme';
@@ -27,7 +27,7 @@ const BootstrapIcon = ({ name, size, color, style }) => {
27
27
  }
28
28
  const _pathList = iconsMap[name];
29
29
  if (_pathList) {
30
- return (<Svg width={size} height={size} viewBox="0 0 16 16" fill={color} style={style}>
30
+ return (<Svg width={size} height={size} viewBox="0 0 16 16" fill={color} style={style} testID="icon">
31
31
  {_pathList.map((_path, index) => (<Path key={index} d={_path}/>))}
32
32
  </Svg>);
33
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Bootst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AAI,CACH,SAAS,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,UAAU,CAAC,CACjD,KAAK,CAAC,CAAC;YACL,QAAQ,EAAE,IAAI,GAAG,CAAC;SACnB,CAAC,CACF;;IACF,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC"}
@@ -2,19 +2,11 @@ import React from 'react';
2
2
  interface IconProps {
3
3
  style?: any;
4
4
  name: string;
5
- /**
6
- * @deprecated The prop should not be used anymore. FontAwesome icons will be removed in next version.
7
- */
8
- isFontAwesome4?: boolean;
9
- /**
10
- * @deprecated The prop should not be used anymore. FontAwesome icons will be removed in next version.
11
- */
12
- isFontAwesome5?: boolean;
13
5
  color?: string;
14
6
  size?: number;
15
7
  touchable?: boolean;
16
8
  visible?: boolean;
17
9
  onPress?: () => void;
18
10
  }
19
- declare const Icon: ({ style, name, isFontAwesome4, isFontAwesome5, color, size, touchable, visible, onPress, }: IconProps) => React.JSX.Element;
11
+ declare const Icon: ({ style, name, color, size, touchable, visible, onPress, }: IconProps) => React.JSX.Element;
20
12
  export default Icon;
@@ -15,40 +15,21 @@
15
15
  * You should have received a copy of the GNU Affero General Public License
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
- import React, { useMemo, useCallback } from 'react';
19
- import { Platform, StyleSheet, TouchableOpacity } from 'react-native';
20
- import Icon5 from 'react-native-vector-icons/FontAwesome5';
21
- import Icon4 from 'react-native-vector-icons/FontAwesome';
18
+ import React, { useMemo } from 'react';
19
+ import { StyleSheet, TouchableOpacity } from 'react-native';
22
20
  import { useThemeColor } from '../../../theme';
23
21
  import BootstrapIcon from '../BootstrapIcon/BootstrapIcon';
24
- const Icon = ({ style, name, isFontAwesome4 = false, isFontAwesome5 = false, color, size = 18, touchable = false, visible = true, onPress = () => { }, }) => {
22
+ const Icon = ({ style, name, color, size = 18, touchable = false, visible = true, onPress = () => { }, }) => {
25
23
  const Colors = useThemeColor();
26
- const styles = useMemo(() => {
27
- return getStyles(color == null ? Colors.secondaryColor_dark.background : color, size);
28
- }, [Colors, color, size]);
29
- const renderIcon = useCallback(() => {
30
- if (isFontAwesome5 && Platform.OS !== 'web') {
31
- return <Icon5 name={name} style={styles.icon}/>;
32
- }
33
- else if (isFontAwesome4) {
34
- return <Icon4 name={name} style={styles.icon}/>;
35
- }
36
- else {
37
- return <BootstrapIcon name={name} size={size} color={color}/>;
38
- }
39
- }, [color, isFontAwesome4, isFontAwesome5, name, size, styles]);
24
+ const _color = useMemo(() => color ?? Colors.secondaryColor_dark.background, [Colors.secondaryColor_dark.background, color]);
40
25
  if (!visible) {
41
26
  return null;
42
27
  }
43
28
  return (<TouchableOpacity style={[styles.container, style]} onPress={onPress} disabled={!touchable}>
44
- {renderIcon()}
29
+ <BootstrapIcon name={name} size={size} color={_color}/>
45
30
  </TouchableOpacity>);
46
31
  };
47
- const getStyles = (color, size) => StyleSheet.create({
48
- icon: {
49
- color: color,
50
- fontSize: size,
51
- },
32
+ const styles = StyleSheet.create({
52
33
  container: {
53
34
  flexDirection: 'row',
54
35
  justifyContent: 'center',
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/components/atoms/Icon/Icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,MAAM,wCAAwC,CAAC;AAC3D,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAoB3D,MAAM,IAAI,GAAG,CAAC,EACZ,KAAK,EACL,IAAI,EACJ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mB,CAAC,UAAU,EAAE,KAAK,CAAC,CAC/C,CAAC;IAEF,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,CAAC,gBAAgB,CACf,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACjC,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CACrB;MAAA,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,EACvD;IAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface ProgressCircleProps {
3
+ circleSize?: number;
4
+ strokeWidth?: number;
5
+ isError?: boolean;
6
+ progress: number;
7
+ innerText?: string;
8
+ writingType?: 'title' | 'subtitle' | 'important' | 'details' | undefined;
9
+ textStyle?: any;
10
+ }
11
+ declare const ProgressCircle: ({ circleSize, strokeWidth, isError, progress, innerText, writingType, textStyle, }: ProgressCircleProps) => React.JSX.Element;
12
+ export default ProgressCircle;
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useMemo } from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { Svg, Circle } from 'react-native-svg';
21
+ import { useThemeColor } from '../../../theme';
22
+ import { Text } from '../../atoms';
23
+ const ProgressCircle = ({ circleSize = 80, strokeWidth = 4, isError = false, progress, innerText, writingType = 'important', textStyle, }) => {
24
+ const Colors = useThemeColor();
25
+ const { radius, circumference, strokeDashoffset } = useMemo(() => {
26
+ const _radius = circleSize / 2 - strokeWidth / 2;
27
+ const _circumference = 2 * Math.PI * _radius;
28
+ return {
29
+ radius: _radius,
30
+ circumference: _circumference,
31
+ strokeDashoffset: _circumference - _circumference * progress,
32
+ };
33
+ }, [circleSize, progress, strokeWidth]);
34
+ return (<Svg width={circleSize} height={circleSize}>
35
+ <Circle cx={circleSize / 2} cy={circleSize / 2} r={radius} stroke={Colors.secondaryColor.background_light} strokeWidth={strokeWidth} fill="none" testID="internal-circle"/>
36
+ <Circle cx={circleSize / 2} cy={circleSize / 2} r={radius} stroke={isError
37
+ ? Colors.errorColor.background
38
+ : Colors.successColor.background} strokeLinecap="round" strokeWidth={strokeWidth} strokeDasharray={`${circumference} ${circumference}`} strokeDashoffset={strokeDashoffset} rotation="-90" origin={`${circleSize / 2}, ${circleSize / 2}`} fill="none" testID="progress-circle"/>
39
+ <View style={styles.textContainer}>
40
+ <Text writingType={writingType} style={textStyle} adjustsFontSizeToFit>
41
+ {innerText}
42
+ </Text>
43
+ </View>
44
+ </Svg>);
45
+ };
46
+ const styles = StyleSheet.create({
47
+ textContainer: {
48
+ height: '100%',
49
+ justifyContent: 'center',
50
+ alignItems: 'center',
51
+ },
52
+ });
53
+ export default ProgressCircle;
54
+ //# sourceMappingURL=ProgressCircle.js.map
@@ -0,0 +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MAAM,EAAE,MAAM;QACd,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -1,12 +1,13 @@
1
1
  export { default as BlockInteractionScreen } from './BlockInteractionScreen/BlockInteractionScreen';
2
2
  export { default as BootstrapIcon } from './BootstrapIcon/BootstrapIcon';
3
3
  export { default as Card } from './Card/Card';
4
+ export { default as DottedLine } from './DottedLine/DottedLine';
4
5
  export { default as HorizontalRule } from './HorizontalRule/HorizontalRule';
5
6
  export { default as HtmlInput } from './HtmlInput/HtmlInput';
6
- export { default as DottedLine } from './DottedLine/DottedLine';
7
7
  export { default as Icon } from './Icon/Icon';
8
8
  export { default as Input } from './Input/Input';
9
9
  export { default as KeyboardAvoidingScrollView } from './KeyboardAvoidingScrollView/KeyboardAvoidingScrollView';
10
+ export { default as ProgressCircle } from './ProgressCircle/ProgressCircle';
10
11
  export { default as RadioButton } from './RadioButton/RadioButton';
11
12
  export { default as Screen } from './Screen/Screen';
12
13
  export { default as ScrollView } from './ScrollView/ScrollView';
@@ -18,12 +18,13 @@
18
18
  export { default as BlockInteractionScreen } from './BlockInteractionScreen/BlockInteractionScreen';
19
19
  export { default as BootstrapIcon } from './BootstrapIcon/BootstrapIcon';
20
20
  export { default as Card } from './Card/Card';
21
+ export { default as DottedLine } from './DottedLine/DottedLine';
21
22
  export { default as HorizontalRule } from './HorizontalRule/HorizontalRule';
22
23
  export { default as HtmlInput } from './HtmlInput/HtmlInput';
23
- export { default as DottedLine } from './DottedLine/DottedLine';
24
24
  export { default as Icon } from './Icon/Icon';
25
25
  export { default as Input } from './Input/Input';
26
26
  export { default as KeyboardAvoidingScrollView } from './KeyboardAvoidingScrollView/KeyboardAvoidingScrollView';
27
+ export { default as ProgressCircle } from './ProgressCircle/ProgressCircle';
27
28
  export { default as RadioButton } from './RadioButton/RadioButton';
28
29
  export { default as Screen } from './Screen/Screen';
29
30
  export { default as ScrollView } from './ScrollView/ScrollView';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/atoms/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/atoms/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,aAAa,CAAC"}
@@ -45,7 +45,7 @@ const Button = ({ width = '90%', color, isNeutralBackground = false, iconName, i
45
45
  if (!iconName && !title) {
46
46
  return null;
47
47
  }
48
- return (<TouchableOpacity style={[commonStyles.button, styles.colorButton, style]} onPress={disabled ? onDisabledPress : onPress} disabled={disabled && !onDisabledPress} activeOpacity={0.9}>
48
+ return (<TouchableOpacity style={[commonStyles.button, styles.colorButton, style]} onPress={disabled ? onDisabledPress : onPress} disabled={disabled && !onDisabledPress} activeOpacity={0.9} accessibilityRole="button">
49
49
  {!!iconName && (<Icon name={iconName} size={iconSize} color={buttonColor.foreground} style={[styles.icon, styleIcon]}/>)}
50
50
  {!!title && (<Text style={[styles.text, styleTxt]} fontSize={17} textColor={buttonColor.foreground}>
51
51
  {title}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/molecules/Button/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAiB,UAAU,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAQ,aAAa,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AAiBvC,MAAM,MAAM,GAAG,CAAC,EACd,KAAK,GAAG,KAAK,EACb,KAAK,EACL,mBAAmB,GAAG,KAAK,EAC3B,QAAQ,EACR,QAAQ,GAAG,EAAE,EACb,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,QAAQ,GAAG,KAAK,EAChB,eAAe,GAAG,IAAI,GACV,EAAE,EAAE;IAChB,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE;QAC/B,IAAI,QAAQ,EAAE;YACZ,OAAO,MAAM,CAAC,cAAc,CAAC;SAC9B;QAED,IAAI,YAAY,GAAU,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;QAEtE,IAAI,mBAAmB,EAAE;YACvB,YAAY,GAAG;gBACb,UAAU,EAAE,YAAY,CAAC,UAA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u?: any;
3
5
  children: any;
4
6
  }
5
- declare const DropdownMenu: ({ children }: DropdownMenuProps) => React.JSX.Element;
7
+ declare const DropdownMenu: ({ style, styleMenu, children }: DropdownMenuProps) => React.JSX.Element;
6
8
  export default DropdownMenu;
@@ -20,7 +20,7 @@ import { StyleSheet, TouchableOpacity, View } from 'react-native';
20
20
  import { OUTSIDE_INDICATOR, useClickOutside, } from '../../../hooks/use-click-outside';
21
21
  import { useThemeColor } from '../../../theme';
22
22
  import { Card, Icon } from '../../atoms';
23
- const DropdownMenu = ({ children }) => {
23
+ const DropdownMenu = ({ style, styleMenu, children }) => {
24
24
  const [visible, setVisible] = useState(false);
25
25
  const Colors = useThemeColor();
26
26
  const wrapperRef = useRef(null);
@@ -31,13 +31,13 @@ const DropdownMenu = ({ children }) => {
31
31
  setVisible(false);
32
32
  }
33
33
  }, [clickOutside, visible]);
34
- return (<View ref={wrapperRef}>
34
+ return (<View style={style} ref={wrapperRef}>
35
35
  <TouchableOpacity style={styles.action} onPress={() => {
36
36
  setVisible(!visible);
37
37
  }}>
38
38
  <Icon name="three-dots-vertical" color={Colors.primaryColor.background} size={22}/>
39
39
  </TouchableOpacity>
40
- {visible && <Card style={styles.menuContainer}>{children}</Card>}
40
+ {visible && (<Card style={[styles.menuContainer, styleMenu]}>{children}</Card>)}
41
41
  </View>);
42
42
  };
43
43
  const getStyles = (Colors) => StyleSheet.create({
@@ -54,10 +54,7 @@ const getStyles = (Colors) => StyleSheet.create({
54
54
  shadowColor: Colors.secondaryColor.background,
55
55
  shadowOffset: { width: 0, height: 0 },
56
56
  },
57
- action: {
58
- padding: 5,
59
- paddingLeft: 15,
60
- },
57
+ action: { padding: 5, paddingLeft: 15 },
61
58
  });
62
59
  export default DropdownMenu;
63
60
  //# sourceMappingURL=DropdownMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../../src/components/molecules/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA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,IAAI,CACH,IAAI,CAAC,qBAAqB,CAC1B,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CACtC,IAAI,CAAC,CAAC,EAAE,CAAC,EAEb;MAAA,EAAE,gBAAgB,CAClB;MAAA,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAClE;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAmB,EAAE,EAAE,CACxC,UAAU,CAAC,MAAM,CAAC;IAChB,aAAa,EAAE;QACb,KAAK,EAAE,GAAG;QACV,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,CAAC,EAAE;QACV,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,CAAC;QAClB,QAAQ,EAAE,UAAU;QACpB,SAAS,EAAE,CAAC;QACZ,aAAa,EAAE,GAAG;QAClB,WAAW,EAAE,MAAM,CAAC,cAAc,CAAC,UAAU;QAC7C,YAAY,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC;KACpC;IACD,MAAM,EAAE;QACN,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,EAAE;KAChB;CACF,CAAC,CAAC;AAEL,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../../src/components/molecules/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClE,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EACL,iBAAiB,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AAA,CAAC,OAAO,IAAI,CACV,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAClE,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAmB,EAAE,EAAE,CACxC,UAAU,CAAC,MAAM,CAAC;IAChB,aAAa,EAAE;QACb,KAAK,EAAE,GAAG;QACV,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,CAAC,EAAE;QACV,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,CAAC;QAClB,QAAQ,EAAE,UAAU;QACpB,SAAS,EAAE,CAAC;QACZ,aAAa,EAAE,GAAG;QAClB,WAAW,EAAE,MAAM,CAAC,cAAc,CAAC,UAAU;QAC7C,YAAY,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC;KACpC;IACD,MAAM,EAAE,EAAC,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAC;CACtC,CAAC,CAAC;AAEL,eAAe,YAAY,CAAC"}
@@ -35,7 +35,7 @@ const styles = StyleSheet.create({
35
35
  flexDirection: 'row',
36
36
  justifyContent: 'space-between',
37
37
  alignItems: 'center',
38
- paddingLeft: 20,
38
+ paddingLeft: 12,
39
39
  paddingRight: 15,
40
40
  paddingVertical: 5,
41
41
  marginVertical: 4,
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Step } from './types';
3
+ interface StepListProps {
4
+ steps: Step[];
5
+ translator: (key: string, values?: any) => string;
6
+ }
7
+ declare const StepList: ({ steps, translator }: StepListProps) => React.JSX.Element;
8
+ export default StepList;
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { View, StyleSheet } from 'react-native';
20
+ import { useThemeColor } from '../../../theme';
21
+ import { Icon, Text } from '../../atoms';
22
+ import { StepState } from './types';
23
+ const StepList = ({ steps, translator }) => {
24
+ const Colors = useThemeColor();
25
+ const getIconName = (state) => {
26
+ switch (state) {
27
+ case StepState.inProgress:
28
+ return 'record-circle';
29
+ case StepState.completed:
30
+ return 'check-circle';
31
+ case StepState.error:
32
+ return 'exclamation-circle';
33
+ default:
34
+ return 'circle';
35
+ }
36
+ };
37
+ const getIconColor = (state) => {
38
+ switch (state) {
39
+ case StepState.inProgress:
40
+ return Colors.progressColor.background;
41
+ case StepState.completed:
42
+ return Colors.successColor.background;
43
+ case StepState.error:
44
+ return Colors.errorColor.background;
45
+ default:
46
+ return Colors.secondaryColor.background;
47
+ }
48
+ };
49
+ return (<View style={styles.container}>
50
+ {steps.map((step, index) => (<View style={styles.stepWrapper} key={index}>
51
+ <View style={styles.stepColumn}>
52
+ <Icon name={getIconName(step.state)} color={getIconColor(step.state)}/>
53
+ {index < steps.length - 1 && (<View style={[
54
+ styles.verticalLine,
55
+ { backgroundColor: getIconColor(step.state) },
56
+ ]}/>)}
57
+ </View>
58
+ <Text>{translator(step.titleKey)}</Text>
59
+ </View>))}
60
+ </View>);
61
+ };
62
+ const styles = StyleSheet.create({
63
+ container: {
64
+ marginTop: 10,
65
+ },
66
+ stepWrapper: {
67
+ flexDirection: 'row',
68
+ },
69
+ stepColumn: {
70
+ alignItems: 'center',
71
+ marginRight: 15,
72
+ },
73
+ verticalLine: {
74
+ width: 1,
75
+ height: 10,
76
+ marginVertical: 5,
77
+ },
78
+ });
79
+ export default StepList;
80
+ //# sourceMappingURL=StepList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepList.js","sourceRoot":"","sources":["../../../../src/components/molecules/Stepper/StepList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAO,SAAS,EAAC,MAAM,SAAS,CAAC;AAOxC,MAAM,QAAQ,GAAG,CAAC,EAAC,KAAK,EAAE,UAAU,EAAgB,EAAE,EAAE;IACtD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,WAAW,GAAG,CAAC,KAAgB,EAAE,EAAE;QACvC,QAAQ,KAAK,EAAE;YACb,KAAK,SAAS,CAAC,UAAU;gBACvB,OAAO,eAAe,CAAC;YACzB,KAAK,SAAS,CAAC,SAAS;gBACtB,OAAO,cAAc,CAAC;YACxB,KAAK,SAAS,CAAC,KAAK;gBAClB,OAAO,oBAAoB,CAAC;YAC9B;gBACE,OAAO,QAAQ,CAAC;SACnB;IACH,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,CAAC,KAAgB,EAAE,EAAE;QACxC,QAAQ,KAAK,EAAE;YACb,KAAK,SAAS,CAAC,UAAU;gBACvB,OAAO,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC;YACzC,KAAK,SAAS,CAAC,SAAS;gBACtB,OAAO,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC;YACxC,KAAK,SAAS,CAAC,KAAK;gBAClB,OAA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QACpB,WAAW,EAAE,EAAE;KAChB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,EAAE;QACV,cAAc,EAAE,CAAC;KAClB;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Step } from './types';
3
+ interface StepperProps {
4
+ steps: Step[];
5
+ activeStepIndex: number;
6
+ isCardBackground?: boolean;
7
+ displayDropdown?: boolean;
8
+ translator: (key: string, values?: any) => string;
9
+ }
10
+ declare const Stepper: ({ steps, activeStepIndex: _activeStepIndex, isCardBackground, displayDropdown, translator, }: StepperProps) => React.JSX.Element;
11
+ export default Stepper;