@alveole/components 1.8.4 → 1.9.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.
- package/dist/core/Section/Section.stories.d.ts.map +1 -1
- package/dist/core/Section/Section.stories.js +9 -3
- package/dist/core/Section/Section.stories.sources.d.ts.map +1 -1
- package/dist/core/Section/Section.stories.sources.js +2 -2
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/ui/Header/Header.d.ts +4 -1
- package/dist/ui/Header/Header.d.ts.map +1 -1
- package/dist/ui/Header/Header.js +4 -3
- package/dist/ui/Header/Header.stories.d.ts +1 -1
- package/dist/ui/ListItem/ListItem.stories.d.ts +1 -0
- package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.stories.js +4 -1
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAQkB;AAKlB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,eAAO,MAAM,YAAY,mCAMxB,CAAC;AAEF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAQkB;AAKlB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,eAAO,MAAM,YAAY,mCAMxB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,eAAO,MAAM,aAAa,mCAMzB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Typography } from '../../core';
|
|
3
3
|
import { Section } from './Section';
|
|
4
4
|
import { useStyles } from './Section.styles';
|
|
@@ -14,7 +14,13 @@ const paddingColor = '#b9c47f';
|
|
|
14
14
|
const innerBoxColor = '#88b2bd';
|
|
15
15
|
export const Default = () => (_jsx(Section, { children: _jsx(Box, { children: _jsx(Typography, { children: "Section" }) }) }));
|
|
16
16
|
export const WithPaddingY = () => (_jsx(Section, { backgroundColor: paddingColor, withPaddingY: true, children: _jsx(Box, { backgroundColor: innerBoxColor, p: '050', children: _jsx(Typography, { children: "Section avec background et padding Y" }) }) }));
|
|
17
|
-
export const WidthMdSize = () =>
|
|
17
|
+
export const WidthMdSize = () => {
|
|
18
|
+
const styles = useStyles();
|
|
19
|
+
return (_jsx(Section, { backgroundColor: paddingColor, size: "md", children: _jsx(Box, { backgroundColor: innerBoxColor, p: '050', children: _jsxs(Typography, { children: ["Section avec background et size md (", styles.sectionContainerMD.maxWidth, "px)"] }) }) }));
|
|
20
|
+
};
|
|
18
21
|
export const WidthFullSize = () => (_jsx(Section, { backgroundColor: paddingColor, size: "full", children: _jsx(Box, { backgroundColor: innerBoxColor, p: '050', children: _jsx(Typography, { children: "Section avec background et size full (taille par d\u00E9faut)" }) }) }));
|
|
19
|
-
export const WidthSmSize = () =>
|
|
22
|
+
export const WidthSmSize = () => {
|
|
23
|
+
const styles = useStyles();
|
|
24
|
+
return (_jsx(Section, { backgroundColor: paddingColor, size: "sm", children: _jsx(Box, { backgroundColor: innerBoxColor, p: '050', children: _jsxs(Typography, { children: ["Section avec background et size sm (", styles.sectionContainerSM.maxWidth, "px)"] }) }) }));
|
|
25
|
+
};
|
|
20
26
|
export * as Sources from './Section.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAuI,CAAC;AAE5J,eAAO,MAAM,YAAY,cAA+P,CAAC;AAEzR,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Section.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAuI,CAAC;AAE5J,eAAO,MAAM,YAAY,cAA+P,CAAC;AAEzR,eAAO,MAAM,WAAW,cAAiW,CAAC;AAE1X,eAAO,MAAM,aAAa,cAAqR,CAAC;AAEhT,eAAO,MAAM,WAAW,cAAiW,CAAC;AAE1X,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// Source: src/core/Section/Section.stories.tsx
|
|
3
3
|
export const Default = () => "export const Default = () => (\n <Section>\n <Box>\n <Typography>Section</Typography>\n </Box>\n </Section>\n);";
|
|
4
4
|
export const WithPaddingY = () => "export const WithPaddingY = () => (\n <Section backgroundColor={paddingColor} withPaddingY>\n <Box backgroundColor={innerBoxColor} p={'050'}>\n <Typography>Section avec background et padding Y</Typography>\n </Box>\n </Section>\n);";
|
|
5
|
-
export const WidthMdSize = () => "export const WidthMdSize = () => (\n <Section backgroundColor={paddingColor} size=\"md\">\n
|
|
5
|
+
export const WidthMdSize = () => "export const WidthMdSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"md\">\n <Box backgroundColor={innerBoxColor} p={'050'}>\n <Typography>Section avec background et size md ({styles.sectionContainerMD.maxWidth}px)</Typography>\n </Box>\n </Section>\n );\n};";
|
|
6
6
|
export const WidthFullSize = () => "export const WidthFullSize = () => (\n <Section backgroundColor={paddingColor} size=\"full\">\n <Box backgroundColor={innerBoxColor} p={'050'}>\n <Typography>Section avec background et size full (taille par défaut)</Typography>\n </Box>\n </Section>\n);";
|
|
7
|
-
export const WidthSmSize = () => "export const WidthSmSize = () => (\n <Section backgroundColor={paddingColor} size=\"sm\">\n
|
|
7
|
+
export const WidthSmSize = () => "export const WidthSmSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"sm\">\n <Box backgroundColor={innerBoxColor} p={'050'}>\n <Typography>Section avec background et size sm ({styles.sectionContainerSM.maxWidth}px)</Typography>\n </Box>\n </Section>\n );\n};";
|
|
8
8
|
export const storySources = {
|
|
9
9
|
Default,
|
|
10
10
|
WithPaddingY,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ALVEOLE_COMPONENTS_VERSION: "1.
|
|
1
|
+
export declare const ALVEOLE_COMPONENTS_VERSION: "1.9.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ALVEOLE_COMPONENTS_VERSION = "1.
|
|
1
|
+
export const ALVEOLE_COMPONENTS_VERSION = "1.9.0";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Href } from 'expo-router';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
export type HeaderProps = {
|
|
3
4
|
/** Logo carré affiché à gauche. */
|
|
@@ -6,6 +7,8 @@ export type HeaderProps = {
|
|
|
6
7
|
title?: string;
|
|
7
8
|
/** Contenu libre affiché à droite (navigation, boutons, etc.). */
|
|
8
9
|
right?: React.ReactNode;
|
|
10
|
+
/** Lien vers lequel le logo et le titre redirigent. `null` pour désactiver le lien. Défaut : "/". */
|
|
11
|
+
homeHref?: (Href & string) | null;
|
|
9
12
|
};
|
|
10
|
-
export declare const Header: ({ logo, title, right }: HeaderProps) => React.JSX.Element;
|
|
13
|
+
export declare const Header: ({ logo, title, right, homeHref }: HeaderProps) => React.JSX.Element;
|
|
11
14
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/ui/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/ui/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,qGAAqG;IACrG,QAAQ,CAAC,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,kCAAwC,WAAW,sBAkBzE,CAAC"}
|
package/dist/ui/Header/Header.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Typography } from '../../core';
|
|
2
|
+
import { A, Box, Typography } from '../../core';
|
|
3
3
|
import { useStyles } from './Header.styles';
|
|
4
|
-
export const Header = ({ logo, title, right }) => {
|
|
4
|
+
export const Header = ({ logo, title, right, homeHref = '/' }) => {
|
|
5
5
|
const styles = useStyles();
|
|
6
|
-
|
|
6
|
+
const identity = (_jsxs(Box, { style: styles.identity, children: [logo, _jsx(Typography, { style: styles.titleText, children: title })] }));
|
|
7
|
+
return (_jsx(Box, { tag: "header", style: styles.container, children: _jsxs(Box, { style: styles.inner, children: [homeHref != null ? _jsx(A, { href: homeHref, children: identity }) : identity, right != null && _jsx(Box, { style: styles.right, children: right })] }) }));
|
|
7
8
|
};
|
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
figmaURL: string;
|
|
6
6
|
description: string;
|
|
7
7
|
webOnly: true;
|
|
8
|
-
component: ({ logo, title, right }: import("./Header").HeaderProps) => import("react").JSX.Element;
|
|
8
|
+
component: ({ logo, title, right, homeHref }: import("./Header").HeaderProps) => import("react").JSX.Element;
|
|
9
9
|
styleFn: () => {
|
|
10
10
|
container: {
|
|
11
11
|
position: "sticky";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/ListItem/ListItem.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItem.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/ListItem/ListItem.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAWkB;AAElB,eAAO,MAAM,OAAO,mCAQnB,CAAC;AAEF,eAAO,MAAM,YAAY,mCASxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,mCASvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAS5B,CAAC;AAEF,eAAO,MAAM,QAAQ,mCASpB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAYtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAS5B,CAAC;AAEF,eAAO,MAAM,SAAS,mCAcrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAe7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAe7B,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,YAAY,mCAA6D,CAAC;AAEvF,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC"}
|
|
@@ -8,7 +8,10 @@ export default {
|
|
|
8
8
|
tags: ['ui'],
|
|
9
9
|
experimental: false,
|
|
10
10
|
figmaURL: 'https://www.figma.com/design/xJz8Z6vfrnZPKTtRbuT2W8/Composants?node-id=1002-558',
|
|
11
|
-
|
|
11
|
+
shortDescription: 'Permet d’afficher les données d’une ressource.',
|
|
12
|
+
description: `Permet d’afficher les données d’une ressource.
|
|
13
|
+
|
|
14
|
+
Il est recommandé d’utiliser les \`ListItem\` au sein d’une [ResourceList](/components/ResourceList) plutôt que de manière isolée.`,
|
|
12
15
|
component: ListItem,
|
|
13
16
|
styleFn: useStyles,
|
|
14
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alveole/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Shared UI components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,31 +36,31 @@
|
|
|
36
36
|
"@lucide/lab": "0.2.0",
|
|
37
37
|
"@react-native-community/datetimepicker": "9.1.0",
|
|
38
38
|
"@react-native-picker/picker": "2.11.4",
|
|
39
|
-
"@react-native/jest-preset": "0.
|
|
39
|
+
"@react-native/jest-preset": "0.86.3",
|
|
40
40
|
"@shopify/flash-list": "2.0.2",
|
|
41
41
|
"@tamagui/config": "1.144.4",
|
|
42
42
|
"@tamagui/core": "1.144.4",
|
|
43
43
|
"@tamagui/toast": "1.144.4",
|
|
44
44
|
"@testing-library/react-native": "14.0.1",
|
|
45
45
|
"@types/react-syntax-highlighter": "15.5.13",
|
|
46
|
-
"babel-preset-expo": "
|
|
46
|
+
"babel-preset-expo": "57.0.10",
|
|
47
47
|
"eslint": "9.39.5",
|
|
48
|
-
"expo": "
|
|
49
|
-
"expo-application": "
|
|
50
|
-
"expo-asset": "
|
|
51
|
-
"expo-document-picker": "
|
|
48
|
+
"expo": "57.0.21",
|
|
49
|
+
"expo-application": "57.0.2",
|
|
50
|
+
"expo-asset": "57.0.16",
|
|
51
|
+
"expo-document-picker": "57.0.1",
|
|
52
52
|
"expo-in-app-updates": "0.12.0",
|
|
53
|
-
"expo-modules-core": "
|
|
54
|
-
"expo-router": "
|
|
53
|
+
"expo-modules-core": "57.0.17",
|
|
54
|
+
"expo-router": "57.0.20",
|
|
55
55
|
"jest": "29.7.0",
|
|
56
|
-
"jest-expo": "
|
|
56
|
+
"jest-expo": "57.0.5",
|
|
57
57
|
"lucide-react-native": "1.31.0",
|
|
58
58
|
"pdfjs-dist": "6.2.108",
|
|
59
59
|
"react": "19.2.3",
|
|
60
60
|
"react-dom": "19.2.3",
|
|
61
|
-
"react-native": "0.
|
|
61
|
+
"react-native": "0.86.3",
|
|
62
62
|
"react-native-code-highlighter": "1.3.0",
|
|
63
|
-
"react-native-keyboard-controller": "1.
|
|
63
|
+
"react-native-keyboard-controller": "1.21.9",
|
|
64
64
|
"react-native-otp-entry": "1.8.6",
|
|
65
65
|
"react-select": "5.10.2",
|
|
66
66
|
"react-syntax-highlighter": "16.1.1",
|