@alveole/components 0.26.0 → 0.27.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.
Files changed (33) hide show
  1. package/dist/core/A/A.stories.d.ts +1 -1
  2. package/dist/core/Box/Box.stories.d.ts +1 -1
  3. package/dist/core/Image/Image.stories.d.ts +1 -1
  4. package/dist/core/Map/Map.stories.d.ts +1 -1
  5. package/dist/core/Metabase/Metabase.stories.d.ts +1 -1
  6. package/dist/core/Page/Page.stories.d.ts +1 -1
  7. package/dist/core/Page/PageContentDefault.d.ts.map +1 -1
  8. package/dist/core/Page/PageContentDefault.js +3 -3
  9. package/dist/core/Page/PageContentScrollable.d.ts.map +1 -1
  10. package/dist/core/Page/PageContentScrollable.js +3 -3
  11. package/dist/core/PdfViewer/PdfViewer.stories.d.ts +1 -1
  12. package/dist/core/Section/Section.stories.d.ts +1 -1
  13. package/dist/core/Typography/Typography.stories.d.ts +1 -1
  14. package/dist/core/Version/Version.stories.d.ts +1 -1
  15. package/dist/type/Story.d.ts +12 -17
  16. package/dist/type/Story.d.ts.map +1 -1
  17. package/dist/ui/Avatar/Avatar.stories.d.ts +1 -1
  18. package/dist/ui/Badge/Badge.stories.d.ts +1 -1
  19. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
  20. package/dist/ui/Button/Button.stories.d.ts +1 -1
  21. package/dist/ui/Card/Card.stories.d.ts +1 -1
  22. package/dist/ui/Divider/Divider.stories.d.ts +1 -1
  23. package/dist/ui/EmptyState/EmptyState.stories.d.ts +1 -1
  24. package/dist/ui/ListItem/ListItem.stories.d.ts +1 -1
  25. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +1 -1
  26. package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
  27. package/dist/ui/ResourceList/ResourceList.stories.d.ts +1 -1
  28. package/dist/ui/Sidebar/Sidebar.stories.d.ts +1 -1
  29. package/dist/ui/Tabs/Tabs.stories.d.ts +1 -1
  30. package/dist/ui/Tag/Tag.stories.d.ts +1 -1
  31. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +1 -1
  32. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +1 -1
  33. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: true;
5
5
  description: string;
6
6
  component: (props: import("./A").AProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  component: import("react").ForwardRefExoticComponent<Pick<import("tamagui").StackProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & import("@tamagui/core").RNTamaguiViewNonStyleProps & Pick<import("tamagui").StackProps, "display" | "flex" | "flexWrap" | "flexDirection" | "opacity" | "overflow"> & {
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: true;
5
5
  description: string;
6
6
  component: (props: import("./Image").ImageProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: true;
5
5
  webOnly: true;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: true;
5
5
  description: string;
6
6
  component: (props: import("./Metabase.props").MetabaseProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  component: (props: import("./Page").PageProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"PageContentDefault.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageContentDefault.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC;AAEhD,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,4CAmBhE,CAAC"}
1
+ {"version":3,"file":"PageContentDefault.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageContentDefault.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC;AAEhD,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,4CAqBhE,CAAC"}
@@ -1,6 +1,6 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box } from '../../core/Box';
3
3
  export const PageContentDefault = (props) => {
4
- const { children, title, description, og, scrollable: _scrollable, sidebar: _sidebar, sideBarController: _sideBarController, onScrollToBottom: _onScrollToBottom, onEndReachedThreshold: _onEndReachedThreshold, ...pageProps } = props;
5
- return (_jsx(Box, { tag: "page", ...pageProps, height: "100%", children: children }));
4
+ const { beforeContent, children, title, description, og, scrollable: _scrollable, sidebar: _sidebar, sideBarController: _sideBarController, onScrollToBottom: _onScrollToBottom, onEndReachedThreshold: _onEndReachedThreshold, ...pageProps } = props;
5
+ return (_jsxs(Box, { tag: "page", ...pageProps, height: "100%", children: [beforeContent, children] }));
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PageContentScrollable.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageContentScrollable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG;IACnD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;aAND,CAAC;mBAChC,CAAD;;;;;;4BAKoF,CAAC;;;;;;;uBALjE,MAAM,IAAI;4BACL,MAAM;qBACb,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;qDAoD3C,CAAC"}
1
+ {"version":3,"file":"PageContentScrollable.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageContentScrollable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG;IACnD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;aAND,CAAC;mBAChC,CAAD;;;;;;4BAKoF,CAAC;;;;;;;uBALjE,MAAM,IAAI;4BACL,MAAM;qBACb,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;qDAsD3C,CAAC"}
@@ -1,9 +1,9 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import React, { useImperativeHandle, useRef } from 'react';
3
3
  import { ScrollView } from 'react-native';
4
4
  import { Box } from '../../core/Box';
5
5
  export const PageContentScrollable = React.forwardRef(function PageContentScrollable(props, ref) {
6
- const { children, title, description, og, defaultBackgroundColor, onScrollToBottom, onEndReachedThreshold = 100, onScrollChange, ...pageProps } = props;
6
+ const { beforeContent, children, title, description, og, defaultBackgroundColor, onScrollToBottom, onEndReachedThreshold = 100, onScrollChange, ...pageProps } = props;
7
7
  const { scrollable: _scrollable, sidebar: _sidebar, sideBarController: _sideBarController, ...boxProps } = pageProps;
8
8
  const scrollRef = useRef(null);
9
9
  useImperativeHandle(ref, () => ({
@@ -16,5 +16,5 @@ export const PageContentScrollable = React.forwardRef(function PageContentScroll
16
16
  onScrollToBottom?.();
17
17
  onScrollChange?.(contentOffset.y);
18
18
  };
19
- return (_jsx(ScrollView, { ref: scrollRef, contentContainerStyle: { minHeight: '100%', width: '100%', flexGrow: 1 }, style: { backgroundColor: defaultBackgroundColor ?? 'transparent' }, onScroll: handleScroll, scrollEventThrottle: 16, alwaysBounceVertical: onScrollToBottom != null, bounces: onScrollToBottom != null, overScrollMode: onScrollToBottom != null ? 'always' : 'never', children: _jsx(Box, { tag: "page", ...boxProps, height: "100%", children: children }) }));
19
+ return (_jsx(ScrollView, { ref: scrollRef, contentContainerStyle: { minHeight: '100%', width: '100%', flexGrow: 1 }, style: { backgroundColor: defaultBackgroundColor ?? 'transparent' }, onScroll: handleScroll, scrollEventThrottle: 16, alwaysBounceVertical: onScrollToBottom != null, bounces: onScrollToBottom != null, overScrollMode: onScrollToBottom != null ? 'always' : 'never', children: _jsxs(Box, { tag: "page", ...boxProps, height: "100%", children: [beforeContent, children] }) }));
20
20
  });
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Composant"];
3
+ tags: "Composant"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  component: (props: import("./PdfViewer.props").PdfViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: true;
5
5
  description: string;
6
6
  component: (props: import("./Section").SectionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  component: import("react").ForwardRefExoticComponent<Pick<import("tamagui").TextProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, "children"> & import("./Typography.types").TypographyBaseStyle & import("./Typography.types").TypographyAdvancedStyle & {
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  component: (_props: import("./Version").VersionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,21 @@
1
- import type { z } from 'zod';
2
- export interface Story {
3
- /** Nom de la page (doit être unique) */
1
+ import type { ComponentType } from 'react';
2
+ export type StoryTag = 'Kit' | 'Composant' | 'Template' | (string & {});
3
+ export type StoryMeta = {
4
4
  title: string;
5
- /** Classification du composant */
6
- tags: ['Kit'] | ['Composant'] | ['Template'];
7
- /** Composant créé par le dév */
5
+ tags: readonly StoryTag[];
8
6
  experimental: boolean;
9
- /** Lien vers le figma */
10
7
  figmaURL?: string;
11
- /** Uniquement disponible sur mobile */
12
8
  mobileOnly?: boolean;
13
- /** Uniquement disponible sur web */
14
9
  webOnly?: boolean;
15
- /** Description */
16
10
  description: string;
17
- /** Composant */
18
- component: React.FC<any>;
19
- /** Configuration (Template only) */
11
+ component?: ComponentType<any>;
20
12
  config?: object;
21
- /** Schema json des props */
22
- props?: z.core.JSONSchema.JSONSchema;
23
- /** Fonction représentant les styles */
13
+ props?: unknown;
24
14
  styleFn: () => string | object;
25
- }
15
+ };
16
+ export type Story = StoryMeta;
17
+ export type StoryExample = ComponentType<any>;
18
+ export type StoryModule<TMeta extends StoryMeta = StoryMeta> = {
19
+ default: TMeta;
20
+ } & Record<string, StoryExample | TMeta>;
26
21
  //# sourceMappingURL=Story.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"Story.d.ts","sourceRoot":"","sources":["../../src/type/Story.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,WAAW,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAExE,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC;AAE9B,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;AAE9C,MAAM,MAAM,WAAW,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,IAAI;IAC7D,OAAO,EAAE,KAAK,CAAC;CAChB,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,KAAK,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  component: (props: import("./Breadcrumbs").BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  figmaURL: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Composant"];
3
+ tags: "Composant"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  component: (props: import("./PageHeader").PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Composant"];
3
+ tags: "Composant"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Composant"];
3
+ tags: "Composant"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Composant"];
3
+ tags: "Composant"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Kit"];
3
+ tags: "Kit"[];
4
4
  experimental: false;
5
5
  description: string;
6
6
  figmaURL: string;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- tags: ["Composant"];
3
+ tags: "Composant"[];
4
4
  experimental: false;
5
5
  figmaURL: string;
6
6
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alveole/components",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Shared UI components.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",