@alveole/components 0.43.2 → 1.0.0

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 (571) hide show
  1. package/dist/core/Alert/Alert.d.ts +11 -0
  2. package/dist/core/Alert/Alert.d.ts.map +1 -0
  3. package/dist/core/Alert/Alert.js +4 -0
  4. package/dist/core/Alert/Alert.web.d.ts +5 -0
  5. package/dist/core/Alert/Alert.web.d.ts.map +1 -0
  6. package/dist/core/Alert/Alert.web.js +7 -0
  7. package/dist/core/Alert/index.d.ts +2 -0
  8. package/dist/core/Alert/index.d.ts.map +1 -0
  9. package/dist/core/Alert/index.js +1 -0
  10. package/dist/core/Form/Form.d.ts +2 -5
  11. package/dist/core/Form/Form.d.ts.map +1 -1
  12. package/dist/core/Form/Form.js +3 -24
  13. package/dist/core/Form/Form.stories.d.ts +0 -7
  14. package/dist/core/Form/Form.stories.d.ts.map +1 -1
  15. package/dist/core/Form/Form.stories.js +2 -3
  16. package/dist/core/Form/Form.stories.sources.d.ts +0 -2
  17. package/dist/core/Form/Form.stories.sources.d.ts.map +1 -1
  18. package/dist/core/Form/Form.stories.sources.js +0 -2
  19. package/dist/core/Form/Form.styles.d.ts +0 -6
  20. package/dist/core/Form/Form.styles.d.ts.map +1 -1
  21. package/dist/core/Form/Form.styles.js +0 -6
  22. package/dist/core/Image/Image.d.ts.map +1 -1
  23. package/dist/core/Image/Image.js +1 -5
  24. package/dist/core/Map/Map.web.d.ts.map +1 -1
  25. package/dist/core/Map/Map.web.js +41 -41
  26. package/dist/core/Page/Page.d.ts +2 -0
  27. package/dist/core/Page/Page.d.ts.map +1 -1
  28. package/dist/core/Page/Page.stories.d.ts +5 -2
  29. package/dist/core/Page/Page.stories.d.ts.map +1 -1
  30. package/dist/core/Page/Page.stories.js +13 -14
  31. package/dist/core/Page/Page.stories.sources.d.ts +10 -4
  32. package/dist/core/Page/Page.stories.sources.d.ts.map +1 -1
  33. package/dist/core/Page/Page.stories.sources.js +10 -4
  34. package/dist/core/Page/PageContentScrollable.d.ts +1 -0
  35. package/dist/core/Page/PageContentScrollable.d.ts.map +1 -1
  36. package/dist/core/Page/PageContentScrollable.js +2 -2
  37. package/dist/core/Page/PageHead.web.d.ts.map +1 -1
  38. package/dist/core/Page/PageHead.web.js +5 -2
  39. package/dist/core/Page/PageMetaContext.d.ts +12 -0
  40. package/dist/core/Page/PageMetaContext.d.ts.map +1 -0
  41. package/dist/core/Page/PageMetaContext.js +5 -0
  42. package/dist/core/Page/index.d.ts +2 -0
  43. package/dist/core/Page/index.d.ts.map +1 -1
  44. package/dist/core/Page/index.js +2 -0
  45. package/dist/core/PdfViewer/PdfViewer.js +1 -1
  46. package/dist/core/Version/Version.stories.d.ts +1 -1
  47. package/dist/core/Version/Version.styles.d.ts +1 -1
  48. package/dist/core/index.d.ts +1 -0
  49. package/dist/core/index.d.ts.map +1 -1
  50. package/dist/core/index.js +1 -0
  51. package/dist/generated/version.d.ts +1 -1
  52. package/dist/generated/version.d.ts.map +1 -1
  53. package/dist/generated/version.js +1 -1
  54. package/dist/globals.d.ts +2 -0
  55. package/dist/globals.d.ts.map +1 -0
  56. package/dist/globals.js +1 -0
  57. package/dist/pdfjs/pdf.min.mjs +8 -1
  58. package/dist/pdfjs/pdf.worker.min.mjs +8 -1
  59. package/dist/stories/index.d.ts +24 -0
  60. package/dist/stories/index.d.ts.map +1 -1
  61. package/dist/stories/index.js +24 -0
  62. package/dist/ui/Accordion/Accordion.d.ts +19 -0
  63. package/dist/ui/Accordion/Accordion.d.ts.map +1 -0
  64. package/dist/ui/Accordion/Accordion.js +10 -0
  65. package/dist/ui/Accordion/Accordion.stories.d.ts +103 -0
  66. package/dist/ui/Accordion/Accordion.stories.d.ts.map +1 -0
  67. package/dist/ui/Accordion/Accordion.stories.js +15 -0
  68. package/dist/ui/Accordion/Accordion.stories.sources.d.ts +6 -0
  69. package/dist/ui/Accordion/Accordion.stories.sources.d.ts.map +1 -0
  70. package/dist/ui/Accordion/Accordion.stories.sources.js +6 -0
  71. package/dist/ui/Accordion/Accordion.styles.d.ts +90 -0
  72. package/dist/ui/Accordion/Accordion.styles.d.ts.map +1 -0
  73. package/dist/ui/Accordion/Accordion.styles.js +86 -0
  74. package/dist/ui/Accordion/AccordionItem.d.ts +14 -0
  75. package/dist/ui/Accordion/AccordionItem.d.ts.map +1 -0
  76. package/dist/ui/Accordion/AccordionItem.js +19 -0
  77. package/dist/ui/Accordion/index.d.ts +4 -0
  78. package/dist/ui/Accordion/index.d.ts.map +1 -0
  79. package/dist/ui/Accordion/index.js +5 -0
  80. package/dist/ui/ActionMenu/ActionMenu.stories.js +1 -1
  81. package/dist/ui/ActionMenu/ActionMenu.stories.sources.d.ts.map +1 -1
  82. package/dist/ui/ActionMenu/ActionMenu.stories.sources.js +1 -1
  83. package/dist/ui/Autocomplete/Autocomplete.d.ts +41 -0
  84. package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -0
  85. package/dist/ui/Autocomplete/Autocomplete.js +131 -0
  86. package/dist/ui/Autocomplete/Autocomplete.stories.d.ts +224 -0
  87. package/dist/ui/Autocomplete/Autocomplete.stories.d.ts.map +1 -0
  88. package/dist/ui/Autocomplete/Autocomplete.stories.js +56 -0
  89. package/dist/ui/Autocomplete/Autocomplete.stories.sources.d.ts +14 -0
  90. package/dist/ui/Autocomplete/Autocomplete.stories.sources.d.ts.map +1 -0
  91. package/dist/ui/Autocomplete/Autocomplete.stories.sources.js +14 -0
  92. package/dist/ui/Autocomplete/Autocomplete.styles.d.ts +208 -0
  93. package/dist/ui/Autocomplete/Autocomplete.styles.d.ts.map +1 -0
  94. package/dist/ui/Autocomplete/Autocomplete.styles.js +173 -0
  95. package/dist/ui/Autocomplete/Autocomplete.web.d.ts +28 -0
  96. package/dist/ui/Autocomplete/Autocomplete.web.d.ts.map +1 -0
  97. package/dist/ui/Autocomplete/Autocomplete.web.js +112 -0
  98. package/dist/ui/Autocomplete/AutocompleteChip.d.ts +8 -0
  99. package/dist/ui/Autocomplete/AutocompleteChip.d.ts.map +1 -0
  100. package/dist/ui/Autocomplete/AutocompleteChip.js +12 -0
  101. package/dist/ui/Autocomplete/index.d.ts +3 -0
  102. package/dist/ui/Autocomplete/index.d.ts.map +1 -0
  103. package/dist/ui/Autocomplete/index.js +2 -0
  104. package/dist/ui/AutocompleteAddress/AutocompleteAddress.d.ts +28 -0
  105. package/dist/ui/AutocompleteAddress/AutocompleteAddress.d.ts.map +1 -0
  106. package/dist/ui/AutocompleteAddress/AutocompleteAddress.js +20 -0
  107. package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.d.ts +13 -0
  108. package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.d.ts.map +1 -0
  109. package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.js +30 -0
  110. package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.sources.d.ts +6 -0
  111. package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.sources.d.ts.map +1 -0
  112. package/dist/ui/AutocompleteAddress/AutocompleteAddress.stories.sources.js +6 -0
  113. package/dist/ui/AutocompleteAddress/index.d.ts +2 -0
  114. package/dist/ui/AutocompleteAddress/index.d.ts.map +1 -0
  115. package/dist/ui/AutocompleteAddress/index.js +1 -0
  116. package/dist/ui/Avatar/Avatar.stories.d.ts +2 -2
  117. package/dist/ui/Avatar/Avatar.styles.d.ts +2 -2
  118. package/dist/ui/Badge/Badge.js +1 -1
  119. package/dist/ui/Badge/Badge.stories.d.ts +14 -12
  120. package/dist/ui/Badge/Badge.stories.d.ts.map +1 -1
  121. package/dist/ui/Badge/Badge.styles.d.ts +14 -12
  122. package/dist/ui/Badge/Badge.styles.d.ts.map +1 -1
  123. package/dist/ui/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  124. package/dist/ui/Breadcrumbs/Breadcrumbs.js +1 -1
  125. package/dist/ui/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
  126. package/dist/ui/Breadcrumbs/Breadcrumbs.styles.d.ts +3 -3
  127. package/dist/ui/Button/Button.stories.d.ts +56 -57
  128. package/dist/ui/Button/Button.stories.d.ts.map +1 -1
  129. package/dist/ui/Button/Button.styles.d.ts +56 -57
  130. package/dist/ui/Button/Button.styles.d.ts.map +1 -1
  131. package/dist/ui/Button/Button.styles.js +0 -1
  132. package/dist/ui/Button/ButtonIcon.d.ts.map +1 -1
  133. package/dist/ui/Button/ButtonIcon.js +2 -5
  134. package/dist/ui/Card/Card.stories.d.ts +3 -3
  135. package/dist/ui/Card/Card.styles.d.ts +2 -2
  136. package/dist/ui/Card/CardHeader.styles.d.ts +3 -3
  137. package/dist/ui/Card/CardSection.styles.d.ts +3 -3
  138. package/dist/ui/Checkbox/Checkbox.d.ts +19 -0
  139. package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -0
  140. package/dist/ui/Checkbox/Checkbox.js +17 -0
  141. package/dist/ui/Checkbox/Checkbox.stories.d.ts +93 -0
  142. package/dist/ui/Checkbox/Checkbox.stories.d.ts.map +1 -0
  143. package/dist/ui/Checkbox/Checkbox.stories.js +15 -0
  144. package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts +8 -0
  145. package/dist/ui/Checkbox/Checkbox.stories.sources.d.ts.map +1 -0
  146. package/dist/ui/Checkbox/Checkbox.stories.sources.js +8 -0
  147. package/dist/ui/Checkbox/Checkbox.styles.d.ts +70 -0
  148. package/dist/ui/Checkbox/Checkbox.styles.d.ts.map +1 -0
  149. package/dist/ui/Checkbox/Checkbox.styles.js +62 -0
  150. package/dist/ui/Checkbox/CheckboxContainer.d.ts +22 -0
  151. package/dist/ui/Checkbox/CheckboxContainer.d.ts.map +1 -0
  152. package/dist/ui/Checkbox/CheckboxContainer.js +21 -0
  153. package/dist/ui/Checkbox/CheckboxIndicator.d.ts +7 -0
  154. package/dist/ui/Checkbox/CheckboxIndicator.d.ts.map +1 -0
  155. package/dist/ui/Checkbox/CheckboxIndicator.js +15 -0
  156. package/dist/ui/Checkbox/CheckboxLabel.d.ts +9 -0
  157. package/dist/ui/Checkbox/CheckboxLabel.d.ts.map +1 -0
  158. package/dist/ui/Checkbox/CheckboxLabel.js +15 -0
  159. package/dist/ui/Checkbox/index.d.ts +5 -0
  160. package/dist/ui/Checkbox/index.d.ts.map +1 -0
  161. package/dist/ui/Checkbox/index.js +4 -0
  162. package/dist/ui/Counter/Counter.d.ts +6 -0
  163. package/dist/ui/Counter/Counter.d.ts.map +1 -0
  164. package/dist/ui/Counter/Counter.js +11 -0
  165. package/dist/ui/Counter/Counter.stories.d.ts +29 -0
  166. package/dist/ui/Counter/Counter.stories.d.ts.map +1 -0
  167. package/dist/ui/Counter/Counter.stories.js +15 -0
  168. package/dist/ui/Counter/Counter.stories.sources.d.ts +6 -0
  169. package/dist/ui/Counter/Counter.stories.sources.d.ts.map +1 -0
  170. package/dist/ui/Counter/Counter.stories.sources.js +6 -0
  171. package/dist/ui/Counter/Counter.styles.d.ts +18 -0
  172. package/dist/ui/Counter/Counter.styles.d.ts.map +1 -0
  173. package/dist/ui/Counter/Counter.styles.js +14 -0
  174. package/dist/ui/Counter/index.d.ts +2 -0
  175. package/dist/ui/Counter/index.d.ts.map +1 -0
  176. package/dist/ui/Counter/index.js +1 -0
  177. package/dist/ui/Divider/Divider.stories.d.ts +1 -1
  178. package/dist/ui/Divider/Divider.styles.d.ts +1 -1
  179. package/dist/ui/DocumentViewer/DocumentViewer.d.ts.map +1 -1
  180. package/dist/ui/DocumentViewer/DocumentViewer.js +1 -3
  181. package/dist/ui/DocumentViewer/DocumentViewer.stories.d.ts +10 -10
  182. package/dist/ui/DocumentViewer/DocumentViewer.styles.d.ts +10 -10
  183. package/dist/ui/DocumentViewer/DocumentViewerPDF.d.ts.map +1 -1
  184. package/dist/ui/DocumentViewer/DocumentViewerPDF.js +4 -7
  185. package/dist/ui/DragAndDropFile/DragAndDropFile.d.ts +9 -0
  186. package/dist/ui/DragAndDropFile/DragAndDropFile.d.ts.map +1 -0
  187. package/dist/ui/DragAndDropFile/DragAndDropFile.js +50 -0
  188. package/dist/ui/DragAndDropFile/DragAndDropFile.stories.d.ts +102 -0
  189. package/dist/ui/DragAndDropFile/DragAndDropFile.stories.d.ts.map +1 -0
  190. package/dist/ui/DragAndDropFile/DragAndDropFile.stories.js +17 -0
  191. package/dist/ui/DragAndDropFile/DragAndDropFile.stories.sources.d.ts +10 -0
  192. package/dist/ui/DragAndDropFile/DragAndDropFile.stories.sources.d.ts.map +1 -0
  193. package/dist/ui/DragAndDropFile/DragAndDropFile.stories.sources.js +10 -0
  194. package/dist/ui/DragAndDropFile/DragAndDropFile.styles.d.ts +89 -0
  195. package/dist/ui/DragAndDropFile/DragAndDropFile.styles.d.ts.map +1 -0
  196. package/dist/ui/DragAndDropFile/DragAndDropFile.styles.js +89 -0
  197. package/dist/ui/DragAndDropFile/DragAndDropFile.web.d.ts +4 -0
  198. package/dist/ui/DragAndDropFile/DragAndDropFile.web.d.ts.map +1 -0
  199. package/dist/ui/DragAndDropFile/DragAndDropFile.web.js +175 -0
  200. package/dist/ui/DragAndDropFile/index.d.ts +2 -0
  201. package/dist/ui/DragAndDropFile/index.d.ts.map +1 -0
  202. package/dist/ui/DragAndDropFile/index.js +1 -0
  203. package/dist/ui/EmailField/EmailField.d.ts +20 -0
  204. package/dist/ui/EmailField/EmailField.d.ts.map +1 -0
  205. package/dist/ui/EmailField/EmailField.js +8 -0
  206. package/dist/ui/EmailField/EmailField.stories.d.ts +25 -0
  207. package/dist/ui/EmailField/EmailField.stories.d.ts.map +1 -0
  208. package/dist/ui/EmailField/EmailField.stories.js +13 -0
  209. package/dist/ui/EmailField/EmailField.stories.sources.d.ts +6 -0
  210. package/dist/ui/EmailField/EmailField.stories.sources.d.ts.map +1 -0
  211. package/dist/ui/EmailField/EmailField.stories.sources.js +6 -0
  212. package/dist/ui/EmailField/index.d.ts +2 -0
  213. package/dist/ui/EmailField/index.d.ts.map +1 -0
  214. package/dist/ui/EmailField/index.js +1 -0
  215. package/dist/ui/EmailInput/EmailInput.d.ts +16 -0
  216. package/dist/ui/EmailInput/EmailInput.d.ts.map +1 -0
  217. package/dist/ui/EmailInput/EmailInput.js +10 -0
  218. package/dist/ui/EmailInput/EmailInput.stories.d.ts +21 -0
  219. package/dist/ui/EmailInput/EmailInput.stories.d.ts.map +1 -0
  220. package/dist/ui/EmailInput/EmailInput.stories.js +13 -0
  221. package/dist/ui/EmailInput/EmailInput.stories.sources.d.ts +6 -0
  222. package/dist/ui/EmailInput/EmailInput.stories.sources.d.ts.map +1 -0
  223. package/dist/ui/EmailInput/EmailInput.stories.sources.js +6 -0
  224. package/dist/ui/EmailInput/index.d.ts +2 -0
  225. package/dist/ui/EmailInput/index.d.ts.map +1 -0
  226. package/dist/ui/EmailInput/index.js +1 -0
  227. package/dist/ui/EmptyState/EmptyState.stories.d.ts +4 -4
  228. package/dist/ui/EmptyState/EmptyState.styles.d.ts +4 -4
  229. package/dist/ui/FileField/FileField.d.ts +5 -0
  230. package/dist/ui/FileField/FileField.d.ts.map +1 -0
  231. package/dist/ui/FileField/FileField.js +27 -0
  232. package/dist/ui/FileField/FileField.stories.d.ts +15 -0
  233. package/dist/ui/FileField/FileField.stories.d.ts.map +1 -0
  234. package/dist/ui/FileField/FileField.stories.js +15 -0
  235. package/dist/ui/FileField/FileField.stories.sources.d.ts +8 -0
  236. package/dist/ui/FileField/FileField.stories.sources.d.ts.map +1 -0
  237. package/dist/ui/FileField/FileField.stories.sources.js +8 -0
  238. package/dist/ui/FileField/FileField.styles.d.ts +4 -0
  239. package/dist/ui/FileField/FileField.styles.d.ts.map +1 -0
  240. package/dist/ui/FileField/FileField.styles.js +4 -0
  241. package/dist/ui/FileField/index.d.ts +2 -0
  242. package/dist/ui/FileField/index.d.ts.map +1 -0
  243. package/dist/ui/FileField/index.js +1 -0
  244. package/dist/ui/FormControl/FormControl.stories.d.ts +17 -17
  245. package/dist/ui/FormControl/FormControl.stories.js +3 -3
  246. package/dist/ui/FormControl/FormControl.stories.sources.d.ts.map +1 -1
  247. package/dist/ui/FormControl/FormControl.stories.sources.js +3 -3
  248. package/dist/ui/FormControl/FormControl.styles.d.ts +17 -17
  249. package/dist/ui/FormControl/FormControlFileInput.d.ts.map +1 -1
  250. package/dist/ui/FormControl/FormControlFileInput.styles.d.ts +6 -6
  251. package/dist/ui/FormControl/TextInput.d.ts.map +1 -1
  252. package/dist/ui/Header/Header.stories.d.ts +10 -6
  253. package/dist/ui/Header/Header.stories.d.ts.map +1 -1
  254. package/dist/ui/Header/Header.styles.d.ts +10 -6
  255. package/dist/ui/Header/Header.styles.d.ts.map +1 -1
  256. package/dist/ui/Header/Header.styles.js +1 -0
  257. package/dist/ui/InputButtonAdornment/InputButtonAdornment.d.ts +9 -0
  258. package/dist/ui/InputButtonAdornment/InputButtonAdornment.d.ts.map +1 -0
  259. package/dist/ui/InputButtonAdornment/InputButtonAdornment.js +13 -0
  260. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts +23 -0
  261. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.d.ts.map +1 -0
  262. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.js +16 -0
  263. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts +8 -0
  264. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.d.ts.map +1 -0
  265. package/dist/ui/InputButtonAdornment/InputButtonAdornment.stories.sources.js +8 -0
  266. package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts +12 -0
  267. package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.d.ts.map +1 -0
  268. package/dist/ui/InputButtonAdornment/InputButtonAdornment.styles.js +12 -0
  269. package/dist/ui/InputButtonAdornment/index.d.ts +2 -0
  270. package/dist/ui/InputButtonAdornment/index.d.ts.map +1 -0
  271. package/dist/ui/InputButtonAdornment/index.js +1 -0
  272. package/dist/ui/ListItem/ListItem.stories.d.ts +7 -7
  273. package/dist/ui/ListItem/ListItem.styles.d.ts +7 -7
  274. package/dist/ui/LucideIcon/LucideIcon.d.ts +3 -1
  275. package/dist/ui/LucideIcon/LucideIcon.d.ts.map +1 -1
  276. package/dist/ui/LucideIcon/LucideIcon.js +24 -4
  277. package/dist/ui/LucideIcon/LucideIcon.props.d.ts +8560 -9
  278. package/dist/ui/LucideIcon/LucideIcon.props.d.ts.map +1 -1
  279. package/dist/ui/LucideIcon/LucideIcon.props.js +1 -1
  280. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts +4280 -4
  281. package/dist/ui/LucideIcon/LucideIcon.stories.d.ts.map +1 -1
  282. package/dist/ui/LucideIcon/LucideIcon.stories.js +2 -0
  283. package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts +2 -0
  284. package/dist/ui/LucideIcon/LucideIcon.stories.sources.d.ts.map +1 -1
  285. package/dist/ui/LucideIcon/LucideIcon.stories.sources.js +2 -0
  286. package/dist/ui/NumberField/NumberField.d.ts +14 -0
  287. package/dist/ui/NumberField/NumberField.d.ts.map +1 -0
  288. package/dist/ui/NumberField/NumberField.js +13 -0
  289. package/dist/ui/NumberField/NumberField.stories.d.ts +14 -0
  290. package/dist/ui/NumberField/NumberField.stories.d.ts.map +1 -0
  291. package/dist/ui/NumberField/NumberField.stories.js +18 -0
  292. package/dist/ui/NumberField/NumberField.stories.sources.d.ts +6 -0
  293. package/dist/ui/NumberField/NumberField.stories.sources.d.ts.map +1 -0
  294. package/dist/ui/NumberField/NumberField.stories.sources.js +6 -0
  295. package/dist/ui/NumberField/NumberField.styles.d.ts +4 -0
  296. package/dist/ui/NumberField/NumberField.styles.d.ts.map +1 -0
  297. package/dist/ui/NumberField/NumberField.styles.js +4 -0
  298. package/dist/ui/NumberField/NumberField.web.d.ts +4 -0
  299. package/dist/ui/NumberField/NumberField.web.d.ts.map +1 -0
  300. package/dist/ui/NumberField/NumberField.web.js +10 -0
  301. package/dist/ui/NumberField/NumberFieldControlButton.d.ts +8 -0
  302. package/dist/ui/NumberField/NumberFieldControlButton.d.ts.map +1 -0
  303. package/dist/ui/NumberField/NumberFieldControlButton.js +6 -0
  304. package/dist/ui/NumberField/index.d.ts +2 -0
  305. package/dist/ui/NumberField/index.d.ts.map +1 -0
  306. package/dist/ui/NumberField/index.js +1 -0
  307. package/dist/ui/OtpField/OtpField.d.ts +15 -0
  308. package/dist/ui/OtpField/OtpField.d.ts.map +1 -0
  309. package/dist/ui/OtpField/OtpField.js +18 -0
  310. package/dist/ui/OtpField/OtpField.stories.d.ts +57 -0
  311. package/dist/ui/OtpField/OtpField.stories.d.ts.map +1 -0
  312. package/dist/ui/OtpField/OtpField.stories.js +14 -0
  313. package/dist/ui/OtpField/OtpField.stories.sources.d.ts +6 -0
  314. package/dist/ui/OtpField/OtpField.stories.sources.d.ts.map +1 -0
  315. package/dist/ui/OtpField/OtpField.stories.sources.js +6 -0
  316. package/dist/ui/OtpField/OtpField.styles.d.ts +39 -0
  317. package/dist/ui/OtpField/OtpField.styles.d.ts.map +1 -0
  318. package/dist/ui/OtpField/OtpField.styles.js +35 -0
  319. package/dist/ui/OtpField/index.d.ts +2 -0
  320. package/dist/ui/OtpField/index.d.ts.map +1 -0
  321. package/dist/ui/OtpField/index.js +1 -0
  322. package/dist/ui/PageHeader/PageHeader.d.ts.map +1 -1
  323. package/dist/ui/PageHeader/PageHeader.js +1 -1
  324. package/dist/ui/PageHeader/PageHeader.stories.d.ts +1 -1
  325. package/dist/ui/PageHeader/PageHeader.stories.js +1 -1
  326. package/dist/ui/PageHeader/PageHeader.styles.d.ts +1 -1
  327. package/dist/ui/PasswordField/PasswordField.d.ts +20 -0
  328. package/dist/ui/PasswordField/PasswordField.d.ts.map +1 -0
  329. package/dist/ui/PasswordField/PasswordField.js +10 -0
  330. package/dist/ui/PasswordField/PasswordField.stories.d.ts +33 -0
  331. package/dist/ui/PasswordField/PasswordField.stories.d.ts.map +1 -0
  332. package/dist/ui/PasswordField/PasswordField.stories.js +14 -0
  333. package/dist/ui/PasswordField/PasswordField.stories.sources.d.ts +6 -0
  334. package/dist/ui/PasswordField/PasswordField.stories.sources.d.ts.map +1 -0
  335. package/dist/ui/PasswordField/PasswordField.stories.sources.js +6 -0
  336. package/dist/ui/PasswordField/PasswordField.styles.d.ts +10 -0
  337. package/dist/ui/PasswordField/PasswordField.styles.d.ts.map +1 -0
  338. package/dist/ui/PasswordField/PasswordField.styles.js +10 -0
  339. package/dist/ui/PasswordField/index.d.ts +2 -0
  340. package/dist/ui/PasswordField/index.d.ts.map +1 -0
  341. package/dist/ui/PasswordField/index.js +1 -0
  342. package/dist/ui/PhoneField/PhoneField.d.ts +20 -0
  343. package/dist/ui/PhoneField/PhoneField.d.ts.map +1 -0
  344. package/dist/ui/PhoneField/PhoneField.js +8 -0
  345. package/dist/ui/PhoneField/PhoneField.stories.d.ts +25 -0
  346. package/dist/ui/PhoneField/PhoneField.stories.d.ts.map +1 -0
  347. package/dist/ui/PhoneField/PhoneField.stories.js +13 -0
  348. package/dist/ui/PhoneField/PhoneField.stories.sources.d.ts +6 -0
  349. package/dist/ui/PhoneField/PhoneField.stories.sources.d.ts.map +1 -0
  350. package/dist/ui/PhoneField/PhoneField.stories.sources.js +6 -0
  351. package/dist/ui/PhoneField/index.d.ts +2 -0
  352. package/dist/ui/PhoneField/index.d.ts.map +1 -0
  353. package/dist/ui/PhoneField/index.js +1 -0
  354. package/dist/ui/PhoneInput/PhoneInput.d.ts +16 -0
  355. package/dist/ui/PhoneInput/PhoneInput.d.ts.map +1 -0
  356. package/dist/ui/PhoneInput/PhoneInput.js +7 -0
  357. package/dist/ui/PhoneInput/PhoneInput.stories.d.ts +21 -0
  358. package/dist/ui/PhoneInput/PhoneInput.stories.d.ts.map +1 -0
  359. package/dist/ui/PhoneInput/PhoneInput.stories.js +13 -0
  360. package/dist/ui/PhoneInput/PhoneInput.stories.sources.d.ts +6 -0
  361. package/dist/ui/PhoneInput/PhoneInput.stories.sources.d.ts.map +1 -0
  362. package/dist/ui/PhoneInput/PhoneInput.stories.sources.js +6 -0
  363. package/dist/ui/PhoneInput/index.d.ts +2 -0
  364. package/dist/ui/PhoneInput/index.d.ts.map +1 -0
  365. package/dist/ui/PhoneInput/index.js +1 -0
  366. package/dist/ui/Popover/Popover.stories.d.ts +6 -6
  367. package/dist/ui/Popover/Popover.styles.d.ts +6 -6
  368. package/dist/ui/PriceInput/PriceInput.css +9 -0
  369. package/dist/ui/PriceInput/PriceInput.d.ts +14 -0
  370. package/dist/ui/PriceInput/PriceInput.d.ts.map +1 -0
  371. package/dist/ui/PriceInput/PriceInput.js +16 -0
  372. package/dist/ui/PriceInput/PriceInput.stories.d.ts +51 -0
  373. package/dist/ui/PriceInput/PriceInput.stories.d.ts.map +1 -0
  374. package/dist/ui/PriceInput/PriceInput.stories.js +19 -0
  375. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts +6 -0
  376. package/dist/ui/PriceInput/PriceInput.stories.sources.d.ts.map +1 -0
  377. package/dist/ui/PriceInput/PriceInput.stories.sources.js +6 -0
  378. package/dist/ui/PriceInput/PriceInput.styles.d.ts +36 -0
  379. package/dist/ui/PriceInput/PriceInput.styles.d.ts.map +1 -0
  380. package/dist/ui/PriceInput/PriceInput.styles.js +32 -0
  381. package/dist/ui/PriceInput/PriceInput.web.d.ts +8 -0
  382. package/dist/ui/PriceInput/PriceInput.web.d.ts.map +1 -0
  383. package/dist/ui/PriceInput/PriceInput.web.js +21 -0
  384. package/dist/ui/PriceInput/index.d.ts +2 -0
  385. package/dist/ui/PriceInput/index.d.ts.map +1 -0
  386. package/dist/ui/PriceInput/index.js +1 -0
  387. package/dist/ui/ProgressBar/ProgressBar.stories.d.ts +7 -7
  388. package/dist/ui/ProgressBar/ProgressBar.styles.d.ts +7 -7
  389. package/dist/ui/ProgressBar/ProgressBarDeterminate.js +1 -1
  390. package/dist/ui/ProgressBar/ProgressBarIndeterminate.js +1 -1
  391. package/dist/ui/ProgressBar/ProgressBarLoop.js +1 -1
  392. package/dist/ui/RadioGroup/RadioGroup.d.ts +21 -0
  393. package/dist/ui/RadioGroup/RadioGroup.d.ts.map +1 -0
  394. package/dist/ui/RadioGroup/RadioGroup.js +11 -0
  395. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts +164 -0
  396. package/dist/ui/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
  397. package/dist/ui/RadioGroup/RadioGroup.stories.js +23 -0
  398. package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts +10 -0
  399. package/dist/ui/RadioGroup/RadioGroup.stories.sources.d.ts.map +1 -0
  400. package/dist/ui/RadioGroup/RadioGroup.stories.sources.js +10 -0
  401. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts +140 -0
  402. package/dist/ui/RadioGroup/RadioGroup.styles.d.ts.map +1 -0
  403. package/dist/ui/RadioGroup/RadioGroup.styles.js +129 -0
  404. package/dist/ui/RadioGroup/RadioGroupCard.d.ts +12 -0
  405. package/dist/ui/RadioGroup/RadioGroupCard.d.ts.map +1 -0
  406. package/dist/ui/RadioGroup/RadioGroupCard.js +15 -0
  407. package/dist/ui/RadioGroup/RadioGroupContext.d.ts +8 -0
  408. package/dist/ui/RadioGroup/RadioGroupContext.d.ts.map +1 -0
  409. package/dist/ui/RadioGroup/RadioGroupContext.js +3 -0
  410. package/dist/ui/RadioGroup/RadioGroupItem.d.ts +8 -0
  411. package/dist/ui/RadioGroup/RadioGroupItem.d.ts.map +1 -0
  412. package/dist/ui/RadioGroup/RadioGroupItem.js +13 -0
  413. package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts +24 -0
  414. package/dist/ui/RadioGroup/RadioGroupItem.styles.d.ts.map +1 -0
  415. package/dist/ui/RadioGroup/RadioGroupItem.styles.js +20 -0
  416. package/dist/ui/RadioGroup/RadioInput.d.ts +7 -0
  417. package/dist/ui/RadioGroup/RadioInput.d.ts.map +1 -0
  418. package/dist/ui/RadioGroup/RadioInput.js +13 -0
  419. package/dist/ui/RadioGroup/index.d.ts +18 -0
  420. package/dist/ui/RadioGroup/index.d.ts.map +1 -0
  421. package/dist/ui/RadioGroup/index.js +7 -0
  422. package/dist/ui/ResourceList/ResourceList.stories.d.ts +2 -2
  423. package/dist/ui/ResourceList/ResourceList.styles.d.ts +2 -2
  424. package/dist/ui/Select/NativePicker.d.ts +16 -0
  425. package/dist/ui/Select/NativePicker.d.ts.map +1 -0
  426. package/dist/ui/Select/NativePicker.js +20 -0
  427. package/dist/ui/Select/Select.d.ts +24 -0
  428. package/dist/ui/Select/Select.d.ts.map +1 -0
  429. package/dist/ui/Select/Select.js +28 -0
  430. package/dist/ui/Select/Select.stories.d.ts +80 -0
  431. package/dist/ui/Select/Select.stories.d.ts.map +1 -0
  432. package/dist/ui/Select/Select.stories.js +24 -0
  433. package/dist/ui/Select/Select.stories.sources.d.ts +8 -0
  434. package/dist/ui/Select/Select.stories.sources.d.ts.map +1 -0
  435. package/dist/ui/Select/Select.stories.sources.js +8 -0
  436. package/dist/ui/Select/Select.styles.d.ts +60 -0
  437. package/dist/ui/Select/Select.styles.d.ts.map +1 -0
  438. package/dist/ui/Select/Select.styles.js +57 -0
  439. package/dist/ui/Select/SelectInput.d.ts +11 -0
  440. package/dist/ui/Select/SelectInput.d.ts.map +1 -0
  441. package/dist/ui/Select/SelectInput.ios.d.ts +9 -0
  442. package/dist/ui/Select/SelectInput.ios.d.ts.map +1 -0
  443. package/dist/ui/Select/SelectInput.ios.js +28 -0
  444. package/dist/ui/Select/SelectInput.js +6 -0
  445. package/dist/ui/Select/index.d.ts +7 -0
  446. package/dist/ui/Select/index.d.ts.map +1 -0
  447. package/dist/ui/Select/index.js +3 -0
  448. package/dist/ui/SelectMultiple/SelectMultiple.d.ts +14 -0
  449. package/dist/ui/SelectMultiple/SelectMultiple.d.ts.map +1 -0
  450. package/dist/ui/SelectMultiple/SelectMultiple.js +6 -0
  451. package/dist/ui/SelectMultiple/SelectMultiple.stories.d.ts +77 -0
  452. package/dist/ui/SelectMultiple/SelectMultiple.stories.d.ts.map +1 -0
  453. package/dist/ui/SelectMultiple/SelectMultiple.stories.js +25 -0
  454. package/dist/ui/SelectMultiple/SelectMultiple.stories.sources.d.ts +8 -0
  455. package/dist/ui/SelectMultiple/SelectMultiple.stories.sources.d.ts.map +1 -0
  456. package/dist/ui/SelectMultiple/SelectMultiple.stories.sources.js +8 -0
  457. package/dist/ui/SelectMultiple/SelectMultiple.styles.d.ts +66 -0
  458. package/dist/ui/SelectMultiple/SelectMultiple.styles.d.ts.map +1 -0
  459. package/dist/ui/SelectMultiple/SelectMultiple.styles.js +66 -0
  460. package/dist/ui/SelectMultiple/SelectMultiple.web.d.ts +14 -0
  461. package/dist/ui/SelectMultiple/SelectMultiple.web.d.ts.map +1 -0
  462. package/dist/ui/SelectMultiple/SelectMultiple.web.js +49 -0
  463. package/dist/ui/SelectMultiple/index.d.ts +3 -0
  464. package/dist/ui/SelectMultiple/index.d.ts.map +1 -0
  465. package/dist/ui/SelectMultiple/index.js +1 -0
  466. package/dist/ui/Sidebar/Sidebar.stories.d.ts +19 -19
  467. package/dist/ui/Sidebar/Sidebar.styles.d.ts +19 -19
  468. package/dist/ui/Signature/Signature.stories.d.ts +2 -2
  469. package/dist/ui/Signature/Signature.styles.d.ts +2 -2
  470. package/dist/ui/Signature/Signature.web.d.ts.map +1 -1
  471. package/dist/ui/Signature/Signature.web.js +5 -2
  472. package/dist/ui/Switch/Switch.d.ts +20 -0
  473. package/dist/ui/Switch/Switch.d.ts.map +1 -0
  474. package/dist/ui/Switch/Switch.js +42 -0
  475. package/dist/ui/Switch/Switch.stories.d.ts +73 -0
  476. package/dist/ui/Switch/Switch.stories.d.ts.map +1 -0
  477. package/dist/ui/Switch/Switch.stories.js +19 -0
  478. package/dist/ui/Switch/Switch.stories.sources.d.ts +8 -0
  479. package/dist/ui/Switch/Switch.stories.sources.d.ts.map +1 -0
  480. package/dist/ui/Switch/Switch.stories.sources.js +8 -0
  481. package/dist/ui/Switch/Switch.styles.d.ts +55 -0
  482. package/dist/ui/Switch/Switch.styles.d.ts.map +1 -0
  483. package/dist/ui/Switch/Switch.styles.js +51 -0
  484. package/dist/ui/Switch/index.d.ts +2 -0
  485. package/dist/ui/Switch/index.d.ts.map +1 -0
  486. package/dist/ui/Switch/index.js +1 -0
  487. package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
  488. package/dist/ui/Tabs/Tabs.js +2 -2
  489. package/dist/ui/Tabs/Tabs.stories.d.ts +5 -17
  490. package/dist/ui/Tabs/Tabs.stories.d.ts.map +1 -1
  491. package/dist/ui/Tabs/Tabs.styles.d.ts +5 -17
  492. package/dist/ui/Tabs/Tabs.styles.d.ts.map +1 -1
  493. package/dist/ui/Tabs/Tabs.styles.js +0 -8
  494. package/dist/ui/Tag/Tag.stories.d.ts +4 -4
  495. package/dist/ui/Tag/Tag.styles.d.ts +4 -4
  496. package/dist/ui/TextField/TextField.d.ts +22 -0
  497. package/dist/ui/TextField/TextField.d.ts.map +1 -0
  498. package/dist/ui/TextField/TextField.js +14 -0
  499. package/dist/ui/TextField/TextField.stories.d.ts +29 -0
  500. package/dist/ui/TextField/TextField.stories.d.ts.map +1 -0
  501. package/dist/ui/TextField/TextField.stories.js +15 -0
  502. package/dist/ui/TextField/TextField.stories.sources.d.ts +8 -0
  503. package/dist/ui/TextField/TextField.stories.sources.d.ts.map +1 -0
  504. package/dist/ui/TextField/TextField.stories.sources.js +8 -0
  505. package/dist/ui/TextField/TextField.styles.d.ts +4 -0
  506. package/dist/ui/TextField/TextField.styles.d.ts.map +1 -0
  507. package/dist/ui/TextField/TextField.styles.js +4 -0
  508. package/dist/ui/TextField/index.d.ts +2 -0
  509. package/dist/ui/TextField/index.d.ts.map +1 -0
  510. package/dist/ui/TextField/index.js +1 -0
  511. package/dist/ui/TextInputArray/TextInputArray.d.ts +21 -0
  512. package/dist/ui/TextInputArray/TextInputArray.d.ts.map +1 -0
  513. package/dist/ui/TextInputArray/TextInputArray.js +53 -0
  514. package/dist/ui/TextInputArray/TextInputArray.stories.d.ts +13 -0
  515. package/dist/ui/TextInputArray/TextInputArray.stories.d.ts.map +1 -0
  516. package/dist/ui/TextInputArray/TextInputArray.stories.js +24 -0
  517. package/dist/ui/TextInputArray/TextInputArray.stories.sources.d.ts +8 -0
  518. package/dist/ui/TextInputArray/TextInputArray.stories.sources.d.ts.map +1 -0
  519. package/dist/ui/TextInputArray/TextInputArray.stories.sources.js +8 -0
  520. package/dist/ui/TextInputArray/index.d.ts +2 -0
  521. package/dist/ui/TextInputArray/index.d.ts.map +1 -0
  522. package/dist/ui/TextInputArray/index.js +1 -0
  523. package/dist/ui/TextareaField/TextareaField.d.ts +22 -0
  524. package/dist/ui/TextareaField/TextareaField.d.ts.map +1 -0
  525. package/dist/ui/TextareaField/TextareaField.js +8 -0
  526. package/dist/ui/TextareaField/TextareaField.stories.d.ts +26 -0
  527. package/dist/ui/TextareaField/TextareaField.stories.d.ts.map +1 -0
  528. package/dist/ui/TextareaField/TextareaField.stories.js +13 -0
  529. package/dist/ui/TextareaField/TextareaField.stories.sources.d.ts +6 -0
  530. package/dist/ui/TextareaField/TextareaField.stories.sources.d.ts.map +1 -0
  531. package/dist/ui/TextareaField/TextareaField.stories.sources.js +6 -0
  532. package/dist/ui/TextareaField/index.d.ts +2 -0
  533. package/dist/ui/TextareaField/index.d.ts.map +1 -0
  534. package/dist/ui/TextareaField/index.js +1 -0
  535. package/dist/ui/TextareaInput/TextareaInput.d.ts +25 -0
  536. package/dist/ui/TextareaInput/TextareaInput.d.ts.map +1 -0
  537. package/dist/ui/TextareaInput/TextareaInput.js +7 -0
  538. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts +29 -0
  539. package/dist/ui/TextareaInput/TextareaInput.stories.d.ts.map +1 -0
  540. package/dist/ui/TextareaInput/TextareaInput.stories.js +13 -0
  541. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts +6 -0
  542. package/dist/ui/TextareaInput/TextareaInput.stories.sources.d.ts.map +1 -0
  543. package/dist/ui/TextareaInput/TextareaInput.stories.sources.js +6 -0
  544. package/dist/ui/TextareaInput/index.d.ts +2 -0
  545. package/dist/ui/TextareaInput/index.d.ts.map +1 -0
  546. package/dist/ui/TextareaInput/index.js +1 -0
  547. package/dist/ui/Toast/Toast.d.ts +13 -2
  548. package/dist/ui/Toast/Toast.d.ts.map +1 -1
  549. package/dist/ui/Toast/Toast.js +6 -35
  550. package/dist/ui/Toast/Toast.stories.d.ts +39 -21
  551. package/dist/ui/Toast/Toast.stories.d.ts.map +1 -1
  552. package/dist/ui/Toast/Toast.stories.js +12 -3
  553. package/dist/ui/Toast/Toast.stories.sources.d.ts +16 -0
  554. package/dist/ui/Toast/Toast.stories.sources.d.ts.map +1 -1
  555. package/dist/ui/Toast/Toast.stories.sources.js +17 -1
  556. package/dist/ui/Toast/Toast.styles.d.ts +31 -21
  557. package/dist/ui/Toast/Toast.styles.d.ts.map +1 -1
  558. package/dist/ui/Toast/Toast.styles.js +29 -19
  559. package/dist/ui/Toast/ToastContext.d.ts +1 -1
  560. package/dist/ui/Toast/ToastContext.d.ts.map +1 -1
  561. package/dist/ui/Toast/ToastType.d.ts +11 -0
  562. package/dist/ui/Toast/ToastType.d.ts.map +1 -0
  563. package/dist/ui/Toast/ToastType.js +46 -0
  564. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.stories.d.ts +4 -4
  565. package/dist/ui/ToolbarBottomNav/ToolbarBottomNav.styles.d.ts +4 -4
  566. package/dist/ui/ToolbarTop/ToolbarTop.stories.d.ts +3 -3
  567. package/dist/ui/ToolbarTop/ToolbarTop.styles.d.ts +3 -3
  568. package/dist/ui/index.d.ts +24 -0
  569. package/dist/ui/index.d.ts.map +1 -1
  570. package/dist/ui/index.js +24 -0
  571. package/package.json +37 -26
@@ -12,11 +12,11 @@ declare const _default: {
12
12
  flexDirection: "column";
13
13
  };
14
14
  pen: {
15
- color: "#373A3F";
15
+ color: string;
16
16
  backgroundColor: "#FFFFFF";
17
17
  };
18
18
  signatureWeb: {
19
- borderColor: "#DEE3EC";
19
+ borderColor: string;
20
20
  borderWidth: number;
21
21
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
22
22
  };
@@ -5,11 +5,11 @@ export declare const useStyles: () => {
5
5
  flexDirection: "column";
6
6
  };
7
7
  pen: {
8
- color: "#373A3F";
8
+ color: string;
9
9
  backgroundColor: "#FFFFFF";
10
10
  };
11
11
  signatureWeb: {
12
- borderColor: "#DEE3EC";
12
+ borderColor: string;
13
13
  borderWidth: number;
14
14
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Signature.web.d.ts","sourceRoot":"","sources":["../../../src/ui/Signature/Signature.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,sBAyE9C,CAAC"}
1
+ {"version":3,"file":"Signature.web.d.ts","sourceRoot":"","sources":["../../../src/ui/Signature/Signature.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,sBA6E9C,CAAC"}
@@ -10,6 +10,7 @@ export const Signature = (props) => {
10
10
  const { height, style, date = new Date(), dateLabel = 'Le', clearButtonLabel = 'Effacer', onChange, ...boxProps } = props;
11
11
  const styles = useStyles();
12
12
  const signatureRef = React.useRef(null);
13
+ const [signatureInstanceVersion, setSignatureInstanceVersion] = React.useState(0);
13
14
  const serializeSvgToBase64 = (svg) => {
14
15
  return new Promise(resolve => {
15
16
  const svgString = new XMLSerializer().serializeToString(svg);
@@ -37,14 +38,16 @@ export const Signature = (props) => {
37
38
  return () => {
38
39
  svgEl.removeEventListener('pointerup', handlePointerUp);
39
40
  };
40
- }, [signatureRef.current?.svg, onChange]);
41
+ }, [signatureInstanceVersion, onChange]);
41
42
  const handleClear = () => {
42
43
  signatureRef.current?.clear();
43
44
  onChange(null);
44
45
  };
45
46
  const dateFormat = isValidDate(date) ? displayDate(date, { format: DateFormats.DateSlash }) : String(date);
46
47
  return (_jsxs(Box, { tag: "signature", style: [styles.container, style], ...boxProps, children: [_jsxs(Box, { style: styles.headerSignature, children: [_jsxs(Typography, { style: styles.date, children: [dateLabel, " ", dateFormat] }), _jsx(Button, { title: clearButtonLabel, variant: "tertiary", size: "xs", onPress: handleClear })] }), _jsx(Box, { style: { ...styles.signatureWeb, height }, children: _jsx(ReactSignature, { ref: (inst) => {
47
- if (inst)
48
+ if (inst) {
48
49
  signatureRef.current = inst;
50
+ setSignatureInstanceVersion(version => version + 1);
51
+ }
49
52
  }, style: styles.signatureWeb, fill: styles.pen.color, options: { size: 12, smoothing: 0.15, thinning: 0.73, streamline: 0.5 } }) })] }));
50
53
  };
@@ -0,0 +1,20 @@
1
+ import React, { CSSProperties } from 'react';
2
+ import { TamaguiElement, SwitchProps as TamaguiSwitchProps } from 'tamagui';
3
+ export type SwitchElement = TamaguiElement;
4
+ export type SwitchProps = Omit<TamaguiSwitchProps, 'value' | 'onChange'> & {
5
+ id?: string;
6
+ label?: string;
7
+ style?: CSSProperties;
8
+ error?: string;
9
+ success?: string;
10
+ noPadding?: boolean;
11
+ };
12
+ export declare const Switch: React.ForwardRefExoticComponent<Omit<TamaguiSwitchProps, "value" | "onChange"> & {
13
+ id?: string;
14
+ label?: string;
15
+ style?: CSSProperties;
16
+ error?: string;
17
+ success?: string;
18
+ noPadding?: boolean;
19
+ } & React.RefAttributes<TamaguiElement>>;
20
+ //# sourceMappingURL=Switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAS,MAAM,OAAO,CAAC;AACpD,OAAO,EAAS,cAAc,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG5G,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;AAEF,eAAO,MAAM,MAAM;SARZ,MAAM;YACH,MAAM;YACN,aAAa;YACb,MAAM;cACJ,MAAM;gBACJ,OAAO;wCAgFnB,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Box, FormControlCaption, Typography } from '@alveole/components';
3
+ import { useTheme } from '@alveole/theme';
4
+ import React, { useId } from 'react';
5
+ import { Label, Switch as TamaguiSwitch } from 'tamagui';
6
+ import { useStyles } from './Switch.styles';
7
+ export const Switch = React.forwardRef(function Switch(props, ref) {
8
+ const { checked, style, label, error, success, disabled, noPadding, onCheckedChange, ...switchProps } = props;
9
+ let { id } = props;
10
+ const isControlled = checked !== undefined;
11
+ const [model, setModel] = React.useState(Boolean(checked));
12
+ const value = isControlled ? checked : model;
13
+ const { spacing } = useTheme();
14
+ const styles = useStyles();
15
+ const uniqId = useId();
16
+ id = id || `switch--${uniqId}`;
17
+ const onChange = (newValue) => {
18
+ if (!isControlled)
19
+ setModel(newValue);
20
+ onCheckedChange?.(newValue);
21
+ };
22
+ const switchButtonStyles = {
23
+ ...styles.switchButton,
24
+ ...(style ? style : {}),
25
+ ...(value ? styles.switchButtonChecked : {}),
26
+ ...(disabled ? styles.switchButtonDisabled : {}),
27
+ };
28
+ const switchThumbStyles = {
29
+ ...styles.switchThumb,
30
+ ...(value ? styles.switchThumbChecked : {}),
31
+ ...(disabled ? styles.switchThumbDisabled : {}),
32
+ };
33
+ const switchLabelStyles = {
34
+ ...styles.switchLabel,
35
+ ...(value ? styles.switchLabelChecked : {}),
36
+ ...(disabled ? styles.switchLabelDisabled : {}),
37
+ ...(noPadding ? { padding: 0, marginRight: 0 } : {}),
38
+ };
39
+ const Toggle = (_jsx(TamaguiSwitch, { id: id, ref: ref, borderWidth: 1, checked: value, onCheckedChange: onChange, style: switchButtonStyles, disabled: disabled, ...switchProps, children: _jsx(TamaguiSwitch.Thumb, { animation: "quicker", style: switchThumbStyles }) }));
40
+ const ToggleWithLabel = (_jsxs(_Fragment, { children: [_jsx(Label, { unstyled: true, htmlFor: id, width: '100%', children: _jsxs(Box, { tag: "switch", style: styles.switch, children: [Toggle, label && (_jsx(Typography, { htmlFor: id, style: switchLabelStyles, children: label }))] }) }), (error ?? success) && _jsx(FormControlCaption, { error: error, success: success })] }));
41
+ return (_jsx(Box, { tag: "switch", gap: error || success ? spacing('050') : 0, style: styles.switchContainer, children: !label ? Toggle : ToggleWithLabel }));
42
+ });
@@ -0,0 +1,73 @@
1
+ declare const _default: {
2
+ title: string;
3
+ tags: "ui"[];
4
+ experimental: false;
5
+ description: string;
6
+ component: import("react").ForwardRefExoticComponent<Omit<import("tamagui").SwitchProps, "value" | "onChange"> & {
7
+ id?: string;
8
+ label?: string;
9
+ style?: import("react").CSSProperties;
10
+ error?: string;
11
+ success?: string;
12
+ noPadding?: boolean;
13
+ } & import("react").RefAttributes<import("tamagui").TamaguiElement>>;
14
+ styleFn: () => {
15
+ switchContainer: {};
16
+ switch: {
17
+ display: "flex";
18
+ flexDirection: "row";
19
+ gap: import("@alveole/theme").Spacing;
20
+ paddingRight: import("@alveole/theme").Spacing;
21
+ };
22
+ switchButton: {
23
+ borderColor: string;
24
+ backgroundColor: string;
25
+ cursor: "pointer";
26
+ padding: number;
27
+ minHeight: import("@alveole/theme").Spacing;
28
+ marginTop: string;
29
+ marginBottom: string;
30
+ };
31
+ switchButtonChecked: {
32
+ backgroundColor: string;
33
+ };
34
+ switchButtonDisabled: {
35
+ backgroundColor: string;
36
+ cursor: "not-allowed";
37
+ };
38
+ switchThumb: {
39
+ borderWidth: number;
40
+ borderColor: string;
41
+ backgroundColor: string;
42
+ };
43
+ switchThumbChecked: {
44
+ backgroundColor: string;
45
+ };
46
+ switchThumbDisabled: {
47
+ backgroundColor: string;
48
+ cursor: "not-allowed";
49
+ borderColor: "#FFFFFF";
50
+ };
51
+ switchLabel: {
52
+ color: string;
53
+ fontSize: 14;
54
+ lineHeight: 20;
55
+ letterSpacing: 0;
56
+ fontFamily: string;
57
+ fontWeight?: import("react-native").TextStyle["fontWeight"];
58
+ cursor: "pointer";
59
+ marginTop: string;
60
+ marginBottom: string;
61
+ marginRight: number;
62
+ };
63
+ switchLabelChecked: {};
64
+ switchLabelDisabled: {
65
+ cursor: "not-allowed";
66
+ };
67
+ };
68
+ };
69
+ export default _default;
70
+ export declare const Default: () => import("react").JSX.Element;
71
+ export declare const Controlled: () => import("react").JSX.Element;
72
+ export * as Sources from './Switch.stories.sources';
73
+ //# sourceMappingURL=Switch.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAOnB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAGtB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Box } from '../../core';
4
+ import { Switch } from './Switch';
5
+ import { useStyles } from './Switch.styles';
6
+ export default {
7
+ title: 'Switch',
8
+ tags: ['ui'],
9
+ experimental: false,
10
+ description: 'Interrupteur avec label, supportant les modes contrôlé et non-contrôlé.',
11
+ component: Switch,
12
+ styleFn: useStyles,
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 })] }));
15
+ export const Controlled = () => {
16
+ const [value, setValue] = useState(false);
17
+ return _jsx(Switch, { label: value ? 'Activé' : 'Désactivé', checked: value, onCheckedChange: v => setValue(!!v) });
18
+ };
19
+ export * as Sources from './Switch.stories.sources';
@@ -0,0 +1,8 @@
1
+ export declare const Default: () => string;
2
+ export declare const Controlled: () => string;
3
+ export declare const storySources: {
4
+ readonly Default: () => string;
5
+ readonly Controlled: () => string;
6
+ };
7
+ export type StorySourceName = keyof typeof storySources;
8
+ //# sourceMappingURL=Switch.stories.sources.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,8 @@
1
+ // This file is generated. Do not edit manually.
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);";
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
+ export const storySources = {
6
+ Default,
7
+ Controlled,
8
+ };
@@ -0,0 +1,55 @@
1
+ export declare const useStyles: () => {
2
+ switchContainer: {};
3
+ switch: {
4
+ display: "flex";
5
+ flexDirection: "row";
6
+ gap: import("@alveole/theme").Spacing;
7
+ paddingRight: import("@alveole/theme").Spacing;
8
+ };
9
+ switchButton: {
10
+ borderColor: string;
11
+ backgroundColor: string;
12
+ cursor: "pointer";
13
+ padding: number;
14
+ minHeight: import("@alveole/theme").Spacing;
15
+ marginTop: string;
16
+ marginBottom: string;
17
+ };
18
+ switchButtonChecked: {
19
+ backgroundColor: string;
20
+ };
21
+ switchButtonDisabled: {
22
+ backgroundColor: string;
23
+ cursor: "not-allowed";
24
+ };
25
+ switchThumb: {
26
+ borderWidth: number;
27
+ borderColor: string;
28
+ backgroundColor: string;
29
+ };
30
+ switchThumbChecked: {
31
+ backgroundColor: string;
32
+ };
33
+ switchThumbDisabled: {
34
+ backgroundColor: string;
35
+ cursor: "not-allowed";
36
+ borderColor: "#FFFFFF";
37
+ };
38
+ switchLabel: {
39
+ color: string;
40
+ fontSize: 14;
41
+ lineHeight: 20;
42
+ letterSpacing: 0;
43
+ fontFamily: string;
44
+ fontWeight?: import("react-native").TextStyle["fontWeight"];
45
+ cursor: "pointer";
46
+ marginTop: string;
47
+ marginBottom: string;
48
+ marginRight: number;
49
+ };
50
+ switchLabelChecked: {};
51
+ switchLabelDisabled: {
52
+ cursor: "not-allowed";
53
+ };
54
+ };
55
+ //# sourceMappingURL=Switch.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/Switch.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDnB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { makeStyles } from '@alveole/theme';
2
+ export const useStyles = makeStyles(({ text, color, spacing }) => ({
3
+ switchContainer: {},
4
+ switch: {
5
+ display: 'flex',
6
+ flexDirection: 'row',
7
+ gap: spacing('050'),
8
+ paddingRight: spacing('050'),
9
+ },
10
+ switchButton: {
11
+ borderColor: color.border['default-grey'],
12
+ backgroundColor: color.background.default,
13
+ cursor: 'pointer',
14
+ padding: 1,
15
+ minHeight: spacing('200'),
16
+ marginTop: 'auto',
17
+ marginBottom: 'auto',
18
+ },
19
+ switchButtonChecked: {
20
+ backgroundColor: color.background['default-active'],
21
+ },
22
+ switchButtonDisabled: {
23
+ backgroundColor: color.background['disabled-grey'],
24
+ cursor: 'not-allowed',
25
+ },
26
+ switchThumb: {
27
+ borderWidth: 1,
28
+ borderColor: color.border['default-grey'],
29
+ backgroundColor: color.background['default-active'],
30
+ },
31
+ switchThumbChecked: {
32
+ backgroundColor: color.primary,
33
+ },
34
+ switchThumbDisabled: {
35
+ backgroundColor: color.background['disabled-grey'],
36
+ cursor: 'not-allowed',
37
+ borderColor: '#FFFFFF',
38
+ },
39
+ switchLabel: {
40
+ cursor: 'pointer',
41
+ marginTop: 'auto',
42
+ marginBottom: 'auto',
43
+ marginRight: 60,
44
+ ...text['Corps de texte'].SM.Regular,
45
+ color: color.text['label-grey'],
46
+ },
47
+ switchLabelChecked: {},
48
+ switchLabelDisabled: {
49
+ cursor: 'not-allowed',
50
+ },
51
+ }));
@@ -0,0 +1,2 @@
1
+ export * from './Switch';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Switch/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './Switch';
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAc,eAAe,EAAc,MAAM,qBAAqB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG;IACnD,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;QAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;KACtC,EAAE,CAAC;IACJ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,sBA6IpC,CAAC"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAuB,eAAe,EAAc,MAAM,qBAAqB,CAAC;AACtG,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG;IACnD,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;QAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;KACtC,EAAE,CAAC;IACJ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,sBAyIpC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Box, LucideIcon, Typography } from '@alveole/components';
2
+ import { Box, Counter, LucideIcon, Typography } from '@alveole/components';
3
3
  import React from 'react';
4
4
  import { ScrollView } from 'react-native';
5
5
  import { Tabs as TamaguiTabs } from 'tamagui';
@@ -52,5 +52,5 @@ export const Tabs = (props) => {
52
52
  return (_jsx(Box, { tag: "tabs-container", style: [styles.container, style], ...boxProps, children: _jsxs(TamaguiTabs, { style: styles.tabs, defaultValue: initialValue, value: currentTab, onValueChange: e => setCurrentTab(e, tabs.findIndex(t => t.value === e)), orientation: "horizontal", size: "$4", activationMode: "manual", children: [_jsxs(TamaguiTabs.List, { disablePassBorderRadius: true, loop: false, style: styles.tabsList, children: [tabs.map((tab, idx) => (_jsx(_Fragment, { children: _jsx(TamaguiTabs.Tab, { unstyled: true, onHoverIn: () => setHoverTab(tab.value), onHoverOut: () => setHoverTab(null), onInteraction: handleOnInteraction, value: tab.value, disabled: tabs.length < 2, style: { ...styles.tabsTab, ...(isCurrentTab(tab.value) ? styles.tabsTabActive : {}) }, children: _jsxs(Box, { style: {
53
53
  ...styles.wrapper,
54
54
  ...(isHoverTab(tab.value) ? styles.wrapperHover : {}),
55
- }, children: [tab.icon && (_jsx(LucideIcon, { name: tab.icon, size: "sm", color: "currentColor", style: { ...(isHoverTab(tab.value) ? styles.tabIconHover : styles.tabIcon) } })), _jsx(Typography, { style: { ...styles.tabsLabel, ...(isCurrentTab(tab.value) ? styles.tabsLabelActive : {}) }, children: tab.label }), tab.counter !== undefined && tab.counter > 0 && (_jsx(Typography, { style: { ...styles.tabsCounter, ...(isCurrentTab(tab.value) ? styles.tabsCounterActive : {}) }, children: tab.counter }))] }) }, idx) }))), renderActions && _jsx(Box, { ml: 'auto', children: renderActions() })] }), _jsx(Box, { style: { flex: 1, minHeight: 0 }, children: tabs.map((tab, idx) => (_jsx(TamaguiTabs.Content, { style: styles.tabsContent, value: tab.value, children: renderContent() }, idx))) })] }) }));
55
+ }, children: [tab.icon && (_jsx(LucideIcon, { name: tab.icon, size: "sm", color: "currentColor", style: { ...(isHoverTab(tab.value) ? styles.tabIconHover : styles.tabIcon) } })), _jsx(Typography, { style: { ...styles.tabsLabel, ...(isCurrentTab(tab.value) ? styles.tabsLabelActive : {}) }, children: tab.label }), tab.counter !== undefined && tab.counter > 0 && (_jsx(Counter, { variant: isCurrentTab(tab.value) ? 'primary' : 'default', count: tab.counter }))] }) }, idx) }))), renderActions && _jsx(Box, { ml: 'auto', children: renderActions() })] }), _jsx(Box, { style: { flex: 1, minHeight: 0 }, children: tabs.map((tab, idx) => (_jsx(TamaguiTabs.Content, { style: styles.tabsContent, value: tab.value, children: renderContent() }, idx))) })] }) }));
56
56
  };
@@ -24,7 +24,7 @@ declare const _default: {
24
24
  borderBottomRightRadius: import("@alveole/theme").Spacing;
25
25
  gap: import("@alveole/theme").Spacing;
26
26
  boxSizing: "border-box";
27
- borderColor: "#DEE3EC";
27
+ borderColor: string;
28
28
  borderBottomWidth: number;
29
29
  backgroundColor: "transparent";
30
30
  overflowX: "scroll";
@@ -46,26 +46,14 @@ declare const _default: {
46
46
  gap: import("@alveole/theme").Spacing;
47
47
  };
48
48
  tabsTabActive: {
49
- borderBottomColor: "#0264C7";
49
+ borderBottomColor: string;
50
50
  borderBottomWidth: number;
51
51
  };
52
- tabsCounter: {
53
- fontSize: 12;
54
- lineHeight: 20;
55
- letterSpacing: 0;
56
- fontFamily: string;
57
- fontWeight?: import("react-native").TextStyle["fontWeight"];
58
- paddingRight: import("@alveole/theme").Spacing;
59
- paddingLeft: import("@alveole/theme").Spacing;
60
- backgroundColor: "#E6EAF1";
61
- borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
62
- };
63
- tabsCounterActive: {};
64
52
  wrapperHover: {
65
53
  display: "flex";
66
54
  flexDirection: "row";
67
55
  alignItems: "center";
68
- backgroundColor: "rgba(0, 0, 0, 0.04)";
56
+ backgroundColor: string;
69
57
  };
70
58
  wrapper: {
71
59
  display: "flex";
@@ -82,10 +70,10 @@ declare const _default: {
82
70
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
83
71
  };
84
72
  tabIcon: {
85
- color: "#5F6571";
73
+ color: string;
86
74
  };
87
75
  tabIconHover: {
88
- color: "#373A3F";
76
+ color: string;
89
77
  };
90
78
  tabsLabel: {
91
79
  fontSize: 14;
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAsBnB,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":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK1B,wBAQkB;AAElB,eAAO,MAAM,OAAO,yBAsBnB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
@@ -16,7 +16,7 @@ export declare const useStyles: () => {
16
16
  borderBottomRightRadius: import("@alveole/theme").Spacing;
17
17
  gap: import("@alveole/theme").Spacing;
18
18
  boxSizing: "border-box";
19
- borderColor: "#DEE3EC";
19
+ borderColor: string;
20
20
  borderBottomWidth: number;
21
21
  backgroundColor: "transparent";
22
22
  overflowX: "scroll";
@@ -38,26 +38,14 @@ export declare const useStyles: () => {
38
38
  gap: import("@alveole/theme").Spacing;
39
39
  };
40
40
  tabsTabActive: {
41
- borderBottomColor: "#0264C7";
41
+ borderBottomColor: string;
42
42
  borderBottomWidth: number;
43
43
  };
44
- tabsCounter: {
45
- fontSize: 12;
46
- lineHeight: 20;
47
- letterSpacing: 0;
48
- fontFamily: string;
49
- fontWeight?: import("react-native").TextStyle["fontWeight"];
50
- paddingRight: import("@alveole/theme").Spacing;
51
- paddingLeft: import("@alveole/theme").Spacing;
52
- backgroundColor: "#E6EAF1";
53
- borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
54
- };
55
- tabsCounterActive: {};
56
44
  wrapperHover: {
57
45
  display: "flex";
58
46
  flexDirection: "row";
59
47
  alignItems: "center";
60
- backgroundColor: "rgba(0, 0, 0, 0.04)";
48
+ backgroundColor: string;
61
49
  };
62
50
  wrapper: {
63
51
  display: "flex";
@@ -74,10 +62,10 @@ export declare const useStyles: () => {
74
62
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
75
63
  };
76
64
  tabIcon: {
77
- color: "#5F6571";
65
+ color: string;
78
66
  };
79
67
  tabIconHover: {
80
- color: "#373A3F";
68
+ color: string;
81
69
  };
82
70
  tabsLabel: {
83
71
  fontSize: 14;
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFnB,CAAC"}
1
+ {"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFnB,CAAC"}
@@ -42,14 +42,6 @@ export const useStyles = makeStyles(({ color, spacing, text, radius }) => ({
42
42
  borderBottomColor: color.light.border['default-primary'],
43
43
  borderBottomWidth: 2,
44
44
  },
45
- tabsCounter: {
46
- paddingRight: spacing('1W'),
47
- paddingLeft: spacing('1W'),
48
- backgroundColor: color.light.background['disabled-grey'],
49
- borderRadius: radius('full'),
50
- ...text['Corps de texte'].XS.Bold,
51
- },
52
- tabsCounterActive: {},
53
45
  wrapperHover: {
54
46
  display: 'flex',
55
47
  flexDirection: 'row',
@@ -13,12 +13,12 @@ declare const _default: {
13
13
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
14
14
  };
15
15
  tagDefault: {
16
- color: "#151617";
17
- backgroundColor: "#EFF1F6";
16
+ color: string;
17
+ backgroundColor: string;
18
18
  };
19
19
  tagAction: {
20
- color: "#151617";
21
- backgroundColor: "#D2E8FE";
20
+ color: string;
21
+ backgroundColor: string;
22
22
  };
23
23
  tagSm: {
24
24
  fontSize: 12;
@@ -6,12 +6,12 @@ export declare const useStyles: () => {
6
6
  borderRadius: import("@alveole/theme/dist/constants/Radius").Radius;
7
7
  };
8
8
  tagDefault: {
9
- color: "#151617";
10
- backgroundColor: "#EFF1F6";
9
+ color: string;
10
+ backgroundColor: string;
11
11
  };
12
12
  tagAction: {
13
- color: "#151617";
14
- backgroundColor: "#D2E8FE";
13
+ color: string;
14
+ backgroundColor: string;
15
15
  };
16
16
  tagSm: {
17
17
  fontSize: 12;
@@ -0,0 +1,22 @@
1
+ import { FormControlCaptionProps, FormControlHintProps, FormControlLabelProps, TextInputProps } from '@alveole/components';
2
+ import React from 'react';
3
+ export type TextFieldProps = TextInputProps & FormControlLabelProps & FormControlHintProps & FormControlCaptionProps & {
4
+ type?: 'text' | 'hidden';
5
+ onChange?: TextInputProps['onChangeText'];
6
+ };
7
+ export declare const TextField: React.ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "style"> & {
8
+ disabled?: boolean;
9
+ startAdornment?: React.ReactNode;
10
+ endAdornment?: React.ReactNode;
11
+ openModal?: boolean;
12
+ modalSubmitLabel?: string;
13
+ onModalSubmit?: () => void;
14
+ } & {
15
+ label: string;
16
+ labelRight?: React.ReactNode;
17
+ disabled?: boolean;
18
+ } & FormControlCaptionProps & FormControlHintProps & {
19
+ type?: "text" | "hidden";
20
+ onChange?: TextInputProps["onChangeText"];
21
+ } & React.RefAttributes<import("react-native").TextInput>>;
22
+ //# sourceMappingURL=TextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/ui/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,uBAAuB,EAEvB,oBAAoB,EAEpB,qBAAqB,EAIrB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,cAAc,GAAG,cAAc,GACzC,qBAAqB,GACrB,oBAAoB,GACpB,uBAAuB,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,QAAQ,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CAC3C,CAAC;AAEJ,eAAO,MAAM,SAAS;;;;;;;;;;;;WAJX,MAAM,GAAG,QAAQ;eACb,cAAc,CAAC,cAAc,CAAC;0DAqC3C,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { FormControl, FormControlCaption, FormControlHint, FormControlLabel, InputHeading, TextInput, } from '@alveole/components';
3
+ import React from 'react';
4
+ import { useStyles } from './TextField.styles';
5
+ export const TextField = React.forwardRef(function TextField(props, ref) {
6
+ const { label, labelRight, hint, error, success, disabled, onChange } = props;
7
+ const styles = useStyles();
8
+ const keyboardType = 'default';
9
+ const textContentType = 'none';
10
+ const autoCapitalize = 'sentences';
11
+ const autoComplete = 'off';
12
+ const inputMode = 'text';
13
+ return (_jsxs(FormControl, { style: styles.textField, children: [_jsxs(InputHeading, { children: [label && (_jsx(FormControlLabel, { labelRight: labelRight, label: label, disabled: disabled, error: error, success: success })), hint && _jsx(FormControlHint, { hint: hint, disabled: disabled })] }), _jsx(TextInput, { ref: ref, keyboardType: keyboardType, textContentType: textContentType, autoCapitalize: autoCapitalize, autoComplete: autoComplete, inputMode: inputMode, onChangeText: onChange, ...props }), (error || success) && _jsx(FormControlCaption, { error: error, success: success })] }));
14
+ });
@@ -0,0 +1,29 @@
1
+ declare const _default: {
2
+ title: string;
3
+ tags: "ui"[];
4
+ experimental: false;
5
+ description: string;
6
+ component: import("react").ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "style"> & {
7
+ disabled?: boolean;
8
+ startAdornment?: React.ReactNode;
9
+ endAdornment?: React.ReactNode;
10
+ openModal?: boolean;
11
+ modalSubmitLabel?: string;
12
+ onModalSubmit?: () => void;
13
+ } & {
14
+ label: string;
15
+ labelRight?: React.ReactNode;
16
+ disabled?: boolean;
17
+ } & import("..").FormControlCaptionProps & import("..").FormControlHintProps & {
18
+ type?: "text" | "hidden";
19
+ onChange?: import("..").TextInputProps["onChangeText"];
20
+ } & import("react").RefAttributes<import("react-native").TextInput>>;
21
+ styleFn: () => {
22
+ textField: {};
23
+ };
24
+ };
25
+ export default _default;
26
+ export declare const Default: () => import("react").JSX.Element;
27
+ export declare const States: () => import("react").JSX.Element;
28
+ export * as Sources from './TextField.stories.sources';
29
+ //# sourceMappingURL=TextField.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/TextField/TextField.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAOkB;AAElB,eAAO,MAAM,OAAO,mCAMnB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAOlB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC"}