@alveole/components 0.11.2 → 0.13.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/Box/Box.stories.d.ts +18 -0
- package/dist/core/Box/Box.stories.d.ts.map +1 -0
- package/dist/core/Box/Box.stories.js +15 -0
- package/dist/core/Typography/Typography.stories.d.ts +20 -0
- package/dist/core/Typography/Typography.stories.d.ts.map +1 -0
- package/dist/core/Typography/Typography.stories.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/stories/index.d.ts +5 -0
- package/dist/stories/index.d.ts.map +1 -0
- package/dist/stories/index.js +4 -0
- package/dist/type/Story.d.ts +26 -0
- package/dist/type/Story.d.ts.map +1 -0
- package/dist/type/Story.js +1 -0
- package/dist/type/index.d.ts +2 -0
- package/dist/type/index.d.ts.map +1 -0
- package/dist/type/index.js +1 -0
- package/package.json +15 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: ["Kit"];
|
|
4
|
+
experimental: false;
|
|
5
|
+
description: string;
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("@tamagui/web").StackProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & import("@tamagui/core").RNTamaguiViewNonStyleProps & Pick<import("@tamagui/web").StackProps, "display" | "flex" | "flexWrap" | "flexDirection" | "opacity" | "overflow"> & {
|
|
7
|
+
justify?: import("@tamagui/web").ViewProps["justifyContent"];
|
|
8
|
+
} & import("./Box.types").BoxAdvancedStyle & {
|
|
9
|
+
hoverStyle?: import("react").CSSProperties;
|
|
10
|
+
} & import("react").RefAttributes<import("@tamagui/web").TamaguiElement>>;
|
|
11
|
+
styleFn: () => string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const BoxDefault: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const BoxPadded: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const BoxPaddedWithBackground: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const BoxHovered: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Box.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAIA,wBAQkB;AAElB,eAAO,MAAM,UAAU,+CAItB,CAAC;AAEF,eAAO,MAAM,SAAS,+CAIrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,+CAInC,CAAC;AAEF,eAAO,MAAM,UAAU,+CAItB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Typography } from '../Typography';
|
|
3
|
+
import { Box } from './Box';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Box',
|
|
6
|
+
tags: ['Kit'],
|
|
7
|
+
experimental: false,
|
|
8
|
+
description: 'La Box doit être utilisé pour tout contenir, à la manière d‘une <div>. De type View (tamagui), elle permet de définir le tag rendu en web.',
|
|
9
|
+
component: Box,
|
|
10
|
+
styleFn: () => 'Aucun style appliqué',
|
|
11
|
+
};
|
|
12
|
+
export const BoxDefault = () => (_jsx(Box, { tag: "box", children: _jsx(Typography, { children: "Contenu par d\u00E9faut" }) }));
|
|
13
|
+
export const BoxPadded = () => (_jsx(Box, { tag: "padded", p: 16, children: _jsx(Typography, { children: "Box avec padding" }) }));
|
|
14
|
+
export const BoxPaddedWithBackground = () => (_jsx(Box, { tag: "padded-with-background", backgroundColor: '#f0f0f0', p: 16, children: _jsx(Typography, { children: "Box avec fond gris clair et padding" }) }));
|
|
15
|
+
export const BoxHovered = () => (_jsx(Box, { tag: "hovered", hoverStyle: { background: '#f0f0f0' }, children: _jsx(Typography, { children: "Box avec fond gris changeant au hover" }) }));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: ["Kit"];
|
|
4
|
+
experimental: false;
|
|
5
|
+
description: string;
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("@tamagui/web").TextProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, "children"> & import("./Typography.types").TypographyBaseStyle & import("./Typography.types").TypographyAdvancedStyle & {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
hoverStyle?: import("react").CSSProperties;
|
|
9
|
+
} & import("react").RefAttributes<import("@tamagui/web").TamaguiTextElement>>;
|
|
10
|
+
styleFn: () => string;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const TypographyDefault: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const TypographyPaddedWithColor: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const TypographyStyleItalic: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const TypographyStyleUnderline: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const TypographyStyleLineThrough: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const TypographyTransformCapitalize: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const TypographyTransformUppercase: () => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=Typography.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/Typography.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AAGA,wBAOkB;AAElB,eAAO,MAAM,iBAAiB,+CAAoD,CAAC;AAEnF,eAAO,MAAM,yBAAyB,+CAIrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,+CAAsE,CAAC;AAEzG,eAAO,MAAM,wBAAwB,+CAAkF,CAAC;AAExH,eAAO,MAAM,0BAA0B,+CAA+E,CAAC;AAEvH,eAAO,MAAM,6BAA6B,+CAEzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,+CAAwE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Typography } from './Typography';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Typography',
|
|
5
|
+
tags: ['Kit'],
|
|
6
|
+
experimental: false,
|
|
7
|
+
description: 'La Typography doit être utilisé pour contenir tous les textes. Composant de type Text (tamagui).',
|
|
8
|
+
component: Typography,
|
|
9
|
+
styleFn: () => 'Aucun style appliqué',
|
|
10
|
+
};
|
|
11
|
+
export const TypographyDefault = () => _jsx(Typography, { children: "Contenu par d\u00E9faut" });
|
|
12
|
+
export const TypographyPaddedWithColor = () => (_jsx(Typography, { p: 8, color: 'blue', children: "Texte avec padding et couleur" }));
|
|
13
|
+
export const TypographyStyleItalic = () => _jsx(Typography, { fontStyle: "italic", children: "Texte en italique" });
|
|
14
|
+
export const TypographyStyleUnderline = () => _jsx(Typography, { textDecorationLine: "underline", children: "Texte en soulign\u00E9" });
|
|
15
|
+
export const TypographyStyleLineThrough = () => _jsx(Typography, { textDecorationLine: "line-through", children: "Texte barr\u00E9" });
|
|
16
|
+
export const TypographyTransformCapitalize = () => (_jsx(Typography, { textTransform: "capitalize", children: "avec une majuscule" }));
|
|
17
|
+
export const TypographyTransformUppercase = () => _jsx(Typography, { textTransform: "uppercase", children: "En majuscule" });
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from '../core/Box/Box.stories';
|
|
2
|
+
export { default as BoxStoryMeta } from '../core/Box/Box.stories';
|
|
3
|
+
export * from '../core/Typography/Typography.stories';
|
|
4
|
+
export { default as TypographyStoryMeta } from '../core/Typography/Typography.stories';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stories/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAElE,cAAc,uCAAuC,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
export interface Story {
|
|
3
|
+
/** Nom de la page (doit être unique) */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Classification du composant */
|
|
6
|
+
tags: ['Kit'] | ['Composant'] | ['Template'];
|
|
7
|
+
/** Composant créé par le dév */
|
|
8
|
+
experimental: boolean;
|
|
9
|
+
/** Lien vers le figma */
|
|
10
|
+
figmaURL?: string;
|
|
11
|
+
/** Uniquement disponible sur mobile */
|
|
12
|
+
mobileOnly?: boolean;
|
|
13
|
+
/** Uniquement disponible sur web */
|
|
14
|
+
webOnly?: boolean;
|
|
15
|
+
/** Description */
|
|
16
|
+
description: string;
|
|
17
|
+
/** Composant */
|
|
18
|
+
component: React.FC<any>;
|
|
19
|
+
/** Configuration (Template only) */
|
|
20
|
+
config?: object;
|
|
21
|
+
/** Schema json des props */
|
|
22
|
+
props?: z.core.JSONSchema.JSONSchema;
|
|
23
|
+
/** Fonction représentant les styles */
|
|
24
|
+
styleFn: () => string | object;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=Story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Story.d.ts","sourceRoot":"","sources":["../../src/type/Story.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,MAAM,WAAW,KAAK;IACpB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7C,gCAAgC;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB;IAChB,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACzB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IACrC,uCAAuC;IACvC,OAAO,EAAE,MAAM,MAAM,GAAG,MAAM,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/type/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Story';
|
package/package.json
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alveole/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Shared UI components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./stories": {
|
|
13
|
+
"types": "./dist/stories/index.d.ts",
|
|
14
|
+
"default": "./dist/stories/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
7
18
|
"files": [
|
|
8
19
|
"dist",
|
|
9
20
|
"README.md"
|
|
@@ -18,6 +29,9 @@
|
|
|
18
29
|
"@alveole/eslint-config": "file:../eslint-config",
|
|
19
30
|
"eslint": "^9.39.2"
|
|
20
31
|
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"zod": "^4.1.11"
|
|
34
|
+
},
|
|
21
35
|
"peerDependencies": {
|
|
22
36
|
"@alveole/theme": "*",
|
|
23
37
|
"@tamagui/core": "*",
|