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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BF,eAAO,MAAM,MAAM;SAlCZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;wCA8FnB,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BF,eAAO,MAAM,MAAM;SAlCZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;wCA6FnB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { focusRingProps, useTheme } from '@alveole/theme';
2
+ import { focusRingProps } from '@alveole/theme';
3
3
  import React, { useId } from 'react';
4
4
  import { Platform, Pressable } from 'react-native';
5
5
  import { Switch as TamaguiSwitch } from 'tamagui';
@@ -23,7 +23,6 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
23
23
  const isControlled = checked !== undefined;
24
24
  const [model, setModel] = React.useState(Boolean(checked));
25
25
  const value = isControlled ? checked : model;
26
- const { spacingValue } = useTheme();
27
26
  const styles = useStyles();
28
27
  const uniqId = useId();
29
28
  id = id || `switch--${uniqId}`;
@@ -35,5 +34,5 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
35
34
  const { bouton, pouce, libelle } = apparenceDuSwitch(styles, { value, disabled, noPadding, style });
36
35
  const Toggle = (_jsx(TamaguiSwitch, { id: id, ref: ref, borderWidth: 1, ...DIMENSIONS_DE_LA_PISTE, checked: value, onCheckedChange: onChange, style: bouton, disabled: disabled, accessibilityLabel: label, accessibilityRole: "switch", accessibilityState: { checked: Boolean(value), disabled: Boolean(disabled) }, ...focusRingProps(), ...switchProps, children: _jsx(TamaguiSwitch.Thumb, { ...animer('quicker'), width: POUCE, height: POUCE, style: pouce }) }));
37
36
  const ToggleWithLabel = (_jsxs(_Fragment, { children: [_jsx(SwitchLabel, { id: id, checked: value, disabled: disabled, onChange: onChange, children: _jsxs(Box, { tag: "switch", style: styles.switch, children: [Toggle, !!label && (_jsx(Typography, { htmlFor: id, style: libelle, children: label }))] }) }), (error ?? success) && _jsx(FormControlCaption, { error: error, success: success })] }));
38
- return (_jsx(Box, { tag: "switch", gap: error || success ? spacingValue('050') : 0, style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
37
+ return (_jsx(Box, { tag: "switch", gap: error || success ? '1W' : '0V', style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
39
38
  });
@@ -20,8 +20,8 @@ declare const _default: {
20
20
  paddingRight: string | number;
21
21
  };
22
22
  switchButton: {
23
- borderColor: string;
24
- backgroundColor: string;
23
+ borderColor: import("@alveole/theme").ThemeColor;
24
+ backgroundColor: import("@alveole/theme").ThemeColor;
25
25
  cursor: "pointer";
26
26
  padding: number;
27
27
  minHeight: string | number;
@@ -29,29 +29,29 @@ declare const _default: {
29
29
  marginBottom: string;
30
30
  };
31
31
  switchButtonChecked: {
32
- backgroundColor: string;
32
+ backgroundColor: import("@alveole/theme").ThemeColor;
33
33
  };
34
34
  switchButtonDisabled: {
35
35
  opacity: 1;
36
- backgroundColor: string;
36
+ backgroundColor: import("@alveole/theme").ThemeColor;
37
37
  cursor: "not-allowed";
38
38
  };
39
39
  switchThumb: {
40
40
  borderWidth: number;
41
- borderColor: string;
42
- backgroundColor: string;
41
+ borderColor: import("@alveole/theme").ThemeColor;
42
+ backgroundColor: import("@alveole/theme").ThemeColor;
43
43
  boxShadow: "none";
44
44
  };
45
45
  switchThumbChecked: {
46
- backgroundColor: string;
46
+ backgroundColor: import("@alveole/theme").ThemeColor;
47
47
  };
48
48
  switchThumbDisabled: {
49
- backgroundColor: string;
49
+ backgroundColor: import("@alveole/theme").ThemeColor;
50
50
  cursor: "not-allowed";
51
51
  borderColor: "#FFFFFF";
52
52
  };
53
53
  switchLabel: {
54
- color: string;
54
+ color: import("@alveole/theme").ThemeColor;
55
55
  fontSize: 14;
56
56
  lineHeight: 20;
57
57
  letterSpacing: 0;
@@ -11,7 +11,7 @@ export default {
11
11
  component: Switch,
12
12
  styleFn: useStyles,
13
13
  };
14
- export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(Switch, { label: "Non activ\u00E9" }), _jsx(Switch, { label: "Activ\u00E9", checked: true }), _jsx(Switch, { label: "D\u00E9sactiv\u00E9", disabled: true }), _jsx(Switch, { label: "Activ\u00E9 d\u00E9sactiv\u00E9", checked: true, disabled: true })] }));
14
+ export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(Switch, { label: "Non activ\u00E9" }), _jsx(Switch, { label: "Activ\u00E9", checked: true }), _jsx(Switch, { label: "D\u00E9sactiv\u00E9", disabled: true }), _jsx(Switch, { label: "Activ\u00E9 d\u00E9sactiv\u00E9", checked: true, disabled: true })] }));
15
15
  export const Controlled = () => {
16
16
  const [value, setValue] = useState(false);
17
17
  return _jsx(Switch, { label: value ? 'Activé' : 'Désactivé', checked: value, onCheckedChange: v => setValue(!!v) });
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA0S,CAAC;AAE/T,eAAO,MAAM,UAAU,cAAgN,CAAC;AAExO,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"Switch.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA4S,CAAC;AAEjU,eAAO,MAAM,UAAU,cAAgN,CAAC;AAExO,eAAO,MAAM,YAAY;;;CAGf,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/Switch/Switch.stories.tsx
3
- export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <Switch label=\"Non activé\" />\n <Switch label=\"Activé\" checked />\n <Switch label=\"Désactivé\" disabled />\n <Switch label=\"Activé désactivé\" checked disabled />\n </Box>\n);";
3
+ export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <Switch label=\"Non activé\" />\n <Switch label=\"Activé\" checked />\n <Switch label=\"Désactivé\" disabled />\n <Switch label=\"Activé désactivé\" checked disabled />\n </Box>\n);";
4
4
  export const Controlled = () => "export const Controlled = () => {\n const [value, setValue] = useState(false);\n return <Switch label={value ? 'Activé' : 'Désactivé'} checked={value} onCheckedChange={v => setValue(!!v)} />;\n};";
5
5
  export const storySources = {
6
6
  Default,
@@ -7,8 +7,8 @@ export declare const useStyles: () => {
7
7
  paddingRight: string | number;
8
8
  };
9
9
  switchButton: {
10
- borderColor: string;
11
- backgroundColor: string;
10
+ borderColor: import("@alveole/theme").ThemeColor;
11
+ backgroundColor: import("@alveole/theme").ThemeColor;
12
12
  cursor: "pointer";
13
13
  padding: number;
14
14
  minHeight: string | number;
@@ -16,29 +16,29 @@ export declare const useStyles: () => {
16
16
  marginBottom: string;
17
17
  };
18
18
  switchButtonChecked: {
19
- backgroundColor: string;
19
+ backgroundColor: import("@alveole/theme").ThemeColor;
20
20
  };
21
21
  switchButtonDisabled: {
22
22
  opacity: 1;
23
- backgroundColor: string;
23
+ backgroundColor: import("@alveole/theme").ThemeColor;
24
24
  cursor: "not-allowed";
25
25
  };
26
26
  switchThumb: {
27
27
  borderWidth: number;
28
- borderColor: string;
29
- backgroundColor: string;
28
+ borderColor: import("@alveole/theme").ThemeColor;
29
+ backgroundColor: import("@alveole/theme").ThemeColor;
30
30
  boxShadow: "none";
31
31
  };
32
32
  switchThumbChecked: {
33
- backgroundColor: string;
33
+ backgroundColor: import("@alveole/theme").ThemeColor;
34
34
  };
35
35
  switchThumbDisabled: {
36
- backgroundColor: string;
36
+ backgroundColor: import("@alveole/theme").ThemeColor;
37
37
  cursor: "not-allowed";
38
38
  borderColor: "#FFFFFF";
39
39
  };
40
40
  switchLabel: {
41
- color: string;
41
+ color: import("@alveole/theme").ThemeColor;
42
42
  fontSize: 14;
43
43
  lineHeight: 20;
44
44
  letterSpacing: 0;
@@ -8,10 +8,10 @@ declare const _default: {
8
8
  component: (props: import("./Tabs").TabsProps) => React.JSX.Element;
9
9
  styleFn: () => {
10
10
  tabIcon: {
11
- color: string;
11
+ color: import("@alveole/theme").ThemeColor;
12
12
  };
13
13
  tabIconHover: {
14
- color: string;
14
+ color: import("@alveole/theme").ThemeColor;
15
15
  };
16
16
  tabsLabel: {
17
17
  fontSize: 14;
@@ -47,7 +47,7 @@ declare const _default: {
47
47
  cursor: "pointer";
48
48
  };
49
49
  tabsTabActive: {
50
- borderBottomColor: string;
50
+ borderBottomColor: import("@alveole/theme").ThemeColor;
51
51
  borderBottomWidth: number;
52
52
  };
53
53
  wrapper: {
@@ -68,7 +68,7 @@ declare const _default: {
68
68
  display: "flex";
69
69
  flexDirection: "row";
70
70
  alignItems: "center";
71
- backgroundColor: string;
71
+ backgroundColor: import("@alveole/theme").ThemeColor;
72
72
  };
73
73
  container: {
74
74
  flex: number;
@@ -97,7 +97,7 @@ declare const _default: {
97
97
  borderBottomRightRadius: string | number;
98
98
  gap: string | number;
99
99
  boxSizing: "border-box";
100
- borderColor: string;
100
+ borderColor: import("@alveole/theme").ThemeColor;
101
101
  borderBottomWidth: number;
102
102
  backgroundColor: "transparent";
103
103
  overflowX: "scroll";
@@ -122,5 +122,6 @@ declare const _default: {
122
122
  export default _default;
123
123
  export declare const Example: () => React.JSX.Element;
124
124
  export declare const Controle: () => React.JSX.Element;
125
+ export declare const OngletUnique: () => React.JSX.Element;
125
126
  export * as Sources from './Tabs.stories.sources';
126
127
  //# sourceMappingURL=Tabs.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAuBnB,CAAC;AAIF,eAAO,MAAM,QAAQ,yBAiBpB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAuBnB,CAAC;AAIF,eAAO,MAAM,QAAQ,yBAiBpB,CAAC;AAGF,eAAO,MAAM,YAAY,yBAKxB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
@@ -37,6 +37,8 @@ export const Controle = () => {
37
37
  { label: 'Onglet 3', value: 'onglet-3', content: _jsx(Typography, { children: "Contenu de onglet 3" }) },
38
38
  ];
39
39
  const [ongletActif, setOngletActif] = React.useState('onglet-1');
40
- return (_jsxs(Box, { width: '100%', gap: 16, children: [_jsxs(Box, { flexDirection: "row", gap: 8, children: [_jsx(Button, { title: "Aller \u00E0 l\u2019onglet 1", variant: "secondary", onPress: () => setOngletActif('onglet-1') }), _jsx(Button, { title: "Aller \u00E0 l\u2019onglet 3", variant: "secondary", onPress: () => setOngletActif('onglet-3') })] }), _jsx(Tabs, { value: ongletActif, onChange: index => setOngletActif(onglets[index].value), tabs: onglets })] }));
40
+ return (_jsxs(Box, { width: '100%', gap: "2W", children: [_jsxs(Box, { flexDirection: "row", gap: "1W", children: [_jsx(Button, { title: "Aller \u00E0 l\u2019onglet 1", variant: "secondary", onPress: () => setOngletActif('onglet-1') }), _jsx(Button, { title: "Aller \u00E0 l\u2019onglet 3", variant: "secondary", onPress: () => setOngletActif('onglet-3') })] }), _jsx(Tabs, { value: ongletActif, onChange: index => setOngletActif(onglets[index].value), tabs: onglets })] }));
41
41
  };
42
+ // Un onglet seul est desactive : il garde pourtant sa pleine opacite.
43
+ export const OngletUnique = () => (_jsx(Tabs, { defaultValue: "seul", tabs: [{ label: 'Onglet seul', value: 'seul', content: _jsx(Typography, { children: "Contenu de l onglet seul" }) }] }));
42
44
  export * as Sources from './Tabs.stories.sources';
@@ -1,8 +1,10 @@
1
1
  export declare const Example: () => string;
2
2
  export declare const Controle: () => string;
3
+ export declare const OngletUnique: () => string;
3
4
  export declare const storySources: {
4
5
  readonly Example: () => string;
5
6
  readonly Controle: () => string;
7
+ readonly OngletUnique: () => string;
6
8
  };
7
9
  export type StorySourceName = keyof typeof storySources;
8
10
  //# sourceMappingURL=Tabs.stories.sources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk1B,CAAC;AAEv2B,eAAO,MAAM,QAAQ,cAA44B,CAAC;AAEl6B,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"Tabs.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk1B,CAAC;AAEv2B,eAAO,MAAM,QAAQ,cAAi5B,CAAC;AAEv6B,eAAO,MAAM,YAAY,cAA8M,CAAC;AAExO,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,8 +1,10 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/Tabs/Tabs.stories.tsx
3
3
  export const Example = () => "export const Example = () => {\n const [_activeTab, setActiveTab] = React.useState(0);\n\n return (\n <Box width={'100%'}>\n <Tabs\n defaultValue={'onglet-1'}\n onChange={setActiveTab}\n urlAnchorPrefix=\"tabs-story\"\n tabs={[\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', counter: 12, value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n {\n label: 'Onglet 4',\n leading: 'Settings',\n value: 'onglet-4',\n content: <Typography>Contenu de onglet 4</Typography>,\n },\n ]}\n />\n </Box>\n );\n};";
4
- export const Controle = () => "export const Controle = () => {\n const onglets = [\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n ];\n const [ongletActif, setOngletActif] = React.useState('onglet-1');\n\n return (\n <Box width={'100%'} gap={16}>\n <Box flexDirection=\"row\" gap={8}>\n <Button title=\"Aller à l’onglet 1\" variant=\"secondary\" onPress={() => setOngletActif('onglet-1')} />\n <Button title=\"Aller à l’onglet 3\" variant=\"secondary\" onPress={() => setOngletActif('onglet-3')} />\n </Box>\n <Tabs value={ongletActif} onChange={index => setOngletActif(onglets[index].value)} tabs={onglets} />\n </Box>\n );\n};";
4
+ export const Controle = () => "export const Controle = () => {\n const onglets = [\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n ];\n const [ongletActif, setOngletActif] = React.useState('onglet-1');\n\n return (\n <Box width={'100%'} gap=\"2W\">\n <Box flexDirection=\"row\" gap=\"1W\">\n <Button title=\"Aller à l’onglet 1\" variant=\"secondary\" onPress={() => setOngletActif('onglet-1')} />\n <Button title=\"Aller à l’onglet 3\" variant=\"secondary\" onPress={() => setOngletActif('onglet-3')} />\n </Box>\n <Tabs value={ongletActif} onChange={index => setOngletActif(onglets[index].value)} tabs={onglets} />\n </Box>\n );\n};";
5
+ export const OngletUnique = () => "export const OngletUnique = () => (\n <Tabs\n defaultValue=\"seul\"\n tabs={[{ label: 'Onglet seul', value: 'seul', content: <Typography>Contenu de l onglet seul</Typography> }]}\n />\n);";
5
6
  export const storySources = {
6
7
  Example,
7
8
  Controle,
9
+ OngletUnique,
8
10
  };
@@ -1,9 +1,9 @@
1
1
  export declare const useStyles: () => {
2
2
  tabIcon: {
3
- color: string;
3
+ color: import("@alveole/theme").ThemeColor;
4
4
  };
5
5
  tabIconHover: {
6
- color: string;
6
+ color: import("@alveole/theme").ThemeColor;
7
7
  };
8
8
  tabsLabel: {
9
9
  fontSize: 14;
@@ -39,7 +39,7 @@ export declare const useStyles: () => {
39
39
  cursor: "pointer";
40
40
  };
41
41
  tabsTabActive: {
42
- borderBottomColor: string;
42
+ borderBottomColor: import("@alveole/theme").ThemeColor;
43
43
  borderBottomWidth: number;
44
44
  };
45
45
  wrapper: {
@@ -60,7 +60,7 @@ export declare const useStyles: () => {
60
60
  display: "flex";
61
61
  flexDirection: "row";
62
62
  alignItems: "center";
63
- backgroundColor: string;
63
+ backgroundColor: import("@alveole/theme").ThemeColor;
64
64
  };
65
65
  container: {
66
66
  flex: number;
@@ -89,7 +89,7 @@ export declare const useStyles: () => {
89
89
  borderBottomRightRadius: string | number;
90
90
  gap: string | number;
91
91
  boxSizing: "border-box";
92
- borderColor: string;
92
+ borderColor: import("@alveole/theme").ThemeColor;
93
93
  borderBottomWidth: number;
94
94
  backgroundColor: "transparent";
95
95
  overflowX: "scroll";
@@ -22,20 +22,20 @@ declare const _default: {
22
22
  alignItems: "center";
23
23
  borderRadius: import("@alveole/theme").Radius;
24
24
  borderWidth: number;
25
- borderColor: string;
26
- color: string;
27
- backgroundColor: string;
25
+ borderColor: import("@alveole/theme").ThemeColor;
26
+ color: import("@alveole/theme").ThemeColor;
27
+ backgroundColor: import("@alveole/theme").ThemeColor;
28
28
  whiteSpace: "nowrap";
29
29
  overflow: "hidden";
30
30
  textOverflow: "ellipsis";
31
31
  maxWidth: string;
32
32
  };
33
33
  tagSurvole: {
34
- color: string;
34
+ color: import("@alveole/theme").ThemeColor;
35
35
  };
36
36
  tagSelected: {
37
- borderColor: string;
38
- color: string;
37
+ borderColor: import("@alveole/theme").ThemeColor;
38
+ color: import("@alveole/theme").ThemeColor;
39
39
  };
40
40
  tagSm: {
41
41
  fontSize: 12;
@@ -64,7 +64,7 @@ declare const _default: {
64
64
  marginRight: number;
65
65
  };
66
66
  croixSurvolee: {
67
- backgroundColor: string;
67
+ backgroundColor: import("@alveole/theme").ThemeColor;
68
68
  };
69
69
  croixSm: {
70
70
  marginLeft: number;
@@ -11,9 +11,9 @@ export default {
11
11
  component: Tag,
12
12
  styleFn: useStyles,
13
13
  };
14
- export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", children: "Tag sm" }), _jsx(Tag, { size: "md", children: "Tag md" })] }));
15
- export const Selection = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: 16, children: ['sm', 'md'].map(size => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Tag, { size: size, children: "Descriptive, inerte" }), _jsx(Tag, { size: size, interactive: true, children: "Au repos, dans un groupe" }), _jsx(Tag, { size: size, interactive: true, selected: true, children: "S\u00E9lectionn\u00E9" }), _jsx(Tag, { size: size, selected: true, closable: true, onClose: () => { }, children: "S\u00E9lectionn\u00E9 et fermable" })] }, size))) }));
16
- export const Fermable = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", closable: true, onClose: () => { }, children: "Fermable sm" }), _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Fermable md" }), _jsx(Tag, { size: "md", closable: true, selected: true, onClose: () => { }, children: "Fermable et s\u00E9lectionn\u00E9" })] }));
17
- export const AvecIcone = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", leading: "Check", children: "Valid\u00E9" }), _jsx(Tag, { size: "md", leading: "Clock", children: "En attente" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, onClose: () => { }, children: "Ic\u00F4ne et croix" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, selected: true, onClose: () => { }, children: "Tout \u00E0 la fois" })] }));
18
- export const LibelleLong = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap: 24, style: { maxWidth: 260 }, children: _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Un libell\u00E9 beaucoup trop long pour la place disponible" }) }));
14
+ export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", children: "Tag sm" }), _jsx(Tag, { size: "md", children: "Tag md" })] }));
15
+ export const Selection = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "2W", children: ['sm', 'md'].map(size => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: size, children: "Descriptive, inerte" }), _jsx(Tag, { size: size, interactive: true, children: "Au repos, dans un groupe" }), _jsx(Tag, { size: size, interactive: true, selected: true, children: "S\u00E9lectionn\u00E9" }), _jsx(Tag, { size: size, selected: true, closable: true, onClose: () => { }, children: "S\u00E9lectionn\u00E9 et fermable" })] }, size))) }));
16
+ export const Fermable = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", closable: true, onClose: () => { }, children: "Fermable sm" }), _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Fermable md" }), _jsx(Tag, { size: "md", closable: true, selected: true, onClose: () => { }, children: "Fermable et s\u00E9lectionn\u00E9" })] }));
17
+ export const AvecIcone = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", leading: "Check", children: "Valid\u00E9" }), _jsx(Tag, { size: "md", leading: "Clock", children: "En attente" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, onClose: () => { }, children: "Ic\u00F4ne et croix" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, selected: true, onClose: () => { }, children: "Tout \u00E0 la fois" })] }));
18
+ export const LibelleLong = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap: "3W", style: { maxWidth: 260 }, children: _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Un libell\u00E9 beaucoup trop long pour la place disponible" }) }));
19
19
  export * as Sources from './Tag.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tag/Tag.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAsM,CAAC;AAEzN,eAAO,MAAM,SAAS,cAA2mB,CAAC;AAEloB,eAAO,MAAM,QAAQ,cAA8Y,CAAC;AAEpa,eAAO,MAAM,SAAS,cAAie,CAAC;AAExf,eAAO,MAAM,WAAW,cAA2Q,CAAC;AAEpS,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"Tag.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tag/Tag.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAwM,CAAC;AAE3N,eAAO,MAAM,SAAS,cAA+mB,CAAC;AAEtoB,eAAO,MAAM,QAAQ,cAAgZ,CAAC;AAEta,eAAO,MAAM,SAAS,cAAme,CAAC;AAE1f,eAAO,MAAM,WAAW,cAA6Q,CAAC;AAEtS,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,10 +1,10 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/Tag/Tag.stories.tsx
3
- export const Sizes = () => "export const Sizes = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={24} flexWrap=\"wrap\">\n <Tag size=\"sm\">Tag sm</Tag>\n <Tag size=\"md\">Tag md</Tag>\n </Box>\n);";
4
- export const Selection = () => "export const Selection = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={16}>\n {(['sm', 'md'] as const).map(size => (\n <Box key={size} display=\"flex\" flexDirection=\"row\" gap={24} flexWrap=\"wrap\">\n <Tag size={size}>Descriptive, inerte</Tag>\n <Tag size={size} interactive>\n Au repos, dans un groupe\n </Tag>\n <Tag size={size} interactive selected>\n Sélectionné\n </Tag>\n <Tag size={size} selected closable onClose={() => {}}>\n Sélectionné et fermable\n </Tag>\n </Box>\n ))}\n </Box>\n);";
5
- export const Fermable = () => "export const Fermable = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={24} flexWrap=\"wrap\">\n <Tag size=\"sm\" closable onClose={() => {}}>\n Fermable sm\n </Tag>\n <Tag size=\"md\" closable onClose={() => {}}>\n Fermable md\n </Tag>\n <Tag size=\"md\" closable selected onClose={() => {}}>\n Fermable et sélectionné\n </Tag>\n </Box>\n);";
6
- export const AvecIcone = () => "export const AvecIcone = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={24} flexWrap=\"wrap\">\n <Tag size=\"sm\" leading=\"Check\">\n Validé\n </Tag>\n <Tag size=\"md\" leading=\"Clock\">\n En attente\n </Tag>\n <Tag size=\"md\" leading=\"Tag\" closable onClose={() => {}}>\n Icône et croix\n </Tag>\n <Tag size=\"md\" leading=\"Tag\" closable selected onClose={() => {}}>\n Tout à la fois\n </Tag>\n </Box>\n);";
7
- export const LibelleLong = () => "export const LibelleLong = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap={24} style={{ maxWidth: 260 }}>\n <Tag size=\"md\" closable onClose={() => {}}>\n Un libellé beaucoup trop long pour la place disponible\n </Tag>\n </Box>\n);";
3
+ export const Sizes = () => "export const Sizes = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Tag size=\"sm\">Tag sm</Tag>\n <Tag size=\"md\">Tag md</Tag>\n </Box>\n);";
4
+ export const Selection = () => "export const Selection = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"2W\">\n {(['sm', 'md'] as const).map(size => (\n <Box key={size} display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Tag size={size}>Descriptive, inerte</Tag>\n <Tag size={size} interactive>\n Au repos, dans un groupe\n </Tag>\n <Tag size={size} interactive selected>\n Sélectionné\n </Tag>\n <Tag size={size} selected closable onClose={() => {}}>\n Sélectionné et fermable\n </Tag>\n </Box>\n ))}\n </Box>\n);";
5
+ export const Fermable = () => "export const Fermable = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Tag size=\"sm\" closable onClose={() => {}}>\n Fermable sm\n </Tag>\n <Tag size=\"md\" closable onClose={() => {}}>\n Fermable md\n </Tag>\n <Tag size=\"md\" closable selected onClose={() => {}}>\n Fermable et sélectionné\n </Tag>\n </Box>\n);";
6
+ export const AvecIcone = () => "export const AvecIcone = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" flexWrap=\"wrap\">\n <Tag size=\"sm\" leading=\"Check\">\n Validé\n </Tag>\n <Tag size=\"md\" leading=\"Clock\">\n En attente\n </Tag>\n <Tag size=\"md\" leading=\"Tag\" closable onClose={() => {}}>\n Icône et croix\n </Tag>\n <Tag size=\"md\" leading=\"Tag\" closable selected onClose={() => {}}>\n Tout à la fois\n </Tag>\n </Box>\n);";
7
+ export const LibelleLong = () => "export const LibelleLong = () => (\n <Box display=\"flex\" flexDirection=\"row\" gap=\"3W\" style={{ maxWidth: 260 }}>\n <Tag size=\"md\" closable onClose={() => {}}>\n Un libellé beaucoup trop long pour la place disponible\n </Tag>\n </Box>\n);";
8
8
  export const storySources = {
9
9
  Sizes,
10
10
  Selection,
@@ -16,20 +16,20 @@ export declare const useStyles: () => {
16
16
  alignItems: "center";
17
17
  borderRadius: Radius;
18
18
  borderWidth: number;
19
- borderColor: string;
20
- color: string;
21
- backgroundColor: string;
19
+ borderColor: import("@alveole/theme").ThemeColor;
20
+ color: import("@alveole/theme").ThemeColor;
21
+ backgroundColor: import("@alveole/theme").ThemeColor;
22
22
  whiteSpace: "nowrap";
23
23
  overflow: "hidden";
24
24
  textOverflow: "ellipsis";
25
25
  maxWidth: string;
26
26
  };
27
27
  tagSurvole: {
28
- color: string;
28
+ color: import("@alveole/theme").ThemeColor;
29
29
  };
30
30
  tagSelected: {
31
- borderColor: string;
32
- color: string;
31
+ borderColor: import("@alveole/theme").ThemeColor;
32
+ color: import("@alveole/theme").ThemeColor;
33
33
  };
34
34
  tagSm: {
35
35
  fontSize: 12;
@@ -58,7 +58,7 @@ export declare const useStyles: () => {
58
58
  marginRight: number;
59
59
  };
60
60
  croixSurvolee: {
61
- backgroundColor: string;
61
+ backgroundColor: import("@alveole/theme").ThemeColor;
62
62
  };
63
63
  croixSm: {
64
64
  marginLeft: number;
@@ -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", 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: '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;
@@ -17,5 +17,5 @@ export declare const TextareaInput: React.ForwardRefExoticComponent<Omit<import(
17
17
  } & {
18
18
  numberOfLines?: number;
19
19
  onModalSubmit?: () => void;
20
- } & React.RefAttributes<import("react-native").TextInput>>;
20
+ } & React.RefAttributes<TextInputElement>>;
21
21
  //# 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"}
@@ -16,7 +16,7 @@ declare const _default: {
16
16
  } & {
17
17
  numberOfLines?: number;
18
18
  onModalSubmit?: () => void;
19
- } & import("react").RefAttributes<import("react-native").TextInput>>;
19
+ } & import("react").RefAttributes<import("..").TextInputElement>>;
20
20
  styleFn: () => {};
21
21
  };
22
22
  export default _default;
@@ -13,5 +13,5 @@ export default {
13
13
  };
14
14
  // TextareaInput est le champ nu : c'est FormControl qui porte le libellé et le relie au champ.
15
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 }) })] }));
16
+ export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", 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 }) })] }));
17
17
  export * as Sources from './TextareaInput.stories.sources';
@@ -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,cAAoe,CAAC;AAEzf,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/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 <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);";
4
4
  export const storySources = {
5
5
  Default,
6
6
  };
@@ -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,