@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
@@ -19,7 +19,7 @@ declare const _default: {
19
19
  gap: string | number;
20
20
  };
21
21
  title: {
22
- color: string;
22
+ color: import("@alveole/theme").ThemeColor;
23
23
  fontSize: 24 | 22;
24
24
  lineHeight: 28 | 32;
25
25
  letterSpacing: 0;
@@ -12,7 +12,7 @@ export declare const useStyles: () => {
12
12
  gap: string | number;
13
13
  };
14
14
  title: {
15
- color: string;
15
+ color: import("@alveole/theme").ThemeColor;
16
16
  fontSize: 24 | 22;
17
17
  lineHeight: 28 | 32;
18
18
  letterSpacing: 0;
@@ -22,5 +22,5 @@ export const Popover = (props) => {
22
22
  const maxW = popoverStyles.maxW ?? '100%';
23
23
  return (_jsxs(TamaguiPopover, { placement: placement, disableFocus: true, open: open, onOpenChange: setOpen, children: [_jsx(TamaguiPopover.Trigger, { asChild: true, children: renderTrigger({ open }) }), _jsx(TamaguiPopover.Content, { trapFocus: false, disableFocusScope: true, ...spacings,
24
24
  // {...styles.tamaguiPopoverContent}
25
- style: [{ maxHeight: scrollable ? maxH : undefined, maxWidth: scrollable ? maxW : undefined }, styles.content], children: scrollable ? (_jsx(YStack, { style: { overflow: 'hidden' }, children: _jsx(ScrollView, { style: { maxHeight: maxH - spacingValue('025'), flexGrow: 0, flexShrink: 0 }, children: children }) })) : (children) })] }));
25
+ style: [{ maxHeight: scrollable ? maxH : undefined, maxWidth: scrollable ? maxW : undefined }, styles.content], children: scrollable ? (_jsx(YStack, { style: { overflow: 'hidden' }, children: _jsx(ScrollView, { style: { maxHeight: maxH - spacingValue('1V'), flexGrow: 0, flexShrink: 0 }, children: children }) })) : (children) })] }));
26
26
  };
@@ -17,8 +17,8 @@ declare const _default: {
17
17
  borderRadius: import("@alveole/theme").Radius;
18
18
  borderWidth: number;
19
19
  borderStyle: "solid";
20
- borderColor: string;
21
- backgroundColor: string;
20
+ borderColor: import("@alveole/theme").ThemeColor;
21
+ backgroundColor: import("@alveole/theme").ThemeColor;
22
22
  } | {
23
23
  shadowColor: string;
24
24
  shadowOffset: {
@@ -38,8 +38,8 @@ declare const _default: {
38
38
  borderRadius: import("@alveole/theme").Radius;
39
39
  borderWidth: number;
40
40
  borderStyle: "solid";
41
- borderColor: string;
42
- backgroundColor: string;
41
+ borderColor: import("@alveole/theme").ThemeColor;
42
+ backgroundColor: import("@alveole/theme").ThemeColor;
43
43
  } | {
44
44
  boxShadow: string;
45
45
  display: "flex";
@@ -52,8 +52,8 @@ declare const _default: {
52
52
  borderRadius: import("@alveole/theme").Radius;
53
53
  borderWidth: number;
54
54
  borderStyle: "solid";
55
- borderColor: string;
56
- backgroundColor: string;
55
+ borderColor: import("@alveole/theme").ThemeColor;
56
+ backgroundColor: import("@alveole/theme").ThemeColor;
57
57
  };
58
58
  };
59
59
  };
@@ -10,8 +10,8 @@ export declare const useStyles: () => {
10
10
  borderRadius: import("@alveole/theme").Radius;
11
11
  borderWidth: number;
12
12
  borderStyle: "solid";
13
- borderColor: string;
14
- backgroundColor: string;
13
+ borderColor: import("@alveole/theme").ThemeColor;
14
+ backgroundColor: import("@alveole/theme").ThemeColor;
15
15
  } | {
16
16
  shadowColor: string;
17
17
  shadowOffset: {
@@ -31,8 +31,8 @@ export declare const useStyles: () => {
31
31
  borderRadius: import("@alveole/theme").Radius;
32
32
  borderWidth: number;
33
33
  borderStyle: "solid";
34
- borderColor: string;
35
- backgroundColor: string;
34
+ borderColor: import("@alveole/theme").ThemeColor;
35
+ backgroundColor: import("@alveole/theme").ThemeColor;
36
36
  } | {
37
37
  boxShadow: string;
38
38
  display: "flex";
@@ -45,8 +45,8 @@ export declare const useStyles: () => {
45
45
  borderRadius: import("@alveole/theme").Radius;
46
46
  borderWidth: number;
47
47
  borderStyle: "solid";
48
- borderColor: string;
49
- backgroundColor: string;
48
+ borderColor: import("@alveole/theme").ThemeColor;
49
+ backgroundColor: import("@alveole/theme").ThemeColor;
50
50
  };
51
51
  };
52
52
  //# sourceMappingURL=Popover.styles.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { TextInput as ReactNativeTextInput } from 'react-native';
3
- import { NumberInputProps } from '../FormControl';
2
+ import { NumberInputProps, TextInputElement } from '../FormControl';
4
3
  export type PriceInputProps = NumberInputProps & {
5
4
  autoFocus?: boolean;
6
5
  devise?: '€';
@@ -10,5 +9,5 @@ export declare const PriceInput: React.ForwardRefExoticComponent<NumberInputProp
10
9
  autoFocus?: boolean;
11
10
  devise?: "\u20AC";
12
11
  onChange?: NumberInputProps["onChange"];
13
- } & React.RefAttributes<ReactNativeTextInput>>;
12
+ } & React.RefAttributes<TextInputElement>>;
14
13
  //# sourceMappingURL=PriceInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PriceInput.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/PriceInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAoB,MAAM,gBAAgB,CAAC;AAIpE,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,UAAU;gBALT,OAAO;aACV,QAAG;eACD,gBAAgB,CAAC,UAAU,CAAC;8CAuCvC,CAAC"}
1
+ {"version":3,"file":"PriceInput.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/PriceInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIpE,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,UAAU;gBALT,OAAO;aACV,QAAG;eACD,gBAAgB,CAAC,UAAU,CAAC;0CAuCvC,CAAC"}
@@ -6,7 +6,7 @@ import { Typography } from '../../core/Typography';
6
6
  import { useFieldFocus } from '../FormControl/useFieldFocus';
7
7
  import { useStyles } from './PriceInput.styles';
8
8
  export const PriceInput = React.forwardRef(function PriceInput(props, ref) {
9
- const { value, devise, onChange, ...inputProps } = props;
9
+ const { value, devise, onChange, onKeyDown: _k, ...inputProps } = props;
10
10
  const styles = useStyles();
11
11
  const champ = useFieldFocus({ disabled: props.disabled, readOnly: props.readOnly });
12
12
  const numberLength = value ? String(value).length : 1;
@@ -8,14 +8,14 @@ declare const _default: {
8
8
  autoFocus?: boolean;
9
9
  devise?: "\u20AC";
10
10
  onChange?: import("..").NumberInputProps["onChange"];
11
- } & import("react").RefAttributes<import("react-native").TextInput>>;
11
+ } & import("react").RefAttributes<import("..").TextInputElement>>;
12
12
  styleFn: () => {
13
13
  container: {
14
14
  display: "flex";
15
15
  flexDirection: "column";
16
16
  width: "100%";
17
17
  borderBottomWidth: number;
18
- borderBottomColor: string;
18
+ borderBottomColor: import("@alveole/theme").ThemeColor;
19
19
  paddingBottom: string | number;
20
20
  };
21
21
  inputFocused: {
@@ -28,13 +28,13 @@ declare const _default: {
28
28
  outlineOffset?: number;
29
29
  };
30
30
  inputError: {
31
- borderBottomColor: string;
31
+ borderBottomColor: import("@alveole/theme").ThemeColor;
32
32
  };
33
33
  inputSuccess: {
34
- borderBottomColor: string;
34
+ borderBottomColor: import("@alveole/theme").ThemeColor;
35
35
  };
36
36
  inputDisabled: {
37
- borderBottomColor: string;
37
+ borderBottomColor: import("@alveole/theme").ThemeColor;
38
38
  };
39
39
  priceInputContainer: {
40
40
  display: "flex";
@@ -46,12 +46,12 @@ declare const _default: {
46
46
  borderWidth: number;
47
47
  backgroundColor: "transparent";
48
48
  textAlign: "center";
49
- color: string;
49
+ color: import("@alveole/theme").ThemeColor;
50
50
  fontFamily: string;
51
51
  fontSize: 64;
52
52
  };
53
53
  inputPlaceholder: {
54
- color: string;
54
+ color: import("@alveole/theme").ThemeColor;
55
55
  };
56
56
  inputDevise: {
57
57
  position: "relative";
@@ -61,7 +61,7 @@ declare const _default: {
61
61
  letterSpacing: 0;
62
62
  fontFamily: string;
63
63
  fontWeight?: import("react-native").TextStyle["fontWeight"];
64
- color: string;
64
+ color: import("@alveole/theme").ThemeColor;
65
65
  marginTop: string;
66
66
  marginBottom: string;
67
67
  };
@@ -15,7 +15,7 @@ export default {
15
15
  };
16
16
  export const Default = () => {
17
17
  const [value, setValue] = useState(null);
18
- return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(FormControl, { label: "Montant", children: _jsx(PriceInput, { value: value, onChange: setValue }) }), _jsx(FormControl, { label: "Montant saisi", children: _jsx(PriceInput, { value: 1250, onChange: () => { } }) })] }));
18
+ return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Montant", children: _jsx(PriceInput, { value: value, onChange: setValue }) }), _jsx(FormControl, { label: "Montant saisi", children: _jsx(PriceInput, { value: 1250, onChange: () => { } }) })] }));
19
19
  };
20
- export const States = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(FormControl, { label: "Erreur", error: "Montant requis", children: _jsx(PriceInput, { value: null, error: "Montant requis", onChange: () => { } }) }), _jsx(FormControl, { label: "Succ\u00E8s", success: "Enregistr\u00E9", children: _jsx(PriceInput, { value: 1250, success: "Enregistr\u00E9", onChange: () => { } }) }), _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(PriceInput, { value: 1250, disabled: true, onChange: () => { } }) })] }));
20
+ export const States = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(FormControl, { label: "Erreur", error: "Montant requis", children: _jsx(PriceInput, { value: null, error: "Montant requis", onChange: () => { } }) }), _jsx(FormControl, { label: "Succ\u00E8s", success: "Enregistr\u00E9", children: _jsx(PriceInput, { value: 1250, success: "Enregistr\u00E9", onChange: () => { } }) }), _jsx(FormControl, { label: "D\u00E9sactiv\u00E9", disabled: true, children: _jsx(PriceInput, { value: 1250, disabled: true, onChange: () => { } }) })] }));
21
21
  export * as Sources from './PriceInput.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"PriceInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/PriceInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAwb,CAAC;AAE7c,eAAO,MAAM,MAAM,cAAojB,CAAC;AAExkB,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"PriceInput.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/PriceInput.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA0b,CAAC;AAE/c,eAAO,MAAM,MAAM,cAAsjB,CAAC;AAE1kB,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/PriceInput/PriceInput.stories.tsx
3
- export const Default = () => "export const Default = () => {\n const [value, setValue] = useState<number | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <FormControl label=\"Montant\">\n <PriceInput value={value} onChange={setValue} />\n </FormControl>\n <FormControl label=\"Montant saisi\">\n <PriceInput value={1250} onChange={() => {}} />\n </FormControl>\n </Box>\n );\n};";
4
- export const States = () => "export const States = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <FormControl label=\"Erreur\" error=\"Montant requis\">\n <PriceInput value={null} error=\"Montant requis\" onChange={() => {}} />\n </FormControl>\n <FormControl label=\"Succès\" success=\"Enregistré\">\n <PriceInput value={1250} success=\"Enregistré\" onChange={() => {}} />\n </FormControl>\n <FormControl label=\"Désactivé\" disabled>\n <PriceInput value={1250} disabled onChange={() => {}} />\n </FormControl>\n </Box>\n);";
3
+ export const Default = () => "export const Default = () => {\n const [value, setValue] = useState<number | null>(null);\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Montant\">\n <PriceInput value={value} onChange={setValue} />\n </FormControl>\n <FormControl label=\"Montant saisi\">\n <PriceInput value={1250} onChange={() => {}} />\n </FormControl>\n </Box>\n );\n};";
4
+ export const States = () => "export const States = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <FormControl label=\"Erreur\" error=\"Montant requis\">\n <PriceInput value={null} error=\"Montant requis\" onChange={() => {}} />\n </FormControl>\n <FormControl label=\"Succès\" success=\"Enregistré\">\n <PriceInput value={1250} success=\"Enregistré\" onChange={() => {}} />\n </FormControl>\n <FormControl label=\"Désactivé\" disabled>\n <PriceInput value={1250} disabled onChange={() => {}} />\n </FormControl>\n </Box>\n);";
5
5
  export const storySources = {
6
6
  Default,
7
7
  States,
@@ -4,7 +4,7 @@ export declare const useStyles: () => {
4
4
  flexDirection: "column";
5
5
  width: "100%";
6
6
  borderBottomWidth: number;
7
- borderBottomColor: string;
7
+ borderBottomColor: import("@alveole/theme").ThemeColor;
8
8
  paddingBottom: string | number;
9
9
  };
10
10
  inputFocused: {
@@ -17,13 +17,13 @@ export declare const useStyles: () => {
17
17
  outlineOffset?: number;
18
18
  };
19
19
  inputError: {
20
- borderBottomColor: string;
20
+ borderBottomColor: import("@alveole/theme").ThemeColor;
21
21
  };
22
22
  inputSuccess: {
23
- borderBottomColor: string;
23
+ borderBottomColor: import("@alveole/theme").ThemeColor;
24
24
  };
25
25
  inputDisabled: {
26
- borderBottomColor: string;
26
+ borderBottomColor: import("@alveole/theme").ThemeColor;
27
27
  };
28
28
  priceInputContainer: {
29
29
  display: "flex";
@@ -35,12 +35,12 @@ export declare const useStyles: () => {
35
35
  borderWidth: number;
36
36
  backgroundColor: "transparent";
37
37
  textAlign: "center";
38
- color: string;
38
+ color: import("@alveole/theme").ThemeColor;
39
39
  fontFamily: string;
40
40
  fontSize: 64;
41
41
  };
42
42
  inputPlaceholder: {
43
- color: string;
43
+ color: import("@alveole/theme").ThemeColor;
44
44
  };
45
45
  inputDevise: {
46
46
  position: "relative";
@@ -50,7 +50,7 @@ export declare const useStyles: () => {
50
50
  letterSpacing: 0;
51
51
  fontFamily: string;
52
52
  fontWeight?: import("react-native").TextStyle["fontWeight"];
53
- color: string;
53
+ color: import("@alveole/theme").ThemeColor;
54
54
  marginTop: string;
55
55
  marginBottom: string;
56
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PriceInput.web.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/PriceInput.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,UAAU;;;;0CAwCrB,CAAC"}
1
+ {"version":3,"file":"PriceInput.web.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/PriceInput.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,eAAO,MAAM,UAAU;;;;0CAuCrB,CAAC"}
@@ -5,6 +5,7 @@ import { Typography } from '../../core/Typography';
5
5
  import { useFieldId } from '../FormControl';
6
6
  import { useFieldFocus } from '../FormControl/useFieldFocus';
7
7
  import { cadrePrix } from './cadrePrix';
8
+ import { largeurDuChamp } from './largeurDuChamp';
8
9
  import { useStyles } from './PriceInput.styles';
9
10
  import { useSaisieMontant } from './useSaisieMontant';
10
11
  export const PriceInput = React.forwardRef(function PriceInput(props, ref) {
@@ -12,8 +13,7 @@ export const PriceInput = React.forwardRef(function PriceInput(props, ref) {
12
13
  const styles = useStyles();
13
14
  const champ = useFieldFocus({ disabled, readOnly });
14
15
  const { affichage, saisir } = useSaisieMontant(value, onChange);
15
- // Avec des chiffres tabulaires, un caractère occupe au plus 1 ch.
16
- const largeur = `${affichage.length || 1}ch`;
16
+ const largeur = largeurDuChamp(affichage);
17
17
  return (_jsx(Box, { tag: "price-input", style: cadrePrix(styles, { focus: champ.focus, disabled, error, success }), children: _jsxs(Box, { tag: "price-input-container", style: styles.priceInputContainer, children: [_jsx("input", { ref: ref, id: useFieldId(), autoFocus: autoFocus, disabled: disabled, readOnly: readOnly, className: "alveole-price-input", style: {
18
18
  ...styles.input,
19
19
  fontVariantNumeric: 'tabular-nums',
@@ -6,7 +6,33 @@ type Styles = ReturnType<typeof useStyles>;
6
6
  * les champs, dans la priorite commune de l'ADR 0012.
7
7
  */
8
8
  export declare const cadrePrix: (styles: Styles, state: FieldBorderState) => {
9
+ borderBottomWidth: number;
9
10
  borderBottomColor: string;
11
+ borderRadius?: import("@alveole/theme").Radius | undefined;
12
+ outlineWidth?: number | undefined;
13
+ outlineStyle?: "solid" | undefined;
14
+ outlineColor?: string | undefined;
15
+ outlineOffset?: number | undefined;
16
+ display: "flex";
17
+ flexDirection: "column";
18
+ width: "100%";
19
+ paddingBottom: string | number;
20
+ } | {
21
+ borderBottomColor: import("@alveole/theme").ThemeColor;
22
+ display: "flex";
23
+ flexDirection: "column";
24
+ width: "100%";
25
+ borderBottomWidth: number;
26
+ paddingBottom: string | number;
27
+ } | {
28
+ borderBottomColor: import("@alveole/theme").ThemeColor;
29
+ display: "flex";
30
+ flexDirection: "column";
31
+ width: "100%";
32
+ borderBottomWidth: number;
33
+ paddingBottom: string | number;
34
+ } | {
35
+ borderBottomColor: import("@alveole/theme").ThemeColor;
10
36
  display: "flex";
11
37
  flexDirection: "column";
12
38
  width: "100%";
@@ -1 +1 @@
1
- {"version":3,"file":"cadrePrix.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/cadrePrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,EAAE,OAAO,gBAAgB;;;;;;;CAG/D,CAAC"}
1
+ {"version":3,"file":"cadrePrix.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/cadrePrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,EAAE,OAAO,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const largeurDuChamp: (affichage: string) => string;
2
+ //# sourceMappingURL=largeurDuChamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"largeurDuChamp.d.ts","sourceRoot":"","sources":["../../../src/ui/PriceInput/largeurDuChamp.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,WAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ // Avec des chiffres tabulaires, un caractère occupe au plus 1 ch.
2
+ export const largeurDuChamp = (affichage) => `${affichage.length || 1}ch`;
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  progressed: {
10
10
  height: "100%";
11
11
  borderRadius: import("@alveole/theme").Radius;
12
- backgroundColor: string;
12
+ backgroundColor: import("@alveole/theme").ThemeColor;
13
13
  };
14
14
  progressedAbsolute: {
15
15
  position: "absolute";
@@ -17,10 +17,10 @@ declare const _default: {
17
17
  bottom: number;
18
18
  left: number;
19
19
  borderRadius: import("@alveole/theme").Radius;
20
- backgroundColor: string;
20
+ backgroundColor: import("@alveole/theme").ThemeColor;
21
21
  };
22
22
  progress: {
23
- backgroundColor: string;
23
+ backgroundColor: import("@alveole/theme").ThemeColor;
24
24
  width: "100%";
25
25
  borderRadius: import("@alveole/theme").Radius;
26
26
  overflow: "hidden";
@@ -32,10 +32,10 @@ declare const _default: {
32
32
  bottom: number;
33
33
  width: "100%";
34
34
  borderRadius: import("@alveole/theme").Radius;
35
- backgroundColor: string;
35
+ backgroundColor: import("@alveole/theme").ThemeColor;
36
36
  };
37
37
  indicator: {
38
- color: string;
38
+ color: import("@alveole/theme").ThemeColor;
39
39
  marginTop: string | number;
40
40
  marginLeft: string;
41
41
  marginRight: string;
@@ -58,7 +58,7 @@ declare const _default: {
58
58
  remaining: {
59
59
  height: "100%";
60
60
  borderRadius: import("@alveole/theme").Radius;
61
- backgroundColor: string;
61
+ backgroundColor: import("@alveole/theme").ThemeColor;
62
62
  };
63
63
  remainingAbsolute: {
64
64
  position: "absolute";
@@ -66,7 +66,7 @@ declare const _default: {
66
66
  bottom: number;
67
67
  right: number;
68
68
  borderRadius: import("@alveole/theme").Radius;
69
- backgroundColor: string;
69
+ backgroundColor: import("@alveole/theme").ThemeColor;
70
70
  };
71
71
  noRadius: {
72
72
  borderRadius: number;
@@ -2,7 +2,7 @@ export declare const useStyles: () => {
2
2
  progressed: {
3
3
  height: "100%";
4
4
  borderRadius: import("@alveole/theme").Radius;
5
- backgroundColor: string;
5
+ backgroundColor: import("@alveole/theme").ThemeColor;
6
6
  };
7
7
  progressedAbsolute: {
8
8
  position: "absolute";
@@ -10,10 +10,10 @@ export declare const useStyles: () => {
10
10
  bottom: number;
11
11
  left: number;
12
12
  borderRadius: import("@alveole/theme").Radius;
13
- backgroundColor: string;
13
+ backgroundColor: import("@alveole/theme").ThemeColor;
14
14
  };
15
15
  progress: {
16
- backgroundColor: string;
16
+ backgroundColor: import("@alveole/theme").ThemeColor;
17
17
  width: "100%";
18
18
  borderRadius: import("@alveole/theme").Radius;
19
19
  overflow: "hidden";
@@ -25,10 +25,10 @@ export declare const useStyles: () => {
25
25
  bottom: number;
26
26
  width: "100%";
27
27
  borderRadius: import("@alveole/theme").Radius;
28
- backgroundColor: string;
28
+ backgroundColor: import("@alveole/theme").ThemeColor;
29
29
  };
30
30
  indicator: {
31
- color: string;
31
+ color: import("@alveole/theme").ThemeColor;
32
32
  marginTop: string | number;
33
33
  marginLeft: string;
34
34
  marginRight: string;
@@ -51,7 +51,7 @@ export declare const useStyles: () => {
51
51
  remaining: {
52
52
  height: "100%";
53
53
  borderRadius: import("@alveole/theme").Radius;
54
- backgroundColor: string;
54
+ backgroundColor: import("@alveole/theme").ThemeColor;
55
55
  };
56
56
  remainingAbsolute: {
57
57
  position: "absolute";
@@ -59,7 +59,7 @@ export declare const useStyles: () => {
59
59
  bottom: number;
60
60
  right: number;
61
61
  borderRadius: import("@alveole/theme").Radius;
62
- backgroundColor: string;
62
+ backgroundColor: import("@alveole/theme").ThemeColor;
63
63
  };
64
64
  noRadius: {
65
65
  borderRadius: number;
@@ -32,17 +32,17 @@ declare const _default: {
32
32
  transitionTimingFunction: "ease-in-out";
33
33
  };
34
34
  itemCardHover: {
35
- backgroundColor: string;
35
+ backgroundColor: import("@alveole/theme").ThemeColor;
36
36
  };
37
37
  itemCardIcon: {
38
38
  display: "flex";
39
39
  justifyContent: "center";
40
40
  alignItems: "center";
41
- color: string;
41
+ color: import("@alveole/theme").ThemeColor;
42
42
  };
43
43
  itemCardSeparator: {
44
44
  borderTopWidth: number;
45
- borderTopColor: string;
45
+ borderTopColor: import("@alveole/theme").ThemeColor;
46
46
  };
47
47
  radioGroupCardContent: {
48
48
  display: "flex";
@@ -74,7 +74,7 @@ declare const _default: {
74
74
  };
75
75
  itemContainer: {
76
76
  backgroundColor: "#FFFFFF";
77
- borderColor: string;
77
+ borderColor: import("@alveole/theme").ThemeColor;
78
78
  };
79
79
  itemContainerSm: {
80
80
  height: import("@alveole/theme").Spacing;
@@ -85,10 +85,10 @@ declare const _default: {
85
85
  width: import("@alveole/theme").Spacing;
86
86
  };
87
87
  itemContainerActive: {
88
- borderColor: string;
88
+ borderColor: import("@alveole/theme").ThemeColor;
89
89
  };
90
90
  itemIndicator: {
91
- backgroundColor: string;
91
+ backgroundColor: import("@alveole/theme").ThemeColor;
92
92
  height: number;
93
93
  width: number;
94
94
  };
@@ -106,7 +106,7 @@ declare const _default: {
106
106
  flexDirection: "column";
107
107
  };
108
108
  groupCard: {
109
- borderColor: string;
109
+ borderColor: import("@alveole/theme").ThemeColor;
110
110
  borderRadius: import("@alveole/theme").Radius;
111
111
  borderWidth: number;
112
112
  overflow: "hidden";
@@ -120,7 +120,7 @@ declare const _default: {
120
120
  letterSpacing: 0;
121
121
  fontFamily: string;
122
122
  fontWeight?: import("react-native").TextStyle["fontWeight"];
123
- color: string;
123
+ color: import("@alveole/theme").ThemeColor;
124
124
  };
125
125
  };
126
126
  };
@@ -19,9 +19,9 @@ export const Cards = () => {
19
19
  const [value, setValue] = useState('oui');
20
20
  return (_jsxs(RadioGroup, { value: value, onChange: setValue, label: "Confirmez-vous ?", children: [_jsx(RadioGroup.Card, { value: "oui", label: "Oui", leading: "Check" }), _jsx(RadioGroup.Card, { value: "non", label: "Non", leading: "X" })] }));
21
21
  };
22
- export const WithError = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: 24, children: _jsxs(RadioGroup, { value: "a", label: "Avec erreur", error: "Veuillez faire un choix", children: [_jsx(RadioGroup.Item, { value: "a", children: "Option A" }), _jsx(RadioGroup.Item, { value: "b", children: "Option B" })] }) }));
22
+ export const WithError = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "3W", children: _jsxs(RadioGroup, { value: "a", label: "Avec erreur", error: "Veuillez faire un choix", children: [_jsx(RadioGroup.Item, { value: "a", children: "Option A" }), _jsx(RadioGroup.Item, { value: "b", children: "Option B" })] }) }));
23
23
  export const RadioInput = () => {
24
24
  const [value, setValue] = useState('tutu');
25
- return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(RadioGroup.Input, { id: "exemple-input", label: "Petit", size: "sm", value: "tutu", checked: value === 'tutu', onChange: setValue }), _jsx(RadioGroup.Input, { id: "exemple-input-md", label: "Moyen", size: "md", value: "toto", checked: value === 'toto', onChange: setValue })] }));
25
+ return (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(RadioGroup.Input, { id: "exemple-input", label: "Petit", size: "sm", value: "tutu", checked: value === 'tutu', onChange: setValue }), _jsx(RadioGroup.Input, { id: "exemple-input-md", label: "Moyen", size: "md", value: "toto", checked: value === 'toto', onChange: setValue })] }));
26
26
  };
27
27
  export * as Sources from './RadioGroup.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroup.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA+X,CAAC;AAEpZ,eAAO,MAAM,KAAK,cAA2V,CAAC;AAE9W,eAAO,MAAM,SAAS,cAA4V,CAAC;AAEnX,eAAO,MAAM,UAAU,cAAglB,CAAC;AAExmB,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"RadioGroup.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/RadioGroup/RadioGroup.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA+X,CAAC;AAEpZ,eAAO,MAAM,KAAK,cAA2V,CAAC;AAE9W,eAAO,MAAM,SAAS,cAA8V,CAAC;AAErX,eAAO,MAAM,UAAU,cAAklB,CAAC;AAE1mB,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -2,8 +2,8 @@
2
2
  // Source: src/ui/RadioGroup/RadioGroup.stories.tsx
3
3
  export const Default = () => "export const Default = () => {\n const [value, setValue] = useState('a');\n return (\n <RadioGroup value={value} onChange={setValue} label=\"Choix\">\n <RadioGroup.Item value=\"a\">Option A</RadioGroup.Item>\n <RadioGroup.Item value=\"b\">Option B</RadioGroup.Item>\n <RadioGroup.Item value=\"c\">Option C</RadioGroup.Item>\n </RadioGroup>\n );\n};";
4
4
  export const Cards = () => "export const Cards = () => {\n const [value, setValue] = useState('oui');\n return (\n <RadioGroup value={value} onChange={setValue} label=\"Confirmez-vous ?\">\n <RadioGroup.Card value=\"oui\" label=\"Oui\" leading=\"Check\" />\n <RadioGroup.Card value=\"non\" label=\"Non\" leading=\"X\" />\n </RadioGroup>\n );\n};";
5
- export const WithError = () => "export const WithError = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <RadioGroup value=\"a\" label=\"Avec erreur\" error=\"Veuillez faire un choix\">\n <RadioGroup.Item value=\"a\">Option A</RadioGroup.Item>\n <RadioGroup.Item value=\"b\">Option B</RadioGroup.Item>\n </RadioGroup>\n </Box>\n);";
6
- export const RadioInput = () => "export const RadioInput = () => {\n const [value, setValue] = useState('tutu');\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <RadioGroup.Input\n id=\"exemple-input\"\n label=\"Petit\"\n size=\"sm\"\n value=\"tutu\"\n checked={value === 'tutu'}\n onChange={setValue}\n />\n <RadioGroup.Input\n id=\"exemple-input-md\"\n label=\"Moyen\"\n size=\"md\"\n value=\"toto\"\n checked={value === 'toto'}\n onChange={setValue}\n />\n </Box>\n );\n};";
5
+ export const WithError = () => "export const WithError = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <RadioGroup value=\"a\" label=\"Avec erreur\" error=\"Veuillez faire un choix\">\n <RadioGroup.Item value=\"a\">Option A</RadioGroup.Item>\n <RadioGroup.Item value=\"b\">Option B</RadioGroup.Item>\n </RadioGroup>\n </Box>\n);";
6
+ export const RadioInput = () => "export const RadioInput = () => {\n const [value, setValue] = useState('tutu');\n\n return (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <RadioGroup.Input\n id=\"exemple-input\"\n label=\"Petit\"\n size=\"sm\"\n value=\"tutu\"\n checked={value === 'tutu'}\n onChange={setValue}\n />\n <RadioGroup.Input\n id=\"exemple-input-md\"\n label=\"Moyen\"\n size=\"md\"\n value=\"toto\"\n checked={value === 'toto'}\n onChange={setValue}\n />\n </Box>\n );\n};";
7
7
  export const storySources = {
8
8
  Default,
9
9
  Cards,
@@ -17,17 +17,17 @@ export declare const useStyles: () => {
17
17
  transitionTimingFunction: "ease-in-out";
18
18
  };
19
19
  itemCardHover: {
20
- backgroundColor: string;
20
+ backgroundColor: import("@alveole/theme").ThemeColor;
21
21
  };
22
22
  itemCardIcon: {
23
23
  display: "flex";
24
24
  justifyContent: "center";
25
25
  alignItems: "center";
26
- color: string;
26
+ color: import("@alveole/theme").ThemeColor;
27
27
  };
28
28
  itemCardSeparator: {
29
29
  borderTopWidth: number;
30
- borderTopColor: string;
30
+ borderTopColor: import("@alveole/theme").ThemeColor;
31
31
  };
32
32
  radioGroupCardContent: {
33
33
  display: "flex";
@@ -59,7 +59,7 @@ export declare const useStyles: () => {
59
59
  };
60
60
  itemContainer: {
61
61
  backgroundColor: "#FFFFFF";
62
- borderColor: string;
62
+ borderColor: import("@alveole/theme").ThemeColor;
63
63
  };
64
64
  itemContainerSm: {
65
65
  height: import("@alveole/theme").Spacing;
@@ -70,10 +70,10 @@ export declare const useStyles: () => {
70
70
  width: import("@alveole/theme").Spacing;
71
71
  };
72
72
  itemContainerActive: {
73
- borderColor: string;
73
+ borderColor: import("@alveole/theme").ThemeColor;
74
74
  };
75
75
  itemIndicator: {
76
- backgroundColor: string;
76
+ backgroundColor: import("@alveole/theme").ThemeColor;
77
77
  height: number;
78
78
  width: number;
79
79
  };
@@ -91,7 +91,7 @@ export declare const useStyles: () => {
91
91
  flexDirection: "column";
92
92
  };
93
93
  groupCard: {
94
- borderColor: string;
94
+ borderColor: import("@alveole/theme").ThemeColor;
95
95
  borderRadius: import("@alveole/theme").Radius;
96
96
  borderWidth: number;
97
97
  overflow: "hidden";
@@ -105,7 +105,7 @@ export declare const useStyles: () => {
105
105
  letterSpacing: 0;
106
106
  fontFamily: string;
107
107
  fontWeight?: import("react-native").TextStyle["fontWeight"];
108
- color: string;
108
+ color: import("@alveole/theme").ThemeColor;
109
109
  };
110
110
  };
111
111
  //# sourceMappingURL=RadioGroup.styles.d.ts.map
@@ -34,12 +34,12 @@ const ligne = ({ color, spacingValue }) => ({
34
34
  borderColor: color.light.border['action-high-primary'],
35
35
  },
36
36
  itemContainerSm: {
37
- height: spacingValue('100'),
38
- width: spacingValue('100'),
37
+ height: spacingValue('2W'),
38
+ width: spacingValue('2W'),
39
39
  },
40
40
  itemContainerMd: {
41
- height: spacingValue('150'),
42
- width: spacingValue('150'),
41
+ height: spacingValue('3W'),
42
+ width: spacingValue('3W'),
43
43
  },
44
44
  itemContainerActive: {
45
45
  borderColor: color.light.border['action-high-primary'],