@alveole/components 2.0.0-alpha.15 → 2.0.0-alpha.17

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 (392) hide show
  1. package/dist/core/AlveoleProvider/AlveoleProvider.d.ts +17 -0
  2. package/dist/core/AlveoleProvider/AlveoleProvider.d.ts.map +1 -0
  3. package/dist/core/AlveoleProvider/AlveoleProvider.js +15 -0
  4. package/dist/core/AlveoleProvider/index.d.ts +2 -0
  5. package/dist/core/AlveoleProvider/index.d.ts.map +1 -0
  6. package/dist/core/AlveoleProvider/index.js +1 -0
  7. package/dist/core/AnchorHeading/AnchorHeading.d.ts +6 -2
  8. package/dist/core/AnchorHeading/AnchorHeading.d.ts.map +1 -1
  9. package/dist/core/AnchorHeading/AnchorHeading.js +1 -1
  10. package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts +2 -1
  11. package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts.map +1 -1
  12. package/dist/core/AnchorHeading/AnchorHeading.stories.js +1 -0
  13. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts +2 -0
  14. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts.map +1 -1
  15. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.js +2 -0
  16. package/dist/core/AnchorHeading/AnchorHeading.web.d.ts +1 -1
  17. package/dist/core/AnchorHeading/AnchorHeading.web.d.ts.map +1 -1
  18. package/dist/core/AnchorHeading/AnchorHeading.web.js +7 -4
  19. package/dist/core/AnchorHeading/slug.d.ts +3 -0
  20. package/dist/core/AnchorHeading/slug.d.ts.map +1 -1
  21. package/dist/core/AnchorHeading/slug.js +11 -0
  22. package/dist/core/Box/Box.d.ts +15 -15
  23. package/dist/core/Box/Box.d.ts.map +1 -1
  24. package/dist/core/Box/Box.js +9 -6
  25. package/dist/core/Box/Box.stories.d.ts +19 -15
  26. package/dist/core/Box/Box.stories.d.ts.map +1 -1
  27. package/dist/core/Box/Box.stories.js +21 -4
  28. package/dist/core/Box/Box.stories.sources.d.ts +8 -0
  29. package/dist/core/Box/Box.stories.sources.d.ts.map +1 -1
  30. package/dist/core/Box/Box.stories.sources.js +11 -3
  31. package/dist/core/Box/Box.types.d.ts +21 -15
  32. package/dist/core/Box/Box.types.d.ts.map +1 -1
  33. package/dist/core/Box/elementDuTag.d.ts +2 -0
  34. package/dist/core/Box/elementDuTag.d.ts.map +1 -0
  35. package/dist/core/Box/elementDuTag.js +12 -0
  36. package/dist/core/Code/Code.stories.d.ts +2 -2
  37. package/dist/core/Code/Code.stories.js +1 -1
  38. package/dist/core/Code/Code.stories.sources.d.ts.map +1 -1
  39. package/dist/core/Code/Code.stories.sources.js +1 -1
  40. package/dist/core/Code/Code.styles.d.ts +2 -2
  41. package/dist/core/Form/Form.stories.js +1 -1
  42. package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
  43. package/dist/core/Form/Form.stories.sources.js +1 -1
  44. package/dist/core/Grid/Grid.stories.d.ts +15 -14
  45. package/dist/core/Grid/Grid.stories.d.ts.map +1 -1
  46. package/dist/core/Grid/Grid.stories.js +14 -12
  47. package/dist/core/Grid/Grid.stories.sources.d.ts.map +1 -1
  48. package/dist/core/Grid/Grid.stories.sources.js +9 -9
  49. package/dist/core/Heading/Heading.d.ts +8 -0
  50. package/dist/core/Heading/Heading.d.ts.map +1 -0
  51. package/dist/core/Heading/Heading.js +15 -0
  52. package/dist/core/Heading/Heading.stories.d.ts +13 -0
  53. package/dist/core/Heading/Heading.stories.d.ts.map +1 -0
  54. package/dist/core/Heading/Heading.stories.js +13 -0
  55. package/dist/core/Heading/Heading.stories.sources.d.ts +8 -0
  56. package/dist/core/Heading/Heading.stories.sources.d.ts.map +1 -0
  57. package/dist/core/Heading/Heading.stories.sources.js +8 -0
  58. package/dist/core/Heading/index.d.ts +2 -0
  59. package/dist/core/Heading/index.d.ts.map +1 -0
  60. package/dist/core/Heading/index.js +1 -0
  61. package/dist/core/Highlight/Highlight.stories.d.ts +4 -4
  62. package/dist/core/Highlight/Highlight.styles.d.ts +4 -4
  63. package/dist/core/Highlight/Highlight.theme.d.ts +1 -3
  64. package/dist/core/Highlight/Highlight.theme.d.ts.map +1 -1
  65. package/dist/core/Highlight/Highlight.theme.js +9 -16
  66. package/dist/core/Map/Map.js +1 -1
  67. package/dist/core/MarkdownDescription/MarkdownDescription.js +1 -1
  68. package/dist/core/MarkdownDescription/markdownComponents.d.ts +3 -3
  69. package/dist/core/MarkdownDescription/markdownComponents.d.ts.map +1 -1
  70. package/dist/core/MarkdownDescription/markdownComponents.js +14 -12
  71. package/dist/core/MarkdownDescription/markdownNatif.d.ts.map +1 -1
  72. package/dist/core/MarkdownDescription/markdownNatif.js +5 -4
  73. package/dist/core/Page/PageContent.d.ts.map +1 -1
  74. package/dist/core/Page/PageContent.js +1 -1
  75. package/dist/core/Page/PageContentScrollable.d.ts +15 -15
  76. package/dist/core/Page/usePageStatusBar.d.ts.map +1 -1
  77. package/dist/core/Page/usePageStatusBar.js +3 -3
  78. package/dist/core/Section/Section.stories.d.ts.map +1 -1
  79. package/dist/core/Section/Section.stories.js +8 -6
  80. package/dist/core/Section/Section.stories.sources.d.ts.map +1 -1
  81. package/dist/core/Section/Section.stories.sources.js +4 -4
  82. package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
  83. package/dist/core/ThemeProvider/ThemeProvider.stories.js +17 -12
  84. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts.map +1 -1
  85. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.js +2 -2
  86. package/dist/core/Typography/Typography.stories.d.ts +1 -0
  87. package/dist/core/Typography/Typography.stories.d.ts.map +1 -1
  88. package/dist/core/Typography/Typography.stories.js +2 -0
  89. package/dist/core/Typography/Typography.stories.sources.d.ts +2 -0
  90. package/dist/core/Typography/Typography.stories.sources.d.ts.map +1 -1
  91. package/dist/core/Typography/Typography.stories.sources.js +2 -0
  92. package/dist/core/Typography/Typography.styles.d.ts +1 -1
  93. package/dist/core/Version/Version.stories.d.ts +1 -1
  94. package/dist/core/Version/Version.styles.d.ts +1 -1
  95. package/dist/core/index.d.ts +2 -0
  96. package/dist/core/index.d.ts.map +1 -1
  97. package/dist/core/index.js +2 -0
  98. package/dist/core/styleTamagui/flexDuWeb.d.ts +1 -1
  99. package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -1
  100. package/dist/core/styleTamagui/flexDuWeb.js +4 -3
  101. package/dist/core/styleTamagui/fondAuSurvol.d.ts +5 -4
  102. package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -1
  103. package/dist/generated/version.d.ts +1 -1
  104. package/dist/generated/version.js +1 -1
  105. package/dist/stories/index.d.ts +1 -0
  106. package/dist/stories/index.d.ts.map +1 -1
  107. package/dist/stories/index.js +1 -0
  108. package/dist/ui/Accordion/Accordion.stories.d.ts +8 -8
  109. package/dist/ui/Accordion/Accordion.styles.d.ts +8 -8
  110. package/dist/ui/Accordion/Accordion.styles.js +2 -2
  111. package/dist/ui/Avatar/Avatar.stories.d.ts +2 -2
  112. package/dist/ui/Avatar/Avatar.styles.d.ts +2 -2
  113. package/dist/ui/Badge/Badge.stories.d.ts +12 -12
  114. package/dist/ui/Badge/Badge.stories.js +3 -3
  115. package/dist/ui/Badge/Badge.stories.sources.d.ts.map +1 -1
  116. package/dist/ui/Badge/Badge.stories.sources.js +3 -3
  117. package/dist/ui/Badge/Badge.styles.d.ts +12 -12
  118. package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
  119. package/dist/ui/BottomSheet/BottomSheet.js +2 -1
  120. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +2 -2
  121. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +2 -2
  122. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
  123. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.js +6 -6
  124. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.d.ts.map +1 -1
  125. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.js +6 -6
  126. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +3 -3
  127. package/dist/ui/Button/Button.d.ts +4 -2
  128. package/dist/ui/Button/Button.d.ts.map +1 -1
  129. package/dist/ui/Button/Button.stories.d.ts +49 -49
  130. package/dist/ui/Button/Button.stories.js +8 -8
  131. package/dist/ui/Button/Button.stories.sources.d.ts.map +1 -1
  132. package/dist/ui/Button/Button.stories.sources.js +8 -8
  133. package/dist/ui/Button/Button.styles.d.ts +48 -48
  134. package/dist/ui/Button/buttonIconStyling.d.ts +4 -20
  135. package/dist/ui/Button/buttonIconStyling.d.ts.map +1 -1
  136. package/dist/ui/Card/Card.stories.d.ts +5 -3
  137. package/dist/ui/Card/Card.stories.d.ts.map +1 -1
  138. package/dist/ui/Card/Card.stories.js +8 -1
  139. package/dist/ui/Card/Card.stories.sources.d.ts +4 -0
  140. package/dist/ui/Card/Card.stories.sources.d.ts.map +1 -1
  141. package/dist/ui/Card/Card.stories.sources.js +5 -1
  142. package/dist/ui/Card/Card.styles.d.ts +2 -2
  143. package/dist/ui/Card/CardHeader.styles.d.ts +3 -3
  144. package/dist/ui/Card/CardSection.styles.d.ts +3 -3
  145. package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
  146. package/dist/ui/Checkbox/Checkbox.js +1 -3
  147. package/dist/ui/Checkbox/Checkbox.stories.d.ts +10 -10
  148. package/dist/ui/Checkbox/Checkbox.stories.js +2 -2
  149. package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts.map +1 -1
  150. package/dist/ui/Checkbox/Checkbox.stories.sources.js +2 -2
  151. package/dist/ui/Checkbox/Checkbox.styles.d.ts +10 -10
  152. package/dist/ui/Checkbox/Checkbox.styles.js +6 -6
  153. package/dist/ui/Counter/Counter.stories.d.ts +3 -3
  154. package/dist/ui/Counter/Counter.stories.js +1 -1
  155. package/dist/ui/Counter/Counter.stories.sources.d.ts.map +1 -1
  156. package/dist/ui/Counter/Counter.stories.sources.js +1 -1
  157. package/dist/ui/Counter/Counter.styles.d.ts +3 -3
  158. package/dist/ui/DataTable/DataTable.stories.d.ts +11 -11
  159. package/dist/ui/DataTable/DataTable.styles.d.ts +11 -11
  160. package/dist/ui/DateInput/DateInput.d.ts +2 -2
  161. package/dist/ui/DateInput/DateInput.d.ts.map +1 -1
  162. package/dist/ui/DateInput/DateInput.ios.d.ts +2 -1
  163. package/dist/ui/DateInput/DateInput.ios.d.ts.map +1 -1
  164. package/dist/ui/DateInput/DateInput.stories.d.ts +1 -1
  165. package/dist/ui/DateInput/DateInput.stories.js +2 -2
  166. package/dist/ui/DateInput/DateInput.stories.sources.d.ts.map +1 -1
  167. package/dist/ui/DateInput/DateInput.stories.sources.js +2 -2
  168. package/dist/ui/Divider/Divider.stories.d.ts +1 -1
  169. package/dist/ui/Divider/Divider.stories.d.ts.map +1 -1
  170. package/dist/ui/Divider/Divider.stories.js +1 -1
  171. package/dist/ui/Divider/Divider.stories.sources.d.ts.map +1 -1
  172. package/dist/ui/Divider/Divider.stories.sources.js +1 -1
  173. package/dist/ui/Divider/Divider.styles.d.ts +1 -1
  174. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +11 -11
  175. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
  176. package/dist/ui/DocumentViewer/DocumentViewer.stories.js +2 -2
  177. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
  178. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +2 -2
  179. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +11 -11
  180. package/dist/ui/DocumentViewer/chargementDePdfJs.d.ts.map +1 -1
  181. package/dist/ui/DocumentViewer/chargementDePdfJs.js +3 -1
  182. package/dist/ui/DurationInput/DurationInput.d.ts +2 -1
  183. package/dist/ui/DurationInput/DurationInput.d.ts.map +1 -1
  184. package/dist/ui/DurationInput/DurationInput.stories.d.ts +1 -1
  185. package/dist/ui/DurationInput/DurationInput.stories.js +2 -2
  186. package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts.map +1 -1
  187. package/dist/ui/DurationInput/DurationInput.stories.sources.js +2 -2
  188. package/dist/ui/EmptyState/EmptyState.stories.d.ts +4 -4
  189. package/dist/ui/EmptyState/EmptyState.styles.d.ts +4 -4
  190. package/dist/ui/FileDropZone/FileDropZone.stories.d.ts +4 -4
  191. package/dist/ui/FileDropZone/FileDropZone.stories.js +3 -3
  192. package/dist/ui/FileDropZone/FileDropZone.stories.sources.d.ts.map +1 -1
  193. package/dist/ui/FileDropZone/FileDropZone.stories.sources.js +3 -3
  194. package/dist/ui/FileDropZone/FileDropZone.styles.d.ts +4 -4
  195. package/dist/ui/FilterDate/FilterDate.stories.d.ts +1 -1
  196. package/dist/ui/FilterDate/FilterDate.styles.d.ts +1 -1
  197. package/dist/ui/FormControl/ChampHHMM.d.ts +2 -2
  198. package/dist/ui/FormControl/ChampHHMM.d.ts.map +1 -1
  199. package/dist/ui/FormControl/FormControl.d.ts +2 -2
  200. package/dist/ui/FormControl/FormControl.d.ts.map +1 -1
  201. package/dist/ui/FormControl/FormControl.stories.d.ts +18 -18
  202. package/dist/ui/FormControl/FormControl.stories.js +4 -4
  203. package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
  204. package/dist/ui/FormControl/FormControl.stories.sources.js +4 -4
  205. package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
  206. package/dist/ui/FormControl/NumberInput.d.ts +2 -1
  207. package/dist/ui/FormControl/NumberInput.d.ts.map +1 -1
  208. package/dist/ui/FormControl/NumberInput.stories.d.ts +18 -18
  209. package/dist/ui/FormControl/NumberInput.stories.d.ts.map +1 -1
  210. package/dist/ui/FormControl/NumberInput.stories.js +2 -1
  211. package/dist/ui/FormControl/NumberInput.stories.sources.d.ts.map +1 -1
  212. package/dist/ui/FormControl/NumberInput.stories.sources.js +1 -1
  213. package/dist/ui/FormControl/OtpInput.stories.d.ts +5 -5
  214. package/dist/ui/FormControl/OtpInput.stories.js +1 -1
  215. package/dist/ui/FormControl/OtpInput.stories.sources.d.ts.map +1 -1
  216. package/dist/ui/FormControl/OtpInput.stories.sources.js +1 -1
  217. package/dist/ui/FormControl/OtpInput.styles.d.ts +5 -5
  218. package/dist/ui/FormControl/OtpInput.styles.js +2 -2
  219. package/dist/ui/FormControl/TextInput.d.ts +1 -1
  220. package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
  221. package/dist/ui/FormControl/TextInput.stories.d.ts +18 -18
  222. package/dist/ui/FormControl/TextInput.types.d.ts +3 -2
  223. package/dist/ui/FormControl/TextInput.types.d.ts.map +1 -1
  224. package/dist/ui/FormControl/TextInputInline.d.ts +2 -2
  225. package/dist/ui/FormControl/TextInputInline.d.ts.map +1 -1
  226. package/dist/ui/FormControl/TextInputMirror.d.ts +2 -2
  227. package/dist/ui/FormControl/TextInputMirror.d.ts.map +1 -1
  228. package/dist/ui/FormControl/TextInputModal.d.ts +2 -2
  229. package/dist/ui/FormControl/TextInputModal.d.ts.map +1 -1
  230. package/dist/ui/FormControl/TextInputPassword.d.ts +2 -1
  231. package/dist/ui/FormControl/TextInputPassword.d.ts.map +1 -1
  232. package/dist/ui/FormControl/fieldBorderState.d.ts +1 -1
  233. package/dist/ui/FormControl/fieldBorderState.d.ts.map +1 -1
  234. package/dist/ui/FormControl/otpTheme.d.ts +1 -1
  235. package/dist/ui/FormControl/otpTheme.d.ts.map +1 -1
  236. package/dist/ui/FormControl/otpTheme.js +0 -3
  237. package/dist/ui/FormControl/textInputStyles.d.ts +52 -0
  238. package/dist/ui/FormControl/textInputStyles.d.ts.map +1 -1
  239. package/dist/ui/FormControl/useTextInputModal.d.ts +4 -3
  240. package/dist/ui/FormControl/useTextInputModal.d.ts.map +1 -1
  241. package/dist/ui/Header/Header.stories.d.ts +4 -4
  242. package/dist/ui/Header/Header.styles.d.ts +4 -4
  243. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts +2 -2
  244. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.js +1 -1
  245. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts.map +1 -1
  246. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.js +1 -1
  247. package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts +2 -2
  248. package/dist/ui/Link/Link.stories.d.ts +1 -1
  249. package/dist/ui/Link/Link.styles.d.ts +1 -1
  250. package/dist/ui/ListItem/ListItem.stories.d.ts +6 -6
  251. package/dist/ui/ListItem/ListItem.styles.d.ts +6 -6
  252. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
  253. package/dist/ui/LucideIcon/LucideIcon.stories.js +2 -1
  254. package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
  255. package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +1 -1
  256. package/dist/ui/LucideIcon/catalogueLucide.d.ts +36 -0
  257. package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
  258. package/dist/ui/LucideIcon/vendor/lab.js +1 -1
  259. package/dist/ui/LucideIcon/vendor/lucide.d.ts +1936 -1780
  260. package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
  261. package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
  262. package/dist/ui/PageHeader/PageHeader.styles.d.ts +1 -1
  263. package/dist/ui/Popover/Popover.js +1 -1
  264. package/dist/ui/Popover/Popover.stories.d.ts +6 -6
  265. package/dist/ui/Popover/Popover.styles.d.ts +6 -6
  266. package/dist/ui/PriceInput/PriceInput.d.ts +2 -3
  267. package/dist/ui/PriceInput/PriceInput.d.ts.map +1 -1
  268. package/dist/ui/PriceInput/PriceInput.js +2 -2
  269. package/dist/ui/PriceInput/PriceInput.stories.d.ts +22 -6
  270. package/dist/ui/PriceInput/PriceInput.stories.d.ts.map +1 -1
  271. package/dist/ui/PriceInput/PriceInput.stories.js +2 -1
  272. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts +2 -0
  273. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -1
  274. package/dist/ui/PriceInput/PriceInput.stories.sources.js +3 -1
  275. package/dist/ui/PriceInput/PriceInput.styles.d.ts +20 -5
  276. package/dist/ui/PriceInput/PriceInput.styles.d.ts.map +1 -1
  277. package/dist/ui/PriceInput/PriceInput.styles.js +20 -6
  278. package/dist/ui/PriceInput/PriceInput.web.d.ts +0 -1
  279. package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -1
  280. package/dist/ui/PriceInput/PriceInput.web.js +9 -10
  281. package/dist/ui/PriceInput/cadrePrix.d.ts +43 -0
  282. package/dist/ui/PriceInput/cadrePrix.d.ts.map +1 -0
  283. package/dist/ui/PriceInput/cadrePrix.js +9 -0
  284. package/dist/ui/PriceInput/largeurDuChamp.d.ts +2 -0
  285. package/dist/ui/PriceInput/largeurDuChamp.d.ts.map +1 -0
  286. package/dist/ui/PriceInput/largeurDuChamp.js +2 -0
  287. package/dist/ui/PriceInput/useSaisieMontant.d.ts +5 -0
  288. package/dist/ui/PriceInput/useSaisieMontant.d.ts.map +1 -0
  289. package/dist/ui/PriceInput/useSaisieMontant.js +19 -0
  290. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +7 -7
  291. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +7 -7
  292. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +8 -8
  293. package/dist/ui/RadioGroup/RadioGroup.stories.js +2 -2
  294. package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts.map +1 -1
  295. package/dist/ui/RadioGroup/RadioGroup.stories.sources.js +2 -2
  296. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +8 -8
  297. package/dist/ui/RadioGroup/RadioGroup.styles.js +4 -4
  298. package/dist/ui/RadioGroup/RadioGroupCard.js +1 -1
  299. package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +1 -1
  300. package/dist/ui/ResourceList/ResourceList.stories.d.ts +2 -2
  301. package/dist/ui/ResourceList/ResourceList.styles.d.ts +2 -2
  302. package/dist/ui/ResourceList/ResourceListDivider.js +1 -1
  303. package/dist/ui/Select/Select.stories.d.ts +8 -8
  304. package/dist/ui/Select/Select.stories.js +12 -12
  305. package/dist/ui/Select/Select.stories.sources.d.ts.map +1 -1
  306. package/dist/ui/Select/Select.stories.sources.js +11 -11
  307. package/dist/ui/Select/Select.styles.d.ts +8 -8
  308. package/dist/ui/Select/SelectBottomSheet.d.ts.map +1 -1
  309. package/dist/ui/Select/SelectBottomSheet.js +3 -3
  310. package/dist/ui/Select/SelectList.styles.d.ts +14 -14
  311. package/dist/ui/Select/SelectList.styles.js +3 -3
  312. package/dist/ui/Select/selectControlStyle.d.ts +130 -2
  313. package/dist/ui/Select/selectControlStyle.d.ts.map +1 -1
  314. package/dist/ui/Select/selectItemStyle.d.ts +5 -5
  315. package/dist/ui/Select/selectTriggerStyle.d.ts +53 -1
  316. package/dist/ui/Select/selectTriggerStyle.d.ts.map +1 -1
  317. package/dist/ui/Sidebar/Sidebar.stories.d.ts +20 -20
  318. package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
  319. package/dist/ui/Sidebar/Sidebar.stories.js +1 -1
  320. package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts.map +1 -1
  321. package/dist/ui/Sidebar/Sidebar.stories.sources.js +1 -1
  322. package/dist/ui/Sidebar/Sidebar.styles.d.ts +20 -20
  323. package/dist/ui/Sidebar/Sidebar.styles.js +3 -3
  324. package/dist/ui/Sidebar/SidebarHeader.d.ts.map +1 -1
  325. package/dist/ui/Sidebar/SidebarHeader.js +4 -1
  326. package/dist/ui/Sidebar/SidebarItem.d.ts +8 -2
  327. package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
  328. package/dist/ui/Sidebar/SidebarItem.js +5 -2
  329. package/dist/ui/Signature/Signature.js +1 -1
  330. package/dist/ui/Signature/Signature.stories.d.ts +2 -2
  331. package/dist/ui/Signature/Signature.styles.d.ts +2 -2
  332. package/dist/ui/Skeleton/Skeleton.js +1 -1
  333. package/dist/ui/Skeleton/Skeleton.stories.d.ts +1 -1
  334. package/dist/ui/Skeleton/Skeleton.stories.d.ts.map +1 -1
  335. package/dist/ui/Skeleton/Skeleton.stories.js +3 -3
  336. package/dist/ui/Skeleton/Skeleton.stories.sources.d.ts.map +1 -1
  337. package/dist/ui/Skeleton/Skeleton.stories.sources.js +3 -3
  338. package/dist/ui/Skeleton/Skeleton.styles.d.ts +1 -1
  339. package/dist/ui/Spinner/Spinner.stories.d.ts +2 -2
  340. package/dist/ui/Spinner/Spinner.stories.js +2 -2
  341. package/dist/ui/Spinner/Spinner.stories.sources.d.ts.map +1 -1
  342. package/dist/ui/Spinner/Spinner.stories.sources.js +2 -2
  343. package/dist/ui/Spinner/Spinner.styles.d.ts +2 -2
  344. package/dist/ui/Spinner/useRotation.d.ts +3 -1
  345. package/dist/ui/Spinner/useRotation.d.ts.map +1 -1
  346. package/dist/ui/Spinner/useSpinner.d.ts +3 -3
  347. package/dist/ui/Switch/Switch.d.ts.map +1 -1
  348. package/dist/ui/Switch/Switch.js +2 -3
  349. package/dist/ui/Switch/Switch.stories.d.ts +9 -9
  350. package/dist/ui/Switch/Switch.stories.js +1 -1
  351. package/dist/ui/Switch/Switch.stories.sources.d.ts.map +1 -1
  352. package/dist/ui/Switch/Switch.stories.sources.js +1 -1
  353. package/dist/ui/Switch/Switch.styles.d.ts +9 -9
  354. package/dist/ui/Tabs/Tabs.stories.d.ts +6 -5
  355. package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
  356. package/dist/ui/Tabs/Tabs.stories.js +3 -1
  357. package/dist/ui/Tabs/Tabs.stories.sources.d.ts +2 -0
  358. package/dist/ui/Tabs/Tabs.stories.sources.d.ts.map +1 -1
  359. package/dist/ui/Tabs/Tabs.stories.sources.js +3 -1
  360. package/dist/ui/Tabs/Tabs.styles.d.ts +5 -5
  361. package/dist/ui/Tag/Tag.stories.d.ts +7 -7
  362. package/dist/ui/Tag/Tag.stories.js +5 -5
  363. package/dist/ui/Tag/Tag.stories.sources.d.ts.map +1 -1
  364. package/dist/ui/Tag/Tag.stories.sources.js +5 -5
  365. package/dist/ui/Tag/Tag.styles.d.ts +7 -7
  366. package/dist/ui/Tag/tagStyling.d.ts +2 -2
  367. package/dist/ui/TextInputArray/TextInputArray.js +1 -1
  368. package/dist/ui/TextareaInput/TextareaInput.d.ts +2 -2
  369. package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -1
  370. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +1 -1
  371. package/dist/ui/TextareaInput/TextareaInput.stories.js +1 -1
  372. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -1
  373. package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +1 -1
  374. package/dist/ui/TimeInput/TimeInput.d.ts +2 -1
  375. package/dist/ui/TimeInput/TimeInput.d.ts.map +1 -1
  376. package/dist/ui/TimeInput/TimeInput.stories.d.ts +1 -1
  377. package/dist/ui/TimeInput/TimeInput.stories.js +2 -2
  378. package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts.map +1 -1
  379. package/dist/ui/TimeInput/TimeInput.stories.sources.js +2 -2
  380. package/dist/ui/Toast/Toast.stories.d.ts +11 -11
  381. package/dist/ui/Toast/Toast.stories.js +2 -2
  382. package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
  383. package/dist/ui/Toast/Toast.stories.sources.js +2 -2
  384. package/dist/ui/Toast/Toast.styles.d.ts +11 -11
  385. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +5 -53
  386. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts.map +1 -1
  387. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.styles.d.ts +4 -4
  388. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +3 -3
  389. package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +3 -3
  390. package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +4 -4
  391. package/package.json +24 -24
  392. package/dist/ui/PriceInput/PriceInput.css +0 -9
@@ -6,11 +6,11 @@ export declare const useStyles: () => {
6
6
  paddingTop: number;
7
7
  paddingBottom: number;
8
8
  borderRadius: import("@alveole/theme").Radius;
9
- color: string;
9
+ color: import("@alveole/theme").ThemeColor;
10
10
  fontFamily: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
11
11
  };
12
12
  codeText: {
13
- color: string;
13
+ color: import("@alveole/theme").ThemeColor;
14
14
  fontFamily: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
15
15
  };
16
16
  codeSurface: {
@@ -14,5 +14,5 @@ export default {
14
14
  };
15
15
  const inputStyle = { borderWidth: 1, borderColor: '#ccc', borderRadius: 4, padding: 8 };
16
16
  /** Taper dans le champ — cliquer en dehors ferme le clavier. */
17
- export const WithKeyboardAware = () => (_jsx(Form, { children: _jsxs(Box, { display: "flex", flexDirection: "column", gap: 12, children: [_jsx(RNTextInput, { placeholder: "Pr\u00E9nom", style: inputStyle }), _jsx(RNTextInput, { placeholder: "Email", keyboardType: "email-address", style: inputStyle })] }) }));
17
+ export const WithKeyboardAware = () => (_jsx(Form, { children: _jsxs(Box, { display: "flex", flexDirection: "column", gap: "3V", children: [_jsx(RNTextInput, { placeholder: "Pr\u00E9nom", style: inputStyle }), _jsx(RNTextInput, { placeholder: "Email", keyboardType: "email-address", style: inputStyle })] }) }));
18
18
  export * as Sources from './Form.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"Form.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,cAAsT,CAAC;AAErV,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAEtE,CAAC"}
1
+ {"version":3,"file":"Form.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Form/Form.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,cAAwT,CAAC;AAEvV,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAEtE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/core/Form/Form.stories.tsx
3
- export const WithKeyboardAware = () => "export const WithKeyboardAware = () => (\n <Form>\n <Box display=\"flex\" flexDirection=\"column\" gap={12}>\n <RNTextInput placeholder=\"Prénom\" style={inputStyle} />\n <RNTextInput placeholder=\"Email\" keyboardType=\"email-address\" style={inputStyle} />\n </Box>\n </Form>\n);";
3
+ export const WithKeyboardAware = () => "export const WithKeyboardAware = () => (\n <Form>\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3V\">\n <RNTextInput placeholder=\"Prénom\" style={inputStyle} />\n <RNTextInput placeholder=\"Email\" keyboardType=\"email-address\" style={inputStyle} />\n </Box>\n </Form>\n);";
4
4
  export const storySources = {
5
5
  WithKeyboardAware,
6
6
  };
@@ -1,3 +1,4 @@
1
+ import { ThemeColor } from '@alveole/theme';
1
2
  declare const _default: {
2
3
  title: string;
3
4
  tags: "core"[];
@@ -5,21 +6,21 @@ declare const _default: {
5
6
  description: string;
6
7
  shortDescription: string;
7
8
  component: ((props: Pick<import("..").BoxProps, "gap" | "children"> & import("../..").SizeStyle & {
8
- p?: number | import("@alveole/theme").SpacingKey;
9
- pl?: number | import("@alveole/theme").SpacingKey;
10
- pr?: number | import("@alveole/theme").SpacingKey;
11
- pt?: number | import("@alveole/theme").SpacingKey;
12
- pb?: number | import("@alveole/theme").SpacingKey;
13
- m?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
14
- ml?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
15
- mr?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
16
- mt?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
17
- mb?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
18
- backgroundColor?: import("tamagui").ViewProps["backgroundColor"];
9
+ p?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
10
+ pl?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
11
+ pr?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
12
+ pt?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
13
+ pb?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
14
+ m?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
15
+ ml?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
16
+ mr?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
17
+ mt?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
18
+ mb?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
19
+ backgroundColor?: (ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", ThemeColor | "transparent">>;
19
20
  borderWidth?: import("tamagui").ViewProps["borderWidth"];
20
- borderRadius?: number | string;
21
- borderColor?: import("tamagui").ViewProps["borderColor"];
22
- gap?: number | import("@alveole/theme").SpacingKey;
21
+ borderRadius?: import("@alveole/theme").RadiusKey;
22
+ borderColor?: (ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", ThemeColor | "transparent">>;
23
+ gap?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
23
24
  }) => import("react").JSX.Element) & {
24
25
  Column: (props: import("./Grid").GridColumnProps) => import("react").JSX.Element;
25
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/Grid.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASkB;AAWlB,eAAO,MAAM,eAAe,mCAS3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAS7B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAYxB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAevB,CAAC;AAEF,eAAO,MAAM,eAAe,mCAY3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAS7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,mCAYlC,CAAC;AAEF,eAAO,MAAM,YAAY,mCAYxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCA6B5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/Grid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgD,UAAU,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAU1F,wBASkB;AAYlB,eAAO,MAAM,eAAe,mCAS3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAS7B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAYxB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAevB,CAAC;AAEF,eAAO,MAAM,eAAe,mCAY3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mCAS7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,mCAYlC,CAAC;AAEF,eAAO,MAAM,YAAY,mCAYxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCA6B5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CustomPalette, enCouleursDuTheme, RadiusList } from '@alveole/theme';
2
3
  import { Button } from '../../ui/Button';
3
4
  import { Card } from '../../ui/Card';
4
5
  import { A } from '../A';
@@ -15,16 +16,17 @@ export default {
15
16
  component: Grid,
16
17
  styleFn: useStyles,
17
18
  };
18
- const colColor = '#88b2bd';
19
- const colColorAlt = '#b9c47f';
20
- const Col = ({ color = colColor, label }) => (_jsx(Box, { backgroundColor: color, p: '050', style: { borderRadius: 4 }, children: _jsx(Typography, { children: label }) }));
21
- export const TwoEqualColumns = () => (_jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) })] }));
22
- export const AsymmetricColumns = () => (_jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 8, children: _jsx(Col, { color: colColorAlt, label: "8 colonnes" }) })] }));
23
- export const ThreeColumns = () => (_jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { color: colColorAlt, label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) })] }));
24
- export const FourColumns = () => (_jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: 3, children: _jsx(Col, { label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { color: colColorAlt, label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { color: colColorAlt, label: "3" }) })] }));
25
- export const FullWidthColumn = () => (_jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: 12, children: _jsx(Col, { label: "12 colonnes (pleine largeur)" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { color: colColorAlt, label: "6 colonnes" }) })] }));
26
- export const ResponsiveColumns = () => (_jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 6 }, children: _jsx(Col, { label: "12 mobile / 6 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 6 }, children: _jsx(Col, { color: colColorAlt, label: "12 mobile / 6 desktop" }) })] }));
27
- export const ResponsiveThreeColumns = () => (_jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(Col, { label: "12 mobile / 6 tablet / 4 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(Col, { color: colColorAlt, label: "12 mobile / 6 tablet / 4 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 12, desktop: 4 }, children: _jsx(Col, { label: "12 mobile / 12 tablet / 4 desktop" }) })] }));
28
- export const WithLargeGap = () => (_jsxs(Grid, { gap: 24, children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "gap 24" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { color: colColorAlt, label: "gap 24" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "gap 24" }) })] }));
29
- export const EqualHeightCards = () => (_jsxs(Grid, { gap: 16, children: [_jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsxs(Card, { children: [_jsx(Card.Header, { titre: "Titre court", sousTitre: "Une ligne" }), _jsx(Card.Actions, { children: _jsx(Button, { variant: "secondary", title: "Voir", size: "sm" }) })] }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsxs(Card, { children: [_jsx(Card.Header, { titre: "Un titre bien plus long qui passe sur deux lignes", sousTitre: "Un sous-titre lui aussi assez long pour occuper plusieurs lignes dans la carte" }), _jsx(Card.Actions, { children: _jsx(Button, { variant: "secondary", title: "Voir", size: "sm" }) })] }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(A, { href: "/components/Card", children: _jsx(Card, { children: _jsx(Card.Header, { titre: "Carte cliquable" }) }) }) })] }));
19
+ const { background } = enCouleursDuTheme(CustomPalette).light;
20
+ const colColor = background['contrast-info'];
21
+ const colColorAlt = background['contrast-success'];
22
+ const Col = ({ color = colColor, label }) => (_jsx(Box, { backgroundColor: color, p: "1W", style: { borderRadius: RadiusList.sm }, children: _jsx(Typography, { children: label }) }));
23
+ export const TwoEqualColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) })] }));
24
+ export const AsymmetricColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 8, children: _jsx(Col, { color: colColorAlt, label: "8 colonnes" }) })] }));
25
+ export const ThreeColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { color: colColorAlt, label: "4 colonnes" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "4 colonnes" }) })] }));
26
+ export const FourColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 3, children: _jsx(Col, { label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { color: colColorAlt, label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { label: "3" }) }), _jsx(Grid.Column, { size: 3, children: _jsx(Col, { color: colColorAlt, label: "3" }) })] }));
27
+ export const FullWidthColumn = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: 12, children: _jsx(Col, { label: "12 colonnes (pleine largeur)" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { label: "6 colonnes" }) }), _jsx(Grid.Column, { size: 6, children: _jsx(Col, { color: colColorAlt, label: "6 colonnes" }) })] }));
28
+ export const ResponsiveColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 6 }, children: _jsx(Col, { label: "12 mobile / 6 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 6 }, children: _jsx(Col, { color: colColorAlt, label: "12 mobile / 6 desktop" }) })] }));
29
+ export const ResponsiveThreeColumns = () => (_jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(Col, { label: "12 mobile / 6 tablet / 4 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(Col, { color: colColorAlt, label: "12 mobile / 6 tablet / 4 desktop" }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 12, desktop: 4 }, children: _jsx(Col, { label: "12 mobile / 12 tablet / 4 desktop" }) })] }));
30
+ export const WithLargeGap = () => (_jsxs(Grid, { gap: "3W", children: [_jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "gap 24" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { color: colColorAlt, label: "gap 24" }) }), _jsx(Grid.Column, { size: 4, children: _jsx(Col, { label: "gap 24" }) })] }));
31
+ export const EqualHeightCards = () => (_jsxs(Grid, { gap: "2W", children: [_jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsxs(Card, { children: [_jsx(Card.Header, { titre: "Titre court", sousTitre: "Une ligne" }), _jsx(Card.Actions, { children: _jsx(Button, { variant: "secondary", title: "Voir", size: "sm" }) })] }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsxs(Card, { children: [_jsx(Card.Header, { titre: "Un titre bien plus long qui passe sur deux lignes", sousTitre: "Un sous-titre lui aussi assez long pour occuper plusieurs lignes dans la carte" }), _jsx(Card.Actions, { children: _jsx(Button, { variant: "secondary", title: "Voir", size: "sm" }) })] }) }), _jsx(Grid.Column, { size: { mobile: 12, tablet: 6, desktop: 4 }, children: _jsx(A, { href: "/components/Card", children: _jsx(Card, { children: _jsx(Card.Header, { titre: "Carte cliquable" }) }) }) })] }));
30
32
  export * as Sources from './Grid.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/Grid.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,cAA0P,CAAC;AAEvR,eAAO,MAAM,iBAAiB,cAAgR,CAAC;AAE/S,eAAO,MAAM,YAAY,cAA+V,CAAC;AAEzX,eAAO,MAAM,WAAW,cAAka,CAAC;AAE3b,eAAO,MAAM,eAAe,cAAqX,CAAC;AAElZ,eAAO,MAAM,iBAAiB,cAAwV,CAAC;AAEvX,eAAO,MAAM,sBAAsB,cAAyhB,CAAC;AAE7jB,eAAO,MAAM,YAAY,cAAoV,CAAC;AAE9W,eAAO,MAAM,gBAAgB,cAAyhC,CAAC;AAEvjC,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"Grid.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Grid/Grid.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,cAA6P,CAAC;AAE1R,eAAO,MAAM,iBAAiB,cAAmR,CAAC;AAElT,eAAO,MAAM,YAAY,cAAkW,CAAC;AAE5X,eAAO,MAAM,WAAW,cAAqa,CAAC;AAE9b,eAAO,MAAM,eAAe,cAAwX,CAAC;AAErZ,eAAO,MAAM,iBAAiB,cAA2V,CAAC;AAE1X,eAAO,MAAM,sBAAsB,cAA4hB,CAAC;AAEhkB,eAAO,MAAM,YAAY,cAAsV,CAAC;AAEhX,eAAO,MAAM,gBAAgB,cAA2hC,CAAC;AAEzjC,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,14 +1,14 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/core/Grid/Grid.stories.tsx
3
- export const TwoEqualColumns = () => "export const TwoEqualColumns = () => (\n <Grid gap={8}>\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
4
- export const AsymmetricColumns = () => "export const AsymmetricColumns = () => (\n <Grid gap={8}>\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={8}>\n <Col color={colColorAlt} label=\"8 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
5
- export const ThreeColumns = () => "export const ThreeColumns = () => (\n <Grid gap={8}>\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col color={colColorAlt} label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
6
- export const FourColumns = () => "export const FourColumns = () => (\n <Grid gap={8}>\n <Grid.Column size={3}>\n <Col label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col color={colColorAlt} label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col color={colColorAlt} label=\"3\" />\n </Grid.Column>\n </Grid>\n);";
7
- export const FullWidthColumn = () => "export const FullWidthColumn = () => (\n <Grid gap={8}>\n <Grid.Column size={12}>\n <Col label=\"12 colonnes (pleine largeur)\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col color={colColorAlt} label=\"6 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
8
- export const ResponsiveColumns = () => "export const ResponsiveColumns = () => (\n <Grid gap={8}>\n <Grid.Column size={{ mobile: 12, desktop: 6 }}>\n <Col label=\"12 mobile / 6 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 6 }}>\n <Col color={colColorAlt} label=\"12 mobile / 6 desktop\" />\n </Grid.Column>\n </Grid>\n);";
9
- export const ResponsiveThreeColumns = () => "export const ResponsiveThreeColumns = () => (\n <Grid gap={8}>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Col label=\"12 mobile / 6 tablet / 4 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Col color={colColorAlt} label=\"12 mobile / 6 tablet / 4 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 12, desktop: 4 }}>\n <Col label=\"12 mobile / 12 tablet / 4 desktop\" />\n </Grid.Column>\n </Grid>\n);";
10
- export const WithLargeGap = () => "export const WithLargeGap = () => (\n <Grid gap={24}>\n <Grid.Column size={4}>\n <Col label=\"gap 24\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col color={colColorAlt} label=\"gap 24\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col label=\"gap 24\" />\n </Grid.Column>\n </Grid>\n);";
11
- export const EqualHeightCards = () => "export const EqualHeightCards = () => (\n <Grid gap={16}>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Card>\n <Card.Header titre=\"Titre court\" sousTitre=\"Une ligne\" />\n <Card.Actions>\n <Button variant=\"secondary\" title=\"Voir\" size=\"sm\" />\n </Card.Actions>\n </Card>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Card>\n <Card.Header\n titre=\"Un titre bien plus long qui passe sur deux lignes\"\n sousTitre=\"Un sous-titre lui aussi assez long pour occuper plusieurs lignes dans la carte\"\n />\n <Card.Actions>\n <Button variant=\"secondary\" title=\"Voir\" size=\"sm\" />\n </Card.Actions>\n </Card>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <A href=\"/components/Card\">\n <Card>\n <Card.Header titre=\"Carte cliquable\" />\n </Card>\n </A>\n </Grid.Column>\n </Grid>\n);";
3
+ export const TwoEqualColumns = () => "export const TwoEqualColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
4
+ export const AsymmetricColumns = () => "export const AsymmetricColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={8}>\n <Col color={colColorAlt} label=\"8 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
5
+ export const ThreeColumns = () => "export const ThreeColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col color={colColorAlt} label=\"4 colonnes\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col label=\"4 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
6
+ export const FourColumns = () => "export const FourColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={3}>\n <Col label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col color={colColorAlt} label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col label=\"3\" />\n </Grid.Column>\n <Grid.Column size={3}>\n <Col color={colColorAlt} label=\"3\" />\n </Grid.Column>\n </Grid>\n);";
7
+ export const FullWidthColumn = () => "export const FullWidthColumn = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={12}>\n <Col label=\"12 colonnes (pleine largeur)\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col label=\"6 colonnes\" />\n </Grid.Column>\n <Grid.Column size={6}>\n <Col color={colColorAlt} label=\"6 colonnes\" />\n </Grid.Column>\n </Grid>\n);";
8
+ export const ResponsiveColumns = () => "export const ResponsiveColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, desktop: 6 }}>\n <Col label=\"12 mobile / 6 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 6 }}>\n <Col color={colColorAlt} label=\"12 mobile / 6 desktop\" />\n </Grid.Column>\n </Grid>\n);";
9
+ export const ResponsiveThreeColumns = () => "export const ResponsiveThreeColumns = () => (\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Col label=\"12 mobile / 6 tablet / 4 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Col color={colColorAlt} label=\"12 mobile / 6 tablet / 4 desktop\" />\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 12, desktop: 4 }}>\n <Col label=\"12 mobile / 12 tablet / 4 desktop\" />\n </Grid.Column>\n </Grid>\n);";
10
+ export const WithLargeGap = () => "export const WithLargeGap = () => (\n <Grid gap=\"3W\">\n <Grid.Column size={4}>\n <Col label=\"gap 24\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col color={colColorAlt} label=\"gap 24\" />\n </Grid.Column>\n <Grid.Column size={4}>\n <Col label=\"gap 24\" />\n </Grid.Column>\n </Grid>\n);";
11
+ export const EqualHeightCards = () => "export const EqualHeightCards = () => (\n <Grid gap=\"2W\">\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Card>\n <Card.Header titre=\"Titre court\" sousTitre=\"Une ligne\" />\n <Card.Actions>\n <Button variant=\"secondary\" title=\"Voir\" size=\"sm\" />\n </Card.Actions>\n </Card>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <Card>\n <Card.Header\n titre=\"Un titre bien plus long qui passe sur deux lignes\"\n sousTitre=\"Un sous-titre lui aussi assez long pour occuper plusieurs lignes dans la carte\"\n />\n <Card.Actions>\n <Button variant=\"secondary\" title=\"Voir\" size=\"sm\" />\n </Card.Actions>\n </Card>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, tablet: 6, desktop: 4 }}>\n <A href=\"/components/Card\">\n <Card>\n <Card.Header titre=\"Carte cliquable\" />\n </Card>\n </A>\n </Grid.Column>\n </Grid>\n);";
12
12
  export const storySources = {
13
13
  TwoEqualColumns,
14
14
  AsymmetricColumns,
@@ -0,0 +1,8 @@
1
+ import { TypographyProps } from '../Typography';
2
+ export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
3
+ export type HeadingProps = Omit<TypographyProps, 'tag'> & {
4
+ /** Balise rendue, qui fixe aussi la taille par defaut. */
5
+ as?: HeadingLevel;
6
+ };
7
+ export declare const Heading: ({ as, style, color, ...props }: HeadingProps) => import("react").JSX.Element;
8
+ //# sourceMappingURL=Heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/core/Heading/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,GAAG;IACxD,0DAA0D;IAC1D,EAAE,CAAC,EAAE,YAAY,CAAC;CACnB,CAAC;AAWF,eAAO,MAAM,OAAO,GAAI,gCAAuC,YAAY,gCAU1E,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useTheme } from '@alveole/theme';
3
+ import { Typography } from '../Typography';
4
+ const STYLE_PAR_NIVEAU = {
5
+ h1: 'H1 - XL',
6
+ h2: 'H2 - LG',
7
+ h3: 'H3 - MD',
8
+ h4: 'H4 - SM',
9
+ h5: 'H5 - XS',
10
+ h6: 'H6 - XXS',
11
+ };
12
+ export const Heading = ({ as = 'h2', style, color, ...props }) => {
13
+ const theme = useTheme();
14
+ return (_jsx(Typography, { tag: as, style: [theme.text.Titres[STYLE_PAR_NIVEAU[as]], style], color: color ?? theme.color.light.text['title-grey'], ...props }));
15
+ };
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ title: string;
3
+ tags: "core"[];
4
+ experimental: true;
5
+ description: string;
6
+ component: ({ as, style, color, ...props }: import("./Heading").HeadingProps) => import("react").JSX.Element;
7
+ styleFn: () => {};
8
+ };
9
+ export default _default;
10
+ export declare const Default: () => import("react").JSX.Element;
11
+ export declare const Niveaux: () => import("react").JSX.Element;
12
+ export * as Sources from './Heading.stories.sources';
13
+ //# sourceMappingURL=Heading.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Heading/Heading.stories.tsx"],"names":[],"mappings":";;;;;;;;AAGA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAA6C,CAAC;AAElE,eAAO,MAAM,OAAO,mCASnB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Heading } from './Heading';
3
+ export default {
4
+ title: 'Heading',
5
+ tags: ['core'],
6
+ experimental: true,
7
+ description: 'Titre de section : `as` fixe la balise (h1 a h6) et sa taille par defaut.',
8
+ component: Heading,
9
+ styleFn: () => ({}),
10
+ };
11
+ export const Default = () => _jsx(Heading, { children: "Titre de niveau 2" });
12
+ export const Niveaux = () => (_jsxs(_Fragment, { children: [_jsx(Heading, { as: "h1", children: "Titre h1" }), _jsx(Heading, { as: "h2", children: "Titre h2" }), _jsx(Heading, { as: "h3", children: "Titre h3" }), _jsx(Heading, { as: "h4", children: "Titre h4" }), _jsx(Heading, { as: "h5", children: "Titre h5" }), _jsx(Heading, { as: "h6", children: "Titre h6" })] }));
13
+ export * as Sources from './Heading.stories.sources';
@@ -0,0 +1,8 @@
1
+ export declare const Default: () => string;
2
+ export declare const Niveaux: () => string;
3
+ export declare const storySources: {
4
+ readonly Default: () => string;
5
+ readonly Niveaux: () => string;
6
+ };
7
+ export type StorySourceName = keyof typeof storySources;
8
+ //# sourceMappingURL=Heading.stories.sources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Heading/Heading.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA6E,CAAC;AAElG,eAAO,MAAM,OAAO,cAA4T,CAAC;AAEjV,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/Heading/Heading.stories.tsx
3
+ export const Default = () => "export const Default = () => <Heading>Titre de niveau 2</Heading>;";
4
+ export const Niveaux = () => "export const Niveaux = () => (\n <>\n <Heading as=\"h1\">Titre h1</Heading>\n <Heading as=\"h2\">Titre h2</Heading>\n <Heading as=\"h3\">Titre h3</Heading>\n <Heading as=\"h4\">Titre h4</Heading>\n <Heading as=\"h5\">Titre h5</Heading>\n <Heading as=\"h6\">Titre h6</Heading>\n </>\n);";
5
+ export const storySources = {
6
+ Default,
7
+ Niveaux,
8
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Heading';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/Heading/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './Heading';
@@ -10,7 +10,7 @@ declare const _default: {
10
10
  width: "100%";
11
11
  flexGrow: number;
12
12
  flexShrink: number;
13
- backgroundColor: string;
13
+ backgroundColor: import("@alveole/theme").ThemeColor;
14
14
  };
15
15
  highlightContainerStandalone: {
16
16
  borderRadius: import("@alveole/theme").Radius;
@@ -22,13 +22,13 @@ declare const _default: {
22
22
  highlight: {
23
23
  borderRadius: import("@alveole/theme").Radius;
24
24
  borderWidth: number;
25
- borderColor: string;
25
+ borderColor: import("@alveole/theme").ThemeColor;
26
26
  overflow: "scroll";
27
27
  padding: import("@alveole/theme").Spacing;
28
28
  minWidth: "100%";
29
29
  flexGrow: number;
30
30
  flexShrink: number;
31
- backgroundColor: string;
31
+ backgroundColor: import("@alveole/theme").ThemeColor;
32
32
  };
33
33
  highlightEmbedded: {
34
34
  overflow: "scroll";
@@ -36,7 +36,7 @@ declare const _default: {
36
36
  minWidth: "100%";
37
37
  flexGrow: number;
38
38
  flexShrink: number;
39
- backgroundColor: string;
39
+ backgroundColor: import("@alveole/theme").ThemeColor;
40
40
  };
41
41
  };
42
42
  };
@@ -3,7 +3,7 @@ export declare const useStyles: () => {
3
3
  width: "100%";
4
4
  flexGrow: number;
5
5
  flexShrink: number;
6
- backgroundColor: string;
6
+ backgroundColor: import("@alveole/theme").ThemeColor;
7
7
  };
8
8
  highlightContainerStandalone: {
9
9
  borderRadius: import("@alveole/theme").Radius;
@@ -15,13 +15,13 @@ export declare const useStyles: () => {
15
15
  highlight: {
16
16
  borderRadius: import("@alveole/theme").Radius;
17
17
  borderWidth: number;
18
- borderColor: string;
18
+ borderColor: import("@alveole/theme").ThemeColor;
19
19
  overflow: "scroll";
20
20
  padding: import("@alveole/theme").Spacing;
21
21
  minWidth: "100%";
22
22
  flexGrow: number;
23
23
  flexShrink: number;
24
- backgroundColor: string;
24
+ backgroundColor: import("@alveole/theme").ThemeColor;
25
25
  };
26
26
  highlightEmbedded: {
27
27
  overflow: "scroll";
@@ -29,7 +29,7 @@ export declare const useStyles: () => {
29
29
  minWidth: "100%";
30
30
  flexGrow: number;
31
31
  flexShrink: number;
32
- backgroundColor: string;
32
+ backgroundColor: import("@alveole/theme").ThemeColor;
33
33
  };
34
34
  };
35
35
  //# sourceMappingURL=Highlight.styles.d.ts.map
@@ -7,9 +7,7 @@ export declare const BASE_STYLE_KEY = "base";
7
7
  export declare const styleNatif: (style?: CSSProperties) => TextStyle;
8
8
  export declare const feuilleDeColoration: (syntaxStyle: Record<string, CSSProperties>, fond: string) => NativeSyntaxStyle;
9
9
  /** Le texte de base : la couleur du theme, puis la chasse fixe. */
10
- export declare const styleDuTexteDeBase: (feuille: NativeSyntaxStyle) => TextStyle | {
11
- readonly fontFamily: "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
12
- };
10
+ export declare const styleDuTexteDeBase: (feuille: NativeSyntaxStyle) => TextStyle;
13
11
  /**
14
12
  * La surface du bloc. Le theme de coloration ne fournit que les couleurs de jetons : la surface
15
13
  * vient du design system, posee apres la base du theme, et le style de l'appelant en dernier.
@@ -1 +1 @@
1
- {"version":3,"file":"Highlight.theme.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/Highlight.theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc,SAAS,CAAC;AAkCrC,eAAO,MAAM,UAAU,GAAI,QAAO,aAAkB,KAAG,SAUtD,CAAC;AAkCF,eAAO,MAAM,mBAAmB,GAAI,aAAa,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,MAAM,KAAG,iBAgB9F,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,GAAI,SAAS,iBAAiB;;CAC4C,CAAC;AAE1G;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,MAAM,EACd,SAAS,iBAAiB,EAC1B,0BAA0B;IAAE,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC;IAAC,WAAW,EAAE,SAAS,CAAA;CAAE,cAOtF,CAAC"}
1
+ {"version":3,"file":"Highlight.theme.d.ts","sourceRoot":"","sources":["../../../src/core/Highlight/Highlight.theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc,SAAS,CAAC;AAkCrC,eAAO,MAAM,UAAU,GAAI,QAAO,aAAkB,KAAG,SAMrD,CAAC;AAkCH,eAAO,MAAM,mBAAmB,GAAI,aAAa,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,MAAM,KAAG,iBAgB9F,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,GAAI,SAAS,iBAAiB,KAAG,SAC+C,CAAC;AAEhH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,MAAM,EACd,SAAS,iBAAiB,EAC1B,0BAA0B;IAAE,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC;IAAC,WAAW,EAAE,SAAS,CAAA;CAAE,KACvF,SAMO,CAAC"}
@@ -27,20 +27,13 @@ const estGraisseNative = accepteSeulement([
27
27
  '800',
28
28
  '900',
29
29
  ]);
30
- export const styleNatif = (style = {}) => {
31
- const nativeStyle = {};
32
- if (typeof style.color === 'string')
33
- nativeStyle.color = style.color;
34
- if (typeof style.background === 'string')
35
- nativeStyle.backgroundColor = style.background;
36
- if (typeof style.backgroundColor === 'string')
37
- nativeStyle.backgroundColor = style.backgroundColor;
38
- if (estGraisseNative(style.fontWeight))
39
- nativeStyle.fontWeight = style.fontWeight;
40
- if (estStyleDePoliceNatif(style.fontStyle))
41
- nativeStyle.fontStyle = style.fontStyle;
42
- return nativeStyle;
43
- };
30
+ export const styleNatif = (style = {}) => ({
31
+ ...(typeof style.color === 'string' && { color: style.color }),
32
+ ...(typeof style.background === 'string' && { backgroundColor: style.background }),
33
+ ...(typeof style.backgroundColor === 'string' && { backgroundColor: style.backgroundColor }),
34
+ ...(estGraisseNative(style.fontWeight) && { fontWeight: style.fontWeight }),
35
+ ...(estStyleDePoliceNatif(style.fontStyle) && { fontStyle: style.fontStyle }),
36
+ });
44
37
  const getSyntaxStyleKeys = (selector) => {
45
38
  if (selector.includes('pre[') || selector.includes('code[')) {
46
39
  return [BASE_STYLE_KEY];
@@ -81,7 +74,7 @@ export const feuilleDeColoration = (syntaxStyle, fond) => {
81
74
  }, {});
82
75
  };
83
76
  /** Le texte de base : la couleur du theme, puis la chasse fixe. */
84
- export const styleDuTexteDeBase = (feuille) => StyleSheet.flatten([{ color: feuille[BASE_STYLE_KEY]?.color }, feuille[BASE_STYLE_KEY], MonospaceFont]);
77
+ export const styleDuTexteDeBase = (feuille) => StyleSheet.flatten([{ color: feuille[BASE_STYLE_KEY]?.color }, feuille[BASE_STYLE_KEY], MonospaceFont]) ?? {};
85
78
  /**
86
79
  * La surface du bloc. Le theme de coloration ne fournit que les couleurs de jetons : la surface
87
80
  * vient du design system, posee apres la base du theme, et le style de l'appelant en dernier.
@@ -93,4 +86,4 @@ export const styleDeLaSurface = (styles, feuille, { variant, styleFourni }) => S
93
86
  variant === 'embedded' ? styles.highlightEmbedded : styles.highlight,
94
87
  { overflow: 'visible' },
95
88
  styleFourni,
96
- ]);
89
+ ]) ?? {};
@@ -2,5 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Box } from '../Box';
3
3
  import { Typography } from '../Typography';
4
4
  export const Map = (_) => {
5
- return (_jsx(Box, { p: '075', children: _jsx(Typography, { textAlign: 'center', children: "La carte n\u2019est pas disponible sur le mobile" }) }));
5
+ return (_jsx(Box, { p: "3V", children: _jsx(Typography, { textAlign: 'center', children: "La carte n\u2019est pas disponible sur le mobile" }) }));
6
6
  };
@@ -32,5 +32,5 @@ export const MarkdownDescription = ({ children, taille = 'MD', color: textColor
32
32
  linkColor,
33
33
  };
34
34
  const components = Platform.OS === 'web' ? createMarkdownComponents(styles) : createNativeMarkdownComponents(styles);
35
- return (_jsx(Box, { tag: "markdown-description", display: "flex", gap: 8, style: { alignSelf: 'stretch' }, children: _jsx(ReactMarkdown, { remarkPlugins: [remarkGfm, replierLesCoupuresDeLigne], rehypePlugins: Platform.OS === 'web' ? [] : [preparerMarkdownNatif], skipHtml: Platform.OS !== 'web', components: components, children: children }) }));
35
+ return (_jsx(Box, { tag: "markdown-description", display: "flex", gap: "1W", style: { alignSelf: 'stretch' }, children: _jsx(ReactMarkdown, { remarkPlugins: [remarkGfm, replierLesCoupuresDeLigne], rehypePlugins: Platform.OS === 'web' ? [] : [preparerMarkdownNatif], skipHtml: Platform.OS !== 'web', components: components, children: children }) }));
36
36
  };
@@ -1,4 +1,4 @@
1
- import { Theme } from '@alveole/theme';
1
+ import { Theme, ThemeColor } from '@alveole/theme';
2
2
  import React from 'react';
3
3
  import type { Components } from 'react-markdown';
4
4
  import { TextStyle as RNTextStyle } from 'react-native';
@@ -16,8 +16,8 @@ export type MarkdownComponentsStyles = {
16
16
  titres: Theme['text']['Titres'];
17
17
  /** Couleur des titres : `textColor` s'il est fourni, sinon `title-grey`. */
18
18
  titleColor: string;
19
- borderColor: string;
20
- headerBg: string;
19
+ borderColor: ThemeColor;
20
+ headerBg: ThemeColor;
21
21
  linkColor: string;
22
22
  };
23
23
  type TextComponentStyles = Pick<MarkdownComponentsStyles, 'bodyStyle' | 'boldStyle' | 'textColor'>;
@@ -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;AAczD,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,cAAc,CAAC,UAAU,CAG7E,CAAC;AAEF,KAAK,WAAW,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;AAClD,KAAK,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,eAAe,CAAC,CAAC;AAE9G,MAAM,MAAM,wBAAwB,GAAG;IACrC,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"}
1
+ {"version":3,"file":"markdownComponents.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAIxD,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAczD,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,cAAc,CAAC,UAAU,CAG7E,CAAC;AAEF,KAAK,WAAW,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;AAClD,KAAK,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,eAAe,CAAC,CAAC;AAE9G,MAAM,MAAM,wBAAwB,GAAG;IACrC,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,UAAU,CAAC;IACxB,QAAQ,EAAE,UAAU,CAAC;IACrB,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;AAGH,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"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FOCUS_ATTRIBUTE } from '@alveole/theme';
2
+ import { FOCUS_ATTRIBUTE, Spacings } from '@alveole/theme';
3
+ import { AnchorHeading } from '../AnchorHeading';
3
4
  import { Box } from '../Box';
4
5
  import { Code } from '../Code';
5
6
  import { Highlight } from '../Highlight';
@@ -23,16 +24,17 @@ export const createTextComponents = ({ bodyStyle, boldStyle, textColor }) => ({
23
24
  strong: ({ children: c }) => (_jsx(Typography, { style: boldStyle, color: textColor, children: c })),
24
25
  em: ({ children: c }) => (_jsx(Typography, { style: [bodyStyle, { fontStyle: 'italic' }], color: textColor, children: c })),
25
26
  });
27
+ // La balise suit le niveau markdown ; la taille est decalee de deux crans, ces titres vivant sous ceux de la page.
26
28
  export const createHeadingComponents = (titres, titleColor) => ({
27
- h1: ({ children: c }) => (_jsx(Typography, { style: titres['H3 - MD'], color: titleColor, children: c })),
28
- h2: ({ children: c }) => (_jsx(Typography, { style: titres['H4 - SM'], color: titleColor, children: c })),
29
- h3: ({ children: c }) => (_jsx(Typography, { style: titres['H5 - XS'], color: titleColor, children: c })),
30
- h4: ({ children: c }) => (_jsx(Typography, { style: titres['H6 - XXS'], color: titleColor, children: c })),
29
+ h1: ({ children: c }) => (_jsx(AnchorHeading, { as: "h1", style: titres['H3 - MD'], color: titleColor, children: c })),
30
+ h2: ({ children: c }) => (_jsx(AnchorHeading, { as: "h2", style: titres['H4 - SM'], color: titleColor, children: c })),
31
+ h3: ({ children: c }) => (_jsx(AnchorHeading, { as: "h3", style: titres['H5 - XS'], color: titleColor, children: c })),
32
+ h4: ({ children: c }) => (_jsx(AnchorHeading, { as: "h4", style: titres['H6 - XXS'], color: titleColor, children: c })),
31
33
  });
32
34
  const createListComponents = (bodyStyle) => ({
33
- ul: ({ children: c }) => (_jsx(Box, { display: "flex", gap: 4, children: c })),
34
- ol: ({ children: c }) => (_jsx(Box, { display: "flex", gap: 4, children: c })),
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
+ ul: ({ children: c }) => (_jsx(Box, { display: "flex", gap: "1V", children: c })),
36
+ ol: ({ children: c }) => (_jsx(Box, { display: "flex", gap: "1V", children: c })),
37
+ li: ({ children: c }) => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", style: { alignItems: 'flex-start' }, children: [_jsx(Typography, { style: bodyStyle, children: '•' }), _jsx(Typography, { style: [bodyStyle, { flex: 1 }], children: c })] })),
36
38
  });
37
39
  const createLinkComponents = ({ linkColor }) => ({
38
40
  a: ({ href, children: c }) => (_jsx(Typography, { tag: "a", color: linkColor, textDecorationLine: soulignementDuLien, href, [FOCUS_ATTRIBUTE]: 'ring', children: c })),
@@ -41,7 +43,7 @@ const createBlockComponents = (borderColor) => ({
41
43
  pre: ({ children: c }) => _jsx(Box, { display: "flex", children: c }),
42
44
  // `tag="blockquote"` pose un vrai `<blockquote>` DOM, qui garde la marge par
43
45
  // défaut du user-agent (`margin: 1em 40px`) tant qu'on ne la remet pas à zéro.
44
- blockquote: ({ children: c }) => (_jsx(Box, { tag: "blockquote", display: "flex", pl: 12, style: { margin: 0, borderLeftWidth: 2, borderLeftColor: borderColor }, children: c })),
46
+ blockquote: ({ children: c }) => (_jsx(Box, { tag: "blockquote", display: "flex", pl: "3V", style: { margin: Spacings['0V'], borderLeftWidth: 2, borderLeftColor: borderColor }, children: c })),
45
47
  });
46
48
  const createCodeComponents = () => ({
47
49
  // react-markdown ne passe plus de prop `inline` depuis la v9, et un bloc sans
@@ -57,7 +59,7 @@ const createCodeComponents = () => ({
57
59
  },
58
60
  });
59
61
  const createTableComponents = ({ bodyStyle, boldStyle, borderColor, headerBg }) => ({
60
- table: ({ children: c }) => (_jsx(Box, { tag: "div", borderWidth: 1, borderColor: borderColor, borderRadius: 8, overflow: "hidden", children: _jsx(Box, { tag: "table", style: { display: 'table', borderCollapse: 'collapse', width: '100%' }, children: c }) })),
62
+ table: ({ children: c }) => (_jsx(Box, { tag: "div", borderWidth: 1, borderColor: borderColor, borderRadius: "md", overflow: "hidden", children: _jsx(Box, { tag: "table", style: { display: 'table', borderCollapse: 'collapse', width: '100%' }, children: c }) })),
61
63
  thead: ({ children: c }) => (_jsx(Box, { tag: "thead", style: { display: 'table-header-group' }, children: c })),
62
64
  tbody: ({ children: c }) => (_jsx(Box, { tag: "tbody", style: { display: 'table-row-group' }, children: c })),
63
65
  tr: ({ children: c }) => (_jsx(Box, { tag: "tr", style: { display: 'table-row' }, children: c })),
@@ -66,8 +68,8 @@ const createTableComponents = ({ bodyStyle, boldStyle, borderColor, headerBg })
66
68
  // sérialise les props de la vue, dont le contexte du thème, circulaire, ce qui
67
69
  // remplace l'avertissement par un « Converting circular structure to JSON » qui
68
70
  // fait planter le rendu.
69
- th: ({ children: c }) => (_jsx(Box, { tag: "th", borderWidth: 1, borderColor: borderColor, pt: 8, pb: 8, pl: 12, pr: 12, style: { display: 'table-cell', textAlign: 'left', backgroundColor: headerBg }, children: _jsx(Typography, { style: boldStyle, children: c }) })),
70
- td: ({ children: c }) => (_jsx(Box, { tag: "td", borderWidth: 1, borderColor: borderColor, pt: 8, pb: 8, pl: 12, pr: 12, style: { display: 'table-cell' }, children: _jsx(Typography, { style: bodyStyle, children: c }) })),
71
+ th: ({ children: c }) => (_jsx(Box, { tag: "th", borderWidth: 1, borderColor: borderColor, pt: "1W", pb: "1W", pl: "3V", pr: "3V", style: { display: 'table-cell', textAlign: 'left', backgroundColor: headerBg }, children: _jsx(Typography, { style: boldStyle, children: c }) })),
72
+ td: ({ children: c }) => (_jsx(Box, { tag: "td", borderWidth: 1, borderColor: borderColor, pt: "1W", pb: "1W", pl: "3V", pr: "3V", style: { display: 'table-cell' }, children: _jsx(Typography, { style: bodyStyle, children: c }) })),
71
73
  });
72
74
  export const createMarkdownComponents = (styles) => ({
73
75
  ...createTextComponents(styles),
@@ -1 +1 @@
1
- {"version":3,"file":"markdownNatif.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownNatif.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,OAAO,EAA4B,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAE1F,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC;CACpB,CAAC;AAwCF,eAAO,MAAM,qBAAqB,gBAjBT,KAAK,KAAG,IAiBkB,CAAC;AAuBpD,eAAO,MAAM,8BAA8B,GAAI,QAAQ,wBAAwB,KAAG,UAwChF,CAAC"}
1
+ {"version":3,"file":"markdownNatif.d.ts","sourceRoot":"","sources":["../../../src/core/MarkdownDescription/markdownNatif.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,OAAO,EAA4B,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAE1F,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC;CACpB,CAAC;AAwCF,eAAO,MAAM,qBAAqB,gBAjBT,KAAK,KAAG,IAiBkB,CAAC;AAuBpD,eAAO,MAAM,8BAA8B,GAAI,QAAQ,wBAAwB,KAAG,UAwChF,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Spacings } from '@alveole/theme';
2
3
  import { Linking } from 'react-native';
3
4
  import { Box } from '../Box';
4
5
  import { Typography } from '../Typography';
@@ -50,20 +51,20 @@ const tableauxNatifs = ({ bodyStyle, boldStyle, borderColor, headerBg }) => ({
50
51
  thead: ({ children }) => _jsx(Box, { style: { backgroundColor: headerBg }, children: children }),
51
52
  tbody: ({ children }) => _jsx(Box, { children: children }),
52
53
  tr: ({ children }) => _jsx(Box, { style: { flexDirection: 'row' }, children: children }),
53
- th: ({ children }) => (_jsx(Box, { p: 8, borderWidth: 1, borderColor: borderColor, style: { flex: 1, minWidth: 0 }, children: _jsx(Typography, { style: boldStyle, children: children }) })),
54
- td: ({ children }) => (_jsx(Box, { p: 8, borderWidth: 1, borderColor: borderColor, style: { flex: 1, minWidth: 0 }, children: _jsx(Typography, { style: bodyStyle, children: children }) })),
54
+ th: ({ children }) => (_jsx(Box, { p: "1W", borderWidth: 1, borderColor: borderColor, style: { flex: 1, minWidth: 0 }, children: _jsx(Typography, { style: boldStyle, children: children }) })),
55
+ td: ({ children }) => (_jsx(Box, { p: "1W", borderWidth: 1, borderColor: borderColor, style: { flex: 1, minWidth: 0 }, children: _jsx(Typography, { style: bodyStyle, children: children }) })),
55
56
  });
56
57
  export const createNativeMarkdownComponents = (styles) => ({
57
58
  ...createMarkdownComponents(styles),
58
59
  ...tableauxNatifs(styles),
59
- section: ({ children }) => _jsx(Box, { style: { gap: 8 }, children: children }),
60
+ section: ({ children }) => _jsx(Box, { style: { gap: Spacings['1W'] }, children: children }),
60
61
  sup: ({ children }) => _jsx(Typography, { style: styles.bodyStyle, children: children }),
61
62
  h5: ({ children }) => (_jsx(Typography, { style: styles.titres['H6 - XXS'], color: styles.titleColor, children: children })),
62
63
  h6: ({ children }) => (_jsx(Typography, { style: styles.titres['H6 - XXS'], color: styles.titleColor, children: children })),
63
64
  a: ({ href, children }) => (_jsx(Typography, { style: styles.bodyStyle, color: styles.linkColor, textDecorationLine: "underline", accessibilityRole: "link", onPress: href ? () => void Linking.openURL(href) : undefined, children: children })),
64
65
  li: ({ children, node }) => {
65
66
  const marque = node?.properties?.['data-marker'];
66
- return (_jsxs(Box, { style: { flexDirection: 'row', gap: 8, alignItems: 'flex-start' }, children: [_jsx(Typography, { style: styles.bodyStyle, children: typeof marque === 'string' ? marque : '•' }), _jsx(Box, { style: { flex: 1, gap: 4 }, children: children })] }));
67
+ return (_jsxs(Box, { style: { flexDirection: 'row', gap: Spacings['1W'], alignItems: 'flex-start' }, children: [_jsx(Typography, { style: styles.bodyStyle, children: typeof marque === 'string' ? marque : '•' }), _jsx(Box, { style: { flex: 1, gap: Spacings['1V'] }, children: children })] }));
67
68
  },
68
69
  br: () => _jsx(Typography, { children: '\n' }),
69
70
  hr: () => _jsx(Box, { style: { borderTopWidth: 1, borderColor: styles.borderColor } }),
@@ -1 +1 @@
1
- {"version":3,"file":"PageContent.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAiElD,CAAC"}
1
+ {"version":3,"file":"PageContent.d.ts","sourceRoot":"","sources":["../../../src/core/Page/PageContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAmElD,CAAC"}