@alveole/components 2.0.0-alpha.25 → 2.0.0-alpha.27

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.
@@ -1,2 +1,2 @@
1
- export declare const ALVEOLE_COMPONENTS_VERSION: "2.0.0-alpha.25";
1
+ export declare const ALVEOLE_COMPONENTS_VERSION: "2.0.0-alpha.27";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const ALVEOLE_COMPONENTS_VERSION = "2.0.0-alpha.25";
1
+ export const ALVEOLE_COMPONENTS_VERSION = "2.0.0-alpha.27";
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
+ import { LucideIconName } from '../LucideIcon/LucideIcon.props';
2
3
  import { TextInputElement } from './TextInput.types';
4
+ /** L'oeil montre l'action et non l'etat : ouvert pour reveler, barre pour masquer. */
5
+ export declare const iconeDeLOeil: (masque: boolean) => LucideIconName;
3
6
  /** Le mot de passe : une saisie ordinaire, masquee, qu'un oeil permet de reveler. */
4
7
  export declare const TextInputPassword: React.ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "style"> & {
5
8
  type?: "text" | "email" | "tel" | "password";
@@ -1 +1 @@
1
- {"version":3,"file":"TextInputPassword.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInputPassword.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAkB,MAAM,mBAAmB,CAAC;AAYrE,qFAAqF;AACrF,eAAO,MAAM,iBAAiB;;;;;;;;;;;0CAyB7B,CAAC"}
1
+ {"version":3,"file":"TextInputPassword.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInputPassword.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAkB,MAAM,mBAAmB,CAAC;AAYrE,sFAAsF;AACtF,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,KAAG,cAA6C,CAAC;AAE7F,qFAAqF;AACrF,eAAO,MAAM,iBAAiB;;;;;;;;;;;0CAyB7B,CAAC"}
@@ -11,8 +11,10 @@ const boutonAccole = {
11
11
  paddingTop: 0,
12
12
  paddingBottom: 0,
13
13
  };
14
+ /** L'oeil montre l'action et non l'etat : ouvert pour reveler, barre pour masquer. */
15
+ export const iconeDeLOeil = (masque) => (masque ? 'Eye' : 'EyeOff');
14
16
  /** Le mot de passe : une saisie ordinaire, masquee, qu'un oeil permet de reveler. */
15
17
  export const TextInputPassword = React.forwardRef(function TextInputPassword(props, ref) {
16
18
  const [masque, setMasque] = React.useState(true);
17
- return (_jsx(TextInputInline, { secureTextEntry: masque, autoComplete: "current-password", textContentType: "password", autoCapitalize: "none", endAdornment: _jsx(ButtonIcon, { size: "sm", variant: "tertiary", style: boutonAccole, icon: masque ? 'EyeClosed' : 'Eye', accessibilityLabel: masque ? 'Afficher le mot de passe' : 'Masquer le mot de passe', onPress: () => setMasque(actuel => !actuel) }), ...props, ref: ref }));
19
+ return (_jsx(TextInputInline, { secureTextEntry: masque, autoComplete: "current-password", textContentType: "password", autoCapitalize: "none", endAdornment: _jsx(ButtonIcon, { size: "sm", variant: "tertiary", style: boutonAccole, icon: iconeDeLOeil(masque), accessibilityLabel: masque ? 'Afficher le mot de passe' : 'Masquer le mot de passe', onPress: () => setMasque(actuel => !actuel) }), ...props, ref: ref }));
18
20
  });
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@alveole/components",
3
- "version": "2.0.0-alpha.25",
3
+ "version": "2.0.0-alpha.27",
4
4
  "description": "Shared UI components.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/captive-studio/alveole-js.git",
8
+ "directory": "packages/components"
9
+ },
5
10
  "main": "dist/index.js",
6
11
  "types": "dist/index.d.ts",
7
12
  "exports": {
@@ -28,22 +33,22 @@
28
33
  "@react-native-community/datetimepicker": "9.2.1",
29
34
  "@react-native/jest-preset": "0.88.0",
30
35
  "@shopify/flash-list": "2.3.2",
31
- "@tamagui/core": "3.1.10",
32
- "@tamagui/toast": "3.1.10",
36
+ "@tamagui/core": "3.2.3",
37
+ "@tamagui/toast": "3.2.3",
33
38
  "@testing-library/react": "16.3.3",
34
39
  "@testing-library/react-native": "14.1.0",
35
40
  "@types/react-syntax-highlighter": "15.5.13",
36
41
  "babel-preset-expo": "58.0.20",
37
42
  "eslint": "10.14.0",
38
- "expo": "58.0.22",
43
+ "expo": "58.0.23",
39
44
  "expo-application": "58.1.2",
40
45
  "expo-asset": "58.0.20",
41
46
  "expo-document-picker": "58.0.4",
42
47
  "expo-image-picker": "58.0.10",
43
48
  "expo-in-app-updates": "0.13.0",
44
49
  "expo-linear-gradient": "58.0.3",
45
- "expo-modules-core": "58.0.29",
46
- "expo-router": "58.0.29",
50
+ "expo-modules-core": "58.0.30",
51
+ "expo-router": "58.0.30",
47
52
  "expo-system-ui": "58.0.7",
48
53
  "expo-web-browser": "58.0.7",
49
54
  "jest": "29.7.0",
@@ -58,7 +63,7 @@
58
63
  "react-native-web": "0.21.4",
59
64
  "react-select": "5.10.2",
60
65
  "react-syntax-highlighter": "16.1.2",
61
- "tamagui": "3.1.10",
66
+ "tamagui": "3.2.3",
62
67
  "test-renderer": "1.3.1"
63
68
  },
64
69
  "dependencies": {