@alveole/components 2.0.0-alpha.6 → 2.0.0-alpha.8

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 (263) 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/Page.stories.d.ts +5 -0
  25. package/dist/core/Page/Page.stories.d.ts.map +1 -1
  26. package/dist/core/Page/Page.stories.js +5 -0
  27. package/dist/core/Page/Page.stories.sources.d.ts +2 -0
  28. package/dist/core/Page/Page.stories.sources.d.ts.map +1 -1
  29. package/dist/core/Page/Page.stories.sources.js +3 -0
  30. package/dist/core/Page/Page.types.d.ts +1 -0
  31. package/dist/core/Page/Page.types.d.ts.map +1 -1
  32. package/dist/core/Page/PageBackground.d.ts +5 -5
  33. package/dist/core/Page/PageBackground.d.ts.map +1 -1
  34. package/dist/core/Page/PageBackground.js +8 -5
  35. package/dist/core/Page/PageBackground.stories.d.ts +25 -0
  36. package/dist/core/Page/PageBackground.stories.d.ts.map +1 -0
  37. package/dist/core/Page/PageBackground.stories.js +28 -0
  38. package/dist/core/Page/PageBackground.stories.sources.d.ts +8 -0
  39. package/dist/core/Page/PageBackground.stories.sources.d.ts.map +1 -0
  40. package/dist/core/Page/PageBackground.stories.sources.js +8 -0
  41. package/dist/core/Page/PageContent.js +2 -2
  42. package/dist/core/Page/PageContentDefault.d.ts.map +1 -1
  43. package/dist/core/Page/PageContentDefault.js +1 -1
  44. package/dist/core/Page/PageContentScrollable.d.ts +6 -5
  45. package/dist/core/Page/PageContentScrollable.d.ts.map +1 -1
  46. package/dist/core/Page/PageContentScrollable.js +1 -1
  47. package/dist/core/Page/index.d.ts +1 -0
  48. package/dist/core/Page/index.d.ts.map +1 -1
  49. package/dist/core/Page/index.js +1 -0
  50. package/dist/core/Typography/Typography.d.ts +5 -5
  51. package/dist/core/Typography/Typography.d.ts.map +1 -1
  52. package/dist/core/Typography/Typography.js +9 -4
  53. package/dist/core/Typography/Typography.stories.d.ts +2 -2
  54. package/dist/core/Typography/couleurDuTexte.d.ts +1 -1
  55. package/dist/core/Typography/couleurDuTexte.d.ts.map +1 -1
  56. package/dist/core/UpdateRequired/UpdateRequired.d.ts.map +1 -1
  57. package/dist/core/UpdateRequired/UpdateRequired.js +4 -1
  58. package/dist/core/animation/animer.d.ts +9 -0
  59. package/dist/core/animation/animer.d.ts.map +1 -0
  60. package/dist/core/animation/animer.js +5 -0
  61. package/dist/core/styleTamagui/aplatirStyle.d.ts +2 -0
  62. package/dist/core/styleTamagui/aplatirStyle.d.ts.map +1 -0
  63. package/dist/core/styleTamagui/aplatirStyle.js +9 -0
  64. package/dist/core/styleTamagui/definis.d.ts +4 -0
  65. package/dist/core/styleTamagui/definis.d.ts.map +1 -0
  66. package/dist/core/styleTamagui/definis.js +3 -0
  67. package/dist/core/styleTamagui/flexDuWeb.d.ts +23 -0
  68. package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -0
  69. package/dist/core/styleTamagui/flexDuWeb.js +19 -0
  70. package/dist/core/styleTamagui/fondAuSurvol.d.ts +14 -0
  71. package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -0
  72. package/dist/core/styleTamagui/fondAuSurvol.js +8 -0
  73. package/dist/core/styleTamagui/sansEstompage.d.ts +4 -0
  74. package/dist/core/styleTamagui/sansEstompage.d.ts.map +1 -0
  75. package/dist/core/styleTamagui/sansEstompage.js +4 -0
  76. package/dist/core/styleTamagui/soulignement.d.ts +11 -0
  77. package/dist/core/styleTamagui/soulignement.d.ts.map +1 -0
  78. package/dist/core/styleTamagui/soulignement.js +5 -0
  79. package/dist/generated/version.d.ts +1 -1
  80. package/dist/generated/version.js +1 -1
  81. package/dist/pdfjs/pdf.min.mjs +4 -5
  82. package/dist/pdfjs/pdf.worker.min.mjs +4 -5
  83. package/dist/stories/index.d.ts +1 -0
  84. package/dist/stories/index.d.ts.map +1 -1
  85. package/dist/stories/index.js +1 -0
  86. package/dist/ui/Accordion/AccordionItem.d.ts.map +1 -1
  87. package/dist/ui/Accordion/AccordionItem.js +2 -1
  88. package/dist/ui/ActionMenu/ActionMenuItem.d.ts.map +1 -1
  89. package/dist/ui/ActionMenu/ActionMenuItem.js +5 -5
  90. package/dist/ui/Avatar/Avatar.d.ts.map +1 -1
  91. package/dist/ui/Avatar/Avatar.js +6 -1
  92. package/dist/ui/Badge/Badge.d.ts.map +1 -1
  93. package/dist/ui/Badge/Badge.js +3 -2
  94. package/dist/ui/Badge/Badge.stories.d.ts +16 -12
  95. package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
  96. package/dist/ui/Badge/Badge.styles.d.ts +16 -12
  97. package/dist/ui/Badge/Badge.styles.d.ts.map +1 -1
  98. package/dist/ui/Badge/Badge.styles.js +4 -2
  99. package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
  100. package/dist/ui/BottomSheet/BottomSheet.js +2 -1
  101. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +6 -4
  102. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts.map +1 -1
  103. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +6 -4
  104. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts.map +1 -1
  105. package/dist/ui/BottomSheet/BottomSheet.styles.js +6 -4
  106. package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  107. package/dist/ui/Breadcrumbs/Breadcrumbs.js +2 -1
  108. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +5 -4
  109. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  110. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +5 -4
  111. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -1
  112. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.js +1 -4
  113. package/dist/ui/Button/ButtonContent.d.ts.map +1 -1
  114. package/dist/ui/Button/ButtonContent.js +7 -3
  115. package/dist/ui/Button/buttonIconStyling.d.ts +2 -2
  116. package/dist/ui/Button/buttonStyling.d.ts +9 -3
  117. package/dist/ui/Button/buttonStyling.d.ts.map +1 -1
  118. package/dist/ui/Button/buttonStyling.js +7 -3
  119. package/dist/ui/Checkbox/Checkbox.d.ts +6 -6
  120. package/dist/ui/Checkbox/Checkbox.stories.d.ts +7 -7
  121. package/dist/ui/Checkbox/Checkbox.styles.d.ts +1 -1
  122. package/dist/ui/Checkbox/Checkbox.styles.d.ts.map +1 -1
  123. package/dist/ui/Checkbox/Checkbox.styles.js +3 -4
  124. package/dist/ui/Checkbox/CheckboxContainer.d.ts +6 -6
  125. package/dist/ui/Checkbox/CheckboxContainer.d.ts.map +1 -1
  126. package/dist/ui/Checkbox/CheckboxContainer.js +4 -8
  127. package/dist/ui/Checkbox/CheckboxLabel.d.ts +1 -1
  128. package/dist/ui/Checkbox/CheckboxLabel.d.ts.map +1 -1
  129. package/dist/ui/Checkbox/CheckboxLabel.js +2 -2
  130. package/dist/ui/DataTable/DataTable.demo.deployments.js +1 -1
  131. package/dist/ui/DataTable/DataTable.stories.d.ts +3 -1
  132. package/dist/ui/DataTable/DataTable.stories.d.ts.map +1 -1
  133. package/dist/ui/DataTable/DataTable.styles.d.ts +3 -1
  134. package/dist/ui/DataTable/DataTable.styles.d.ts.map +1 -1
  135. package/dist/ui/DataTable/DataTable.styles.js +5 -1
  136. package/dist/ui/DataTable/DataTableCell.js +1 -1
  137. package/dist/ui/DataTable/DataTableRow.d.ts.map +1 -1
  138. package/dist/ui/DataTable/DataTableRow.js +4 -2
  139. package/dist/ui/DataTable/dataTableCellStyle.d.ts +2 -2
  140. package/dist/ui/DataTable/dataTableCellStyle.js +1 -1
  141. package/dist/ui/DateInput/DateInput.ios.d.ts +1 -1
  142. package/dist/ui/DateInput/DateInput.stories.d.ts +1 -1
  143. package/dist/ui/DateInput/DateInput.web.d.ts +1 -1
  144. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +1 -0
  145. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
  146. package/dist/ui/DocumentViewer/DocumentViewer.stories.js +1 -1
  147. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
  148. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +1 -1
  149. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +1 -0
  150. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts.map +1 -1
  151. package/dist/ui/DocumentViewer/DocumentViewer.styles.js +3 -0
  152. package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts.map +1 -1
  153. package/dist/ui/DocumentViewer/pointeurWeb.d.ts +13 -3
  154. package/dist/ui/DocumentViewer/pointeurWeb.d.ts.map +1 -1
  155. package/dist/ui/DocumentViewer/pointeurWeb.js +1 -1
  156. package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts +2 -2
  157. package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts.map +1 -1
  158. package/dist/ui/FilterDate/FilterDate.d.ts +1 -1
  159. package/dist/ui/FilterDate/FilterDate.d.ts.map +1 -1
  160. package/dist/ui/Header/Header.d.ts.map +1 -1
  161. package/dist/ui/Header/Header.js +1 -1
  162. package/dist/ui/Link/Link.d.ts.map +1 -1
  163. package/dist/ui/Link/Link.js +2 -1
  164. package/dist/ui/Link/Link.stories.d.ts +0 -4
  165. package/dist/ui/Link/Link.stories.d.ts.map +1 -1
  166. package/dist/ui/Link/Link.styles.d.ts +0 -4
  167. package/dist/ui/Link/Link.styles.d.ts.map +1 -1
  168. package/dist/ui/Link/Link.styles.js +0 -4
  169. package/dist/ui/ListItem/ListItem.d.ts.map +1 -1
  170. package/dist/ui/ListItem/ListItem.js +2 -1
  171. package/dist/ui/ListItem/ListItem.stories.d.ts +4 -2
  172. package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
  173. package/dist/ui/ListItem/ListItem.styles.d.ts +4 -2
  174. package/dist/ui/ListItem/ListItem.styles.d.ts.map +1 -1
  175. package/dist/ui/ListItem/ListItem.styles.js +6 -2
  176. package/dist/ui/LucideIcon/catalogueLucide.d.ts +54 -0
  177. package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
  178. package/dist/ui/LucideIcon/vendor/lab.js +1 -1
  179. package/dist/ui/LucideIcon/vendor/lucide.d.ts +2084 -1902
  180. package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
  181. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +1 -0
  182. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
  183. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +1 -0
  184. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts.map +1 -1
  185. package/dist/ui/ProgressBar/ProgressBar.styles.js +2 -0
  186. package/dist/ui/RadioGroup/RadioGroup.d.ts +2 -2
  187. package/dist/ui/RadioGroup/RadioGroup.d.ts.map +1 -1
  188. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +2 -4
  189. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  190. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +1 -3
  191. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
  192. package/dist/ui/RadioGroup/RadioGroup.styles.js +3 -6
  193. package/dist/ui/RadioGroup/RadioGroupCard.d.ts.map +1 -1
  194. package/dist/ui/RadioGroup/RadioGroupCard.js +2 -2
  195. package/dist/ui/RadioGroup/RadioGroupItem.d.ts.map +1 -1
  196. package/dist/ui/RadioGroup/RadioGroupItem.js +2 -2
  197. package/dist/ui/RadioGroup/RadioInput.d.ts.map +1 -1
  198. package/dist/ui/RadioGroup/RadioInput.js +5 -7
  199. package/dist/ui/RadioGroup/index.d.ts +1 -1
  200. package/dist/ui/Select/SelectItem.js +1 -1
  201. package/dist/ui/Select/SelectList.styles.d.ts +1 -9
  202. package/dist/ui/Select/SelectList.styles.d.ts.map +1 -1
  203. package/dist/ui/Select/SelectList.styles.js +5 -6
  204. package/dist/ui/Select/selectItemStyle.d.ts +4 -4
  205. package/dist/ui/Select/selectItemStyle.d.ts.map +1 -1
  206. package/dist/ui/Select/selectItemStyle.js +7 -3
  207. package/dist/ui/Select/useDefilementVersSelection.d.ts +3 -2
  208. package/dist/ui/Select/useDefilementVersSelection.d.ts.map +1 -1
  209. package/dist/ui/Sidebar/Sidebar.stories.d.ts +0 -7
  210. package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
  211. package/dist/ui/Sidebar/Sidebar.styles.d.ts +0 -7
  212. package/dist/ui/Sidebar/Sidebar.styles.d.ts.map +1 -1
  213. package/dist/ui/Sidebar/Sidebar.styles.js +0 -3
  214. package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
  215. package/dist/ui/Sidebar/SidebarItem.js +13 -9
  216. package/dist/ui/Signature/Signature.d.ts +1 -1
  217. package/dist/ui/Signature/Signature.d.ts.map +1 -1
  218. package/dist/ui/Skeleton/Skeleton.stories.d.ts +1 -0
  219. package/dist/ui/Skeleton/Skeleton.stories.d.ts.map +1 -1
  220. package/dist/ui/Skeleton/Skeleton.styles.d.ts +1 -0
  221. package/dist/ui/Skeleton/Skeleton.styles.d.ts.map +1 -1
  222. package/dist/ui/Skeleton/Skeleton.styles.js +2 -0
  223. package/dist/ui/Switch/Switch.d.ts +1 -1
  224. package/dist/ui/Switch/Switch.d.ts.map +1 -1
  225. package/dist/ui/Switch/Switch.js +11 -8
  226. package/dist/ui/Switch/Switch.stories.d.ts +3 -2
  227. package/dist/ui/Switch/Switch.stories.d.ts.map +1 -1
  228. package/dist/ui/Switch/Switch.styles.d.ts +2 -1
  229. package/dist/ui/Switch/Switch.styles.d.ts.map +1 -1
  230. package/dist/ui/Switch/Switch.styles.js +5 -4
  231. package/dist/ui/Tabs/Tabs.d.ts +1 -1
  232. package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
  233. package/dist/ui/Tabs/Tabs.js +1 -1
  234. package/dist/ui/Tabs/Tabs.stories.d.ts +26 -5
  235. package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
  236. package/dist/ui/Tabs/Tabs.styles.d.ts +26 -5
  237. package/dist/ui/Tabs/Tabs.styles.d.ts.map +1 -1
  238. package/dist/ui/Tabs/Tabs.styles.js +6 -2
  239. package/dist/ui/Tabs/TabsTab.js +1 -1
  240. package/dist/ui/Tabs/useTabsState.d.ts +1 -1
  241. package/dist/ui/Tabs/useTabsState.d.ts.map +1 -1
  242. package/dist/ui/Tabs/useTabsState.js +7 -4
  243. package/dist/ui/Toast/Toast.d.ts +3 -3
  244. package/dist/ui/Toast/Toast.d.ts.map +1 -1
  245. package/dist/ui/Toast/Toast.js +5 -7
  246. package/dist/ui/Toast/Toast.stories.d.ts +10 -7
  247. package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
  248. package/dist/ui/Toast/Toast.stories.js +12 -9
  249. package/dist/ui/Toast/Toast.stories.sources.js +1 -1
  250. package/dist/ui/Toast/ToastContext.d.ts +1 -0
  251. package/dist/ui/Toast/ToastContext.d.ts.map +1 -1
  252. package/dist/ui/Toast/ToastContext.js +1 -0
  253. package/dist/ui/Toast/Toasts.d.ts +2 -1
  254. package/dist/ui/Toast/Toasts.d.ts.map +1 -1
  255. package/dist/ui/Toast/Toasts.js +9 -5
  256. package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +2 -2
  257. package/package.json +29 -27
  258. package/dist/core/styleTamagui/versStyleTamagui.d.ts +0 -10
  259. package/dist/core/styleTamagui/versStyleTamagui.d.ts.map +0 -1
  260. package/dist/core/styleTamagui/versStyleTamagui.js +0 -8
  261. package/dist/ui/Toast/ToastBridge.d.ts +0 -11
  262. package/dist/ui/Toast/ToastBridge.d.ts.map +0 -1
  263. 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,GAAG,MAAM,CAAC;IACpB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,qGAAqG;IACrG,aAAa,CAAC,EAAE,aAAa,CAAC;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"}
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, 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,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,MAA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AAG,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;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,OA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,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 }),
@@ -40,6 +40,11 @@ export declare const WithPageMetaProvider: () => null;
40
40
  * démontre que le scroll se fait bien au sein de la page.
41
41
  */
42
42
  export declare const WithScrollable: () => import("react").JSX.Element;
43
+ /**
44
+ * Active le fond en dégradé vertical (`default-grey` → `alt-grey`) via `gradient`.
45
+ * Désactivé par défaut : le fond est uni.
46
+ */
47
+ export declare const WithGradient: () => import("react").JSX.Element;
43
48
  /**
44
49
  * Intégration avec un contrôleur de sidebar via `useSidebar()`.
45
50
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Page.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Page/Page.stories.tsx"],"names":[],"mappings":";;;;;;;;;AAIA,wBAUkB;AAElB,eAAO,MAAM,OAAO,mCAInB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAIlB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAI1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAY5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,YAAa,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,mCAI1B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,YAAa,CAAC;AAEtC,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"Page.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Page/Page.stories.tsx"],"names":[],"mappings":";;;;;;;;;AAIA,wBAUkB;AAElB,eAAO,MAAM,OAAO,mCAInB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAIlB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAI1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAY5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,YAAa,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,mCAI1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,mCAIxB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,YAAa,CAAC;AAEtC,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
@@ -46,6 +46,11 @@ export const WithPageMetaProvider = () => null;
46
46
  * démontre que le scroll se fait bien au sein de la page.
47
47
  */
48
48
  export const WithScrollable = () => (_jsx(Page, { title: "Page scrollable", scrollable: true, children: _jsx(Typography, { children: "Page avec du scroll." }) }));
49
+ /**
50
+ * Active le fond en dégradé vertical (`default-grey` → `alt-grey`) via `gradient`.
51
+ * Désactivé par défaut : le fond est uni.
52
+ */
53
+ export const WithGradient = () => (_jsx(Page, { title: "Page avec d\u00E9grad\u00E9", gradient: true, children: _jsx(Typography, { children: "Page avec un fond en d\u00E9grad\u00E9." }) }));
49
54
  /**
50
55
  * Intégration avec un contrôleur de sidebar via `useSidebar()`.
51
56
  *
@@ -4,6 +4,7 @@ export declare const WithMetaRobots: () => string;
4
4
  export declare const WithMultipleMeta: () => string;
5
5
  export declare const WithPageMetaProvider: () => string;
6
6
  export declare const WithScrollable: () => string;
7
+ export declare const WithGradient: () => string;
7
8
  export declare const WithSidebar: () => string;
8
9
  export declare const storySources: {
9
10
  readonly Default: () => string;
@@ -12,6 +13,7 @@ export declare const storySources: {
12
13
  readonly WithMultipleMeta: () => string;
13
14
  readonly WithPageMetaProvider: () => string;
14
15
  readonly WithScrollable: () => string;
16
+ readonly WithGradient: () => string;
15
17
  readonly WithSidebar: () => string;
16
18
  };
17
19
  export type StorySourceName = keyof typeof storySources;
@@ -1 +1 @@
1
- {"version":3,"file":"Page.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Page/Page.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAmK,CAAC;AAExL,eAAO,MAAM,MAAM,cAA2O,CAAC;AAE/P,eAAO,MAAM,cAAc,cAAoP,CAAC;AAEhR,eAAO,MAAM,gBAAgB,cAAsa,CAAC;AAEpc,eAAO,MAAM,oBAAoB,cAA0D,CAAC;AAE5F,eAAO,MAAM,cAAc,cAAiK,CAAC;AAE7L,eAAO,MAAM,WAAW,cAAiD,CAAC;AAE1E,eAAO,MAAM,YAAY;;;;;;;;CAQf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAItE,CAAC"}
1
+ {"version":3,"file":"Page.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Page/Page.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAmK,CAAC;AAExL,eAAO,MAAM,MAAM,cAA2O,CAAC;AAE/P,eAAO,MAAM,cAAc,cAAoP,CAAC;AAEhR,eAAO,MAAM,gBAAgB,cAAsa,CAAC;AAEpc,eAAO,MAAM,oBAAoB,cAA0D,CAAC;AAE5F,eAAO,MAAM,cAAc,cAAiK,CAAC;AAE7L,eAAO,MAAM,YAAY,cAAwK,CAAC;AAElM,eAAO,MAAM,WAAW,cAAiD,CAAC;AAE1E,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAKtE,CAAC"}
@@ -6,6 +6,7 @@ export const WithMetaRobots = () => "export const WithMetaRobots = () => (\n <P
6
6
  export const WithMultipleMeta = () => "export const WithMultipleMeta = () => (\n <Page\n title=\"Page complète\"\n description=\"Avec plusieurs balises meta\"\n meta={[\n { name: 'robots', content: 'noindex, nofollow' },\n { name: 'author', content: 'Alvéole' },\n { httpEquiv: 'X-UA-Compatible', content: 'IE=edge' },\n ]}\n >\n <Typography>Page avec plusieurs balises meta personnalisées.</Typography>\n </Page>\n);";
7
7
  export const WithPageMetaProvider = () => "export const WithPageMetaProvider = () => null;";
8
8
  export const WithScrollable = () => "export const WithScrollable = () => (\n <Page title=\"Page scrollable\" scrollable>\n <Typography>Page avec du scroll.</Typography>\n </Page>\n);";
9
+ export const WithGradient = () => "export const WithGradient = () => (\n <Page title=\"Page avec dégradé\" gradient>\n <Typography>Page avec un fond en dégradé.</Typography>\n </Page>\n);";
9
10
  export const WithSidebar = () => "export const WithSidebar = () => null;";
10
11
  export const storySources = {
11
12
  Default,
@@ -14,10 +15,12 @@ export const storySources = {
14
15
  WithMultipleMeta,
15
16
  WithPageMetaProvider,
16
17
  WithScrollable,
18
+ WithGradient,
17
19
  WithSidebar,
18
20
  };
19
21
  export const storyDescriptions = {
20
22
  WithPageMetaProvider: "Configure des meta globales pour toutes les pages via `PageMetaProvider` dans `app/_layout.tsx`.\nLes meta du provider sont injectées en premier ; la prop `meta` de chaque `<Page>` les complète ou les écrase.\n\n```tsx\nimport { PageMetaProvider } from '@alveole/components';\n\nexport default function RootLayout() {\n return (\n <PageMetaProvider meta={[{ name: 'robots', content: 'noindex, nofollow' }]}>\n <Stack />\n </PageMetaProvider>\n );\n}\n\n// Une page peut surcharger ou ajouter des meta sans répéter le noindex :\n<Page title=\"Ma page\" meta={[{ name: 'author', content: 'Alvéole' }]} />\n```",
21
23
  WithScrollable: "Rend la page scrollable via l'attribut `scrollable`. Accepte aussi `mobile-only` ou `desktop-only`\npour limiter le scroll à une plateforme.\n\nCi-dessous, 4 Box de 300px de haut chacune : le contenu dépasse la hauteur de l'écran, ce qui\ndémontre que le scroll se fait bien au sein de la page.",
24
+ WithGradient: "Active le fond en dégradé vertical (`default-grey` → `alt-grey`) via `gradient`.\nDésactivé par défaut : le fond est uni.",
22
25
  WithSidebar: "Intégration avec un contrôleur de sidebar via `useSidebar()`.\n\n```tsx\nconst sidebarController = useSidebar();\nreturn (\n <Page\n sideBarController={sidebarController}\n sidebar={<AdminNavigation sidebarController={sidebarController} />}\n title=\"Mon titre\"\n >\n ...\n </Page>\n);\n```",
23
26
  };
@@ -11,6 +11,7 @@ export type PageProps = BoxProps & {
11
11
  title: string;
12
12
  description?: string;
13
13
  defaultBackgroundColor?: string;
14
+ gradient?: boolean;
14
15
  og?: {
15
16
  title?: string;
16
17
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Page.types.d.ts","sourceRoot":"","sources":["../../../src/core/Page/Page.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,EAAE,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC;IACtD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,SAAS,CAAC,EAAE,kBAAkB,CAAC;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,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAE/B,aAAa,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAEvE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  export type PageBackgroundProps = {
3
3
  children: React.ReactNode;
4
+ gradient?: boolean;
4
5
  };
5
6
  /**
6
- * Le fond d'une page est une surface de la palette, unie. Un dégradé ferait varier la
7
- * couleur selon la hauteur : aucun contenu posé dessus ne pourrait alors s'accorder à une
8
- * valeur du thème, et deux éléments identiques n'auraient pas le même fond selon l'endroit
9
- * où ils tombent dans la page.
7
+ * Le fond d'une page est par défaut une surface de la palette, unie. Un dégradé fait varier la
8
+ * couleur selon la hauteur : aucun contenu posé dessus ne peut alors s'accorder à une valeur du
9
+ * thème. Il reste disponible en opt-in via `gradient`.
10
10
  */
11
- export declare const PageBackground: ({ children }: PageBackgroundProps) => React.JSX.Element;
11
+ export declare const PageBackground: ({ children, gradient }: PageBackgroundProps) => React.JSX.Element;
12
12
  //# sourceMappingURL=PageBackground.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageBackground.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageBackground.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,cAAc,mBAAmB,sBAO/D,CAAC"}
1
+ {"version":3,"file":"PageBackground.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageBackground.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,wBAAgC,mBAAmB,sBAoBjF,CAAC"}
@@ -1,15 +1,18 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useTheme } from '@alveole/theme';
3
+ import { LinearGradient } from 'expo-linear-gradient';
3
4
  import { Box } from '../Box';
4
5
  import { useStyles } from './Page.styles';
5
6
  /**
6
- * Le fond d'une page est une surface de la palette, unie. Un dégradé ferait varier la
7
- * couleur selon la hauteur : aucun contenu posé dessus ne pourrait alors s'accorder à une
8
- * valeur du thème, et deux éléments identiques n'auraient pas le même fond selon l'endroit
9
- * où ils tombent dans la page.
7
+ * Le fond d'une page est par défaut une surface de la palette, unie. Un dégradé fait varier la
8
+ * couleur selon la hauteur : aucun contenu posé dessus ne peut alors s'accorder à une valeur du
9
+ * thème. Il reste disponible en opt-in via `gradient`.
10
10
  */
11
- export const PageBackground = ({ children }) => {
11
+ export const PageBackground = ({ children, gradient = false }) => {
12
12
  const styles = useStyles();
13
13
  const { color } = useTheme();
14
+ if (gradient) {
15
+ return (_jsx(LinearGradient, { colors: [color.light.background['default-grey'], color.light.background['alt-grey']], start: { x: 0.5, y: 0 }, end: { x: 0.5, y: 1 }, style: styles.pageBackground, children: children }));
16
+ }
14
17
  return (_jsx(Box, { style: { ...styles.pageBackground, backgroundColor: color.light.background['default-grey'] }, children: children }));
15
18
  };
@@ -0,0 +1,25 @@
1
+ declare const _default: {
2
+ title: string;
3
+ tags: "core"[];
4
+ experimental: false;
5
+ description: string;
6
+ shortDescription: string;
7
+ component: ({ children, gradient }: 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 declare const Gradient: () => import("react").JSX.Element;
24
+ export * as Sources from './PageBackground.stories.sources';
25
+ //# 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,wBAmBkB;AAElB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAMpB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,28 @@
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
+ - Avec \`gradient\`, applique un dégradé vertical \`default-grey\` → \`alt-grey\` (désactivé par défaut).
17
+ - Avec \`gradient\`, applique un dégradé vertical \`default-grey\` → \`alt-grey\` (désactivé par défaut).
18
+
19
+ ## Pourquoi un fond uni par défaut ?
20
+
21
+ 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.`,
22
+ shortDescription: 'Fond de page uni utilisant la couleur de palette default-grey du thème.',
23
+ component: PageBackground,
24
+ styleFn: useStyles,
25
+ };
26
+ 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" }) }) }));
27
+ export const Gradient = () => (_jsx(Box, { style: { height: 300, width: '100%' }, children: _jsx(PageBackground, { gradient: true, children: _jsx(Typography, { children: "Contenu pos\u00E9 sur le fond en d\u00E9grad\u00E9" }) }) }));
28
+ export * as Sources from './PageBackground.stories.sources';
@@ -0,0 +1,8 @@
1
+ export declare const Default: () => string;
2
+ export declare const Gradient: () => string;
3
+ export declare const storySources: {
4
+ readonly Default: () => string;
5
+ readonly Gradient: () => string;
6
+ };
7
+ export type StorySourceName = keyof typeof storySources;
8
+ //# 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,QAAQ,cAAkO,CAAC;AAExP,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -0,0 +1,8 @@
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 Gradient = () => "export const Gradient = () => (\n <Box style={{ height: 300, width: '100%' }}>\n <PageBackground gradient>\n <Typography>Contenu posé sur le fond en dégradé</Typography>\n </PageBackground>\n </Box>\n);";
5
+ export const storySources = {
6
+ Default,
7
+ Gradient,
8
+ };
@@ -10,7 +10,7 @@ import { PageContentDefault } from './PageContentDefault';
10
10
  import { PageContentScrollable } from './PageContentScrollable';
11
11
  import { usePageStatusBar } from './usePageStatusBar';
12
12
  export const PageContent = (props) => {
13
- const { scrollable = false, renderToolbar, sidebar, sideBarController, onScrollChange, statusBar } = props;
13
+ const { gradient, scrollable = false, renderToolbar, sidebar, sideBarController, onScrollChange, statusBar } = props;
14
14
  const { isVariant } = useTheme();
15
15
  const styles = useStyles();
16
16
  const { top } = useSafeAreaInsets();
@@ -27,5 +27,5 @@ export const PageContent = (props) => {
27
27
  (scrollable === 'desktop-only' && isVariant('desktop')) ||
28
28
  (scrollable === 'mobile-only' && mobileOrTablet), [isVariant, mobileOrTablet, scrollable]);
29
29
  const renderContent = () => isScrollable ? (_jsx(PageContentScrollable, { ...props, style: { backgroundColor: 'transparent' }, onScrollChange: handleInternalScrollChange })) : (_jsx(PageContentDefault, { ...props, style: { backgroundColor: 'transparent' } }));
30
- return (_jsx(PageBackground, { children: sidebar || renderToolbar ? renderPageWithSidebar(renderContent()) : renderContent() }));
30
+ return (_jsx(PageBackground, { gradient: gradient, children: sidebar || renderToolbar ? renderPageWithSidebar(renderContent()) : renderContent() }));
31
31
  };