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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/dist/core/AlveoleProvider/AlveoleProvider.d.ts +17 -0
  2. package/dist/core/AlveoleProvider/AlveoleProvider.d.ts.map +1 -0
  3. package/dist/core/AlveoleProvider/AlveoleProvider.js +15 -0
  4. package/dist/core/AlveoleProvider/index.d.ts +2 -0
  5. package/dist/core/AlveoleProvider/index.d.ts.map +1 -0
  6. package/dist/core/AlveoleProvider/index.js +1 -0
  7. package/dist/core/AnchorHeading/AnchorHeading.d.ts +6 -2
  8. package/dist/core/AnchorHeading/AnchorHeading.d.ts.map +1 -1
  9. package/dist/core/AnchorHeading/AnchorHeading.js +1 -1
  10. package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts +2 -1
  11. package/dist/core/AnchorHeading/AnchorHeading.stories.d.ts.map +1 -1
  12. package/dist/core/AnchorHeading/AnchorHeading.stories.js +1 -0
  13. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts +2 -0
  14. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.d.ts.map +1 -1
  15. package/dist/core/AnchorHeading/AnchorHeading.stories.sources.js +2 -0
  16. package/dist/core/AnchorHeading/AnchorHeading.web.d.ts +1 -1
  17. package/dist/core/AnchorHeading/AnchorHeading.web.d.ts.map +1 -1
  18. package/dist/core/AnchorHeading/AnchorHeading.web.js +7 -4
  19. package/dist/core/AnchorHeading/slug.d.ts +3 -0
  20. package/dist/core/AnchorHeading/slug.d.ts.map +1 -1
  21. package/dist/core/AnchorHeading/slug.js +11 -0
  22. package/dist/core/Box/Box.d.ts +15 -15
  23. package/dist/core/Box/Box.d.ts.map +1 -1
  24. package/dist/core/Box/Box.js +9 -6
  25. package/dist/core/Box/Box.stories.d.ts +19 -15
  26. package/dist/core/Box/Box.stories.d.ts.map +1 -1
  27. package/dist/core/Box/Box.stories.js +21 -4
  28. package/dist/core/Box/Box.stories.sources.d.ts +8 -0
  29. package/dist/core/Box/Box.stories.sources.d.ts.map +1 -1
  30. package/dist/core/Box/Box.stories.sources.js +11 -3
  31. package/dist/core/Box/Box.types.d.ts +21 -15
  32. package/dist/core/Box/Box.types.d.ts.map +1 -1
  33. package/dist/core/Box/elementDuTag.d.ts +2 -0
  34. package/dist/core/Box/elementDuTag.d.ts.map +1 -0
  35. package/dist/core/Box/elementDuTag.js +12 -0
  36. package/dist/core/Code/Code.stories.d.ts +2 -2
  37. package/dist/core/Code/Code.stories.js +1 -1
  38. package/dist/core/Code/Code.stories.sources.d.ts.map +1 -1
  39. package/dist/core/Code/Code.stories.sources.js +1 -1
  40. package/dist/core/Code/Code.styles.d.ts +2 -2
  41. package/dist/core/Form/Form.stories.js +1 -1
  42. package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
  43. package/dist/core/Form/Form.stories.sources.js +1 -1
  44. package/dist/core/Grid/Grid.stories.d.ts +15 -14
  45. package/dist/core/Grid/Grid.stories.d.ts.map +1 -1
  46. package/dist/core/Grid/Grid.stories.js +14 -12
  47. package/dist/core/Grid/Grid.stories.sources.d.ts.map +1 -1
  48. package/dist/core/Grid/Grid.stories.sources.js +9 -9
  49. package/dist/core/Heading/Heading.d.ts +8 -0
  50. package/dist/core/Heading/Heading.d.ts.map +1 -0
  51. package/dist/core/Heading/Heading.js +15 -0
  52. package/dist/core/Heading/Heading.stories.d.ts +13 -0
  53. package/dist/core/Heading/Heading.stories.d.ts.map +1 -0
  54. package/dist/core/Heading/Heading.stories.js +13 -0
  55. package/dist/core/Heading/Heading.stories.sources.d.ts +8 -0
  56. package/dist/core/Heading/Heading.stories.sources.d.ts.map +1 -0
  57. package/dist/core/Heading/Heading.stories.sources.js +8 -0
  58. package/dist/core/Heading/index.d.ts +2 -0
  59. package/dist/core/Heading/index.d.ts.map +1 -0
  60. package/dist/core/Heading/index.js +1 -0
  61. package/dist/core/Highlight/Highlight.stories.d.ts +4 -4
  62. package/dist/core/Highlight/Highlight.styles.d.ts +4 -4
  63. package/dist/core/Highlight/Highlight.theme.d.ts +1 -3
  64. package/dist/core/Highlight/Highlight.theme.d.ts.map +1 -1
  65. package/dist/core/Highlight/Highlight.theme.js +9 -16
  66. package/dist/core/Map/Map.js +1 -1
  67. package/dist/core/MarkdownDescription/MarkdownDescription.js +1 -1
  68. package/dist/core/MarkdownDescription/markdownComponents.d.ts +3 -3
  69. package/dist/core/MarkdownDescription/markdownComponents.d.ts.map +1 -1
  70. package/dist/core/MarkdownDescription/markdownComponents.js +14 -12
  71. package/dist/core/MarkdownDescription/markdownNatif.d.ts.map +1 -1
  72. package/dist/core/MarkdownDescription/markdownNatif.js +5 -4
  73. package/dist/core/Page/PageContent.d.ts.map +1 -1
  74. package/dist/core/Page/PageContent.js +1 -1
  75. package/dist/core/Page/PageContentScrollable.d.ts +15 -15
  76. package/dist/core/Page/usePageStatusBar.d.ts.map +1 -1
  77. package/dist/core/Page/usePageStatusBar.js +3 -3
  78. package/dist/core/Section/Section.stories.d.ts.map +1 -1
  79. package/dist/core/Section/Section.stories.js +8 -6
  80. package/dist/core/Section/Section.stories.sources.d.ts.map +1 -1
  81. package/dist/core/Section/Section.stories.sources.js +4 -4
  82. package/dist/core/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
  83. package/dist/core/ThemeProvider/ThemeProvider.stories.js +17 -12
  84. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.d.ts.map +1 -1
  85. package/dist/core/ThemeProvider/ThemeProvider.stories.sources.js +2 -2
  86. package/dist/core/Typography/Typography.stories.d.ts +1 -0
  87. package/dist/core/Typography/Typography.stories.d.ts.map +1 -1
  88. package/dist/core/Typography/Typography.stories.js +2 -0
  89. package/dist/core/Typography/Typography.stories.sources.d.ts +2 -0
  90. package/dist/core/Typography/Typography.stories.sources.d.ts.map +1 -1
  91. package/dist/core/Typography/Typography.stories.sources.js +2 -0
  92. package/dist/core/Typography/Typography.styles.d.ts +1 -1
  93. package/dist/core/Version/Version.stories.d.ts +1 -1
  94. package/dist/core/Version/Version.styles.d.ts +1 -1
  95. package/dist/core/index.d.ts +2 -0
  96. package/dist/core/index.d.ts.map +1 -1
  97. package/dist/core/index.js +2 -0
  98. package/dist/core/styleTamagui/flexDuWeb.d.ts +1 -1
  99. package/dist/core/styleTamagui/flexDuWeb.d.ts.map +1 -1
  100. package/dist/core/styleTamagui/flexDuWeb.js +4 -3
  101. package/dist/core/styleTamagui/fondAuSurvol.d.ts +5 -4
  102. package/dist/core/styleTamagui/fondAuSurvol.d.ts.map +1 -1
  103. package/dist/generated/version.d.ts +1 -1
  104. package/dist/generated/version.js +1 -1
  105. package/dist/stories/index.d.ts +1 -0
  106. package/dist/stories/index.d.ts.map +1 -1
  107. package/dist/stories/index.js +1 -0
  108. package/dist/ui/Accordion/Accordion.stories.d.ts +8 -8
  109. package/dist/ui/Accordion/Accordion.styles.d.ts +8 -8
  110. package/dist/ui/Accordion/Accordion.styles.js +2 -2
  111. package/dist/ui/Avatar/Avatar.stories.d.ts +2 -2
  112. package/dist/ui/Avatar/Avatar.styles.d.ts +2 -2
  113. package/dist/ui/Badge/Badge.stories.d.ts +12 -12
  114. package/dist/ui/Badge/Badge.stories.js +3 -3
  115. package/dist/ui/Badge/Badge.stories.sources.d.ts.map +1 -1
  116. package/dist/ui/Badge/Badge.stories.sources.js +3 -3
  117. package/dist/ui/Badge/Badge.styles.d.ts +12 -12
  118. package/dist/ui/BottomSheet/BottomSheet.d.ts.map +1 -1
  119. package/dist/ui/BottomSheet/BottomSheet.js +2 -1
  120. package/dist/ui/BottomSheet/BottomSheet.stories.d.ts +2 -2
  121. package/dist/ui/BottomSheet/BottomSheet.styles.d.ts +2 -2
  122. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
  123. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.js +6 -6
  124. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.d.ts.map +1 -1
  125. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.sources.js +6 -6
  126. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +3 -3
  127. package/dist/ui/Button/Button.d.ts +4 -2
  128. package/dist/ui/Button/Button.d.ts.map +1 -1
  129. package/dist/ui/Button/Button.stories.d.ts +49 -49
  130. package/dist/ui/Button/Button.stories.js +8 -8
  131. package/dist/ui/Button/Button.stories.sources.d.ts.map +1 -1
  132. package/dist/ui/Button/Button.stories.sources.js +8 -8
  133. package/dist/ui/Button/Button.styles.d.ts +48 -48
  134. package/dist/ui/Button/buttonIconStyling.d.ts +4 -20
  135. package/dist/ui/Button/buttonIconStyling.d.ts.map +1 -1
  136. package/dist/ui/Card/Card.stories.d.ts +5 -3
  137. package/dist/ui/Card/Card.stories.d.ts.map +1 -1
  138. package/dist/ui/Card/Card.stories.js +8 -1
  139. package/dist/ui/Card/Card.stories.sources.d.ts +4 -0
  140. package/dist/ui/Card/Card.stories.sources.d.ts.map +1 -1
  141. package/dist/ui/Card/Card.stories.sources.js +5 -1
  142. package/dist/ui/Card/Card.styles.d.ts +2 -2
  143. package/dist/ui/Card/CardHeader.styles.d.ts +3 -3
  144. package/dist/ui/Card/CardSection.styles.d.ts +3 -3
  145. package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
  146. package/dist/ui/Checkbox/Checkbox.js +1 -3
  147. package/dist/ui/Checkbox/Checkbox.stories.d.ts +10 -10
  148. package/dist/ui/Checkbox/Checkbox.stories.js +2 -2
  149. package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts.map +1 -1
  150. package/dist/ui/Checkbox/Checkbox.stories.sources.js +2 -2
  151. package/dist/ui/Checkbox/Checkbox.styles.d.ts +10 -10
  152. package/dist/ui/Checkbox/Checkbox.styles.js +6 -6
  153. package/dist/ui/Counter/Counter.stories.d.ts +3 -3
  154. package/dist/ui/Counter/Counter.stories.js +1 -1
  155. package/dist/ui/Counter/Counter.stories.sources.d.ts.map +1 -1
  156. package/dist/ui/Counter/Counter.stories.sources.js +1 -1
  157. package/dist/ui/Counter/Counter.styles.d.ts +3 -3
  158. package/dist/ui/DataTable/DataTable.stories.d.ts +11 -11
  159. package/dist/ui/DataTable/DataTable.styles.d.ts +11 -11
  160. package/dist/ui/DateInput/DateInput.d.ts +2 -2
  161. package/dist/ui/DateInput/DateInput.d.ts.map +1 -1
  162. package/dist/ui/DateInput/DateInput.ios.d.ts +2 -1
  163. package/dist/ui/DateInput/DateInput.ios.d.ts.map +1 -1
  164. package/dist/ui/DateInput/DateInput.stories.d.ts +1 -1
  165. package/dist/ui/DateInput/DateInput.stories.js +2 -2
  166. package/dist/ui/DateInput/DateInput.stories.sources.d.ts.map +1 -1
  167. package/dist/ui/DateInput/DateInput.stories.sources.js +2 -2
  168. package/dist/ui/Divider/Divider.stories.d.ts +1 -1
  169. package/dist/ui/Divider/Divider.stories.d.ts.map +1 -1
  170. package/dist/ui/Divider/Divider.stories.js +1 -1
  171. package/dist/ui/Divider/Divider.stories.sources.d.ts.map +1 -1
  172. package/dist/ui/Divider/Divider.stories.sources.js +1 -1
  173. package/dist/ui/Divider/Divider.styles.d.ts +1 -1
  174. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +11 -11
  175. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts.map +1 -1
  176. package/dist/ui/DocumentViewer/DocumentViewer.stories.js +2 -2
  177. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.d.ts.map +1 -1
  178. package/dist/ui/DocumentViewer/DocumentViewer.stories.sources.js +2 -2
  179. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +11 -11
  180. package/dist/ui/DocumentViewer/chargementDePdfJs.d.ts.map +1 -1
  181. package/dist/ui/DocumentViewer/chargementDePdfJs.js +3 -1
  182. package/dist/ui/DurationInput/DurationInput.d.ts +2 -1
  183. package/dist/ui/DurationInput/DurationInput.d.ts.map +1 -1
  184. package/dist/ui/DurationInput/DurationInput.stories.d.ts +1 -1
  185. package/dist/ui/DurationInput/DurationInput.stories.js +2 -2
  186. package/dist/ui/DurationInput/DurationInput.stories.sources.d.ts.map +1 -1
  187. package/dist/ui/DurationInput/DurationInput.stories.sources.js +2 -2
  188. package/dist/ui/EmptyState/EmptyState.stories.d.ts +4 -4
  189. package/dist/ui/EmptyState/EmptyState.styles.d.ts +4 -4
  190. package/dist/ui/FileDropZone/FileDropZone.stories.d.ts +4 -4
  191. package/dist/ui/FileDropZone/FileDropZone.stories.js +3 -3
  192. package/dist/ui/FileDropZone/FileDropZone.stories.sources.d.ts.map +1 -1
  193. package/dist/ui/FileDropZone/FileDropZone.stories.sources.js +3 -3
  194. package/dist/ui/FileDropZone/FileDropZone.styles.d.ts +4 -4
  195. package/dist/ui/FilterDate/FilterDate.stories.d.ts +1 -1
  196. package/dist/ui/FilterDate/FilterDate.styles.d.ts +1 -1
  197. package/dist/ui/FormControl/ChampHHMM.d.ts +2 -2
  198. package/dist/ui/FormControl/ChampHHMM.d.ts.map +1 -1
  199. package/dist/ui/FormControl/FormControl.d.ts +2 -2
  200. package/dist/ui/FormControl/FormControl.d.ts.map +1 -1
  201. package/dist/ui/FormControl/FormControl.stories.d.ts +18 -18
  202. package/dist/ui/FormControl/FormControl.stories.js +4 -4
  203. package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
  204. package/dist/ui/FormControl/FormControl.stories.sources.js +4 -4
  205. package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
  206. package/dist/ui/FormControl/NumberInput.d.ts +2 -1
  207. package/dist/ui/FormControl/NumberInput.d.ts.map +1 -1
  208. package/dist/ui/FormControl/NumberInput.stories.d.ts +18 -18
  209. package/dist/ui/FormControl/NumberInput.stories.d.ts.map +1 -1
  210. package/dist/ui/FormControl/NumberInput.stories.js +2 -1
  211. package/dist/ui/FormControl/NumberInput.stories.sources.d.ts.map +1 -1
  212. package/dist/ui/FormControl/NumberInput.stories.sources.js +1 -1
  213. package/dist/ui/FormControl/OtpInput.stories.d.ts +5 -5
  214. package/dist/ui/FormControl/OtpInput.stories.js +1 -1
  215. package/dist/ui/FormControl/OtpInput.stories.sources.d.ts.map +1 -1
  216. package/dist/ui/FormControl/OtpInput.stories.sources.js +1 -1
  217. package/dist/ui/FormControl/OtpInput.styles.d.ts +5 -5
  218. package/dist/ui/FormControl/OtpInput.styles.js +2 -2
  219. package/dist/ui/FormControl/TextInput.d.ts +1 -1
  220. package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
  221. package/dist/ui/FormControl/TextInput.stories.d.ts +18 -18
  222. package/dist/ui/FormControl/TextInput.types.d.ts +3 -2
  223. package/dist/ui/FormControl/TextInput.types.d.ts.map +1 -1
  224. package/dist/ui/FormControl/TextInputInline.d.ts +2 -2
  225. package/dist/ui/FormControl/TextInputInline.d.ts.map +1 -1
  226. package/dist/ui/FormControl/TextInputMirror.d.ts +2 -2
  227. package/dist/ui/FormControl/TextInputMirror.d.ts.map +1 -1
  228. package/dist/ui/FormControl/TextInputModal.d.ts +2 -2
  229. package/dist/ui/FormControl/TextInputModal.d.ts.map +1 -1
  230. package/dist/ui/FormControl/TextInputPassword.d.ts +2 -1
  231. package/dist/ui/FormControl/TextInputPassword.d.ts.map +1 -1
  232. package/dist/ui/FormControl/fieldBorderState.d.ts +1 -1
  233. package/dist/ui/FormControl/fieldBorderState.d.ts.map +1 -1
  234. package/dist/ui/FormControl/otpTheme.d.ts +1 -1
  235. package/dist/ui/FormControl/otpTheme.d.ts.map +1 -1
  236. package/dist/ui/FormControl/otpTheme.js +0 -3
  237. package/dist/ui/FormControl/textInputStyles.d.ts +52 -0
  238. package/dist/ui/FormControl/textInputStyles.d.ts.map +1 -1
  239. package/dist/ui/FormControl/useTextInputModal.d.ts +4 -3
  240. package/dist/ui/FormControl/useTextInputModal.d.ts.map +1 -1
  241. package/dist/ui/Header/Header.stories.d.ts +4 -4
  242. package/dist/ui/Header/Header.styles.d.ts +4 -4
  243. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts +2 -2
  244. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.js +1 -1
  245. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts.map +1 -1
  246. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.js +1 -1
  247. package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts +2 -2
  248. package/dist/ui/Link/Link.stories.d.ts +1 -1
  249. package/dist/ui/Link/Link.styles.d.ts +1 -1
  250. package/dist/ui/ListItem/ListItem.stories.d.ts +6 -6
  251. package/dist/ui/ListItem/ListItem.styles.d.ts +6 -6
  252. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
  253. package/dist/ui/LucideIcon/LucideIcon.stories.js +2 -1
  254. package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
  255. package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +1 -1
  256. package/dist/ui/LucideIcon/catalogueLucide.d.ts +36 -0
  257. package/dist/ui/LucideIcon/catalogueLucide.d.ts.map +1 -1
  258. package/dist/ui/LucideIcon/vendor/lab.js +1 -1
  259. package/dist/ui/LucideIcon/vendor/lucide.d.ts +1936 -1780
  260. package/dist/ui/LucideIcon/vendor/lucide.js +3 -3
  261. package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
  262. package/dist/ui/PageHeader/PageHeader.styles.d.ts +1 -1
  263. package/dist/ui/Popover/Popover.js +1 -1
  264. package/dist/ui/Popover/Popover.stories.d.ts +6 -6
  265. package/dist/ui/Popover/Popover.styles.d.ts +6 -6
  266. package/dist/ui/PriceInput/PriceInput.d.ts +2 -3
  267. package/dist/ui/PriceInput/PriceInput.d.ts.map +1 -1
  268. package/dist/ui/PriceInput/PriceInput.js +2 -2
  269. package/dist/ui/PriceInput/PriceInput.stories.d.ts +22 -6
  270. package/dist/ui/PriceInput/PriceInput.stories.d.ts.map +1 -1
  271. package/dist/ui/PriceInput/PriceInput.stories.js +2 -1
  272. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts +2 -0
  273. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -1
  274. package/dist/ui/PriceInput/PriceInput.stories.sources.js +3 -1
  275. package/dist/ui/PriceInput/PriceInput.styles.d.ts +20 -5
  276. package/dist/ui/PriceInput/PriceInput.styles.d.ts.map +1 -1
  277. package/dist/ui/PriceInput/PriceInput.styles.js +20 -6
  278. package/dist/ui/PriceInput/PriceInput.web.d.ts +0 -1
  279. package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -1
  280. package/dist/ui/PriceInput/PriceInput.web.js +9 -10
  281. package/dist/ui/PriceInput/cadrePrix.d.ts +43 -0
  282. package/dist/ui/PriceInput/cadrePrix.d.ts.map +1 -0
  283. package/dist/ui/PriceInput/cadrePrix.js +9 -0
  284. package/dist/ui/PriceInput/largeurDuChamp.d.ts +2 -0
  285. package/dist/ui/PriceInput/largeurDuChamp.d.ts.map +1 -0
  286. package/dist/ui/PriceInput/largeurDuChamp.js +2 -0
  287. package/dist/ui/PriceInput/useSaisieMontant.d.ts +5 -0
  288. package/dist/ui/PriceInput/useSaisieMontant.d.ts.map +1 -0
  289. package/dist/ui/PriceInput/useSaisieMontant.js +19 -0
  290. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +7 -7
  291. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +7 -7
  292. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +8 -8
  293. package/dist/ui/RadioGroup/RadioGroup.stories.js +2 -2
  294. package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts.map +1 -1
  295. package/dist/ui/RadioGroup/RadioGroup.stories.sources.js +2 -2
  296. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +8 -8
  297. package/dist/ui/RadioGroup/RadioGroup.styles.js +4 -4
  298. package/dist/ui/RadioGroup/RadioGroupCard.js +1 -1
  299. package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +1 -1
  300. package/dist/ui/ResourceList/ResourceList.stories.d.ts +2 -2
  301. package/dist/ui/ResourceList/ResourceList.styles.d.ts +2 -2
  302. package/dist/ui/ResourceList/ResourceListDivider.js +1 -1
  303. package/dist/ui/Select/Select.stories.d.ts +8 -8
  304. package/dist/ui/Select/Select.stories.js +12 -12
  305. package/dist/ui/Select/Select.stories.sources.d.ts.map +1 -1
  306. package/dist/ui/Select/Select.stories.sources.js +11 -11
  307. package/dist/ui/Select/Select.styles.d.ts +8 -8
  308. package/dist/ui/Select/SelectBottomSheet.d.ts.map +1 -1
  309. package/dist/ui/Select/SelectBottomSheet.js +3 -3
  310. package/dist/ui/Select/SelectList.styles.d.ts +14 -14
  311. package/dist/ui/Select/SelectList.styles.js +3 -3
  312. package/dist/ui/Select/selectControlStyle.d.ts +130 -2
  313. package/dist/ui/Select/selectControlStyle.d.ts.map +1 -1
  314. package/dist/ui/Select/selectItemStyle.d.ts +5 -5
  315. package/dist/ui/Select/selectTriggerStyle.d.ts +53 -1
  316. package/dist/ui/Select/selectTriggerStyle.d.ts.map +1 -1
  317. package/dist/ui/Sidebar/Sidebar.stories.d.ts +20 -20
  318. package/dist/ui/Sidebar/Sidebar.stories.d.ts.map +1 -1
  319. package/dist/ui/Sidebar/Sidebar.stories.js +1 -1
  320. package/dist/ui/Sidebar/Sidebar.stories.sources.d.ts.map +1 -1
  321. package/dist/ui/Sidebar/Sidebar.stories.sources.js +1 -1
  322. package/dist/ui/Sidebar/Sidebar.styles.d.ts +20 -20
  323. package/dist/ui/Sidebar/Sidebar.styles.js +3 -3
  324. package/dist/ui/Sidebar/SidebarHeader.d.ts.map +1 -1
  325. package/dist/ui/Sidebar/SidebarHeader.js +4 -1
  326. package/dist/ui/Sidebar/SidebarItem.d.ts +8 -2
  327. package/dist/ui/Sidebar/SidebarItem.d.ts.map +1 -1
  328. package/dist/ui/Sidebar/SidebarItem.js +5 -2
  329. package/dist/ui/Signature/Signature.js +1 -1
  330. package/dist/ui/Signature/Signature.stories.d.ts +2 -2
  331. package/dist/ui/Signature/Signature.styles.d.ts +2 -2
  332. package/dist/ui/Skeleton/Skeleton.js +1 -1
  333. package/dist/ui/Skeleton/Skeleton.stories.d.ts +1 -1
  334. package/dist/ui/Skeleton/Skeleton.stories.d.ts.map +1 -1
  335. package/dist/ui/Skeleton/Skeleton.stories.js +3 -3
  336. package/dist/ui/Skeleton/Skeleton.stories.sources.d.ts.map +1 -1
  337. package/dist/ui/Skeleton/Skeleton.stories.sources.js +3 -3
  338. package/dist/ui/Skeleton/Skeleton.styles.d.ts +1 -1
  339. package/dist/ui/Spinner/Spinner.stories.d.ts +2 -2
  340. package/dist/ui/Spinner/Spinner.stories.js +2 -2
  341. package/dist/ui/Spinner/Spinner.stories.sources.d.ts.map +1 -1
  342. package/dist/ui/Spinner/Spinner.stories.sources.js +2 -2
  343. package/dist/ui/Spinner/Spinner.styles.d.ts +2 -2
  344. package/dist/ui/Spinner/useRotation.d.ts +3 -1
  345. package/dist/ui/Spinner/useRotation.d.ts.map +1 -1
  346. package/dist/ui/Spinner/useSpinner.d.ts +3 -3
  347. package/dist/ui/Switch/Switch.d.ts.map +1 -1
  348. package/dist/ui/Switch/Switch.js +2 -3
  349. package/dist/ui/Switch/Switch.stories.d.ts +9 -9
  350. package/dist/ui/Switch/Switch.stories.js +1 -1
  351. package/dist/ui/Switch/Switch.stories.sources.d.ts.map +1 -1
  352. package/dist/ui/Switch/Switch.stories.sources.js +1 -1
  353. package/dist/ui/Switch/Switch.styles.d.ts +9 -9
  354. package/dist/ui/Tabs/Tabs.stories.d.ts +6 -5
  355. package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
  356. package/dist/ui/Tabs/Tabs.stories.js +3 -1
  357. package/dist/ui/Tabs/Tabs.stories.sources.d.ts +2 -0
  358. package/dist/ui/Tabs/Tabs.stories.sources.d.ts.map +1 -1
  359. package/dist/ui/Tabs/Tabs.stories.sources.js +3 -1
  360. package/dist/ui/Tabs/Tabs.styles.d.ts +5 -5
  361. package/dist/ui/Tag/Tag.stories.d.ts +7 -7
  362. package/dist/ui/Tag/Tag.stories.js +5 -5
  363. package/dist/ui/Tag/Tag.stories.sources.d.ts.map +1 -1
  364. package/dist/ui/Tag/Tag.stories.sources.js +5 -5
  365. package/dist/ui/Tag/Tag.styles.d.ts +7 -7
  366. package/dist/ui/Tag/tagStyling.d.ts +2 -2
  367. package/dist/ui/TextInputArray/TextInputArray.js +1 -1
  368. package/dist/ui/TextareaInput/TextareaInput.d.ts +2 -2
  369. package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -1
  370. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +1 -1
  371. package/dist/ui/TextareaInput/TextareaInput.stories.js +1 -1
  372. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -1
  373. package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +1 -1
  374. package/dist/ui/TimeInput/TimeInput.d.ts +2 -1
  375. package/dist/ui/TimeInput/TimeInput.d.ts.map +1 -1
  376. package/dist/ui/TimeInput/TimeInput.stories.d.ts +1 -1
  377. package/dist/ui/TimeInput/TimeInput.stories.js +2 -2
  378. package/dist/ui/TimeInput/TimeInput.stories.sources.d.ts.map +1 -1
  379. package/dist/ui/TimeInput/TimeInput.stories.sources.js +2 -2
  380. package/dist/ui/Toast/Toast.stories.d.ts +11 -11
  381. package/dist/ui/Toast/Toast.stories.js +2 -2
  382. package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
  383. package/dist/ui/Toast/Toast.stories.sources.js +2 -2
  384. package/dist/ui/Toast/Toast.styles.d.ts +11 -11
  385. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +5 -53
  386. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts.map +1 -1
  387. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.styles.d.ts +4 -4
  388. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +3 -3
  389. package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +3 -3
  390. package/dist/ui/ToolbarTop/toolbarTopStyling.d.ts +4 -4
  391. package/package.json +24 -24
  392. package/dist/ui/PriceInput/PriceInput.css +0 -9
@@ -3,11 +3,11 @@
3
3
  export const WithTextInput = () => "export const WithTextInput = () => (\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Adresse email\" />\n <FormControlHint hint=\"Votre email professionnel\" />\n </InputHeading>\n <TextInput placeholder=\"jean@exemple.fr\" />\n </FormControl>\n);";
4
4
  export const WithError = () => "export const WithError = () => (\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Adresse email\" />\n </InputHeading>\n <TextInput placeholder=\"jean@exemple.fr\" />\n <FormControlCaption error=\"Format invalide\" />\n </FormControl>\n);";
5
5
  export const WithSuccess = () => "export const WithSuccess = () => (\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Adresse email\" />\n </InputHeading>\n <TextInput placeholder=\"jean@exemple.fr\" />\n <FormControlCaption success=\"Email valide\" />\n </FormControl>\n);";
6
- export const Label = () => "export const Label = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <FormControlLabel label=\"Label par defaut\" />\n <FormControlLabel label=\"Desactive\" disabled />\n <FormControlLabel label=\"Avec badge\" labelRight={<Typography>Optionnel</Typography>} />\n </Box>\n);";
7
- export const Caption = () => "export const Caption = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <FormControlCaption error=\"Champ requis\" />\n <FormControlCaption success=\"Valeur correcte\" />\n </Box>\n);";
8
- export const Hint = () => "export const Hint = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <FormControlHint hint=\"Texte descriptif du champ\" />\n <FormControlHint hint=\"Texte desactive\" disabled />\n </Box>\n);";
6
+ export const Label = () => "export const Label = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControlLabel label=\"Label par defaut\" />\n <FormControlLabel label=\"Desactive\" disabled />\n <FormControlLabel label=\"Avec badge\" labelRight={<Typography>Optionnel</Typography>} />\n </Box>\n);";
7
+ export const Caption = () => "export const Caption = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControlCaption error=\"Champ requis\" />\n <FormControlCaption success=\"Valeur correcte\" />\n </Box>\n);";
8
+ export const Hint = () => "export const Hint = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControlHint hint=\"Texte descriptif du champ\" />\n <FormControlHint hint=\"Texte desactive\" disabled />\n </Box>\n);";
9
9
  export const Modal = () => "export const Modal = () => {\n const [open, setOpen] = useState(false);\n return (\n <Box>\n <Button variant=\"secondary\" title=\"Ouvrir la modale\" onPress={() => setOpen(true)} />\n <FormControlModal\n open={open}\n onClose={() => setOpen(false)}\n submitLabel=\"Valider\"\n onSubmit={() => setOpen(false)}\n >\n <TextInput placeholder=\"Saisir un texte...\" multiline numberOfLines={6} />\n </FormControlModal>\n </Box>\n );\n};";
10
- export const DateInput = () => "export const DateInput = () => {\n const [date, setDate] = useState('');\n const [time, setTime] = useState('');\n const [month, setMonth] = useState('');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap={12}>\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Date\" />\n </InputHeading>\n <DateInputControl type=\"date\" value={date} onChange={setDate} />\n </FormControl>\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Heure\" />\n </InputHeading>\n <TimeInput value={time} onChange={setTime} />\n </FormControl>\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Mois\" />\n </InputHeading>\n <DateInputControl type=\"month\" value={month} onChange={setMonth} />\n </FormControl>\n </Box>\n );\n};";
10
+ export const DateInput = () => "export const DateInput = () => {\n const [date, setDate] = useState('');\n const [time, setTime] = useState('');\n const [month, setMonth] = useState('');\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3V\">\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Date\" />\n </InputHeading>\n <DateInputControl type=\"date\" value={date} onChange={setDate} />\n </FormControl>\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Heure\" />\n </InputHeading>\n <TimeInput value={time} onChange={setTime} />\n </FormControl>\n <FormControl>\n <InputHeading>\n <FormControlLabel label=\"Mois\" />\n </InputHeading>\n <DateInputControl type=\"month\" value={month} onChange={setMonth} />\n </FormControl>\n </Box>\n );\n};";
11
11
  export const storySources = {
12
12
  WithTextInput,
13
13
  WithError,
@@ -22,14 +22,14 @@ export declare const useStyles: () => {
22
22
  fontWeight?: import("react-native").TextStyle["fontWeight"];
23
23
  };
24
24
  errorText: {
25
- color: string;
25
+ color: import("@alveole/theme").ThemeColor;
26
26
  };
27
27
  successText: {
28
- color: string;
28
+ color: import("@alveole/theme").ThemeColor;
29
29
  };
30
30
  modalOverlay: {
31
31
  flex: number;
32
- backgroundColor: string;
32
+ backgroundColor: import("@alveole/theme").ThemeColor;
33
33
  };
34
34
  modalSheet: {
35
35
  width: "100%";
@@ -67,12 +67,12 @@ export declare const useStyles: () => {
67
67
  modalInputContainer: {
68
68
  borderRadius: import("@alveole/theme").Radius;
69
69
  borderWidth: number;
70
- borderColor: string;
70
+ borderColor: import("@alveole/theme").ThemeColor;
71
71
  backgroundColor: "#FFFFFF";
72
72
  minHeight: number;
73
73
  };
74
74
  modalInput: {
75
- color: string;
75
+ color: import("@alveole/theme").ThemeColor;
76
76
  paddingLeft: string | number;
77
77
  paddingRight: string | number;
78
78
  paddingTop: string | number;
@@ -87,14 +87,14 @@ export declare const useStyles: () => {
87
87
  };
88
88
  inputFocused: import("@alveole/theme").FocusBorderStyle;
89
89
  inputError: {
90
- borderColor: string;
90
+ borderColor: import("@alveole/theme").ThemeColor;
91
91
  };
92
92
  inputSuccess: {
93
- borderColor: string;
93
+ borderColor: import("@alveole/theme").ThemeColor;
94
94
  };
95
95
  inputDisabled: {
96
- backgroundColor: string;
97
- borderColor: string;
96
+ backgroundColor: import("@alveole/theme").ThemeColor;
97
+ borderColor: import("@alveole/theme").ThemeColor;
98
98
  };
99
99
  inputContainer: {
100
100
  width: "100%";
@@ -106,7 +106,7 @@ export declare const useStyles: () => {
106
106
  padding: number;
107
107
  borderRadius: import("@alveole/theme").Radius;
108
108
  borderWidth: number;
109
- borderColor: string;
109
+ borderColor: import("@alveole/theme").ThemeColor;
110
110
  backgroundColor: "#FFFFFF";
111
111
  overflow: "hidden";
112
112
  width: "100%";
@@ -116,7 +116,7 @@ export declare const useStyles: () => {
116
116
  display: "flex";
117
117
  flexDirection: "row";
118
118
  outline: string;
119
- color: string;
119
+ color: import("@alveole/theme").ThemeColor;
120
120
  fontFamily: string;
121
121
  fontSize: 14;
122
122
  marginTop: string | number;
@@ -132,7 +132,7 @@ export declare const useStyles: () => {
132
132
  letterSpacing: 0;
133
133
  fontFamily: string;
134
134
  fontWeight?: import("react-native").TextStyle["fontWeight"];
135
- color: string;
135
+ color: import("@alveole/theme").ThemeColor;
136
136
  };
137
137
  inputWeb: {
138
138
  borderWidth: number;
@@ -156,7 +156,7 @@ export declare const useStyles: () => {
156
156
  justifyContent: "space-between";
157
157
  };
158
158
  label: {
159
- color: string;
159
+ color: import("@alveole/theme").ThemeColor;
160
160
  fontSize: 14;
161
161
  lineHeight: 20;
162
162
  letterSpacing: 0;
@@ -164,7 +164,7 @@ export declare const useStyles: () => {
164
164
  fontWeight?: import("react-native").TextStyle["fontWeight"];
165
165
  };
166
166
  labelDisabled: {
167
- color: string;
167
+ color: import("@alveole/theme").ThemeColor;
168
168
  };
169
169
  hintContainer: {
170
170
  display: "flex";
@@ -172,7 +172,7 @@ export declare const useStyles: () => {
172
172
  justifyContent: "space-between";
173
173
  };
174
174
  hint: {
175
- color: string;
175
+ color: import("@alveole/theme").ThemeColor;
176
176
  fontSize: 12;
177
177
  lineHeight: 20;
178
178
  letterSpacing: 0;
@@ -180,10 +180,10 @@ export declare const useStyles: () => {
180
180
  fontWeight?: import("react-native").TextStyle["fontWeight"];
181
181
  };
182
182
  hintDisabled: {
183
- color: string;
183
+ color: import("@alveole/theme").ThemeColor;
184
184
  };
185
185
  requiredMarker: {
186
- color: string;
186
+ color: import("@alveole/theme").ThemeColor;
187
187
  marginLeft: string | number;
188
188
  fontSize: 14;
189
189
  lineHeight: 20;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { TextInputElement } from './TextInput';
2
3
  export type NumberInputElement = HTMLInputElement;
3
4
  export type NumberInputProps = {
4
5
  value?: number | null;
@@ -17,5 +18,5 @@ export type NumberInputProps = {
17
18
  controlButton?: boolean;
18
19
  };
19
20
  /** Le natif n'a pas de champ nombre : c'est un champ texte au pave numerique, qui rend un nombre. */
20
- export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<import("react-native").TextInput>>;
21
+ export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<TextInputElement>>;
21
22
  //# sourceMappingURL=NumberInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,WAAW,2GActB,CAAC"}
1
+ {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAa,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,WAAW,2FActB,CAAC"}
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  tags: "ui"[];
4
4
  experimental: false;
5
5
  description: string;
6
- component: import("react").ForwardRefExoticComponent<import("./NumberInput").NumberInputProps & import("react").RefAttributes<import("react-native").TextInput>>;
6
+ component: import("react").ForwardRefExoticComponent<import("./NumberInput").NumberInputProps & import("react").RefAttributes<import("./TextInput.types").TextInputElement>>;
7
7
  styleFn: () => {
8
8
  caption: {
9
9
  display: "flex";
@@ -28,14 +28,14 @@ declare const _default: {
28
28
  fontWeight?: import("react-native").TextStyle["fontWeight"];
29
29
  };
30
30
  errorText: {
31
- color: string;
31
+ color: import("@alveole/theme").ThemeColor;
32
32
  };
33
33
  successText: {
34
- color: string;
34
+ color: import("@alveole/theme").ThemeColor;
35
35
  };
36
36
  modalOverlay: {
37
37
  flex: number;
38
- backgroundColor: string;
38
+ backgroundColor: import("@alveole/theme").ThemeColor;
39
39
  };
40
40
  modalSheet: {
41
41
  width: "100%";
@@ -73,12 +73,12 @@ declare const _default: {
73
73
  modalInputContainer: {
74
74
  borderRadius: import("@alveole/theme").Radius;
75
75
  borderWidth: number;
76
- borderColor: string;
76
+ borderColor: import("@alveole/theme").ThemeColor;
77
77
  backgroundColor: "#FFFFFF";
78
78
  minHeight: number;
79
79
  };
80
80
  modalInput: {
81
- color: string;
81
+ color: import("@alveole/theme").ThemeColor;
82
82
  paddingLeft: string | number;
83
83
  paddingRight: string | number;
84
84
  paddingTop: string | number;
@@ -93,14 +93,14 @@ declare const _default: {
93
93
  };
94
94
  inputFocused: import("@alveole/theme").FocusBorderStyle;
95
95
  inputError: {
96
- borderColor: string;
96
+ borderColor: import("@alveole/theme").ThemeColor;
97
97
  };
98
98
  inputSuccess: {
99
- borderColor: string;
99
+ borderColor: import("@alveole/theme").ThemeColor;
100
100
  };
101
101
  inputDisabled: {
102
- backgroundColor: string;
103
- borderColor: string;
102
+ backgroundColor: import("@alveole/theme").ThemeColor;
103
+ borderColor: import("@alveole/theme").ThemeColor;
104
104
  };
105
105
  inputContainer: {
106
106
  width: "100%";
@@ -112,7 +112,7 @@ declare const _default: {
112
112
  padding: number;
113
113
  borderRadius: import("@alveole/theme").Radius;
114
114
  borderWidth: number;
115
- borderColor: string;
115
+ borderColor: import("@alveole/theme").ThemeColor;
116
116
  backgroundColor: "#FFFFFF";
117
117
  overflow: "hidden";
118
118
  width: "100%";
@@ -122,7 +122,7 @@ declare const _default: {
122
122
  display: "flex";
123
123
  flexDirection: "row";
124
124
  outline: string;
125
- color: string;
125
+ color: import("@alveole/theme").ThemeColor;
126
126
  fontFamily: string;
127
127
  fontSize: 14;
128
128
  marginTop: string | number;
@@ -138,7 +138,7 @@ declare const _default: {
138
138
  letterSpacing: 0;
139
139
  fontFamily: string;
140
140
  fontWeight?: import("react-native").TextStyle["fontWeight"];
141
- color: string;
141
+ color: import("@alveole/theme").ThemeColor;
142
142
  };
143
143
  inputWeb: {
144
144
  borderWidth: number;
@@ -162,7 +162,7 @@ declare const _default: {
162
162
  justifyContent: "space-between";
163
163
  };
164
164
  label: {
165
- color: string;
165
+ color: import("@alveole/theme").ThemeColor;
166
166
  fontSize: 14;
167
167
  lineHeight: 20;
168
168
  letterSpacing: 0;
@@ -170,7 +170,7 @@ declare const _default: {
170
170
  fontWeight?: import("react-native").TextStyle["fontWeight"];
171
171
  };
172
172
  labelDisabled: {
173
- color: string;
173
+ color: import("@alveole/theme").ThemeColor;
174
174
  };
175
175
  hintContainer: {
176
176
  display: "flex";
@@ -178,7 +178,7 @@ declare const _default: {
178
178
  justifyContent: "space-between";
179
179
  };
180
180
  hint: {
181
- color: string;
181
+ color: import("@alveole/theme").ThemeColor;
182
182
  fontSize: 12;
183
183
  lineHeight: 20;
184
184
  letterSpacing: 0;
@@ -186,10 +186,10 @@ declare const _default: {
186
186
  fontWeight?: import("react-native").TextStyle["fontWeight"];
187
187
  };
188
188
  hintDisabled: {
189
- color: string;
189
+ color: import("@alveole/theme").ThemeColor;
190
190
  };
191
191
  requiredMarker: {
192
- color: string;
192
+ color: import("@alveole/theme").ThemeColor;
193
193
  marginLeft: string | number;
194
194
  fontSize: 14;
195
195
  lineHeight: 20;
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAQkB;AAElB,eAAO,MAAM,OAAO,mCAOnB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAoBtB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAIrB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"NumberInput.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBAQkB;AAElB,eAAO,MAAM,OAAO,mCAOnB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAoBtB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAIrB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Spacings } from '@alveole/theme';
2
3
  import { useState } from 'react';
3
4
  import { Box } from '../../core/Box';
4
5
  import { Typography } from '../../core/Typography';
@@ -19,7 +20,7 @@ export const Default = () => {
19
20
  };
20
21
  export const AvecUnites = () => {
21
22
  const [value, setValue] = useState(null);
22
- return (_jsx(FormControl, { label: "Avec unit\u00E9s", children: _jsx(NumberInput, { value: value, onChange: setValue, startAdornment: _jsx(Box, { style: { paddingLeft: 8, paddingRight: 4 }, children: _jsx(Typography, { children: "\u20AC" }) }), endAdornment: _jsx(Box, { style: { paddingLeft: 4, paddingRight: 8 }, children: _jsx(Typography, { children: "TTC" }) }) }) }));
23
+ return (_jsx(FormControl, { label: "Avec unit\u00E9s", children: _jsx(NumberInput, { value: value, onChange: setValue, startAdornment: _jsx(Box, { style: { paddingLeft: Spacings['1W'], paddingRight: Spacings['1V'] }, children: _jsx(Typography, { children: "\u20AC" }) }), endAdornment: _jsx(Box, { style: { paddingLeft: Spacings['1V'], paddingRight: Spacings['1W'] }, children: _jsx(Typography, { children: "TTC" }) }) }) }));
23
24
  };
24
25
  export const Desactive = () => (_jsx(FormControl, { label: "D\u00E9sactiv\u00E9", children: _jsx(NumberInput, { value: 42, onChange: () => { }, disabled: true }) }));
25
26
  export * as Sources from './NumberInput.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAsQ,CAAC;AAE3R,eAAO,MAAM,UAAU,cAAqkB,CAAC;AAE7lB,eAAO,MAAM,SAAS,cAAmK,CAAC;AAE1L,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"NumberInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/NumberInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAsQ,CAAC;AAE3R,eAAO,MAAM,UAAU,cAAynB,CAAC;AAEjpB,eAAO,MAAM,SAAS,cAAmK,CAAC;AAE1L,eAAO,MAAM,YAAY;;;;CAIf,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/FormControl/NumberInput.stories.tsx
3
3
  export const Default = () => "export const Default = () => {\n const [value, setValue] = useState<number | null>(null);\n return (\n <FormControl label=\"Montant\">\n <NumberInput value={value} onChange={setValue} placeholder=\"Quantité\" />\n </FormControl>\n );\n};";
4
- export const AvecUnites = () => "export const AvecUnites = () => {\n const [value, setValue] = useState<number | null>(null);\n return (\n <FormControl label=\"Avec unités\">\n <NumberInput\n value={value}\n onChange={setValue}\n startAdornment={\n <Box style={{ paddingLeft: 8, paddingRight: 4 }}>\n <Typography>€</Typography>\n </Box>\n }\n endAdornment={\n <Box style={{ paddingLeft: 4, paddingRight: 8 }}>\n <Typography>TTC</Typography>\n </Box>\n }\n />\n </FormControl>\n );\n};";
4
+ export const AvecUnites = () => "export const AvecUnites = () => {\n const [value, setValue] = useState<number | null>(null);\n return (\n <FormControl label=\"Avec unités\">\n <NumberInput\n value={value}\n onChange={setValue}\n startAdornment={\n <Box style={{ paddingLeft: Spacings['1W'], paddingRight: Spacings['1V'] }}>\n <Typography>€</Typography>\n </Box>\n }\n endAdornment={\n <Box style={{ paddingLeft: Spacings['1V'], paddingRight: Spacings['1W'] }}>\n <Typography>TTC</Typography>\n </Box>\n }\n />\n </FormControl>\n );\n};";
5
5
  export const Desactive = () => "export const Desactive = () => (\n <FormControl label=\"Désactivé\">\n <NumberInput value={42} onChange={() => {}} disabled />\n </FormControl>\n);";
6
6
  export const storySources = {
7
7
  Default,
@@ -18,7 +18,7 @@ declare const _default: {
18
18
  pinCodeContainerStyle: {
19
19
  borderRadius: import("@alveole/theme").Radius;
20
20
  borderWidth: number;
21
- borderColor: string;
21
+ borderColor: import("@alveole/theme").ThemeColor;
22
22
  backgroundColor: "#FFFFFF";
23
23
  overflow: "hidden";
24
24
  height: import("@alveole/theme").Spacing;
@@ -27,13 +27,13 @@ declare const _default: {
27
27
  alignItems: "center";
28
28
  };
29
29
  pinCodeContainerStyleDisabled: {
30
- backgroundColor: string;
30
+ backgroundColor: import("@alveole/theme").ThemeColor;
31
31
  };
32
32
  pinCodeContainerStyleError: {
33
- borderColor: string;
33
+ borderColor: import("@alveole/theme").ThemeColor;
34
34
  };
35
35
  pinCodeContainerStyleSuccess: {
36
- borderColor: string;
36
+ borderColor: import("@alveole/theme").ThemeColor;
37
37
  };
38
38
  focusedPinCodeContainerStyle: import("@alveole/theme").FocusBorderStyle;
39
39
  hiddenInputStyle: {
@@ -48,7 +48,7 @@ declare const _default: {
48
48
  letterSpacing: 0;
49
49
  fontFamily: string;
50
50
  fontWeight?: import("react-native").TextStyle["fontWeight"];
51
- color: string;
51
+ color: import("@alveole/theme").ThemeColor;
52
52
  };
53
53
  };
54
54
  };
@@ -11,5 +11,5 @@ export default {
11
11
  component: OtpInput,
12
12
  styleFn: useStyles,
13
13
  };
14
- export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(FormControl, { label: "Code de v\u00E9rification", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { } }) }), _jsx(FormControl, { label: "Avec erreur", error: "Code invalide", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, error: "Code invalide" }) }), _jsx(FormControl, { label: "Avec succ\u00E8s", success: "Code v\u00E9rifi\u00E9", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, success: "Code v\u00E9rifi\u00E9" }) }), _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, disabled: true }) })] }));
14
+ export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Code de v\u00E9rification", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { } }) }), _jsx(FormControl, { label: "Avec erreur", error: "Code invalide", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, error: "Code invalide" }) }), _jsx(FormControl, { label: "Avec succ\u00E8s", success: "Code v\u00E9rifi\u00E9", children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, success: "Code v\u00E9rifi\u00E9" }) }), _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(OtpInput, { numberOfDigits: 4, onChange: () => { }, disabled: true }) })] }));
15
15
  export * as Sources from './OtpInput.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"OtpInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/OtpInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA8sB,CAAC;AAEnuB,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"OtpInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/OtpInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAgtB,CAAC;AAEruB,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/FormControl/OtpInput.stories.tsx
3
- export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <FormControl label=\"Code de vérification\">\n <OtpInput numberOfDigits={4} onChange={() => {}} />\n </FormControl>\n <FormControl label=\"Avec erreur\" error=\"Code invalide\">\n <OtpInput numberOfDigits={4} onChange={() => {}} error=\"Code invalide\" />\n </FormControl>\n <FormControl label=\"Avec succès\" success=\"Code vérifié\">\n <OtpInput numberOfDigits={4} onChange={() => {}} success=\"Code vérifié\" />\n </FormControl>\n <FormControl label=\"Désactivé\" disabled>\n <OtpInput numberOfDigits={4} onChange={() => {}} disabled />\n </FormControl>\n </Box>\n);";
3
+ export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Code de vérification\">\n <OtpInput numberOfDigits={4} onChange={() => {}} />\n </FormControl>\n <FormControl label=\"Avec erreur\" error=\"Code invalide\">\n <OtpInput numberOfDigits={4} onChange={() => {}} error=\"Code invalide\" />\n </FormControl>\n <FormControl label=\"Avec succès\" success=\"Code vérifié\">\n <OtpInput numberOfDigits={4} onChange={() => {}} success=\"Code vérifié\" />\n </FormControl>\n <FormControl label=\"Désactivé\" disabled>\n <OtpInput numberOfDigits={4} onChange={() => {}} disabled />\n </FormControl>\n </Box>\n);";
4
4
  export const storySources = {
5
5
  Default,
6
6
  };
@@ -7,7 +7,7 @@ export declare const useStyles: () => {
7
7
  pinCodeContainerStyle: {
8
8
  borderRadius: import("@alveole/theme").Radius;
9
9
  borderWidth: number;
10
- borderColor: string;
10
+ borderColor: import("@alveole/theme").ThemeColor;
11
11
  backgroundColor: "#FFFFFF";
12
12
  overflow: "hidden";
13
13
  height: import("@alveole/theme").Spacing;
@@ -16,13 +16,13 @@ export declare const useStyles: () => {
16
16
  alignItems: "center";
17
17
  };
18
18
  pinCodeContainerStyleDisabled: {
19
- backgroundColor: string;
19
+ backgroundColor: import("@alveole/theme").ThemeColor;
20
20
  };
21
21
  pinCodeContainerStyleError: {
22
- borderColor: string;
22
+ borderColor: import("@alveole/theme").ThemeColor;
23
23
  };
24
24
  pinCodeContainerStyleSuccess: {
25
- borderColor: string;
25
+ borderColor: import("@alveole/theme").ThemeColor;
26
26
  };
27
27
  /**
28
28
  * La cellule active ne recoit pas d'anneau : c'est sa propre bordure qui change de
@@ -48,7 +48,7 @@ export declare const useStyles: () => {
48
48
  letterSpacing: 0;
49
49
  fontFamily: string;
50
50
  fontWeight?: import("react-native").TextStyle["fontWeight"];
51
- color: string;
51
+ color: import("@alveole/theme").ThemeColor;
52
52
  };
53
53
  };
54
54
  //# sourceMappingURL=OtpInput.styles.d.ts.map
@@ -11,8 +11,8 @@ export const useStyles = makeStyles(({ text, color, spacing, spacingValue, radiu
11
11
  borderColor: color.border['default-grey'],
12
12
  backgroundColor: '#FFFFFF',
13
13
  overflow: 'hidden',
14
- height: spacingValue('300'),
15
- width: spacingValue('300'),
14
+ height: spacingValue('6W'),
15
+ width: spacingValue('6W'),
16
16
  justifyContent: 'center',
17
17
  alignItems: 'center',
18
18
  },
@@ -15,5 +15,5 @@ export declare const TextInput: React.ForwardRefExoticComponent<Omit<import("rea
15
15
  openModal?: boolean;
16
16
  modalSubmitLabel?: string;
17
17
  onModalSubmit?: () => void;
18
- } & React.RefAttributes<import("react-native").TextInput>>;
18
+ } & React.RefAttributes<TextInputElement>>;
19
19
  //# sourceMappingURL=TextInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKrE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;0DAgBpB,CAAC"}
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKrE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;0CAgBpB,CAAC"}
@@ -13,7 +13,7 @@ declare const _default: {
13
13
  openModal?: boolean;
14
14
  modalSubmitLabel?: string;
15
15
  onModalSubmit?: () => void;
16
- } & import("react").RefAttributes<import("react-native").TextInput>>;
16
+ } & import("react").RefAttributes<import("./TextInput.types").TextInputElement>>;
17
17
  styleFn: () => {
18
18
  caption: {
19
19
  display: "flex";
@@ -38,14 +38,14 @@ declare const _default: {
38
38
  fontWeight?: import("react-native").TextStyle["fontWeight"];
39
39
  };
40
40
  errorText: {
41
- color: string;
41
+ color: import("@alveole/theme").ThemeColor;
42
42
  };
43
43
  successText: {
44
- color: string;
44
+ color: import("@alveole/theme").ThemeColor;
45
45
  };
46
46
  modalOverlay: {
47
47
  flex: number;
48
- backgroundColor: string;
48
+ backgroundColor: import("@alveole/theme").ThemeColor;
49
49
  };
50
50
  modalSheet: {
51
51
  width: "100%";
@@ -83,12 +83,12 @@ declare const _default: {
83
83
  modalInputContainer: {
84
84
  borderRadius: import("@alveole/theme").Radius;
85
85
  borderWidth: number;
86
- borderColor: string;
86
+ borderColor: import("@alveole/theme").ThemeColor;
87
87
  backgroundColor: "#FFFFFF";
88
88
  minHeight: number;
89
89
  };
90
90
  modalInput: {
91
- color: string;
91
+ color: import("@alveole/theme").ThemeColor;
92
92
  paddingLeft: string | number;
93
93
  paddingRight: string | number;
94
94
  paddingTop: string | number;
@@ -103,14 +103,14 @@ declare const _default: {
103
103
  };
104
104
  inputFocused: import("@alveole/theme").FocusBorderStyle;
105
105
  inputError: {
106
- borderColor: string;
106
+ borderColor: import("@alveole/theme").ThemeColor;
107
107
  };
108
108
  inputSuccess: {
109
- borderColor: string;
109
+ borderColor: import("@alveole/theme").ThemeColor;
110
110
  };
111
111
  inputDisabled: {
112
- backgroundColor: string;
113
- borderColor: string;
112
+ backgroundColor: import("@alveole/theme").ThemeColor;
113
+ borderColor: import("@alveole/theme").ThemeColor;
114
114
  };
115
115
  inputContainer: {
116
116
  width: "100%";
@@ -122,7 +122,7 @@ declare const _default: {
122
122
  padding: number;
123
123
  borderRadius: import("@alveole/theme").Radius;
124
124
  borderWidth: number;
125
- borderColor: string;
125
+ borderColor: import("@alveole/theme").ThemeColor;
126
126
  backgroundColor: "#FFFFFF";
127
127
  overflow: "hidden";
128
128
  width: "100%";
@@ -132,7 +132,7 @@ declare const _default: {
132
132
  display: "flex";
133
133
  flexDirection: "row";
134
134
  outline: string;
135
- color: string;
135
+ color: import("@alveole/theme").ThemeColor;
136
136
  fontFamily: string;
137
137
  fontSize: 14;
138
138
  marginTop: string | number;
@@ -148,7 +148,7 @@ declare const _default: {
148
148
  letterSpacing: 0;
149
149
  fontFamily: string;
150
150
  fontWeight?: import("react-native").TextStyle["fontWeight"];
151
- color: string;
151
+ color: import("@alveole/theme").ThemeColor;
152
152
  };
153
153
  inputWeb: {
154
154
  borderWidth: number;
@@ -172,7 +172,7 @@ declare const _default: {
172
172
  justifyContent: "space-between";
173
173
  };
174
174
  label: {
175
- color: string;
175
+ color: import("@alveole/theme").ThemeColor;
176
176
  fontSize: 14;
177
177
  lineHeight: 20;
178
178
  letterSpacing: 0;
@@ -180,7 +180,7 @@ declare const _default: {
180
180
  fontWeight?: import("react-native").TextStyle["fontWeight"];
181
181
  };
182
182
  labelDisabled: {
183
- color: string;
183
+ color: import("@alveole/theme").ThemeColor;
184
184
  };
185
185
  hintContainer: {
186
186
  display: "flex";
@@ -188,7 +188,7 @@ declare const _default: {
188
188
  justifyContent: "space-between";
189
189
  };
190
190
  hint: {
191
- color: string;
191
+ color: import("@alveole/theme").ThemeColor;
192
192
  fontSize: 12;
193
193
  lineHeight: 20;
194
194
  letterSpacing: 0;
@@ -196,10 +196,10 @@ declare const _default: {
196
196
  fontWeight?: import("react-native").TextStyle["fontWeight"];
197
197
  };
198
198
  hintDisabled: {
199
- color: string;
199
+ color: import("@alveole/theme").ThemeColor;
200
200
  };
201
201
  requiredMarker: {
202
- color: string;
202
+ color: import("@alveole/theme").ThemeColor;
203
203
  marginLeft: string | number;
204
204
  fontSize: 14;
205
205
  lineHeight: 20;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { TextInput as ReactNativeTextInput, TextInputProps as ReactNativeTextInputProps } from 'react-native';
3
- export type TextInputElement = ReactNativeTextInput;
2
+ import { TextInputProps as ReactNativeTextInputProps, TextInputInstance } from 'react-native';
3
+ export interface TextInputElement extends TextInputInstance {
4
+ }
4
5
  export type TextInputProps = Omit<ReactNativeTextInputProps, 'style'> & {
5
6
  type?: 'text' | 'email' | 'tel' | 'password';
6
7
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.types.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,cAAc,IAAI,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAE9G,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,GAAG;IAEtE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"TextInput.types.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,IAAI,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAI9F,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;CAAG;AAE9D,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,GAAG;IAEtE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TextInput as ReactNativeTextInput } from 'react-native';
2
+ import { TextInputElement } from './TextInput.types';
3
3
  /**
4
4
  * La saisie ordinaire : on ecrit dans le champ la ou il est. Le focus est tenu ici et non
5
5
  * laisse a la plateforme, parce que le contour se dessine sur le cadre et non sur le champ.
@@ -14,5 +14,5 @@ export declare const TextInputInline: React.ForwardRefExoticComponent<Omit<impor
14
14
  openModal?: boolean;
15
15
  modalSubmitLabel?: string;
16
16
  onModalSubmit?: () => void;
17
- } & React.RefAttributes<ReactNativeTextInput>>;
17
+ } & React.RefAttributes<TextInputElement>>;
18
18
  //# sourceMappingURL=TextInputInline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInputInline.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInputInline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmC,SAAS,IAAI,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAoClG;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;8CA0D1B,CAAC"}
1
+ {"version":3,"file":"TextInputInline.d.ts","sourceRoot":"","sources":["../../../src/ui/FormControl/TextInputInline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,gBAAgB,EAAkB,MAAM,mBAAmB,CAAC;AAgCrE;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;0CA0D1B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TextInput as ReactNativeTextInput } from 'react-native';
2
+ import { TextInputElement } from './TextInput.types';
3
3
  /**
4
4
  * Le champ tel qu'il apparait dans le formulaire quand la saisie vit en modale : il a
5
5
  * l'allure d'un champ mais n'en est pas un. Tout ce qui pourrait y installer un curseur
@@ -18,5 +18,5 @@ export declare const TextInputMirror: React.ForwardRefExoticComponent<Omit<impor
18
18
  } & {
19
19
  isOpen: boolean;
20
20
  onOpen: () => void;
21
- } & React.RefAttributes<ReactNativeTextInput>>;
21
+ } & React.RefAttributes<TextInputElement>>;
22
22
  //# sourceMappingURL=TextInputMirror.d.ts.map