@ds-autonomie/react-native 0.7.11 → 0.7.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @ds-autonomie/react-native
2
2
 
3
+ ## 0.7.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [4f185e3]
8
+ - @ds-autonomie/assets@1.4.12
9
+
10
+ ## 0.7.12
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [6ff7818]
15
+ - @ds-autonomie/assets@1.4.11
16
+
3
17
  ## 0.7.11
4
18
 
5
19
  ### Patch Changes
@@ -36,7 +36,7 @@ export declare const Button: React.ForwardRefExoticComponent<{
36
36
  /**
37
37
  * Variant of button.
38
38
  */
39
- variant?: Variant;
39
+ variant?: "link" | "primary" | "secondary" | "tertiary" | "destructive" | undefined;
40
40
  /**
41
41
  * If `style` is defined, it will extend the container style.
42
42
  */
@@ -48,18 +48,18 @@ export declare const Button: React.ForwardRefExoticComponent<{
48
48
  /**
49
49
  * Name of element placed before the title.
50
50
  */
51
- startIcon?: string;
51
+ startIcon?: string | undefined;
52
52
  /**
53
53
  * Name of element placed after the title.
54
54
  */
55
- endIcon?: string;
55
+ endIcon?: string | undefined;
56
56
  /**
57
57
  * The size of the component.
58
58
  */
59
- size?: Size;
59
+ size?: Size | undefined;
60
60
  /**
61
61
  * Disabled the button.
62
62
  */
63
- disabled?: boolean;
63
+ disabled?: boolean | undefined;
64
64
  } & Omit<PressableProps, OmittedPressableProps> & React.RefAttributes<View>>;
65
65
  export {};
@@ -31,21 +31,21 @@ export declare const Checkbox: React.ForwardRefExoticComponent<{
31
31
  /**
32
32
  * When set to `true`, component is checked.
33
33
  */
34
- value?: boolean;
34
+ value?: boolean | undefined;
35
35
  /**
36
36
  * When set to `true`, component is in error.
37
37
  */
38
- error?: boolean;
38
+ error?: boolean | undefined;
39
39
  /**
40
40
  * When set to `true`, component is disabled.
41
41
  */
42
- disabled?: boolean;
42
+ disabled?: boolean | undefined;
43
43
  /**
44
44
  * Callback when component is checked.
45
45
  *
46
46
  * @param {boolean} value
47
47
  */
48
- onValueChange?: (value: boolean) => void;
48
+ onValueChange?: ((value: boolean) => void) | undefined;
49
49
  /**
50
50
  * If `style` is defined, it will extend the container style.
51
51
  * If a similar property is defined, the new property will be ignored.
@@ -8,6 +8,6 @@ export type IconProps = {
8
8
  } & MaterialIconProps;
9
9
  export declare const Icon: React.ForwardRefExoticComponent<{
10
10
  name: string;
11
- size?: number;
12
- color?: string;
11
+ size?: number | undefined;
12
+ color?: string | undefined;
13
13
  } & MaterialIconProps & React.RefAttributes<MaterialIcons>>;
@@ -31,21 +31,21 @@ export declare const Radio: React.ForwardRefExoticComponent<{
31
31
  /**
32
32
  * When set to `true`, component is checked.
33
33
  */
34
- value?: boolean;
34
+ value?: boolean | undefined;
35
35
  /**
36
36
  * When set to `true`, component is in error.
37
37
  */
38
- error?: boolean;
38
+ error?: boolean | undefined;
39
39
  /**
40
40
  * When set to `true`, component is disabled.
41
41
  */
42
- disabled?: boolean;
42
+ disabled?: boolean | undefined;
43
43
  /**
44
44
  * Callback when component is checked.
45
45
  *
46
46
  * @param {boolean} value
47
47
  */
48
- onValueChange?: (value: boolean) => void;
48
+ onValueChange?: ((value: boolean) => void) | undefined;
49
49
  /**
50
50
  * If `style` is defined, it will extend the container style.
51
51
  * If a similar property is defined, the new property will overwrite the old one.
@@ -5,7 +5,7 @@ export declare const SearchField: React.ForwardRefExoticComponent<{
5
5
  /**
6
6
  * If `disabled` is `true`, the component is not editable.
7
7
  */
8
- disabled?: boolean;
8
+ disabled?: boolean | undefined;
9
9
  /**
10
10
  * If `style` is defined, it will extend the container style.
11
11
  */
@@ -23,7 +23,7 @@ export declare const TabItem: React.ForwardRefExoticComponent<{
23
23
  /**
24
24
  * Name of the icon.
25
25
  */
26
- icon?: string;
26
+ icon?: string | undefined;
27
27
  /**
28
28
  * Text displayed in tab.
29
29
  */
@@ -35,6 +35,6 @@ export declare const TabItem: React.ForwardRefExoticComponent<{
35
35
  /**
36
36
  * If `active` is true, the tab is selected
37
37
  * */
38
- active?: boolean;
38
+ active?: boolean | undefined;
39
39
  } & Omit<PressableProps, OmittedPressableProps> & React.RefAttributes<View>>;
40
40
  export {};
@@ -28,17 +28,17 @@ export type TextInputProps = {
28
28
  } & Omit<NativeTextInputProps, 'style' | 'editable' | 'value'>;
29
29
  export declare const TextInput: React.ForwardRefExoticComponent<{
30
30
  /** The input's label. */
31
- label?: string;
31
+ label?: string | undefined;
32
32
  /** Makes the input a required field. */
33
- required?: boolean;
33
+ required?: boolean | undefined;
34
34
  /** Indicates whether the input should be in error state. */
35
- error?: boolean;
35
+ error?: boolean | undefined;
36
36
  /** The input's error text. A string or Text component. */
37
37
  errorText?: ReactNode;
38
38
  /** Disables the input. */
39
- disabled?: boolean;
39
+ disabled?: boolean | undefined;
40
40
  /** Makes the input readonly. */
41
- readOnly?: boolean;
41
+ readOnly?: boolean | undefined;
42
42
  /** The input's help text. A string or Text component. */
43
43
  helpText?: ReactNode;
44
44
  /** Stylise the outer view of the input. */
@@ -28,12 +28,12 @@ export declare const Toggle: React.ForwardRefExoticComponent<{
28
28
  * When set to `true`, component is checked.
29
29
  * @default false
30
30
  */
31
- value?: boolean;
31
+ value?: boolean | undefined;
32
32
  /**
33
33
  * When set to `true`, component is disabled.
34
34
  * @default false
35
35
  */
36
- disabled?: boolean;
36
+ disabled?: boolean | undefined;
37
37
  /**
38
38
  * If `style` is defined, it will extend the container style.
39
39
  * If a similar property is defined, the new property will overwrite the old one.
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@ds-autonomie/react-native",
3
- "version": "0.7.11",
3
+ "version": "0.7.13",
4
4
  "author": "CNSA",
5
5
  "license": "MIT",
6
- "type": "module",
7
6
  "main": "dist/index.js",
8
7
  "types": "dist/index.d.ts",
9
8
  "exports": {
@@ -33,12 +32,9 @@
33
32
  "react-native": "0.72.6",
34
33
  "react-native-reanimated": "3.3.0",
35
34
  "react-native-vector-icons": "10.0.1",
36
- "@ds-autonomie/assets": "1.4.10"
35
+ "@ds-autonomie/assets": "1.4.12"
37
36
  },
38
37
  "devDependencies": {
39
- "@eslint/compat": "1.3.0",
40
- "@eslint/eslintrc": "3.3.1",
41
- "@eslint/js": "9.29.0",
42
38
  "@storybook/react-native": "6.5.7",
43
39
  "@testing-library/jest-native": "5.4.3",
44
40
  "@testing-library/react-native": "12.3.0",
@@ -46,7 +42,6 @@
46
42
  "@types/react": "18.2.33",
47
43
  "@types/react-native-vector-icons": "6.4.16",
48
44
  "@types/react-test-renderer": "18.0.2",
49
- "globals": "16.2.0",
50
45
  "jest": "29.2.1",
51
46
  "react-native-accessibility-engine": "3.2.0",
52
47
  "react-test-renderer": "18.2.0",