@alveole/components 2.0.0-alpha.5 → 2.0.0-alpha.7
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 +3 -1
- package/dist/core/A/A.d.ts.map +1 -1
- package/dist/core/A/A.js +2 -2
- package/dist/core/Box/Box.d.ts +8 -8
- package/dist/core/Box/Box.d.ts.map +1 -1
- package/dist/core/Box/Box.js +6 -3
- package/dist/core/Box/Box.stories.d.ts +5 -5
- package/dist/core/Box/Box.stories.js +1 -1
- package/dist/core/Box/Box.stories.sources.d.ts.map +1 -1
- package/dist/core/Box/Box.stories.sources.js +1 -1
- package/dist/core/Box/Box.types.d.ts +3 -3
- package/dist/core/Box/Box.types.d.ts.map +1 -1
- package/dist/core/Form/Form.web.d.ts.map +1 -1
- package/dist/core/Form/Form.web.js +4 -1
- package/dist/core/Grid/Grid.stories.d.ts +4 -4
- package/dist/core/Map/useGoogleMap.d.ts +2 -1
- package/dist/core/Map/useGoogleMap.d.ts.map +1 -1
- package/dist/core/Map/useGoogleMap.js +3 -2
- package/dist/core/MarkdownDescription/MarkdownDescription.d.ts.map +1 -1
- package/dist/core/MarkdownDescription/MarkdownDescription.js +0 -4
- package/dist/core/MarkdownDescription/markdownComponents.d.ts +0 -6
- package/dist/core/MarkdownDescription/markdownComponents.d.ts.map +1 -1
- package/dist/core/MarkdownDescription/markdownComponents.js +3 -2
- package/dist/core/Page/PageBackground.stories.d.ts +24 -0
- package/dist/core/Page/PageBackground.stories.d.ts.map +1 -0
- package/dist/core/Page/PageBackground.stories.js +25 -0
- package/dist/core/Page/PageBackground.stories.sources.d.ts +6 -0
- package/dist/core/Page/PageBackground.stories.sources.d.ts.map +1 -0
- package/dist/core/Page/PageBackground.stories.sources.js +6 -0
- package/dist/core/Page/PageContentScrollable.d.ts +5 -5
- package/dist/core/Page/index.d.ts +1 -0
- package/dist/core/Page/index.d.ts.map +1 -1
- package/dist/core/Page/index.js +1 -0
- package/dist/core/Typography/Typography.d.ts +5 -5
- package/dist/core/Typography/Typography.d.ts.map +1 -1
- package/dist/core/Typography/Typography.js +9 -4
- package/dist/core/Typography/Typography.stories.d.ts +2 -2
- package/dist/core/Typography/couleurDuTexte.d.ts +1 -1
- package/dist/core/Typography/couleurDuTexte.d.ts.map +1 -1
- package/dist/core/UpdateRequired/UpdateRequired.d.ts.map +1 -1
- package/dist/core/UpdateRequired/UpdateRequired.js +4 -1
- package/dist/core/animation/animer.d.ts +9 -0
- package/dist/core/animation/animer.d.ts.map +1 -0
- package/dist/core/animation/animer.js +5 -0
- package/dist/core/styleTamagui/aplatirStyle.d.ts +2 -0
- package/dist/core/styleTamagui/aplatirStyle.d.ts.map +1 -0
- package/dist/core/styleTamagui/aplatirStyle.js +9 -0
- package/dist/core/styleTamagui/definis.d.ts +4 -0
- package/dist/core/styleTamagui/definis.d.ts.map +1 -0
- package/dist/core/styleTamagui/definis.js +3 -0
- package/dist/core/styleTamagui/flexDuWeb.d.ts +23 -0
- package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -0
- package/dist/core/styleTamagui/flexDuWeb.js +19 -0
- package/dist/core/styleTamagui/fondAuSurvol.d.ts +14 -0
- package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -0
- package/dist/core/styleTamagui/fondAuSurvol.js +8 -0
- package/dist/core/styleTamagui/sansEstompage.d.ts +4 -0
- package/dist/core/styleTamagui/sansEstompage.d.ts.map +1 -0
- package/dist/core/styleTamagui/sansEstompage.js +4 -0
- package/dist/core/styleTamagui/soulignement.d.ts +11 -0
- package/dist/core/styleTamagui/soulignement.d.ts.map +1 -0
- package/dist/core/styleTamagui/soulignement.js +5 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/pdfjs/pdf.min.mjs +4 -5
- package/dist/pdfjs/pdf.worker.min.mjs +4 -5
- package/dist/stories/index.d.ts +1 -0
- package/dist/stories/index.d.ts.map +1 -1
- package/dist/stories/index.js +1 -0
- package/dist/ui/Accordion/AccordionItem.d.ts.map +1 -1
- package/dist/ui/Accordion/AccordionItem.js +2 -1
- package/dist/ui/ActionMenu/ActionMenuItem.d.ts.map +1 -1
- package/dist/ui/ActionMenu/ActionMenuItem.js +5 -5
- package/dist/ui/Avatar/Avatar.d.ts.map +1 -1
- package/dist/ui/Avatar/Avatar.js +6 -1
- package/dist/ui/Badge/Badge.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.js +3 -2
- package/dist/ui/Badge/Badge.stories.d.ts +16 -12
- package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.styles.d.ts +16 -12
- package/dist/ui/Badge/Badge.styles.d.ts.map +1 -1
- package/dist/ui/Badge/Badge.styles.js +4 -2
- package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/ui/BottomSheet/BottomSheet.js +2 -1
- package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +6 -4
- package/dist/ui/BottomSheet/BottomSheet.stories.d.ts.map +1 -1
- package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +6 -4
- package/dist/ui/BottomSheet/BottomSheet.styles.d.ts.map +1 -1
- package/dist/ui/BottomSheet/BottomSheet.styles.js +6 -4
- package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.js +2 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +5 -4
- package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +5 -4
- package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -1
- package/dist/ui/Breadcrumbs/Breadcrumbs.styles.js +1 -4
- package/dist/ui/Button/ButtonContent.d.ts.map +1 -1
- package/dist/ui/Button/ButtonContent.js +7 -3
- package/dist/ui/Button/buttonIconStyling.d.ts +2 -2
- package/dist/ui/Button/buttonStyling.d.ts +9 -3
- package/dist/ui/Button/buttonStyling.d.ts.map +1 -1
- package/dist/ui/Button/buttonStyling.js +7 -3
- package/dist/ui/Checkbox/Checkbox.d.ts +6 -6
- package/dist/ui/Checkbox/Checkbox.stories.d.ts +7 -7
- package/dist/ui/Checkbox/Checkbox.styles.d.ts +1 -1
- package/dist/ui/Checkbox/Checkbox.styles.d.ts.map +1 -1
- package/dist/ui/Checkbox/Checkbox.styles.js +3 -4
- package/dist/ui/Checkbox/CheckboxContainer.d.ts +6 -6
- package/dist/ui/Checkbox/CheckboxContainer.d.ts.map +1 -1
- package/dist/ui/Checkbox/CheckboxContainer.js +4 -8
- package/dist/ui/Checkbox/CheckboxLabel.d.ts +1 -1
- package/dist/ui/Checkbox/CheckboxLabel.d.ts.map +1 -1
- package/dist/ui/Checkbox/CheckboxLabel.js +2 -2
- package/dist/ui/DataTable/DataTable.demo.deployments.js +1 -1
- package/dist/ui/DataTable/DataTable.stories.d.ts +3 -1
- package/dist/ui/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/ui/DataTable/DataTable.styles.d.ts +3 -1
- package/dist/ui/DataTable/DataTable.styles.d.ts.map +1 -1
- package/dist/ui/DataTable/DataTable.styles.js +5 -1
- package/dist/ui/DataTable/DataTableCell.js +1 -1
- package/dist/ui/DataTable/DataTableRow.d.ts.map +1 -1
- package/dist/ui/DataTable/DataTableRow.js +4 -2
- package/dist/ui/DataTable/dataTableCellStyle.d.ts +2 -2
- package/dist/ui/DataTable/dataTableCellStyle.js +1 -1
- package/dist/ui/DateInput/DateInput.ios.d.ts +1 -1
- package/dist/ui/DateInput/DateInput.stories.d.ts +1 -1
- package/dist/ui/DateInput/DateInput.web.d.ts +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +1 -0
- package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.js +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +1 -0
- package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/DocumentViewer.styles.js +3 -0
- package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/pointeurWeb.d.ts +13 -3
- package/dist/ui/DocumentViewer/pointeurWeb.d.ts.map +1 -1
- package/dist/ui/DocumentViewer/pointeurWeb.js +1 -1
- package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts +2 -2
- package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts.map +1 -1
- package/dist/ui/FilterDate/FilterDate.d.ts +1 -1
- package/dist/ui/FilterDate/FilterDate.d.ts.map +1 -1
- package/dist/ui/Header/Header.d.ts.map +1 -1
- package/dist/ui/Header/Header.js +1 -1
- package/dist/ui/Link/Link.d.ts.map +1 -1
- package/dist/ui/Link/Link.js +2 -1
- package/dist/ui/Link/Link.stories.d.ts +0 -4
- package/dist/ui/Link/Link.stories.d.ts.map +1 -1
- package/dist/ui/Link/Link.styles.d.ts +0 -4
- package/dist/ui/Link/Link.styles.d.ts.map +1 -1
- package/dist/ui/Link/Link.styles.js +0 -4
- package/dist/ui/ListItem/ListItem.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.js +2 -1
- package/dist/ui/ListItem/ListItem.stories.d.ts +4 -2
- package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.styles.d.ts +4 -2
- package/dist/ui/ListItem/ListItem.styles.d.ts.map +1 -1
- package/dist/ui/ListItem/ListItem.styles.js +6 -2
- package/dist/ui/LucideIcon/catalogueLucide.d.ts +54 -0
- package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
- package/dist/ui/LucideIcon/vendor/lab.js +1 -1
- package/dist/ui/LucideIcon/vendor/lucide.d.ts +1769 -1587
- package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +1 -0
- package/dist/ui/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
- package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +1 -0
- package/dist/ui/ProgressBar/ProgressBar.styles.d.ts.map +1 -1
- package/dist/ui/ProgressBar/ProgressBar.styles.js +2 -0
- package/dist/ui/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/ui/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +2 -4
- package/dist/ui/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +1 -3
- package/dist/ui/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroup.styles.js +3 -6
- package/dist/ui/RadioGroup/RadioGroupCard.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroupCard.js +2 -2
- package/dist/ui/RadioGroup/RadioGroupItem.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioGroupItem.js +2 -2
- package/dist/ui/RadioGroup/RadioInput.d.ts.map +1 -1
- package/dist/ui/RadioGroup/RadioInput.js +5 -7
- package/dist/ui/RadioGroup/index.d.ts +1 -1
- package/dist/ui/Select/SelectItem.js +1 -1
- package/dist/ui/Select/SelectList.styles.d.ts +1 -9
- package/dist/ui/Select/SelectList.styles.d.ts.map +1 -1
- package/dist/ui/Select/SelectList.styles.js +5 -6
- package/dist/ui/Select/selectItemStyle.d.ts +4 -4
- package/dist/ui/Select/selectItemStyle.d.ts.map +1 -1
- package/dist/ui/Select/selectItemStyle.js +7 -3
- package/dist/ui/Select/useDefilementVersSelection.d.ts +3 -2
- package/dist/ui/Select/useDefilementVersSelection.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.stories.d.ts +0 -7
- package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.styles.d.ts +0 -7
- package/dist/ui/Sidebar/Sidebar.styles.d.ts.map +1 -1
- package/dist/ui/Sidebar/Sidebar.styles.js +0 -3
- package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
- package/dist/ui/Sidebar/SidebarItem.js +13 -9
- package/dist/ui/Signature/Signature.d.ts +1 -1
- package/dist/ui/Signature/Signature.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.stories.d.ts +1 -0
- package/dist/ui/Skeleton/Skeleton.stories.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.styles.d.ts +1 -0
- package/dist/ui/Skeleton/Skeleton.styles.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.styles.js +2 -0
- package/dist/ui/Switch/Switch.d.ts +1 -1
- package/dist/ui/Switch/Switch.d.ts.map +1 -1
- package/dist/ui/Switch/Switch.js +11 -8
- package/dist/ui/Switch/Switch.stories.d.ts +3 -2
- package/dist/ui/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/ui/Switch/Switch.styles.d.ts +2 -1
- package/dist/ui/Switch/Switch.styles.d.ts.map +1 -1
- package/dist/ui/Switch/Switch.styles.js +5 -4
- package/dist/ui/Tabs/Tabs.d.ts +1 -1
- package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.js +1 -1
- package/dist/ui/Tabs/Tabs.stories.d.ts +26 -5
- package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.styles.d.ts +26 -5
- package/dist/ui/Tabs/Tabs.styles.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.styles.js +6 -2
- package/dist/ui/Tabs/TabsTab.js +1 -1
- package/dist/ui/Tabs/useTabsState.d.ts +1 -1
- package/dist/ui/Tabs/useTabsState.d.ts.map +1 -1
- package/dist/ui/Tabs/useTabsState.js +7 -4
- package/dist/ui/Toast/Toast.d.ts +3 -3
- package/dist/ui/Toast/Toast.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.js +5 -7
- package/dist/ui/Toast/Toast.stories.d.ts +10 -7
- package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/ui/Toast/Toast.stories.js +12 -9
- package/dist/ui/Toast/Toast.stories.sources.js +1 -1
- package/dist/ui/Toast/ToastContext.d.ts +1 -0
- package/dist/ui/Toast/ToastContext.d.ts.map +1 -1
- package/dist/ui/Toast/ToastContext.js +1 -0
- package/dist/ui/Toast/Toasts.d.ts +2 -1
- package/dist/ui/Toast/Toasts.d.ts.map +1 -1
- package/dist/ui/Toast/Toasts.js +9 -5
- package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +2 -2
- package/package.json +27 -27
- package/dist/core/styleTamagui/versStyleTamagui.d.ts +0 -10
- package/dist/core/styleTamagui/versStyleTamagui.d.ts.map +0 -1
- package/dist/core/styleTamagui/versStyleTamagui.js +0 -8
- package/dist/ui/Toast/ToastBridge.d.ts +0 -11
- package/dist/ui/Toast/ToastBridge.d.ts.map +0 -1
- package/dist/ui/Toast/ToastBridge.js +0 -19
package/dist/core/A/A.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Href } from 'expo-router';
|
|
2
2
|
import React, { CSSProperties } from 'react';
|
|
3
|
+
import { BoxProps } from '../Box';
|
|
3
4
|
import { CibleDuLien } from './ouvertureDuLien';
|
|
4
5
|
export type CanAccessHref = (href: Href & string) => boolean;
|
|
5
6
|
/** Contexte optionnel pour fournir la logique d'accès aux liens (ex. droits métier). Non fourni = tous les liens sont cliquables. */
|
|
@@ -11,7 +12,8 @@ export type AProps = React.PropsWithChildren<{
|
|
|
11
12
|
/** default: "push" */
|
|
12
13
|
direction?: 'push' | 'replace' | 'dismiss';
|
|
13
14
|
style?: CSSProperties;
|
|
14
|
-
|
|
15
|
+
/** Fond du lien, clauses de Tamagui comprises (`{ hover: ... }`, ADR 0031). */
|
|
16
|
+
backgroundColor?: BoxProps['backgroundColor'];
|
|
15
17
|
/** Override la logique d'accès (sinon utilise LinkAccessContext si fourni, sinon accès autorisé). */
|
|
16
18
|
canAccessHref?: CanAccessHref;
|
|
17
19
|
/** Marque le lien comme représentant l'emplacement courant. "page" pour la page affichée. */
|
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":"AACA,OAAO,EAAE,IAAI,EAAQ,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,EAAE,aAAa,EAA6B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"A.d.ts","sourceRoot":"","sources":["../../../src/core/A/A.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAQ,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,EAAE,aAAa,EAA6B,MAAM,OAAO,CAAC;AAExE,OAAO,EAAO,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAmB,MAAM,mBAAmB,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,KAAK,OAAO,CAAC;AAE7D,qIAAqI;AACrI,eAAO,MAAM,iBAAiB,qCAA4C,CAAC;AAE3E,0GAA0G;AAC1G,eAAO,MAAM,gBAAgB,GAAI,gBAAgB,aAAa,KAAG,aAGhE,CAAC;AAEF,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,+EAA+E;IAC/E,eAAe,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC9C,qGAAqG;IACrG,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,6FAA6F;IAC7F,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;IAC7D,gIAAgI;IAChI,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC,CAAC;AAEH,eAAO,MAAM,CAAC,GAAI,OAAO,MAAM,sBA8D9B,CAAC"}
|
package/dist/core/A/A.js
CHANGED
|
@@ -15,7 +15,7 @@ export const useCanAccessHref = (canAccessProp) => {
|
|
|
15
15
|
return canAccessProp ?? canAccessFromContext ?? (() => true);
|
|
16
16
|
};
|
|
17
17
|
export const A = (props) => {
|
|
18
|
-
const { children, href, direction = 'push', style,
|
|
18
|
+
const { children, href, direction = 'push', style, backgroundColor, ariaCurrent, target, canAccessHref: canAccessProp, } = props;
|
|
19
19
|
const styles = useStyles();
|
|
20
20
|
// Sur le web, ce Pressable rend le `<a>` lui-meme : il porte donc une couleur de texte, que
|
|
21
21
|
// `ViewStyle` ne connait pas. `TextStyle` l'etend et la decrit.
|
|
@@ -23,7 +23,7 @@ export const A = (props) => {
|
|
|
23
23
|
const canAccess = useCanAccessHref(canAccessProp);
|
|
24
24
|
const fill = useContext(GridColumnContext) ? styles.fill : undefined;
|
|
25
25
|
const { navigateurIntegre, propsDuPressable, annonce } = ouvertureDuLien(href, target);
|
|
26
|
-
const contenu = (_jsxs(Box, { tag: "a-pressable", style: { ...styles.pressable, ...fill, ...style },
|
|
26
|
+
const contenu = (_jsxs(Box, { tag: "a-pressable", style: { ...styles.pressable, ...fill, ...style }, backgroundColor: backgroundColor, children: [children, annonce] }));
|
|
27
27
|
const lienNavigateurIntegre = (_jsx(Pressable, { accessibilityRole: "link", "aria-current": ariaCurrent, ...propsDuPressable, style: { ...styleDuLien, ...fill }, ...focusRingProps(), children: contenu }));
|
|
28
28
|
const expoLink = (_jsx(Link, { href: href, asChild: true, replace: direction === 'replace', push: direction === 'push', dismissTo: direction === 'dismiss', children: _jsx(Pressable, { accessibilityRole: "link", "aria-current": ariaCurrent, ...propsDuPressable, style: { ...styleDuLien, ...fill }, ...focusRingProps(), children: contenu }) }));
|
|
29
29
|
if (!canAccess(href))
|
package/dist/core/Box/Box.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RNTamaguiViewNonStyleProps, TamaguiElement, ViewProps as TamaguiViewProps } from '@tamagui/core';
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { BoxStyle } from './Box.types';
|
|
4
|
-
export type BoxProps =
|
|
5
|
-
|
|
4
|
+
export type BoxProps = Omit<TamaguiViewProps, keyof BoxStyle | 'tag' | 'style'> & Omit<RNTamaguiViewNonStyleProps, 'tag'> & BoxStyle & {
|
|
5
|
+
tag?: string;
|
|
6
6
|
};
|
|
7
7
|
export type BoxElement = TamaguiElement;
|
|
8
|
-
export declare const Box: React.ForwardRefExoticComponent<
|
|
8
|
+
export declare const Box: React.ForwardRefExoticComponent<Omit<TamaguiViewProps, "flex" | "backgroundColor" | "borderColor" | "borderRadius" | "borderWidth" | "opacity" | "display" | "flexDirection" | "flexWrap" | "overflow" | "gap" | "style" | "justify" | keyof import("../..").SizeStyle | "p" | "pl" | "pr" | "pt" | "pb" | "m" | "ml" | "mr" | "mt" | "mb" | "tag"> & Omit<RNTamaguiViewNonStyleProps, "tag"> & Pick<TamaguiViewProps, "flex" | "opacity" | "display" | "flexDirection" | "flexWrap" | "overflow"> & {
|
|
9
9
|
justify?: TamaguiViewProps["justifyContent"];
|
|
10
10
|
} & import("../..").SizeStyle & {
|
|
11
11
|
p?: number | import("@alveole/theme").SpacingKey;
|
|
@@ -18,12 +18,12 @@ export declare const Box: React.ForwardRefExoticComponent<Pick<import("tamagui")
|
|
|
18
18
|
mr?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
19
19
|
mt?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
20
20
|
mb?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
21
|
-
backgroundColor?:
|
|
22
|
-
borderWidth?:
|
|
21
|
+
backgroundColor?: TamaguiViewProps["backgroundColor"];
|
|
22
|
+
borderWidth?: TamaguiViewProps["borderWidth"];
|
|
23
23
|
borderRadius?: number | string;
|
|
24
|
-
borderColor?:
|
|
24
|
+
borderColor?: TamaguiViewProps["borderColor"];
|
|
25
25
|
gap?: number | import("@alveole/theme").SpacingKey;
|
|
26
26
|
} & {
|
|
27
|
-
|
|
27
|
+
tag?: string;
|
|
28
28
|
} & React.RefAttributes<TamaguiElement>>;
|
|
29
29
|
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAE1B,cAAc,EAEd,SAAS,IAAI,gBAAgB,EAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAE1B,cAAc,EAEd,SAAS,IAAI,gBAAgB,EAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAMvC,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC,GAC7E,IAAI,CAAC,0BAA0B,EAAE,KAAK,CAAC,GACvC,QAAQ,GAAG;IAGT,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAGJ,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC;AAExC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;UANN,MAAM;wCAiDd,CAAC"}
|
package/dist/core/Box/Box.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { styled, View as TamaguiView, } from '@tamagui/core';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { aplatirStyle } from '../styleTamagui/aplatirStyle';
|
|
5
|
+
import { definis } from '../styleTamagui/definis';
|
|
6
|
+
import { correctionFlexDuWeb } from '../styleTamagui/flexDuWeb';
|
|
5
7
|
import { resolveSpacing } from './resolveSpacing';
|
|
6
8
|
const StyledView = styled(TamaguiView, { name: 'Box' });
|
|
7
9
|
export const Box = React.forwardRef(function Box(props, ref) {
|
|
8
|
-
const { tag, style, borderRadius,
|
|
10
|
+
const { tag, style, borderRadius, mt, mb, mr, ml, m, pt, pb, pl, pr, p, gap, ...viewProps } = props;
|
|
9
11
|
const radius = {
|
|
10
12
|
borderBottomRightRadius: borderRadius,
|
|
11
13
|
borderTopRightRadius: borderRadius,
|
|
@@ -29,5 +31,6 @@ export const Box = React.forwardRef(function Box(props, ref) {
|
|
|
29
31
|
const spacings = {
|
|
30
32
|
gap: resolveSpacing(gap),
|
|
31
33
|
};
|
|
32
|
-
|
|
34
|
+
const correctionFlex = correctionFlexDuWeb(style);
|
|
35
|
+
return (_jsx(StyledView, { ref: ref, render: tag ?? 'box', style: correctionFlex ? { ...aplatirStyle(style), ...correctionFlex } : style, ...radius, ...viewProps, ...definis(margins), ...definis(paddings), ...definis(spacings) }));
|
|
33
36
|
});
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
experimental: false;
|
|
5
5
|
description: string;
|
|
6
6
|
shortDescription: string;
|
|
7
|
-
component: import("react").ForwardRefExoticComponent<
|
|
7
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("tamagui").ViewProps, "flex" | "backgroundColor" | "borderColor" | "borderRadius" | "borderWidth" | "opacity" | "display" | "flexDirection" | "flexWrap" | "overflow" | "gap" | "style" | "justify" | keyof import("../..").SizeStyle | "p" | "pl" | "pr" | "pt" | "pb" | "m" | "ml" | "mr" | "mt" | "mb" | "tag"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "tag"> & Pick<import("tamagui").ViewProps, "flex" | "opacity" | "display" | "flexDirection" | "flexWrap" | "overflow"> & {
|
|
8
8
|
justify?: import("tamagui").ViewProps["justifyContent"];
|
|
9
9
|
} & import("../..").SizeStyle & {
|
|
10
10
|
p?: number | import("@alveole/theme").SpacingKey;
|
|
@@ -17,13 +17,13 @@ declare const _default: {
|
|
|
17
17
|
mr?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
18
18
|
mt?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
19
19
|
mb?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
20
|
-
backgroundColor?:
|
|
21
|
-
borderWidth?:
|
|
20
|
+
backgroundColor?: import("tamagui").ViewProps["backgroundColor"];
|
|
21
|
+
borderWidth?: import("tamagui").ViewProps["borderWidth"];
|
|
22
22
|
borderRadius?: number | string;
|
|
23
|
-
borderColor?:
|
|
23
|
+
borderColor?: import("tamagui").ViewProps["borderColor"];
|
|
24
24
|
gap?: number | import("@alveole/theme").SpacingKey;
|
|
25
25
|
} & {
|
|
26
|
-
|
|
26
|
+
tag?: string;
|
|
27
27
|
} & import("react").RefAttributes<import("tamagui").TamaguiElement>>;
|
|
28
28
|
styleFn: () => string;
|
|
29
29
|
};
|
|
@@ -13,5 +13,5 @@ export default {
|
|
|
13
13
|
export const BoxDefault = () => (_jsx(Box, { tag: "box", children: _jsx(Typography, { children: "Contenu par d\u00E9faut" }) }));
|
|
14
14
|
export const BoxPadded = () => (_jsx(Box, { tag: "padded", p: 16, children: _jsx(Typography, { children: "Box avec padding" }) }));
|
|
15
15
|
export const BoxPaddedWithBackground = () => (_jsx(Box, { tag: "padded-with-background", backgroundColor: '#f0f0f0', p: 16, children: _jsx(Typography, { children: "Box avec fond gris clair et padding" }) }));
|
|
16
|
-
export const BoxHovered = () => (_jsx(Box, { tag: "hovered",
|
|
16
|
+
export const BoxHovered = () => (_jsx(Box, { tag: "hovered", backgroundColor: "hover:#f0f0f0", children: _jsx(Typography, { children: "Box avec fond gris changeant au hover" }) }));
|
|
17
17
|
export * as Sources from './Box.stories.sources';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,cAAgI,CAAC;AAExJ,eAAO,MAAM,SAAS,cAAuI,CAAC;AAE9J,eAAO,MAAM,uBAAuB,cAAoN,CAAC;AAEzP,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"Box.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,cAAgI,CAAC;AAExJ,eAAO,MAAM,SAAS,cAAuI,CAAC;AAE9J,eAAO,MAAM,uBAAuB,cAAoN,CAAC;AAEzP,eAAO,MAAM,UAAU,cAAyL,CAAC;AAEjN,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export const BoxDefault = () => "export const BoxDefault = () => (\n <Box tag=\"box\">\n <Typography>Contenu par défaut</Typography>\n </Box>\n);";
|
|
4
4
|
export const BoxPadded = () => "export const BoxPadded = () => (\n <Box tag=\"padded\" p={16}>\n <Typography>Box avec padding</Typography>\n </Box>\n);";
|
|
5
5
|
export const BoxPaddedWithBackground = () => "export const BoxPaddedWithBackground = () => (\n <Box tag=\"padded-with-background\" backgroundColor={'#f0f0f0'} p={16}>\n <Typography>Box avec fond gris clair et padding</Typography>\n </Box>\n);";
|
|
6
|
-
export const BoxHovered = () => "export const BoxHovered = () => (\n <Box tag=\"hovered\"
|
|
6
|
+
export const BoxHovered = () => "export const BoxHovered = () => (\n <Box tag=\"hovered\" backgroundColor=\"hover:#f0f0f0\">\n <Typography>Box avec fond gris changeant au hover</Typography>\n </Box>\n);";
|
|
7
7
|
export const storySources = {
|
|
8
8
|
BoxDefault,
|
|
9
9
|
BoxPadded,
|
|
@@ -15,10 +15,10 @@ export type BoxAdvancedStyle = SizeStyle & {
|
|
|
15
15
|
mr?: number | `${string}%` | SpacingKey | 'auto';
|
|
16
16
|
mt?: number | `${string}%` | SpacingKey | 'auto';
|
|
17
17
|
mb?: number | `${string}%` | SpacingKey | 'auto';
|
|
18
|
-
backgroundColor?:
|
|
19
|
-
borderWidth?:
|
|
18
|
+
backgroundColor?: ViewProps['backgroundColor'];
|
|
19
|
+
borderWidth?: ViewProps['borderWidth'];
|
|
20
20
|
borderRadius?: number | string;
|
|
21
|
-
borderColor?:
|
|
21
|
+
borderColor?: ViewProps['borderColor'];
|
|
22
22
|
gap?: number | SpacingKey;
|
|
23
23
|
};
|
|
24
24
|
export type BoxStyle = BoxBaseStyle & BoxAdvancedStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.types.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,SAAS,EACT,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,eAAe,GAAG,SAAS,GAAG,UAAU,CAC3E,GAAG;IACF,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IACzC,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAEzB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IAChD,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IACjD,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IACjD,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IACjD,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Box.types.d.ts","sourceRoot":"","sources":["../../../src/core/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,SAAS,EACT,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,eAAe,GAAG,SAAS,GAAG,UAAU,CAC3E,GAAG;IACF,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IACzC,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAEzB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IAChD,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IACjD,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IACjD,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IACjD,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;IAGjD,eAAe,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACvC,GAAG,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.web.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Form.web.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGxC,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,sBAgBpC,CAAC"}
|
|
@@ -9,7 +9,10 @@ export const Form = (props) => {
|
|
|
9
9
|
const webFormProps = {
|
|
10
10
|
onSubmit: (e) => {
|
|
11
11
|
e.preventDefault();
|
|
12
|
-
const
|
|
12
|
+
const form = formRef.current;
|
|
13
|
+
if (!(form instanceof HTMLElement))
|
|
14
|
+
return;
|
|
15
|
+
const button = form.querySelector('button[role="button"][aria-selected="true"]');
|
|
13
16
|
if (button instanceof HTMLElement)
|
|
14
17
|
button.click();
|
|
15
18
|
},
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
experimental: false;
|
|
5
5
|
description: string;
|
|
6
6
|
shortDescription: string;
|
|
7
|
-
component: ((props: Pick<import("..").BoxProps, "
|
|
7
|
+
component: ((props: Pick<import("..").BoxProps, "gap" | "children"> & import("../..").SizeStyle & {
|
|
8
8
|
p?: number | import("@alveole/theme").SpacingKey;
|
|
9
9
|
pl?: number | import("@alveole/theme").SpacingKey;
|
|
10
10
|
pr?: number | import("@alveole/theme").SpacingKey;
|
|
@@ -15,10 +15,10 @@ declare const _default: {
|
|
|
15
15
|
mr?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
16
16
|
mt?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
17
17
|
mb?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
18
|
-
backgroundColor?:
|
|
19
|
-
borderWidth?:
|
|
18
|
+
backgroundColor?: import("tamagui").ViewProps["backgroundColor"];
|
|
19
|
+
borderWidth?: import("tamagui").ViewProps["borderWidth"];
|
|
20
20
|
borderRadius?: number | string;
|
|
21
|
-
borderColor?:
|
|
21
|
+
borderColor?: import("tamagui").ViewProps["borderColor"];
|
|
22
22
|
gap?: number | import("@alveole/theme").SpacingKey;
|
|
23
23
|
}) => import("react").JSX.Element) & {
|
|
24
24
|
Column: (props: import("./Grid").GridColumnProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { TamaguiElement } from 'tamagui';
|
|
2
3
|
import { GoogleNamespace } from './googleMaps.types';
|
|
3
4
|
import { LatLng, MapProps } from './Map.props';
|
|
4
5
|
declare global {
|
|
@@ -8,6 +9,6 @@ declare global {
|
|
|
8
9
|
}
|
|
9
10
|
export declare const shouldFitToMarkers: (fitToMarkers: boolean | undefined, center: LatLng | undefined, markersCount: number) => boolean;
|
|
10
11
|
export declare function useGoogleMap(props: MapProps): {
|
|
11
|
-
containerRef: React.RefObject<
|
|
12
|
+
containerRef: React.RefObject<TamaguiElement | null>;
|
|
12
13
|
};
|
|
13
14
|
//# sourceMappingURL=useGoogleMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGoogleMap.d.ts","sourceRoot":"","sources":["../../../src/core/Map/useGoogleMap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAA2B,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAU,MAAM,aAAa,CAAC;AAEvD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,CAAC,EAAE,eAAe,CAAC;KAC1B;CACF;AAqCD,eAAO,MAAM,kBAAkB,GAC7B,cAAc,OAAO,GAAG,SAAS,EACjC,QAAQ,MAAM,GAAG,SAAS,EAC1B,cAAc,MAAM,KACnB,OAAwD,CAAC;
|
|
1
|
+
{"version":3,"file":"useGoogleMap.d.ts","sourceRoot":"","sources":["../../../src/core/Map/useGoogleMap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAA2B,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAU,MAAM,aAAa,CAAC;AAEvD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,CAAC,EAAE,eAAe,CAAC;KAC1B;CACF;AAqCD,eAAO,MAAM,kBAAkB,GAC7B,cAAc,OAAO,GAAG,SAAS,EACjC,QAAQ,MAAM,GAAG,SAAS,EAC1B,cAAc,MAAM,KACnB,OAAwD,CAAC;AAsH5D,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ;;EAuC3C"}
|
|
@@ -89,13 +89,14 @@ function useMapInit({ containerRef, mapRef, center, markers, zoom, mapOptions, r
|
|
|
89
89
|
await loadGoogleMaps();
|
|
90
90
|
if (cancelled)
|
|
91
91
|
return;
|
|
92
|
-
|
|
92
|
+
const container = containerRef.current;
|
|
93
|
+
if (!(container instanceof HTMLElement))
|
|
93
94
|
return;
|
|
94
95
|
const google = window.google;
|
|
95
96
|
if (!google?.maps)
|
|
96
97
|
throw new Error('Google Maps not available on window');
|
|
97
98
|
const initialCenter = center ?? markers[0]?.position ?? { lat: 48.8566, lng: 2.3522 };
|
|
98
|
-
mapRef.current = new google.maps.Map(
|
|
99
|
+
mapRef.current = new google.maps.Map(container, {
|
|
99
100
|
center: initialCenter,
|
|
100
101
|
zoom,
|
|
101
102
|
clickableIcons: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownDescription.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/MarkdownDescription.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,uFAAuF;IACvF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,wCAA+C,wBAAwB,
|
|
1
|
+
{"version":3,"file":"MarkdownDescription.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/MarkdownDescription.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,uFAAuF;IACvF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,wCAA+C,wBAAwB,sBAkD1G,CAAC"}
|
|
@@ -24,8 +24,6 @@ export const MarkdownDescription = ({ children, taille = 'MD', color: textColor
|
|
|
24
24
|
// de la couleur) exige qu'un lien au milieu d'un bloc de texte se distingue de son
|
|
25
25
|
// entourage par autre chose que sa seule couleur.
|
|
26
26
|
const linkColor = color.light.text['default-info'];
|
|
27
|
-
const linkStyle = { textDecoration: 'underline' };
|
|
28
|
-
const linkHoverStyle = { textDecoration: 'none' };
|
|
29
27
|
const components = createMarkdownComponents({
|
|
30
28
|
bodyStyle,
|
|
31
29
|
boldStyle,
|
|
@@ -35,8 +33,6 @@ export const MarkdownDescription = ({ children, taille = 'MD', color: textColor
|
|
|
35
33
|
borderColor,
|
|
36
34
|
headerBg,
|
|
37
35
|
linkColor,
|
|
38
|
-
linkStyle,
|
|
39
|
-
linkHoverStyle,
|
|
40
36
|
});
|
|
41
37
|
return (_jsx(Box, { tag: "markdown-description", display: "flex", gap: 8, children: _jsx(ReactMarkdown, { remarkPlugins: [remarkGfm, replierLesCoupuresDeLigne], components: components, children: children }) }));
|
|
42
38
|
};
|
|
@@ -19,12 +19,6 @@ type MarkdownComponentsStyles = {
|
|
|
19
19
|
borderColor: string;
|
|
20
20
|
headerBg: string;
|
|
21
21
|
linkColor: string;
|
|
22
|
-
linkStyle: {
|
|
23
|
-
textDecoration: 'underline';
|
|
24
|
-
};
|
|
25
|
-
linkHoverStyle: {
|
|
26
|
-
textDecoration: 'none';
|
|
27
|
-
};
|
|
28
22
|
};
|
|
29
23
|
type TextComponentStyles = Pick<MarkdownComponentsStyles, 'bodyStyle' | 'boldStyle' | 'textColor'>;
|
|
30
24
|
export declare const createTextComponents: ({ bodyStyle, boldStyle, textColor }: TextComponentStyles) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownComponents.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"markdownComponents.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAczD,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,cAAc,CAAC,UAAU,CAG7E,CAAC;AAEF,KAAK,WAAW,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;AAClD,KAAK,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,eAAe,CAAC,CAAC;AAE9G,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;IAChC,4EAA4E;IAC5E,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,mBAAmB,GAAG,IAAI,CAAC,wBAAwB,EAAE,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC;AAEnG,eAAO,MAAM,oBAAoB,GAAI,qCAAqC,mBAAmB;yBACtE,WAAW;8BAKN,WAAW;0BAKf,WAAW;CAKjC,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,QAAQ,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EAAE,YAAY,MAAM;0BACnE,WAAW;0BAKX,WAAW;0BAKX,WAAW;0BAKX,WAAW;CAKjC,CAAC;AA+HH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,wBAAwB,KAAG,UAQ1E,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { FOCUS_ATTRIBUTE } from '@alveole/theme';
|
|
|
3
3
|
import { Box } from '../Box';
|
|
4
4
|
import { Code } from '../Code';
|
|
5
5
|
import { Highlight } from '../Highlight';
|
|
6
|
+
import { soulignementDuLien } from '../styleTamagui/soulignement';
|
|
6
7
|
import { Typography } from '../Typography';
|
|
7
8
|
const HIGHLIGHT_LANGUAGES = [
|
|
8
9
|
'json',
|
|
@@ -33,8 +34,8 @@ const createListComponents = (bodyStyle) => ({
|
|
|
33
34
|
ol: ({ children: c }) => (_jsx(Box, { display: "flex", gap: 4, children: c })),
|
|
34
35
|
li: ({ children: c }) => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 8, style: { alignItems: 'flex-start' }, children: [_jsx(Typography, { style: bodyStyle, children: '•' }), _jsx(Typography, { style: [bodyStyle, { flex: 1 }], children: c })] })),
|
|
35
36
|
});
|
|
36
|
-
const createLinkComponents = ({ linkColor
|
|
37
|
-
a: ({ href, children: c }) => (_jsx(Typography, { tag: "a",
|
|
37
|
+
const createLinkComponents = ({ linkColor }) => ({
|
|
38
|
+
a: ({ href, children: c }) => (_jsx(Typography, { tag: "a", color: linkColor, textDecorationLine: soulignementDuLien, href, [FOCUS_ATTRIBUTE]: 'ring', children: c })),
|
|
38
39
|
});
|
|
39
40
|
const createBlockComponents = (borderColor) => ({
|
|
40
41
|
pre: ({ children: c }) => _jsx(Box, { display: "flex", children: c }),
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: "core"[];
|
|
4
|
+
experimental: false;
|
|
5
|
+
description: string;
|
|
6
|
+
shortDescription: string;
|
|
7
|
+
component: ({ children }: import("./PageBackground").PageBackgroundProps) => import("react").JSX.Element;
|
|
8
|
+
styleFn: () => {
|
|
9
|
+
pageBackground: {
|
|
10
|
+
flex: number;
|
|
11
|
+
width: "100%";
|
|
12
|
+
};
|
|
13
|
+
sidebarContainer: {
|
|
14
|
+
display: "flex";
|
|
15
|
+
flexDirection: "row";
|
|
16
|
+
flex: number;
|
|
17
|
+
backgroundColor: "transparent";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
export declare const Default: () => import("react").JSX.Element;
|
|
23
|
+
export * as Sources from './PageBackground.stories.sources';
|
|
24
|
+
//# sourceMappingURL=PageBackground.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageBackground.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageBackground.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAMA,wBAiBkB;AAElB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '../Box';
|
|
3
|
+
import { Typography } from '../Typography';
|
|
4
|
+
import { useStyles } from './Page.styles';
|
|
5
|
+
import { PageBackground } from './PageBackground';
|
|
6
|
+
export default {
|
|
7
|
+
title: 'PageBackground',
|
|
8
|
+
tags: ['core'],
|
|
9
|
+
experimental: false,
|
|
10
|
+
description: `Fond de page uni, appliqué automatiquement par \`Page\` lorsqu'aucune sidebar ni scroll n'est utilisé.
|
|
11
|
+
|
|
12
|
+
## Fonctionnement
|
|
13
|
+
|
|
14
|
+
- Occupe tout l'espace disponible (\`flex: 1\`, \`width: 100%\`).
|
|
15
|
+
- Applique la couleur de palette \`background.default-grey\` du thème.
|
|
16
|
+
|
|
17
|
+
## Pourquoi un fond uni ?
|
|
18
|
+
|
|
19
|
+
Un dégradé ferait varier la couleur selon la hauteur : aucun contenu posé dessus ne pourrait s'accorder à une valeur du thème, et deux éléments identiques n'auraient pas le même fond selon leur position dans la page.`,
|
|
20
|
+
shortDescription: 'Fond de page uni utilisant la couleur de palette default-grey du thème.',
|
|
21
|
+
component: PageBackground,
|
|
22
|
+
styleFn: useStyles,
|
|
23
|
+
};
|
|
24
|
+
export const Default = () => (_jsx(Box, { style: { height: 300, width: '100%' }, children: _jsx(PageBackground, { children: _jsx(Typography, { children: "Contenu pos\u00E9 sur le fond de page" }) }) }));
|
|
25
|
+
export * as Sources from './PageBackground.stories.sources';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageBackground.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageBackground.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAqN,CAAC;AAE1O,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file is generated. Do not edit manually.
|
|
2
|
+
// Source: src/core/Page/PageBackground.stories.tsx
|
|
3
|
+
export const Default = () => "export const Default = () => (\n <Box style={{ height: 300, width: '100%' }}>\n <PageBackground>\n <Typography>Contenu posé sur le fond de page</Typography>\n </PageBackground>\n </Box>\n);";
|
|
4
|
+
export const storySources = {
|
|
5
|
+
Default,
|
|
6
|
+
};
|
|
@@ -8,7 +8,7 @@ export type PageContentScrollableProps = PageProps & {
|
|
|
8
8
|
onEndReachedThreshold?: number;
|
|
9
9
|
onScrollChange?: (scrollY: number) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const PageContentScrollable: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const PageContentScrollable: React.ForwardRefExoticComponent<Omit<import("tamagui").ViewProps, "flex" | "backgroundColor" | "borderColor" | "borderRadius" | "borderWidth" | "opacity" | "display" | "flexDirection" | "flexWrap" | "overflow" | "gap" | "style" | "justify" | keyof import("../..").SizeStyle | "p" | "pl" | "pr" | "pt" | "pb" | "m" | "ml" | "mr" | "mt" | "mb" | "tag"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "tag"> & Pick<import("tamagui").ViewProps, "flex" | "opacity" | "display" | "flexDirection" | "flexWrap" | "overflow"> & {
|
|
12
12
|
justify?: import("tamagui").ViewProps["justifyContent"];
|
|
13
13
|
} & import("../..").SizeStyle & {
|
|
14
14
|
p?: number | import("@alveole/theme").SpacingKey;
|
|
@@ -21,13 +21,13 @@ export declare const PageContentScrollable: React.ForwardRefExoticComponent<Pick
|
|
|
21
21
|
mr?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
22
22
|
mt?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
23
23
|
mb?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
|
|
24
|
-
backgroundColor?:
|
|
25
|
-
borderWidth?:
|
|
24
|
+
backgroundColor?: import("tamagui").ViewProps["backgroundColor"];
|
|
25
|
+
borderWidth?: import("tamagui").ViewProps["borderWidth"];
|
|
26
26
|
borderRadius?: number | string;
|
|
27
|
-
borderColor?:
|
|
27
|
+
borderColor?: import("tamagui").ViewProps["borderColor"];
|
|
28
28
|
gap?: number | import("@alveole/theme").SpacingKey;
|
|
29
29
|
} & {
|
|
30
|
-
|
|
30
|
+
tag?: string;
|
|
31
31
|
} & {
|
|
32
32
|
title: string;
|
|
33
33
|
description?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/Page/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/Page/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
|
package/dist/core/Page/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RNTamaguiTextNonStyleProps, TamaguiTextElement, TextProps as TamaguiTextProps } from '@tamagui/core';
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import type { TypographyStyle } from './Typography.types';
|
|
4
|
-
export type TypographyProps =
|
|
4
|
+
export type TypographyProps = Omit<TamaguiTextProps, keyof TypographyStyle | 'children' | 'tag' | 'style'> & Omit<RNTamaguiTextNonStyleProps, 'children' | 'tag'> & TypographyStyle & {
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
|
|
6
|
+
tag?: string;
|
|
7
7
|
};
|
|
8
8
|
export type TypographyElement = TamaguiTextElement;
|
|
9
|
-
export declare const Typography: React.ForwardRefExoticComponent<
|
|
9
|
+
export declare const Typography: React.ForwardRefExoticComponent<Omit<TamaguiTextProps, "color" | "background" | "fontSize" | "fontStyle" | "lineHeight" | "textAlign" | "textDecorationLine" | "textTransform" | "children" | "style" | keyof import("../..").SizeStyle | "p" | "pl" | "pr" | "pt" | "pb" | "m" | "ml" | "mr" | "mt" | "mb" | "tag"> & Omit<RNTamaguiTextNonStyleProps, "children" | "tag"> & import("./Typography.types").TypographyBaseStyle & import("../..").SizeStyle & {
|
|
10
10
|
p?: number;
|
|
11
11
|
pl?: number;
|
|
12
12
|
pr?: number;
|
|
@@ -21,6 +21,6 @@ export declare const Typography: React.ForwardRefExoticComponent<Pick<TamaguiTex
|
|
|
21
21
|
textAlign?: TamaguiTextProps["textAlign"];
|
|
22
22
|
} & {
|
|
23
23
|
children: React.ReactNode;
|
|
24
|
-
|
|
24
|
+
tag?: string;
|
|
25
25
|
} & React.RefAttributes<TamaguiTextElement>>;
|
|
26
26
|
//# sourceMappingURL=Typography.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAG1B,kBAAkB,EAClB,SAAS,IAAI,gBAAgB,EAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAG1B,kBAAkB,EAClB,SAAS,IAAI,gBAAgB,EAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI1D,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,eAAe,GAAG,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC,GACxG,IAAI,CAAC,0BAA0B,EAAE,UAAU,GAAG,KAAK,CAAC,GACpD,eAAe,GAAG;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAG1B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAGJ,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;cATT,KAAK,CAAC,SAAS;UAGnB,MAAM;4CA0Bd,CAAC"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { styled, Text as TamaguiText, } from '@tamagui/core';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Platform } from 'react-native';
|
|
5
|
+
import { definis } from '../styleTamagui/definis';
|
|
5
6
|
import { couleurDuTexte } from './couleurDuTexte';
|
|
6
7
|
import { useStyles } from './Typography.styles';
|
|
7
8
|
const StyledTypography = styled(TamaguiText, { name: 'Typography' });
|
|
8
9
|
export const Typography = React.forwardRef(function Typography(props, ref) {
|
|
9
|
-
const { tag, style, textAlign,
|
|
10
|
+
const { tag, style, textAlign, color, ...textProps } = props;
|
|
10
11
|
const styles = useStyles();
|
|
11
|
-
return (_jsx(StyledTypography, { ref: ref,
|
|
12
|
+
return (_jsx(StyledTypography, { ref: ref, render: tag ?? 'typography', style: style, ...definis({ textAlign }),
|
|
12
13
|
// Le defaut vit ici et non dans une regle globale sur `body` : le paquet de theme
|
|
13
14
|
// n'emet que `:root` et les polices (voir docs/adr/0009). Sans cela, le texte
|
|
14
15
|
// retombait sur le noir du theme tamagui au lieu du gris du design system.
|
|
15
|
-
color: couleurDuTexte(styles, color),
|
|
16
|
+
color: couleurDuTexte(styles, color),
|
|
17
|
+
// Tamagui v2 remet la police de l'app sur chaque vue, hauteur de ligne comprise : sans
|
|
18
|
+
// cran explicite, un texte prenait celle de la police par defaut au lieu de la hauteur
|
|
19
|
+
// normale du navigateur qu'il heritait en v1. Le natif n'herite pas du CSS.
|
|
20
|
+
lineHeight: Platform.OS === 'web' ? 'normal' : undefined, ...textProps }));
|
|
16
21
|
});
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
tags: "core"[];
|
|
4
4
|
experimental: false;
|
|
5
5
|
description: string;
|
|
6
|
-
component: import("react").ForwardRefExoticComponent<
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("tamagui").TextProps, "color" | "background" | "fontSize" | "fontStyle" | "lineHeight" | "textAlign" | "textDecorationLine" | "textTransform" | "children" | "style" | keyof import("../..").SizeStyle | "p" | "pl" | "pr" | "pt" | "pb" | "m" | "ml" | "mr" | "mt" | "mb" | "tag"> & Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, "children" | "tag"> & import("./Typography.types").TypographyBaseStyle & import("../..").SizeStyle & {
|
|
7
7
|
p?: number;
|
|
8
8
|
pl?: number;
|
|
9
9
|
pr?: number;
|
|
@@ -18,7 +18,7 @@ declare const _default: {
|
|
|
18
18
|
textAlign?: import("tamagui").TextProps["textAlign"];
|
|
19
19
|
} & {
|
|
20
20
|
children: React.ReactNode;
|
|
21
|
-
|
|
21
|
+
tag?: string;
|
|
22
22
|
} & import("react").RefAttributes<import("tamagui").TamaguiTextElement>>;
|
|
23
23
|
styleFn: () => string;
|
|
24
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useStyles } from './Typography.styles';
|
|
2
2
|
import type { TypographyStyle } from './Typography.types';
|
|
3
3
|
/** La couleur demandee, sinon le gris par defaut du design system. */
|
|
4
|
-
export declare const couleurDuTexte: (styles: ReturnType<typeof useStyles>, color?: TypographyStyle["color"]) =>
|
|
4
|
+
export declare const couleurDuTexte: (styles: ReturnType<typeof useStyles>, color?: TypographyStyle["color"]) => TypographyStyle["color"];
|
|
5
5
|
//# sourceMappingURL=couleurDuTexte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"couleurDuTexte.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/couleurDuTexte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,sEAAsE;AACtE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"couleurDuTexte.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/couleurDuTexte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,sEAAsE;AACtE,eAAO,MAAM,cAAc,GACzB,QAAQ,UAAU,CAAC,OAAO,SAAS,CAAC,EACpC,QAAQ,eAAe,CAAC,OAAO,CAAC,KAC/B,eAAe,CAAC,OAAO,CAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateRequired.d.ts","sourceRoot":"","sources":["../../../src/core/UpdateRequired/UpdateRequired.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,
|
|
1
|
+
{"version":3,"file":"UpdateRequired.d.ts","sourceRoot":"","sources":["../../../src/core/UpdateRequired/UpdateRequired.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,gCAmBxD,CAAC"}
|
|
@@ -6,5 +6,8 @@ import { Box } from '../Box';
|
|
|
6
6
|
export const UpdateRequired = (props) => {
|
|
7
7
|
const { title, description, buttonLabel, onUpdate } = props;
|
|
8
8
|
const { bottom } = useSafeAreaInsets();
|
|
9
|
-
return (_jsx(Box, { tag: "update-required",
|
|
9
|
+
return (_jsx(Box, { tag: "update-required",
|
|
10
|
+
// `flexGrow` et non `flex: 1`, que Tamagui v2 traduit sur le web par une base nulle :
|
|
11
|
+
// l'écran remplit toujours la page, sans jamais descendre sous la hauteur de son contenu.
|
|
12
|
+
style: { flexGrow: 1, alignItems: 'center', justifyContent: 'center', paddingBottom: bottom }, children: _jsx(EmptyState, { title: title, description: description, iconName: "RefreshCw", actions: _jsx(Button, { variant: "primary", title: buttonLabel, onPress: onUpdate }) }) }));
|
|
10
13
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TransitionKeys } from 'tamagui';
|
|
2
|
+
/**
|
|
3
|
+
* Le seul endroit qui sait comment Tamagui nomme sa prop d'animation : `transition` depuis
|
|
4
|
+
* la v2 (`animation` en v1). Les composants étalent son résultat, `<X {...animer('quicker')} />`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const animer: (cle: TransitionKeys) => {
|
|
7
|
+
transition: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=animer.d.ts.map
|