@alveole/components 2.0.0-alpha.16 → 2.0.0-alpha.18

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 (349) 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/Box/Box.d.ts +15 -15
  8. package/dist/core/Box/Box.d.ts.map +1 -1
  9. package/dist/core/Box/Box.js +9 -6
  10. package/dist/core/Box/Box.stories.d.ts +19 -15
  11. package/dist/core/Box/Box.stories.d.ts.map +1 -1
  12. package/dist/core/Box/Box.stories.js +21 -4
  13. package/dist/core/Box/Box.stories.sources.d.ts +8 -0
  14. package/dist/core/Box/Box.stories.sources.d.ts.map +1 -1
  15. package/dist/core/Box/Box.stories.sources.js +11 -3
  16. package/dist/core/Box/Box.types.d.ts +21 -15
  17. package/dist/core/Box/Box.types.d.ts.map +1 -1
  18. package/dist/core/Box/elementDuTag.d.ts +2 -0
  19. package/dist/core/Box/elementDuTag.d.ts.map +1 -0
  20. package/dist/core/Box/elementDuTag.js +12 -0
  21. package/dist/core/Code/Code.stories.d.ts +2 -2
  22. package/dist/core/Code/Code.stories.js +1 -1
  23. package/dist/core/Code/Code.stories.sources.d.ts.map +1 -1
  24. package/dist/core/Code/Code.stories.sources.js +1 -1
  25. package/dist/core/Code/Code.styles.d.ts +2 -2
  26. package/dist/core/Form/Form.stories.js +1 -1
  27. package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
  28. package/dist/core/Form/Form.stories.sources.js +1 -1
  29. package/dist/core/Grid/Grid.stories.d.ts +15 -14
  30. package/dist/core/Grid/Grid.stories.d.ts.map +1 -1
  31. package/dist/core/Grid/Grid.stories.js +14 -12
  32. package/dist/core/Grid/Grid.stories.sources.d.ts.map +1 -1
  33. package/dist/core/Grid/Grid.stories.sources.js +9 -9
  34. package/dist/core/Highlight/Highlight.stories.d.ts +4 -4
  35. package/dist/core/Highlight/Highlight.styles.d.ts +4 -4
  36. package/dist/core/Highlight/Highlight.theme.d.ts +1 -3
  37. package/dist/core/Highlight/Highlight.theme.d.ts.map +1 -1
  38. package/dist/core/Highlight/Highlight.theme.js +9 -16
  39. package/dist/core/Map/Map.js +1 -1
  40. package/dist/core/MarkdownDescription/MarkdownDescription.js +1 -1
  41. package/dist/core/MarkdownDescription/markdownComponents.d.ts +3 -3
  42. package/dist/core/MarkdownDescription/markdownComponents.d.ts.map +1 -1
  43. package/dist/core/MarkdownDescription/markdownComponents.js +8 -8
  44. package/dist/core/MarkdownDescription/markdownNatif.d.ts.map +1 -1
  45. package/dist/core/MarkdownDescription/markdownNatif.js +5 -4
  46. package/dist/core/Page/PageContent.d.ts.map +1 -1
  47. package/dist/core/Page/PageContent.js +1 -1
  48. package/dist/core/Page/PageContentScrollable.d.ts +15 -15
  49. package/dist/core/Page/usePageStatusBar.d.ts.map +1 -1
  50. package/dist/core/Page/usePageStatusBar.js +3 -3
  51. package/dist/core/Section/Section.stories.d.ts.map +1 -1
  52. package/dist/core/Section/Section.stories.js +8 -6
  53. package/dist/core/Section/Section.stories.sources.d.ts.map +1 -1
  54. package/dist/core/Section/Section.stories.sources.js +4 -4
  55. package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
  56. package/dist/core/ThemeProvider/ThemeProvider.stories.js +17 -12
  57. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts.map +1 -1
  58. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.js +2 -2
  59. package/dist/core/Typography/Typography.stories.d.ts +1 -0
  60. package/dist/core/Typography/Typography.stories.d.ts.map +1 -1
  61. package/dist/core/Typography/Typography.stories.js +2 -0
  62. package/dist/core/Typography/Typography.stories.sources.d.ts +2 -0
  63. package/dist/core/Typography/Typography.stories.sources.d.ts.map +1 -1
  64. package/dist/core/Typography/Typography.stories.sources.js +2 -0
  65. package/dist/core/Typography/Typography.styles.d.ts +1 -1
  66. package/dist/core/Version/Version.stories.d.ts +1 -1
  67. package/dist/core/Version/Version.styles.d.ts +1 -1
  68. package/dist/core/index.d.ts +1 -0
  69. package/dist/core/index.d.ts.map +1 -1
  70. package/dist/core/index.js +1 -0
  71. package/dist/core/styleTamagui/flexDuWeb.d.ts +1 -1
  72. package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -1
  73. package/dist/core/styleTamagui/flexDuWeb.js +4 -3
  74. package/dist/core/styleTamagui/fondAuSurvol.d.ts +5 -4
  75. package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -1
  76. package/dist/generated/version.d.ts +1 -1
  77. package/dist/generated/version.js +1 -1
  78. package/dist/ui/Accordion/Accordion.stories.d.ts +8 -8
  79. package/dist/ui/Accordion/Accordion.styles.d.ts +8 -8
  80. package/dist/ui/Accordion/Accordion.styles.js +2 -2
  81. package/dist/ui/Avatar/Avatar.stories.d.ts +2 -2
  82. package/dist/ui/Avatar/Avatar.styles.d.ts +2 -2
  83. package/dist/ui/Badge/Badge.stories.d.ts +12 -12
  84. package/dist/ui/Badge/Badge.stories.js +3 -3
  85. package/dist/ui/Badge/Badge.stories.sources.d.ts.map +1 -1
  86. package/dist/ui/Badge/Badge.stories.sources.js +3 -3
  87. package/dist/ui/Badge/Badge.styles.d.ts +12 -12
  88. package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
  89. package/dist/ui/BottomSheet/BottomSheet.js +2 -1
  90. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +2 -2
  91. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +2 -2
  92. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
  93. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.js +6 -6
  94. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.d.ts.map +1 -1
  95. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.js +6 -6
  96. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +3 -3
  97. package/dist/ui/Button/Button.d.ts +4 -2
  98. package/dist/ui/Button/Button.d.ts.map +1 -1
  99. package/dist/ui/Button/Button.stories.d.ts +49 -49
  100. package/dist/ui/Button/Button.stories.js +8 -8
  101. package/dist/ui/Button/Button.stories.sources.d.ts.map +1 -1
  102. package/dist/ui/Button/Button.stories.sources.js +8 -8
  103. package/dist/ui/Button/Button.styles.d.ts +48 -48
  104. package/dist/ui/Button/buttonIconStyling.d.ts +4 -20
  105. package/dist/ui/Button/buttonIconStyling.d.ts.map +1 -1
  106. package/dist/ui/Card/Card.stories.d.ts +5 -3
  107. package/dist/ui/Card/Card.stories.d.ts.map +1 -1
  108. package/dist/ui/Card/Card.stories.js +8 -1
  109. package/dist/ui/Card/Card.stories.sources.d.ts +4 -0
  110. package/dist/ui/Card/Card.stories.sources.d.ts.map +1 -1
  111. package/dist/ui/Card/Card.stories.sources.js +5 -1
  112. package/dist/ui/Card/Card.styles.d.ts +2 -2
  113. package/dist/ui/Card/CardHeader.styles.d.ts +3 -3
  114. package/dist/ui/Card/CardSection.styles.d.ts +3 -3
  115. package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
  116. package/dist/ui/Checkbox/Checkbox.js +1 -3
  117. package/dist/ui/Checkbox/Checkbox.stories.d.ts +10 -10
  118. package/dist/ui/Checkbox/Checkbox.stories.js +2 -2
  119. package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts.map +1 -1
  120. package/dist/ui/Checkbox/Checkbox.stories.sources.js +2 -2
  121. package/dist/ui/Checkbox/Checkbox.styles.d.ts +10 -10
  122. package/dist/ui/Checkbox/Checkbox.styles.js +6 -6
  123. package/dist/ui/Counter/Counter.stories.d.ts +3 -3
  124. package/dist/ui/Counter/Counter.stories.js +1 -1
  125. package/dist/ui/Counter/Counter.stories.sources.d.ts.map +1 -1
  126. package/dist/ui/Counter/Counter.stories.sources.js +1 -1
  127. package/dist/ui/Counter/Counter.styles.d.ts +3 -3
  128. package/dist/ui/DataTable/DataTable.stories.d.ts +11 -11
  129. package/dist/ui/DataTable/DataTable.styles.d.ts +11 -11
  130. package/dist/ui/DateInput/DateInput.d.ts +2 -2
  131. package/dist/ui/DateInput/DateInput.d.ts.map +1 -1
  132. package/dist/ui/DateInput/DateInput.ios.d.ts +2 -1
  133. package/dist/ui/DateInput/DateInput.ios.d.ts.map +1 -1
  134. package/dist/ui/DateInput/DateInput.stories.d.ts +1 -1
  135. package/dist/ui/DateInput/DateInput.stories.js +2 -2
  136. package/dist/ui/DateInput/DateInput.stories.sources.d.ts.map +1 -1
  137. package/dist/ui/DateInput/DateInput.stories.sources.js +2 -2
  138. package/dist/ui/Divider/Divider.stories.d.ts +1 -1
  139. package/dist/ui/Divider/Divider.stories.d.ts.map +1 -1
  140. package/dist/ui/Divider/Divider.stories.js +1 -1
  141. package/dist/ui/Divider/Divider.stories.sources.d.ts.map +1 -1
  142. package/dist/ui/Divider/Divider.stories.sources.js +1 -1
  143. package/dist/ui/Divider/Divider.styles.d.ts +1 -1
  144. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +11 -11
  145. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
  146. package/dist/ui/DocumentViewer/DocumentViewer.stories.js +2 -2
  147. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
  148. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +2 -2
  149. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +11 -11
  150. package/dist/ui/DocumentViewer/chargementDePdfJs.d.ts.map +1 -1
  151. package/dist/ui/DocumentViewer/chargementDePdfJs.js +3 -1
  152. package/dist/ui/DurationInput/DurationInput.d.ts +2 -1
  153. package/dist/ui/DurationInput/DurationInput.d.ts.map +1 -1
  154. package/dist/ui/DurationInput/DurationInput.stories.d.ts +1 -1
  155. package/dist/ui/DurationInput/DurationInput.stories.js +2 -2
  156. package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts.map +1 -1
  157. package/dist/ui/DurationInput/DurationInput.stories.sources.js +2 -2
  158. package/dist/ui/EmptyState/EmptyState.stories.d.ts +4 -4
  159. package/dist/ui/EmptyState/EmptyState.styles.d.ts +4 -4
  160. package/dist/ui/FileDropZone/FileDropZone.stories.d.ts +4 -4
  161. package/dist/ui/FileDropZone/FileDropZone.stories.js +3 -3
  162. package/dist/ui/FileDropZone/FileDropZone.stories.sources.d.ts.map +1 -1
  163. package/dist/ui/FileDropZone/FileDropZone.stories.sources.js +3 -3
  164. package/dist/ui/FileDropZone/FileDropZone.styles.d.ts +4 -4
  165. package/dist/ui/FilterDate/FilterDate.stories.d.ts +1 -1
  166. package/dist/ui/FilterDate/FilterDate.styles.d.ts +1 -1
  167. package/dist/ui/FormControl/ChampHHMM.d.ts +2 -2
  168. package/dist/ui/FormControl/ChampHHMM.d.ts.map +1 -1
  169. package/dist/ui/FormControl/FormControl.d.ts +2 -2
  170. package/dist/ui/FormControl/FormControl.d.ts.map +1 -1
  171. package/dist/ui/FormControl/FormControl.stories.d.ts +18 -18
  172. package/dist/ui/FormControl/FormControl.stories.js +4 -4
  173. package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
  174. package/dist/ui/FormControl/FormControl.stories.sources.js +4 -4
  175. package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
  176. package/dist/ui/FormControl/NumberInput.d.ts +2 -1
  177. package/dist/ui/FormControl/NumberInput.d.ts.map +1 -1
  178. package/dist/ui/FormControl/NumberInput.stories.d.ts +18 -18
  179. package/dist/ui/FormControl/NumberInput.stories.d.ts.map +1 -1
  180. package/dist/ui/FormControl/NumberInput.stories.js +2 -1
  181. package/dist/ui/FormControl/NumberInput.stories.sources.d.ts.map +1 -1
  182. package/dist/ui/FormControl/NumberInput.stories.sources.js +1 -1
  183. package/dist/ui/FormControl/OtpInput.stories.d.ts +5 -5
  184. package/dist/ui/FormControl/OtpInput.stories.js +1 -1
  185. package/dist/ui/FormControl/OtpInput.stories.sources.d.ts.map +1 -1
  186. package/dist/ui/FormControl/OtpInput.stories.sources.js +1 -1
  187. package/dist/ui/FormControl/OtpInput.styles.d.ts +5 -5
  188. package/dist/ui/FormControl/OtpInput.styles.js +2 -2
  189. package/dist/ui/FormControl/TextInput.d.ts +1 -1
  190. package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
  191. package/dist/ui/FormControl/TextInput.stories.d.ts +18 -18
  192. package/dist/ui/FormControl/TextInput.types.d.ts +3 -2
  193. package/dist/ui/FormControl/TextInput.types.d.ts.map +1 -1
  194. package/dist/ui/FormControl/TextInputInline.d.ts +2 -2
  195. package/dist/ui/FormControl/TextInputInline.d.ts.map +1 -1
  196. package/dist/ui/FormControl/TextInputMirror.d.ts +2 -2
  197. package/dist/ui/FormControl/TextInputMirror.d.ts.map +1 -1
  198. package/dist/ui/FormControl/TextInputModal.d.ts +2 -2
  199. package/dist/ui/FormControl/TextInputModal.d.ts.map +1 -1
  200. package/dist/ui/FormControl/TextInputPassword.d.ts +2 -1
  201. package/dist/ui/FormControl/TextInputPassword.d.ts.map +1 -1
  202. package/dist/ui/FormControl/fieldBorderState.d.ts +1 -1
  203. package/dist/ui/FormControl/fieldBorderState.d.ts.map +1 -1
  204. package/dist/ui/FormControl/otpTheme.d.ts +1 -1
  205. package/dist/ui/FormControl/otpTheme.d.ts.map +1 -1
  206. package/dist/ui/FormControl/otpTheme.js +0 -3
  207. package/dist/ui/FormControl/textInputStyles.d.ts +52 -0
  208. package/dist/ui/FormControl/textInputStyles.d.ts.map +1 -1
  209. package/dist/ui/FormControl/useTextInputModal.d.ts +4 -3
  210. package/dist/ui/FormControl/useTextInputModal.d.ts.map +1 -1
  211. package/dist/ui/Header/Header.stories.d.ts +4 -4
  212. package/dist/ui/Header/Header.styles.d.ts +4 -4
  213. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts +2 -2
  214. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.js +1 -1
  215. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts.map +1 -1
  216. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.js +1 -1
  217. package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts +2 -2
  218. package/dist/ui/Link/Link.stories.d.ts +1 -1
  219. package/dist/ui/Link/Link.styles.d.ts +1 -1
  220. package/dist/ui/ListItem/ListItem.stories.d.ts +6 -6
  221. package/dist/ui/ListItem/ListItem.styles.d.ts +6 -6
  222. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
  223. package/dist/ui/LucideIcon/LucideIcon.stories.js +2 -1
  224. package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
  225. package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +1 -1
  226. package/dist/ui/LucideIcon/catalogueLucide.d.ts +36 -0
  227. package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
  228. package/dist/ui/LucideIcon/vendor/lab.js +1 -1
  229. package/dist/ui/LucideIcon/vendor/lucide.d.ts +1936 -1780
  230. package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
  231. package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
  232. package/dist/ui/PageHeader/PageHeader.styles.d.ts +1 -1
  233. package/dist/ui/Popover/Popover.js +1 -1
  234. package/dist/ui/Popover/Popover.stories.d.ts +6 -6
  235. package/dist/ui/Popover/Popover.styles.d.ts +6 -6
  236. package/dist/ui/PriceInput/PriceInput.d.ts +2 -3
  237. package/dist/ui/PriceInput/PriceInput.d.ts.map +1 -1
  238. package/dist/ui/PriceInput/PriceInput.js +1 -1
  239. package/dist/ui/PriceInput/PriceInput.stories.d.ts +8 -8
  240. package/dist/ui/PriceInput/PriceInput.stories.js +2 -2
  241. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -1
  242. package/dist/ui/PriceInput/PriceInput.stories.sources.js +2 -2
  243. package/dist/ui/PriceInput/PriceInput.styles.d.ts +7 -7
  244. package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -1
  245. package/dist/ui/PriceInput/PriceInput.web.js +2 -2
  246. package/dist/ui/PriceInput/cadrePrix.d.ts +26 -0
  247. package/dist/ui/PriceInput/cadrePrix.d.ts.map +1 -1
  248. package/dist/ui/PriceInput/largeurDuChamp.d.ts +2 -0
  249. package/dist/ui/PriceInput/largeurDuChamp.d.ts.map +1 -0
  250. package/dist/ui/PriceInput/largeurDuChamp.js +2 -0
  251. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +7 -7
  252. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +7 -7
  253. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +8 -8
  254. package/dist/ui/RadioGroup/RadioGroup.stories.js +2 -2
  255. package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts.map +1 -1
  256. package/dist/ui/RadioGroup/RadioGroup.stories.sources.js +2 -2
  257. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +8 -8
  258. package/dist/ui/RadioGroup/RadioGroup.styles.js +4 -4
  259. package/dist/ui/RadioGroup/RadioGroupCard.js +1 -1
  260. package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +1 -1
  261. package/dist/ui/ResourceList/ResourceList.stories.d.ts +2 -2
  262. package/dist/ui/ResourceList/ResourceList.styles.d.ts +2 -2
  263. package/dist/ui/ResourceList/ResourceListDivider.js +1 -1
  264. package/dist/ui/Select/Select.stories.d.ts +8 -8
  265. package/dist/ui/Select/Select.stories.js +11 -11
  266. package/dist/ui/Select/Select.stories.sources.d.ts.map +1 -1
  267. package/dist/ui/Select/Select.stories.sources.js +11 -11
  268. package/dist/ui/Select/Select.styles.d.ts +8 -8
  269. package/dist/ui/Select/SelectBottomSheet.d.ts.map +1 -1
  270. package/dist/ui/Select/SelectBottomSheet.js +3 -3
  271. package/dist/ui/Select/SelectList.styles.d.ts +14 -14
  272. package/dist/ui/Select/SelectList.styles.js +3 -3
  273. package/dist/ui/Select/selectControlStyle.d.ts +130 -2
  274. package/dist/ui/Select/selectControlStyle.d.ts.map +1 -1
  275. package/dist/ui/Select/selectItemStyle.d.ts +5 -5
  276. package/dist/ui/Select/selectTriggerStyle.d.ts +53 -1
  277. package/dist/ui/Select/selectTriggerStyle.d.ts.map +1 -1
  278. package/dist/ui/Sidebar/Sidebar.stories.d.ts +20 -20
  279. package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
  280. package/dist/ui/Sidebar/Sidebar.stories.js +1 -1
  281. package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts.map +1 -1
  282. package/dist/ui/Sidebar/Sidebar.stories.sources.js +1 -1
  283. package/dist/ui/Sidebar/Sidebar.styles.d.ts +20 -20
  284. package/dist/ui/Sidebar/Sidebar.styles.js +3 -3
  285. package/dist/ui/Sidebar/SidebarHeader.d.ts.map +1 -1
  286. package/dist/ui/Sidebar/SidebarHeader.js +4 -1
  287. package/dist/ui/Signature/Signature.js +1 -1
  288. package/dist/ui/Signature/Signature.stories.d.ts +2 -2
  289. package/dist/ui/Signature/Signature.styles.d.ts +2 -2
  290. package/dist/ui/Skeleton/Skeleton.js +1 -1
  291. package/dist/ui/Skeleton/Skeleton.stories.d.ts +1 -1
  292. package/dist/ui/Skeleton/Skeleton.stories.d.ts.map +1 -1
  293. package/dist/ui/Skeleton/Skeleton.stories.js +3 -3
  294. package/dist/ui/Skeleton/Skeleton.stories.sources.d.ts.map +1 -1
  295. package/dist/ui/Skeleton/Skeleton.stories.sources.js +3 -3
  296. package/dist/ui/Skeleton/Skeleton.styles.d.ts +1 -1
  297. package/dist/ui/Spinner/Spinner.stories.d.ts +2 -2
  298. package/dist/ui/Spinner/Spinner.stories.js +2 -2
  299. package/dist/ui/Spinner/Spinner.stories.sources.d.ts.map +1 -1
  300. package/dist/ui/Spinner/Spinner.stories.sources.js +2 -2
  301. package/dist/ui/Spinner/Spinner.styles.d.ts +2 -2
  302. package/dist/ui/Spinner/useRotation.d.ts +3 -1
  303. package/dist/ui/Spinner/useRotation.d.ts.map +1 -1
  304. package/dist/ui/Spinner/useSpinner.d.ts +3 -3
  305. package/dist/ui/Switch/Switch.d.ts.map +1 -1
  306. package/dist/ui/Switch/Switch.js +2 -3
  307. package/dist/ui/Switch/Switch.stories.d.ts +9 -9
  308. package/dist/ui/Switch/Switch.stories.js +1 -1
  309. package/dist/ui/Switch/Switch.stories.sources.d.ts.map +1 -1
  310. package/dist/ui/Switch/Switch.stories.sources.js +1 -1
  311. package/dist/ui/Switch/Switch.styles.d.ts +9 -9
  312. package/dist/ui/Tabs/Tabs.stories.d.ts +6 -5
  313. package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
  314. package/dist/ui/Tabs/Tabs.stories.js +3 -1
  315. package/dist/ui/Tabs/Tabs.stories.sources.d.ts +2 -0
  316. package/dist/ui/Tabs/Tabs.stories.sources.d.ts.map +1 -1
  317. package/dist/ui/Tabs/Tabs.stories.sources.js +3 -1
  318. package/dist/ui/Tabs/Tabs.styles.d.ts +5 -5
  319. package/dist/ui/Tag/Tag.stories.d.ts +7 -7
  320. package/dist/ui/Tag/Tag.stories.js +5 -5
  321. package/dist/ui/Tag/Tag.stories.sources.d.ts.map +1 -1
  322. package/dist/ui/Tag/Tag.stories.sources.js +5 -5
  323. package/dist/ui/Tag/Tag.styles.d.ts +7 -7
  324. package/dist/ui/Tag/tagStyling.d.ts +2 -2
  325. package/dist/ui/TextInputArray/TextInputArray.js +1 -1
  326. package/dist/ui/TextareaInput/TextareaInput.d.ts +2 -2
  327. package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -1
  328. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +1 -1
  329. package/dist/ui/TextareaInput/TextareaInput.stories.js +1 -1
  330. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -1
  331. package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +1 -1
  332. package/dist/ui/TimeInput/TimeInput.d.ts +2 -1
  333. package/dist/ui/TimeInput/TimeInput.d.ts.map +1 -1
  334. package/dist/ui/TimeInput/TimeInput.stories.d.ts +1 -1
  335. package/dist/ui/TimeInput/TimeInput.stories.js +2 -2
  336. package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts.map +1 -1
  337. package/dist/ui/TimeInput/TimeInput.stories.sources.js +2 -2
  338. package/dist/ui/Toast/Toast.stories.d.ts +11 -11
  339. package/dist/ui/Toast/Toast.stories.js +2 -2
  340. package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
  341. package/dist/ui/Toast/Toast.stories.sources.js +2 -2
  342. package/dist/ui/Toast/Toast.styles.d.ts +11 -11
  343. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +5 -53
  344. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts.map +1 -1
  345. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.styles.d.ts +4 -4
  346. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +3 -3
  347. package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +3 -3
  348. package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +4 -4
  349. package/package.json +23 -23
@@ -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,
@@ -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;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,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;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
+ {"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,5 @@
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
3
  import { AnchorHeading } from '../AnchorHeading';
4
4
  import { Box } from '../Box';
5
5
  import { Code } from '../Code';
@@ -32,9 +32,9 @@ export const createHeadingComponents = (titres, titleColor) => ({
32
32
  h4: ({ children: c }) => (_jsx(AnchorHeading, { as: "h4", style: titres['H6 - XXS'], color: titleColor, children: c })),
33
33
  });
34
34
  const createListComponents = (bodyStyle) => ({
35
- ul: ({ children: c }) => (_jsx(Box, { display: "flex", gap: 4, children: c })),
36
- ol: ({ children: c }) => (_jsx(Box, { display: "flex", gap: 4, children: c })),
37
- 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 })] })),
38
38
  });
39
39
  const createLinkComponents = ({ linkColor }) => ({
40
40
  a: ({ href, children: c }) => (_jsx(Typography, { tag: "a", color: linkColor, textDecorationLine: soulignementDuLien, href, [FOCUS_ATTRIBUTE]: 'ring', children: c })),
@@ -43,7 +43,7 @@ const createBlockComponents = (borderColor) => ({
43
43
  pre: ({ children: c }) => _jsx(Box, { display: "flex", children: c }),
44
44
  // `tag="blockquote"` pose un vrai `<blockquote>` DOM, qui garde la marge par
45
45
  // défaut du user-agent (`margin: 1em 40px`) tant qu'on ne la remet pas à zéro.
46
- 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 })),
47
47
  });
48
48
  const createCodeComponents = () => ({
49
49
  // react-markdown ne passe plus de prop `inline` depuis la v9, et un bloc sans
@@ -59,7 +59,7 @@ const createCodeComponents = () => ({
59
59
  },
60
60
  });
61
61
  const createTableComponents = ({ bodyStyle, boldStyle, borderColor, headerBg }) => ({
62
- 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 }) })),
63
63
  thead: ({ children: c }) => (_jsx(Box, { tag: "thead", style: { display: 'table-header-group' }, children: c })),
64
64
  tbody: ({ children: c }) => (_jsx(Box, { tag: "tbody", style: { display: 'table-row-group' }, children: c })),
65
65
  tr: ({ children: c }) => (_jsx(Box, { tag: "tr", style: { display: 'table-row' }, children: c })),
@@ -68,8 +68,8 @@ const createTableComponents = ({ bodyStyle, boldStyle, borderColor, headerBg })
68
68
  // sérialise les props de la vue, dont le contexte du thème, circulaire, ce qui
69
69
  // remplace l'avertissement par un « Converting circular structure to JSON » qui
70
70
  // fait planter le rendu.
71
- 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 }) })),
72
- 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 }) })),
73
73
  });
74
74
  export const createMarkdownComponents = (styles) => ({
75
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"}
@@ -22,7 +22,7 @@ export const PageContent = (props) => {
22
22
  setIsScrolled(scrolled);
23
23
  onScrollChange?.(scrollY);
24
24
  }, [onScrollChange]);
25
- const renderPageWithSidebar = (children) => (_jsxs(Box, { style: styles.sidebarContainer, overflow: mobileOrTablet && sideBarController?.open ? 'hidden' : undefined, children: [sidebar, _jsxs(Box, { flex: 1, children: [mobileOrTablet && (_jsx(Box, { tag: "mobile-menu", style: statusBar?.backgroundColor ? { backgroundColor: statusBar.backgroundColor } : undefined, children: _jsx(Box, { pt: Platform.OS === 'android' ? top : 0, children: renderToolbar?.({ isScrolled }) }) })), _jsx(Box, { flex: 1, children: children })] })] }));
25
+ const renderPageWithSidebar = (children) => (_jsxs(Box, { style: styles.sidebarContainer, overflow: mobileOrTablet && sideBarController?.open ? 'hidden' : undefined, children: [sidebar, _jsxs(Box, { flex: 1, children: [mobileOrTablet && (_jsx(Box, { tag: "mobile-menu", style: statusBar?.backgroundColor ? { backgroundColor: statusBar.backgroundColor } : undefined, children: _jsx(Box, { style: { paddingTop: Platform.OS === 'android' ? top : undefined }, children: renderToolbar?.({ isScrolled }) }) })), _jsx(Box, { flex: 1, children: children })] })] }));
26
26
  const isScrollable = React.useMemo(() => scrollable === true ||
27
27
  (scrollable === 'desktop-only' && isVariant('desktop')) ||
28
28
  (scrollable === 'mobile-only' && mobileOrTablet), [isVariant, mobileOrTablet, scrollable]);
@@ -8,24 +8,24 @@ export type PageContentScrollableProps = PageProps & {
8
8
  onEndReachedThreshold?: number;
9
9
  onScrollChange?: (scrollY: number) => void;
10
10
  };
11
- export declare const PageContentScrollable: React.ForwardRefExoticComponent<Omit<import("tamagui").ViewProps, "flex" | "backgroundColor" | "borderColor" | "borderRadius" | "borderWidth" | "opacity" | "display" | "flexDirection" | "flexWrap" | "overflow" | "gap" | "style" | "justify" | keyof import("../..").SizeStyle | "p" | "pl" | "pr" | "pt" | "pb" | "m" | "ml" | "mr" | "mt" | "mb" | "tag"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "tag"> & Pick<import("tamagui").ViewProps, "flex" | "opacity" | "display" | "flexDirection" | "flexWrap" | "overflow"> & {
11
+ export declare const PageContentScrollable: React.ForwardRefExoticComponent<Omit<import("tamagui").ViewProps, "flex" | "display" | "overflow" | "backgroundColor" | "borderColor" | "borderRadius" | "borderWidth" | "opacity" | "flexDirection" | "flexWrap" | "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" | "display" | "overflow" | "opacity" | "flexDirection" | "flexWrap"> & {
12
12
  justify?: import("tamagui").ViewProps["justifyContent"];
13
13
  } & import("../..").SizeStyle & {
14
- p?: number | import("@alveole/theme").SpacingKey;
15
- pl?: number | import("@alveole/theme").SpacingKey;
16
- pr?: number | import("@alveole/theme").SpacingKey;
17
- pt?: number | import("@alveole/theme").SpacingKey;
18
- pb?: number | import("@alveole/theme").SpacingKey;
19
- m?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
20
- ml?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
21
- mr?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
22
- mt?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
23
- mb?: number | `${string}%` | import("@alveole/theme").SpacingKey | "auto";
24
- backgroundColor?: import("tamagui").ViewProps["backgroundColor"];
14
+ p?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
15
+ pl?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
16
+ pr?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
17
+ pt?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
18
+ pb?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
19
+ m?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
20
+ ml?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
21
+ mr?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
22
+ mt?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
23
+ mb?: `${string}%` | ("0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W") | "auto";
24
+ backgroundColor?: (import("@alveole/theme").ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", import("@alveole/theme").ThemeColor | "transparent">>;
25
25
  borderWidth?: import("tamagui").ViewProps["borderWidth"];
26
- borderRadius?: number | string;
27
- borderColor?: import("tamagui").ViewProps["borderColor"];
28
- gap?: number | import("@alveole/theme").SpacingKey;
26
+ borderRadius?: import("@alveole/theme").RadiusKey;
27
+ borderColor?: (import("@alveole/theme").ThemeColor | "transparent") | Partial<Record<"default" | "hover" | "press" | "focus" | "focusVisible" | "disabled", import("@alveole/theme").ThemeColor | "transparent">>;
28
+ gap?: "0V" | "0,5V" | "1V" | "1,5V" | "1W" | "3V" | "2W" | "3W" | "4W" | "5W" | "6W" | "8W" | "12W" | "15W";
29
29
  } & {
30
30
  tag?: string;
31
31
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"usePageStatusBar.d.ts","sourceRoot":"","sources":["../../../src/core/Page/usePageStatusBar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOlD,eAAO,MAAM,cAAc,GAAI,WAAW,QAAQ,CAAC,kBAAkB,CAAC,SAIrE,CAAC;AAKF,eAAO,MAAM,gBAAgB,GAAI,YAAY,kBAAkB,SA0B9D,CAAC"}
1
+ {"version":3,"file":"usePageStatusBar.d.ts","sourceRoot":"","sources":["../../../src/core/Page/usePageStatusBar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AASlD,eAAO,MAAM,cAAc,GAAI,WAAW,QAAQ,CAAC,kBAAkB,CAAC,SAGrE,CAAC;AAKF,eAAO,MAAM,gBAAgB,GAAI,YAAY,kBAAkB,SA0B9D,CAAC"}
@@ -1,15 +1,15 @@
1
1
  import { useFocusEffect } from 'expo-router';
2
2
  import * as SystemUI from 'expo-system-ui';
3
3
  import React from 'react';
4
- import { AppState, Platform, StatusBar } from 'react-native';
4
+ import { AppState, StatusBar } from 'react-native';
5
5
  const DEFAULT_STATUS_BAR = {
6
6
  barStyle: 'dark-content',
7
7
  backgroundColor: 'white',
8
8
  };
9
+ // Pas de `StatusBar.setBackgroundColor` : sans effet en edge-to-edge, mode par défaut des apps
10
+ // Expo, et retiré de React Native 0.88. Le fond sous la barre est celui que pose expo-system-ui.
9
11
  export const applyStatusBar = (statusBar) => {
10
12
  StatusBar.setBarStyle(statusBar.barStyle);
11
- if (Platform.OS === 'android')
12
- StatusBar.setBackgroundColor(statusBar.backgroundColor);
13
13
  void SystemUI.setBackgroundColorAsync(statusBar.backgroundColor);
14
14
  };
15
15
  // La barre de statut est un état global de l'OS : la poser au focus de la page et la restaurer à
@@ -1 +1 @@
1
- {"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAQkB;AAKlB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,eAAO,MAAM,YAAY,mCAMxB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,eAAO,MAAM,aAAa,mCAMzB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAQkB;AAMlB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,eAAO,MAAM,YAAY,mCAMxB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,eAAO,MAAM,aAAa,mCAMzB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CustomPalette, enCouleursDuTheme } from '@alveole/theme';
2
3
  import { Box } from '../Box';
3
4
  import { Typography } from '../Typography';
4
5
  import { Section } from './Section';
@@ -11,17 +12,18 @@ export default {
11
12
  component: Section,
12
13
  styleFn: useStyles,
13
14
  };
14
- const paddingColor = '#b9c47f';
15
- const innerBoxColor = '#88b2bd';
15
+ const { background } = enCouleursDuTheme(CustomPalette).light;
16
+ const paddingColor = background['contrast-success'];
17
+ const innerBoxColor = background['contrast-info'];
16
18
  export const Default = () => (_jsx(Section, { children: _jsx(Box, { children: _jsx(Typography, { children: "Section" }) }) }));
17
- export const WithPaddingY = () => (_jsx(Section, { backgroundColor: paddingColor, withPaddingY: true, children: _jsx(Box, { backgroundColor: innerBoxColor, p: '050', children: _jsx(Typography, { children: "Section avec background et padding Y" }) }) }));
19
+ export const WithPaddingY = () => (_jsx(Section, { backgroundColor: paddingColor, withPaddingY: true, children: _jsx(Box, { backgroundColor: innerBoxColor, p: "1W", children: _jsx(Typography, { children: "Section avec background et padding Y" }) }) }));
18
20
  export const WidthMdSize = () => {
19
21
  const styles = useStyles();
20
- return (_jsx(Section, { backgroundColor: paddingColor, size: "md", children: _jsx(Box, { backgroundColor: innerBoxColor, p: '050', children: _jsxs(Typography, { children: ["Section avec background et size md (", styles.sectionContainerMD.maxWidth, "px)"] }) }) }));
22
+ return (_jsx(Section, { backgroundColor: paddingColor, size: "md", children: _jsx(Box, { backgroundColor: innerBoxColor, p: "1W", children: _jsxs(Typography, { children: ["Section avec background et size md (", styles.sectionContainerMD.maxWidth, "px)"] }) }) }));
21
23
  };
22
- export const WidthFullSize = () => (_jsx(Section, { backgroundColor: paddingColor, size: "full", children: _jsx(Box, { backgroundColor: innerBoxColor, p: '050', children: _jsx(Typography, { children: "Section avec background et size full (taille par d\u00E9faut)" }) }) }));
24
+ export const WidthFullSize = () => (_jsx(Section, { backgroundColor: paddingColor, size: "full", children: _jsx(Box, { backgroundColor: innerBoxColor, p: "1W", children: _jsx(Typography, { children: "Section avec background et size full (taille par d\u00E9faut)" }) }) }));
23
25
  export const WidthSmSize = () => {
24
26
  const styles = useStyles();
25
- return (_jsx(Section, { backgroundColor: paddingColor, size: "sm", children: _jsx(Box, { backgroundColor: innerBoxColor, p: '050', children: _jsxs(Typography, { children: ["Section avec background et size sm (", styles.sectionContainerSM.maxWidth, "px)"] }) }) }));
27
+ return (_jsx(Section, { backgroundColor: paddingColor, size: "sm", children: _jsx(Box, { backgroundColor: innerBoxColor, p: "1W", children: _jsxs(Typography, { children: ["Section avec background et size sm (", styles.sectionContainerSM.maxWidth, "px)"] }) }) }));
26
28
  };
27
29
  export * as Sources from './Section.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"Section.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAuI,CAAC;AAE5J,eAAO,MAAM,YAAY,cAA+P,CAAC;AAEzR,eAAO,MAAM,WAAW,cAAiW,CAAC;AAE1X,eAAO,MAAM,aAAa,cAAqR,CAAC;AAEhT,eAAO,MAAM,WAAW,cAAiW,CAAC;AAE1X,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"Section.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/Section/Section.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAuI,CAAC;AAE5J,eAAO,MAAM,YAAY,cAA8P,CAAC;AAExR,eAAO,MAAM,WAAW,cAAgW,CAAC;AAEzX,eAAO,MAAM,aAAa,cAAoR,CAAC;AAE/S,eAAO,MAAM,WAAW,cAAgW,CAAC;AAEzX,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,10 +1,10 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/core/Section/Section.stories.tsx
3
3
  export const Default = () => "export const Default = () => (\n <Section>\n <Box>\n <Typography>Section</Typography>\n </Box>\n </Section>\n);";
4
- export const WithPaddingY = () => "export const WithPaddingY = () => (\n <Section backgroundColor={paddingColor} withPaddingY>\n <Box backgroundColor={innerBoxColor} p={'050'}>\n <Typography>Section avec background et padding Y</Typography>\n </Box>\n </Section>\n);";
5
- export const WidthMdSize = () => "export const WidthMdSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"md\">\n <Box backgroundColor={innerBoxColor} p={'050'}>\n <Typography>Section avec background et size md ({styles.sectionContainerMD.maxWidth}px)</Typography>\n </Box>\n </Section>\n );\n};";
6
- export const WidthFullSize = () => "export const WidthFullSize = () => (\n <Section backgroundColor={paddingColor} size=\"full\">\n <Box backgroundColor={innerBoxColor} p={'050'}>\n <Typography>Section avec background et size full (taille par défaut)</Typography>\n </Box>\n </Section>\n);";
7
- export const WidthSmSize = () => "export const WidthSmSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"sm\">\n <Box backgroundColor={innerBoxColor} p={'050'}>\n <Typography>Section avec background et size sm ({styles.sectionContainerSM.maxWidth}px)</Typography>\n </Box>\n </Section>\n );\n};";
4
+ export const WithPaddingY = () => "export const WithPaddingY = () => (\n <Section backgroundColor={paddingColor} withPaddingY>\n <Box backgroundColor={innerBoxColor} p=\"1W\">\n <Typography>Section avec background et padding Y</Typography>\n </Box>\n </Section>\n);";
5
+ export const WidthMdSize = () => "export const WidthMdSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"md\">\n <Box backgroundColor={innerBoxColor} p=\"1W\">\n <Typography>Section avec background et size md ({styles.sectionContainerMD.maxWidth}px)</Typography>\n </Box>\n </Section>\n );\n};";
6
+ export const WidthFullSize = () => "export const WidthFullSize = () => (\n <Section backgroundColor={paddingColor} size=\"full\">\n <Box backgroundColor={innerBoxColor} p=\"1W\">\n <Typography>Section avec background et size full (taille par défaut)</Typography>\n </Box>\n </Section>\n);";
7
+ export const WidthSmSize = () => "export const WidthSmSize = () => {\n const styles = useStyles();\n\n return (\n <Section backgroundColor={paddingColor} size=\"sm\">\n <Box backgroundColor={innerBoxColor} p=\"1W\">\n <Typography>Section avec background et size sm ({styles.sectionContainerSM.maxWidth}px)</Typography>\n </Box>\n </Section>\n );\n};";
8
8
  export const storySources = {
9
9
  Default,
10
10
  WithPaddingY,
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.stories.d.ts","sourceRoot":"","sources":["../../../src/core/ThemeProvider/ThemeProvider.stories.tsx"],"names":[],"mappings":";;;;;;;;AAOA,wBAQkB;AA6BlB;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,mCAevB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,gBAAgB,mCA8C5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.stories.d.ts","sourceRoot":"","sources":["../../../src/core/ThemeProvider/ThemeProvider.stories.tsx"],"names":[],"mappings":";;;;;;;;AAOA,wBAQkB;AAkClB;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,mCAevB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,gBAAgB,mCA8C5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useTheme } from '@alveole/theme';
2
+ import { RadiusList, Spacings, useTheme } from '@alveole/theme';
3
3
  import { Box } from '../Box';
4
4
  import { Highlight } from '../Highlight';
5
5
  import { Typography } from '../Typography';
@@ -16,13 +16,18 @@ export default {
16
16
  // démonstration.
17
17
  const ModeBadge = ({ children }) => {
18
18
  const { color, text } = useTheme();
19
- return (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 8, style: {
19
+ return (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", style: {
20
20
  alignItems: 'center',
21
- paddingHorizontal: 12,
22
- paddingVertical: 8,
23
- borderRadius: 8,
21
+ paddingHorizontal: Spacings['3V'],
22
+ paddingVertical: Spacings['1W'],
23
+ borderRadius: RadiusList.md,
24
24
  backgroundColor: color.light.background['default-grey'],
25
- }, children: [_jsx(Box, { style: { width: 8, height: 8, borderRadius: 4, backgroundColor: color.light.background['active-primary'] } }), _jsx(Typography, { style: text['Corps de texte'].SM.Regular, children: children })] }));
25
+ }, children: [_jsx(Box, { style: {
26
+ width: 8,
27
+ height: 8,
28
+ borderRadius: RadiusList.full,
29
+ backgroundColor: color.light.background['active-primary'],
30
+ } }), _jsx(Typography, { style: text['Corps de texte'].SM.Regular, children: children })] }));
26
31
  };
27
32
  /**
28
33
  * Mode par défaut : les variables CSS sont injectées au runtime via des balises `<style>`,
@@ -40,7 +45,7 @@ const ModeBadge = ({ children }) => {
40
45
  * }
41
46
  * ```
42
47
  */
43
- export const UsageDefaut = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 12, children: [_jsx(ModeBadge, { children: "Mode actif : injection dynamique via balises <style>" }), _jsx(Highlight, { language: "tsx", children: `import { ThemeProvider } from '@alveole/theme';
48
+ export const UsageDefaut = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3V", children: [_jsx(ModeBadge, { children: "Mode actif : injection dynamique via balises <style>" }), _jsx(Highlight, { language: "tsx", children: `import { ThemeProvider } from '@alveole/theme';
44
49
 
45
50
  export default function RootLayout() {
46
51
  return (
@@ -86,7 +91,7 @@ export default function RootLayout() {
86
91
  */
87
92
  export const UsageCSSStatique = () => {
88
93
  const { color, text } = useTheme();
89
- return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 12, children: [_jsx(ModeBadge, { children: "Mode actif : CSS pr\u00E9-compil\u00E9 - aucune balise <style> inject\u00E9e" }), _jsx(Highlight, { language: "tsx", children: `import '@alveole/theme/dist/default.css';
94
+ return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3V", children: [_jsx(ModeBadge, { children: "Mode actif : CSS pr\u00E9-compil\u00E9 - aucune balise <style> inject\u00E9e" }), _jsx(Highlight, { language: "tsx", children: `import '@alveole/theme/dist/default.css';
90
95
  import { ThemeProvider } from '@alveole/theme';
91
96
 
92
97
  export default function RootLayout() {
@@ -95,10 +100,10 @@ export default function RootLayout() {
95
100
  {children}
96
101
  </ThemeProvider>
97
102
  );
98
- }` }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: 8, style: {
99
- paddingHorizontal: 12,
100
- paddingVertical: 10,
101
- borderRadius: 8,
103
+ }` }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: "1W", style: {
104
+ paddingHorizontal: Spacings['3V'],
105
+ paddingVertical: Spacings['3V'],
106
+ borderRadius: RadiusList.md,
102
107
  backgroundColor: color.light.background['action-high-error'],
103
108
  }, children: [_jsx(Typography, { style: { ...text['Corps de texte'].SM.Medium, color: color.light.text['action-high-error'] }, children: "Limitation : incompatible avec color custom" }), _jsx(Typography, { style: { ...text['Corps de texte'].SM.Regular, color: color.light.text['action-high-error'] }, children: "Si l'app passe un prop `color` au ThemeProvider, les variables overrid\u00E9es ne seront pas inject\u00E9es. Dans ce cas, retirer `staticCSS`." })] }), _jsx(Highlight, { language: "tsx", children: `// ❌ Les overrides color sont ignorés avec staticCSS
104
109
  <ThemeProvider staticCSS color={{ light: { background: { 'default-grey': '#eee' } } }}>
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/ThemeProvider/ThemeProvider.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,cAAyb,CAAC;AAEld,eAAO,MAAM,gBAAgB,cAA2rD,CAAC;AAEztD,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAGtE,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/core/ThemeProvider/ThemeProvider.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,cAA2b,CAAC;AAEpd,eAAO,MAAM,gBAAgB,cAAouD,CAAC;AAElwD,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAGtE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/core/ThemeProvider/ThemeProvider.stories.tsx
3
- export const UsageDefaut = () => "export const UsageDefaut = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={12}>\n <ModeBadge>Mode actif : injection dynamique via balises &lt;style&gt;</ModeBadge>\n <Highlight language=\"tsx\">\n {`import { ThemeProvider } from '@alveole/theme';\n\nexport default function RootLayout() {\n return (\n <ThemeProvider>\n {children}\n </ThemeProvider>\n );\n}`}\n </Highlight>\n </Box>\n);";
4
- export const UsageCSSStatique = () => "export const UsageCSSStatique = () => {\n const { color, text } = useTheme();\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap={12}>\n <ModeBadge>Mode actif : CSS pré-compilé - aucune balise &lt;style&gt; injectée</ModeBadge>\n <Highlight language=\"tsx\">\n {`import '@alveole/theme/dist/default.css';\nimport { ThemeProvider } from '@alveole/theme';\n\nexport default function RootLayout() {\n return (\n <ThemeProvider staticCSS>\n {children}\n </ThemeProvider>\n );\n}`}\n </Highlight>\n <Box\n display=\"flex\"\n flexDirection=\"column\"\n gap={8}\n style={{\n paddingHorizontal: 12,\n paddingVertical: 10,\n borderRadius: 8,\n backgroundColor: color.light.background['action-high-error'],\n }}\n >\n <Typography style={{ ...text['Corps de texte'].SM.Medium, color: color.light.text['action-high-error'] }}>\n Limitation : incompatible avec color custom\n </Typography>\n <Typography style={{ ...text['Corps de texte'].SM.Regular, color: color.light.text['action-high-error'] }}>\n Si l&apos;app passe un prop `color` au ThemeProvider, les variables overridées ne seront pas injectées. Dans\n ce cas, retirer `staticCSS`.\n </Typography>\n </Box>\n <Highlight language=\"tsx\">\n {`// ❌ Les overrides color sont ignorés avec staticCSS\n<ThemeProvider staticCSS color={{ light: { background: { 'default-grey': '#eee' } } }}>\n\n// ✅ Sans staticCSS, les overrides fonctionnent\n<ThemeProvider color={{ light: { background: { 'default-grey': '#eee' } } }}>`}\n </Highlight>\n </Box>\n );\n};";
3
+ export const UsageDefaut = () => "export const UsageDefaut = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3V\">\n <ModeBadge>Mode actif : injection dynamique via balises &lt;style&gt;</ModeBadge>\n <Highlight language=\"tsx\">\n {`import { ThemeProvider } from '@alveole/theme';\n\nexport default function RootLayout() {\n return (\n <ThemeProvider>\n {children}\n </ThemeProvider>\n );\n}`}\n </Highlight>\n </Box>\n);";
4
+ export const UsageCSSStatique = () => "export const UsageCSSStatique = () => {\n const { color, text } = useTheme();\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3V\">\n <ModeBadge>Mode actif : CSS pré-compilé - aucune balise &lt;style&gt; injectée</ModeBadge>\n <Highlight language=\"tsx\">\n {`import '@alveole/theme/dist/default.css';\nimport { ThemeProvider } from '@alveole/theme';\n\nexport default function RootLayout() {\n return (\n <ThemeProvider staticCSS>\n {children}\n </ThemeProvider>\n );\n}`}\n </Highlight>\n <Box\n display=\"flex\"\n flexDirection=\"column\"\n gap=\"1W\"\n style={{\n paddingHorizontal: Spacings['3V'],\n paddingVertical: Spacings['3V'],\n borderRadius: RadiusList.md,\n backgroundColor: color.light.background['action-high-error'],\n }}\n >\n <Typography style={{ ...text['Corps de texte'].SM.Medium, color: color.light.text['action-high-error'] }}>\n Limitation : incompatible avec color custom\n </Typography>\n <Typography style={{ ...text['Corps de texte'].SM.Regular, color: color.light.text['action-high-error'] }}>\n Si l&apos;app passe un prop `color` au ThemeProvider, les variables overridées ne seront pas injectées. Dans\n ce cas, retirer `staticCSS`.\n </Typography>\n </Box>\n <Highlight language=\"tsx\">\n {`// ❌ Les overrides color sont ignorés avec staticCSS\n<ThemeProvider staticCSS color={{ light: { background: { 'default-grey': '#eee' } } }}>\n\n// ✅ Sans staticCSS, les overrides fonctionnent\n<ThemeProvider color={{ light: { background: { 'default-grey': '#eee' } } }}>`}\n </Highlight>\n </Box>\n );\n};";
5
5
  export const storySources = {
6
6
  UsageDefaut,
7
7
  UsageCSSStatique,
@@ -30,5 +30,6 @@ export declare const TypographyStyleUnderline: () => import("react").JSX.Element
30
30
  export declare const TypographyStyleLineThrough: () => import("react").JSX.Element;
31
31
  export declare const TypographyTransformCapitalize: () => import("react").JSX.Element;
32
32
  export declare const TypographyTransformUppercase: () => import("react").JSX.Element;
33
+ export declare const TypographyAligneeADroite: () => import("react").JSX.Element;
33
34
  export * as Sources from './Typography.stories.sources';
34
35
  //# sourceMappingURL=Typography.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/Typography.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAOkB;AAElB,eAAO,MAAM,iBAAiB,mCAAoD,CAAC;AAEnF,eAAO,MAAM,yBAAyB,mCAIrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAAsE,CAAC;AAEzG,eAAO,MAAM,wBAAwB,mCAAkF,CAAC;AAExH,eAAO,MAAM,0BAA0B,mCAA+E,CAAC;AAEvH,eAAO,MAAM,6BAA6B,mCAEzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mCAAwE,CAAC;AAElH,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"Typography.stories.d.ts","sourceRoot":"","sources":["../../../src/core/Typography/Typography.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAOkB;AAElB,eAAO,MAAM,iBAAiB,mCAAoD,CAAC;AAEnF,eAAO,MAAM,yBAAyB,mCAIrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAAsE,CAAC;AAEzG,eAAO,MAAM,wBAAwB,mCAAkF,CAAC;AAExH,eAAO,MAAM,0BAA0B,mCAA+E,CAAC;AAEvH,eAAO,MAAM,6BAA6B,mCAEzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mCAAwE,CAAC;AAGlH,eAAO,MAAM,wBAAwB,mCAIpC,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC"}