@alveole/components 0.24.1 → 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.
- package/dist/core/A/A.stories.d.ts +1 -1
- package/dist/core/Box/Box.stories.d.ts +1 -1
- package/dist/core/Image/Image.stories.d.ts +1 -1
- package/dist/core/Map/Map.stories.d.ts +1 -1
- package/dist/core/Metabase/Metabase.stories.d.ts +1 -1
- package/dist/core/Page/Page.stories.d.ts +1 -1
- package/dist/core/Page/PageContentDefault.d.ts.map +1 -1
- package/dist/core/Page/PageContentDefault.js +3 -3
- package/dist/core/Page/PageContentScrollable.d.ts.map +1 -1
- package/dist/core/Page/PageContentScrollable.js +3 -3
- package/dist/core/PdfViewer/PdfViewer.stories.d.ts +1 -1
- package/dist/core/Section/Section.stories.d.ts +1 -1
- package/dist/core/Typography/Typography.stories.d.ts +1 -1
- package/dist/core/Version/Version.stories.d.ts +1 -1
- package/dist/type/Story.d.ts +12 -17
- package/dist/type/Story.d.ts.map +1 -1
- package/dist/ui/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/ui/Badge/Badge.stories.d.ts +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/ui/Button/Button.stories.d.ts +1 -1
- package/dist/ui/Card/Card.stories.d.ts +1 -1
- package/dist/ui/Divider/Divider.stories.d.ts +1 -1
- package/dist/ui/EmptyState/EmptyState.stories.d.ts +1 -1
- package/dist/ui/ListItem/ListItem.stories.d.ts +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +1 -1
- package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.d.ts +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.d.ts +1 -1
- package/dist/ui/Tabs/Tabs.stories.d.ts +1 -1
- package/dist/ui/Tag/Tag.stories.d.ts +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
tags:
|
|
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 +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,
|
|
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 {
|
|
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 (
|
|
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;
|
|
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:
|
|
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:
|
|
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 & {
|
package/dist/type/Story.d.ts
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
export type StoryTag = 'Kit' | 'Composant' | 'Template' | (string & {});
|
|
3
|
+
export type StoryMeta = {
|
|
4
4
|
title: string;
|
|
5
|
-
|
|
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
|
-
|
|
18
|
-
component: React.FC<any>;
|
|
19
|
-
/** Configuration (Template only) */
|
|
11
|
+
component?: ComponentType<any>;
|
|
20
12
|
config?: object;
|
|
21
|
-
|
|
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
|
package/dist/type/Story.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Story.d.ts","sourceRoot":"","sources":["../../src/type/Story.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
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"}
|