@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.
Files changed (247) hide show
  1. package/dist/core/A/A.d.ts +3 -1
  2. package/dist/core/A/A.d.ts.map +1 -1
  3. package/dist/core/A/A.js +2 -2
  4. package/dist/core/Box/Box.d.ts +8 -8
  5. package/dist/core/Box/Box.d.ts.map +1 -1
  6. package/dist/core/Box/Box.js +6 -3
  7. package/dist/core/Box/Box.stories.d.ts +5 -5
  8. package/dist/core/Box/Box.stories.js +1 -1
  9. package/dist/core/Box/Box.stories.sources.d.ts.map +1 -1
  10. package/dist/core/Box/Box.stories.sources.js +1 -1
  11. package/dist/core/Box/Box.types.d.ts +3 -3
  12. package/dist/core/Box/Box.types.d.ts.map +1 -1
  13. package/dist/core/Form/Form.web.d.ts.map +1 -1
  14. package/dist/core/Form/Form.web.js +4 -1
  15. package/dist/core/Grid/Grid.stories.d.ts +4 -4
  16. package/dist/core/Map/useGoogleMap.d.ts +2 -1
  17. package/dist/core/Map/useGoogleMap.d.ts.map +1 -1
  18. package/dist/core/Map/useGoogleMap.js +3 -2
  19. package/dist/core/MarkdownDescription/MarkdownDescription.d.ts.map +1 -1
  20. package/dist/core/MarkdownDescription/MarkdownDescription.js +0 -4
  21. package/dist/core/MarkdownDescription/markdownComponents.d.ts +0 -6
  22. package/dist/core/MarkdownDescription/markdownComponents.d.ts.map +1 -1
  23. package/dist/core/MarkdownDescription/markdownComponents.js +3 -2
  24. package/dist/core/Page/PageBackground.stories.d.ts +24 -0
  25. package/dist/core/Page/PageBackground.stories.d.ts.map +1 -0
  26. package/dist/core/Page/PageBackground.stories.js +25 -0
  27. package/dist/core/Page/PageBackground.stories.sources.d.ts +6 -0
  28. package/dist/core/Page/PageBackground.stories.sources.d.ts.map +1 -0
  29. package/dist/core/Page/PageBackground.stories.sources.js +6 -0
  30. package/dist/core/Page/PageContentScrollable.d.ts +5 -5
  31. package/dist/core/Page/index.d.ts +1 -0
  32. package/dist/core/Page/index.d.ts.map +1 -1
  33. package/dist/core/Page/index.js +1 -0
  34. package/dist/core/Typography/Typography.d.ts +5 -5
  35. package/dist/core/Typography/Typography.d.ts.map +1 -1
  36. package/dist/core/Typography/Typography.js +9 -4
  37. package/dist/core/Typography/Typography.stories.d.ts +2 -2
  38. package/dist/core/Typography/couleurDuTexte.d.ts +1 -1
  39. package/dist/core/Typography/couleurDuTexte.d.ts.map +1 -1
  40. package/dist/core/UpdateRequired/UpdateRequired.d.ts.map +1 -1
  41. package/dist/core/UpdateRequired/UpdateRequired.js +4 -1
  42. package/dist/core/animation/animer.d.ts +9 -0
  43. package/dist/core/animation/animer.d.ts.map +1 -0
  44. package/dist/core/animation/animer.js +5 -0
  45. package/dist/core/styleTamagui/aplatirStyle.d.ts +2 -0
  46. package/dist/core/styleTamagui/aplatirStyle.d.ts.map +1 -0
  47. package/dist/core/styleTamagui/aplatirStyle.js +9 -0
  48. package/dist/core/styleTamagui/definis.d.ts +4 -0
  49. package/dist/core/styleTamagui/definis.d.ts.map +1 -0
  50. package/dist/core/styleTamagui/definis.js +3 -0
  51. package/dist/core/styleTamagui/flexDuWeb.d.ts +23 -0
  52. package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -0
  53. package/dist/core/styleTamagui/flexDuWeb.js +19 -0
  54. package/dist/core/styleTamagui/fondAuSurvol.d.ts +14 -0
  55. package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -0
  56. package/dist/core/styleTamagui/fondAuSurvol.js +8 -0
  57. package/dist/core/styleTamagui/sansEstompage.d.ts +4 -0
  58. package/dist/core/styleTamagui/sansEstompage.d.ts.map +1 -0
  59. package/dist/core/styleTamagui/sansEstompage.js +4 -0
  60. package/dist/core/styleTamagui/soulignement.d.ts +11 -0
  61. package/dist/core/styleTamagui/soulignement.d.ts.map +1 -0
  62. package/dist/core/styleTamagui/soulignement.js +5 -0
  63. package/dist/generated/version.d.ts +1 -1
  64. package/dist/generated/version.js +1 -1
  65. package/dist/pdfjs/pdf.min.mjs +4 -5
  66. package/dist/pdfjs/pdf.worker.min.mjs +4 -5
  67. package/dist/stories/index.d.ts +1 -0
  68. package/dist/stories/index.d.ts.map +1 -1
  69. package/dist/stories/index.js +1 -0
  70. package/dist/ui/Accordion/AccordionItem.d.ts.map +1 -1
  71. package/dist/ui/Accordion/AccordionItem.js +2 -1
  72. package/dist/ui/ActionMenu/ActionMenuItem.d.ts.map +1 -1
  73. package/dist/ui/ActionMenu/ActionMenuItem.js +5 -5
  74. package/dist/ui/Avatar/Avatar.d.ts.map +1 -1
  75. package/dist/ui/Avatar/Avatar.js +6 -1
  76. package/dist/ui/Badge/Badge.d.ts.map +1 -1
  77. package/dist/ui/Badge/Badge.js +3 -2
  78. package/dist/ui/Badge/Badge.stories.d.ts +16 -12
  79. package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
  80. package/dist/ui/Badge/Badge.styles.d.ts +16 -12
  81. package/dist/ui/Badge/Badge.styles.d.ts.map +1 -1
  82. package/dist/ui/Badge/Badge.styles.js +4 -2
  83. package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
  84. package/dist/ui/BottomSheet/BottomSheet.js +2 -1
  85. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +6 -4
  86. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts.map +1 -1
  87. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +6 -4
  88. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts.map +1 -1
  89. package/dist/ui/BottomSheet/BottomSheet.styles.js +6 -4
  90. package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  91. package/dist/ui/Breadcrumbs/Breadcrumbs.js +2 -1
  92. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +5 -4
  93. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  94. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +5 -4
  95. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -1
  96. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.js +1 -4
  97. package/dist/ui/Button/ButtonContent.d.ts.map +1 -1
  98. package/dist/ui/Button/ButtonContent.js +7 -3
  99. package/dist/ui/Button/buttonIconStyling.d.ts +2 -2
  100. package/dist/ui/Button/buttonStyling.d.ts +9 -3
  101. package/dist/ui/Button/buttonStyling.d.ts.map +1 -1
  102. package/dist/ui/Button/buttonStyling.js +7 -3
  103. package/dist/ui/Checkbox/Checkbox.d.ts +6 -6
  104. package/dist/ui/Checkbox/Checkbox.stories.d.ts +7 -7
  105. package/dist/ui/Checkbox/Checkbox.styles.d.ts +1 -1
  106. package/dist/ui/Checkbox/Checkbox.styles.d.ts.map +1 -1
  107. package/dist/ui/Checkbox/Checkbox.styles.js +3 -4
  108. package/dist/ui/Checkbox/CheckboxContainer.d.ts +6 -6
  109. package/dist/ui/Checkbox/CheckboxContainer.d.ts.map +1 -1
  110. package/dist/ui/Checkbox/CheckboxContainer.js +4 -8
  111. package/dist/ui/Checkbox/CheckboxLabel.d.ts +1 -1
  112. package/dist/ui/Checkbox/CheckboxLabel.d.ts.map +1 -1
  113. package/dist/ui/Checkbox/CheckboxLabel.js +2 -2
  114. package/dist/ui/DataTable/DataTable.demo.deployments.js +1 -1
  115. package/dist/ui/DataTable/DataTable.stories.d.ts +3 -1
  116. package/dist/ui/DataTable/DataTable.stories.d.ts.map +1 -1
  117. package/dist/ui/DataTable/DataTable.styles.d.ts +3 -1
  118. package/dist/ui/DataTable/DataTable.styles.d.ts.map +1 -1
  119. package/dist/ui/DataTable/DataTable.styles.js +5 -1
  120. package/dist/ui/DataTable/DataTableCell.js +1 -1
  121. package/dist/ui/DataTable/DataTableRow.d.ts.map +1 -1
  122. package/dist/ui/DataTable/DataTableRow.js +4 -2
  123. package/dist/ui/DataTable/dataTableCellStyle.d.ts +2 -2
  124. package/dist/ui/DataTable/dataTableCellStyle.js +1 -1
  125. package/dist/ui/DateInput/DateInput.ios.d.ts +1 -1
  126. package/dist/ui/DateInput/DateInput.stories.d.ts +1 -1
  127. package/dist/ui/DateInput/DateInput.web.d.ts +1 -1
  128. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +1 -0
  129. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
  130. package/dist/ui/DocumentViewer/DocumentViewer.stories.js +1 -1
  131. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
  132. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +1 -1
  133. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +1 -0
  134. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts.map +1 -1
  135. package/dist/ui/DocumentViewer/DocumentViewer.styles.js +3 -0
  136. package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts.map +1 -1
  137. package/dist/ui/DocumentViewer/pointeurWeb.d.ts +13 -3
  138. package/dist/ui/DocumentViewer/pointeurWeb.d.ts.map +1 -1
  139. package/dist/ui/DocumentViewer/pointeurWeb.js +1 -1
  140. package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts +2 -2
  141. package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts.map +1 -1
  142. package/dist/ui/FilterDate/FilterDate.d.ts +1 -1
  143. package/dist/ui/FilterDate/FilterDate.d.ts.map +1 -1
  144. package/dist/ui/Header/Header.d.ts.map +1 -1
  145. package/dist/ui/Header/Header.js +1 -1
  146. package/dist/ui/Link/Link.d.ts.map +1 -1
  147. package/dist/ui/Link/Link.js +2 -1
  148. package/dist/ui/Link/Link.stories.d.ts +0 -4
  149. package/dist/ui/Link/Link.stories.d.ts.map +1 -1
  150. package/dist/ui/Link/Link.styles.d.ts +0 -4
  151. package/dist/ui/Link/Link.styles.d.ts.map +1 -1
  152. package/dist/ui/Link/Link.styles.js +0 -4
  153. package/dist/ui/ListItem/ListItem.d.ts.map +1 -1
  154. package/dist/ui/ListItem/ListItem.js +2 -1
  155. package/dist/ui/ListItem/ListItem.stories.d.ts +4 -2
  156. package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
  157. package/dist/ui/ListItem/ListItem.styles.d.ts +4 -2
  158. package/dist/ui/ListItem/ListItem.styles.d.ts.map +1 -1
  159. package/dist/ui/ListItem/ListItem.styles.js +6 -2
  160. package/dist/ui/LucideIcon/catalogueLucide.d.ts +54 -0
  161. package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
  162. package/dist/ui/LucideIcon/vendor/lab.js +1 -1
  163. package/dist/ui/LucideIcon/vendor/lucide.d.ts +1769 -1587
  164. package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
  165. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +1 -0
  166. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
  167. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +1 -0
  168. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts.map +1 -1
  169. package/dist/ui/ProgressBar/ProgressBar.styles.js +2 -0
  170. package/dist/ui/RadioGroup/RadioGroup.d.ts +2 -2
  171. package/dist/ui/RadioGroup/RadioGroup.d.ts.map +1 -1
  172. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +2 -4
  173. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  174. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +1 -3
  175. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
  176. package/dist/ui/RadioGroup/RadioGroup.styles.js +3 -6
  177. package/dist/ui/RadioGroup/RadioGroupCard.d.ts.map +1 -1
  178. package/dist/ui/RadioGroup/RadioGroupCard.js +2 -2
  179. package/dist/ui/RadioGroup/RadioGroupItem.d.ts.map +1 -1
  180. package/dist/ui/RadioGroup/RadioGroupItem.js +2 -2
  181. package/dist/ui/RadioGroup/RadioInput.d.ts.map +1 -1
  182. package/dist/ui/RadioGroup/RadioInput.js +5 -7
  183. package/dist/ui/RadioGroup/index.d.ts +1 -1
  184. package/dist/ui/Select/SelectItem.js +1 -1
  185. package/dist/ui/Select/SelectList.styles.d.ts +1 -9
  186. package/dist/ui/Select/SelectList.styles.d.ts.map +1 -1
  187. package/dist/ui/Select/SelectList.styles.js +5 -6
  188. package/dist/ui/Select/selectItemStyle.d.ts +4 -4
  189. package/dist/ui/Select/selectItemStyle.d.ts.map +1 -1
  190. package/dist/ui/Select/selectItemStyle.js +7 -3
  191. package/dist/ui/Select/useDefilementVersSelection.d.ts +3 -2
  192. package/dist/ui/Select/useDefilementVersSelection.d.ts.map +1 -1
  193. package/dist/ui/Sidebar/Sidebar.stories.d.ts +0 -7
  194. package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
  195. package/dist/ui/Sidebar/Sidebar.styles.d.ts +0 -7
  196. package/dist/ui/Sidebar/Sidebar.styles.d.ts.map +1 -1
  197. package/dist/ui/Sidebar/Sidebar.styles.js +0 -3
  198. package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
  199. package/dist/ui/Sidebar/SidebarItem.js +13 -9
  200. package/dist/ui/Signature/Signature.d.ts +1 -1
  201. package/dist/ui/Signature/Signature.d.ts.map +1 -1
  202. package/dist/ui/Skeleton/Skeleton.stories.d.ts +1 -0
  203. package/dist/ui/Skeleton/Skeleton.stories.d.ts.map +1 -1
  204. package/dist/ui/Skeleton/Skeleton.styles.d.ts +1 -0
  205. package/dist/ui/Skeleton/Skeleton.styles.d.ts.map +1 -1
  206. package/dist/ui/Skeleton/Skeleton.styles.js +2 -0
  207. package/dist/ui/Switch/Switch.d.ts +1 -1
  208. package/dist/ui/Switch/Switch.d.ts.map +1 -1
  209. package/dist/ui/Switch/Switch.js +11 -8
  210. package/dist/ui/Switch/Switch.stories.d.ts +3 -2
  211. package/dist/ui/Switch/Switch.stories.d.ts.map +1 -1
  212. package/dist/ui/Switch/Switch.styles.d.ts +2 -1
  213. package/dist/ui/Switch/Switch.styles.d.ts.map +1 -1
  214. package/dist/ui/Switch/Switch.styles.js +5 -4
  215. package/dist/ui/Tabs/Tabs.d.ts +1 -1
  216. package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
  217. package/dist/ui/Tabs/Tabs.js +1 -1
  218. package/dist/ui/Tabs/Tabs.stories.d.ts +26 -5
  219. package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
  220. package/dist/ui/Tabs/Tabs.styles.d.ts +26 -5
  221. package/dist/ui/Tabs/Tabs.styles.d.ts.map +1 -1
  222. package/dist/ui/Tabs/Tabs.styles.js +6 -2
  223. package/dist/ui/Tabs/TabsTab.js +1 -1
  224. package/dist/ui/Tabs/useTabsState.d.ts +1 -1
  225. package/dist/ui/Tabs/useTabsState.d.ts.map +1 -1
  226. package/dist/ui/Tabs/useTabsState.js +7 -4
  227. package/dist/ui/Toast/Toast.d.ts +3 -3
  228. package/dist/ui/Toast/Toast.d.ts.map +1 -1
  229. package/dist/ui/Toast/Toast.js +5 -7
  230. package/dist/ui/Toast/Toast.stories.d.ts +10 -7
  231. package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
  232. package/dist/ui/Toast/Toast.stories.js +12 -9
  233. package/dist/ui/Toast/Toast.stories.sources.js +1 -1
  234. package/dist/ui/Toast/ToastContext.d.ts +1 -0
  235. package/dist/ui/Toast/ToastContext.d.ts.map +1 -1
  236. package/dist/ui/Toast/ToastContext.js +1 -0
  237. package/dist/ui/Toast/Toasts.d.ts +2 -1
  238. package/dist/ui/Toast/Toasts.d.ts.map +1 -1
  239. package/dist/ui/Toast/Toasts.js +9 -5
  240. package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +2 -2
  241. package/package.json +27 -27
  242. package/dist/core/styleTamagui/versStyleTamagui.d.ts +0 -10
  243. package/dist/core/styleTamagui/versStyleTamagui.d.ts.map +0 -1
  244. package/dist/core/styleTamagui/versStyleTamagui.js +0 -8
  245. package/dist/ui/Toast/ToastBridge.d.ts +0 -11
  246. package/dist/ui/Toast/ToastBridge.d.ts.map +0 -1
  247. package/dist/ui/Toast/ToastBridge.js +0 -19
@@ -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
- hoverStyle?: CSSProperties;
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. */
@@ -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;AAKxE,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,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,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, hoverStyle, ariaCurrent, target, canAccessHref: canAccessProp, } = props;
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 }, hoverStyle: hoverStyle, children: [children, annonce] }));
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))
@@ -1,11 +1,11 @@
1
1
  import { RNTamaguiViewNonStyleProps, TamaguiElement, ViewProps as TamaguiViewProps } from '@tamagui/core';
2
- import React, { CSSProperties } from 'react';
2
+ import React from 'react';
3
3
  import { BoxStyle } from './Box.types';
4
- export type BoxProps = Pick<TamaguiViewProps, 'exitStyle' | 'focusStyle' | 'pressStyle' | 'disabledStyle'> & RNTamaguiViewNonStyleProps & BoxStyle & {
5
- hoverStyle?: CSSProperties;
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<Pick<import("tamagui").StackProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & RNTamaguiViewNonStyleProps & Pick<import("tamagui").StackProps, "display" | "flex" | "flexWrap" | "flexDirection" | "opacity" | "overflow"> & {
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?: string;
22
- borderWidth?: number;
21
+ backgroundColor?: TamaguiViewProps["backgroundColor"];
22
+ borderWidth?: TamaguiViewProps["borderWidth"];
23
23
  borderRadius?: number | string;
24
- borderColor?: string;
24
+ borderColor?: TamaguiViewProps["borderColor"];
25
25
  gap?: number | import("@alveole/theme").SpacingKey;
26
26
  } & {
27
- hoverStyle?: CSSProperties;
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,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,eAAe,CAAC,GACxG,0BAA0B,GAC1B,QAAQ,GAAG;IACT,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B,CAAC;AAGJ,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC;AAExC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;iBANC,aAAa;wCAgD5B,CAAC"}
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"}
@@ -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 { versStyleTamagui } from '../styleTamagui/versStyleTamagui';
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, hoverStyle, mt, mb, mr, ml, m, pt, pb, pl, pr, p, gap, ...viewProps } = props;
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
- return (_jsx(StyledView, { ref: ref, tag: tag ?? 'box', style: style, ...radius, hoverStyle: versStyleTamagui(hoverStyle), ...viewProps, ...margins, ...paddings, ...spacings }));
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<Pick<import("tamagui").StackProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & import("@tamagui/core").RNTamaguiViewNonStyleProps & Pick<import("tamagui").StackProps, "display" | "flex" | "flexWrap" | "flexDirection" | "opacity" | "overflow"> & {
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?: string;
21
- borderWidth?: number;
20
+ backgroundColor?: import("tamagui").ViewProps["backgroundColor"];
21
+ borderWidth?: import("tamagui").ViewProps["borderWidth"];
22
22
  borderRadius?: number | string;
23
- borderColor?: string;
23
+ borderColor?: import("tamagui").ViewProps["borderColor"];
24
24
  gap?: number | import("@alveole/theme").SpacingKey;
25
25
  } & {
26
- hoverStyle?: import("react").CSSProperties;
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", hoverStyle: { background: '#f0f0f0' }, children: _jsx(Typography, { children: "Box avec fond gris changeant au hover" }) }));
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,cAA8L,CAAC;AAEtN,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
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\" hoverStyle={{ background: '#f0f0f0' }}>\n <Typography>Box avec fond gris changeant au hover</Typography>\n </Box>\n);";
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?: string;
19
- borderWidth?: number;
18
+ backgroundColor?: ViewProps['backgroundColor'];
19
+ borderWidth?: ViewProps['borderWidth'];
20
20
  borderRadius?: number | string;
21
- borderColor?: string;
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,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,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;AAEtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGxC,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,sBAcpC,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 button = formRef.current?.querySelector('button[role="button"][aria-selected="true"]');
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, "children" | "gap"> & import("../..").SizeStyle & {
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?: string;
19
- borderWidth?: number;
18
+ backgroundColor?: import("tamagui").ViewProps["backgroundColor"];
19
+ borderWidth?: import("tamagui").ViewProps["borderWidth"];
20
20
  borderRadius?: number | string;
21
- borderColor?: string;
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<HTMLDivElement | null>;
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;AAqH5D,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ;;EAuC3C"}
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
- if (!containerRef.current)
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(containerRef.current, {
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,sBAsD1G,CAAC"}
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;AAazD,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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AEF,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, linkStyle, linkHoverStyle }) => ({
37
- a: ({ href, children: c }) => (_jsx(Typography, { tag: "a", href: href, color: linkColor, style: linkStyle, hoverStyle: linkHoverStyle, [FOCUS_ATTRIBUTE]: 'ring', children: c })),
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,6 @@
1
+ export declare const Default: () => string;
2
+ export declare const storySources: {
3
+ readonly Default: () => string;
4
+ };
5
+ export type StorySourceName = keyof typeof storySources;
6
+ //# sourceMappingURL=PageBackground.stories.sources.d.ts.map
@@ -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<Pick<import("tamagui").StackProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & import("@tamagui/core").RNTamaguiViewNonStyleProps & Pick<import("tamagui").StackProps, "display" | "flex" | "flexWrap" | "flexDirection" | "opacity" | "overflow"> & {
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?: string;
25
- borderWidth?: number;
24
+ backgroundColor?: import("tamagui").ViewProps["backgroundColor"];
25
+ borderWidth?: import("tamagui").ViewProps["borderWidth"];
26
26
  borderRadius?: number | string;
27
- borderColor?: string;
27
+ borderColor?: import("tamagui").ViewProps["borderColor"];
28
28
  gap?: number | import("@alveole/theme").SpacingKey;
29
29
  } & {
30
- hoverStyle?: React.CSSProperties;
30
+ tag?: string;
31
31
  } & {
32
32
  title: string;
33
33
  description?: string;
@@ -1,5 +1,6 @@
1
1
  export * from './Page';
2
2
  export * from './Page.types';
3
+ export * from './PageBackground';
3
4
  export * from './PageContentScrollable';
4
5
  export * from './PageMetaContext';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,4 +1,5 @@
1
1
  export * from './Page';
2
2
  export * from './Page.types';
3
+ export * from './PageBackground';
3
4
  export * from './PageContentScrollable';
4
5
  export * from './PageMetaContext';
@@ -1,12 +1,12 @@
1
1
  import { RNTamaguiTextNonStyleProps, TamaguiTextElement, TextProps as TamaguiTextProps } from '@tamagui/core';
2
- import React, { CSSProperties } from 'react';
2
+ import React from 'react';
3
3
  import type { TypographyStyle } from './Typography.types';
4
- export type TypographyProps = Pick<TamaguiTextProps, 'exitStyle' | 'focusStyle' | 'pressStyle' | 'disabledStyle'> & Omit<RNTamaguiTextNonStyleProps, 'children'> & TypographyStyle & {
4
+ export type TypographyProps = Omit<TamaguiTextProps, keyof TypographyStyle | 'children' | 'tag' | 'style'> & Omit<RNTamaguiTextNonStyleProps, 'children' | 'tag'> & TypographyStyle & {
5
5
  children: React.ReactNode;
6
- hoverStyle?: CSSProperties;
6
+ tag?: string;
7
7
  };
8
8
  export type TypographyElement = TamaguiTextElement;
9
- export declare const Typography: React.ForwardRefExoticComponent<Pick<TamaguiTextProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & Omit<RNTamaguiTextNonStyleProps, "children"> & import("./Typography.types").TypographyBaseStyle & import("../..").SizeStyle & {
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
- hoverStyle?: CSSProperties;
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,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,eAAe,CAAC,GAC/G,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,GAC5C,eAAe,GAAG;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B,CAAC;AAGJ,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;cAPT,KAAK,CAAC,SAAS;iBACZ,aAAa;4CAuB5B,CAAC"}
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 { versStyleTamagui } from '../styleTamagui/versStyleTamagui';
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, hoverStyle, color, ...textProps } = props;
10
+ const { tag, style, textAlign, color, ...textProps } = props;
10
11
  const styles = useStyles();
11
- return (_jsx(StyledTypography, { ref: ref, hoverStyle: versStyleTamagui(hoverStyle), tag: tag ?? 'typography', style: style, textAlign: textAlign,
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), ...textProps }));
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<Pick<import("tamagui").TextProps, "pressStyle" | "focusStyle" | "disabledStyle" | "exitStyle"> & Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, "children"> & import("./Typography.types").TypographyBaseStyle & import("../..").SizeStyle & {
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
- hoverStyle?: import("react").CSSProperties;
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"]) => string | import("tamagui").Variable<any> | import("@tamagui/web").UnionableNumber | import("react-native").OpaqueColorValue;
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,GAAI,QAAQ,UAAU,CAAC,OAAO,SAAS,CAAC,EAAE,QAAQ,eAAe,CAAC,OAAO,CAAC,gIACzE,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,gCAkBxD,CAAC"}
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", flex: 1, style: { alignItems: 'center', justifyContent: 'center', paddingBottom: bottom }, children: _jsx(EmptyState, { title: title, description: description, iconName: "RefreshCw", actions: _jsx(Button, { variant: "primary", title: buttonLabel, onPress: onUpdate }) }) }));
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