@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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TextInputProps } from '../FormControl';
2
+ import { TextInputElement, TextInputProps } from '../FormControl';
3
3
  type MinuteInterval = 1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30;
4
4
  export type DateInputProps = Omit<TextInputProps, 'type' | 'onChange'> & {
5
5
  type?: 'date' | 'datetime' | 'month';
@@ -20,6 +20,6 @@ export declare const DateInput: React.ForwardRefExoticComponent<Omit<TextInputPr
20
20
  onChange?: (date: string) => void;
21
21
  is24Hour?: boolean;
22
22
  minuteInterval?: MinuteInterval;
23
- } & React.RefAttributes<import("react-native").TextInput>>;
23
+ } & React.RefAttributes<TextInputElement>>;
24
24
  export {};
25
25
  //# sourceMappingURL=DateInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/ui/DateInput/DateInput.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,EAA+B,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE7E,KAAK,cAAc,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IACvE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AA+EF,eAAO,MAAM,SAAS;WAvFb,MAAM,GAAG,UAAU,GAAG,OAAO;cAC1B,SAAS,GAAG,SAAS;YACvB,MAAM;kBACA,IAAI;kBACJ,IAAI;eACP,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;eACtB,OAAO;qBACD,cAAc;0DAkI/B,CAAC"}
1
+ {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/ui/DateInput/DateInput.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,EAAa,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE7E,KAAK,cAAc,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IACvE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AA+EF,eAAO,MAAM,SAAS;WAvFb,MAAM,GAAG,UAAU,GAAG,OAAO;cAC1B,SAAS,GAAG,SAAS;YACvB,MAAM;kBACA,IAAI;kBACJ,IAAI;eACP,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;eACtB,OAAO;qBACD,cAAc;0CAkI/B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { TextInputElement } from '../FormControl';
2
3
  export declare const DateInput: React.ForwardRefExoticComponent<Omit<import("..").TextInputProps, "onChange" | "type"> & {
3
4
  type?: "date" | "datetime" | "month";
4
5
  display?: "default" | "spinner";
@@ -8,5 +9,5 @@ export declare const DateInput: React.ForwardRefExoticComponent<Omit<import(".."
8
9
  onChange?: (date: string) => void;
9
10
  is24Hour?: boolean;
10
11
  minuteInterval?: 2 | 1 | 4 | 6 | 12 | 3 | 5 | 10 | 20 | 15 | 30;
11
- } & React.RefAttributes<import("react-native").TextInput>>;
12
+ } & React.RefAttributes<TextInputElement>>;
12
13
  //# sourceMappingURL=DateInput.ios.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.ios.d.ts","sourceRoot":"","sources":["../../../src/ui/DateInput/DateInput.ios.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AA0D3C,eAAO,MAAM,SAAS;;;;;;;;;0DAoDpB,CAAC"}
1
+ {"version":3,"file":"DateInput.ios.d.ts","sourceRoot":"","sources":["../../../src/ui/DateInput/DateInput.ios.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EAA+B,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAuD/E,eAAO,MAAM,SAAS;;;;;;;;;0CAoDpB,CAAC"}
@@ -13,7 +13,7 @@ declare const _default: {
13
13
  onChange?: (date: string) => void;
14
14
  is24Hour?: boolean;
15
15
  minuteInterval?: 2 | 1 | 4 | 6 | 12 | 3 | 5 | 10 | 20 | 15 | 30;
16
- } & React.RefAttributes<import("react-native").TextInput>>;
16
+ } & React.RefAttributes<import("..").TextInputElement>>;
17
17
  styleFn: () => string;
18
18
  };
19
19
  export default _default;
@@ -12,10 +12,10 @@ export default {
12
12
  component: DateInput,
13
13
  styleFn: () => 'Aucun style appliqué',
14
14
  };
15
- export const Default = () => (_jsx(Box, { width: '100%', children: _jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: _jsx(FormControl, { label: "Default", children: _jsx(DateInput, { onChange: console.log }) }) }), _jsxs(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: [_jsx(FormControl, { label: "Error", error: "Une erreur", children: _jsx(DateInput, { onChange: console.log, error: "Une erreur" }) }), _jsx(FormControl, { label: "Succ\u00E8s", success: "Date enregistr\u00E9e", children: _jsx(DateInput, { onChange: console.log, success: "Date enregistr\u00E9e" }) })] }), _jsx(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: _jsx(FormControl, { label: "Disabled", disabled: true, children: _jsx(DateInput, { onChange: console.log, disabled: true }) }) })] }) }));
15
+ export const Default = () => (_jsx(Box, { width: '100%', children: _jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: _jsx(FormControl, { label: "Default", children: _jsx(DateInput, { onChange: console.log }) }) }), _jsxs(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: [_jsx(FormControl, { label: "Error", error: "Une erreur", children: _jsx(DateInput, { onChange: console.log, error: "Une erreur" }) }), _jsx(FormControl, { label: "Succ\u00E8s", success: "Date enregistr\u00E9e", children: _jsx(DateInput, { onChange: console.log, success: "Date enregistr\u00E9e" }) })] }), _jsx(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: _jsx(FormControl, { label: "Disabled", disabled: true, children: _jsx(DateInput, { onChange: console.log, disabled: true }) }) })] }) }));
16
16
  export const Types = () => {
17
17
  const [date, setDate] = React.useState();
18
18
  const [datetime, setDatetime] = React.useState();
19
- return (_jsx(Box, { width: '100%', children: _jsxs(Grid, { gap: 8, children: [_jsx(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: _jsx(FormControl, { label: "Date (default)", children: _jsx(DateInput, { value: date, onChange: e => setDate(e.toString()) }) }) }), _jsx(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: _jsx(FormControl, { label: "Datetime", children: _jsx(DateInput, { value: datetime, type: "datetime", is24Hour: true, onChange: e => setDatetime(e.toString()) }) }) })] }) }));
19
+ return (_jsx(Box, { width: '100%', children: _jsxs(Grid, { gap: "1W", children: [_jsx(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: _jsx(FormControl, { label: "Date (default)", children: _jsx(DateInput, { value: date, onChange: e => setDate(e.toString()) }) }) }), _jsx(Grid.Column, { size: { desktop: 6, mobile: 12 }, children: _jsx(FormControl, { label: "Datetime", children: _jsx(DateInput, { value: datetime, type: "datetime", is24Hour: true, onChange: e => setDatetime(e.toString()) }) }) })] }) }));
20
20
  };
21
21
  export * as Sources from './DateInput.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DateInput/DateInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA+4B,CAAC;AAEp6B,eAAO,MAAM,KAAK,cAA+uB,CAAC;AAElwB,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"DateInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DateInput/DateInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk5B,CAAC;AAEv6B,eAAO,MAAM,KAAK,cAAkvB,CAAC;AAErwB,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/DateInput/DateInput.stories.tsx
3
- export const Default = () => "export const Default = () => (\n <Box width={'100%'}>\n <Grid gap={8}>\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Default\">\n <DateInput onChange={console.log} />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Error\" error=\"Une erreur\">\n <DateInput onChange={console.log} error=\"Une erreur\" />\n </FormControl>\n <FormControl label=\"Succès\" success=\"Date enregistrée\">\n <DateInput onChange={console.log} success=\"Date enregistrée\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Disabled\" disabled>\n <DateInput onChange={console.log} disabled />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
4
- export const Types = () => "export const Types = () => {\n const [date, setDate] = React.useState<string>();\n const [datetime, setDatetime] = React.useState<string>();\n\n return (\n <Box width={'100%'}>\n <Grid gap={8}>\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Date (default)\">\n <DateInput value={date} onChange={e => setDate(e.toString())} />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Datetime\">\n <DateInput value={datetime} type=\"datetime\" is24Hour onChange={e => setDatetime(e.toString())} />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n );\n};";
3
+ export const Default = () => "export const Default = () => (\n <Box width={'100%'}>\n <Grid gap=\"1W\">\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Default\">\n <DateInput onChange={console.log} />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Error\" error=\"Une erreur\">\n <DateInput onChange={console.log} error=\"Une erreur\" />\n </FormControl>\n <FormControl label=\"Succès\" success=\"Date enregistrée\">\n <DateInput onChange={console.log} success=\"Date enregistrée\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Disabled\" disabled>\n <DateInput onChange={console.log} disabled />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
4
+ export const Types = () => "export const Types = () => {\n const [date, setDate] = React.useState<string>();\n const [datetime, setDatetime] = React.useState<string>();\n\n return (\n <Box width={'100%'}>\n <Grid gap=\"1W\">\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Date (default)\">\n <DateInput value={date} onChange={e => setDate(e.toString())} />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ desktop: 6, mobile: 12 }}>\n <FormControl label=\"Datetime\">\n <DateInput value={datetime} type=\"datetime\" is24Hour onChange={e => setDatetime(e.toString())} />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n );\n};";
5
5
  export const storySources = {
6
6
  Default,
7
7
  Types,
@@ -10,7 +10,7 @@ declare const _default: {
10
10
  divider: {
11
11
  width: "100%";
12
12
  height: number;
13
- backgroundColor: string;
13
+ backgroundColor: import("@alveole/theme").ThemeColor;
14
14
  };
15
15
  };
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Divider/Divider.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,wBASkB;AAElB,eAAO,MAAM,OAAO,mCAAmC,CAAC;AAExD,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"Divider.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Divider/Divider.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,wBASkB;AAElB,eAAO,MAAM,OAAO,mCAAoC,CAAC;AAEzD,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC"}
@@ -11,5 +11,5 @@ export default {
11
11
  component: Divider,
12
12
  styleFn: useStyles,
13
13
  };
14
- export const Default = () => _jsx(Divider, { mt: 8, mb: 16 });
14
+ export const Default = () => _jsx(Divider, { mt: "1W", mb: "2W" });
15
15
  export * as Sources from './Divider.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Divider/Divider.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAmE,CAAC;AAExF,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"Divider.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Divider/Divider.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAwE,CAAC;AAE7F,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/Divider/Divider.stories.tsx
3
- export const Default = () => "export const Default = () => <Divider mt={8} mb={16} />;";
3
+ export const Default = () => "export const Default = () => <Divider mt=\"1W\" mb=\"2W\" />;";
4
4
  export const storySources = {
5
5
  Default,
6
6
  };
@@ -2,7 +2,7 @@ export declare const useStyles: () => {
2
2
  divider: {
3
3
  width: "100%";
4
4
  height: number;
5
- backgroundColor: string;
5
+ backgroundColor: import("@alveole/theme").ThemeColor;
6
6
  };
7
7
  };
8
8
  //# sourceMappingURL=Divider.styles.d.ts.map
@@ -44,10 +44,10 @@ declare const _default: {
44
44
  display: "flex";
45
45
  alignItems: "center";
46
46
  justifyContent: "center";
47
- backgroundColor: string;
47
+ backgroundColor: import("@alveole/theme").ThemeColor;
48
48
  };
49
49
  viewerPdfErrorLabel: {
50
- color: string;
50
+ color: import("@alveole/theme").ThemeColor;
51
51
  userSelect: "none";
52
52
  textAlign: "center";
53
53
  fontSize: 14;
@@ -83,13 +83,13 @@ declare const _default: {
83
83
  flexDirection: "column";
84
84
  flex: number;
85
85
  padding: string | number;
86
- borderColor: string;
86
+ borderColor: import("@alveole/theme").ThemeColor;
87
87
  borderWidth: number;
88
88
  borderStyle: "solid";
89
89
  borderTopWidth: number;
90
90
  borderBottomLeftRadius: import("@alveole/theme").Radius;
91
91
  borderBottomRightRadius: import("@alveole/theme").Radius;
92
- backgroundColor: string;
92
+ backgroundColor: import("@alveole/theme").ThemeColor;
93
93
  overflow: "hidden";
94
94
  };
95
95
  children: {
@@ -101,23 +101,23 @@ declare const _default: {
101
101
  minWidth: number;
102
102
  flexShrink: number;
103
103
  position: "relative";
104
- borderColor: string;
104
+ borderColor: import("@alveole/theme").ThemeColor;
105
105
  borderWidth: number;
106
106
  borderStyle: "solid";
107
107
  borderLeft: number;
108
108
  borderTopRightRadius: import("@alveole/theme").Radius;
109
109
  borderBottomRightRadius: import("@alveole/theme").Radius;
110
- backgroundColor: string;
110
+ backgroundColor: import("@alveole/theme").ThemeColor;
111
111
  overflow: "auto";
112
112
  };
113
113
  toolbar: {
114
114
  padding: string | number;
115
- borderColor: string;
115
+ borderColor: import("@alveole/theme").ThemeColor;
116
116
  borderWidth: number;
117
117
  borderStyle: "solid";
118
118
  borderTopLeftRadius: import("@alveole/theme").Radius;
119
119
  borderTopRightRadius: import("@alveole/theme").Radius;
120
- backgroundColor: string;
120
+ backgroundColor: import("@alveole/theme").ThemeColor;
121
121
  display: "flex";
122
122
  flexDirection: "row";
123
123
  gap: string | number;
@@ -130,7 +130,7 @@ declare const _default: {
130
130
  justifyContent: "flex-end";
131
131
  };
132
132
  toolbarTitle: {
133
- color: string;
133
+ color: import("@alveole/theme").ThemeColor;
134
134
  paddingLeft: string | number;
135
135
  marginTop: string;
136
136
  marginBottom: string;
@@ -142,7 +142,7 @@ declare const _default: {
142
142
  fontWeight?: import("react-native").TextStyle["fontWeight"];
143
143
  };
144
144
  toolbarState: {
145
- color: string;
145
+ color: import("@alveole/theme").ThemeColor;
146
146
  userSelect: "none";
147
147
  fontVariant: "tabular-nums";
148
148
  fontSize: 14;
@@ -154,7 +154,7 @@ declare const _default: {
154
154
  toolbarDivider: {
155
155
  width: number;
156
156
  height: "50%";
157
- backgroundColor: string;
157
+ backgroundColor: import("@alveole/theme").ThemeColor;
158
158
  marginTop: string;
159
159
  marginBottom: string;
160
160
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentViewer.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewer.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAQkB;AAElB,eAAO,MAAM,eAAe,mCAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,mCASvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAS5B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAaxB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"DocumentViewer.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewer.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAQkB;AAElB,eAAO,MAAM,eAAe,mCAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,mCAIvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAS5B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAQxB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC"}
@@ -13,7 +13,7 @@ export default {
13
13
  styleFn: useStyles,
14
14
  };
15
15
  export const DocumentImageEx = () => (_jsx(Box, { width: "100%", maxW: 500, height: 500, children: _jsx(DocumentViewer, { title: "Document image", type: "image", source: "https://picsum.photos/1000/2000", height: "100%" }) }));
16
- export const DocumentPdf = () => (_jsx(Box, { width: "100%", height: 400, maxW: 500, children: _jsx(DocumentViewer, { title: "Document PDF", type: "pdf", source: "https://upload.wikimedia.org/wikipedia/commons/4/4e/Wikip%C3%A9dia.pdf", height: "100%" }) }));
16
+ export const DocumentPdf = () => (_jsx(Box, { width: "100%", height: 400, maxW: 500, children: _jsx(DocumentViewer, { title: "Document PDF", type: "pdf", source: "/document-exemple.pdf", height: "100%" }) }));
17
17
  export const DocumentPdfError = () => (_jsx(Box, { width: "100%", height: 400, maxW: 500, children: _jsx(DocumentViewer, { title: "Document PDF en erreur", type: "pdf", source: "https://example.com/document-inexistant.pdf", height: "100%" }) }));
18
- export const WithChildren = () => (_jsx(Box, { width: "100%", height: 600, children: _jsx(DocumentViewer, { title: "Document PDF", type: "pdf", source: "https://upload.wikimedia.org/wikipedia/commons/4/4e/Wikip%C3%A9dia.pdf", height: "100%", children: _jsx(Box, { p: '2W', children: _jsx(Typography, { children: "Contenu enfant" }) }) }) }));
18
+ export const WithChildren = () => (_jsx(Box, { width: "100%", height: 600, children: _jsx(DocumentViewer, { title: "Document PDF", type: "pdf", source: "/document-exemple.pdf", height: "100%", children: _jsx(Box, { p: '2W', children: _jsx(Typography, { children: "Contenu enfant" }) }) }) }));
19
19
  export * as Sources from './DocumentViewer.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentViewer.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewer.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,cAA0O,CAAC;AAEvQ,eAAO,MAAM,WAAW,cAA0S,CAAC;AAEnU,eAAO,MAAM,gBAAgB,cAA8R,CAAC;AAE5T,eAAO,MAAM,YAAY,cAA2Y,CAAC;AAEra,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"DocumentViewer.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewer.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,cAA0O,CAAC;AAEvQ,eAAO,MAAM,WAAW,cAAwN,CAAC;AAEjP,eAAO,MAAM,gBAAgB,cAA8R,CAAC;AAE5T,eAAO,MAAM,YAAY,cAAwT,CAAC;AAElV,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,9 +1,9 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/DocumentViewer/DocumentViewer.stories.tsx
3
3
  export const DocumentImageEx = () => "export const DocumentImageEx = () => (\n <Box width=\"100%\" maxW={500} height={500}>\n <DocumentViewer title=\"Document image\" type=\"image\" source=\"https://picsum.photos/1000/2000\" height=\"100%\" />\n </Box>\n);";
4
- export const DocumentPdf = () => "export const DocumentPdf = () => (\n <Box width=\"100%\" height={400} maxW={500}>\n <DocumentViewer\n title=\"Document PDF\"\n type=\"pdf\"\n source=\"https://upload.wikimedia.org/wikipedia/commons/4/4e/Wikip%C3%A9dia.pdf\"\n height=\"100%\"\n />\n </Box>\n);";
4
+ export const DocumentPdf = () => "export const DocumentPdf = () => (\n <Box width=\"100%\" height={400} maxW={500}>\n <DocumentViewer title=\"Document PDF\" type=\"pdf\" source=\"/document-exemple.pdf\" height=\"100%\" />\n </Box>\n);";
5
5
  export const DocumentPdfError = () => "export const DocumentPdfError = () => (\n <Box width=\"100%\" height={400} maxW={500}>\n <DocumentViewer\n title=\"Document PDF en erreur\"\n type=\"pdf\"\n source=\"https://example.com/document-inexistant.pdf\"\n height=\"100%\"\n />\n </Box>\n);";
6
- export const WithChildren = () => "export const WithChildren = () => (\n <Box width=\"100%\" height={600}>\n <DocumentViewer\n title=\"Document PDF\"\n type=\"pdf\"\n source=\"https://upload.wikimedia.org/wikipedia/commons/4/4e/Wikip%C3%A9dia.pdf\"\n height=\"100%\"\n >\n <Box p={'2W'}>\n <Typography>Contenu enfant</Typography>\n </Box>\n </DocumentViewer>\n </Box>\n);";
6
+ export const WithChildren = () => "export const WithChildren = () => (\n <Box width=\"100%\" height={600}>\n <DocumentViewer title=\"Document PDF\" type=\"pdf\" source=\"/document-exemple.pdf\" height=\"100%\">\n <Box p={'2W'}>\n <Typography>Contenu enfant</Typography>\n </Box>\n </DocumentViewer>\n </Box>\n);";
7
7
  export const storySources = {
8
8
  DocumentImageEx,
9
9
  DocumentPdf,
@@ -37,10 +37,10 @@ export declare const useStyles: () => {
37
37
  display: "flex";
38
38
  alignItems: "center";
39
39
  justifyContent: "center";
40
- backgroundColor: string;
40
+ backgroundColor: import("@alveole/theme").ThemeColor;
41
41
  };
42
42
  viewerPdfErrorLabel: {
43
- color: string;
43
+ color: import("@alveole/theme").ThemeColor;
44
44
  userSelect: "none";
45
45
  textAlign: "center";
46
46
  fontSize: 14;
@@ -76,13 +76,13 @@ export declare const useStyles: () => {
76
76
  flexDirection: "column";
77
77
  flex: number;
78
78
  padding: string | number;
79
- borderColor: string;
79
+ borderColor: import("@alveole/theme").ThemeColor;
80
80
  borderWidth: number;
81
81
  borderStyle: "solid";
82
82
  borderTopWidth: number;
83
83
  borderBottomLeftRadius: import("@alveole/theme").Radius;
84
84
  borderBottomRightRadius: import("@alveole/theme").Radius;
85
- backgroundColor: string;
85
+ backgroundColor: import("@alveole/theme").ThemeColor;
86
86
  overflow: "hidden";
87
87
  };
88
88
  children: {
@@ -94,23 +94,23 @@ export declare const useStyles: () => {
94
94
  minWidth: number;
95
95
  flexShrink: number;
96
96
  position: "relative";
97
- borderColor: string;
97
+ borderColor: import("@alveole/theme").ThemeColor;
98
98
  borderWidth: number;
99
99
  borderStyle: "solid";
100
100
  borderLeft: number;
101
101
  borderTopRightRadius: import("@alveole/theme").Radius;
102
102
  borderBottomRightRadius: import("@alveole/theme").Radius;
103
- backgroundColor: string;
103
+ backgroundColor: import("@alveole/theme").ThemeColor;
104
104
  overflow: "auto";
105
105
  };
106
106
  toolbar: {
107
107
  padding: string | number;
108
- borderColor: string;
108
+ borderColor: import("@alveole/theme").ThemeColor;
109
109
  borderWidth: number;
110
110
  borderStyle: "solid";
111
111
  borderTopLeftRadius: import("@alveole/theme").Radius;
112
112
  borderTopRightRadius: import("@alveole/theme").Radius;
113
- backgroundColor: string;
113
+ backgroundColor: import("@alveole/theme").ThemeColor;
114
114
  display: "flex";
115
115
  flexDirection: "row";
116
116
  gap: string | number;
@@ -123,7 +123,7 @@ export declare const useStyles: () => {
123
123
  justifyContent: "flex-end";
124
124
  };
125
125
  toolbarTitle: {
126
- color: string;
126
+ color: import("@alveole/theme").ThemeColor;
127
127
  paddingLeft: string | number;
128
128
  marginTop: string;
129
129
  marginBottom: string;
@@ -135,7 +135,7 @@ export declare const useStyles: () => {
135
135
  fontWeight?: import("react-native").TextStyle["fontWeight"];
136
136
  };
137
137
  toolbarState: {
138
- color: string;
138
+ color: import("@alveole/theme").ThemeColor;
139
139
  userSelect: "none";
140
140
  fontVariant: "tabular-nums";
141
141
  fontSize: 14;
@@ -147,7 +147,7 @@ export declare const useStyles: () => {
147
147
  toolbarDivider: {
148
148
  width: number;
149
149
  height: "50%";
150
- backgroundColor: string;
150
+ backgroundColor: import("@alveole/theme").ThemeColor;
151
151
  marginTop: string;
152
152
  marginBottom: string;
153
153
  };
@@ -1 +1 @@
1
- {"version":3,"file":"chargementDePdfJs.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/chargementDePdfJs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QACjC,WAAW,EAAE,CAAC,OAAO,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,sBAAsB,CAAA;SAAE,KAAK;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACjH,MAAM,EAAE,CAAC,OAAO,EAAE;YAChB,aAAa,EAAE,wBAAwB,CAAC;YACxC,QAAQ,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,CAAC;YAC5C,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;SAC9D,KAAK;YAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;SAAE,GAAG,IAAI,CAAC;QAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC,CAAC;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,mBAAmB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK;QACjD,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACvC,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,EAAE,UAAU;IAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,WAMxG,CAAC;AAcF,2FAA2F;AAC3F,eAAO,MAAM,aAAa,GAAI,QAAQ,OAAO,KAAG,WAK/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,4BAoBlB,CAAC"}
1
+ {"version":3,"file":"chargementDePdfJs.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/chargementDePdfJs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QACjC,WAAW,EAAE,CAAC,OAAO,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,sBAAsB,CAAA;SAAE,KAAK;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACjH,MAAM,EAAE,CAAC,OAAO,EAAE;YAChB,aAAa,EAAE,wBAAwB,CAAC;YACxC,QAAQ,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,CAAC;YAC5C,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;SAC9D,KAAK;YAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;SAAE,GAAG,IAAI,CAAC;QAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC,CAAC;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,mBAAmB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK;QACjD,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACvC,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,EAAE,UAAU;IAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,WAMxG,CAAC;AAiBF,2FAA2F;AAC3F,eAAO,MAAM,aAAa,GAAI,QAAQ,OAAO,KAAG,WAK/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,4BAoBlB,CAAC"}
@@ -14,7 +14,9 @@ const getPdfJsAssetUrl = (filename) => {
14
14
  return urlDeLAssetPdfJs(filename, { scriptUrl: expoScript?.src ?? null, origin: window.location.origin });
15
15
  };
16
16
  const estUnObjet = (valeur) => typeof valeur === 'object' && valeur !== null;
17
- const estPdfJs = (valeur) => estUnObjet(valeur) && estUnObjet(valeur.GlobalWorkerOptions) && typeof valeur.getDocument === 'function';
17
+ // Dans pdf.js 6 (la version embarquée), `GlobalWorkerOptions` est une classe, plus un objet
18
+ const estDesOptionsDeWorker = (valeur) => estUnObjet(valeur) || typeof valeur === 'function';
19
+ const estPdfJs = (valeur) => estUnObjet(valeur) && estDesOptionsDeWorker(valeur.GlobalWorkerOptions) && typeof valeur.getDocument === 'function';
18
20
  /** pdf.js tel que l'import dynamique le livre : un module que TypeScript n'a jamais vu. */
19
21
  export const pdfJsDuModule = (module) => {
20
22
  if (estUnObjet(module) && estPdfJs(module.default))
@@ -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 DurationInputProps = ChampHHMMProps;
4
5
  export declare const DurationInput: React.ForwardRefExoticComponent<import("..").FormControlCaptionProps & {
@@ -6,5 +7,5 @@ export declare const DurationInput: React.ForwardRefExoticComponent<import("..")
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=DurationInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DurationInput.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAa,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD,eAAO,MAAM,aAAa;;;;;0DAExB,CAAC"}
1
+ {"version":3,"file":"DurationInput.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.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,kBAAkB,GAAG,cAAc,CAAC;AAEhD,eAAO,MAAM,aAAa;;;;;0CAExB,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;
@@ -26,6 +26,6 @@ Le champ est nu : on le place dans un FormControl pour son libellé, son aide et
26
26
  component: DurationInput,
27
27
  styleFn: () => 'Aucun style appliqué',
28
28
  };
29
- 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: "Dur\u00E9e", children: _jsx(DurationInput, {}) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Dur\u00E9e", children: _jsx(DurationInput, { value: "06:15" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Dur\u00E9e", hint: "Temps pass\u00E9 sur le terrain", children: _jsx(DurationInput, { value: "01:30" }) }) })] }) }));
30
- 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 (minutes 00\u201359)", children: _jsx(DurationInput, { value: "25:70", error: "Heure invalide (minutes 00\u201359)" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Succ\u00E8s", success: "Enregistr\u00E9", children: _jsx(DurationInput, { value: "06:15", success: "Enregistr\u00E9" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(DurationInput, { value: "06:15", disabled: true }) }) })] }) }));
29
+ 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: "Dur\u00E9e", children: _jsx(DurationInput, {}) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Dur\u00E9e", children: _jsx(DurationInput, { value: "06:15" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Dur\u00E9e", hint: "Temps pass\u00E9 sur le terrain", children: _jsx(DurationInput, { value: "01:30" }) }) })] }) }));
30
+ 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 (minutes 00\u201359)", children: _jsx(DurationInput, { value: "25:70", error: "Heure invalide (minutes 00\u201359)" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "Succ\u00E8s", success: "Enregistr\u00E9", children: _jsx(DurationInput, { value: "06:15", success: "Enregistr\u00E9" }) }) }), _jsx(Grid.Column, { size: { mobile: 12, desktop: 4 }, children: _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(DurationInput, { value: "06:15", disabled: true }) }) })] }) }));
31
31
  export * as Sources from './DurationInput.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"DurationInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAqrB,CAAC;AAE1sB,eAAO,MAAM,MAAM,cAAwzB,CAAC;AAE50B,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"DurationInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DurationInput/DurationInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA2rB,CAAC;AAEhtB,eAAO,MAAM,MAAM,cAA8zB,CAAC;AAEl1B,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/DurationInput/DurationInput.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=\"Durée\">\n <DurationInput />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Durée\">\n <DurationInput value=\"06:15\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Durée\" hint=\"Temps passé sur le terrain\">\n <DurationInput value=\"01:30\" />\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 (minutes 00–59)\">\n <DurationInput value=\"25:70\" error=\"Heure invalide (minutes 00–59)\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Succès\" success=\"Enregistré\">\n <DurationInput value=\"06:15\" success=\"Enregistré\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Désactivé\" disabled>\n <DurationInput value=\"06:15\" 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=\"Durée\">\n <DurationInput />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Durée\">\n <DurationInput value=\"06:15\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Durée\" hint=\"Temps passé sur le terrain\">\n <DurationInput value=\"01:30\" />\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 (minutes 00–59)\">\n <DurationInput value=\"25:70\" error=\"Heure invalide (minutes 00–59)\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Succès\" success=\"Enregistré\">\n <DurationInput value=\"06:15\" success=\"Enregistré\" />\n </FormControl>\n </Grid.Column>\n <Grid.Column size={{ mobile: 12, desktop: 4 }}>\n <FormControl label=\"Désactivé\" disabled>\n <DurationInput value=\"06:15\" disabled />\n </FormControl>\n </Grid.Column>\n </Grid>\n </Box>\n);";
5
5
  export const storySources = {
6
6
  Default,
7
7
  States,
@@ -32,8 +32,8 @@ declare const _default: {
32
32
  display: "flex";
33
33
  alignItems: "center";
34
34
  justifyContent: "center";
35
- color: string;
36
- backgroundColor: string;
35
+ color: import("@alveole/theme").ThemeColor;
36
+ backgroundColor: import("@alveole/theme").ThemeColor;
37
37
  borderRadius: import("@alveole/theme").Radius;
38
38
  padding: string | number;
39
39
  };
@@ -51,7 +51,7 @@ declare const _default: {
51
51
  letterSpacing: 0;
52
52
  fontFamily: string;
53
53
  fontWeight?: import("react-native").TextStyle["fontWeight"];
54
- color: string;
54
+ color: import("@alveole/theme").ThemeColor;
55
55
  };
56
56
  description: {
57
57
  textAlign: "center";
@@ -60,7 +60,7 @@ declare const _default: {
60
60
  letterSpacing: 0;
61
61
  fontFamily: string;
62
62
  fontWeight?: import("react-native").TextStyle["fontWeight"];
63
- color: string;
63
+ color: import("@alveole/theme").ThemeColor;
64
64
  };
65
65
  footer: {
66
66
  width: "100%" | undefined;
@@ -25,8 +25,8 @@ export declare const useStyles: () => {
25
25
  display: "flex";
26
26
  alignItems: "center";
27
27
  justifyContent: "center";
28
- color: string;
29
- backgroundColor: string;
28
+ color: import("@alveole/theme").ThemeColor;
29
+ backgroundColor: import("@alveole/theme").ThemeColor;
30
30
  borderRadius: import("@alveole/theme").Radius;
31
31
  padding: string | number;
32
32
  };
@@ -44,7 +44,7 @@ export declare const useStyles: () => {
44
44
  letterSpacing: 0;
45
45
  fontFamily: string;
46
46
  fontWeight?: import("react-native").TextStyle["fontWeight"];
47
- color: string;
47
+ color: import("@alveole/theme").ThemeColor;
48
48
  };
49
49
  description: {
50
50
  textAlign: "center";
@@ -53,7 +53,7 @@ export declare const useStyles: () => {
53
53
  letterSpacing: 0;
54
54
  fontFamily: string;
55
55
  fontWeight?: import("react-native").TextStyle["fontWeight"];
56
- color: string;
56
+ color: import("@alveole/theme").ThemeColor;
57
57
  };
58
58
  footer: {
59
59
  width: "100%" | undefined;
@@ -17,15 +17,15 @@ declare const _default: {
17
17
  left: number;
18
18
  borderWidth: number;
19
19
  borderStyle: "dashed";
20
- borderColor: string;
20
+ borderColor: import("@alveole/theme").ThemeColor;
21
21
  borderRadius: import("@alveole/theme").Radius;
22
- backgroundColor: string;
22
+ backgroundColor: import("@alveole/theme").ThemeColor;
23
23
  alignItems: "center";
24
24
  justifyContent: "center";
25
25
  pointerEvents: "none";
26
26
  };
27
27
  pastille: {
28
- backgroundColor: string;
28
+ backgroundColor: import("@alveole/theme").ThemeColor;
29
29
  borderRadius: import("@alveole/theme").Radius;
30
30
  paddingLeft: string | number;
31
31
  paddingRight: string | number;
@@ -33,7 +33,7 @@ declare const _default: {
33
33
  paddingBottom: string | number;
34
34
  };
35
35
  message: {
36
- color: string;
36
+ color: import("@alveole/theme").ThemeColor;
37
37
  fontSize: 16;
38
38
  lineHeight: 24;
39
39
  letterSpacing: 0;
@@ -16,14 +16,14 @@ export default {
16
16
  export const Formulaire = () => {
17
17
  const [titre, setTitre] = useState('');
18
18
  const [fichiers, setFichiers] = useState(null);
19
- return (_jsx(FileDropZone, { value: fichiers, onChange: setFichiers, multiple: true, children: _jsxs(Box, { display: "flex", flexDirection: "column", gap: 16, p: 16, children: [_jsx(FormControl, { label: "Titre", children: _jsx(TextInput, { value: titre, onChangeText: setTitre }) }), _jsx(FormControl, { label: "Pi\u00E8ces jointes", hint: "Glissez des fichiers n'importe o\u00F9 sur le formulaire.", children: _jsx(FileInput, { value: fichiers, onChange: setFichiers, multiple: true }) })] }) }));
19
+ return (_jsx(FileDropZone, { value: fichiers, onChange: setFichiers, multiple: true, children: _jsxs(Box, { display: "flex", flexDirection: "column", gap: "2W", p: "2W", children: [_jsx(FormControl, { label: "Titre", children: _jsx(TextInput, { value: titre, onChangeText: setTitre }) }), _jsx(FormControl, { label: "Pi\u00E8ces jointes", hint: "Glissez des fichiers n'importe o\u00F9 sur le formulaire.", children: _jsx(FileInput, { value: fichiers, onChange: setFichiers, multiple: true }) })] }) }));
20
20
  };
21
21
  export const Desactivee = () => {
22
22
  const [fichiers, setFichiers] = useState(null);
23
- return (_jsx(FileDropZone, { value: fichiers, onChange: setFichiers, multiple: true, disabled: true, children: _jsx(Box, { p: 16, children: _jsx(FormControl, { label: "Pi\u00E8ces jointes", disabled: true, children: _jsx(FileInput, { value: fichiers, onChange: setFichiers, multiple: true, disabled: true }) }) }) }));
23
+ return (_jsx(FileDropZone, { value: fichiers, onChange: setFichiers, multiple: true, disabled: true, children: _jsx(Box, { p: "2W", children: _jsx(FormControl, { label: "Pi\u00E8ces jointes", disabled: true, children: _jsx(FileInput, { value: fichiers, onChange: setFichiers, multiple: true, disabled: true }) }) }) }));
24
24
  };
25
25
  export const MessagePersonnalise = () => {
26
26
  const [photo, setPhoto] = useState(null);
27
- return (_jsx(FileDropZone, { value: photo, onChange: setPhoto, type: "image/*", message: "L\u00E2chez la photo pour l'ajouter", children: _jsx(Box, { p: 16, children: _jsx(FormControl, { label: "Photo", children: _jsx(FileInput, { value: photo, onChange: setPhoto, type: "image/*" }) }) }) }));
27
+ return (_jsx(FileDropZone, { value: photo, onChange: setPhoto, type: "image/*", message: "L\u00E2chez la photo pour l'ajouter", children: _jsx(Box, { p: "2W", children: _jsx(FormControl, { label: "Photo", children: _jsx(FileInput, { value: photo, onChange: setPhoto, type: "image/*" }) }) }) }));
28
28
  };
29
29
  export * as Sources from './FileDropZone.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"FileDropZone.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FileDropZone/FileDropZone.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,cAA6qB,CAAC;AAErsB,eAAO,MAAM,UAAU,cAA8a,CAAC;AAEtc,eAAO,MAAM,mBAAmB,cAA4b,CAAC;AAE7d,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"FileDropZone.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FileDropZone/FileDropZone.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,cAAirB,CAAC;AAEzsB,eAAO,MAAM,UAAU,cAAgb,CAAC;AAExc,eAAO,MAAM,mBAAmB,cAA8b,CAAC;AAE/d,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,8 +1,8 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/FileDropZone/FileDropZone.stories.tsx
3
- export const Formulaire = () => "export const Formulaire = () => {\n const [titre, setTitre] = useState('');\n const [fichiers, setFichiers] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={fichiers} onChange={setFichiers} multiple>\n <Box display=\"flex\" flexDirection=\"column\" gap={16} p={16}>\n <FormControl label=\"Titre\">\n <TextInput value={titre} onChangeText={setTitre} />\n </FormControl>\n <FormControl label=\"Pièces jointes\" hint=\"Glissez des fichiers n'importe où sur le formulaire.\">\n <FileInput value={fichiers} onChange={setFichiers} multiple />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
4
- export const Desactivee = () => "export const Desactivee = () => {\n const [fichiers, setFichiers] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={fichiers} onChange={setFichiers} multiple disabled>\n <Box p={16}>\n <FormControl label=\"Pièces jointes\" disabled>\n <FileInput value={fichiers} onChange={setFichiers} multiple disabled />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
5
- export const MessagePersonnalise = () => "export const MessagePersonnalise = () => {\n const [photo, setPhoto] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={photo} onChange={setPhoto} type=\"image/*\" message=\"Lâchez la photo pour l'ajouter\">\n <Box p={16}>\n <FormControl label=\"Photo\">\n <FileInput value={photo} onChange={setPhoto} type=\"image/*\" />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
3
+ export const Formulaire = () => "export const Formulaire = () => {\n const [titre, setTitre] = useState('');\n const [fichiers, setFichiers] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={fichiers} onChange={setFichiers} multiple>\n <Box display=\"flex\" flexDirection=\"column\" gap=\"2W\" p=\"2W\">\n <FormControl label=\"Titre\">\n <TextInput value={titre} onChangeText={setTitre} />\n </FormControl>\n <FormControl label=\"Pièces jointes\" hint=\"Glissez des fichiers n'importe où sur le formulaire.\">\n <FileInput value={fichiers} onChange={setFichiers} multiple />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
4
+ export const Desactivee = () => "export const Desactivee = () => {\n const [fichiers, setFichiers] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={fichiers} onChange={setFichiers} multiple disabled>\n <Box p=\"2W\">\n <FormControl label=\"Pièces jointes\" disabled>\n <FileInput value={fichiers} onChange={setFichiers} multiple disabled />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
5
+ export const MessagePersonnalise = () => "export const MessagePersonnalise = () => {\n const [photo, setPhoto] = useState<FileInputValue>(null);\n return (\n <FileDropZone value={photo} onChange={setPhoto} type=\"image/*\" message=\"Lâchez la photo pour l'ajouter\">\n <Box p=\"2W\">\n <FormControl label=\"Photo\">\n <FileInput value={photo} onChange={setPhoto} type=\"image/*\" />\n </FormControl>\n </Box>\n </FileDropZone>\n );\n};";
6
6
  export const storySources = {
7
7
  Formulaire,
8
8
  Desactivee,
@@ -10,15 +10,15 @@ export declare const useStyles: () => {
10
10
  left: number;
11
11
  borderWidth: number;
12
12
  borderStyle: "dashed";
13
- borderColor: string;
13
+ borderColor: import("@alveole/theme").ThemeColor;
14
14
  borderRadius: import("@alveole/theme").Radius;
15
- backgroundColor: string;
15
+ backgroundColor: import("@alveole/theme").ThemeColor;
16
16
  alignItems: "center";
17
17
  justifyContent: "center";
18
18
  pointerEvents: "none";
19
19
  };
20
20
  pastille: {
21
- backgroundColor: string;
21
+ backgroundColor: import("@alveole/theme").ThemeColor;
22
22
  borderRadius: import("@alveole/theme").Radius;
23
23
  paddingLeft: string | number;
24
24
  paddingRight: string | number;
@@ -26,7 +26,7 @@ export declare const useStyles: () => {
26
26
  paddingBottom: string | number;
27
27
  };
28
28
  message: {
29
- color: string;
29
+ color: import("@alveole/theme").ThemeColor;
30
30
  fontSize: 16;
31
31
  lineHeight: 24;
32
32
  letterSpacing: 0;