@alveole/components 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (677) hide show
  1. package/dist/core/A/A.d.ts +3 -1
  2. package/dist/core/A/A.d.ts.map +1 -1
  3. package/dist/core/A/A.js +6 -3
  4. package/dist/core/AlveoleProvider/AlveoleProvider.d.ts +17 -0
  5. package/dist/core/AlveoleProvider/AlveoleProvider.d.ts.map +1 -0
  6. package/dist/core/AlveoleProvider/AlveoleProvider.js +15 -0
  7. package/dist/core/AlveoleProvider/index.d.ts +2 -0
  8. package/dist/core/AlveoleProvider/index.d.ts.map +1 -0
  9. package/dist/core/AlveoleProvider/index.js +1 -0
  10. package/dist/core/AnchorHeading/AnchorHeading.d.ts +6 -2
  11. package/dist/core/AnchorHeading/AnchorHeading.d.ts.map +1 -1
  12. package/dist/core/AnchorHeading/AnchorHeading.js +1 -1
  13. package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts +2 -1
  14. package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts.map +1 -1
  15. package/dist/core/AnchorHeading/AnchorHeading.stories.js +1 -0
  16. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts +2 -0
  17. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts.map +1 -1
  18. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.js +2 -0
  19. package/dist/core/AnchorHeading/AnchorHeading.web.d.ts +1 -1
  20. package/dist/core/AnchorHeading/AnchorHeading.web.d.ts.map +1 -1
  21. package/dist/core/AnchorHeading/AnchorHeading.web.js +7 -4
  22. package/dist/core/AnchorHeading/slug.d.ts +3 -0
  23. package/dist/core/AnchorHeading/slug.d.ts.map +1 -1
  24. package/dist/core/AnchorHeading/slug.js +11 -0
  25. package/dist/core/Box/Box.d.ts +20 -20
  26. package/dist/core/Box/Box.d.ts.map +1 -1
  27. package/dist/core/Box/Box.js +13 -7
  28. package/dist/core/Box/Box.stories.d.ts +21 -17
  29. package/dist/core/Box/Box.stories.d.ts.map +1 -1
  30. package/dist/core/Box/Box.stories.js +21 -4
  31. package/dist/core/Box/Box.stories.sources.d.ts +8 -0
  32. package/dist/core/Box/Box.stories.sources.d.ts.map +1 -1
  33. package/dist/core/Box/Box.stories.sources.js +11 -3
  34. package/dist/core/Box/Box.types.d.ts +22 -16
  35. package/dist/core/Box/Box.types.d.ts.map +1 -1
  36. package/dist/core/Box/elementDuTag.d.ts +2 -0
  37. package/dist/core/Box/elementDuTag.d.ts.map +1 -0
  38. package/dist/core/Box/elementDuTag.js +12 -0
  39. package/dist/core/Code/Code.d.ts.map +1 -1
  40. package/dist/core/Code/Code.js +6 -0
  41. package/dist/core/Code/Code.stories.d.ts +15 -2
  42. package/dist/core/Code/Code.stories.d.ts.map +1 -1
  43. package/dist/core/Code/Code.stories.js +1 -1
  44. package/dist/core/Code/Code.stories.sources.d.ts.map +1 -1
  45. package/dist/core/Code/Code.stories.sources.js +1 -1
  46. package/dist/core/Code/Code.styles.d.ts +15 -2
  47. package/dist/core/Code/Code.styles.d.ts.map +1 -1
  48. package/dist/core/Code/Code.styles.js +18 -4
  49. package/dist/core/Form/Form.stories.js +1 -1
  50. package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
  51. package/dist/core/Form/Form.stories.sources.js +1 -1
  52. package/dist/core/Form/Form.web.d.ts.map +1 -1
  53. package/dist/core/Form/Form.web.js +4 -1
  54. package/dist/core/Grid/Grid.stories.d.ts +17 -16
  55. package/dist/core/Grid/Grid.stories.d.ts.map +1 -1
  56. package/dist/core/Grid/Grid.stories.js +14 -12
  57. package/dist/core/Grid/Grid.stories.sources.d.ts.map +1 -1
  58. package/dist/core/Grid/Grid.stories.sources.js +9 -9
  59. package/dist/core/Heading/Heading.d.ts +8 -0
  60. package/dist/core/Heading/Heading.d.ts.map +1 -0
  61. package/dist/core/Heading/Heading.js +15 -0
  62. package/dist/core/Heading/Heading.stories.d.ts +13 -0
  63. package/dist/core/Heading/Heading.stories.d.ts.map +1 -0
  64. package/dist/core/Heading/Heading.stories.js +13 -0
  65. package/dist/core/Heading/Heading.stories.sources.d.ts +8 -0
  66. package/dist/core/Heading/Heading.stories.sources.d.ts.map +1 -0
  67. package/dist/core/Heading/Heading.stories.sources.js +8 -0
  68. package/dist/core/Heading/index.d.ts +2 -0
  69. package/dist/core/Heading/index.d.ts.map +1 -0
  70. package/dist/core/Heading/index.js +1 -0
  71. package/dist/core/Highlight/Highlight.d.ts.map +1 -1
  72. package/dist/core/Highlight/Highlight.js +6 -3
  73. package/dist/core/Highlight/Highlight.stories.d.ts +19 -5
  74. package/dist/core/Highlight/Highlight.stories.d.ts.map +1 -1
  75. package/dist/core/Highlight/Highlight.stories.js +1 -1
  76. package/dist/core/Highlight/Highlight.stories.sources.d.ts.map +1 -1
  77. package/dist/core/Highlight/Highlight.stories.sources.js +1 -1
  78. package/dist/core/Highlight/Highlight.styles.d.ts +19 -5
  79. package/dist/core/Highlight/Highlight.styles.d.ts.map +1 -1
  80. package/dist/core/Highlight/Highlight.styles.js +15 -2
  81. package/dist/core/Highlight/Highlight.theme.d.ts +1 -3
  82. package/dist/core/Highlight/Highlight.theme.d.ts.map +1 -1
  83. package/dist/core/Highlight/Highlight.theme.js +9 -16
  84. package/dist/core/Map/Map.js +1 -1
  85. package/dist/core/Map/useGoogleMap.d.ts +2 -1
  86. package/dist/core/Map/useGoogleMap.d.ts.map +1 -1
  87. package/dist/core/Map/useGoogleMap.js +3 -2
  88. package/dist/core/MarkdownDescription/MarkdownDescription.d.ts.map +1 -1
  89. package/dist/core/MarkdownDescription/MarkdownDescription.js +5 -11
  90. package/dist/core/MarkdownDescription/markdownComponents.d.ts +4 -10
  91. package/dist/core/MarkdownDescription/markdownComponents.d.ts.map +1 -1
  92. package/dist/core/MarkdownDescription/markdownComponents.js +17 -14
  93. package/dist/core/MarkdownDescription/markdownNatif.d.ts +13 -0
  94. package/dist/core/MarkdownDescription/markdownNatif.d.ts.map +1 -0
  95. package/dist/core/MarkdownDescription/markdownNatif.js +74 -0
  96. package/dist/core/Metabase/Metabase.stories.d.ts.map +1 -1
  97. package/dist/core/Metabase/Metabase.stories.js +3 -2
  98. package/dist/core/Metabase/Metabase.stories.sources.d.ts.map +1 -1
  99. package/dist/core/Metabase/Metabase.stories.sources.js +1 -1
  100. package/dist/core/Page/Page.stories.d.ts +5 -0
  101. package/dist/core/Page/Page.stories.d.ts.map +1 -1
  102. package/dist/core/Page/Page.stories.js +5 -0
  103. package/dist/core/Page/Page.stories.sources.d.ts +2 -0
  104. package/dist/core/Page/Page.stories.sources.d.ts.map +1 -1
  105. package/dist/core/Page/Page.stories.sources.js +3 -0
  106. package/dist/core/Page/Page.types.d.ts +1 -0
  107. package/dist/core/Page/Page.types.d.ts.map +1 -1
  108. package/dist/core/Page/PageBackground.d.ts +5 -5
  109. package/dist/core/Page/PageBackground.d.ts.map +1 -1
  110. package/dist/core/Page/PageBackground.js +8 -5
  111. package/dist/core/Page/PageBackground.stories.d.ts +25 -0
  112. package/dist/core/Page/PageBackground.stories.d.ts.map +1 -0
  113. package/dist/core/Page/PageBackground.stories.js +28 -0
  114. package/dist/core/Page/PageBackground.stories.sources.d.ts +8 -0
  115. package/dist/core/Page/PageBackground.stories.sources.d.ts.map +1 -0
  116. package/dist/core/Page/PageBackground.stories.sources.js +8 -0
  117. package/dist/core/Page/PageContent.d.ts.map +1 -1
  118. package/dist/core/Page/PageContent.js +3 -3
  119. package/dist/core/Page/PageContentDefault.d.ts.map +1 -1
  120. package/dist/core/Page/PageContentDefault.js +1 -1
  121. package/dist/core/Page/PageContentScrollable.d.ts +18 -17
  122. package/dist/core/Page/PageContentScrollable.d.ts.map +1 -1
  123. package/dist/core/Page/PageContentScrollable.js +1 -1
  124. package/dist/core/Page/index.d.ts +1 -0
  125. package/dist/core/Page/index.d.ts.map +1 -1
  126. package/dist/core/Page/index.js +1 -0
  127. package/dist/core/Page/usePageStatusBar.d.ts.map +1 -1
  128. package/dist/core/Page/usePageStatusBar.js +3 -3
  129. package/dist/core/Section/Section.stories.d.ts.map +1 -1
  130. package/dist/core/Section/Section.stories.js +8 -6
  131. package/dist/core/Section/Section.stories.sources.d.ts.map +1 -1
  132. package/dist/core/Section/Section.stories.sources.js +4 -4
  133. package/dist/core/StorySummary/StorySummary.d.ts +7 -0
  134. package/dist/core/StorySummary/StorySummary.d.ts.map +1 -0
  135. package/dist/core/StorySummary/StorySummary.js +9 -0
  136. package/dist/core/StorySummary/StorySummary.stories.d.ts +13 -0
  137. package/dist/core/StorySummary/StorySummary.stories.d.ts.map +1 -0
  138. package/dist/core/StorySummary/StorySummary.stories.js +13 -0
  139. package/dist/core/StorySummary/StorySummary.stories.sources.d.ts +6 -0
  140. package/dist/core/StorySummary/StorySummary.stories.sources.d.ts.map +1 -0
  141. package/dist/core/StorySummary/StorySummary.stories.sources.js +6 -0
  142. package/dist/core/StorySummary/StorySummary.web.d.ts +4 -0
  143. package/dist/core/StorySummary/StorySummary.web.d.ts.map +1 -0
  144. package/dist/core/StorySummary/StorySummary.web.js +11 -0
  145. package/dist/core/StorySummary/index.d.ts +2 -0
  146. package/dist/core/StorySummary/index.d.ts.map +1 -0
  147. package/dist/core/StorySummary/index.js +1 -0
  148. package/dist/core/StorySummary/styleDuLienBrut.d.ts +9 -0
  149. package/dist/core/StorySummary/styleDuLienBrut.d.ts.map +1 -0
  150. package/dist/core/StorySummary/styleDuLienBrut.js +7 -0
  151. package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
  152. package/dist/core/ThemeProvider/ThemeProvider.stories.js +17 -12
  153. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts.map +1 -1
  154. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.js +2 -2
  155. package/dist/core/Typography/Typography.d.ts +5 -5
  156. package/dist/core/Typography/Typography.d.ts.map +1 -1
  157. package/dist/core/Typography/Typography.js +16 -4
  158. package/dist/core/Typography/Typography.stories.d.ts +3 -2
  159. package/dist/core/Typography/Typography.stories.d.ts.map +1 -1
  160. package/dist/core/Typography/Typography.stories.js +2 -0
  161. package/dist/core/Typography/Typography.stories.sources.d.ts +2 -0
  162. package/dist/core/Typography/Typography.stories.sources.d.ts.map +1 -1
  163. package/dist/core/Typography/Typography.stories.sources.js +2 -0
  164. package/dist/core/Typography/Typography.styles.d.ts +1 -1
  165. package/dist/core/Typography/couleurDuTexte.d.ts +1 -1
  166. package/dist/core/Typography/couleurDuTexte.d.ts.map +1 -1
  167. package/dist/core/UpdateRequired/UpdateRequired.d.ts.map +1 -1
  168. package/dist/core/UpdateRequired/UpdateRequired.js +4 -1
  169. package/dist/core/Version/Version.stories.d.ts +1 -1
  170. package/dist/core/Version/Version.styles.d.ts +1 -1
  171. package/dist/core/animation/animer.d.ts +9 -0
  172. package/dist/core/animation/animer.d.ts.map +1 -0
  173. package/dist/core/animation/animer.js +5 -0
  174. package/dist/core/index.d.ts +3 -0
  175. package/dist/core/index.d.ts.map +1 -1
  176. package/dist/core/index.js +3 -0
  177. package/dist/core/styleTamagui/aplatirStyle.d.ts +2 -0
  178. package/dist/core/styleTamagui/aplatirStyle.d.ts.map +1 -0
  179. package/dist/core/styleTamagui/aplatirStyle.js +9 -0
  180. package/dist/core/styleTamagui/definis.d.ts +4 -0
  181. package/dist/core/styleTamagui/definis.d.ts.map +1 -0
  182. package/dist/core/styleTamagui/definis.js +3 -0
  183. package/dist/core/styleTamagui/flexDuWeb.d.ts +23 -0
  184. package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -0
  185. package/dist/core/styleTamagui/flexDuWeb.js +20 -0
  186. package/dist/core/styleTamagui/fondAuSurvol.d.ts +15 -0
  187. package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -0
  188. package/dist/core/styleTamagui/fondAuSurvol.js +8 -0
  189. package/dist/core/styleTamagui/sansEstompage.d.ts +4 -0
  190. package/dist/core/styleTamagui/sansEstompage.d.ts.map +1 -0
  191. package/dist/core/styleTamagui/sansEstompage.js +4 -0
  192. package/dist/core/styleTamagui/soulignement.d.ts +11 -0
  193. package/dist/core/styleTamagui/soulignement.d.ts.map +1 -0
  194. package/dist/core/styleTamagui/soulignement.js +5 -0
  195. package/dist/generated/version.d.ts +1 -1
  196. package/dist/generated/version.d.ts.map +1 -1
  197. package/dist/generated/version.js +1 -1
  198. package/dist/pdfjs/pdf.min.mjs +4 -5
  199. package/dist/pdfjs/pdf.worker.min.mjs +4 -5
  200. package/dist/stories/index.d.ts +3 -0
  201. package/dist/stories/index.d.ts.map +1 -1
  202. package/dist/stories/index.js +3 -0
  203. package/dist/ui/Accordion/Accordion.stories.d.ts +8 -8
  204. package/dist/ui/Accordion/Accordion.styles.d.ts +8 -8
  205. package/dist/ui/Accordion/Accordion.styles.js +2 -2
  206. package/dist/ui/Accordion/AccordionItem.d.ts.map +1 -1
  207. package/dist/ui/Accordion/AccordionItem.js +2 -1
  208. package/dist/ui/ActionMenu/ActionMenuItem.d.ts.map +1 -1
  209. package/dist/ui/ActionMenu/ActionMenuItem.js +9 -6
  210. package/dist/ui/Avatar/Avatar.d.ts.map +1 -1
  211. package/dist/ui/Avatar/Avatar.js +6 -1
  212. package/dist/ui/Avatar/Avatar.stories.d.ts +2 -2
  213. package/dist/ui/Avatar/Avatar.styles.d.ts +2 -2
  214. package/dist/ui/Badge/Badge.d.ts.map +1 -1
  215. package/dist/ui/Badge/Badge.js +3 -2
  216. package/dist/ui/Badge/Badge.stories.d.ts +28 -24
  217. package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
  218. package/dist/ui/Badge/Badge.stories.js +3 -3
  219. package/dist/ui/Badge/Badge.stories.sources.d.ts.map +1 -1
  220. package/dist/ui/Badge/Badge.stories.sources.js +3 -3
  221. package/dist/ui/Badge/Badge.styles.d.ts +28 -24
  222. package/dist/ui/Badge/Badge.styles.d.ts.map +1 -1
  223. package/dist/ui/Badge/Badge.styles.js +4 -2
  224. package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
  225. package/dist/ui/BottomSheet/BottomSheet.js +3 -1
  226. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +12 -9
  227. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts.map +1 -1
  228. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +12 -9
  229. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts.map +1 -1
  230. package/dist/ui/BottomSheet/BottomSheet.styles.js +10 -7
  231. package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  232. package/dist/ui/Breadcrumbs/Breadcrumbs.js +2 -1
  233. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +8 -7
  234. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  235. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.js +6 -6
  236. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.d.ts.map +1 -1
  237. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.js +6 -6
  238. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +8 -7
  239. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -1
  240. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.js +1 -4
  241. package/dist/ui/Button/Button.d.ts +4 -2
  242. package/dist/ui/Button/Button.d.ts.map +1 -1
  243. package/dist/ui/Button/Button.stories.d.ts +49 -49
  244. package/dist/ui/Button/Button.stories.js +9 -9
  245. package/dist/ui/Button/Button.stories.sources.d.ts.map +1 -1
  246. package/dist/ui/Button/Button.stories.sources.js +8 -8
  247. package/dist/ui/Button/Button.styles.d.ts +48 -48
  248. package/dist/ui/Button/ButtonContent.d.ts.map +1 -1
  249. package/dist/ui/Button/ButtonContent.js +7 -3
  250. package/dist/ui/Button/buttonIconStyling.d.ts +4 -20
  251. package/dist/ui/Button/buttonIconStyling.d.ts.map +1 -1
  252. package/dist/ui/Button/buttonStyling.d.ts +9 -3
  253. package/dist/ui/Button/buttonStyling.d.ts.map +1 -1
  254. package/dist/ui/Button/buttonStyling.js +7 -3
  255. package/dist/ui/Card/Card.stories.d.ts +5 -3
  256. package/dist/ui/Card/Card.stories.d.ts.map +1 -1
  257. package/dist/ui/Card/Card.stories.js +11 -3
  258. package/dist/ui/Card/Card.stories.sources.d.ts +4 -0
  259. package/dist/ui/Card/Card.stories.sources.d.ts.map +1 -1
  260. package/dist/ui/Card/Card.stories.sources.js +7 -3
  261. package/dist/ui/Card/Card.styles.d.ts +2 -2
  262. package/dist/ui/Card/CardHeader.styles.d.ts +3 -3
  263. package/dist/ui/Card/CardSection.styles.d.ts +3 -3
  264. package/dist/ui/Checkbox/Checkbox.d.ts +6 -6
  265. package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
  266. package/dist/ui/Checkbox/Checkbox.js +1 -3
  267. package/dist/ui/Checkbox/Checkbox.stories.d.ts +19 -18
  268. package/dist/ui/Checkbox/Checkbox.stories.d.ts.map +1 -1
  269. package/dist/ui/Checkbox/Checkbox.stories.js +3 -2
  270. package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts.map +1 -1
  271. package/dist/ui/Checkbox/Checkbox.stories.sources.js +2 -2
  272. package/dist/ui/Checkbox/Checkbox.styles.d.ts +13 -12
  273. package/dist/ui/Checkbox/Checkbox.styles.d.ts.map +1 -1
  274. package/dist/ui/Checkbox/Checkbox.styles.js +12 -11
  275. package/dist/ui/Checkbox/CheckboxContainer.d.ts +6 -6
  276. package/dist/ui/Checkbox/CheckboxContainer.d.ts.map +1 -1
  277. package/dist/ui/Checkbox/CheckboxContainer.js +4 -8
  278. package/dist/ui/Checkbox/CheckboxLabel.d.ts +1 -1
  279. package/dist/ui/Checkbox/CheckboxLabel.d.ts.map +1 -1
  280. package/dist/ui/Checkbox/CheckboxLabel.js +3 -2
  281. package/dist/ui/Counter/Counter.stories.d.ts +3 -3
  282. package/dist/ui/Counter/Counter.stories.js +1 -1
  283. package/dist/ui/Counter/Counter.stories.sources.d.ts.map +1 -1
  284. package/dist/ui/Counter/Counter.stories.sources.js +1 -1
  285. package/dist/ui/Counter/Counter.styles.d.ts +3 -3
  286. package/dist/ui/DataTable/DataTable.demo.deployments.js +1 -1
  287. package/dist/ui/DataTable/DataTable.stories.d.ts +13 -11
  288. package/dist/ui/DataTable/DataTable.stories.d.ts.map +1 -1
  289. package/dist/ui/DataTable/DataTable.styles.d.ts +13 -11
  290. package/dist/ui/DataTable/DataTable.styles.d.ts.map +1 -1
  291. package/dist/ui/DataTable/DataTable.styles.js +5 -1
  292. package/dist/ui/DataTable/DataTableCell.js +1 -1
  293. package/dist/ui/DataTable/DataTableRow.d.ts.map +1 -1
  294. package/dist/ui/DataTable/DataTableRow.js +4 -2
  295. package/dist/ui/DataTable/dataTableCellStyle.d.ts +2 -2
  296. package/dist/ui/DataTable/dataTableCellStyle.js +1 -1
  297. package/dist/ui/DateInput/DateInput.d.ts +4 -4
  298. package/dist/ui/DateInput/DateInput.d.ts.map +1 -1
  299. package/dist/ui/DateInput/DateInput.ios.d.ts +4 -3
  300. package/dist/ui/DateInput/DateInput.ios.d.ts.map +1 -1
  301. package/dist/ui/DateInput/DateInput.stories.d.ts +3 -3
  302. package/dist/ui/DateInput/DateInput.stories.js +2 -2
  303. package/dist/ui/DateInput/DateInput.stories.sources.d.ts.map +1 -1
  304. package/dist/ui/DateInput/DateInput.stories.sources.js +2 -2
  305. package/dist/ui/DateInput/DateInput.web.d.ts +2 -2
  306. package/dist/ui/Divider/Divider.stories.d.ts +1 -1
  307. package/dist/ui/Divider/Divider.stories.d.ts.map +1 -1
  308. package/dist/ui/Divider/Divider.stories.js +1 -1
  309. package/dist/ui/Divider/Divider.stories.sources.d.ts.map +1 -1
  310. package/dist/ui/Divider/Divider.stories.sources.js +1 -1
  311. package/dist/ui/Divider/Divider.styles.d.ts +1 -1
  312. package/dist/ui/DocumentViewer/DocumentViewer.d.ts +2 -1
  313. package/dist/ui/DocumentViewer/DocumentViewer.d.ts.map +1 -1
  314. package/dist/ui/DocumentViewer/DocumentViewer.js +13 -5
  315. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +12 -11
  316. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
  317. package/dist/ui/DocumentViewer/DocumentViewer.stories.js +5 -5
  318. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
  319. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +4 -4
  320. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +12 -11
  321. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts.map +1 -1
  322. package/dist/ui/DocumentViewer/DocumentViewer.styles.js +3 -0
  323. package/dist/ui/DocumentViewer/DocumentViewer.types.d.ts +2 -0
  324. package/dist/ui/DocumentViewer/DocumentViewer.types.d.ts.map +1 -1
  325. package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts +1 -2
  326. package/dist/ui/DocumentViewer/DocumentViewerImage.d.ts.map +1 -1
  327. package/dist/ui/DocumentViewer/DocumentViewerImage.js +5 -15
  328. package/dist/ui/DocumentViewer/DocumentViewerPDF.web.d.ts.map +1 -1
  329. package/dist/ui/DocumentViewer/DocumentViewerPDF.web.js +8 -8
  330. package/dist/ui/DocumentViewer/DocumentViewerToolbar.d.ts +3 -0
  331. package/dist/ui/DocumentViewer/DocumentViewerToolbar.d.ts.map +1 -1
  332. package/dist/ui/DocumentViewer/DocumentViewerToolbar.js +7 -3
  333. package/dist/ui/DocumentViewer/chargementDePdfJs.d.ts.map +1 -1
  334. package/dist/ui/DocumentViewer/chargementDePdfJs.js +3 -1
  335. package/dist/ui/DocumentViewer/pointeurWeb.d.ts +13 -3
  336. package/dist/ui/DocumentViewer/pointeurWeb.d.ts.map +1 -1
  337. package/dist/ui/DocumentViewer/pointeurWeb.js +1 -1
  338. package/dist/ui/DocumentViewer/usePleinEcran.d.ts +13 -0
  339. package/dist/ui/DocumentViewer/usePleinEcran.d.ts.map +1 -0
  340. package/dist/ui/DocumentViewer/usePleinEcran.js +27 -0
  341. package/dist/ui/DocumentViewer/useZoomMolette.d.ts +24 -0
  342. package/dist/ui/DocumentViewer/useZoomMolette.d.ts.map +1 -0
  343. package/dist/ui/DocumentViewer/useZoomMolette.js +55 -0
  344. package/dist/ui/DurationInput/DurationInput.d.ts +2 -1
  345. package/dist/ui/DurationInput/DurationInput.d.ts.map +1 -1
  346. package/dist/ui/DurationInput/DurationInput.stories.d.ts +1 -1
  347. package/dist/ui/DurationInput/DurationInput.stories.js +2 -2
  348. package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts.map +1 -1
  349. package/dist/ui/DurationInput/DurationInput.stories.sources.js +2 -2
  350. package/dist/ui/EmptyState/EmptyState.stories.d.ts +5 -6
  351. package/dist/ui/EmptyState/EmptyState.stories.d.ts.map +1 -1
  352. package/dist/ui/EmptyState/EmptyState.stories.js +1 -1
  353. package/dist/ui/EmptyState/EmptyState.stories.sources.d.ts.map +1 -1
  354. package/dist/ui/EmptyState/EmptyState.stories.sources.js +1 -1
  355. package/dist/ui/EmptyState/EmptyState.styles.d.ts +5 -6
  356. package/dist/ui/EmptyState/EmptyState.styles.d.ts.map +1 -1
  357. package/dist/ui/EmptyState/EmptyState.styles.js +3 -2
  358. package/dist/ui/FileDropZone/FileDropZone.stories.d.ts +4 -4
  359. package/dist/ui/FileDropZone/FileDropZone.stories.js +3 -3
  360. package/dist/ui/FileDropZone/FileDropZone.stories.sources.d.ts.map +1 -1
  361. package/dist/ui/FileDropZone/FileDropZone.stories.sources.js +3 -3
  362. package/dist/ui/FileDropZone/FileDropZone.styles.d.ts +4 -4
  363. package/dist/ui/FilterDate/FilterDate.d.ts +1 -1
  364. package/dist/ui/FilterDate/FilterDate.d.ts.map +1 -1
  365. package/dist/ui/FilterDate/FilterDate.js +1 -1
  366. package/dist/ui/FilterDate/FilterDate.stories.d.ts +1 -1
  367. package/dist/ui/FilterDate/FilterDate.styles.d.ts +1 -1
  368. package/dist/ui/FormControl/ChampHHMM.d.ts +2 -2
  369. package/dist/ui/FormControl/ChampHHMM.d.ts.map +1 -1
  370. package/dist/ui/FormControl/FormControl.d.ts +2 -2
  371. package/dist/ui/FormControl/FormControl.d.ts.map +1 -1
  372. package/dist/ui/FormControl/FormControl.stories.d.ts +18 -18
  373. package/dist/ui/FormControl/FormControl.stories.d.ts.map +1 -1
  374. package/dist/ui/FormControl/FormControl.stories.js +9 -9
  375. package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
  376. package/dist/ui/FormControl/FormControl.stories.sources.js +7 -7
  377. package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
  378. package/dist/ui/FormControl/NumberInput.d.ts +2 -1
  379. package/dist/ui/FormControl/NumberInput.d.ts.map +1 -1
  380. package/dist/ui/FormControl/NumberInput.stories.d.ts +18 -18
  381. package/dist/ui/FormControl/NumberInput.stories.d.ts.map +1 -1
  382. package/dist/ui/FormControl/NumberInput.stories.js +3 -2
  383. package/dist/ui/FormControl/NumberInput.stories.sources.d.ts.map +1 -1
  384. package/dist/ui/FormControl/NumberInput.stories.sources.js +2 -2
  385. package/dist/ui/FormControl/OtpInput.stories.d.ts +5 -5
  386. package/dist/ui/FormControl/OtpInput.stories.js +1 -1
  387. package/dist/ui/FormControl/OtpInput.stories.sources.d.ts.map +1 -1
  388. package/dist/ui/FormControl/OtpInput.stories.sources.js +1 -1
  389. package/dist/ui/FormControl/OtpInput.styles.d.ts +5 -5
  390. package/dist/ui/FormControl/OtpInput.styles.js +2 -2
  391. package/dist/ui/FormControl/TextInput.d.ts +2 -1
  392. package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
  393. package/dist/ui/FormControl/TextInput.stories.d.ts +19 -18
  394. package/dist/ui/FormControl/TextInput.stories.d.ts.map +1 -1
  395. package/dist/ui/FormControl/TextInput.types.d.ts +5 -2
  396. package/dist/ui/FormControl/TextInput.types.d.ts.map +1 -1
  397. package/dist/ui/FormControl/TextInputInline.d.ts +3 -2
  398. package/dist/ui/FormControl/TextInputInline.d.ts.map +1 -1
  399. package/dist/ui/FormControl/TextInputInline.js +2 -2
  400. package/dist/ui/FormControl/TextInputMirror.d.ts +3 -2
  401. package/dist/ui/FormControl/TextInputMirror.d.ts.map +1 -1
  402. package/dist/ui/FormControl/TextInputModal.d.ts +3 -2
  403. package/dist/ui/FormControl/TextInputModal.d.ts.map +1 -1
  404. package/dist/ui/FormControl/TextInputPassword.d.ts +3 -1
  405. package/dist/ui/FormControl/TextInputPassword.d.ts.map +1 -1
  406. package/dist/ui/FormControl/TextInputPassword.js +9 -2
  407. package/dist/ui/FormControl/fieldBorderState.d.ts +1 -1
  408. package/dist/ui/FormControl/fieldBorderState.d.ts.map +1 -1
  409. package/dist/ui/FormControl/otpTheme.d.ts +1 -1
  410. package/dist/ui/FormControl/otpTheme.d.ts.map +1 -1
  411. package/dist/ui/FormControl/otpTheme.js +0 -3
  412. package/dist/ui/FormControl/textInputStyles.d.ts +55 -1
  413. package/dist/ui/FormControl/textInputStyles.d.ts.map +1 -1
  414. package/dist/ui/FormControl/textInputStyles.js +3 -1
  415. package/dist/ui/FormControl/useChoixDeFichier.d.ts.map +1 -1
  416. package/dist/ui/FormControl/useChoixDeFichier.js +15 -3
  417. package/dist/ui/FormControl/useTextInputModal.d.ts +4 -3
  418. package/dist/ui/FormControl/useTextInputModal.d.ts.map +1 -1
  419. package/dist/ui/Header/Header.d.ts.map +1 -1
  420. package/dist/ui/Header/Header.js +1 -1
  421. package/dist/ui/Header/Header.stories.d.ts +6 -33
  422. package/dist/ui/Header/Header.stories.d.ts.map +1 -1
  423. package/dist/ui/Header/Header.styles.d.ts +6 -33
  424. package/dist/ui/Header/Header.styles.d.ts.map +1 -1
  425. package/dist/ui/Header/Header.styles.js +6 -6
  426. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts +2 -2
  427. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.js +1 -1
  428. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts.map +1 -1
  429. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.js +1 -1
  430. package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts +2 -2
  431. package/dist/ui/Link/Link.d.ts.map +1 -1
  432. package/dist/ui/Link/Link.js +2 -1
  433. package/dist/ui/Link/Link.stories.d.ts +1 -5
  434. package/dist/ui/Link/Link.stories.d.ts.map +1 -1
  435. package/dist/ui/Link/Link.styles.d.ts +1 -5
  436. package/dist/ui/Link/Link.styles.d.ts.map +1 -1
  437. package/dist/ui/Link/Link.styles.js +0 -4
  438. package/dist/ui/ListItem/ListItem.d.ts.map +1 -1
  439. package/dist/ui/ListItem/ListItem.js +2 -1
  440. package/dist/ui/ListItem/ListItem.stories.d.ts +10 -7
  441. package/dist/ui/ListItem/ListItem.stories.d.ts.map +1 -1
  442. package/dist/ui/ListItem/ListItem.styles.d.ts +10 -7
  443. package/dist/ui/ListItem/ListItem.styles.d.ts.map +1 -1
  444. package/dist/ui/ListItem/ListItem.styles.js +8 -2
  445. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
  446. package/dist/ui/LucideIcon/LucideIcon.stories.js +2 -1
  447. package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
  448. package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +1 -1
  449. package/dist/ui/LucideIcon/catalogueLucide.d.ts +402 -0
  450. package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
  451. package/dist/ui/LucideIcon/vendor/lab.js +1 -1
  452. package/dist/ui/LucideIcon/vendor/lucide.d.ts +5735 -4162
  453. package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
  454. package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
  455. package/dist/ui/PageHeader/PageHeader.styles.d.ts +1 -1
  456. package/dist/ui/Popover/Popover.d.ts.map +1 -1
  457. package/dist/ui/Popover/Popover.js +1 -1
  458. package/dist/ui/Popover/Popover.stories.d.ts +6 -6
  459. package/dist/ui/Popover/Popover.styles.d.ts +6 -6
  460. package/dist/ui/PriceInput/PriceInput.d.ts +2 -3
  461. package/dist/ui/PriceInput/PriceInput.d.ts.map +1 -1
  462. package/dist/ui/PriceInput/PriceInput.js +2 -2
  463. package/dist/ui/PriceInput/PriceInput.stories.d.ts +22 -6
  464. package/dist/ui/PriceInput/PriceInput.stories.d.ts.map +1 -1
  465. package/dist/ui/PriceInput/PriceInput.stories.js +2 -1
  466. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts +2 -0
  467. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -1
  468. package/dist/ui/PriceInput/PriceInput.stories.sources.js +3 -1
  469. package/dist/ui/PriceInput/PriceInput.styles.d.ts +20 -5
  470. package/dist/ui/PriceInput/PriceInput.styles.d.ts.map +1 -1
  471. package/dist/ui/PriceInput/PriceInput.styles.js +20 -6
  472. package/dist/ui/PriceInput/PriceInput.web.d.ts +0 -1
  473. package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -1
  474. package/dist/ui/PriceInput/PriceInput.web.js +9 -10
  475. package/dist/ui/PriceInput/cadrePrix.d.ts +43 -0
  476. package/dist/ui/PriceInput/cadrePrix.d.ts.map +1 -0
  477. package/dist/ui/PriceInput/cadrePrix.js +9 -0
  478. package/dist/ui/PriceInput/largeurDuChamp.d.ts +2 -0
  479. package/dist/ui/PriceInput/largeurDuChamp.d.ts.map +1 -0
  480. package/dist/ui/PriceInput/largeurDuChamp.js +2 -0
  481. package/dist/ui/PriceInput/useSaisieMontant.d.ts +5 -0
  482. package/dist/ui/PriceInput/useSaisieMontant.d.ts.map +1 -0
  483. package/dist/ui/PriceInput/useSaisieMontant.js +19 -0
  484. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +8 -7
  485. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts.map +1 -1
  486. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +8 -7
  487. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts.map +1 -1
  488. package/dist/ui/ProgressBar/ProgressBar.styles.js +2 -0
  489. package/dist/ui/RadioGroup/RadioGroup.d.ts +2 -2
  490. package/dist/ui/RadioGroup/RadioGroup.d.ts.map +1 -1
  491. package/dist/ui/RadioGroup/RadioGroup.js +1 -1
  492. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +10 -12
  493. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  494. package/dist/ui/RadioGroup/RadioGroup.stories.js +2 -2
  495. package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts.map +1 -1
  496. package/dist/ui/RadioGroup/RadioGroup.stories.sources.js +2 -2
  497. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +9 -11
  498. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
  499. package/dist/ui/RadioGroup/RadioGroup.styles.js +7 -10
  500. package/dist/ui/RadioGroup/RadioGroupCard.d.ts.map +1 -1
  501. package/dist/ui/RadioGroup/RadioGroupCard.js +2 -2
  502. package/dist/ui/RadioGroup/RadioGroupContext.d.ts +1 -0
  503. package/dist/ui/RadioGroup/RadioGroupContext.d.ts.map +1 -1
  504. package/dist/ui/RadioGroup/RadioGroupItem.d.ts.map +1 -1
  505. package/dist/ui/RadioGroup/RadioGroupItem.js +8 -3
  506. package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +1 -1
  507. package/dist/ui/RadioGroup/RadioInput.d.ts.map +1 -1
  508. package/dist/ui/RadioGroup/RadioInput.js +5 -7
  509. package/dist/ui/RadioGroup/index.d.ts +1 -1
  510. package/dist/ui/ResourceList/ResourceList.stories.d.ts +4 -2
  511. package/dist/ui/ResourceList/ResourceList.stories.d.ts.map +1 -1
  512. package/dist/ui/ResourceList/ResourceList.stories.js +3 -1
  513. package/dist/ui/ResourceList/ResourceList.stories.sources.d.ts +2 -0
  514. package/dist/ui/ResourceList/ResourceList.stories.sources.d.ts.map +1 -1
  515. package/dist/ui/ResourceList/ResourceList.stories.sources.js +4 -1
  516. package/dist/ui/ResourceList/ResourceList.styles.d.ts +2 -2
  517. package/dist/ui/ResourceList/ResourceListDivider.js +1 -1
  518. package/dist/ui/Select/Select.stories.d.ts +8 -9
  519. package/dist/ui/Select/Select.stories.d.ts.map +1 -1
  520. package/dist/ui/Select/Select.stories.js +12 -12
  521. package/dist/ui/Select/Select.stories.sources.d.ts.map +1 -1
  522. package/dist/ui/Select/Select.stories.sources.js +11 -11
  523. package/dist/ui/Select/Select.styles.d.ts +9 -10
  524. package/dist/ui/Select/Select.styles.d.ts.map +1 -1
  525. package/dist/ui/Select/Select.styles.js +1 -2
  526. package/dist/ui/Select/Select.types.d.ts +2 -0
  527. package/dist/ui/Select/Select.types.d.ts.map +1 -1
  528. package/dist/ui/Select/SelectBottomSheet.d.ts.map +1 -1
  529. package/dist/ui/Select/SelectBottomSheet.js +5 -5
  530. package/dist/ui/Select/SelectItem.js +1 -1
  531. package/dist/ui/Select/SelectList.styles.d.ts +14 -22
  532. package/dist/ui/Select/SelectList.styles.d.ts.map +1 -1
  533. package/dist/ui/Select/SelectList.styles.js +8 -9
  534. package/dist/ui/Select/SelectOptionsList.d.ts +1 -0
  535. package/dist/ui/Select/SelectOptionsList.d.ts.map +1 -1
  536. package/dist/ui/Select/selectControlStyle.d.ts +130 -2
  537. package/dist/ui/Select/selectControlStyle.d.ts.map +1 -1
  538. package/dist/ui/Select/selectItemStyle.d.ts +7 -7
  539. package/dist/ui/Select/selectItemStyle.d.ts.map +1 -1
  540. package/dist/ui/Select/selectItemStyle.js +7 -3
  541. package/dist/ui/Select/selectTriggerStyle.d.ts +54 -2
  542. package/dist/ui/Select/selectTriggerStyle.d.ts.map +1 -1
  543. package/dist/ui/Select/useDefilementVersSelection.d.ts +3 -2
  544. package/dist/ui/Select/useDefilementVersSelection.d.ts.map +1 -1
  545. package/dist/ui/Sidebar/Sidebar.stories.d.ts +20 -27
  546. package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
  547. package/dist/ui/Sidebar/Sidebar.stories.js +1 -1
  548. package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts.map +1 -1
  549. package/dist/ui/Sidebar/Sidebar.stories.sources.js +1 -1
  550. package/dist/ui/Sidebar/Sidebar.styles.d.ts +20 -27
  551. package/dist/ui/Sidebar/Sidebar.styles.d.ts.map +1 -1
  552. package/dist/ui/Sidebar/Sidebar.styles.js +4 -7
  553. package/dist/ui/Sidebar/SidebarHeader.d.ts.map +1 -1
  554. package/dist/ui/Sidebar/SidebarHeader.js +4 -1
  555. package/dist/ui/Sidebar/SidebarItem.d.ts +8 -2
  556. package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
  557. package/dist/ui/Sidebar/SidebarItem.js +16 -9
  558. package/dist/ui/Signature/Signature.d.ts +1 -1
  559. package/dist/ui/Signature/Signature.d.ts.map +1 -1
  560. package/dist/ui/Signature/Signature.js +1 -1
  561. package/dist/ui/Signature/Signature.stories.d.ts +2 -2
  562. package/dist/ui/Signature/Signature.styles.d.ts +2 -2
  563. package/dist/ui/Skeleton/Skeleton.js +1 -1
  564. package/dist/ui/Skeleton/Skeleton.stories.d.ts +2 -1
  565. package/dist/ui/Skeleton/Skeleton.stories.d.ts.map +1 -1
  566. package/dist/ui/Skeleton/Skeleton.stories.js +3 -3
  567. package/dist/ui/Skeleton/Skeleton.stories.sources.d.ts.map +1 -1
  568. package/dist/ui/Skeleton/Skeleton.stories.sources.js +3 -3
  569. package/dist/ui/Skeleton/Skeleton.styles.d.ts +2 -1
  570. package/dist/ui/Skeleton/Skeleton.styles.d.ts.map +1 -1
  571. package/dist/ui/Skeleton/Skeleton.styles.js +2 -0
  572. package/dist/ui/Spinner/Spinner.stories.d.ts +2 -2
  573. package/dist/ui/Spinner/Spinner.stories.js +2 -2
  574. package/dist/ui/Spinner/Spinner.stories.sources.d.ts.map +1 -1
  575. package/dist/ui/Spinner/Spinner.stories.sources.js +2 -2
  576. package/dist/ui/Spinner/Spinner.styles.d.ts +2 -2
  577. package/dist/ui/Spinner/useRotation.d.ts +3 -1
  578. package/dist/ui/Spinner/useRotation.d.ts.map +1 -1
  579. package/dist/ui/Spinner/useSpinner.d.ts +3 -3
  580. package/dist/ui/Switch/Switch.d.ts +1 -1
  581. package/dist/ui/Switch/Switch.d.ts.map +1 -1
  582. package/dist/ui/Switch/Switch.js +15 -11
  583. package/dist/ui/Switch/Switch.stories.d.ts +12 -11
  584. package/dist/ui/Switch/Switch.stories.d.ts.map +1 -1
  585. package/dist/ui/Switch/Switch.stories.js +1 -1
  586. package/dist/ui/Switch/Switch.stories.sources.d.ts.map +1 -1
  587. package/dist/ui/Switch/Switch.stories.sources.js +1 -1
  588. package/dist/ui/Switch/Switch.styles.d.ts +11 -10
  589. package/dist/ui/Switch/Switch.styles.d.ts.map +1 -1
  590. package/dist/ui/Switch/Switch.styles.js +5 -4
  591. package/dist/ui/Tabs/Tabs.d.ts +7 -1
  592. package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
  593. package/dist/ui/Tabs/Tabs.js +3 -3
  594. package/dist/ui/Tabs/Tabs.stories.d.ts +33 -10
  595. package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
  596. package/dist/ui/Tabs/Tabs.stories.js +15 -1
  597. package/dist/ui/Tabs/Tabs.stories.sources.d.ts +4 -0
  598. package/dist/ui/Tabs/Tabs.stories.sources.d.ts.map +1 -1
  599. package/dist/ui/Tabs/Tabs.stories.sources.js +4 -0
  600. package/dist/ui/Tabs/Tabs.styles.d.ts +31 -10
  601. package/dist/ui/Tabs/Tabs.styles.d.ts.map +1 -1
  602. package/dist/ui/Tabs/Tabs.styles.js +6 -2
  603. package/dist/ui/Tabs/TabsTab.js +1 -1
  604. package/dist/ui/Tabs/useTabsState.d.ts +2 -2
  605. package/dist/ui/Tabs/useTabsState.d.ts.map +1 -1
  606. package/dist/ui/Tabs/useTabsState.js +13 -7
  607. package/dist/ui/Tag/Tag.d.ts.map +1 -1
  608. package/dist/ui/Tag/Tag.js +14 -2
  609. package/dist/ui/Tag/Tag.stories.d.ts +15 -7
  610. package/dist/ui/Tag/Tag.stories.d.ts.map +1 -1
  611. package/dist/ui/Tag/Tag.stories.js +5 -5
  612. package/dist/ui/Tag/Tag.stories.sources.d.ts.map +1 -1
  613. package/dist/ui/Tag/Tag.stories.sources.js +5 -5
  614. package/dist/ui/Tag/Tag.styles.d.ts +15 -7
  615. package/dist/ui/Tag/Tag.styles.d.ts.map +1 -1
  616. package/dist/ui/Tag/Tag.styles.js +11 -0
  617. package/dist/ui/Tag/TagNativeContent.d.ts +11 -0
  618. package/dist/ui/Tag/TagNativeContent.d.ts.map +1 -0
  619. package/dist/ui/Tag/TagNativeContent.js +10 -0
  620. package/dist/ui/Tag/tagStyling.d.ts +2 -2
  621. package/dist/ui/TextInputArray/TextInputArray.js +1 -1
  622. package/dist/ui/TextareaInput/TextareaInput.d.ts +3 -2
  623. package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -1
  624. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +3 -1
  625. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts.map +1 -1
  626. package/dist/ui/TextareaInput/TextareaInput.stories.js +3 -5
  627. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts +2 -0
  628. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -1
  629. package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +3 -1
  630. package/dist/ui/TimeInput/TimeInput.d.ts +2 -1
  631. package/dist/ui/TimeInput/TimeInput.d.ts.map +1 -1
  632. package/dist/ui/TimeInput/TimeInput.stories.d.ts +1 -1
  633. package/dist/ui/TimeInput/TimeInput.stories.js +2 -2
  634. package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts.map +1 -1
  635. package/dist/ui/TimeInput/TimeInput.stories.sources.js +2 -2
  636. package/dist/ui/Toast/Toast.d.ts +3 -3
  637. package/dist/ui/Toast/Toast.d.ts.map +1 -1
  638. package/dist/ui/Toast/Toast.js +5 -7
  639. package/dist/ui/Toast/Toast.stories.d.ts +32 -22
  640. package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
  641. package/dist/ui/Toast/Toast.stories.js +14 -11
  642. package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
  643. package/dist/ui/Toast/Toast.stories.sources.js +3 -3
  644. package/dist/ui/Toast/Toast.styles.d.ts +22 -15
  645. package/dist/ui/Toast/Toast.styles.d.ts.map +1 -1
  646. package/dist/ui/Toast/Toast.styles.js +6 -3
  647. package/dist/ui/Toast/ToastContext.d.ts +1 -0
  648. package/dist/ui/Toast/ToastContext.d.ts.map +1 -1
  649. package/dist/ui/Toast/ToastContext.js +1 -0
  650. package/dist/ui/Toast/Toasts.d.ts +2 -1
  651. package/dist/ui/Toast/Toasts.d.ts.map +1 -1
  652. package/dist/ui/Toast/Toasts.js +9 -5
  653. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +5 -53
  654. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts.map +1 -1
  655. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.styles.d.ts +4 -4
  656. package/dist/ui/ToolbarTop/ToolbarTop.d.ts.map +1 -1
  657. package/dist/ui/ToolbarTop/ToolbarTop.js +1 -2
  658. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +4 -5
  659. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts.map +1 -1
  660. package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +4 -5
  661. package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts.map +1 -1
  662. package/dist/ui/ToolbarTop/ToolbarTop.styles.js +1 -2
  663. package/dist/ui/ToolbarTop/ToolbarTop.types.d.ts +2 -3
  664. package/dist/ui/ToolbarTop/ToolbarTop.types.d.ts.map +1 -1
  665. package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +7 -6
  666. package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts.map +1 -1
  667. package/package.json +44 -42
  668. package/dist/core/styleTamagui/versStyleTamagui.d.ts +0 -10
  669. package/dist/core/styleTamagui/versStyleTamagui.d.ts.map +0 -1
  670. package/dist/core/styleTamagui/versStyleTamagui.js +0 -8
  671. package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts +0 -15
  672. package/dist/ui/DocumentViewer/useSurvolAvecZoom.d.ts.map +0 -1
  673. package/dist/ui/DocumentViewer/useSurvolAvecZoom.js +0 -27
  674. package/dist/ui/PriceInput/PriceInput.css +0 -9
  675. package/dist/ui/Toast/ToastBridge.d.ts +0 -11
  676. package/dist/ui/Toast/ToastBridge.d.ts.map +0 -1
  677. package/dist/ui/Toast/ToastBridge.js +0 -19
@@ -39,7 +39,7 @@ export declare const reponseAuPointeur: ({ manipulable, pastilleSurvolee, croixS
39
39
  };
40
40
  /** Le cercle de la croix : son gabarit suit le cran, seul son fond change au survol. */
41
41
  export declare const apparenceDeLaCroix: (styles: Styles, size: TailleDEtiquette, survolee: boolean) => {
42
- backgroundColor?: string | undefined;
42
+ backgroundColor?: import("@alveole/theme").ThemeColor | undefined;
43
43
  marginLeft: number;
44
44
  alignItems: "center";
45
45
  justifyContent: "center";
@@ -52,7 +52,7 @@ export declare const apparenceDeLaCroix: (styles: Styles, size: TailleDEtiquette
52
52
  /** L'icone de la croix grossit avec la pastille et prend la teinte du libelle. */
53
53
  export declare const apparenceDeLIconeDeCroix: (styles: Styles, size: TailleDEtiquette, fonce: boolean) => {
54
54
  size: "sm" | "xs";
55
- color: string;
55
+ color: import("@alveole/theme").ThemeColor;
56
56
  };
57
57
  export {};
58
58
  //# sourceMappingURL=tagStyling.d.ts.map
@@ -13,5 +13,5 @@ export const TextInputArray = (props) => {
13
13
  removeEmpty,
14
14
  dedupe,
15
15
  });
16
- return (_jsxs(Box, { tag: "text-input-array", children: [items.map((item, index) => (_jsx(TextInput, { placeholder: placeholder, autoCapitalize: "words", value: item.value, onChangeText: (txt) => updateItem(item.id, txt), endAdornment: item._original != null && disabledDeleteForOriginals.includes(item._original) ? undefined : (_jsx(InputButtonAdornment, { icon: "X", position: "end", accessibilityLabel: `Retirer la ligne ${index + 1}`, onPress: () => removeItem(item.id) })), onBlur: notifier }, item.id))), _jsx(Box, { display: "flex", flexDirection: "row", pt: '100', justify: 'flex-start', children: _jsx(Button, { variant: "tertiary", leading: "Plus", title: addTitle, onPress: () => addItem() }) })] }));
16
+ return (_jsxs(Box, { tag: "text-input-array", gap: "1V", children: [items.map((item, index) => (_jsx(TextInput, { placeholder: placeholder, autoCapitalize: "words", value: item.value, onChangeText: (txt) => updateItem(item.id, txt), endAdornment: item._original != null && disabledDeleteForOriginals.includes(item._original) ? undefined : (_jsx(InputButtonAdornment, { icon: "X", position: "end", accessibilityLabel: `Retirer la ligne ${index + 1}`, onPress: () => removeItem(item.id) })), onBlur: notifier }, item.id))), _jsx(Box, { display: "flex", flexDirection: "row", pt: "2W", justify: 'flex-start', children: _jsx(Button, { variant: "tertiary", leading: "Plus", title: addTitle, onPress: () => addItem() }) })] }));
17
17
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TextInputProps } from '../FormControl';
2
+ import { TextInputElement, TextInputProps } from '../FormControl';
3
3
  export type TextareaInputProps = TextInputProps & {
4
4
  numberOfLines?: number;
5
5
  onModalSubmit?: () => void;
@@ -14,8 +14,9 @@ export declare const TextareaInput: React.ForwardRefExoticComponent<Omit<import(
14
14
  openModal?: boolean;
15
15
  modalSubmitLabel?: string;
16
16
  onModalSubmit?: () => void;
17
+ resize?: "none" | "vertical" | "horizontal" | "both";
17
18
  } & {
18
19
  numberOfLines?: number;
19
20
  onModalSubmit?: () => void;
20
- } & React.RefAttributes<import("react-native").TextInput>>;
21
+ } & React.RefAttributes<TextInputElement>>;
21
22
  //# sourceMappingURL=TextareaInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA+B,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAK7E,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;oBAJR,MAAM;oBACN,MAAM,IAAI;0DAkB1B,CAAC"}
1
+ {"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAK7E,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;oBAJR,MAAM;oBACN,MAAM,IAAI;0CAkB1B,CAAC"}
@@ -13,13 +13,15 @@ declare const _default: {
13
13
  openModal?: boolean;
14
14
  modalSubmitLabel?: string;
15
15
  onModalSubmit?: () => void;
16
+ resize?: "none" | "vertical" | "horizontal" | "both";
16
17
  } & {
17
18
  numberOfLines?: number;
18
19
  onModalSubmit?: () => void;
19
- } & import("react").RefAttributes<import("react-native").TextInput>>;
20
+ } & import("react").RefAttributes<import("..").TextInputElement>>;
20
21
  styleFn: () => {};
21
22
  };
22
23
  export default _default;
23
24
  export declare const Default: () => import("react").JSX.Element;
25
+ export declare const Redimensionnable: () => import("react").JSX.Element;
24
26
  export * as Sources from './TextareaInput.stories.sources';
25
27
  //# sourceMappingURL=TextareaInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,wBAOkB;AAYlB,eAAO,MAAM,OAAO,mCAYnB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"TextareaInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAYnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAS5B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box } from '../../core/Box';
3
- import { FormControl, FormControlLabel } from '../FormControl';
4
- import { InputHeading } from '../InputHeading';
3
+ import { FormControl } from '../FormControl';
5
4
  import { TextareaInput } from './TextareaInput';
6
5
  export default {
7
6
  title: 'TextareaInput',
@@ -11,7 +10,6 @@ export default {
11
10
  component: TextareaInput,
12
11
  styleFn: () => ({}),
13
12
  };
14
- // TextareaInput est le champ nu : c'est FormControl qui porte le libellé et le relie au champ.
15
- const Champ = ({ label, children }) => (_jsxs(FormControl, { children: [_jsx(InputHeading, { children: _jsx(FormControlLabel, { label: label }) }), children] }));
16
- export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(Champ, { label: "Message", children: _jsx(TextareaInput, { placeholder: "Votre message...", numberOfLines: 4 }) }), _jsx(Champ, { label: "Avec valeur", children: _jsx(TextareaInput, { value: "Contenu du message", numberOfLines: 4 }) }), _jsx(Champ, { label: "D\u00E9sactiv\u00E9", children: _jsx(TextareaInput, { placeholder: "D\u00E9sactiv\u00E9", disabled: true, numberOfLines: 4 }) })] }));
13
+ export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Message", children: _jsx(TextareaInput, { placeholder: "Votre message...", numberOfLines: 4 }) }), _jsx(FormControl, { label: "Avec valeur", children: _jsx(TextareaInput, { value: "Contenu du message", numberOfLines: 4 }) }), _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", children: _jsx(TextareaInput, { placeholder: "D\u00E9sactiv\u00E9", disabled: true, numberOfLines: 4 }) })] }));
14
+ export const Redimensionnable = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Verticalement", children: _jsx(TextareaInput, { placeholder: "Tirer le coin pour agrandir...", numberOfLines: 4, resize: "vertical" }) }), _jsx(FormControl, { label: "Dans les deux sens", children: _jsx(TextareaInput, { placeholder: "Tirer le coin pour agrandir...", numberOfLines: 4, resize: "both" }) })] }));
17
15
  export * as Sources from './TextareaInput.stories.sources';
@@ -1,6 +1,8 @@
1
1
  export declare const Default: () => string;
2
+ export declare const Redimensionnable: () => string;
2
3
  export declare const storySources: {
3
4
  readonly Default: () => string;
5
+ readonly Redimensionnable: () => string;
4
6
  };
5
7
  export type StorySourceName = keyof typeof storySources;
6
8
  //# sourceMappingURL=TextareaInput.stories.sources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAke,CAAC;AAEvf,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"TextareaInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TextareaInput/TextareaInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAwgB,CAAC;AAE7hB,eAAO,MAAM,gBAAgB,cAAyd,CAAC;AAEvf,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,6 +1,8 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/TextareaInput/TextareaInput.stories.tsx
3
- export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <Champ label=\"Message\">\n <TextareaInput placeholder=\"Votre message...\" numberOfLines={4} />\n </Champ>\n <Champ label=\"Avec valeur\">\n <TextareaInput value=\"Contenu du message\" numberOfLines={4} />\n </Champ>\n <Champ label=\"Désactivé\">\n <TextareaInput placeholder=\"Désactivé\" disabled numberOfLines={4} />\n </Champ>\n </Box>\n);";
3
+ export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Message\">\n <TextareaInput placeholder=\"Votre message...\" numberOfLines={4} />\n </FormControl>\n <FormControl label=\"Avec valeur\">\n <TextareaInput value=\"Contenu du message\" numberOfLines={4} />\n </FormControl>\n <FormControl label=\"Désactivé\">\n <TextareaInput placeholder=\"Désactivé\" disabled numberOfLines={4} />\n </FormControl>\n </Box>\n);";
4
+ export const Redimensionnable = () => "export const Redimensionnable = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Verticalement\">\n <TextareaInput placeholder=\"Tirer le coin pour agrandir...\" numberOfLines={4} resize=\"vertical\" />\n </FormControl>\n <FormControl label=\"Dans les deux sens\">\n <TextareaInput placeholder=\"Tirer le coin pour agrandir...\" numberOfLines={4} resize=\"both\" />\n </FormControl>\n </Box>\n);";
4
5
  export const storySources = {
5
6
  Default,
7
+ Redimensionnable,
6
8
  };
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { TextInputElement } from '../FormControl';
2
3
  import { ChampHHMMProps } from '../FormControl/ChampHHMM';
3
4
  export type TimeInputProps = ChampHHMMProps;
4
5
  export declare const TimeInput: React.ForwardRefExoticComponent<import("..").FormControlCaptionProps & {
@@ -6,5 +7,5 @@ export declare const TimeInput: React.ForwardRefExoticComponent<import("..").For
6
7
  onChange?: (value: string) => void;
7
8
  onBlur?: () => void;
8
9
  disabled?: boolean;
9
- } & React.RefAttributes<import("react-native").TextInput>>;
10
+ } & React.RefAttributes<TextInputElement>>;
10
11
  //# sourceMappingURL=TimeInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimeInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TimeInput/TimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAa,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAQ5C,eAAO,MAAM,SAAS;;;;;0DAEpB,CAAC"}
1
+ {"version":3,"file":"TimeInput.d.ts","sourceRoot":"","sources":["../../../src/ui/TimeInput/TimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAa,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAQ5C,eAAO,MAAM,SAAS;;;;;0CAEpB,CAAC"}
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  onChange?: (value: string) => void;
10
10
  onBlur?: () => void;
11
11
  disabled?: boolean;
12
- } & import("react").RefAttributes<import("react-native").TextInput>>;
12
+ } & import("react").RefAttributes<import("..").TextInputElement>>;
13
13
  styleFn: () => string;
14
14
  };
15
15
  export default _default;
@@ -23,6 +23,6 @@ Le champ est nu : on le place dans un FormControl pour son libellé, son aide et
23
23
  component: TimeInput,
24
24
  styleFn: () => 'Aucun style appliqué',
25
25
  };
26
- export const Default = () => (_jsx(Box, { width: "100%", p: 8, children: _jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", children: _jsx(TimeInput, {}) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", children: _jsx(TimeInput, { value: "09:30" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", hint: "Heure de d\u00E9but de mission", children: _jsx(TimeInput, { value: "14:00" }) }) })] }) }));
27
- export const States = () => (_jsx(Box, { width: "100%", p: 8, children: _jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Erreur", error: "Heure invalide (00:00\u201323:59)", children: _jsx(TimeInput, { value: "25:70", error: "Heure invalide (00:00\u201323:59)" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Succ\u00E8s", success: "Enregistr\u00E9", children: _jsx(TimeInput, { value: "09:30", success: "Enregistr\u00E9" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(TimeInput, { value: "09:30", disabled: true }) }) })] }) }));
26
+ export const Default = () => (_jsx(Box, { width: "100%", p: "1W", children: _jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", children: _jsx(TimeInput, {}) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", children: _jsx(TimeInput, { value: "09:30" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Heure", hint: "Heure de d\u00E9but de mission", children: _jsx(TimeInput, { value: "14:00" }) }) })] }) }));
27
+ export const States = () => (_jsx(Box, { width: "100%", p: "1W", children: _jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Erreur", error: "Heure invalide (00:00\u201323:59)", children: _jsx(TimeInput, { value: "25:70", error: "Heure invalide (00:00\u201323:59)" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Succ\u00E8s", success: "Enregistr\u00E9", children: _jsx(TimeInput, { value: "09:30", success: "Enregistr\u00E9" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(TimeInput, { value: "09:30", disabled: true }) }) })] }) }));
28
28
  export * as Sources from './TimeInput.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"TimeInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TimeInput/TimeInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAwqB,CAAC;AAE7rB,eAAO,MAAM,MAAM,cAAwyB,CAAC;AAE5zB,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"TimeInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/TimeInput/TimeInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA8qB,CAAC;AAEnsB,eAAO,MAAM,MAAM,cAA8yB,CAAC;AAEl0B,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/TimeInput/TimeInput.stories.tsx
3
- export const Default = () => "export const Default = () => (\n <Box width=\"100%\" p={8}>\n <Grid gap={8}>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\">\n <TimeInput />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\">\n <TimeInput value=\"09:30\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\" hint=\"Heure de début de mission\">\n <TimeInput value=\"14:00\" />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
4
- export const States = () => "export const States = () => (\n <Box width=\"100%\" p={8}>\n <Grid gap={8}>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Erreur\" error=\"Heure invalide (00:00–23:59)\">\n <TimeInput value=\"25:70\" error=\"Heure invalide (00:00–23:59)\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Succès\" success=\"Enregistré\">\n <TimeInput value=\"09:30\" success=\"Enregistré\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Désactivé\" disabled>\n <TimeInput value=\"09:30\" disabled />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
3
+ export const Default = () => "export const Default = () => (\n <Box width=\"100%\" p=\"1W\">\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\">\n <TimeInput />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\">\n <TimeInput value=\"09:30\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Heure\" hint=\"Heure de début de mission\">\n <TimeInput value=\"14:00\" />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
4
+ export const States = () => "export const States = () => (\n <Box width=\"100%\" p=\"1W\">\n <Grid gap=\"1W\">\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Erreur\" error=\"Heure invalide (00:00–23:59)\">\n <TimeInput value=\"25:70\" error=\"Heure invalide (00:00–23:59)\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Succès\" success=\"Enregistré\">\n <TimeInput value=\"09:30\" success=\"Enregistré\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Désactivé\" disabled>\n <TimeInput value=\"09:30\" disabled />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
5
5
  export const storySources = {
6
6
  Default,
7
7
  States,
@@ -1,4 +1,4 @@
1
- import { BoxProps } from '../../core/Box';
1
+ import { type ToastItemRenderProps } from '@tamagui/toast';
2
2
  import { Leading } from '../Leading';
3
3
  import type { ToastAPIOptions } from './ToastContext';
4
4
  type ToastVariant = NonNullable<ToastAPIOptions['variant']>;
@@ -10,7 +10,7 @@ export type ToastViewProps = {
10
10
  onClose?: () => void;
11
11
  };
12
12
  export declare function ToastView({ title, message, variant, leading, onClose }: ToastViewProps): import("react").JSX.Element;
13
- export type ToastProps = Omit<BoxProps, 'children'>;
14
- export declare function Toast(): import("react").JSX.Element | null;
13
+ export type ToastProps = ToastItemRenderProps;
14
+ export declare function Toast({ toast, index }: ToastProps): import("react").JSX.Element;
15
15
  export {};
16
16
  //# sourceMappingURL=Toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,YAAY,GAAG,WAAW,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,cAAc,+BAqBlG;AAED,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AAEpD,wBAAgB,KAAK,uCAyBpB"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAIlF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,YAAY,GAAG,WAAW,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,cAAc,+BAqBlG;AAED,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC;AAK9C,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,UAAU,+BAQjD"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Toast as TamaguiToast, useToastController, useToastState } from '@tamagui/toast';
2
+ import { Toast as TamaguiToast } from '@tamagui/toast';
3
3
  import { Pressable } from 'react-native';
4
4
  import { Box } from '../../core/Box';
5
5
  import { Typography } from '../../core/Typography';
@@ -10,11 +10,9 @@ export function ToastView({ title, message, variant = 'default', leading, onClos
10
10
  const styles = useStyles();
11
11
  return (_jsxs(Box, { style: styles.container, children: [_jsx(ToastType, { variant: variant, leading: leading }), _jsxs(Box, { style: styles.contenu, children: [_jsxs(Box, { style: styles.titleContainer, children: [_jsx(Typography, { style: styles.title, children: title }), _jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: "Fermer la notification", onPress: onClose, children: _jsx(LucideIcon, { name: "X", size: "md" }) })] }), message && (_jsx(Box, { children: _jsx(Typography, { style: styles.message, children: message }) }))] })] }));
12
12
  }
13
- export function Toast() {
14
- const toast = useToastState();
15
- const controller = useToastController();
13
+ const horsEcran = { opacity: 0, y: 10, scale: 0.98 };
14
+ const animationDuToast = { enter: horsEcran, exit: horsEcran };
15
+ export function Toast({ toast, index }) {
16
16
  const styles = useStyles();
17
- if (!toast)
18
- return null;
19
- return (_jsx(TamaguiToast, { duration: toast.duration, enterStyle: { opacity: 0, y: 10, scale: 0.98 }, exitStyle: { opacity: 0, y: 10, scale: 0.98 }, viewportName: "app-toasts", style: styles.tamaguiToastContainer, children: _jsx(ToastView, { title: toast.title, message: toast.message, variant: toast.customData?.variant ?? 'default', leading: toast.customData?.leading, onClose: () => controller.hide() }) }, toast.id));
17
+ return (_jsx(TamaguiToast.Item, { toast: toast, index: index, ...animationDuToast, style: styles.tamaguiToastContainer, children: toast.jsx }));
20
18
  }
@@ -19,19 +19,19 @@ declare const _default: {
19
19
  paddingBottom: string | number;
20
20
  };
21
21
  iconBlockDefault: {
22
- backgroundColor: string;
22
+ backgroundColor: import("@alveole/theme").ThemeColor;
23
23
  };
24
24
  iconBlockInfo: {
25
- backgroundColor: string;
25
+ backgroundColor: import("@alveole/theme").ThemeColor;
26
26
  };
27
27
  iconBlockSuccess: {
28
- backgroundColor: string;
28
+ backgroundColor: import("@alveole/theme").ThemeColor;
29
29
  };
30
30
  iconBlockError: {
31
- backgroundColor: string;
31
+ backgroundColor: import("@alveole/theme").ThemeColor;
32
32
  };
33
33
  iconBlockWarning: {
34
- backgroundColor: string;
34
+ backgroundColor: import("@alveole/theme").ThemeColor;
35
35
  };
36
36
  titleContainer: {
37
37
  display: "flex";
@@ -40,15 +40,16 @@ declare const _default: {
40
40
  justifyContent: "space-between";
41
41
  };
42
42
  title: {
43
- color: string;
43
+ color: import("@alveole/theme").ThemeColor;
44
44
  fontSize: 14;
45
45
  lineHeight: 20;
46
46
  letterSpacing: 0;
47
47
  fontFamily: string;
48
48
  fontWeight?: import("react-native").TextStyle["fontWeight"];
49
+ flexShrink: number;
49
50
  };
50
51
  message: {
51
- color: string;
52
+ color: import("@alveole/theme").ThemeColor;
52
53
  fontSize: 14;
53
54
  lineHeight: 20;
54
55
  letterSpacing: 0;
@@ -56,9 +57,11 @@ declare const _default: {
56
57
  fontWeight?: import("react-native").TextStyle["fontWeight"];
57
58
  };
58
59
  tamaguiToastContainer: {
60
+ maxWidth: number;
61
+ alignSelf: "center";
59
62
  borderRadius: import("@alveole/theme").Radius;
60
63
  padding: number;
61
- width: number;
64
+ width: 384 | "100%";
62
65
  backgroundColor: "transparent";
63
66
  } | {
64
67
  shadowColor: string;
@@ -69,24 +72,28 @@ declare const _default: {
69
72
  shadowOpacity: number;
70
73
  shadowRadius: number;
71
74
  elevation: number;
75
+ maxWidth: number;
76
+ alignSelf: "center";
72
77
  borderRadius: import("@alveole/theme").Radius;
73
78
  padding: number;
74
- width: number;
79
+ width: 384 | "100%";
75
80
  backgroundColor: "transparent";
76
81
  } | {
77
82
  boxShadow: string;
83
+ maxWidth: number;
84
+ alignSelf: "center";
78
85
  borderRadius: import("@alveole/theme").Radius;
79
86
  padding: number;
80
- width: number;
87
+ width: 384 | "100%";
81
88
  backgroundColor: "transparent";
82
89
  } | {
83
90
  padding: number;
84
- width: number;
91
+ width: 384 | "100%";
85
92
  backgroundColor: "transparent";
86
93
  borderRadius: number;
87
94
  };
88
95
  container: {
89
- backgroundColor: string;
96
+ backgroundColor: import("@alveole/theme").ThemeColor;
90
97
  borderRadius: import("@alveole/theme").Radius;
91
98
  display: "flex";
92
99
  flexDirection: "row";
@@ -104,7 +111,7 @@ declare const _default: {
104
111
  shadowOpacity: number;
105
112
  shadowRadius: number;
106
113
  elevation: number;
107
- backgroundColor: string;
114
+ backgroundColor: import("@alveole/theme").ThemeColor;
108
115
  borderRadius: import("@alveole/theme").Radius;
109
116
  display: "flex";
110
117
  flexDirection: "row";
@@ -115,7 +122,7 @@ declare const _default: {
115
122
  padding: number;
116
123
  } | {
117
124
  boxShadow: string;
118
- backgroundColor: string;
125
+ backgroundColor: import("@alveole/theme").ThemeColor;
119
126
  borderRadius: import("@alveole/theme").Radius;
120
127
  display: "flex";
121
128
  flexDirection: "row";
@@ -125,7 +132,7 @@ declare const _default: {
125
132
  maxWidth: number;
126
133
  padding: number;
127
134
  } | {
128
- backgroundColor: string;
135
+ backgroundColor: import("@alveole/theme").ThemeColor;
129
136
  borderRadius: import("@alveole/theme").Radius;
130
137
  display: "flex";
131
138
  flexDirection: "row";
@@ -152,18 +159,21 @@ export default _default;
152
159
  * import { Toasts } from '@alveole/components';
153
160
  * import { ThemeProvider } from '@alveole/theme';
154
161
  * import { Stack } from 'expo-router';
162
+ * import { SafeAreaProvider } from 'react-native-safe-area-context';
155
163
  * import { TamaguiProvider } from 'tamagui';
156
164
  * import { tamaguiConfig } from '../tamagui.config';
157
165
  *
158
166
  * export default function RootLayout() {
159
167
  * return (
160
- * <TamaguiProvider config={tamaguiConfig} defaultTheme="light">
161
- * <ThemeProvider loader={false}>
162
- * <Toasts>
163
- * <Stack screenOptions={{ headerShown: false }} />
164
- * </Toasts>
165
- * </ThemeProvider>
166
- * </TamaguiProvider>
168
+ * <SafeAreaProvider>
169
+ * <TamaguiProvider config={tamaguiConfig} defaultTheme="light">
170
+ * <ThemeProvider loader={false}>
171
+ * <Toasts>
172
+ * <Stack screenOptions={{ headerShown: false }} />
173
+ * </Toasts>
174
+ * </ThemeProvider>
175
+ * </TamaguiProvider>
176
+ * </SafeAreaProvider>
167
177
  * );
168
178
  * }
169
179
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM3C,wBASkB;AAElB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,GAAG,mCA+Bf,CAAC;AAEF,eAAO,MAAM,WAAW,mCAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAExB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,0BAA0B,mCAA2E,CAAC;AAEnH,eAAO,MAAM,6BAA6B,mCAEzC,CAAC;AAEF,eAAO,MAAM,WAAW,mCAOvB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM3C,wBASkB;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,GAAG,mCA+Bf,CAAC;AAEF,eAAO,MAAM,WAAW,mCAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAExB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,cAAc,mCAE1B,CAAC;AAEF,eAAO,MAAM,0BAA0B,mCAA2E,CAAC;AAEnH,eAAO,MAAM,6BAA6B,mCAEzC,CAAC;AAEF,eAAO,MAAM,WAAW,mCAOvB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC"}
@@ -3,9 +3,9 @@ import { Box } from '../../core/Box';
3
3
  import { Button } from '../Button';
4
4
  import { Toast, ToastView } from './Toast';
5
5
  import { useStyles } from './Toast.styles';
6
- import { defaultDuration } from './ToastBridge';
6
+ import { defaultDuration } from './ToastContext';
7
+ import { useToast } from './Toasts';
7
8
  import { ToastType } from './ToastType';
8
- import { useToast } from './index';
9
9
  export default {
10
10
  title: 'Toast',
11
11
  tags: ['ui'],
@@ -23,18 +23,21 @@ export default {
23
23
  * import { Toasts } from '@alveole/components';
24
24
  * import { ThemeProvider } from '@alveole/theme';
25
25
  * import { Stack } from 'expo-router';
26
+ * import { SafeAreaProvider } from 'react-native-safe-area-context';
26
27
  * import { TamaguiProvider } from 'tamagui';
27
28
  * import { tamaguiConfig } from '../tamagui.config';
28
29
  *
29
30
  * export default function RootLayout() {
30
31
  * return (
31
- * <TamaguiProvider config={tamaguiConfig} defaultTheme="light">
32
- * <ThemeProvider loader={false}>
33
- * <Toasts>
34
- * <Stack screenOptions={{ headerShown: false }} />
35
- * </Toasts>
36
- * </ThemeProvider>
37
- * </TamaguiProvider>
32
+ * <SafeAreaProvider>
33
+ * <TamaguiProvider config={tamaguiConfig} defaultTheme="light">
34
+ * <ThemeProvider loader={false}>
35
+ * <Toasts>
36
+ * <Stack screenOptions={{ headerShown: false }} />
37
+ * </Toasts>
38
+ * </ThemeProvider>
39
+ * </TamaguiProvider>
40
+ * </SafeAreaProvider>
38
41
  * );
39
42
  * }
40
43
  * ```
@@ -52,7 +55,7 @@ export const All = () => {
52
55
  const withoutMessageToast = () => toast.present('Sans message');
53
56
  const withoutMessageToastError = () => toast.present('Sans message', undefined, { variant: 'error' });
54
57
  const withCustomIcon = () => toast.present('Avec icon custom', undefined, { leading: 'Worm' });
55
- return (_jsx(Box, { display: "flex", flexDirection: "column", gap: 8, children: _jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Button, { title: "Default toast", variant: "secondary", onPress: defaultToast }), _jsx(Button, { title: "Success toast", variant: "secondary", onPress: successToast }), _jsx(Button, { title: "Error toast", variant: "secondary", onPress: errorToast }), _jsx(Button, { title: "Info toast", variant: "secondary", onPress: infoToast }), _jsx(Button, { title: "Warning toast", variant: "secondary", onPress: warningToast }), _jsx(Button, { title: "Message long", variant: "secondary", onPress: infoToastMultiLine }), _jsx(Button, { title: "Without message toast", variant: "secondary", onPress: withoutMessageToast }), _jsx(Button, { title: "Without message toast error", variant: "secondary", onPress: withoutMessageToastError }), _jsx(Button, { title: "WithCustomIcon", variant: "secondary", onPress: withCustomIcon })] }) }));
58
+ return (_jsx(Box, { display: "flex", flexDirection: "column", gap: "1W", children: _jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Button, { title: "Default toast", variant: "secondary", onPress: defaultToast }), _jsx(Button, { title: "Success toast", variant: "secondary", onPress: successToast }), _jsx(Button, { title: "Error toast", variant: "secondary", onPress: errorToast }), _jsx(Button, { title: "Info toast", variant: "secondary", onPress: infoToast }), _jsx(Button, { title: "Warning toast", variant: "secondary", onPress: warningToast }), _jsx(Button, { title: "Message long", variant: "secondary", onPress: infoToastMultiLine }), _jsx(Button, { title: "Without message toast", variant: "secondary", onPress: withoutMessageToast }), _jsx(Button, { title: "Without message toast error", variant: "secondary", onPress: withoutMessageToastError }), _jsx(Button, { title: "WithCustomIcon", variant: "secondary", onPress: withCustomIcon })] }) }));
56
59
  };
57
60
  export const PreviewInfo = () => (_jsx(ToastView, { variant: "info", title: "Information", message: "Description additionnelle du toast." }));
58
61
  export const PreviewSuccess = () => (_jsx(ToastView, { variant: "success", title: "Succ\u00E8s", message: "Description additionnelle du toast." }));
@@ -61,5 +64,5 @@ export const PreviewDefault = () => (_jsx(ToastView, { variant: "default", title
61
64
  export const PreviewWarning = () => (_jsx(ToastView, { variant: "warning", title: "Attention", message: "Description additionnelle du toast." }));
62
65
  export const PreviewInfoSansDescription = () => _jsx(ToastView, { variant: "info", title: "Message seul sans description" });
63
66
  export const PreviewSuccessSansDescription = () => (_jsx(ToastView, { variant: "success", title: "Message seul sans description" }));
64
- export const ToastsTypes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 8, children: [_jsx(ToastType, { variant: "info" }), _jsx(ToastType, { variant: "success" }), _jsx(ToastType, { variant: "error" }), _jsx(ToastType, { variant: "warning" })] }));
67
+ export const ToastsTypes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", children: [_jsx(ToastType, { variant: "info" }), _jsx(ToastType, { variant: "success" }), _jsx(ToastType, { variant: "error" }), _jsx(ToastType, { variant: "warning" })] }));
65
68
  export * as Sources from './Toast.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,cAAu8D,CAAC;AAEx9D,eAAO,MAAM,WAAW,cAAyJ,CAAC;AAElL,eAAO,MAAM,cAAc,cAA0J,CAAC;AAEtL,eAAO,MAAM,YAAY,cAAsJ,CAAC;AAEhL,eAAO,MAAM,cAAc,cAA2J,CAAC;AAEvL,eAAO,MAAM,cAAc,cAA6J,CAAC;AAEzL,eAAO,MAAM,0BAA0B,cAAkI,CAAC;AAE1K,eAAO,MAAM,6BAA6B,cAAgJ,CAAC;AAE3L,eAAO,MAAM,WAAW,cAA0Q,CAAC;AAEnS,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,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":"Toast.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Toast/Toast.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,cAA48D,CAAC;AAE79D,eAAO,MAAM,WAAW,cAAyJ,CAAC;AAElL,eAAO,MAAM,cAAc,cAA0J,CAAC;AAEtL,eAAO,MAAM,YAAY,cAAsJ,CAAC;AAEhL,eAAO,MAAM,cAAc,cAA2J,CAAC;AAEvL,eAAO,MAAM,cAAc,cAA6J,CAAC;AAEzL,eAAO,MAAM,0BAA0B,cAAkI,CAAC;AAE1K,eAAO,MAAM,6BAA6B,cAAgJ,CAAC;AAE3L,eAAO,MAAM,WAAW,cAA6Q,CAAC;AAEtS,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,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/ui/Toast/Toast.stories.tsx
3
- export const All = () => "export const All = () => {\n const toast = useToast();\n\n const defaultToast = () => toast.present('Default', 'Message');\n const successToast = () => toast.present('Success', 'Message', { variant: 'success' });\n const errorToast = () => toast.present('Error', 'Message beaucoup plus long', { variant: 'error' });\n const infoToast = () => toast.present('Information', 'Message', { variant: 'info' });\n const infoToastMultiLine = () =>\n toast.present('Information', 'Message beaucoup plus long avec retour à la ligne.\\nDeuxième ligne', {\n variant: 'info',\n });\n const warningToast = () => toast.present('Attention', 'Message', { variant: 'warning' });\n const withoutMessageToast = () => toast.present('Sans message');\n const withoutMessageToastError = () => toast.present('Sans message', undefined, { variant: 'error' });\n const withCustomIcon = () => toast.present('Avec icon custom', undefined, { leading: 'Worm' });\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap={8}>\n <Box display=\"flex\" flexDirection=\"row\" gap={24} flexWrap=\"wrap\">\n <Button title=\"Default toast\" variant=\"secondary\" onPress={defaultToast} />\n <Button title=\"Success toast\" variant=\"secondary\" onPress={successToast} />\n <Button title=\"Error toast\" variant=\"secondary\" onPress={errorToast} />\n <Button title=\"Info toast\" variant=\"secondary\" onPress={infoToast} />\n <Button title=\"Warning toast\" variant=\"secondary\" onPress={warningToast} />\n <Button title=\"Message long\" variant=\"secondary\" onPress={infoToastMultiLine} />\n <Button title=\"Without message toast\" variant=\"secondary\" onPress={withoutMessageToast} />\n <Button title=\"Without message toast error\" variant=\"secondary\" onPress={withoutMessageToastError} />\n <Button title=\"WithCustomIcon\" variant=\"secondary\" onPress={withCustomIcon} />\n </Box>\n </Box>\n );\n};";
3
+ export const All = () => "export const All = () => {\n const toast = useToast();\n\n const defaultToast = () => toast.present('Default', 'Message');\n const successToast = () => toast.present('Success', 'Message', { variant: 'success' });\n const errorToast = () => toast.present('Error', 'Message beaucoup plus long', { variant: 'error' });\n const infoToast = () => toast.present('Information', 'Message', { variant: 'info' });\n const infoToastMultiLine = () =>\n toast.present('Information', 'Message beaucoup plus long avec retour à la ligne.\\nDeuxième ligne', {\n variant: 'info',\n });\n const warningToast = () => toast.present('Attention', 'Message', { variant: 'warning' });\n const withoutMessageToast = () => toast.present('Sans message');\n const withoutMessageToastError = () => toast.present('Sans message', undefined, { variant: 'error' });\n const withCustomIcon = () => toast.present('Avec icon custom', undefined, { leading: 'Worm' });\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"1W\">\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Button title=\"Default toast\" variant=\"secondary\" onPress={defaultToast} />\n <Button title=\"Success toast\" variant=\"secondary\" onPress={successToast} />\n <Button title=\"Error toast\" variant=\"secondary\" onPress={errorToast} />\n <Button title=\"Info toast\" variant=\"secondary\" onPress={infoToast} />\n <Button title=\"Warning toast\" variant=\"secondary\" onPress={warningToast} />\n <Button title=\"Message long\" variant=\"secondary\" onPress={infoToastMultiLine} />\n <Button title=\"Without message toast\" variant=\"secondary\" onPress={withoutMessageToast} />\n <Button title=\"Without message toast error\" variant=\"secondary\" onPress={withoutMessageToastError} />\n <Button title=\"WithCustomIcon\" variant=\"secondary\" onPress={withCustomIcon} />\n </Box>\n </Box>\n );\n};";
4
4
  export const PreviewInfo = () => "export const PreviewInfo = () => (\n <ToastView variant=\"info\" title=\"Information\" message=\"Description additionnelle du toast.\" />\n);";
5
5
  export const PreviewSuccess = () => "export const PreviewSuccess = () => (\n <ToastView variant=\"success\" title=\"Succès\" message=\"Description additionnelle du toast.\" />\n);";
6
6
  export const PreviewError = () => "export const PreviewError = () => (\n <ToastView variant=\"error\" title=\"Erreur\" message=\"Description additionnelle du toast.\" />\n);";
@@ -8,7 +8,7 @@ export const PreviewDefault = () => "export const PreviewDefault = () => (\n <T
8
8
  export const PreviewWarning = () => "export const PreviewWarning = () => (\n <ToastView variant=\"warning\" title=\"Attention\" message=\"Description additionnelle du toast.\" />\n);";
9
9
  export const PreviewInfoSansDescription = () => "export const PreviewInfoSansDescription = () => <ToastView variant=\"info\" title=\"Message seul sans description\" />;";
10
10
  export const PreviewSuccessSansDescription = () => "export const PreviewSuccessSansDescription = () => (\n <ToastView variant=\"success\" title=\"Message seul sans description\" />\n);";
11
- export const ToastsTypes = () => "export const ToastsTypes = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={8}>\n <ToastType variant=\"info\" />\n <ToastType variant=\"success\" />\n <ToastType variant=\"error\" />\n <ToastType variant=\"warning\" />\n </Box>\n);";
11
+ export const ToastsTypes = () => "export const ToastsTypes = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"1W\">\n <ToastType variant=\"info\" />\n <ToastType variant=\"success\" />\n <ToastType variant=\"error\" />\n <ToastType variant=\"warning\" />\n </Box>\n);";
12
12
  export const storySources = {
13
13
  All,
14
14
  PreviewInfo,
@@ -21,5 +21,5 @@ export const storySources = {
21
21
  ToastsTypes,
22
22
  };
23
23
  export const storyDescriptions = {
24
- All: "Le fichier `_layout.tsx` doit inclure la balise `<Toasts>` pour fonctionner.\n\n```tsx\nimport { Toasts } from '@alveole/components';\nimport { ThemeProvider } from '@alveole/theme';\nimport { Stack } from 'expo-router';\nimport { TamaguiProvider } from 'tamagui';\nimport { tamaguiConfig } from '../tamagui.config';\n\nexport default function RootLayout() {\n return (\n <TamaguiProvider config={tamaguiConfig} defaultTheme=\"light\">\n <ThemeProvider loader={false}>\n <Toasts>\n <Stack screenOptions={{ headerShown: false }} />\n </Toasts>\n </ThemeProvider>\n </TamaguiProvider>\n );\n}\n```",
24
+ All: "Le fichier `_layout.tsx` doit inclure la balise `<Toasts>` pour fonctionner.\n\n```tsx\nimport { Toasts } from '@alveole/components';\nimport { ThemeProvider } from '@alveole/theme';\nimport { Stack } from 'expo-router';\nimport { SafeAreaProvider } from 'react-native-safe-area-context';\nimport { TamaguiProvider } from 'tamagui';\nimport { tamaguiConfig } from '../tamagui.config';\n\nexport default function RootLayout() {\n return (\n <SafeAreaProvider>\n <TamaguiProvider config={tamaguiConfig} defaultTheme=\"light\">\n <ThemeProvider loader={false}>\n <Toasts>\n <Stack screenOptions={{ headerShown: false }} />\n </Toasts>\n </ThemeProvider>\n </TamaguiProvider>\n </SafeAreaProvider>\n );\n}\n```",
25
25
  };