@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
@@ -7,6 +7,7 @@ import { A } from '../../core/A';
7
7
  import { Box } from '../../core/Box';
8
8
  import { fondAuSurvol } from '../../core/styleTamagui/fondAuSurvol';
9
9
  import { Typography } from '../../core/Typography';
10
+ import { Counter } from '../Counter';
10
11
  import { LeadingSlot } from '../Leading';
11
12
  import { useStyles } from './Sidebar.styles';
12
13
  // Un item mène quelque part ou déclenche quelque chose : dans un cas c'est un lien, dans
@@ -21,6 +22,8 @@ const IndicateurPageCourante = () => {
21
22
  const styles = useStyles();
22
23
  return (_jsx(Box, { tag: "sidebar-item-indicator", style: styles.sidebarItemSelectedIndicator, children: _jsx(Box, { style: styles.sidebarItemSelectedIndicatorContent }) }));
23
24
  };
25
+ // Un compteur à zéro ne compte rien : on ne l'affiche pas.
26
+ const CompteurDItem = ({ counter, counterVariant = 'default' }) => counter != null && counter > 0 ? (_jsx(Box, { mt: "auto", mb: "auto", children: _jsx(Counter, { variant: counterVariant, count: counter }) })) : null;
24
27
  const SidebarItemDesktop = (props) => {
25
28
  const { title, leading } = props;
26
29
  const styles = useStyles();
@@ -31,7 +34,7 @@ const SidebarItemDesktop = (props) => {
31
34
  // La ligne courante se survole comme ses voisines : elle est un lien au même titre, et
32
35
  // lui réserver une teinte propre n'ajoutait qu'un cas particulier. Son fond de repos
33
36
  // étant plus sombre, le survol commun l'éclaircit - la direction que prend Primer.
34
- backgroundColor: fond, children: [_jsx(LeadingSlot, { contenu: leading, apparence: { size: 'sm' } }), _jsx(Typography, { style: { ...styles.sidebarItemTitleDesktop, ...titleStyleSelected }, children: title })] })] }) }));
37
+ backgroundColor: fond, children: [_jsx(LeadingSlot, { contenu: leading, apparence: { size: 'sm' } }), _jsx(Typography, { style: { ...styles.sidebarItemTitleDesktop, ...titleStyleSelected, flex: 1, textAlign: 'left' }, numberOfLines: 1, children: title }), _jsx(CompteurDItem, { ...props })] })] }) }));
35
38
  };
36
39
  const SidebarItemMobile = (props) => {
37
40
  const { title, leading } = props;
@@ -49,7 +52,7 @@ const SidebarItemMobile = (props) => {
49
52
  color: isCurrentPage
50
53
  ? styles.sidebarItemTitleSelectedMobile.color
51
54
  : styles.sidebarItemTitleSelectedMobile.stroke,
52
- } }), _jsx(Typography, { style: titre, color: { default: couleurDuTitre, hover: couleurAuSurvol }, children: title })] })] }) }));
55
+ } }), _jsx(Typography, { style: { ...titre, flex: 1, textAlign: 'left' }, color: { default: couleurDuTitre, hover: couleurAuSurvol }, numberOfLines: 1, children: title }), _jsx(CompteurDItem, { ...props })] })] }) }));
53
56
  };
54
57
  export const SidebarItem = (props) => {
55
58
  const { isVariant } = useTheme();
@@ -53,7 +53,7 @@ export const Signature = (props) => {
53
53
  const styles = useStyles();
54
54
  const ref = React.useRef(null);
55
55
  const { handleOk, handleEnd, handleClear } = useLectureDifferee(ref, onChange);
56
- const webviewHeightWithBorders = height + spacingValue('200') + spacingValue('100') + 3;
56
+ const webviewHeightWithBorders = height + spacingValue('4W') + spacingValue('2W') + 3;
57
57
  return (_jsxs(Box, { height: webviewHeightWithBorders, width: '100%', children: [_jsx(SignatureHeader, { date: date, dateLabel: dateLabel, clearButtonLabel: clearButtonLabel, onClear: () => ref.current?.clearSignature() }), _jsx(Box, { tag: "signature", height: '100%', onTouchEnd: onEnd, maxH: webviewHeightWithBorders, style: styles.container, children: _jsx(SignatureCanvas, { ref: ref, onOK: handleOk, onEnd: handleEnd, onClear: handleClear, penColor: styles.pen.color, backgroundColor: styles.pen.backgroundColor, dotSize: 3.5, minWidth: 3, maxWidth: 4, onBegin: onBegin, androidHardwareAccelerationDisabled: true, webviewProps: { cacheEnabled: false, androidLayerType: 'software' }, webStyle: feuilleDeStyleCanvas({
58
58
  height,
59
59
  rayon: spacing('3V'),
@@ -12,11 +12,11 @@ declare const _default: {
12
12
  flexDirection: "column";
13
13
  };
14
14
  pen: {
15
- color: string;
15
+ color: import("@alveole/theme").ThemeColor;
16
16
  backgroundColor: "#FFFFFF";
17
17
  };
18
18
  signatureWeb: {
19
- borderColor: string;
19
+ borderColor: import("@alveole/theme").ThemeColor;
20
20
  borderWidth: number;
21
21
  borderRadius: import("@alveole/theme").Radius;
22
22
  };
@@ -5,11 +5,11 @@ export declare const useStyles: () => {
5
5
  flexDirection: "column";
6
6
  };
7
7
  pen: {
8
- color: string;
8
+ color: import("@alveole/theme").ThemeColor;
9
9
  backgroundColor: "#FFFFFF";
10
10
  };
11
11
  signatureWeb: {
12
- borderColor: string;
12
+ borderColor: import("@alveole/theme").ThemeColor;
13
13
  borderWidth: number;
14
14
  borderRadius: import("@alveole/theme").Radius;
15
15
  };
@@ -5,7 +5,7 @@ import { Box } from '../../core/Box';
5
5
  import { useStyles } from './Skeleton.styles';
6
6
  const PULSE_DURATION = 700;
7
7
  export const Skeleton = (props) => {
8
- const { width = '100%', height = 16, borderRadius = 4, style, ...rest } = props;
8
+ const { width = '100%', height = 16, borderRadius = 'sm', style, ...rest } = props;
9
9
  const styles = useStyles();
10
10
  const [opacity] = React.useState(() => new Animated.Value(0.5));
11
11
  React.useEffect(() => {
@@ -16,7 +16,7 @@ declare const _default: {
16
16
  right: number;
17
17
  bottom: number;
18
18
  left: number;
19
- backgroundColor: string;
19
+ backgroundColor: import("@alveole/theme").ThemeColor;
20
20
  };
21
21
  };
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,wBAakB;AAElB,eAAO,MAAM,KAAK,mCAAiC,CAAC;AAEpD,eAAO,MAAM,KAAK,mCAA4C,CAAC;AAE/D,eAAO,MAAM,IAAI,mCAA8D,CAAC;AAEhF,eAAO,MAAM,SAAS,mCAAmD,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,UAAU,mCAOtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,mCAY1B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"Skeleton.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAKA,wBAakB;AAElB,eAAO,MAAM,KAAK,mCAAiC,CAAC;AAEpD,eAAO,MAAM,KAAK,mCAA4C,CAAC;AAE/D,eAAO,MAAM,IAAI,mCAAgE,CAAC;AAElF,eAAO,MAAM,SAAS,mCAAoD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,UAAU,mCAOtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,mCAY1B,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC"}
@@ -18,8 +18,8 @@ La forme se règle avec \`width\` (\`100%\` par défaut), \`height\` (16 px par
18
18
  };
19
19
  export const Ligne = () => _jsx(Skeleton, { width: "60%" });
20
20
  export const Carre = () => _jsx(Skeleton, { width: 64, height: 64 });
21
- export const Rond = () => _jsx(Skeleton, { width: 48, height: 48, borderRadius: 24 });
22
- export const Rectangle = () => _jsx(Skeleton, { height: 160, borderRadius: 8 });
21
+ export const Rond = () => _jsx(Skeleton, { width: 48, height: 48, borderRadius: "full" });
22
+ export const Rectangle = () => _jsx(Skeleton, { height: 160, borderRadius: "md" });
23
23
  /**
24
24
  * Des lignes de largeurs décroissantes imitent un paragraphe de texte.
25
25
  */
@@ -27,5 +27,5 @@ export const Paragraphe = () => (_jsxs(Box, { display: "flex", flexDirection: "c
27
27
  /**
28
28
  * Les formes se composent pour préfigurer un élément de liste : un avatar rond, un titre et un sous-titre.
29
29
  */
30
- export const ElementDeListe = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "2W", width: "100%", children: [0, 1, 2].map(i => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", style: { alignItems: 'center' }, children: [_jsx(Skeleton, { width: 40, height: 40, borderRadius: 20 }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: "1V", flex: 1, children: [_jsx(Skeleton, { width: "40%", height: 18 }), _jsx(Skeleton, { width: "65%", height: 14 })] })] }, i))) }));
30
+ export const ElementDeListe = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "2W", width: "100%", children: [0, 1, 2].map(i => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "1W", style: { alignItems: 'center' }, children: [_jsx(Skeleton, { width: 40, height: 40, borderRadius: "full" }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: "1V", flex: 1, children: [_jsx(Skeleton, { width: "40%", height: 18 }), _jsx(Skeleton, { width: "65%", height: 14 })] })] }, i))) }));
31
31
  export * as Sources from './Skeleton.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAiE,CAAC;AAEpF,eAAO,MAAM,KAAK,cAA0E,CAAC;AAE7F,eAAO,MAAM,IAAI,cAA2F,CAAC;AAE7G,eAAO,MAAM,SAAS,cAAqF,CAAC;AAE5G,eAAO,MAAM,UAAU,cAAqQ,CAAC;AAE7R,eAAO,MAAM,cAAc,cAAqiB,CAAC;AAEjkB,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAGtE,CAAC"}
1
+ {"version":3,"file":"Skeleton.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Skeleton/Skeleton.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAiE,CAAC;AAEpF,eAAO,MAAM,KAAK,cAA0E,CAAC;AAE7F,eAAO,MAAM,IAAI,cAA+F,CAAC;AAEjH,eAAO,MAAM,SAAS,cAAwF,CAAC;AAE/G,eAAO,MAAM,UAAU,cAAqQ,CAAC;AAE7R,eAAO,MAAM,cAAc,cAAyiB,CAAC;AAErkB,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAGtE,CAAC"}
@@ -2,10 +2,10 @@
2
2
  // Source: src/ui/Skeleton/Skeleton.stories.tsx
3
3
  export const Ligne = () => "export const Ligne = () => <Skeleton width=\"60%\" />;";
4
4
  export const Carre = () => "export const Carre = () => <Skeleton width={64} height={64} />;";
5
- export const Rond = () => "export const Rond = () => <Skeleton width={48} height={48} borderRadius={24} />;";
6
- export const Rectangle = () => "export const Rectangle = () => <Skeleton height={160} borderRadius={8} />;";
5
+ export const Rond = () => "export const Rond = () => <Skeleton width={48} height={48} borderRadius=\"full\" />;";
6
+ export const Rectangle = () => "export const Rectangle = () => <Skeleton height={160} borderRadius=\"md\" />;";
7
7
  export const Paragraphe = () => "export const Paragraphe = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"1V\" width=\"100%\">\n <Skeleton width=\"40%\" height={20} />\n <Skeleton />\n <Skeleton width=\"90%\" />\n <Skeleton width=\"65%\" />\n </Box>\n);";
8
- export const ElementDeListe = () => "export const ElementDeListe = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"2W\" width=\"100%\">\n {[0, 1, 2].map(i => (\n <Box key={i} display=\"flex\" flexDirection=\"row\" gap=\"1W\" style={{ alignItems: 'center' }}>\n <Skeleton width={40} height={40} borderRadius={20} />\n <Box display=\"flex\" flexDirection=\"column\" gap=\"1V\" flex={1}>\n <Skeleton width=\"40%\" height={18} />\n <Skeleton width=\"65%\" height={14} />\n </Box>\n </Box>\n ))}\n </Box>\n);";
8
+ export const ElementDeListe = () => "export const ElementDeListe = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"2W\" width=\"100%\">\n {[0, 1, 2].map(i => (\n <Box key={i} display=\"flex\" flexDirection=\"row\" gap=\"1W\" style={{ alignItems: 'center' }}>\n <Skeleton width={40} height={40} borderRadius=\"full\" />\n <Box display=\"flex\" flexDirection=\"column\" gap=\"1V\" flex={1}>\n <Skeleton width=\"40%\" height={18} />\n <Skeleton width=\"65%\" height={14} />\n </Box>\n </Box>\n ))}\n </Box>\n);";
9
9
  export const storySources = {
10
10
  Ligne,
11
11
  Carre,
@@ -9,7 +9,7 @@ export declare const useStyles: () => {
9
9
  right: number;
10
10
  bottom: number;
11
11
  left: number;
12
- backgroundColor: string;
12
+ backgroundColor: import("@alveole/theme").ThemeColor;
13
13
  };
14
14
  };
15
15
  //# sourceMappingURL=Skeleton.styles.d.ts.map
@@ -7,10 +7,10 @@ declare const _default: {
7
7
  component: ({ style, ...props }: import("./Spinner.shared").SpinnerProps) => import("react").JSX.Element | null;
8
8
  styleFn: () => {
9
9
  track: {
10
- color: string;
10
+ color: import("@alveole/theme").ThemeColor;
11
11
  };
12
12
  arc: {
13
- color: string;
13
+ color: import("@alveole/theme").ThemeColor;
14
14
  };
15
15
  };
16
16
  };
@@ -20,7 +20,7 @@ La prop \`delay\` permet de retarder l'apparition du spinner pour éviter un fla
20
20
  component: Spinner,
21
21
  styleFn: useStyles,
22
22
  };
23
- export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", style: { alignItems: 'center' }, gap: 16, children: [_jsx(Spinner, { size: "sm" }), _jsx(Spinner, { size: "md" }), _jsx(Spinner, { size: "lg" })] }));
23
+ export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", style: { alignItems: 'center' }, gap: "2W", children: [_jsx(Spinner, { size: "sm" }), _jsx(Spinner, { size: "md" }), _jsx(Spinner, { size: "lg" })] }));
24
24
  /**
25
25
  * `delay` retarde l'apparition du spinner pour éviter un flash sur les opérations rapides :
26
26
  * rien ne s'affiche avant que le délai ne soit écoulé. `'short'` attend 300 ms, `'long'`
@@ -28,5 +28,5 @@ export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row",
28
28
  * millisecondes. C'est cette même prop que `Button` expose sous le nom `loadingDelay`, pour
29
29
  * régler le retard de son propre spinner pendant `isLoading`.
30
30
  */
31
- export const WithDelay = () => (_jsxs(Box, { display: "flex", flexDirection: "row", style: { alignItems: 'center' }, gap: 16, children: [_jsx(Spinner, { size: "md", delay: "short" }, "short"), _jsx(Spinner, { size: "md", delay: "long" }, "long")] }));
31
+ export const WithDelay = () => (_jsxs(Box, { display: "flex", flexDirection: "row", style: { alignItems: 'center' }, gap: "2W", children: [_jsx(Spinner, { size: "md", delay: "short" }, "short"), _jsx(Spinner, { size: "md", delay: "long" }, "long")] }));
32
32
  export * as Sources from './Spinner.stories.sources';
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Spinner/Spinner.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAsO,CAAC;AAEzP,eAAO,MAAM,SAAS,cAAuQ,CAAC;AAE9R,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAEtE,CAAC"}
1
+ {"version":3,"file":"Spinner.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Spinner/Spinner.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,cAAwO,CAAC;AAE3P,eAAO,MAAM,SAAS,cAAyQ,CAAC;AAEhS,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAEtE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/Spinner/Spinner.stories.tsx
3
- export const Sizes = () => "export const Sizes = () => (\n <Box display=\"flex\" flexDirection=\"row\" style={{ alignItems: 'center' }} gap={16}>\n <Spinner size=\"sm\" />\n <Spinner size=\"md\" />\n <Spinner size=\"lg\" />\n </Box>\n);";
4
- export const WithDelay = () => "export const WithDelay = () => (\n <Box display=\"flex\" flexDirection=\"row\" style={{ alignItems: 'center' }} gap={16}>\n <Spinner size=\"md\" delay=\"short\" key=\"short\" />\n <Spinner size=\"md\" delay=\"long\" key=\"long\" />\n </Box>\n);";
3
+ export const Sizes = () => "export const Sizes = () => (\n <Box display=\"flex\" flexDirection=\"row\" style={{ alignItems: 'center' }} gap=\"2W\">\n <Spinner size=\"sm\" />\n <Spinner size=\"md\" />\n <Spinner size=\"lg\" />\n </Box>\n);";
4
+ export const WithDelay = () => "export const WithDelay = () => (\n <Box display=\"flex\" flexDirection=\"row\" style={{ alignItems: 'center' }} gap=\"2W\">\n <Spinner size=\"md\" delay=\"short\" key=\"short\" />\n <Spinner size=\"md\" delay=\"long\" key=\"long\" />\n </Box>\n);";
5
5
  export const storySources = {
6
6
  Sizes,
7
7
  WithDelay,
@@ -1,9 +1,9 @@
1
1
  export declare const useStyles: () => {
2
2
  track: {
3
- color: string;
3
+ color: import("@alveole/theme").ThemeColor;
4
4
  };
5
5
  arc: {
6
- color: string;
6
+ color: import("@alveole/theme").ThemeColor;
7
7
  };
8
8
  };
9
9
  //# sourceMappingURL=Spinner.styles.d.ts.map
@@ -1,8 +1,10 @@
1
1
  import { Animated } from 'react-native';
2
+ export interface Rotation extends Animated.AnimatedInterpolation<string> {
3
+ }
2
4
  /**
3
5
  * L'angle d'un spinner qui tourne sans fin, un tour toutes les 800 ms.
4
6
  *
5
7
  * Seul le pilote differe : le natif tourne hors du fil JavaScript, le navigateur n'en a pas.
6
8
  */
7
- export declare const useRotation: (useNativeDriver: boolean) => Animated.AnimatedInterpolation<string | number>;
9
+ export declare const useRotation: (useNativeDriver: boolean) => Rotation;
8
10
  //# sourceMappingURL=useRotation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRotation.d.ts","sourceRoot":"","sources":["../../../src/ui/Spinner/useRotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,iBAAiB,OAAO,oDAYnD,CAAC"}
1
+ {"version":3,"file":"useRotation.d.ts","sourceRoot":"","sources":["../../../src/ui/Spinner/useRotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAC;AAIhD,MAAM,WAAW,QAAS,SAAQ,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC;CAAG;AAE3E;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,iBAAiB,OAAO,KAAG,QAYtD,CAAC"}
@@ -6,13 +6,13 @@ import { SpinnerProps } from './Spinner.shared';
6
6
  export declare const useSpinner: ({ size, delay }: SpinnerProps, useNativeDriver: boolean) => {
7
7
  styles: {
8
8
  track: {
9
- color: string;
9
+ color: import("@alveole/theme").ThemeColor;
10
10
  };
11
11
  arc: {
12
- color: string;
12
+ color: import("@alveole/theme").ThemeColor;
13
13
  };
14
14
  };
15
- spin: import("react-native").Animated.AnimatedInterpolation<string | number>;
15
+ spin: import("./useRotation").Rotation;
16
16
  visible: boolean;
17
17
  px: number;
18
18
  strokeWidth: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BF,eAAO,MAAM,MAAM;SAlCZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;wCA8FnB,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACzE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BF,eAAO,MAAM,MAAM;SAlCZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;wCA6FnB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { focusRingProps, useTheme } from '@alveole/theme';
2
+ import { focusRingProps } from '@alveole/theme';
3
3
  import React, { useId } from 'react';
4
4
  import { Platform, Pressable } from 'react-native';
5
5
  import { Switch as TamaguiSwitch } from 'tamagui';
@@ -23,7 +23,6 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
23
23
  const isControlled = checked !== undefined;
24
24
  const [model, setModel] = React.useState(Boolean(checked));
25
25
  const value = isControlled ? checked : model;
26
- const { spacingValue } = useTheme();
27
26
  const styles = useStyles();
28
27
  const uniqId = useId();
29
28
  id = id || `switch--${uniqId}`;
@@ -35,5 +34,5 @@ export const Switch = React.forwardRef(function Switch(props, ref) {
35
34
  const { bouton, pouce, libelle } = apparenceDuSwitch(styles, { value, disabled, noPadding, style });
36
35
  const Toggle = (_jsx(TamaguiSwitch, { id: id, ref: ref, borderWidth: 1, ...DIMENSIONS_DE_LA_PISTE, checked: value, onCheckedChange: onChange, style: bouton, disabled: disabled, accessibilityLabel: label, accessibilityRole: "switch", accessibilityState: { checked: Boolean(value), disabled: Boolean(disabled) }, ...focusRingProps(), ...switchProps, children: _jsx(TamaguiSwitch.Thumb, { ...animer('quicker'), width: POUCE, height: POUCE, style: pouce }) }));
37
36
  const ToggleWithLabel = (_jsxs(_Fragment, { children: [_jsx(SwitchLabel, { id: id, checked: value, disabled: disabled, onChange: onChange, children: _jsxs(Box, { tag: "switch", style: styles.switch, children: [Toggle, !!label && (_jsx(Typography, { htmlFor: id, style: libelle, children: label }))] }) }), (error ?? success) && _jsx(FormControlCaption, { error: error, success: success })] }));
38
- return (_jsx(Box, { tag: "switch", gap: error || success ? spacingValue('050') : 0, style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
37
+ return (_jsx(Box, { tag: "switch", gap: error || success ? '1W' : '0V', style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
39
38
  });
@@ -20,8 +20,8 @@ declare const _default: {
20
20
  paddingRight: string | number;
21
21
  };
22
22
  switchButton: {
23
- borderColor: string;
24
- backgroundColor: string;
23
+ borderColor: import("@alveole/theme").ThemeColor;
24
+ backgroundColor: import("@alveole/theme").ThemeColor;
25
25
  cursor: "pointer";
26
26
  padding: number;
27
27
  minHeight: string | number;
@@ -29,29 +29,29 @@ declare const _default: {
29
29
  marginBottom: string;
30
30
  };
31
31
  switchButtonChecked: {
32
- backgroundColor: string;
32
+ backgroundColor: import("@alveole/theme").ThemeColor;
33
33
  };
34
34
  switchButtonDisabled: {
35
35
  opacity: 1;
36
- backgroundColor: string;
36
+ backgroundColor: import("@alveole/theme").ThemeColor;
37
37
  cursor: "not-allowed";
38
38
  };
39
39
  switchThumb: {
40
40
  borderWidth: number;
41
- borderColor: string;
42
- backgroundColor: string;
41
+ borderColor: import("@alveole/theme").ThemeColor;
42
+ backgroundColor: import("@alveole/theme").ThemeColor;
43
43
  boxShadow: "none";
44
44
  };
45
45
  switchThumbChecked: {
46
- backgroundColor: string;
46
+ backgroundColor: import("@alveole/theme").ThemeColor;
47
47
  };
48
48
  switchThumbDisabled: {
49
- backgroundColor: string;
49
+ backgroundColor: import("@alveole/theme").ThemeColor;
50
50
  cursor: "not-allowed";
51
51
  borderColor: "#FFFFFF";
52
52
  };
53
53
  switchLabel: {
54
- color: string;
54
+ color: import("@alveole/theme").ThemeColor;
55
55
  fontSize: 14;
56
56
  lineHeight: 20;
57
57
  letterSpacing: 0;
@@ -11,7 +11,7 @@ export default {
11
11
  component: Switch,
12
12
  styleFn: useStyles,
13
13
  };
14
- export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(Switch, { label: "Non activ\u00E9" }), _jsx(Switch, { label: "Activ\u00E9", checked: true }), _jsx(Switch, { label: "D\u00E9sactiv\u00E9", disabled: true }), _jsx(Switch, { label: "Activ\u00E9 d\u00E9sactiv\u00E9", checked: true, disabled: true })] }));
14
+ export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: "3W", children: [_jsx(Switch, { label: "Non activ\u00E9" }), _jsx(Switch, { label: "Activ\u00E9", checked: true }), _jsx(Switch, { label: "D\u00E9sactiv\u00E9", disabled: true }), _jsx(Switch, { label: "Activ\u00E9 d\u00E9sactiv\u00E9", checked: true, disabled: true })] }));
15
15
  export const Controlled = () => {
16
16
  const [value, setValue] = useState(false);
17
17
  return _jsx(Switch, { label: value ? 'Activé' : 'Désactivé', checked: value, onCheckedChange: v => setValue(!!v) });
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA0S,CAAC;AAE/T,eAAO,MAAM,UAAU,cAAgN,CAAC;AAExO,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"Switch.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAA4S,CAAC;AAEjU,eAAO,MAAM,UAAU,cAAgN,CAAC;AAExO,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/Switch/Switch.stories.tsx
3
- export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <Switch label=\"Non activé\" />\n <Switch label=\"Activé\" checked />\n <Switch label=\"Désactivé\" disabled />\n <Switch label=\"Activé désactivé\" checked disabled />\n </Box>\n);";
3
+ export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap=\"3W\">\n <Switch label=\"Non activé\" />\n <Switch label=\"Activé\" checked />\n <Switch label=\"Désactivé\" disabled />\n <Switch label=\"Activé désactivé\" checked disabled />\n </Box>\n);";
4
4
  export const Controlled = () => "export const Controlled = () => {\n const [value, setValue] = useState(false);\n return <Switch label={value ? 'Activé' : 'Désactivé'} checked={value} onCheckedChange={v => setValue(!!v)} />;\n};";
5
5
  export const storySources = {
6
6
  Default,
@@ -7,8 +7,8 @@ export declare const useStyles: () => {
7
7
  paddingRight: string | number;
8
8
  };
9
9
  switchButton: {
10
- borderColor: string;
11
- backgroundColor: string;
10
+ borderColor: import("@alveole/theme").ThemeColor;
11
+ backgroundColor: import("@alveole/theme").ThemeColor;
12
12
  cursor: "pointer";
13
13
  padding: number;
14
14
  minHeight: string | number;
@@ -16,29 +16,29 @@ export declare const useStyles: () => {
16
16
  marginBottom: string;
17
17
  };
18
18
  switchButtonChecked: {
19
- backgroundColor: string;
19
+ backgroundColor: import("@alveole/theme").ThemeColor;
20
20
  };
21
21
  switchButtonDisabled: {
22
22
  opacity: 1;
23
- backgroundColor: string;
23
+ backgroundColor: import("@alveole/theme").ThemeColor;
24
24
  cursor: "not-allowed";
25
25
  };
26
26
  switchThumb: {
27
27
  borderWidth: number;
28
- borderColor: string;
29
- backgroundColor: string;
28
+ borderColor: import("@alveole/theme").ThemeColor;
29
+ backgroundColor: import("@alveole/theme").ThemeColor;
30
30
  boxShadow: "none";
31
31
  };
32
32
  switchThumbChecked: {
33
- backgroundColor: string;
33
+ backgroundColor: import("@alveole/theme").ThemeColor;
34
34
  };
35
35
  switchThumbDisabled: {
36
- backgroundColor: string;
36
+ backgroundColor: import("@alveole/theme").ThemeColor;
37
37
  cursor: "not-allowed";
38
38
  borderColor: "#FFFFFF";
39
39
  };
40
40
  switchLabel: {
41
- color: string;
41
+ color: import("@alveole/theme").ThemeColor;
42
42
  fontSize: 14;
43
43
  lineHeight: 20;
44
44
  letterSpacing: 0;
@@ -8,10 +8,10 @@ declare const _default: {
8
8
  component: (props: import("./Tabs").TabsProps) => React.JSX.Element;
9
9
  styleFn: () => {
10
10
  tabIcon: {
11
- color: string;
11
+ color: import("@alveole/theme").ThemeColor;
12
12
  };
13
13
  tabIconHover: {
14
- color: string;
14
+ color: import("@alveole/theme").ThemeColor;
15
15
  };
16
16
  tabsLabel: {
17
17
  fontSize: 14;
@@ -47,7 +47,7 @@ declare const _default: {
47
47
  cursor: "pointer";
48
48
  };
49
49
  tabsTabActive: {
50
- borderBottomColor: string;
50
+ borderBottomColor: import("@alveole/theme").ThemeColor;
51
51
  borderBottomWidth: number;
52
52
  };
53
53
  wrapper: {
@@ -68,7 +68,7 @@ declare const _default: {
68
68
  display: "flex";
69
69
  flexDirection: "row";
70
70
  alignItems: "center";
71
- backgroundColor: string;
71
+ backgroundColor: import("@alveole/theme").ThemeColor;
72
72
  };
73
73
  container: {
74
74
  flex: number;
@@ -97,7 +97,7 @@ declare const _default: {
97
97
  borderBottomRightRadius: string | number;
98
98
  gap: string | number;
99
99
  boxSizing: "border-box";
100
- borderColor: string;
100
+ borderColor: import("@alveole/theme").ThemeColor;
101
101
  borderBottomWidth: number;
102
102
  backgroundColor: "transparent";
103
103
  overflowX: "scroll";
@@ -122,5 +122,6 @@ declare const _default: {
122
122
  export default _default;
123
123
  export declare const Example: () => React.JSX.Element;
124
124
  export declare const Controle: () => React.JSX.Element;
125
+ export declare const OngletUnique: () => React.JSX.Element;
125
126
  export * as Sources from './Tabs.stories.sources';
126
127
  //# sourceMappingURL=Tabs.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAuBnB,CAAC;AAIF,eAAO,MAAM,QAAQ,yBAiBpB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAuBnB,CAAC;AAIF,eAAO,MAAM,QAAQ,yBAiBpB,CAAC;AAGF,eAAO,MAAM,YAAY,yBAKxB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
@@ -37,6 +37,8 @@ export const Controle = () => {
37
37
  { label: 'Onglet 3', value: 'onglet-3', content: _jsx(Typography, { children: "Contenu de onglet 3" }) },
38
38
  ];
39
39
  const [ongletActif, setOngletActif] = React.useState('onglet-1');
40
- return (_jsxs(Box, { width: '100%', gap: 16, children: [_jsxs(Box, { flexDirection: "row", gap: 8, children: [_jsx(Button, { title: "Aller \u00E0 l\u2019onglet 1", variant: "secondary", onPress: () => setOngletActif('onglet-1') }), _jsx(Button, { title: "Aller \u00E0 l\u2019onglet 3", variant: "secondary", onPress: () => setOngletActif('onglet-3') })] }), _jsx(Tabs, { value: ongletActif, onChange: index => setOngletActif(onglets[index].value), tabs: onglets })] }));
40
+ return (_jsxs(Box, { width: '100%', gap: "2W", children: [_jsxs(Box, { flexDirection: "row", gap: "1W", children: [_jsx(Button, { title: "Aller \u00E0 l\u2019onglet 1", variant: "secondary", onPress: () => setOngletActif('onglet-1') }), _jsx(Button, { title: "Aller \u00E0 l\u2019onglet 3", variant: "secondary", onPress: () => setOngletActif('onglet-3') })] }), _jsx(Tabs, { value: ongletActif, onChange: index => setOngletActif(onglets[index].value), tabs: onglets })] }));
41
41
  };
42
+ // Un onglet seul est desactive : il garde pourtant sa pleine opacite.
43
+ export const OngletUnique = () => (_jsx(Tabs, { defaultValue: "seul", tabs: [{ label: 'Onglet seul', value: 'seul', content: _jsx(Typography, { children: "Contenu de l onglet seul" }) }] }));
42
44
  export * as Sources from './Tabs.stories.sources';
@@ -1,8 +1,10 @@
1
1
  export declare const Example: () => string;
2
2
  export declare const Controle: () => string;
3
+ export declare const OngletUnique: () => string;
3
4
  export declare const storySources: {
4
5
  readonly Example: () => string;
5
6
  readonly Controle: () => string;
7
+ readonly OngletUnique: () => string;
6
8
  };
7
9
  export type StorySourceName = keyof typeof storySources;
8
10
  //# sourceMappingURL=Tabs.stories.sources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk1B,CAAC;AAEv2B,eAAO,MAAM,QAAQ,cAA44B,CAAC;AAEl6B,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"Tabs.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAk1B,CAAC;AAEv2B,eAAO,MAAM,QAAQ,cAAi5B,CAAC;AAEv6B,eAAO,MAAM,YAAY,cAA8M,CAAC;AAExO,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -1,8 +1,10 @@
1
1
  // This file is generated. Do not edit manually.
2
2
  // Source: src/ui/Tabs/Tabs.stories.tsx
3
3
  export const Example = () => "export const Example = () => {\n const [_activeTab, setActiveTab] = React.useState(0);\n\n return (\n <Box width={'100%'}>\n <Tabs\n defaultValue={'onglet-1'}\n onChange={setActiveTab}\n urlAnchorPrefix=\"tabs-story\"\n tabs={[\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', counter: 12, value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n {\n label: 'Onglet 4',\n leading: 'Settings',\n value: 'onglet-4',\n content: <Typography>Contenu de onglet 4</Typography>,\n },\n ]}\n />\n </Box>\n );\n};";
4
- export const Controle = () => "export const Controle = () => {\n const onglets = [\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n ];\n const [ongletActif, setOngletActif] = React.useState('onglet-1');\n\n return (\n <Box width={'100%'} gap={16}>\n <Box flexDirection=\"row\" gap={8}>\n <Button title=\"Aller à l’onglet 1\" variant=\"secondary\" onPress={() => setOngletActif('onglet-1')} />\n <Button title=\"Aller à l’onglet 3\" variant=\"secondary\" onPress={() => setOngletActif('onglet-3')} />\n </Box>\n <Tabs value={ongletActif} onChange={index => setOngletActif(onglets[index].value)} tabs={onglets} />\n </Box>\n );\n};";
4
+ export const Controle = () => "export const Controle = () => {\n const onglets = [\n { label: 'Onglet 1', value: 'onglet-1', content: <Typography>Contenu de onglet 1</Typography> },\n { label: 'Onglet 2', value: 'onglet-2', content: <Typography>Contenu de onglet 2</Typography> },\n { label: 'Onglet 3', value: 'onglet-3', content: <Typography>Contenu de onglet 3</Typography> },\n ];\n const [ongletActif, setOngletActif] = React.useState('onglet-1');\n\n return (\n <Box width={'100%'} gap=\"2W\">\n <Box flexDirection=\"row\" gap=\"1W\">\n <Button title=\"Aller à l’onglet 1\" variant=\"secondary\" onPress={() => setOngletActif('onglet-1')} />\n <Button title=\"Aller à l’onglet 3\" variant=\"secondary\" onPress={() => setOngletActif('onglet-3')} />\n </Box>\n <Tabs value={ongletActif} onChange={index => setOngletActif(onglets[index].value)} tabs={onglets} />\n </Box>\n );\n};";
5
+ export const OngletUnique = () => "export const OngletUnique = () => (\n <Tabs\n defaultValue=\"seul\"\n tabs={[{ label: 'Onglet seul', value: 'seul', content: <Typography>Contenu de l onglet seul</Typography> }]}\n />\n);";
5
6
  export const storySources = {
6
7
  Example,
7
8
  Controle,
9
+ OngletUnique,
8
10
  };
@@ -1,9 +1,9 @@
1
1
  export declare const useStyles: () => {
2
2
  tabIcon: {
3
- color: string;
3
+ color: import("@alveole/theme").ThemeColor;
4
4
  };
5
5
  tabIconHover: {
6
- color: string;
6
+ color: import("@alveole/theme").ThemeColor;
7
7
  };
8
8
  tabsLabel: {
9
9
  fontSize: 14;
@@ -39,7 +39,7 @@ export declare const useStyles: () => {
39
39
  cursor: "pointer";
40
40
  };
41
41
  tabsTabActive: {
42
- borderBottomColor: string;
42
+ borderBottomColor: import("@alveole/theme").ThemeColor;
43
43
  borderBottomWidth: number;
44
44
  };
45
45
  wrapper: {
@@ -60,7 +60,7 @@ export declare const useStyles: () => {
60
60
  display: "flex";
61
61
  flexDirection: "row";
62
62
  alignItems: "center";
63
- backgroundColor: string;
63
+ backgroundColor: import("@alveole/theme").ThemeColor;
64
64
  };
65
65
  container: {
66
66
  flex: number;
@@ -89,7 +89,7 @@ export declare const useStyles: () => {
89
89
  borderBottomRightRadius: string | number;
90
90
  gap: string | number;
91
91
  boxSizing: "border-box";
92
- borderColor: string;
92
+ borderColor: import("@alveole/theme").ThemeColor;
93
93
  borderBottomWidth: number;
94
94
  backgroundColor: "transparent";
95
95
  overflowX: "scroll";
@@ -22,20 +22,20 @@ declare const _default: {
22
22
  alignItems: "center";
23
23
  borderRadius: import("@alveole/theme").Radius;
24
24
  borderWidth: number;
25
- borderColor: string;
26
- color: string;
27
- backgroundColor: string;
25
+ borderColor: import("@alveole/theme").ThemeColor;
26
+ color: import("@alveole/theme").ThemeColor;
27
+ backgroundColor: import("@alveole/theme").ThemeColor;
28
28
  whiteSpace: "nowrap";
29
29
  overflow: "hidden";
30
30
  textOverflow: "ellipsis";
31
31
  maxWidth: string;
32
32
  };
33
33
  tagSurvole: {
34
- color: string;
34
+ color: import("@alveole/theme").ThemeColor;
35
35
  };
36
36
  tagSelected: {
37
- borderColor: string;
38
- color: string;
37
+ borderColor: import("@alveole/theme").ThemeColor;
38
+ color: import("@alveole/theme").ThemeColor;
39
39
  };
40
40
  tagSm: {
41
41
  fontSize: 12;
@@ -64,7 +64,7 @@ declare const _default: {
64
64
  marginRight: number;
65
65
  };
66
66
  croixSurvolee: {
67
- backgroundColor: string;
67
+ backgroundColor: import("@alveole/theme").ThemeColor;
68
68
  };
69
69
  croixSm: {
70
70
  marginLeft: number;
@@ -11,9 +11,9 @@ export default {
11
11
  component: Tag,
12
12
  styleFn: useStyles,
13
13
  };
14
- export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", children: "Tag sm" }), _jsx(Tag, { size: "md", children: "Tag md" })] }));
15
- export const Selection = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: 16, children: ['sm', 'md'].map(size => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Tag, { size: size, children: "Descriptive, inerte" }), _jsx(Tag, { size: size, interactive: true, children: "Au repos, dans un groupe" }), _jsx(Tag, { size: size, interactive: true, selected: true, children: "S\u00E9lectionn\u00E9" }), _jsx(Tag, { size: size, selected: true, closable: true, onClose: () => { }, children: "S\u00E9lectionn\u00E9 et fermable" })] }, size))) }));
16
- export const Fermable = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", closable: true, onClose: () => { }, children: "Fermable sm" }), _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Fermable md" }), _jsx(Tag, { size: "md", closable: true, selected: true, onClose: () => { }, children: "Fermable et s\u00E9lectionn\u00E9" })] }));
17
- export const AvecIcone = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: 24, flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", leading: "Check", children: "Valid\u00E9" }), _jsx(Tag, { size: "md", leading: "Clock", children: "En attente" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, onClose: () => { }, children: "Ic\u00F4ne et croix" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, selected: true, onClose: () => { }, children: "Tout \u00E0 la fois" })] }));
18
- export const LibelleLong = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap: 24, style: { maxWidth: 260 }, children: _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Un libell\u00E9 beaucoup trop long pour la place disponible" }) }));
14
+ export const Sizes = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", children: "Tag sm" }), _jsx(Tag, { size: "md", children: "Tag md" })] }));
15
+ export const Selection = () => (_jsx(Box, { display: "flex", flexDirection: "column", gap: "2W", children: ['sm', 'md'].map(size => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: size, children: "Descriptive, inerte" }), _jsx(Tag, { size: size, interactive: true, children: "Au repos, dans un groupe" }), _jsx(Tag, { size: size, interactive: true, selected: true, children: "S\u00E9lectionn\u00E9" }), _jsx(Tag, { size: size, selected: true, closable: true, onClose: () => { }, children: "S\u00E9lectionn\u00E9 et fermable" })] }, size))) }));
16
+ export const Fermable = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", closable: true, onClose: () => { }, children: "Fermable sm" }), _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Fermable md" }), _jsx(Tag, { size: "md", closable: true, selected: true, onClose: () => { }, children: "Fermable et s\u00E9lectionn\u00E9" })] }));
17
+ export const AvecIcone = () => (_jsxs(Box, { display: "flex", flexDirection: "row", gap: "3W", flexWrap: "wrap", children: [_jsx(Tag, { size: "sm", leading: "Check", children: "Valid\u00E9" }), _jsx(Tag, { size: "md", leading: "Clock", children: "En attente" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, onClose: () => { }, children: "Ic\u00F4ne et croix" }), _jsx(Tag, { size: "md", leading: "Tag", closable: true, selected: true, onClose: () => { }, children: "Tout \u00E0 la fois" })] }));
18
+ export const LibelleLong = () => (_jsx(Box, { display: "flex", flexDirection: "row", gap: "3W", style: { maxWidth: 260 }, children: _jsx(Tag, { size: "md", closable: true, onClose: () => { }, children: "Un libell\u00E9 beaucoup trop long pour la place disponible" }) }));
19
19
  export * as Sources from './Tag.stories.sources';