@alveole/components 0.36.2 → 0.37.3
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.d.ts +1 -1
- package/dist/core/A/A.d.ts.map +1 -1
- package/dist/core/A/A.stories.d.ts +5 -4
- 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 +5 -5
- package/dist/core/Box/Box.stories.d.ts.map +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.d.ts +2 -1
- package/dist/core/Image/Image.d.ts.map +1 -1
- package/dist/core/Image/Image.stories.d.ts +14 -14
- package/dist/core/Image/Image.stories.d.ts.map +1 -1
- package/dist/core/Image/Image.stories.js +2 -2
- package/dist/core/Lottie/Lottie.d.ts +1 -1
- package/dist/core/Lottie/Lottie.d.ts.map +1 -1
- package/dist/core/Lottie/Lottie.stories.d.ts +7 -7
- package/dist/core/Lottie/Lottie.stories.d.ts.map +1 -1
- package/dist/core/Lottie/Lottie.stories.js +2 -2
- package/dist/core/Map/Map.d.ts +1 -1
- package/dist/core/Map/Map.d.ts.map +1 -1
- package/dist/core/Map/Map.stories.d.ts +6 -6
- package/dist/core/Map/Map.stories.d.ts.map +1 -1
- package/dist/core/Map/Map.stories.js +2 -2
- package/dist/core/Map/Map.web.d.ts +2 -1
- package/dist/core/Map/Map.web.d.ts.map +1 -1
- package/dist/core/Metabase/Metabase.d.ts +1 -1
- package/dist/core/Metabase/Metabase.d.ts.map +1 -1
- package/dist/core/Metabase/Metabase.stories.d.ts +5 -5
- package/dist/core/Metabase/Metabase.stories.d.ts.map +1 -1
- package/dist/core/Metabase/Metabase.stories.js +2 -2
- package/dist/core/Metabase/Metabase.styles.d.ts +1 -1
- package/dist/core/Metabase/Metabase.web.d.ts +1 -1
- package/dist/core/Metabase/Metabase.web.d.ts.map +1 -1
- package/dist/core/Page/Page.d.ts +1 -1
- package/dist/core/Page/Page.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.d.ts +4 -4
- package/dist/core/Page/Page.stories.d.ts.map +1 -1
- package/dist/core/Page/Page.stories.js +1 -1
- package/dist/core/Page/PageBackground.d.ts +1 -1
- package/dist/core/Page/PageBackground.d.ts.map +1 -1
- package/dist/core/Page/PageContent.d.ts +2 -1
- package/dist/core/Page/PageContent.d.ts.map +1 -1
- package/dist/core/Page/PageContentDefault.d.ts +1 -1
- package/dist/core/Page/PageContentDefault.d.ts.map +1 -1
- package/dist/core/Page/PageHead.web.d.ts +1 -1
- package/dist/core/Page/PageHead.web.d.ts.map +1 -1
- package/dist/core/PdfViewer/PdfViewer.d.ts +1 -1
- package/dist/core/PdfViewer/PdfViewer.d.ts.map +1 -1
- package/dist/core/PdfViewer/PdfViewer.stories.d.ts +5 -5
- package/dist/core/PdfViewer/PdfViewer.stories.d.ts.map +1 -1
- package/dist/core/PdfViewer/PdfViewer.stories.js +1 -1
- package/dist/core/PdfViewer/PdfViewer.web.d.ts +1 -1
- package/dist/core/PdfViewer/PdfViewer.web.d.ts.map +1 -1
- package/dist/core/Section/Section.d.ts +1 -1
- package/dist/core/Section/Section.d.ts.map +1 -1
- package/dist/core/Section/Section.stories.d.ts +7 -7
- package/dist/core/Section/Section.stories.d.ts.map +1 -1
- package/dist/core/Section/Section.stories.js +1 -1
- package/dist/core/Typography/Typography.stories.d.ts +8 -8
- package/dist/core/Typography/Typography.stories.d.ts.map +1 -1
- package/dist/core/Typography/Typography.stories.js +1 -1
- package/dist/core/Version/Version.d.ts +1 -1
- package/dist/core/Version/Version.d.ts.map +1 -1
- package/dist/core/Version/Version.stories.d.ts +3 -3
- package/dist/core/Version/Version.stories.d.ts.map +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.d.ts +1 -1
- package/dist/ui/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/ui/ActionMenu/ActionMenu.stories.d.ts +3 -3
- package/dist/ui/ActionMenu/ActionMenu.stories.d.ts.map +1 -1
- package/dist/ui/ActionMenu/ActionMenu.stories.js +2 -2
- package/dist/ui/ActionMenu/ActionMenuItem.d.ts +1 -1
- package/dist/ui/ActionMenu/ActionMenuItem.d.ts.map +1 -1
- package/dist/ui/Avatar/Avatar.d.ts +1 -1
- package/dist/ui/Avatar/Avatar.d.ts.map +1 -1
- package/dist/ui/Avatar/Avatar.stories.d.ts +5 -5
- package/dist/ui/Avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/ui/Avatar/Avatar.stories.js +1 -1
- package/dist/ui/Badge/Badge.d.ts +1 -1
- package/dist/ui/Badge/Badge.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.stories.d.ts +5 -5
- package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.stories.js +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -6
- 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 +11 -11
- 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/Button/ButtonIcon.d.ts +1 -1
- package/dist/ui/Button/ButtonIcon.d.ts.map +1 -1
- package/dist/ui/Card/Card.d.ts +1 -1
- package/dist/ui/Card/Card.d.ts.map +1 -1
- package/dist/ui/Card/Card.stories.d.ts +9 -9
- package/dist/ui/Card/Card.stories.d.ts.map +1 -1
- package/dist/ui/Card/Card.stories.js +1 -1
- package/dist/ui/Card/CardActions.d.ts +1 -1
- package/dist/ui/Card/CardActions.d.ts.map +1 -1
- package/dist/ui/Card/CardHeader.d.ts +1 -1
- package/dist/ui/Card/CardHeader.d.ts.map +1 -1
- package/dist/ui/Card/CardSection.d.ts +1 -1
- package/dist/ui/Card/CardSection.d.ts.map +1 -1
- package/dist/ui/Divider/Divider.d.ts +1 -1
- package/dist/ui/Divider/Divider.d.ts.map +1 -1
- package/dist/ui/Divider/Divider.js +2 -1
- package/dist/ui/Divider/Divider.stories.d.ts +3 -3
- package/dist/ui/Divider/Divider.stories.d.ts.map +1 -1
- package/dist/ui/Divider/Divider.stories.js +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.d.ts +2 -1
- package/dist/ui/DocumentViewer/DocumentViewer.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +5 -5
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.js +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts +2 -1
- package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.d.ts +2 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.native.d.ts +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.native.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.web.d.ts +2 -1
- package/dist/ui/DocumentViewer/DocumentViewerPDF.web.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerToolbar.d.ts +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerToolbar.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerToolbarButton.d.ts +1 -1
- package/dist/ui/DocumentViewer/DocumentViewerToolbarButton.d.ts.map +1 -1
- package/dist/ui/EmptyState/EmptyState.d.ts +1 -1
- package/dist/ui/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/ui/EmptyState/EmptyState.stories.d.ts +7 -7
- package/dist/ui/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/dist/ui/EmptyState/EmptyState.stories.js +1 -1
- package/dist/ui/ListItem/ListItem.d.ts +1 -1
- package/dist/ui/ListItem/ListItem.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.stories.d.ts +11 -10
- 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.d.ts +1 -1
- package/dist/ui/LucideIcon/LucideIcon.d.ts.map +1 -1
- package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +4 -4
- 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.d.ts +1 -1
- package/dist/ui/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/ui/PageHeader/PageHeader.stories.d.ts +4 -4
- package/dist/ui/PageHeader/PageHeader.stories.d.ts.map +1 -1
- package/dist/ui/PageHeader/PageHeader.stories.js +1 -1
- package/dist/ui/Popover/Popover.d.ts +1 -1
- package/dist/ui/Popover/Popover.d.ts.map +1 -1
- package/dist/ui/Popover/Popover.stories.d.ts +3 -3
- package/dist/ui/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/ui/Popover/Popover.stories.js +1 -1
- package/dist/ui/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/ui/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +8 -7
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
- package/dist/ui/ProgressBar/ProgressBar.stories.js +2 -2
- package/dist/ui/ProgressBar/ProgressBarDeterminate.d.ts +2 -1
- package/dist/ui/ProgressBar/ProgressBarDeterminate.d.ts.map +1 -1
- package/dist/ui/ProgressBar/ProgressBarIndeterminate.d.ts +2 -1
- package/dist/ui/ProgressBar/ProgressBarIndeterminate.d.ts.map +1 -1
- package/dist/ui/ProgressBar/ProgressBarLoop.d.ts +2 -1
- package/dist/ui/ProgressBar/ProgressBarLoop.d.ts.map +1 -1
- package/dist/ui/ResourceList/ResourceList.d.ts +1 -1
- package/dist/ui/ResourceList/ResourceList.d.ts.map +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.d.ts +8 -8
- package/dist/ui/ResourceList/ResourceList.stories.d.ts.map +1 -1
- package/dist/ui/ResourceList/ResourceList.stories.js +1 -1
- package/dist/ui/ResourceList/ResourceListDivider.d.ts +1 -1
- package/dist/ui/ResourceList/ResourceListDivider.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.d.ts +1 -1
- package/dist/ui/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.d.ts +3 -3
- package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.js +1 -1
- package/dist/ui/Sidebar/SidebarFooter.d.ts +1 -1
- package/dist/ui/Sidebar/SidebarFooter.d.ts.map +1 -1
- package/dist/ui/Sidebar/SidebarGroup.d.ts +1 -1
- package/dist/ui/Sidebar/SidebarGroup.d.ts.map +1 -1
- package/dist/ui/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/ui/Sidebar/SidebarHeader.d.ts.map +1 -1
- package/dist/ui/Sidebar/SidebarItem.d.ts +3 -2
- 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 +13 -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 +41 -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 +4 -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.d.ts +1 -1
- package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.stories.d.ts +4 -3
- package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.stories.js +1 -1
- package/dist/ui/Tag/Tag.d.ts +1 -1
- package/dist/ui/Tag/Tag.d.ts.map +1 -1
- package/dist/ui/Tag/Tag.stories.d.ts +4 -4
- 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 +5 -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.d.ts +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.d.ts.map +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.js +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNavIcon.d.ts +1 -1
- package/dist/ui/ToolbarBottomNav/ToolbarBottomNavIcon.d.ts.map +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.d.ts +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.d.ts.map +1 -1
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +12 -12
- package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts.map +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
package/dist/core/A/A.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export type AProps = React.PropsWithChildren<{
|
|
|
12
12
|
/** Override la logique d'accès (sinon utilise LinkAccessContext si fourni, sinon accès autorisé). */
|
|
13
13
|
canAccessHref?: CanAccessHref;
|
|
14
14
|
}>;
|
|
15
|
-
export declare const A: (props: AProps) =>
|
|
15
|
+
export declare const A: (props: AProps) => React.JSX.Element;
|
|
16
16
|
//# sourceMappingURL=A.d.ts.map
|
package/dist/core/A/A.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A.d.ts","sourceRoot":"","sources":["../../../src/core/A/A.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAQ,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,EAAE,aAAa,EAA6B,MAAM,OAAO,CAAC;AAKxE,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,KAAK,OAAO,CAAC;AAE7D,qIAAqI;AACrI,eAAO,MAAM,iBAAiB,qCAA4C,CAAC;AAE3E,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC3C,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;IACpB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,qGAAqG;IACrG,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC,CAAC;AAEH,eAAO,MAAM,CAAC,GAAI,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"A.d.ts","sourceRoot":"","sources":["../../../src/core/A/A.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAQ,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,EAAE,aAAa,EAA6B,MAAM,OAAO,CAAC;AAKxE,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,KAAK,OAAO,CAAC;AAE7D,qIAAqI;AACrI,eAAO,MAAM,iBAAiB,qCAA4C,CAAC;AAE3E,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC3C,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;IACpB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,qGAAqG;IACrG,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC,CAAC;AAEH,eAAO,MAAM,CAAC,GAAI,OAAO,MAAM,sBAwB9B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
tags: "
|
|
4
|
-
experimental:
|
|
3
|
+
tags: "core"[];
|
|
4
|
+
experimental: false;
|
|
5
5
|
description: string;
|
|
6
|
-
component: (props: import("
|
|
6
|
+
component: (props: import("@alveole/components").AProps) => import("react").JSX.Element;
|
|
7
7
|
styleFn: () => {
|
|
8
8
|
container: {};
|
|
9
9
|
pressable: {
|
|
@@ -16,6 +16,7 @@ declare const _default: {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|
|
19
|
-
export declare const Default: () => import("react
|
|
19
|
+
export declare const Default: () => import("react").JSX.Element;
|
|
20
|
+
export declare const LinkBlock: () => import("react").JSX.Element;
|
|
20
21
|
export * as Sources from './A.stories.sources';
|
|
21
22
|
//# sourceMappingURL=A.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A.stories.d.ts","sourceRoot":"","sources":["../../../src/core/A/A.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"A.stories.d.ts","sourceRoot":"","sources":["../../../src/core/A/A.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAMA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAInB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAWrB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC"}
|
package/dist/core/A/A.stories.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar, Card } from '@alveole/components';
|
|
2
3
|
import { Typography } from '../Typography';
|
|
3
4
|
import { A } from './A';
|
|
4
5
|
import { useStyles } from './A.styles';
|
|
5
6
|
export default {
|
|
6
7
|
title: 'A',
|
|
7
|
-
tags: ['
|
|
8
|
-
experimental:
|
|
9
|
-
description: 'Equivalent d’une balise <a
|
|
8
|
+
tags: ['core'],
|
|
9
|
+
experimental: false,
|
|
10
|
+
description: 'Equivalent d’une balise <a>. Envelopper le texte dans une balise <Typography>.',
|
|
10
11
|
component: A,
|
|
11
12
|
styleFn: useStyles,
|
|
12
13
|
};
|
|
13
|
-
export const Default = () => (_jsx(A, { href: '/ui-kit/components/A', children: _jsx(Typography, { children: "
|
|
14
|
+
export const Default = () => (_jsx(A, { href: '/ui-kit/components/A', children: _jsx(Typography, { children: "Mon lien" }) }));
|
|
15
|
+
export const LinkBlock = () => (_jsx(A, { href: '/ui-kit/components/A', children: _jsxs(Card, { children: [_jsx(Card.Header, { titre: "Titre de la carte", sousTitre: "Sous-titre de la carte", image: _jsx(Avatar, { size: "md", fallbackText: "M" }) }), _jsx(Card.Section, { titre: "Titre de la carte", titreIcone: "Calendar", description: "Description de la carte" })] }) }));
|
|
14
16
|
export * as Sources from './A.stories.sources';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const Default: () => string;
|
|
2
|
+
export declare const LinkBlock: () => string;
|
|
2
3
|
export declare const storySources: {
|
|
3
4
|
readonly Default: () => string;
|
|
5
|
+
readonly LinkBlock: () => string;
|
|
4
6
|
};
|
|
5
7
|
export type StorySourceName = keyof typeof storySources;
|
|
6
8
|
//# sourceMappingURL=A.stories.sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/A/A.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAiI,CAAC;AAEtJ,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"A.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/A/A.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAiI,CAAC;AAEtJ,eAAO,MAAM,SAAS,cAAqZ,CAAC;AAE5a,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is generated. Do not edit manually.
|
|
2
2
|
// Source: src/core/A/A.stories.tsx
|
|
3
|
-
export const Default = () => "export const Default = () => (\n <A href={'/ui-kit/components/A'}>\n <Typography>
|
|
3
|
+
export const Default = () => "export const Default = () => (\n <A href={'/ui-kit/components/A'}>\n <Typography>Mon lien</Typography>\n </A>\n);";
|
|
4
|
+
export const LinkBlock = () => "export const LinkBlock = () => (\n <A href={'/ui-kit/components/A'}>\n <Card>\n <Card.Header\n titre=\"Titre de la carte\"\n sousTitre=\"Sous-titre de la carte\"\n image={<Avatar size=\"md\" fallbackText=\"M\" />}\n />\n <Card.Section titre=\"Titre de la carte\" titreIcone=\"Calendar\" description=\"Description de la carte\" />\n </Card>\n </A>\n);";
|
|
4
5
|
export const storySources = {
|
|
5
6
|
Default,
|
|
7
|
+
LinkBlock,
|
|
6
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
tags: "
|
|
3
|
+
tags: "core"[];
|
|
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"> & {
|
|
@@ -11,9 +11,9 @@ declare const _default: {
|
|
|
11
11
|
styleFn: () => string;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
14
|
-
export declare const BoxDefault: () => import("react
|
|
15
|
-
export declare const BoxPadded: () => import("react
|
|
16
|
-
export declare const BoxPaddedWithBackground: () => import("react
|
|
17
|
-
export declare const BoxHovered: () => import("react
|
|
14
|
+
export declare const BoxDefault: () => import("react").JSX.Element;
|
|
15
|
+
export declare const BoxPadded: () => import("react").JSX.Element;
|
|
16
|
+
export declare const BoxPaddedWithBackground: () => import("react").JSX.Element;
|
|
17
|
+
export declare const BoxHovered: () => import("react").JSX.Element;
|
|
18
18
|
export * as Sources from './Box.stories.sources';
|
|
19
19
|
//# sourceMappingURL=Box.stories.d.ts.map
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAIA,wBAQkB;AAElB,eAAO,MAAM,UAAU,mCAItB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAIrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,mCAInC,CAAC;AAEF,eAAO,MAAM,UAAU,mCAItB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Typography } from '../Typography';
|
|
|
3
3
|
import { Box } from './Box';
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Box',
|
|
6
|
-
tags: ['
|
|
6
|
+
tags: ['core'],
|
|
7
7
|
experimental: false,
|
|
8
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
9
|
component: Box,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
|
|
3
|
+
export type HighlightProps = Pick<SyntaxHighlighterProps, 'children'> & {
|
|
4
|
+
language: 'json' | 'typescript' | 'tsx' | 'ruby' | 'bash' | 'plaintext' | 'html';
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
export declare const Highlight: (props: HighlightProps) => React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Highlight.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/Highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAS,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAKzE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,GAAG;IACtE,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;IACjF,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAuGF,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,sBAoB9C,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
4
|
+
import CodeHighlighter from 'react-native-code-highlighter';
|
|
5
|
+
import { Prism } from 'react-syntax-highlighter';
|
|
6
|
+
import { monokai } from 'react-syntax-highlighter/dist/esm/styles/hljs';
|
|
7
|
+
import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
8
|
+
import { useStyles } from './Highlight.styles';
|
|
9
|
+
const BASE_STYLE_KEY = 'base';
|
|
10
|
+
const getNativeStyle = (style = {}) => {
|
|
11
|
+
const nativeStyle = {};
|
|
12
|
+
if (typeof style.color === 'string')
|
|
13
|
+
nativeStyle.color = style.color;
|
|
14
|
+
if (typeof style.background === 'string')
|
|
15
|
+
nativeStyle.backgroundColor = style.background;
|
|
16
|
+
if (typeof style.backgroundColor === 'string')
|
|
17
|
+
nativeStyle.backgroundColor = style.backgroundColor;
|
|
18
|
+
if (style.fontWeight != null)
|
|
19
|
+
nativeStyle.fontWeight = style.fontWeight;
|
|
20
|
+
if (style.fontStyle != null)
|
|
21
|
+
nativeStyle.fontStyle = style.fontStyle;
|
|
22
|
+
return nativeStyle;
|
|
23
|
+
};
|
|
24
|
+
const getSyntaxStyleKeys = (selector) => {
|
|
25
|
+
if (selector.includes('pre[') || selector.includes('code[')) {
|
|
26
|
+
return [BASE_STYLE_KEY];
|
|
27
|
+
}
|
|
28
|
+
return selector
|
|
29
|
+
.split(/[\s>,]+/)
|
|
30
|
+
.flatMap(part => part
|
|
31
|
+
.replace(/^\.token\./, '')
|
|
32
|
+
.replace(/^\./, '')
|
|
33
|
+
.split('.'))
|
|
34
|
+
.map(part => part.replace(/^token-/, ''))
|
|
35
|
+
.filter(Boolean);
|
|
36
|
+
};
|
|
37
|
+
const getNativeSyntaxStyle = (syntaxStyle) => {
|
|
38
|
+
return Object.entries(syntaxStyle).reduce((acc, [selector, tokenStyle]) => {
|
|
39
|
+
for (const key of getSyntaxStyleKeys(selector)) {
|
|
40
|
+
acc[key] = { ...acc[key], ...getNativeStyle(tokenStyle) };
|
|
41
|
+
}
|
|
42
|
+
return acc;
|
|
43
|
+
}, {});
|
|
44
|
+
};
|
|
45
|
+
const trimEdgeNewlines = (value) => value.replace(/^\n+|\n+$/g, '');
|
|
46
|
+
const PrismCodeHighlighter = ({ children, language, style }) => {
|
|
47
|
+
const styles = useStyles();
|
|
48
|
+
const stylesheet = React.useMemo(() => getNativeSyntaxStyle(vscDarkPlus), []);
|
|
49
|
+
const customStyle = React.useMemo(() => getNativeStyle(style), [style]);
|
|
50
|
+
const baseTextStyle = StyleSheet.flatten([{ color: stylesheet[BASE_STYLE_KEY]?.color }, stylesheet[BASE_STYLE_KEY]]);
|
|
51
|
+
const getStylesForNode = (node) => {
|
|
52
|
+
const classes = node.properties?.className ?? [];
|
|
53
|
+
return classes.map(className => stylesheet[String(className)]).filter(Boolean);
|
|
54
|
+
};
|
|
55
|
+
const renderNode = (nodes, keyPrefix = 'row') => nodes.reduce((acc, node, index) => {
|
|
56
|
+
const keyPrefixWithIndex = `${keyPrefix}_${index}`;
|
|
57
|
+
if (node.children) {
|
|
58
|
+
const textStyle = StyleSheet.flatten([baseTextStyle, getStylesForNode(node)]);
|
|
59
|
+
acc.push(_jsx(Text, { style: textStyle, children: renderNode(node.children, `${keyPrefixWithIndex}_child`) }, keyPrefixWithIndex));
|
|
60
|
+
}
|
|
61
|
+
if (node.value) {
|
|
62
|
+
acc.push(trimEdgeNewlines(String(node.value)));
|
|
63
|
+
}
|
|
64
|
+
return acc;
|
|
65
|
+
}, []);
|
|
66
|
+
const renderer = ({ rows }) => (_jsx(ScrollView, { horizontal: true, contentContainerStyle: [styles.highlight, stylesheet[BASE_STYLE_KEY], customStyle], children: _jsx(View, { onStartShouldSetResponder: () => true, children: renderNode(rows) }) }));
|
|
67
|
+
return (_jsx(Prism, { CodeTag: View, PreTag: View, customStyle: {}, language: language, renderer: renderer, style: {}, wrapLongLines: true, children: children }));
|
|
68
|
+
};
|
|
69
|
+
export const Highlight = (props) => {
|
|
70
|
+
const { children, language, style } = props;
|
|
71
|
+
const styles = useStyles();
|
|
72
|
+
if (language === 'tsx') {
|
|
73
|
+
return _jsx(PrismCodeHighlighter, { ...props });
|
|
74
|
+
}
|
|
75
|
+
return (_jsx(CodeHighlighter, { hljsStyle: { ...monokai }, customStyle: { ...styles.highlight, ...style, width: '100%', padding: 0 }, containerStyle: { ...styles.highlight }, language: language, wrapLongLines: true, children: children }));
|
|
76
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: "core"[];
|
|
4
|
+
experimental: true;
|
|
5
|
+
description: string;
|
|
6
|
+
component: (props: import("./Highlight").HighlightProps) => import("react").JSX.Element;
|
|
7
|
+
styleFn: () => {
|
|
8
|
+
highlightContainer: {
|
|
9
|
+
width: "100%";
|
|
10
|
+
};
|
|
11
|
+
highlight: {
|
|
12
|
+
overflow: "scroll";
|
|
13
|
+
borderRadius: number;
|
|
14
|
+
padding: number;
|
|
15
|
+
width: "100%";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const HighlightJSON: () => import("react").JSX.Element;
|
|
21
|
+
export declare const HighlightTypescript: () => import("react").JSX.Element;
|
|
22
|
+
export declare const HighlightTSX: () => import("react").JSX.Element;
|
|
23
|
+
export declare const HighlightRuby: () => import("react").JSX.Element;
|
|
24
|
+
export declare const HighlightHTML: () => import("react").JSX.Element;
|
|
25
|
+
export * as Sources from './Highlight.stories.sources';
|
|
26
|
+
//# sourceMappingURL=Highlight.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Highlight.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/Highlight.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAIA,wBAOkB;AAElB,eAAO,MAAM,aAAa,mCAEzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,mCAE/B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAExB,CAAC;AAeF,eAAO,MAAM,aAAa,mCAA0D,CAAC;AAerF,eAAO,MAAM,aAAa,mCAA0D,CAAC;AAErF,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Highlight } from './Highlight';
|
|
3
|
+
import { useStyles } from './Highlight.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Highlight',
|
|
6
|
+
tags: ['core'],
|
|
7
|
+
experimental: true,
|
|
8
|
+
description: 'Affiche du code en typescript, html, json, etc. Composant de type Light (react-syntax-highlighter).',
|
|
9
|
+
component: Highlight,
|
|
10
|
+
styleFn: useStyles,
|
|
11
|
+
};
|
|
12
|
+
export const HighlightJSON = () => (_jsx(Highlight, { language: "json", children: JSON.stringify({ id: 'user_id_1', name: 'Jean-Pierre', age: 20 }, null, 2) }));
|
|
13
|
+
export const HighlightTypescript = () => (_jsx(Highlight, { language: "typescript", children: "const id: string = 'user_id_1';" }));
|
|
14
|
+
export const HighlightTSX = () => (_jsx(Highlight, { language: "tsx", children: `<Typography tag="span" p={spacing('100')}>Bonjour</Typography>` }));
|
|
15
|
+
const rubyCode = `# The Greeter class
|
|
16
|
+
class Greeter
|
|
17
|
+
def initialize(name)
|
|
18
|
+
@name = name.capitalize
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def salute
|
|
22
|
+
puts "Hello #{@name}!"
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
g = Greeter.new("world")
|
|
27
|
+
g.salute`;
|
|
28
|
+
export const HighlightRuby = () => _jsx(Highlight, { language: "ruby", children: rubyCode });
|
|
29
|
+
const htmlCode = `<!DOCTYPE html>
|
|
30
|
+
<title>Title</title>
|
|
31
|
+
|
|
32
|
+
<style>body {width: 500px;}</style>
|
|
33
|
+
|
|
34
|
+
<script type="application/javascript">
|
|
35
|
+
function $init() {return true;}
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<body>
|
|
39
|
+
<p checked class="title" id='title'>Title</p>
|
|
40
|
+
<!-- here goes the rest of the page -->
|
|
41
|
+
</body>`;
|
|
42
|
+
export const HighlightHTML = () => _jsx(Highlight, { language: "html", children: htmlCode });
|
|
43
|
+
export * as Sources from './Highlight.stories.sources';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const HighlightJSON: () => string;
|
|
2
|
+
export declare const HighlightTypescript: () => string;
|
|
3
|
+
export declare const HighlightTSX: () => string;
|
|
4
|
+
export declare const HighlightRuby: () => string;
|
|
5
|
+
export declare const HighlightHTML: () => string;
|
|
6
|
+
export declare const storySources: {
|
|
7
|
+
readonly HighlightJSON: () => string;
|
|
8
|
+
readonly HighlightTypescript: () => string;
|
|
9
|
+
readonly HighlightTSX: () => string;
|
|
10
|
+
readonly HighlightRuby: () => string;
|
|
11
|
+
readonly HighlightHTML: () => string;
|
|
12
|
+
};
|
|
13
|
+
export type StorySourceName = keyof typeof storySources;
|
|
14
|
+
//# sourceMappingURL=Highlight.stories.sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Highlight.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/Highlight.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAA4K,CAAC;AAEvM,eAAO,MAAM,mBAAmB,cAAiJ,CAAC;AAElL,eAAO,MAAM,YAAY,cAAkK,CAAC;AAE5L,eAAO,MAAM,aAAa,cAAkG,CAAC;AAE7H,eAAO,MAAM,aAAa,cAAkG,CAAC;AAE7H,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file is generated. Do not edit manually.
|
|
2
|
+
// Source: src/core/Highlight/Highlight.stories.tsx
|
|
3
|
+
export const HighlightJSON = () => "export const HighlightJSON = () => (\n <Highlight language=\"json\">{JSON.stringify({ id: 'user_id_1', name: 'Jean-Pierre', age: 20 }, null, 2)}</Highlight>\n);";
|
|
4
|
+
export const HighlightTypescript = () => "export const HighlightTypescript = () => (\n <Highlight language=\"typescript\">{\"const id: string = 'user_id_1';\"}</Highlight>\n);";
|
|
5
|
+
export const HighlightTSX = () => "export const HighlightTSX = () => (\n <Highlight language=\"tsx\">{`<Typography tag=\"span\" p={spacing('100')}>Bonjour</Typography>`}</Highlight>\n);";
|
|
6
|
+
export const HighlightRuby = () => "export const HighlightRuby = () => <Highlight language=\"ruby\">{rubyCode}</Highlight>;";
|
|
7
|
+
export const HighlightHTML = () => "export const HighlightHTML = () => <Highlight language=\"html\">{htmlCode}</Highlight>;";
|
|
8
|
+
export const storySources = {
|
|
9
|
+
HighlightJSON,
|
|
10
|
+
HighlightTypescript,
|
|
11
|
+
HighlightTSX,
|
|
12
|
+
HighlightRuby,
|
|
13
|
+
HighlightHTML,
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Highlight.styles.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/Highlight.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;CAUnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Highlight';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageProps as ExpoImageProps } from 'expo-image';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
type Dimension = number | `${number}%`;
|
|
3
4
|
export type ImageProps = ExpoImageProps & {
|
|
4
5
|
width?: Dimension;
|
|
@@ -6,6 +7,6 @@ export type ImageProps = ExpoImageProps & {
|
|
|
6
7
|
maxWidth?: number;
|
|
7
8
|
maxHeight?: number;
|
|
8
9
|
};
|
|
9
|
-
export declare const Image: (props: ImageProps) =>
|
|
10
|
+
export declare const Image: (props: ImageProps) => React.JSX.Element;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/core/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,UAAU,IAAI,cAAc,EAAsB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/core/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,UAAU,IAAI,cAAc,EAAsB,MAAM,YAAY,CAAC;AAClG,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,KAAK,SAAS,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC;AAGvC,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACxC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,UAAU,sBAiGtC,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
tags: "
|
|
4
|
-
experimental:
|
|
3
|
+
tags: "core"[];
|
|
4
|
+
experimental: false;
|
|
5
5
|
description: string;
|
|
6
|
-
component: (props: import("./Image").ImageProps) => import("react
|
|
6
|
+
component: (props: import("./Image").ImageProps) => import("react").JSX.Element;
|
|
7
7
|
styleFn: () => string;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
10
|
-
export declare const Cover: () => import("react
|
|
11
|
-
export declare const MaxWidth: () => import("react
|
|
12
|
-
export declare const MaxHeight: () => import("react
|
|
13
|
-
export declare const MaxWidthAndHeight: () => import("react
|
|
14
|
-
export declare const contain: () => import("react
|
|
15
|
-
export declare const cover: () => import("react
|
|
16
|
-
export declare const fill: () => import("react
|
|
17
|
-
export declare const transition: () => import("react
|
|
18
|
-
export declare const withAnotherImage: () => import("react
|
|
19
|
-
export declare const responsiveImage: () => import("react
|
|
20
|
-
export declare const ImageNotFound: () => import("react
|
|
10
|
+
export declare const Cover: () => import("react").JSX.Element;
|
|
11
|
+
export declare const MaxWidth: () => import("react").JSX.Element;
|
|
12
|
+
export declare const MaxHeight: () => import("react").JSX.Element;
|
|
13
|
+
export declare const MaxWidthAndHeight: () => import("react").JSX.Element;
|
|
14
|
+
export declare const contain: () => import("react").JSX.Element;
|
|
15
|
+
export declare const cover: () => import("react").JSX.Element;
|
|
16
|
+
export declare const fill: () => import("react").JSX.Element;
|
|
17
|
+
export declare const transition: () => import("react").JSX.Element;
|
|
18
|
+
export declare const withAnotherImage: () => import("react").JSX.Element;
|
|
19
|
+
export declare const responsiveImage: () => import("react").JSX.Element;
|
|
20
|
+
export declare const ImageNotFound: () => import("react").JSX.Element;
|
|
21
21
|
export * as Sources from './Image.stories.sources';
|
|
22
22
|
//# sourceMappingURL=Image.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Image/Image.stories.tsx"],"names":[],"mappings":";;;;;;;;AAKA,wBAQkB;AAElB,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"Image.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Image/Image.stories.tsx"],"names":[],"mappings":";;;;;;;;AAKA,wBAQkB;AAElB,eAAO,MAAM,KAAK,mCAwBjB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAOpB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAOrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAO7B,CAAC;AAEF,eAAO,MAAM,OAAO,mCAoBnB,CAAC;AAEF,eAAO,MAAM,KAAK,mCAOjB,CAAC;AAEF,eAAO,MAAM,IAAI,mCAOhB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAOtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAa5B,CAAC;AAEF,eAAO,MAAM,eAAe,mCAS3B,CAAC;AAEF,eAAO,MAAM,aAAa,mCAOzB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC"}
|
|
@@ -4,8 +4,8 @@ import { Typography } from '../Typography';
|
|
|
4
4
|
import { Image } from './Image';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Image',
|
|
7
|
-
tags: ['
|
|
8
|
-
experimental:
|
|
7
|
+
tags: ['core'],
|
|
8
|
+
experimental: false,
|
|
9
9
|
description: "Permet d'afficher une image de manière responsive que ce soit sur mobile ou desktop. Actuellement l'image ne peut que être fill, il faudrait développer les autres en se basant sur l'élément <img> HTML. https://www.w3schools.com/csS/css3_object-fit.asp",
|
|
10
10
|
component: Image,
|
|
11
11
|
styleFn: () => 'Aucun style appliqué',
|
|
@@ -14,5 +14,5 @@ export type LottieProps = (LottieLoopProps | LottieOneTimeProps) & {
|
|
|
14
14
|
style: React.ComponentProps<typeof LottieView>['style'];
|
|
15
15
|
source: React.ComponentProps<typeof LottieView>['source'];
|
|
16
16
|
};
|
|
17
|
-
export declare const Lottie: (props: LottieProps) =>
|
|
17
|
+
export declare const Lottie: (props: LottieProps) => React.JSX.Element;
|
|
18
18
|
//# sourceMappingURL=Lottie.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lottie.d.ts","sourceRoot":"","sources":["../../../src/core/Lottie/Lottie.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,SAAS,CAAC;AACrE,eAAO,MAAM,sBAAsB,GAAI,WAAW,OAAO,KAAG,SAAS,IAAI,oBAMxE,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAAC;CAC9E,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,KAAK,CAAC;IACZ,iBAAiB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,mBAAmB,CAAC,CAAC;CAClF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,eAAe,GAAG,kBAAkB,CAAC,GAAG;IACjE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,
|
|
1
|
+
{"version":3,"file":"Lottie.d.ts","sourceRoot":"","sources":["../../../src/core/Lottie/Lottie.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,SAAS,CAAC;AACrE,eAAO,MAAM,sBAAsB,GAAI,WAAW,OAAO,KAAG,SAAS,IAAI,oBAMxE,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAAC;CAC9E,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,KAAK,CAAC;IACZ,iBAAiB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,mBAAmB,CAAC,CAAC;CAClF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,eAAe,GAAG,kBAAkB,CAAC,GAAG;IACjE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,sBAUxC,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
tags: "
|
|
4
|
-
experimental:
|
|
3
|
+
tags: "core"[];
|
|
4
|
+
experimental: false;
|
|
5
5
|
description: string;
|
|
6
|
-
component: (props: import("./Lottie").LottieProps) => import("react
|
|
6
|
+
component: (props: import("./Lottie").LottieProps) => import("react").JSX.Element;
|
|
7
7
|
styleFn: () => string;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
10
|
-
export declare const Default: () => import("react
|
|
11
|
-
export declare const Size: () => import("react
|
|
12
|
-
export declare const Loop: () => import("react
|
|
13
|
-
export declare const OneTime: () => import("react
|
|
10
|
+
export declare const Default: () => import("react").JSX.Element;
|
|
11
|
+
export declare const Size: () => import("react").JSX.Element;
|
|
12
|
+
export declare const Loop: () => import("react").JSX.Element;
|
|
13
|
+
export declare const OneTime: () => import("react").JSX.Element;
|
|
14
14
|
export * as Sources from './Lottie.stories.sources';
|
|
15
15
|
//# sourceMappingURL=Lottie.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lottie.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Lottie/Lottie.stories.tsx"],"names":[],"mappings":";;;;;;;;AAIA,wBAOkB;AAElB,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"Lottie.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Lottie/Lottie.stories.tsx"],"names":[],"mappings":";;;;;;;;AAIA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAAiF,CAAC;AAEtG,eAAO,MAAM,IAAI,mCAAiF,CAAC;AAEnG,eAAO,MAAM,IAAI,mCAEhB,CAAC;AAEF,eAAO,MAAM,OAAO,mCAEnB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC"}
|
|
@@ -3,8 +3,8 @@ import dotsAnimation from './animations/dots.json';
|
|
|
3
3
|
import { Lottie } from './Lottie';
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Lottie',
|
|
6
|
-
tags: ['
|
|
7
|
-
experimental:
|
|
6
|
+
tags: ['core'],
|
|
7
|
+
experimental: false,
|
|
8
8
|
description: 'Lottie animations',
|
|
9
9
|
component: Lottie,
|
|
10
10
|
styleFn: () => 'Aucun style',
|
package/dist/core/Map/Map.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../src/core/Map/Map.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,eAAO,MAAM,GAAG,GAAI,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../src/core/Map/Map.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,eAAO,MAAM,GAAG,GAAI,GAAG,QAAQ,gCAM9B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
tags: "
|
|
4
|
-
experimental:
|
|
3
|
+
tags: "core"[];
|
|
4
|
+
experimental: false;
|
|
5
5
|
webOnly: true;
|
|
6
6
|
description: string;
|
|
7
7
|
props: import("zod/v4/core").ZodStandardJSONSchemaPayload<import("zod").ZodObject<{
|
|
@@ -21,7 +21,7 @@ declare const _default: {
|
|
|
21
21
|
zoom: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
22
22
|
fitToMarkers: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
23
23
|
}, import("zod/v4/core").$strip>>;
|
|
24
|
-
component: (_: import("./Map.props").MapProps) => import("react
|
|
24
|
+
component: (_: import("./Map.props").MapProps) => import("react").JSX.Element;
|
|
25
25
|
styleFn: () => {
|
|
26
26
|
container: {
|
|
27
27
|
width: "100%";
|
|
@@ -32,7 +32,7 @@ declare const _default: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
export default _default;
|
|
35
|
-
export declare function ParisMap(): import("react
|
|
36
|
-
export declare function MapMarker(): import("react
|
|
37
|
-
export declare function MapCenterZoomMarker(): import("react
|
|
35
|
+
export declare function ParisMap(): import("react").JSX.Element;
|
|
36
|
+
export declare function MapMarker(): import("react").JSX.Element;
|
|
37
|
+
export declare function MapCenterZoomMarker(): import("react").JSX.Element;
|
|
38
38
|
//# sourceMappingURL=Map.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Map/Map.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBASkB;AAElB,wBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"file":"Map.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Map/Map.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBASkB;AAElB,wBAAgB,QAAQ,gCAOvB;AAED,wBAAgB,SAAS,gCAIxB;AAED,wBAAgB,mBAAmB,gCAQlC"}
|
|
@@ -5,8 +5,8 @@ import { MapPropsJSON } from './Map.props';
|
|
|
5
5
|
import { useStyles } from './Map.styles';
|
|
6
6
|
export default {
|
|
7
7
|
title: 'Map',
|
|
8
|
-
tags: ['
|
|
9
|
-
experimental:
|
|
8
|
+
tags: ['core'],
|
|
9
|
+
experimental: false,
|
|
10
10
|
webOnly: true,
|
|
11
11
|
description: 'Carte interactive (Google Map)',
|
|
12
12
|
props: MapPropsJSON,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { MapProps } from './Map.props';
|
|
2
3
|
type GoogleNamespace = {
|
|
3
4
|
maps: any;
|
|
@@ -7,6 +8,6 @@ declare global {
|
|
|
7
8
|
google?: GoogleNamespace;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
|
-
export declare const Map: (props: MapProps) =>
|
|
11
|
+
export declare const Map: (props: MapProps) => React.JSX.Element;
|
|
11
12
|
export {};
|
|
12
13
|
//# sourceMappingURL=Map.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.web.d.ts","sourceRoot":"","sources":["../../../src/core/Map/Map.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Map.web.d.ts","sourceRoot":"","sources":["../../../src/core/Map/Map.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAU,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE/C,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,CAAC,EAAE,eAAe,CAAC;KAC1B;CACF;AAqCD,eAAO,MAAM,GAAG,GAAI,OAAO,QAAQ,sBAuGlC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MetabaseProps } from './Metabase.props';
|
|
2
|
-
export declare const Metabase: (props: MetabaseProps) => import("react
|
|
2
|
+
export declare const Metabase: (props: MetabaseProps) => import("react").JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=Metabase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Metabase.d.ts","sourceRoot":"","sources":["../../../src/core/Metabase/Metabase.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,
|
|
1
|
+
{"version":3,"file":"Metabase.d.ts","sourceRoot":"","sources":["../../../src/core/Metabase/Metabase.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,uCAiB5C,CAAC"}
|