@alveole/components 2.0.0-alpha.20 → 2.0.0-alpha.21

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 (40) hide show
  1. package/dist/generated/version.d.ts +1 -1
  2. package/dist/generated/version.js +1 -1
  3. package/dist/ui/FormControl/FormControl.stories.d.ts.map +1 -1
  4. package/dist/ui/FormControl/FormControl.stories.js +4 -5
  5. package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
  6. package/dist/ui/FormControl/FormControl.stories.sources.js +4 -4
  7. package/dist/ui/FormControl/TextInput.d.ts +1 -0
  8. package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
  9. package/dist/ui/FormControl/TextInput.stories.d.ts +1 -0
  10. package/dist/ui/FormControl/TextInput.stories.d.ts.map +1 -1
  11. package/dist/ui/FormControl/TextInput.types.d.ts +2 -0
  12. package/dist/ui/FormControl/TextInput.types.d.ts.map +1 -1
  13. package/dist/ui/FormControl/TextInputInline.d.ts +1 -0
  14. package/dist/ui/FormControl/TextInputInline.d.ts.map +1 -1
  15. package/dist/ui/FormControl/TextInputInline.js +2 -2
  16. package/dist/ui/FormControl/TextInputMirror.d.ts +1 -0
  17. package/dist/ui/FormControl/TextInputMirror.d.ts.map +1 -1
  18. package/dist/ui/FormControl/TextInputModal.d.ts +1 -0
  19. package/dist/ui/FormControl/TextInputModal.d.ts.map +1 -1
  20. package/dist/ui/FormControl/TextInputPassword.d.ts +1 -0
  21. package/dist/ui/FormControl/TextInputPassword.d.ts.map +1 -1
  22. package/dist/ui/FormControl/textInputStyles.d.ts +2 -1
  23. package/dist/ui/FormControl/textInputStyles.d.ts.map +1 -1
  24. package/dist/ui/FormControl/textInputStyles.js +2 -1
  25. package/dist/ui/Header/Header.styles.js +1 -1
  26. package/dist/ui/LucideIcon/catalogueLucide.d.ts +312 -0
  27. package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
  28. package/dist/ui/LucideIcon/vendor/lab.js +1 -1
  29. package/dist/ui/LucideIcon/vendor/lucide.d.ts +5318 -4083
  30. package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
  31. package/dist/ui/Sidebar/Sidebar.styles.js +1 -1
  32. package/dist/ui/TextareaInput/TextareaInput.d.ts +1 -0
  33. package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -1
  34. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +2 -0
  35. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts.map +1 -1
  36. package/dist/ui/TextareaInput/TextareaInput.stories.js +3 -5
  37. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts +2 -0
  38. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -1
  39. package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +3 -1
  40. package/package.json +10 -10
@@ -108,7 +108,7 @@ const item = ({ color, spacing }) => ({
108
108
  });
109
109
  const etatDeLItem = ({ color, spacing, radius }) => ({
110
110
  sidebarItemSelectedDesktop: {
111
- backgroundColor: color.light.background['contrast-grey'],
111
+ backgroundColor: color.light.background['default-grey-active'],
112
112
  },
113
113
  sidebarItemSelectedMobile: {
114
114
  borderRadius: radius('lg'),
@@ -14,6 +14,7 @@ export declare const TextareaInput: React.ForwardRefExoticComponent<Omit<import(
14
14
  openModal?: boolean;
15
15
  modalSubmitLabel?: string;
16
16
  onModalSubmit?: () => void;
17
+ resize?: "none" | "vertical" | "horizontal" | "both";
17
18
  } & {
18
19
  numberOfLines?: number;
19
20
  onModalSubmit?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAK7E,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;oBAJR,MAAM;oBACN,MAAM,IAAI;0CAkB1B,CAAC"}
1
+ {"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAK7E,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;oBAJR,MAAM;oBACN,MAAM,IAAI;0CAkB1B,CAAC"}
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  openModal?: boolean;
14
14
  modalSubmitLabel?: string;
15
15
  onModalSubmit?: () => void;
16
+ resize?: "none" | "vertical" | "horizontal" | "both";
16
17
  } & {
17
18
  numberOfLines?: number;
18
19
  onModalSubmit?: () => void;
@@ -21,5 +22,6 @@ declare const _default: {
21
22
  };
22
23
  export default _default;
23
24
  export declare const Default: () => import("react").JSX.Element;
25
+ export declare const Redimensionnable: () => import("react").JSX.Element;
24
26
  export * as Sources from './TextareaInput.stories.sources';
25
27
  //# sourceMappingURL=TextareaInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,wBAOkB;AAYlB,eAAO,MAAM,OAAO,mCAYnB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"TextareaInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAYnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAS5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box } from '../../core/Box';
3
- import { FormControl, FormControlLabel } from '../FormControl';
4
- import { InputHeading } from '../InputHeading';
3
+ import { FormControl } from '../FormControl';
5
4
  import { TextareaInput } from './TextareaInput';
6
5
  export default {
7
6
  title: 'TextareaInput',
@@ -11,7 +10,6 @@ export default {
11
10
  component: TextareaInput,
12
11
  styleFn: () => ({}),
13
12
  };
14
- // TextareaInput est le champ nu : c'est FormControl qui porte le libellé et le relie au champ.
15
- const Champ = ({ label, children }) => (_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: label }) }), children] }));
16
- export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(Champ, { label: "Message", children: _jsx(TextareaInput, { placeholder: "Votre message...", numberOfLines: 4 }) }), _jsx(Champ, { label: "Avec valeur", children: _jsx(TextareaInput, { value: "Contenu du message", numberOfLines: 4 }) }), _jsx(Champ, { label: "D\u00E9sactiv\u00E9", children: _jsx(TextareaInput, { placeholder: "D\u00E9sactiv\u00E9", disabled: true, numberOfLines: 4 }) })] }));
13
+ export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Message", children: _jsx(TextareaInput, { placeholder: "Votre message...", numberOfLines: 4 }) }), _jsx(FormControl, { label: "Avec valeur", children: _jsx(TextareaInput, { value: "Contenu du message", numberOfLines: 4 }) }), _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", children: _jsx(TextareaInput, { placeholder: "D\u00E9sactiv\u00E9", disabled: true, numberOfLines: 4 }) })] }));
14
+ export const Redimensionnable = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Verticalement", children: _jsx(TextareaInput, { placeholder: "Tirer le coin pour agrandir...", numberOfLines: 4, resize: "vertical" }) }), _jsx(FormControl, { label: "Dans les deux sens", children: _jsx(TextareaInput, { placeholder: "Tirer le coin pour agrandir...", numberOfLines: 4, resize: "both" }) })] }));
17
15
  export * as Sources from './TextareaInput.stories.sources';
@@ -1,6 +1,8 @@
1
1
  export declare const Default: () => string;
2
+ export declare const Redimensionnable: () => string;
2
3
  export declare const storySources: {
3
4
  readonly Default: () => string;
5
+ readonly Redimensionnable: () => string;
4
6
  };
5
7
  export type StorySourceName = keyof typeof storySources;
6
8
  //# sourceMappingURL=TextareaInput.stories.sources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAoe,CAAC;AAEzf,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"TextareaInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAwgB,CAAC;AAE7hB,eAAO,MAAM,gBAAgB,cAAyd,CAAC;AAEvf,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,6 +1,8 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/TextareaInput/TextareaInput.stories.tsx
3
- export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <Champ label=\"Message\">\n <TextareaInput placeholder=\"Votre message...\" numberOfLines={4} />\n </Champ>\n <Champ label=\"Avec valeur\">\n <TextareaInput value=\"Contenu du message\" numberOfLines={4} />\n </Champ>\n <Champ label=\"Désactivé\">\n <TextareaInput placeholder=\"Désactivé\" disabled numberOfLines={4} />\n </Champ>\n </Box>\n);";
3
+ export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Message\">\n <TextareaInput placeholder=\"Votre message...\" numberOfLines={4} />\n </FormControl>\n <FormControl label=\"Avec valeur\">\n <TextareaInput value=\"Contenu du message\" numberOfLines={4} />\n </FormControl>\n <FormControl label=\"Désactivé\">\n <TextareaInput placeholder=\"Désactivé\" disabled numberOfLines={4} />\n </FormControl>\n </Box>\n);";
4
+ export const Redimensionnable = () => "export const Redimensionnable = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Verticalement\">\n <TextareaInput placeholder=\"Tirer le coin pour agrandir...\" numberOfLines={4} resize=\"vertical\" />\n </FormControl>\n <FormControl label=\"Dans les deux sens\">\n <TextareaInput placeholder=\"Tirer le coin pour agrandir...\" numberOfLines={4} resize=\"both\" />\n </FormControl>\n </Box>\n);";
4
5
  export const storySources = {
5
6
  Default,
7
+ Redimensionnable,
6
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alveole/components",
3
- "version": "2.0.0-alpha.20",
3
+ "version": "2.0.0-alpha.21",
4
4
  "description": "Shared UI components.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,23 +28,23 @@
28
28
  "@react-native-community/datetimepicker": "9.2.1",
29
29
  "@react-native/jest-preset": "0.88.0",
30
30
  "@shopify/flash-list": "2.3.2",
31
- "@tamagui/core": "3.1.3",
32
- "@tamagui/toast": "3.1.3",
31
+ "@tamagui/core": "3.1.9",
32
+ "@tamagui/toast": "3.1.9",
33
33
  "@testing-library/react": "16.3.3",
34
34
  "@testing-library/react-native": "14.1.0",
35
35
  "@types/react-syntax-highlighter": "15.5.13",
36
36
  "babel-preset-expo": "58.0.20",
37
37
  "eslint": "10.13.0",
38
- "expo": "58.0.19",
38
+ "expo": "58.0.21",
39
39
  "expo-application": "58.1.2",
40
- "expo-asset": "58.0.18",
40
+ "expo-asset": "58.0.19",
41
41
  "expo-document-picker": "58.0.4",
42
42
  "expo-image-picker": "58.0.10",
43
43
  "expo-in-app-updates": "0.13.0",
44
44
  "expo-linear-gradient": "58.0.3",
45
- "expo-modules-core": "58.0.26",
46
- "expo-router": "58.0.26",
47
- "expo-system-ui": "58.0.6",
45
+ "expo-modules-core": "58.0.28",
46
+ "expo-router": "58.0.28",
47
+ "expo-system-ui": "58.0.7",
48
48
  "expo-web-browser": "58.0.7",
49
49
  "jest": "29.7.0",
50
50
  "jest-environment-jsdom": "30.5.2",
@@ -52,13 +52,13 @@
52
52
  "pdfjs-dist": "6.4.299",
53
53
  "react": "19.3.0",
54
54
  "react-dom": "19.3.0",
55
- "react-native": "0.88.0",
55
+ "react-native": "0.88.1",
56
56
  "react-native-keyboard-controller": "1.22.7",
57
57
  "react-native-otp-entry": "1.8.6",
58
58
  "react-native-web": "0.21.4",
59
59
  "react-select": "5.10.2",
60
60
  "react-syntax-highlighter": "16.1.2",
61
- "tamagui": "3.1.3",
61
+ "tamagui": "3.1.9",
62
62
  "test-renderer": "1.3.1"
63
63
  },
64
64
  "dependencies": {