@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
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentViewer.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,sBAAsB,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,CAAC;AACxD,eAAO,MAAM,wBAAwB,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,sBAC/B,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG;IAC3C,IAAI,EAAE,OAAO,GAAG,KAAK,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,aAAa,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,sBAsFxD,CAAC"}
1
+ {"version":3,"file":"DocumentViewer.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,sBAAsB,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,CAAC;AACxD,eAAO,MAAM,wBAAwB,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,sBAC/B,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG;IAC3C,IAAI,EAAE,OAAO,GAAG,KAAK,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,aAAa,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,sBAmFxD,CAAC"}
@@ -35,11 +35,9 @@ export const DocumentViewer = (props) => {
35
35
  const handlePreviousPage = React.useCallback(() => {
36
36
  setPage(currentPage => Math.max(currentPage - 1, 1));
37
37
  }, []);
38
- React.useEffect(() => {
39
- setPage(currentPage => Math.min(currentPage, totalPages));
40
- }, [totalPages]);
41
38
  const handlePdfReady = React.useCallback((proxy) => {
42
39
  setTotalPages(proxy.numPages);
40
+ setPage(currentPage => Math.min(currentPage, proxy.numPages));
43
41
  }, []);
44
42
  return (_jsxs(Box, { tag: "document-viewer-wrapper", height: height, style: styles.viewerWrapper, children: [_jsxs(Box, { tag: "document-viewer", flex: 1, height: '100%', minW: 0, style: { flexBasis: 0 }, ...boxProps, children: [_jsx(DocumentViewerToolbar, { title: title, state: state, withChildren: children != null, onRotateLeft: () => handleRotate('left'), onRotateRight: () => handleRotate('right'), onNextPage: handleNextPage, onPreviousPage: handlePreviousPage }), _jsx(Box, { tag: "document-viewer-container", style: {
45
43
  ...styles.viewerContainer,
@@ -8,12 +8,12 @@ declare const _default: {
8
8
  styleFn: () => {
9
9
  toolbar: {
10
10
  padding: import("@alveole/theme").Spacing;
11
- borderColor: "#DEE3EC";
11
+ borderColor: string;
12
12
  borderWidth: number;
13
13
  borderStyle: "solid";
14
14
  borderTopLeftRadius: import("@alveole/theme/dist/constants/Radius").Radius;
15
15
  borderTopRightRadius: import("@alveole/theme/dist/constants/Radius").Radius;
16
- backgroundColor: "#F6F7F8";
16
+ backgroundColor: string;
17
17
  display: "flex";
18
18
  flexDirection: "row";
19
19
  gap: import("@alveole/theme").Spacing;
@@ -26,7 +26,7 @@ declare const _default: {
26
26
  justifyContent: "flex-end";
27
27
  };
28
28
  toolbarTitle: {
29
- color: "#373A3F";
29
+ color: string;
30
30
  paddingLeft: import("@alveole/theme").Spacing;
31
31
  marginTop: string;
32
32
  marginBottom: string;
@@ -38,7 +38,7 @@ declare const _default: {
38
38
  fontWeight?: import("react-native").TextStyle["fontWeight"];
39
39
  };
40
40
  toolbarState: {
41
- color: "#5F6571";
41
+ color: string;
42
42
  userSelect: "none";
43
43
  fontVariant: "tabular-nums"[];
44
44
  fontSize: 14;
@@ -50,7 +50,7 @@ declare const _default: {
50
50
  toolbarDivider: {
51
51
  width: number;
52
52
  height: "50%";
53
- backgroundColor: "#DEE3EC";
53
+ backgroundColor: string;
54
54
  marginTop: string;
55
55
  marginBottom: string;
56
56
  };
@@ -64,13 +64,13 @@ declare const _default: {
64
64
  flexDirection: "column";
65
65
  flex: number;
66
66
  padding: import("@alveole/theme").Spacing;
67
- borderColor: "#DEE3EC";
67
+ borderColor: string;
68
68
  borderWidth: number;
69
69
  borderStyle: "solid";
70
70
  borderTopWidth: number;
71
71
  borderBottomLeftRadius: import("@alveole/theme/dist/constants/Radius").Radius;
72
72
  borderBottomRightRadius: import("@alveole/theme/dist/constants/Radius").Radius;
73
- backgroundColor: "#FFFFFF";
73
+ backgroundColor: string;
74
74
  overflow: "hidden";
75
75
  };
76
76
  children: {
@@ -81,13 +81,13 @@ declare const _default: {
81
81
  maxWidth: string;
82
82
  minWidth: number;
83
83
  flexShrink: number;
84
- borderColor: "#DEE3EC";
84
+ borderColor: string;
85
85
  borderWidth: number;
86
86
  borderStyle: "solid";
87
87
  borderLeft: number;
88
88
  borderTopRightRadius: import("@alveole/theme/dist/constants/Radius").Radius;
89
89
  borderBottomRightRadius: import("@alveole/theme/dist/constants/Radius").Radius;
90
- backgroundColor: "#FFFFFF";
90
+ backgroundColor: string;
91
91
  overflow: "auto";
92
92
  };
93
93
  viewerImageContent: {
@@ -145,7 +145,7 @@ declare const _default: {
145
145
  display: "flex";
146
146
  alignItems: "center";
147
147
  justifyContent: "center";
148
- backgroundColor: "#FFFFFF";
148
+ backgroundColor: string;
149
149
  };
150
150
  };
151
151
  };
@@ -1,12 +1,12 @@
1
1
  export declare const useStyles: () => {
2
2
  toolbar: {
3
3
  padding: import("@alveole/theme").Spacing;
4
- borderColor: "#DEE3EC";
4
+ borderColor: string;
5
5
  borderWidth: number;
6
6
  borderStyle: "solid";
7
7
  borderTopLeftRadius: import("@alveole/theme/dist/constants/Radius").Radius;
8
8
  borderTopRightRadius: import("@alveole/theme/dist/constants/Radius").Radius;
9
- backgroundColor: "#F6F7F8";
9
+ backgroundColor: string;
10
10
  display: "flex";
11
11
  flexDirection: "row";
12
12
  gap: import("@alveole/theme").Spacing;
@@ -19,7 +19,7 @@ export declare const useStyles: () => {
19
19
  justifyContent: "flex-end";
20
20
  };
21
21
  toolbarTitle: {
22
- color: "#373A3F";
22
+ color: string;
23
23
  paddingLeft: import("@alveole/theme").Spacing;
24
24
  marginTop: string;
25
25
  marginBottom: string;
@@ -31,7 +31,7 @@ export declare const useStyles: () => {
31
31
  fontWeight?: import("react-native").TextStyle["fontWeight"];
32
32
  };
33
33
  toolbarState: {
34
- color: "#5F6571";
34
+ color: string;
35
35
  userSelect: "none";
36
36
  fontVariant: "tabular-nums"[];
37
37
  fontSize: 14;
@@ -43,7 +43,7 @@ export declare const useStyles: () => {
43
43
  toolbarDivider: {
44
44
  width: number;
45
45
  height: "50%";
46
- backgroundColor: "#DEE3EC";
46
+ backgroundColor: string;
47
47
  marginTop: string;
48
48
  marginBottom: string;
49
49
  };
@@ -57,13 +57,13 @@ export declare const useStyles: () => {
57
57
  flexDirection: "column";
58
58
  flex: number;
59
59
  padding: import("@alveole/theme").Spacing;
60
- borderColor: "#DEE3EC";
60
+ borderColor: string;
61
61
  borderWidth: number;
62
62
  borderStyle: "solid";
63
63
  borderTopWidth: number;
64
64
  borderBottomLeftRadius: import("@alveole/theme/dist/constants/Radius").Radius;
65
65
  borderBottomRightRadius: import("@alveole/theme/dist/constants/Radius").Radius;
66
- backgroundColor: "#FFFFFF";
66
+ backgroundColor: string;
67
67
  overflow: "hidden";
68
68
  };
69
69
  children: {
@@ -74,13 +74,13 @@ export declare const useStyles: () => {
74
74
  maxWidth: string;
75
75
  minWidth: number;
76
76
  flexShrink: number;
77
- borderColor: "#DEE3EC";
77
+ borderColor: string;
78
78
  borderWidth: number;
79
79
  borderStyle: "solid";
80
80
  borderLeft: number;
81
81
  borderTopRightRadius: import("@alveole/theme/dist/constants/Radius").Radius;
82
82
  borderBottomRightRadius: import("@alveole/theme/dist/constants/Radius").Radius;
83
- backgroundColor: "#FFFFFF";
83
+ backgroundColor: string;
84
84
  overflow: "auto";
85
85
  };
86
86
  viewerImageContent: {
@@ -138,7 +138,7 @@ export declare const useStyles: () => {
138
138
  display: "flex";
139
139
  alignItems: "center";
140
140
  justifyContent: "center";
141
- backgroundColor: "#FFFFFF";
141
+ backgroundColor: string;
142
142
  };
143
143
  };
144
144
  //# sourceMappingURL=DocumentViewer.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentViewerPDF.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewerPDF.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,4CAA4C,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,QAAQ,EAAE,sBAAsB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC7C,CAAC;AAYF,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,sBA6J9D,CAAC"}
1
+ {"version":3,"file":"DocumentViewerPDF.d.ts","sourceRoot":"","sources":["../../../src/ui/DocumentViewer/DocumentViewerPDF.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,4CAA4C,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,QAAQ,EAAE,sBAAsB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC7C,CAAC;AAYF,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,sBAyJ9D,CAAC"}
@@ -28,11 +28,8 @@ export const DocumentViewerPDF = (props) => {
28
28
  }, [onReady]);
29
29
  const onPdfLoadedSuccess = React.useCallback((documentPdf, active) => {
30
30
  if (!active)
31
- return void documentPdf.destroy?.();
32
- setPdf(currentPdf => {
33
- void currentPdf?.destroy?.();
34
- return documentPdf;
35
- });
31
+ return;
32
+ setPdf(documentPdf);
36
33
  onReadyRef.current?.(documentPdf);
37
34
  }, []);
38
35
  const onPdfLoadedError = (active) => {
@@ -59,6 +56,7 @@ export const DocumentViewerPDF = (props) => {
59
56
  context.setTransform(1, 0, 0, 1, 0, 0);
60
57
  context.clearRect(0, 0, canvas.width, canvas.height);
61
58
  return pagePdf.render({
59
+ canvas,
62
60
  canvasContext: context,
63
61
  viewport,
64
62
  transform: pixelRatio === 1 ? undefined : [pixelRatio, 0, 0, pixelRatio, 0, 0],
@@ -66,7 +64,7 @@ export const DocumentViewerPDF = (props) => {
66
64
  }, [rotation, scale, viewerSize.height, viewerSize.width]);
67
65
  React.useEffect(() => {
68
66
  let isActive = true;
69
- const loadingTask = pdfjs.getDocument(source);
67
+ const loadingTask = pdfjs.getDocument({ url: source });
70
68
  loadingTask.promise
71
69
  .then(nextPdf => onPdfLoadedSuccess(nextPdf, isActive))
72
70
  .catch(error => {
@@ -119,7 +117,6 @@ export const DocumentViewerPDF = (props) => {
119
117
  const y = ((event.clientY - rect.top) / rect.height) * 100;
120
118
  setTransformOrigin(`${Math.max(0, Math.min(100, x))}% ${Math.max(0, Math.min(100, y))}%`);
121
119
  }, []);
122
- React.useEffect(() => () => void pdf?.destroy?.(), [pdf]);
123
120
  return (_jsx(Box, { tag: "document-viewer-pdf", width: '100%', height: height, onLayout: handleLayout, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), onPointerEnter: () => setIsHovered(true), onPointerLeave: () => setIsHovered(false), onPointerMove: handlePointerMove, style: styles.viewerPdfContent, children: _jsx(Box, { width: '100%', height: '100%', p: '1V', style: styles.viewerPdfStage, children: Platform.OS === 'web' && (_jsx(Box, { style: [
124
121
  styles.viewerPdfCanvasWrapper,
125
122
  {
@@ -0,0 +1,9 @@
1
+ import { FormControlCaptionProps, FormControlFileInputProps, FormControlFileInputValue, FormControlHintProps, LucideIconProps } from '@alveole/components';
2
+ import React from 'react';
3
+ export type DragAndDropFileValue = FormControlFileInputValue;
4
+ export type DragAndDropFileProps = FormControlHintProps & FormControlCaptionProps & FormControlFileInputProps & {
5
+ label: string;
6
+ icon?: LucideIconProps['name'];
7
+ };
8
+ export declare const DragAndDropFile: (props: DragAndDropFileProps) => React.JSX.Element;
9
+ //# sourceMappingURL=DragAndDropFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragAndDropFile.d.ts","sourceRoot":"","sources":["../../../src/ui/DragAndDropFile/DragAndDropFile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,uBAAuB,EAEvB,yBAAyB,EACzB,yBAAyB,EAEzB,oBAAoB,EAIpB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAAC;AAC7D,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GACrD,uBAAuB,GACvB,yBAAyB,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEJ,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,sBAqG1D,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, FormControlCaption, FormControlFileInput, FormControlHint, FormControlLabel, Image, LucideIcon, } from '@alveole/components';
3
+ import React from 'react';
4
+ import { Alert } from '../../core/Alert';
5
+ import { useStyles } from './DragAndDropFile.styles';
6
+ export const DragAndDropFile = (props) => {
7
+ const { label, hint, icon, type, error, success, onChange, multiple } = props;
8
+ const styles = useStyles();
9
+ const [forceOpen, setForceOpen] = React.useState(false);
10
+ const onValueChange = value => {
11
+ if (type == null)
12
+ return onChange(value);
13
+ if (multiple && Array.isArray(value)) {
14
+ const invalidFiles = value.filter(file => {
15
+ const mimeType = file?.mimeType;
16
+ const fileName = file?.name;
17
+ if (mimeType == null)
18
+ return true;
19
+ return !((type.includes('image') && mimeType.startsWith('image')) ||
20
+ (type.includes('pdf') && mimeType.endsWith('pdf')) ||
21
+ (type.includes('csv') &&
22
+ (mimeType === 'text/csv' || mimeType === 'application/csv' || fileName?.endsWith('.csv'))));
23
+ });
24
+ if (invalidFiles.length > 0) {
25
+ Alert.alert({
26
+ title: 'Type de fichier incorrect',
27
+ message: `Certains fichiers ne sont pas pris en charge`,
28
+ });
29
+ return;
30
+ }
31
+ return onChange(value);
32
+ }
33
+ const mimeType = value?.mimeType;
34
+ if (mimeType == null)
35
+ return onChange(value);
36
+ const fileName = value?.name;
37
+ if ((type.includes('image') && mimeType.startsWith('image')) ||
38
+ (type.includes('pdf') && mimeType.endsWith('pdf')) ||
39
+ (type.includes('csv') &&
40
+ (mimeType === 'text/csv' || mimeType === 'application/csv' || fileName?.endsWith('.csv'))))
41
+ return onChange(value);
42
+ else {
43
+ Alert.alert({
44
+ title: 'Type de fichier incorrect',
45
+ message: `Le format du fichier n'est pas pris en charge`,
46
+ });
47
+ }
48
+ };
49
+ return (_jsxs(Box, { tag: "drag-and-drop-file", style: styles.container, display: "flex", flexDirection: "row", justify: "space-between", onPress: () => setForceOpen(true), children: [_jsxs(Box, { children: [_jsxs(Box, { tag: "drag-and-drop-file-icon", display: "flex", flexDirection: "row", justify: "center", gap: '050', children: [_jsx(LucideIcon, { size: "md", name: icon ?? 'Upload' }), _jsx(Box, { mt: 'auto', mb: 'auto', children: _jsx(FormControlLabel, { label: label }) })] }), _jsx(Box, { tag: "drag-and-drop-file-hint", display: "flex", flexDirection: "row", justify: "center", children: hint && _jsx(FormControlHint, { hint: hint }) }), _jsx(Box, { tag: "drag-and-drop-file-input", children: _jsx(FormControlFileInput, { ...props, hideButton: true, hideFilename: true, canChange: false, onChange: onValueChange, reopen: forceOpen, onPickStart: () => setForceOpen(false), type: type, multiple: multiple }) }), (error || success) && (_jsx(Box, { tag: "drag-and-drop-file-error", mt: '075', display: "flex", flexDirection: "row", justify: "center", children: _jsx(Box, { p: 16, children: _jsx(FormControlCaption, { ...props }) }) }))] }), _jsx(Box, { children: props.previewURL && _jsx(Image, { source: { uri: props.previewURL }, height: 40, width: 30, contentFit: "cover" }) })] }));
50
+ };
@@ -0,0 +1,102 @@
1
+ declare const _default: {
2
+ title: string;
3
+ tags: "ui"[];
4
+ experimental: false;
5
+ webOnly: true;
6
+ description: string;
7
+ component: (props: import("./DragAndDropFile").DragAndDropFileProps) => import("react").JSX.Element;
8
+ styleFn: () => {
9
+ container: {
10
+ borderWidth: number;
11
+ borderStyle: "dashed";
12
+ borderColor: string;
13
+ padding: import("@alveole/theme").Spacing;
14
+ borderRadius: number;
15
+ backgroundColor: string;
16
+ cursor: "pointer";
17
+ };
18
+ containerHover: {
19
+ borderStyle: "solid";
20
+ borderColor: string;
21
+ backgroundColor: string;
22
+ };
23
+ containerMouseHover: {
24
+ borderStyle: "dashed";
25
+ borderColor: string;
26
+ backgroundColor: string;
27
+ };
28
+ containerError: {
29
+ borderStyle: "dashed";
30
+ borderColor: string;
31
+ backgroundColor: string;
32
+ };
33
+ webError: {
34
+ width: "100%";
35
+ alignItems: "center";
36
+ };
37
+ icon: {
38
+ color: string;
39
+ backgroundColor: string;
40
+ padding: import("@alveole/theme").Spacing;
41
+ borderRadius: number;
42
+ width: import("@alveole/theme").Spacing;
43
+ height: import("@alveole/theme").Spacing;
44
+ marginBottom: import("@alveole/theme").Spacing;
45
+ };
46
+ filesListContainer: {
47
+ marginTop: import("@alveole/theme").Spacing;
48
+ };
49
+ filesListHeader: {
50
+ display: "flex";
51
+ flexDirection: "row";
52
+ justifyContent: "space-between";
53
+ alignItems: "center";
54
+ marginBottom: import("@alveole/theme").Spacing;
55
+ };
56
+ filesListTitle: {
57
+ fontWeight: "bold";
58
+ };
59
+ filesListBox: {
60
+ borderWidth: number;
61
+ borderColor: string;
62
+ borderRadius: number;
63
+ padding: import("@alveole/theme").Spacing;
64
+ backgroundColor: string;
65
+ };
66
+ fileItemContainer: {
67
+ display: "flex";
68
+ flexDirection: "row";
69
+ alignItems: "center";
70
+ gap: import("@alveole/theme").Spacing;
71
+ padding: import("@alveole/theme").Spacing;
72
+ marginBottom: import("@alveole/theme").Spacing;
73
+ backgroundColor: string;
74
+ borderRadius: number;
75
+ };
76
+ fileItemContainerLast: {
77
+ marginBottom: number;
78
+ };
79
+ fileIcon: {
80
+ color: string;
81
+ };
82
+ fileInfo: {
83
+ flex: number;
84
+ display: "flex";
85
+ flexDirection: "column";
86
+ gap: import("@alveole/theme").Spacing;
87
+ };
88
+ fileName: {
89
+ fontWeight: "bold";
90
+ };
91
+ fileSize: {
92
+ fontSize: number;
93
+ color: string;
94
+ };
95
+ };
96
+ };
97
+ export default _default;
98
+ export declare const Default: () => import("react").JSX.Element;
99
+ export declare const Multiple: () => import("react").JSX.Element;
100
+ export declare const WithError: () => import("react").JSX.Element;
101
+ export * as Sources from './DragAndDropFile.stories.sources';
102
+ //# sourceMappingURL=DragAndDropFile.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragAndDropFile.stories.d.ts","sourceRoot":"","sources":["../../../src/ui/DragAndDropFile/DragAndDropFile.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAQkB;AAElB,eAAO,MAAM,OAAO,mCAKnB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAEpB,CAAC;AAEF,eAAO,MAAM,SAAS,mCAErB,CAAC;AAEF,OAAO,KAAK,OAAO,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box } from '../../core';
3
+ import { DragAndDropFile } from './DragAndDropFile';
4
+ import { useStyles } from './DragAndDropFile.styles';
5
+ export default {
6
+ title: 'DragAndDropFile',
7
+ tags: ['ui'],
8
+ experimental: false,
9
+ webOnly: true,
10
+ description: 'Zone de dépôt de fichiers par glisser-déposer ou clic.',
11
+ component: DragAndDropFile,
12
+ styleFn: useStyles,
13
+ };
14
+ export const Default = () => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 24, children: [_jsx(DragAndDropFile, { label: "Document", value: null, onChange: () => { } }), _jsx(DragAndDropFile, { label: "Image uniquement", type: "image/*", value: null, onChange: () => { } })] }));
15
+ export const Multiple = () => (_jsx(DragAndDropFile, { label: "Documents (plusieurs)", multiple: true, value: null, onChange: () => { } }));
16
+ export const WithError = () => (_jsx(DragAndDropFile, { label: "Document", error: "Format non support\u00E9", value: null, onChange: () => { } }));
17
+ export * as Sources from './DragAndDropFile.stories.sources';
@@ -0,0 +1,10 @@
1
+ export declare const Default: () => string;
2
+ export declare const Multiple: () => string;
3
+ export declare const WithError: () => string;
4
+ export declare const storySources: {
5
+ readonly Default: () => string;
6
+ readonly Multiple: () => string;
7
+ readonly WithError: () => string;
8
+ };
9
+ export type StorySourceName = keyof typeof storySources;
10
+ //# sourceMappingURL=DragAndDropFile.stories.sources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragAndDropFile.stories.sources.d.ts","sourceRoot":"","sources":["../../../src/ui/DragAndDropFile/DragAndDropFile.stories.sources.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,cAAsS,CAAC;AAE3T,eAAO,MAAM,QAAQ,cAA+I,CAAC;AAErK,eAAO,MAAM,SAAS,cAAwJ,CAAC;AAE/K,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ // This file is generated. Do not edit manually.
2
+ // Source: src/ui/DragAndDropFile/DragAndDropFile.stories.tsx
3
+ export const Default = () => "export const Default = () => (\n <Box display=\"flex\" flexDirection=\"column\" gap={24}>\n <DragAndDropFile label=\"Document\" value={null} onChange={() => {}} />\n <DragAndDropFile label=\"Image uniquement\" type=\"image/*\" value={null} onChange={() => {}} />\n </Box>\n);";
4
+ export const Multiple = () => "export const Multiple = () => (\n <DragAndDropFile label=\"Documents (plusieurs)\" multiple value={null} onChange={() => {}} />\n);";
5
+ export const WithError = () => "export const WithError = () => (\n <DragAndDropFile label=\"Document\" error=\"Format non supporté\" value={null} onChange={() => {}} />\n);";
6
+ export const storySources = {
7
+ Default,
8
+ Multiple,
9
+ WithError,
10
+ };
@@ -0,0 +1,89 @@
1
+ export declare const useStyles: () => {
2
+ container: {
3
+ borderWidth: number;
4
+ borderStyle: "dashed";
5
+ borderColor: string;
6
+ padding: import("@alveole/theme").Spacing;
7
+ borderRadius: number;
8
+ backgroundColor: string;
9
+ cursor: "pointer";
10
+ };
11
+ containerHover: {
12
+ borderStyle: "solid";
13
+ borderColor: string;
14
+ backgroundColor: string;
15
+ };
16
+ containerMouseHover: {
17
+ borderStyle: "dashed";
18
+ borderColor: string;
19
+ backgroundColor: string;
20
+ };
21
+ containerError: {
22
+ borderStyle: "dashed";
23
+ borderColor: string;
24
+ backgroundColor: string;
25
+ };
26
+ webError: {
27
+ width: "100%";
28
+ alignItems: "center";
29
+ };
30
+ icon: {
31
+ color: string;
32
+ backgroundColor: string;
33
+ padding: import("@alveole/theme").Spacing;
34
+ borderRadius: number;
35
+ width: import("@alveole/theme").Spacing;
36
+ height: import("@alveole/theme").Spacing;
37
+ marginBottom: import("@alveole/theme").Spacing;
38
+ };
39
+ filesListContainer: {
40
+ marginTop: import("@alveole/theme").Spacing;
41
+ };
42
+ filesListHeader: {
43
+ display: "flex";
44
+ flexDirection: "row";
45
+ justifyContent: "space-between";
46
+ alignItems: "center";
47
+ marginBottom: import("@alveole/theme").Spacing;
48
+ };
49
+ filesListTitle: {
50
+ fontWeight: "bold";
51
+ };
52
+ filesListBox: {
53
+ borderWidth: number;
54
+ borderColor: string;
55
+ borderRadius: number;
56
+ padding: import("@alveole/theme").Spacing;
57
+ backgroundColor: string;
58
+ };
59
+ fileItemContainer: {
60
+ display: "flex";
61
+ flexDirection: "row";
62
+ alignItems: "center";
63
+ gap: import("@alveole/theme").Spacing;
64
+ padding: import("@alveole/theme").Spacing;
65
+ marginBottom: import("@alveole/theme").Spacing;
66
+ backgroundColor: string;
67
+ borderRadius: number;
68
+ };
69
+ fileItemContainerLast: {
70
+ marginBottom: number;
71
+ };
72
+ fileIcon: {
73
+ color: string;
74
+ };
75
+ fileInfo: {
76
+ flex: number;
77
+ display: "flex";
78
+ flexDirection: "column";
79
+ gap: import("@alveole/theme").Spacing;
80
+ };
81
+ fileName: {
82
+ fontWeight: "bold";
83
+ };
84
+ fileSize: {
85
+ fontSize: number;
86
+ color: string;
87
+ };
88
+ };
89
+ //# sourceMappingURL=DragAndDropFile.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragAndDropFile.styles.d.ts","sourceRoot":"","sources":["../../../src/ui/DragAndDropFile/DragAndDropFile.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFnB,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { makeStyles } from '@alveole/theme';
2
+ export const useStyles = makeStyles(({ color, spacing }) => ({
3
+ container: {
4
+ borderWidth: 1,
5
+ borderStyle: 'dashed',
6
+ borderColor: color.border['contrast-grey'],
7
+ padding: spacing('200'),
8
+ borderRadius: 8,
9
+ backgroundColor: color.alpha(color.background['alt-grey'], 0.3),
10
+ cursor: 'pointer',
11
+ },
12
+ containerHover: {
13
+ borderStyle: 'solid',
14
+ borderColor: color.border['disabled-grey'],
15
+ backgroundColor: color.alpha(color.background['alt-grey'], 0.25),
16
+ },
17
+ containerMouseHover: {
18
+ borderStyle: 'dashed',
19
+ borderColor: color.border['contrast-grey'],
20
+ backgroundColor: color.alpha(color.background['alt-grey'], 0.75),
21
+ },
22
+ containerError: {
23
+ borderStyle: 'dashed',
24
+ borderColor: color.alpha(color.border['plain-error'], 0.5),
25
+ backgroundColor: color.alpha(color.background['alt-grey'], 0.25),
26
+ },
27
+ webError: {
28
+ width: '100%',
29
+ alignItems: 'center',
30
+ },
31
+ icon: {
32
+ color: color.text.mention,
33
+ backgroundColor: color.background['alt-grey'],
34
+ padding: spacing('100'),
35
+ borderRadius: 12,
36
+ width: spacing('200'),
37
+ height: spacing('200'),
38
+ marginBottom: spacing('100'),
39
+ },
40
+ filesListContainer: {
41
+ marginTop: spacing('100'),
42
+ },
43
+ filesListHeader: {
44
+ display: 'flex',
45
+ flexDirection: 'row',
46
+ justifyContent: 'space-between',
47
+ alignItems: 'center',
48
+ marginBottom: spacing('050'),
49
+ },
50
+ filesListTitle: {
51
+ fontWeight: 'bold',
52
+ },
53
+ filesListBox: {
54
+ borderWidth: 1,
55
+ borderColor: color.border['default-grey'],
56
+ borderRadius: 8,
57
+ padding: spacing('050'),
58
+ backgroundColor: color.background.default,
59
+ },
60
+ fileItemContainer: {
61
+ display: 'flex',
62
+ flexDirection: 'row',
63
+ alignItems: 'center',
64
+ gap: spacing('050'),
65
+ padding: spacing('050'),
66
+ marginBottom: spacing('025'),
67
+ backgroundColor: color.background['alt-grey'],
68
+ borderRadius: 8,
69
+ },
70
+ fileItemContainerLast: {
71
+ marginBottom: 0,
72
+ },
73
+ fileIcon: {
74
+ color: color.text['default-error'],
75
+ },
76
+ fileInfo: {
77
+ flex: 1,
78
+ display: 'flex',
79
+ flexDirection: 'column',
80
+ gap: spacing('025'),
81
+ },
82
+ fileName: {
83
+ fontWeight: 'bold',
84
+ },
85
+ fileSize: {
86
+ fontSize: 12,
87
+ color: color.text['default-grey'],
88
+ },
89
+ }));
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DragAndDropFileProps } from './DragAndDropFile';
3
+ export declare const DragAndDropFile: (props: DragAndDropFileProps) => React.JSX.Element;
4
+ //# sourceMappingURL=DragAndDropFile.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragAndDropFile.web.d.ts","sourceRoot":"","sources":["../../../src/ui/DragAndDropFile/DragAndDropFile.web.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AA8BzD,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,sBAyN1D,CAAC"}