@alveole/components 0.36.2 → 0.37.2
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 +4 -3
- package/dist/core/A/A.stories.d.ts.map +1 -1
- package/dist/core/A/A.stories.js +7 -5
- package/dist/core/A/A.stories.sources.d.ts +2 -0
- package/dist/core/A/A.stories.sources.d.ts.map +1 -1
- package/dist/core/A/A.stories.sources.js +3 -1
- package/dist/core/Box/Box.stories.d.ts +1 -1
- package/dist/core/Box/Box.stories.js +1 -1
- package/dist/core/Highlight/Highlight.d.ts +8 -0
- package/dist/core/Highlight/Highlight.d.ts.map +1 -0
- package/dist/core/Highlight/Highlight.js +76 -0
- package/dist/core/Highlight/Highlight.stories.d.ts +26 -0
- package/dist/core/Highlight/Highlight.stories.d.ts.map +1 -0
- package/dist/core/Highlight/Highlight.stories.js +43 -0
- package/dist/core/Highlight/Highlight.stories.sources.d.ts +14 -0
- package/dist/core/Highlight/Highlight.stories.sources.d.ts.map +1 -0
- package/dist/core/Highlight/Highlight.stories.sources.js +14 -0
- package/dist/core/Highlight/Highlight.styles.d.ts +12 -0
- package/dist/core/Highlight/Highlight.styles.d.ts.map +1 -0
- package/dist/core/Highlight/Highlight.styles.js +12 -0
- package/dist/core/Highlight/index.d.ts +2 -0
- package/dist/core/Highlight/index.d.ts.map +1 -0
- package/dist/core/Highlight/index.js +1 -0
- package/dist/core/Image/Image.stories.d.ts +2 -2
- package/dist/core/Image/Image.stories.js +2 -2
- package/dist/core/Lottie/Lottie.stories.d.ts +2 -2
- package/dist/core/Lottie/Lottie.stories.js +2 -2
- package/dist/core/Map/Map.stories.d.ts +2 -2
- package/dist/core/Map/Map.stories.js +2 -2
- package/dist/core/Metabase/Metabase.stories.d.ts +3 -3
- package/dist/core/Metabase/Metabase.stories.js +2 -2
- package/dist/core/Metabase/Metabase.styles.d.ts +1 -1
- package/dist/core/Page/Page.stories.d.ts +1 -1
- package/dist/core/Page/Page.stories.js +1 -1
- package/dist/core/PdfViewer/PdfViewer.stories.d.ts +1 -1
- package/dist/core/PdfViewer/PdfViewer.stories.js +1 -1
- package/dist/core/Section/Section.stories.d.ts +1 -1
- package/dist/core/Section/Section.stories.js +1 -1
- package/dist/core/Typography/Typography.stories.d.ts +1 -1
- package/dist/core/Typography/Typography.stories.js +1 -1
- package/dist/core/Version/Version.stories.d.ts +1 -1
- package/dist/core/Version/Version.stories.js +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/stories/index.d.ts +3 -0
- package/dist/stories/index.d.ts.map +1 -1
- package/dist/stories/index.js +3 -0
- package/dist/ui/ActionMenu/ActionMenu.stories.d.ts +1 -1
- package/dist/ui/ActionMenu/ActionMenu.stories.js +2 -2
- package/dist/ui/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/ui/Avatar/Avatar.stories.js +1 -1
- package/dist/ui/Badge/Badge.stories.d.ts +1 -1
- package/dist/ui/Badge/Badge.stories.js +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.js +3 -2
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.js +1 -1
- package/dist/ui/Button/Button.js +1 -1
- package/dist/ui/Button/Button.stories.d.ts +1 -1
- package/dist/ui/Button/Button.stories.d.ts.map +1 -1
- package/dist/ui/Button/Button.stories.js +4 -4
- package/dist/ui/Button/Button.stories.sources.d.ts.map +1 -1
- package/dist/ui/Button/Button.stories.sources.js +2 -2
- package/dist/ui/Card/Card.stories.d.ts +1 -1
- package/dist/ui/Card/Card.stories.js +1 -1
- package/dist/ui/Divider/Divider.stories.d.ts +1 -1
- package/dist/ui/Divider/Divider.stories.js +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.js +1 -1
- package/dist/ui/EmptyState/EmptyState.stories.d.ts +1 -1
- package/dist/ui/EmptyState/EmptyState.stories.js +1 -1
- package/dist/ui/ListItem/ListItem.stories.d.ts +3 -2
- package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.stories.js +2 -2
- package/dist/ui/ListItem/ListItem.stories.sources.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.stories.sources.js +1 -1
- package/dist/ui/ListItem/ListItem.styles.d.ts +1 -0
- package/dist/ui/ListItem/ListItem.styles.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.styles.js +1 -0
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.js +2 -2
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +1 -1
- package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
- package/dist/ui/PageHeader/PageHeader.stories.js +1 -1
- package/dist/ui/Popover/Popover.stories.d.ts +1 -1
- package/dist/ui/Popover/Popover.stories.js +1 -1
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +1 -1
- package/dist/ui/ProgressBar/ProgressBar.stories.js +2 -2
- package/dist/ui/ResourceList/ResourceList.stories.d.ts +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.js +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.d.ts +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.js +1 -1
- package/dist/ui/Sidebar/SidebarItem.d.ts +1 -1
- package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
- package/dist/ui/Sidebar/SidebarItem.js +5 -7
- package/dist/ui/Signature/Signature.d.ts +12 -0
- package/dist/ui/Signature/Signature.d.ts.map +1 -0
- package/dist/ui/Signature/Signature.js +55 -0
- package/dist/ui/Signature/Signature.stories.d.ts +40 -0
- package/dist/ui/Signature/Signature.stories.d.ts.map +1 -0
- package/dist/ui/Signature/Signature.stories.js +24 -0
- package/dist/ui/Signature/Signature.stories.sources.d.ts +8 -0
- package/dist/ui/Signature/Signature.stories.sources.d.ts.map +1 -0
- package/dist/ui/Signature/Signature.stories.sources.js +8 -0
- package/dist/ui/Signature/Signature.styles.d.ts +29 -0
- package/dist/ui/Signature/Signature.styles.d.ts.map +1 -0
- package/dist/ui/Signature/Signature.styles.js +26 -0
- package/dist/ui/Signature/Signature.web.d.ts +3 -0
- package/dist/ui/Signature/Signature.web.d.ts.map +1 -0
- package/dist/ui/Signature/Signature.web.js +50 -0
- package/dist/ui/Signature/index.d.ts +2 -0
- package/dist/ui/Signature/index.d.ts.map +1 -0
- package/dist/ui/Signature/index.js +1 -0
- package/dist/ui/Tabs/Tabs.stories.d.ts +1 -1
- package/dist/ui/Tabs/Tabs.stories.js +1 -1
- package/dist/ui/Tag/Tag.stories.d.ts +1 -1
- package/dist/ui/Tag/Tag.stories.d.ts.map +1 -1
- package/dist/ui/Tag/Tag.stories.js +2 -2
- package/dist/ui/Tag/Tag.stories.sources.d.ts.map +1 -1
- package/dist/ui/Tag/Tag.stories.sources.js +1 -1
- package/dist/ui/Toast/Toast.d.ts +4 -0
- package/dist/ui/Toast/Toast.d.ts.map +1 -0
- package/dist/ui/Toast/Toast.js +48 -0
- package/dist/ui/Toast/Toast.stories.d.ts +94 -0
- package/dist/ui/Toast/Toast.stories.d.ts.map +1 -0
- package/dist/ui/Toast/Toast.stories.js +51 -0
- package/dist/ui/Toast/Toast.stories.sources.d.ts +6 -0
- package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -0
- package/dist/ui/Toast/Toast.stories.sources.js +6 -0
- package/dist/ui/Toast/Toast.styles.d.ts +82 -0
- package/dist/ui/Toast/Toast.styles.d.ts.map +1 -0
- package/dist/ui/Toast/Toast.styles.js +54 -0
- package/dist/ui/Toast/ToastBridge.d.ts +11 -0
- package/dist/ui/Toast/ToastBridge.d.ts.map +1 -0
- package/dist/ui/Toast/ToastBridge.js +19 -0
- package/dist/ui/Toast/ToastContext.d.ts +12 -0
- package/dist/ui/Toast/ToastContext.d.ts.map +1 -0
- package/dist/ui/Toast/ToastContext.js +2 -0
- package/dist/ui/Toast/Toasts.d.ts +5 -0
- package/dist/ui/Toast/Toasts.d.ts.map +1 -0
- package/dist/ui/Toast/Toasts.js +16 -0
- package/dist/ui/Toast/index.d.ts +2 -0
- package/dist/ui/Toast/index.d.ts.map +1 -0
- package/dist/ui/Toast/index.js +1 -0
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.js +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.stories.js +1 -1
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -0
- package/package.json +9 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const useStyles: () => {
|
|
2
|
+
container: {
|
|
3
|
+
backgroundColor: "#FFFFFF";
|
|
4
|
+
width: number;
|
|
5
|
+
padding: import("@alveole/theme").Spacing;
|
|
6
|
+
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
7
|
+
display: "flex";
|
|
8
|
+
flexDirection: "row";
|
|
9
|
+
gap: import("@alveole/theme").Spacing;
|
|
10
|
+
alignItems: "flex-start";
|
|
11
|
+
} | {
|
|
12
|
+
shadowColor: import("@alveole/theme").Color;
|
|
13
|
+
shadowOffset: {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
shadowOpacity: number;
|
|
18
|
+
shadowRadius: number;
|
|
19
|
+
elevation: number;
|
|
20
|
+
backgroundColor: "#FFFFFF";
|
|
21
|
+
width: number;
|
|
22
|
+
padding: import("@alveole/theme").Spacing;
|
|
23
|
+
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
24
|
+
display: "flex";
|
|
25
|
+
flexDirection: "row";
|
|
26
|
+
gap: import("@alveole/theme").Spacing;
|
|
27
|
+
alignItems: "flex-start";
|
|
28
|
+
} | {
|
|
29
|
+
boxShadow: string;
|
|
30
|
+
backgroundColor: "#FFFFFF";
|
|
31
|
+
width: number;
|
|
32
|
+
padding: import("@alveole/theme").Spacing;
|
|
33
|
+
borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
|
|
34
|
+
display: "flex";
|
|
35
|
+
flexDirection: "row";
|
|
36
|
+
gap: import("@alveole/theme").Spacing;
|
|
37
|
+
alignItems: "flex-start";
|
|
38
|
+
};
|
|
39
|
+
contenu: {
|
|
40
|
+
display: "flex";
|
|
41
|
+
flex: number;
|
|
42
|
+
flexDirection: "column";
|
|
43
|
+
gap: import("@alveole/theme").Spacing;
|
|
44
|
+
};
|
|
45
|
+
titleContainer: {
|
|
46
|
+
display: "flex";
|
|
47
|
+
flexDirection: "row";
|
|
48
|
+
alignItems: "center";
|
|
49
|
+
justifyContent: "space-between";
|
|
50
|
+
minHeight: import("@alveole/theme").Spacing;
|
|
51
|
+
};
|
|
52
|
+
title: {
|
|
53
|
+
color: "#151617";
|
|
54
|
+
fontFamily: "Barlow-Light" | "Barlow-Regular" | "Barlow-Medium" | "Barlow-SemiBold" | "Barlow-Bold" | "Inter-Light" | "Inter-Regular" | "Inter-Medium" | "Inter-SemiBold" | "Inter-Bold";
|
|
55
|
+
fontSize: 14;
|
|
56
|
+
lineHeight: 20;
|
|
57
|
+
letterSpacing: 0;
|
|
58
|
+
};
|
|
59
|
+
icon: {
|
|
60
|
+
paddingTop: import("@alveole/theme").Spacing;
|
|
61
|
+
};
|
|
62
|
+
iconDefault: {
|
|
63
|
+
color: "#373A3F";
|
|
64
|
+
};
|
|
65
|
+
iconInfo: {
|
|
66
|
+
color: "#373A3F";
|
|
67
|
+
};
|
|
68
|
+
iconSuccess: {
|
|
69
|
+
color: "#1B7440";
|
|
70
|
+
};
|
|
71
|
+
iconError: {
|
|
72
|
+
color: "#C62416";
|
|
73
|
+
};
|
|
74
|
+
message: {
|
|
75
|
+
color: "#373A3F";
|
|
76
|
+
fontFamily: "Barlow-Light" | "Barlow-Regular" | "Barlow-Medium" | "Barlow-SemiBold" | "Barlow-Bold" | "Inter-Light" | "Inter-Regular" | "Inter-Medium" | "Inter-SemiBold" | "Inter-Bold";
|
|
77
|
+
fontSize: 14;
|
|
78
|
+
lineHeight: 20;
|
|
79
|
+
letterSpacing: 0;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=Toast.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDnB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { makeStyles } from '@alveole/theme';
|
|
2
|
+
export const useStyles = makeStyles(({ text, color, radius, spacing, shadows }) => ({
|
|
3
|
+
// Container
|
|
4
|
+
container: {
|
|
5
|
+
backgroundColor: '#FFFFFF',
|
|
6
|
+
width: 384,
|
|
7
|
+
padding: spacing('100'),
|
|
8
|
+
borderRadius: radius('sm'),
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'row',
|
|
11
|
+
gap: spacing('050'),
|
|
12
|
+
alignItems: 'flex-start',
|
|
13
|
+
...shadows(3),
|
|
14
|
+
},
|
|
15
|
+
contenu: {
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flex: 1,
|
|
18
|
+
flexDirection: 'column',
|
|
19
|
+
gap: spacing('050'),
|
|
20
|
+
},
|
|
21
|
+
titleContainer: {
|
|
22
|
+
display: 'flex',
|
|
23
|
+
flexDirection: 'row',
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
justifyContent: 'space-between',
|
|
26
|
+
minHeight: spacing('150'),
|
|
27
|
+
},
|
|
28
|
+
// Titre
|
|
29
|
+
title: {
|
|
30
|
+
...text['Corps de texte'].SM.Bold,
|
|
31
|
+
color: color.text['title-grey'],
|
|
32
|
+
},
|
|
33
|
+
// Icon
|
|
34
|
+
icon: {
|
|
35
|
+
paddingTop: spacing('025'),
|
|
36
|
+
},
|
|
37
|
+
iconDefault: {
|
|
38
|
+
color: color.text['default-grey'],
|
|
39
|
+
},
|
|
40
|
+
iconInfo: {
|
|
41
|
+
color: color.text['default-grey'],
|
|
42
|
+
},
|
|
43
|
+
iconSuccess: {
|
|
44
|
+
color: color.text['default-success'],
|
|
45
|
+
},
|
|
46
|
+
iconError: {
|
|
47
|
+
color: color.text['default-error'],
|
|
48
|
+
},
|
|
49
|
+
// Message
|
|
50
|
+
message: {
|
|
51
|
+
...text['Corps de texte'].SM.Regular,
|
|
52
|
+
color: color.text['default-grey'],
|
|
53
|
+
},
|
|
54
|
+
}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ToastAPIOptions } from './ToastContext';
|
|
3
|
+
export type ToastBridgeProps = React.PropsWithChildren<object>;
|
|
4
|
+
export declare const defaultDuration = 8000;
|
|
5
|
+
export declare function ToastBridge(props: ToastBridgeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare module '@tamagui/toast' {
|
|
7
|
+
interface CustomData extends ToastAPIOptions {
|
|
8
|
+
presentAt?: number;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ToastBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastBridge.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/ToastBridge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA+B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEnF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAE/D,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAkBlD;AAED,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,UAAW,SAAQ,eAAe;QAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useToastController } from '@tamagui/toast';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ToastContext } from './ToastContext';
|
|
5
|
+
export const defaultDuration = 8000;
|
|
6
|
+
export function ToastBridge(props) {
|
|
7
|
+
const { children } = props;
|
|
8
|
+
const controller = useToastController();
|
|
9
|
+
const api = React.useMemo(() => ({
|
|
10
|
+
present: (title, message, opts) => {
|
|
11
|
+
controller.show(title, {
|
|
12
|
+
message,
|
|
13
|
+
duration: opts?.duration ?? defaultDuration,
|
|
14
|
+
customData: { ...opts, presentAt: Date.now() },
|
|
15
|
+
});
|
|
16
|
+
},
|
|
17
|
+
}), [controller]);
|
|
18
|
+
return _jsx(ToastContext.Provider, { value: api, children: children });
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LucideIconProps } from '../LucideIcon';
|
|
3
|
+
export type ToastAPIOptions = {
|
|
4
|
+
icon?: LucideIconProps['name'];
|
|
5
|
+
duration?: number;
|
|
6
|
+
variant?: 'default' | 'success' | 'error' | 'info';
|
|
7
|
+
};
|
|
8
|
+
export type ToastAPI = {
|
|
9
|
+
present: (title: string, message?: string, opts?: ToastAPIOptions) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const ToastContext: React.Context<ToastAPI | null>;
|
|
12
|
+
//# sourceMappingURL=ToastContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastContext.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/ToastContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,YAAY,gCAA6C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ToastsProps = React.PropsWithChildren<object>;
|
|
3
|
+
export declare function Toasts(props: ToastsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function useToast(): import("./ToastContext").ToastAPI;
|
|
5
|
+
//# sourceMappingURL=Toasts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toasts.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toasts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAE1D,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAYxC;AAED,wBAAgB,QAAQ,sCAIvB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ToastProvider, ToastViewport } from '@tamagui/toast';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Toast } from './Toast';
|
|
5
|
+
import { ToastBridge } from './ToastBridge';
|
|
6
|
+
import { ToastContext } from './ToastContext';
|
|
7
|
+
export function Toasts(props) {
|
|
8
|
+
const { children } = props;
|
|
9
|
+
return (_jsx(ToastProvider, { swipeDirection: "horizontal", native: ['ios', 'android'], children: _jsxs(ToastBridge, { children: [_jsx(Toast, {}), _jsx(ToastViewport, { name: "app-toasts", multipleToasts: true, bottom: 32, left: 0, right: 0 }), children] }) }));
|
|
10
|
+
}
|
|
11
|
+
export function useToast() {
|
|
12
|
+
const ctx = React.useContext(ToastContext);
|
|
13
|
+
if (!ctx)
|
|
14
|
+
throw new Error('useToast must be used inside <Toasts> provider');
|
|
15
|
+
return ctx;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toasts';
|
|
@@ -2,7 +2,7 @@ import { ToolbarBottomNav } from './index';
|
|
|
2
2
|
import { useStyles } from './ToolbarBottomNav.styles';
|
|
3
3
|
export default {
|
|
4
4
|
title: 'ToolbarBottomNav',
|
|
5
|
-
tags: ['
|
|
5
|
+
tags: ['ui'],
|
|
6
6
|
experimental: false,
|
|
7
7
|
description: 'Navigation bottom de type TabsExpo. A utiliser dans les _layout.',
|
|
8
8
|
figmaURL: 'https://www.figma.com/design/xJz8Z6vfrnZPKTtRbuT2W8/Alveole---Composants?node-id=1880-852&t=baZKFA9BpkeQGeZm-4',
|
|
@@ -6,7 +6,7 @@ import { ToolbarTop } from './ToolbarTop';
|
|
|
6
6
|
import { useStyles } from './ToolbarTop.styles';
|
|
7
7
|
export default {
|
|
8
8
|
title: 'ToolbarTop',
|
|
9
|
-
tags: ['
|
|
9
|
+
tags: ['ui'],
|
|
10
10
|
experimental: false,
|
|
11
11
|
figmaURL: 'https://www.figma.com/design/xJz8Z6vfrnZPKTtRbuT2W8/Alveole---Composants?node-id=1749-4674&t=qyctNCnE5tT5rKRk-4',
|
|
12
12
|
description: "La ToolbarTop est un composant de navigation et d'action. A utiliser uniquement sur Mobile. Elle dispose de 3 variantes : default, large et compactLarge.",
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -14,8 +14,10 @@ export * from './Popover';
|
|
|
14
14
|
export * from './ProgressBar';
|
|
15
15
|
export * from './ResourceList';
|
|
16
16
|
export * from './Sidebar';
|
|
17
|
+
export * from './Signature';
|
|
17
18
|
export * from './Tabs';
|
|
18
19
|
export * from './Tag';
|
|
20
|
+
export * from './Toast';
|
|
19
21
|
export * from './ToolbarBottomNav';
|
|
20
22
|
export * from './ToolbarTop';
|
|
21
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
package/dist/ui/index.js
CHANGED
|
@@ -14,7 +14,9 @@ export * from './Popover';
|
|
|
14
14
|
export * from './ProgressBar';
|
|
15
15
|
export * from './ResourceList';
|
|
16
16
|
export * from './Sidebar';
|
|
17
|
+
export * from './Signature';
|
|
17
18
|
export * from './Tabs';
|
|
18
19
|
export * from './Tag';
|
|
20
|
+
export * from './Toast';
|
|
19
21
|
export * from './ToolbarBottomNav';
|
|
20
22
|
export * from './ToolbarTop';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alveole/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.2",
|
|
4
4
|
"description": "Shared UI components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@tamagui/config": "^1.144.4",
|
|
38
38
|
"@tamagui/core": "^1.144.4",
|
|
39
39
|
"@testing-library/react-native": "^13.3.3",
|
|
40
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
40
41
|
"eslint": "^9.39.2",
|
|
41
42
|
"expo": "~53.0.0",
|
|
42
43
|
"expo-router": "~4.0.0",
|
|
@@ -47,6 +48,8 @@
|
|
|
47
48
|
"react": "^19.2.5",
|
|
48
49
|
"react-dom": "^19.2.5",
|
|
49
50
|
"react-native": "^0.79.2",
|
|
51
|
+
"react-native-code-highlighter": "1.3.0",
|
|
52
|
+
"react-syntax-highlighter": "16.1.1",
|
|
50
53
|
"react-test-renderer": "^19.2.5",
|
|
51
54
|
"tamagui": "^1.144.4"
|
|
52
55
|
},
|
|
@@ -54,6 +57,7 @@
|
|
|
54
57
|
"zod": "^4.1.11"
|
|
55
58
|
},
|
|
56
59
|
"peerDependencies": {
|
|
60
|
+
"@alveole/core": "*",
|
|
57
61
|
"@alveole/theme": "*",
|
|
58
62
|
"@lottiefiles/dotlottie-react": "*",
|
|
59
63
|
"@lucide/lab": "*",
|
|
@@ -71,6 +75,7 @@
|
|
|
71
75
|
"@tamagui/switch": "^1.129.0 <2.0.0",
|
|
72
76
|
"@tamagui/tabs": "^1.129.0 <2.0.0",
|
|
73
77
|
"@tamagui/toast": "^1.129.0 <2.0.0",
|
|
78
|
+
"@uiw/react-signature": "*",
|
|
74
79
|
"expo-application": "*",
|
|
75
80
|
"expo-constants": "*",
|
|
76
81
|
"expo-image": "*",
|
|
@@ -81,9 +86,12 @@
|
|
|
81
86
|
"pdfjs-dist": "^4.0.0",
|
|
82
87
|
"react": "*",
|
|
83
88
|
"react-native": "*",
|
|
89
|
+
"react-native-code-highlighter": "*",
|
|
84
90
|
"react-native-safe-area-context": "*",
|
|
91
|
+
"react-native-signature-canvas": "*",
|
|
85
92
|
"react-native-svg": "^15.0.0",
|
|
86
93
|
"react-native-webview": ">=13",
|
|
94
|
+
"react-syntax-highlighter": "*",
|
|
87
95
|
"tamagui": "^1.129.0 <2.0.0"
|
|
88
96
|
},
|
|
89
97
|
"publishConfig": {
|