@taiv/ui 1.14.1 → 2.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 (399) hide show
  1. package/dist/assets/assets.d.ts +12 -1
  2. package/dist/assets/assets.d.ts.map +1 -1
  3. package/dist/assets/assets.js +22 -16
  4. package/dist/assets/brand/taiv-favicon-dark.png +0 -0
  5. package/dist/assets/brand/taiv-favicon-light.png +0 -0
  6. package/dist/assets/brand/taiv-icon-black.svg +10 -0
  7. package/dist/assets/brand/taiv-icon-dark.svg +17 -0
  8. package/dist/assets/brand/taiv-icon-white.svg +17 -0
  9. package/dist/assets/brand/taiv-logo-black.svg +16 -0
  10. package/dist/assets/brand/taiv-logo-dark.svg +23 -0
  11. package/dist/assets/brand/taiv-logo-old.svg +1 -0
  12. package/dist/assets/brand/taiv-logo-purple.svg +16 -0
  13. package/dist/assets/brand/taiv-logo-white.svg +23 -0
  14. package/dist/assets/icons.d.ts +1 -1
  15. package/dist/assets/icons.d.ts.map +1 -1
  16. package/dist/assets/icons.js +57 -53
  17. package/dist/assets/index.d.ts +3 -0
  18. package/dist/assets/index.d.ts.map +1 -0
  19. package/dist/assets/index.js +2 -0
  20. package/dist/components/Data/BigCalendar/BigCalendar.d.ts +26 -0
  21. package/dist/components/Data/BigCalendar/BigCalendar.d.ts.map +1 -0
  22. package/dist/components/Data/BigCalendar/BigCalendar.js +54 -0
  23. package/dist/components/Data/BigCalendar/BigCalendar.stories.d.ts +8 -0
  24. package/dist/components/Data/BigCalendar/BigCalendar.stories.d.ts.map +1 -0
  25. package/dist/components/Data/BigCalendar/BigCalendar.stories.js +77 -0
  26. package/dist/components/Data/Calendar/Calendar.d.ts +102 -0
  27. package/dist/components/Data/Calendar/Calendar.d.ts.map +1 -0
  28. package/dist/components/Data/Calendar/Calendar.js +671 -0
  29. package/dist/components/Data/Calendar/Calendar.stories.d.ts +10 -0
  30. package/dist/components/Data/Calendar/Calendar.stories.d.ts.map +1 -0
  31. package/dist/components/Data/Calendar/Calendar.stories.js +87 -0
  32. package/dist/components/Data/MediaPill/MediaPill.d.ts +27 -0
  33. package/dist/components/Data/MediaPill/MediaPill.d.ts.map +1 -0
  34. package/dist/components/Data/MediaPill/MediaPill.js +53 -0
  35. package/dist/components/Data/MediaPill/MediaPill.stories.d.ts +10 -0
  36. package/dist/components/Data/MediaPill/MediaPill.stories.d.ts.map +1 -0
  37. package/dist/components/Data/MediaPill/MediaPill.stories.js +51 -0
  38. package/dist/components/Info/Avatar/Avatar.d.ts +9 -0
  39. package/dist/components/Info/Avatar/Avatar.d.ts.map +1 -0
  40. package/dist/components/Info/Avatar/Avatar.js +36 -0
  41. package/dist/components/Info/Avatar/Avatar.stories.d.ts +9 -0
  42. package/dist/components/Info/Avatar/Avatar.stories.d.ts.map +1 -0
  43. package/dist/components/Info/Avatar/Avatar.stories.js +78 -0
  44. package/dist/components/Info/Badge/Badge.stories.d.ts.map +1 -1
  45. package/dist/components/Info/Badge/Badge.stories.js +21 -6
  46. package/dist/components/Info/Badge/sizes.d.ts +10 -10
  47. package/dist/components/Info/Badge/sizes.js +16 -16
  48. package/dist/components/Info/Badge/variants.d.ts +4 -4
  49. package/dist/components/Info/Badge/variants.d.ts.map +1 -1
  50. package/dist/components/Info/Badge/variants.js +26 -13
  51. package/dist/components/Info/Drawer/Drawer.d.ts +24 -0
  52. package/dist/components/Info/Drawer/Drawer.d.ts.map +1 -0
  53. package/dist/components/Info/Drawer/Drawer.js +44 -0
  54. package/dist/components/Info/Drawer/Drawer.stories.d.ts +10 -0
  55. package/dist/components/Info/Drawer/Drawer.stories.d.ts.map +1 -0
  56. package/dist/components/Info/Drawer/Drawer.stories.js +47 -0
  57. package/dist/components/Info/HoverCard/HoverCard.d.ts +16 -0
  58. package/dist/components/Info/HoverCard/HoverCard.d.ts.map +1 -0
  59. package/dist/components/Info/HoverCard/HoverCard.js +26 -0
  60. package/dist/components/Info/HoverCard/HoverCard.stories.d.ts +11 -0
  61. package/dist/components/Info/HoverCard/HoverCard.stories.d.ts.map +1 -0
  62. package/dist/components/Info/HoverCard/HoverCard.stories.js +86 -0
  63. package/dist/components/Info/HoverCard/HoverCardMenuItem.d.ts +12 -0
  64. package/dist/components/Info/HoverCard/HoverCardMenuItem.d.ts.map +1 -0
  65. package/dist/components/Info/HoverCard/HoverCardMenuItem.js +22 -0
  66. package/dist/components/Info/Indicator/Indicator.d.ts +3 -0
  67. package/dist/components/Info/Indicator/Indicator.d.ts.map +1 -0
  68. package/dist/components/Info/Indicator/Indicator.js +1 -0
  69. package/dist/components/Info/Indicator/Indicator.stories.d.ts +11 -0
  70. package/dist/components/Info/Indicator/Indicator.stories.d.ts.map +1 -0
  71. package/dist/components/Info/Indicator/Indicator.stories.js +123 -0
  72. package/dist/components/Info/InfoCard/InfoCard.d.ts +2 -2
  73. package/dist/components/Info/InfoCard/InfoCard.d.ts.map +1 -1
  74. package/dist/components/Info/InfoCard/InfoCard.js +5 -5
  75. package/dist/components/Info/MobileDrawer/MobileDrawer.d.ts +30 -0
  76. package/dist/components/Info/MobileDrawer/MobileDrawer.d.ts.map +1 -0
  77. package/dist/components/Info/MobileDrawer/MobileDrawer.js +52 -0
  78. package/dist/components/Info/MobileDrawer/MobileDrawer.stories.d.ts +9 -0
  79. package/dist/components/Info/MobileDrawer/MobileDrawer.stories.d.ts.map +1 -0
  80. package/dist/components/Info/MobileDrawer/MobileDrawer.stories.js +38 -0
  81. package/dist/components/Info/Modals/FormModal/FormModal.d.ts +17 -1
  82. package/dist/components/Info/Modals/FormModal/FormModal.d.ts.map +1 -1
  83. package/dist/components/Info/Modals/FormModal/FormModal.js +30 -12
  84. package/dist/components/Info/Modals/FormModalV2/FormModalV2.d.ts +60 -0
  85. package/dist/components/Info/Modals/FormModalV2/FormModalV2.d.ts.map +1 -0
  86. package/dist/components/Info/Modals/FormModalV2/FormModalV2.js +96 -0
  87. package/dist/components/Info/Modals/Modal/Modal.d.ts.map +1 -1
  88. package/dist/components/Info/Modals/Modal/Modal.js +9 -1
  89. package/dist/components/Info/Modals/StepperModal/StepperModal.d.ts +21 -0
  90. package/dist/components/Info/Modals/StepperModal/StepperModal.d.ts.map +1 -0
  91. package/dist/components/Info/Modals/StepperModal/StepperModal.js +50 -0
  92. package/dist/components/Info/Modals/StepperModal/StepperModal.stories.d.ts +10 -0
  93. package/dist/components/Info/Modals/StepperModal/StepperModal.stories.d.ts.map +1 -0
  94. package/dist/components/Info/Modals/StepperModal/StepperModal.stories.js +169 -0
  95. package/dist/components/Info/Modals/variants.d.ts +61 -41
  96. package/dist/components/Info/Modals/variants.d.ts.map +1 -1
  97. package/dist/components/Info/Modals/variants.js +58 -38
  98. package/dist/components/Info/Notifications/Notifications.stories.d.ts +1 -0
  99. package/dist/components/Info/Notifications/Notifications.stories.d.ts.map +1 -1
  100. package/dist/components/Info/Notifications/Notifications.stories.js +31 -0
  101. package/dist/components/Info/Notifications/variants.d.ts +25 -19
  102. package/dist/components/Info/Notifications/variants.d.ts.map +1 -1
  103. package/dist/components/Info/Notifications/variants.js +30 -24
  104. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.d.ts +37 -0
  105. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.d.ts.map +1 -0
  106. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.js +17 -0
  107. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.d.ts +7 -0
  108. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.d.ts.map +1 -0
  109. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.js +26 -0
  110. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.d.ts +1 -1
  111. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.d.ts.map +1 -1
  112. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.js +9 -3
  113. package/dist/components/Info/Tooltips/Popover/Popover.d.ts +16 -0
  114. package/dist/components/Info/Tooltips/Popover/Popover.d.ts.map +1 -0
  115. package/dist/components/Info/Tooltips/Popover/Popover.js +32 -0
  116. package/dist/components/Info/Tooltips/Tooltip/Tooltip.d.ts +5 -1
  117. package/dist/components/Info/Tooltips/Tooltip/Tooltip.d.ts.map +1 -1
  118. package/dist/components/Info/Tooltips/Tooltip/Tooltip.js +10 -8
  119. package/dist/components/Inputs/Buttons/Button/Button.d.ts +3 -1
  120. package/dist/components/Inputs/Buttons/Button/Button.d.ts.map +1 -1
  121. package/dist/components/Inputs/Buttons/Button/Button.js +38 -5
  122. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts +1 -0
  123. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts.map +1 -1
  124. package/dist/components/Inputs/Buttons/Button/Button.stories.js +105 -79
  125. package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts +7 -2
  126. package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts.map +1 -1
  127. package/dist/components/Inputs/Buttons/IconButton/IconButton.js +35 -11
  128. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts +1 -0
  129. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts.map +1 -1
  130. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.js +100 -74
  131. package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts +15 -0
  132. package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts.map +1 -1
  133. package/dist/components/Inputs/Buttons/IconButton/sizes.js +3 -0
  134. package/dist/components/Inputs/Buttons/shared/variants.d.ts +399 -164
  135. package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -1
  136. package/dist/components/Inputs/Buttons/shared/variants.js +353 -143
  137. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.d.ts +40 -0
  138. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.d.ts.map +1 -0
  139. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.js +139 -0
  140. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.d.ts +13 -0
  141. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.d.ts.map +1 -0
  142. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.js +75 -0
  143. package/dist/components/Inputs/ColorSwatch/ColorSwatch.d.ts +27 -0
  144. package/dist/components/Inputs/ColorSwatch/ColorSwatch.d.ts.map +1 -0
  145. package/dist/components/Inputs/ColorSwatch/ColorSwatch.js +46 -0
  146. package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.d.ts +32 -0
  147. package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.d.ts.map +1 -0
  148. package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.js +92 -0
  149. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.d.ts +11 -8
  150. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  151. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.js +20 -12
  152. package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts +25 -11
  153. package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts.map +1 -1
  154. package/dist/components/Inputs/Controls/Toggle/Toggle.js +67 -20
  155. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.d.ts +1 -0
  156. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.d.ts.map +1 -1
  157. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.js +86 -69
  158. package/dist/components/Inputs/Dates/DatePicker/DatePicker.d.ts.map +1 -1
  159. package/dist/components/Inputs/Dates/DatePicker/DatePicker.js +23 -7
  160. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.d.ts +12 -0
  161. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.d.ts.map +1 -0
  162. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.js +87 -0
  163. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.d.ts +13 -0
  164. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -0
  165. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.js +239 -0
  166. package/dist/components/Inputs/Dates/TimeInput/TimeInput.d.ts +19 -0
  167. package/dist/components/Inputs/Dates/TimeInput/TimeInput.d.ts.map +1 -0
  168. package/dist/components/Inputs/Dates/TimeInput/TimeInput.js +51 -0
  169. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.d.ts.map +1 -1
  170. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.js +8 -1
  171. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts +2 -2
  172. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts.map +1 -1
  173. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.js +76 -57
  174. package/dist/components/Inputs/Dropdowns/Select/Select.d.ts.map +1 -1
  175. package/dist/components/Inputs/Dropdowns/Select/Select.js +5 -3
  176. package/dist/components/Inputs/Dropzone/Dropzone.d.ts +23 -0
  177. package/dist/components/Inputs/Dropzone/Dropzone.d.ts.map +1 -0
  178. package/dist/components/Inputs/Dropzone/Dropzone.js +44 -0
  179. package/dist/components/Inputs/Dropzone/Dropzone.stories.d.ts +12 -0
  180. package/dist/components/Inputs/Dropzone/Dropzone.stories.d.ts.map +1 -0
  181. package/dist/components/Inputs/Dropzone/Dropzone.stories.js +114 -0
  182. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.d.ts.map +1 -1
  183. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.js +4 -1
  184. package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.d.ts +46 -0
  185. package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.d.ts.map +1 -0
  186. package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.js +60 -0
  187. package/dist/components/Layout/Accordion/Accordion.d.ts +16 -0
  188. package/dist/components/Layout/Accordion/Accordion.d.ts.map +1 -0
  189. package/dist/components/Layout/Accordion/Accordion.js +63 -0
  190. package/dist/components/Layout/Accordion/Accordion.stories.d.ts +11 -0
  191. package/dist/components/Layout/Accordion/Accordion.stories.d.ts.map +1 -0
  192. package/dist/components/Layout/Accordion/Accordion.stories.js +148 -0
  193. package/dist/components/Layout/AutoGrid/AutoGrid.d.ts +20 -5
  194. package/dist/components/Layout/AutoGrid/AutoGrid.d.ts.map +1 -1
  195. package/dist/components/Layout/AutoGrid/AutoGrid.js +51 -3
  196. package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts +1 -0
  197. package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts.map +1 -1
  198. package/dist/components/Layout/AutoGrid/AutoGrid.stories.js +39 -29
  199. package/dist/components/Layout/BottomActionBar/BottomActionBar.d.ts +40 -0
  200. package/dist/components/Layout/BottomActionBar/BottomActionBar.d.ts.map +1 -0
  201. package/dist/components/Layout/BottomActionBar/BottomActionBar.js +79 -0
  202. package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.d.ts +10 -0
  203. package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.d.ts.map +1 -0
  204. package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.js +102 -0
  205. package/dist/components/Layout/Card/Card.d.ts +1 -1
  206. package/dist/components/Layout/Card/Card.d.ts.map +1 -1
  207. package/dist/components/Layout/Container/Container.d.ts +3 -0
  208. package/dist/components/Layout/Container/Container.d.ts.map +1 -0
  209. package/dist/components/Layout/Container/Container.js +1 -0
  210. package/dist/components/Layout/Container/Container.stories.d.ts +8 -0
  211. package/dist/components/Layout/Container/Container.stories.d.ts.map +1 -0
  212. package/dist/components/Layout/Container/Container.stories.js +52 -0
  213. package/dist/components/Layout/DataState/DataState.d.ts +34 -0
  214. package/dist/components/Layout/DataState/DataState.d.ts.map +1 -0
  215. package/dist/components/Layout/DataState/DataState.js +22 -0
  216. package/dist/components/Layout/DataState/DataState.stories.d.ts +11 -0
  217. package/dist/components/Layout/DataState/DataState.stories.d.ts.map +1 -0
  218. package/dist/components/Layout/DataState/DataState.stories.js +38 -0
  219. package/dist/components/Layout/Divider/Divider.d.ts.map +1 -1
  220. package/dist/components/Layout/Divider/Divider.js +4 -2
  221. package/dist/components/Layout/Group/Group.d.ts +1 -1
  222. package/dist/components/Layout/Group/Group.d.ts.map +1 -1
  223. package/dist/components/Layout/Loader/Loader.d.ts +1 -1
  224. package/dist/components/Layout/Loader/Loader.d.ts.map +1 -1
  225. package/dist/components/Layout/Loader/Loader.js +3 -2
  226. package/dist/components/Layout/Navbar/Navbar.d.ts +15 -0
  227. package/dist/components/Layout/Navbar/Navbar.d.ts.map +1 -0
  228. package/dist/components/Layout/Navbar/Navbar.js +20 -0
  229. package/dist/components/Layout/Navbar/Navbar.stories.d.ts +9 -0
  230. package/dist/components/Layout/Navbar/Navbar.stories.d.ts.map +1 -0
  231. package/dist/components/Layout/Navbar/Navbar.stories.js +98 -0
  232. package/dist/components/Layout/Page/Page.d.ts +13 -0
  233. package/dist/components/Layout/Page/Page.d.ts.map +1 -0
  234. package/dist/components/Layout/Page/Page.js +13 -0
  235. package/dist/components/Layout/Pagination/Pagination.d.ts +23 -0
  236. package/dist/components/Layout/Pagination/Pagination.d.ts.map +1 -0
  237. package/dist/components/Layout/Pagination/Pagination.js +53 -0
  238. package/dist/components/Layout/Pagination/Pagination.stories.d.ts +10 -0
  239. package/dist/components/Layout/Pagination/Pagination.stories.d.ts.map +1 -0
  240. package/dist/components/Layout/Pagination/Pagination.stories.js +76 -0
  241. package/dist/components/Layout/ScrollArea/ScrollArea.d.ts +3 -0
  242. package/dist/components/Layout/ScrollArea/ScrollArea.d.ts.map +1 -0
  243. package/dist/components/Layout/ScrollArea/ScrollArea.js +1 -0
  244. package/dist/components/Layout/ScrollArea/ScrollArea.stories.d.ts +8 -0
  245. package/dist/components/Layout/ScrollArea/ScrollArea.stories.d.ts.map +1 -0
  246. package/dist/components/Layout/ScrollArea/ScrollArea.stories.js +62 -0
  247. package/dist/components/Layout/Tabs/Tabs.d.ts +16 -5
  248. package/dist/components/Layout/Tabs/Tabs.d.ts.map +1 -1
  249. package/dist/components/Layout/Tabs/Tabs.js +53 -18
  250. package/dist/components/Layout/Tabs/Tabs.stories.d.ts.map +1 -1
  251. package/dist/components/Layout/Tabs/Tabs.stories.js +39 -39
  252. package/dist/components/Layout/VirtualGrid/VirtualGrid.d.ts +63 -0
  253. package/dist/components/Layout/VirtualGrid/VirtualGrid.d.ts.map +1 -0
  254. package/dist/components/Layout/VirtualGrid/VirtualGrid.js +159 -0
  255. package/dist/components/Misc/Burger/Burger.d.ts +6 -0
  256. package/dist/components/Misc/Burger/Burger.d.ts.map +1 -0
  257. package/dist/components/Misc/Burger/Burger.js +7 -0
  258. package/dist/components/Misc/Burger/Burger.stories.d.ts +10 -0
  259. package/dist/components/Misc/Burger/Burger.stories.d.ts.map +1 -0
  260. package/dist/components/Misc/Burger/Burger.stories.js +86 -0
  261. package/dist/components/Misc/Carousel/Carousel.d.ts +32 -0
  262. package/dist/components/Misc/Carousel/Carousel.d.ts.map +1 -0
  263. package/dist/components/Misc/Carousel/Carousel.js +16 -0
  264. package/dist/components/Misc/DragHandle/DragHandle.d.ts +19 -0
  265. package/dist/components/Misc/DragHandle/DragHandle.d.ts.map +1 -0
  266. package/dist/components/Misc/DragHandle/DragHandle.js +39 -0
  267. package/dist/components/Misc/DragHandle/DragHandle.stories.d.ts +9 -0
  268. package/dist/components/Misc/DragHandle/DragHandle.stories.d.ts.map +1 -0
  269. package/dist/components/Misc/DragHandle/DragHandle.stories.js +54 -0
  270. package/dist/components/Misc/FAB/FAB.d.ts +54 -0
  271. package/dist/components/Misc/FAB/FAB.d.ts.map +1 -0
  272. package/dist/components/Misc/FAB/FAB.js +53 -0
  273. package/dist/components/Misc/FAB/FAB.stories.d.ts +10 -0
  274. package/dist/components/Misc/FAB/FAB.stories.d.ts.map +1 -0
  275. package/dist/components/Misc/FAB/FAB.stories.js +100 -0
  276. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.d.ts +50 -0
  277. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.d.ts.map +1 -0
  278. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.js +40 -0
  279. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.d.ts +9 -0
  280. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.d.ts.map +1 -0
  281. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.js +53 -0
  282. package/dist/components/Misc/HoverAction/HoverAction.d.ts +50 -0
  283. package/dist/components/Misc/HoverAction/HoverAction.d.ts.map +1 -0
  284. package/dist/components/Misc/HoverAction/HoverAction.js +61 -0
  285. package/dist/components/Misc/HoverAction/HoverAction.stories.d.ts +12 -0
  286. package/dist/components/Misc/HoverAction/HoverAction.stories.d.ts.map +1 -0
  287. package/dist/components/Misc/HoverAction/HoverAction.stories.js +96 -0
  288. package/dist/components/Misc/IconBadge/IconBadge.d.ts.map +1 -1
  289. package/dist/components/Misc/IconBadge/IconBadge.js +8 -6
  290. package/dist/components/Misc/Image/Image.d.ts +3 -0
  291. package/dist/components/Misc/Image/Image.d.ts.map +1 -0
  292. package/dist/components/Misc/Image/Image.js +1 -0
  293. package/dist/components/Misc/Image/Image.stories.d.ts +11 -0
  294. package/dist/components/Misc/Image/Image.stories.d.ts.map +1 -0
  295. package/dist/components/Misc/Image/Image.stories.js +63 -0
  296. package/dist/components/Misc/Kbd/Kbd.d.ts +6 -0
  297. package/dist/components/Misc/Kbd/Kbd.d.ts.map +1 -0
  298. package/dist/components/Misc/Kbd/Kbd.js +16 -0
  299. package/dist/components/Misc/Kbd/Kbd.stories.d.ts +9 -0
  300. package/dist/components/Misc/Kbd/Kbd.stories.d.ts.map +1 -0
  301. package/dist/components/Misc/Kbd/Kbd.stories.js +52 -0
  302. package/dist/components/Misc/Menu/Menu.d.ts +17 -0
  303. package/dist/components/Misc/Menu/Menu.d.ts.map +1 -0
  304. package/dist/components/Misc/Menu/Menu.js +52 -0
  305. package/dist/components/Misc/OverflowFade/OverflowFade.d.ts +42 -0
  306. package/dist/components/Misc/OverflowFade/OverflowFade.d.ts.map +1 -0
  307. package/dist/components/Misc/OverflowFade/OverflowFade.js +110 -0
  308. package/dist/components/Misc/OverflowFade/OverflowFade.stories.d.ts +11 -0
  309. package/dist/components/Misc/OverflowFade/OverflowFade.stories.d.ts.map +1 -0
  310. package/dist/components/Misc/OverflowFade/OverflowFade.stories.js +112 -0
  311. package/dist/components/Misc/Picker/Picker.d.ts +62 -0
  312. package/dist/components/Misc/Picker/Picker.d.ts.map +1 -0
  313. package/dist/components/Misc/Picker/Picker.js +111 -0
  314. package/dist/components/Misc/Picker/Picker.stories.d.ts +14 -0
  315. package/dist/components/Misc/Picker/Picker.stories.d.ts.map +1 -0
  316. package/dist/components/Misc/Picker/Picker.stories.js +154 -0
  317. package/dist/components/Misc/SelectableObject/SelectableObject.d.ts +38 -0
  318. package/dist/components/Misc/SelectableObject/SelectableObject.d.ts.map +1 -0
  319. package/dist/components/Misc/SelectableObject/SelectableObject.js +70 -0
  320. package/dist/components/Misc/SelectableObject/SelectableObject.stories.d.ts +11 -0
  321. package/dist/components/Misc/SelectableObject/SelectableObject.stories.d.ts.map +1 -0
  322. package/dist/components/Misc/SelectableObject/SelectableObject.stories.js +84 -0
  323. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.d.ts +26 -0
  324. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.d.ts.map +1 -0
  325. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.js +41 -0
  326. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.d.ts +10 -0
  327. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.d.ts.map +1 -0
  328. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.js +48 -0
  329. package/dist/components/Misc/Stepper/Step.stories.d.ts +118 -118
  330. package/dist/components/Misc/Stepper/variants.d.ts +1 -1
  331. package/dist/components/Misc/Timeline/Timeline.d.ts +18 -0
  332. package/dist/components/Misc/Timeline/Timeline.d.ts.map +1 -0
  333. package/dist/components/Misc/Timeline/Timeline.js +38 -0
  334. package/dist/components/Misc/Timeline/Timeline.stories.d.ts +8 -0
  335. package/dist/components/Misc/Timeline/Timeline.stories.d.ts.map +1 -0
  336. package/dist/components/Misc/Timeline/Timeline.stories.js +54 -0
  337. package/dist/components/Typography/InlineEditableText/InlineEditableText.d.ts +35 -0
  338. package/dist/components/Typography/InlineEditableText/InlineEditableText.d.ts.map +1 -0
  339. package/dist/components/Typography/InlineEditableText/InlineEditableText.js +112 -0
  340. package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.d.ts +11 -0
  341. package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.d.ts.map +1 -0
  342. package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.js +48 -0
  343. package/dist/components/index.d.ts +149 -66
  344. package/dist/components/index.d.ts.map +1 -1
  345. package/dist/components/index.js +110 -67
  346. package/dist/constants/colors.d.ts +117 -91
  347. package/dist/constants/colors.d.ts.map +1 -1
  348. package/dist/constants/colors.js +56 -43
  349. package/dist/constants/font.d.ts +4 -4
  350. package/dist/constants/font.js +2 -2
  351. package/dist/hooks/index.d.ts +9 -1
  352. package/dist/hooks/index.d.ts.map +1 -1
  353. package/dist/hooks/index.js +7 -1
  354. package/dist/hooks/useConfirmationModal.d.ts.map +1 -1
  355. package/dist/hooks/useConfirmationModal.js +20 -1
  356. package/dist/hooks/useDisclosure.d.ts +11 -0
  357. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  358. package/dist/hooks/useDisclosure.js +10 -0
  359. package/dist/hooks/useHeadroom.d.ts +18 -0
  360. package/dist/hooks/useHeadroom.d.ts.map +1 -0
  361. package/dist/hooks/useHeadroom.js +17 -0
  362. package/dist/hooks/useInfoModal.d.ts.map +1 -1
  363. package/dist/hooks/useInfoModal.js +13 -1
  364. package/dist/hooks/useMediaQuery.d.ts +1 -0
  365. package/dist/hooks/useMediaQuery.d.ts.map +1 -1
  366. package/dist/hooks/useMediaQuery.js +1 -0
  367. package/dist/hooks/useNotifications.d.ts +39 -7
  368. package/dist/hooks/useNotifications.d.ts.map +1 -1
  369. package/dist/hooks/useNotifications.js +108 -5
  370. package/dist/hooks/usePagination.d.ts +11 -0
  371. package/dist/hooks/usePagination.d.ts.map +1 -0
  372. package/dist/hooks/usePagination.js +2 -0
  373. package/dist/hooks/useScrollLock.d.ts +21 -0
  374. package/dist/hooks/useScrollLock.d.ts.map +1 -0
  375. package/dist/hooks/useScrollLock.js +20 -0
  376. package/dist/index.d.ts +5 -5
  377. package/dist/index.js +5 -5
  378. package/dist/styles/iosInputZoomFix.d.ts +31 -0
  379. package/dist/styles/iosInputZoomFix.d.ts.map +1 -0
  380. package/dist/styles/iosInputZoomFix.js +135 -0
  381. package/dist/utils/bytes.d.ts +10 -0
  382. package/dist/utils/bytes.d.ts.map +1 -0
  383. package/dist/utils/bytes.js +17 -0
  384. package/dist/utils/datetime.d.ts +18 -0
  385. package/dist/utils/datetime.d.ts.map +1 -0
  386. package/dist/utils/datetime.js +42 -0
  387. package/dist/utils/duration.d.ts +17 -0
  388. package/dist/utils/duration.d.ts.map +1 -0
  389. package/dist/utils/duration.js +30 -0
  390. package/dist/utils/index.d.ts +8 -2
  391. package/dist/utils/index.d.ts.map +1 -1
  392. package/dist/utils/index.js +7 -2
  393. package/dist/utils/sort.d.ts +44 -0
  394. package/dist/utils/sort.d.ts.map +1 -0
  395. package/dist/utils/sort.js +53 -0
  396. package/dist/utils/string.d.ts +22 -0
  397. package/dist/utils/string.d.ts.map +1 -0
  398. package/dist/utils/string.js +25 -0
  399. package/package.json +26 -2
@@ -1,63 +1,83 @@
1
1
  export declare const modalVariants: {
2
- readonly confirm: {
3
- readonly title: "Are you sure?";
4
- readonly message: "This action cannot be undone.";
5
- readonly confirmLabel: "OK";
2
+ readonly cancel: {
3
+ readonly buttonVariant: "cancel";
6
4
  readonly cancelLabel: "Cancel";
5
+ readonly confirmLabel: "Delete";
6
+ readonly icon: "fas fa-trash-can";
7
+ readonly iconBackgroundColor: "#FFEBEA";
8
+ readonly iconColor: "#C10007";
9
+ readonly message: "Are you sure you want to delete this item? This action cannot be undone.";
10
+ readonly title: "Delete Item";
11
+ };
12
+ readonly confirm: {
7
13
  readonly buttonVariant: "primary";
14
+ readonly cancelLabel: "Cancel";
15
+ readonly confirmLabel: "OK";
8
16
  readonly icon: "fas fa-circle-question";
9
- readonly iconColor: "#00A6F4";
10
- readonly iconBackgroundColor: "#BDEAFF";
11
- };
12
- readonly info: {
13
- readonly title: "Info";
17
+ readonly iconBackgroundColor: "#F3EEFF";
18
+ readonly iconColor: "#6F3FEE";
14
19
  readonly message: "This action cannot be undone.";
15
- readonly confirmLabel: "OK";
20
+ readonly title: "Are you sure?";
21
+ };
22
+ readonly delete: {
23
+ readonly buttonVariant: "cancel";
16
24
  readonly cancelLabel: "Cancel";
25
+ readonly confirmLabel: "Delete";
26
+ readonly icon: "fas fa-trash-can";
27
+ readonly iconBackgroundColor: "#FFEBEA";
28
+ readonly iconColor: "#FF3B30";
29
+ readonly message: "Are you sure you want to delete this item? This action cannot be undone.";
30
+ readonly title: "Delete Item";
31
+ };
32
+ readonly error: {
33
+ readonly buttonVariant: "cancel";
34
+ readonly cancelLabel: "Cancel";
35
+ readonly confirmLabel: "OK";
36
+ readonly icon: "fas fa-circle-exclamation";
37
+ readonly iconBackgroundColor: "#FFEBEA";
38
+ readonly iconColor: "#FF3B30";
39
+ readonly message: "An error occurred and your changes were not saved. Please try again.";
40
+ readonly title: "Oops!";
41
+ };
42
+ readonly info: {
17
43
  readonly buttonVariant: "primary";
44
+ readonly cancelLabel: "Cancel";
45
+ readonly confirmLabel: "OK";
18
46
  readonly icon: "fas fa-circle-info";
19
- readonly iconColor: "#00A6F4";
20
- readonly iconBackgroundColor: "#BDEAFF";
47
+ readonly iconBackgroundColor: "#F3EEFF";
48
+ readonly iconColor: "#6F3FEE";
49
+ readonly message: "This action cannot be undone.";
50
+ readonly title: "Info";
21
51
  };
22
52
  readonly success: {
23
- readonly title: "Success";
24
- readonly message: "Operation completed successfully!";
25
- readonly confirmLabel: "OK";
26
- readonly cancelLabel: "Cancel";
27
53
  readonly buttonVariant: "success";
54
+ readonly cancelLabel: "Cancel";
55
+ readonly confirmLabel: "OK";
28
56
  readonly icon: "fas fa-circle-check";
29
- readonly iconColor: "#00A63E";
30
- readonly iconBackgroundColor: "#E6F4E7";
57
+ readonly iconBackgroundColor: "#E6FFF3";
58
+ readonly iconColor: "#00DE6F";
59
+ readonly message: "Operation completed successfully!";
60
+ readonly title: "Success";
31
61
  };
32
- readonly error: {
33
- readonly title: "Oops!";
34
- readonly message: "An error occurred and your changes were not saved. Please try again.";
35
- readonly confirmLabel: "OK";
36
- readonly cancelLabel: "Cancel";
62
+ readonly remove: {
37
63
  readonly buttonVariant: "cancel";
38
- readonly icon: "fas fa-circle-exclamation";
39
- readonly iconColor: "#FB2C36";
40
- readonly iconBackgroundColor: "#FFD7D9";
64
+ readonly cancelLabel: "Cancel";
65
+ readonly confirmLabel: "Remove";
66
+ readonly icon: "fas fa-circle-minus";
67
+ readonly iconBackgroundColor: "#FFEBEA";
68
+ readonly iconColor: "#FF3B30";
69
+ readonly message: "This item will be removed.";
70
+ readonly title: "Remove item?";
41
71
  };
42
72
  readonly warning: {
43
- readonly title: "Warning";
44
- readonly message: "This action cannot be undone. Are you sure?";
45
- readonly confirmLabel: "Yes, proceed";
46
- readonly cancelLabel: "Cancel";
47
73
  readonly buttonVariant: "warning";
74
+ readonly cancelLabel: "Cancel";
75
+ readonly confirmLabel: "Yes, proceed";
48
76
  readonly icon: "fas fa-triangle-exclamation";
77
+ readonly iconBackgroundColor: "#FFF4E6";
49
78
  readonly iconColor: "#FE9A00";
50
- readonly iconBackgroundColor: "#FFE5B4";
51
- };
52
- readonly cancel: {
53
- readonly title: "Delete Item";
54
- readonly message: "Are you sure you want to delete this item? This action cannot be undone.";
55
- readonly confirmLabel: "Delete";
56
- readonly cancelLabel: "Cancel";
57
- readonly buttonVariant: "cancel";
58
- readonly icon: "fas fa-trash-can";
59
- readonly iconColor: "#FB2C36";
60
- readonly iconBackgroundColor: "#FFD7D9";
79
+ readonly message: "This action cannot be undone. Are you sure?";
80
+ readonly title: "Warning";
61
81
  };
62
82
  };
63
83
  //# sourceMappingURL=variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Modals/variants.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DhB,CAAC"}
1
+ {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Modals/variants.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFhB,CAAC"}
@@ -1,63 +1,83 @@
1
- import { primary, error, success, warning } from '../../../constants/colors';
1
+ import { error, primary, success, warning } from '../../../constants/colors';
2
2
  export const modalVariants = {
3
- confirm: {
4
- title: 'Are you sure?',
5
- message: 'This action cannot be undone.',
6
- confirmLabel: 'OK',
3
+ cancel: {
4
+ buttonVariant: 'cancel',
7
5
  cancelLabel: 'Cancel',
6
+ confirmLabel: 'Delete',
7
+ icon: 'fas fa-trash-can',
8
+ iconBackgroundColor: error[25],
9
+ iconColor: error[200],
10
+ message: 'Are you sure you want to delete this item? This action cannot be undone.',
11
+ title: 'Delete Item',
12
+ },
13
+ confirm: {
8
14
  buttonVariant: 'primary',
15
+ cancelLabel: 'Cancel',
16
+ confirmLabel: 'OK',
9
17
  icon: 'fas fa-circle-question',
18
+ iconBackgroundColor: primary[25],
10
19
  iconColor: primary[200],
11
- iconBackgroundColor: primary[50],
12
- },
13
- info: {
14
- title: 'Info',
15
20
  message: 'This action cannot be undone.',
16
- confirmLabel: 'OK',
21
+ title: 'Are you sure?',
22
+ },
23
+ delete: {
24
+ buttonVariant: 'cancel',
25
+ cancelLabel: 'Cancel',
26
+ confirmLabel: 'Delete',
27
+ icon: 'fas fa-trash-can',
28
+ iconBackgroundColor: error[25],
29
+ iconColor: error[100],
30
+ message: 'Are you sure you want to delete this item? This action cannot be undone.',
31
+ title: 'Delete Item',
32
+ },
33
+ error: {
34
+ buttonVariant: 'cancel',
17
35
  cancelLabel: 'Cancel',
36
+ confirmLabel: 'OK',
37
+ icon: 'fas fa-circle-exclamation',
38
+ iconBackgroundColor: error[25],
39
+ iconColor: error[100],
40
+ message: 'An error occurred and your changes were not saved. Please try again.',
41
+ title: 'Oops!',
42
+ },
43
+ info: {
18
44
  buttonVariant: 'primary',
45
+ cancelLabel: 'Cancel',
46
+ confirmLabel: 'OK',
19
47
  icon: 'fas fa-circle-info',
48
+ iconBackgroundColor: primary[25],
20
49
  iconColor: primary[200],
21
- iconBackgroundColor: primary[50],
50
+ message: 'This action cannot be undone.',
51
+ title: 'Info',
22
52
  },
23
53
  success: {
24
- title: 'Success',
25
- message: 'Operation completed successfully!',
26
- confirmLabel: 'OK',
27
- cancelLabel: 'Cancel',
28
54
  buttonVariant: 'success',
55
+ cancelLabel: 'Cancel',
56
+ confirmLabel: 'OK',
29
57
  icon: 'fas fa-circle-check',
58
+ iconBackgroundColor: success[25],
30
59
  iconColor: success[200],
31
- iconBackgroundColor: success[50],
60
+ message: 'Operation completed successfully!',
61
+ title: 'Success',
32
62
  },
33
- error: {
34
- title: 'Oops!',
35
- message: 'An error occurred and your changes were not saved. Please try again.',
36
- confirmLabel: 'OK',
37
- cancelLabel: 'Cancel',
63
+ remove: {
38
64
  buttonVariant: 'cancel',
39
- icon: 'fas fa-circle-exclamation',
65
+ cancelLabel: 'Cancel',
66
+ confirmLabel: 'Remove',
67
+ icon: 'fas fa-circle-minus',
68
+ iconBackgroundColor: error[25],
40
69
  iconColor: error[100],
41
- iconBackgroundColor: error[50],
70
+ message: 'This item will be removed.',
71
+ title: 'Remove item?',
42
72
  },
43
73
  warning: {
44
- title: 'Warning',
45
- message: 'This action cannot be undone. Are you sure?',
46
- confirmLabel: 'Yes, proceed',
47
- cancelLabel: 'Cancel',
48
74
  buttonVariant: 'warning',
75
+ cancelLabel: 'Cancel',
76
+ confirmLabel: 'Yes, proceed',
49
77
  icon: 'fas fa-triangle-exclamation',
78
+ iconBackgroundColor: warning[25],
50
79
  iconColor: warning[100],
51
- iconBackgroundColor: warning[50],
52
- },
53
- cancel: {
54
- title: 'Delete Item',
55
- message: 'Are you sure you want to delete this item? This action cannot be undone.',
56
- confirmLabel: 'Delete',
57
- cancelLabel: 'Cancel',
58
- buttonVariant: 'cancel',
59
- icon: 'fas fa-trash-can',
60
- iconColor: error[100],
61
- iconBackgroundColor: error[50],
80
+ message: 'This action cannot be undone. Are you sure?',
81
+ title: 'Warning',
62
82
  },
63
83
  };
@@ -7,4 +7,5 @@ export declare const Default: Story;
7
7
  export declare const Variants: Story;
8
8
  export declare const GenericError: Story;
9
9
  export declare const AsyncNotifications: Story;
10
+ export declare const ProgressNotifications: Story;
10
11
  //# sourceMappingURL=Notifications.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notifications.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Notifications/Notifications.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAMnF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,oBAAoB,CAuC3C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAqBnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAgBF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAQF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAyCF,eAAO,MAAM,kBAAkB,EAAE,KAEhC,CAAC"}
1
+ {"version":3,"file":"Notifications.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Notifications/Notifications.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAMnF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,oBAAoB,CAuC3C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAqBnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAgBF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAQF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAyCF,eAAO,MAAM,kBAAkB,EAAE,KAEhC,CAAC;AAiDF,eAAO,MAAM,qBAAqB,EAAE,KAEnC,CAAC"}
@@ -105,3 +105,34 @@ const AsyncDemo = () => {
105
105
  export const AsyncNotifications = {
106
106
  render: () => _jsx(AsyncDemo, {}),
107
107
  };
108
+ const ProgressDemo = () => {
109
+ const { showWithProgress } = useNotifications();
110
+ const [isRunning, setIsRunning] = useState(false);
111
+ const startUpload = (outcome) => {
112
+ setIsRunning(true);
113
+ const handle = showWithProgress({
114
+ message: 'Uploading my-content.mp4 (0%)',
115
+ });
116
+ let value = 0;
117
+ const interval = setInterval(() => {
118
+ value += 10;
119
+ if (value < 100) {
120
+ handle.update(value, `Uploading my-content.mp4 (${value}%)`);
121
+ }
122
+ else {
123
+ clearInterval(interval);
124
+ if (outcome === 'success') {
125
+ handle.done('my-content.mp4 uploaded');
126
+ }
127
+ else {
128
+ handle.fail('Upload failed. Please try again.');
129
+ }
130
+ setIsRunning(false);
131
+ }
132
+ }, 400);
133
+ };
134
+ return (_jsxs(Group, { gap: spacing.xs, children: [_jsx(Button, { variant: 'success', onClick: () => startUpload('success'), disabled: isRunning, children: "Upload (success)" }), _jsx(Button, { variant: 'cancel', onClick: () => startUpload('failure'), disabled: isRunning, children: "Upload (failure)" })] }));
135
+ };
136
+ export const ProgressNotifications = {
137
+ render: () => _jsx(ProgressDemo, {}),
138
+ };
@@ -1,39 +1,45 @@
1
1
  export declare const componentVariants: {
2
- readonly success: {
3
- readonly defaultTitle: "Success!";
4
- readonly color: "#00A63E";
5
- readonly icon: import("react/jsx-runtime").JSX.Element;
2
+ readonly copy: {
6
3
  readonly autoClose: 4000;
4
+ readonly color: "#6F3FEE";
5
+ readonly defaultTitle: "Copied to clipboard!";
6
+ readonly icon: import("react/jsx-runtime").JSX.Element;
7
7
  };
8
8
  readonly error: {
9
- readonly defaultTitle: "Oops!";
10
- readonly color: "#FB2C36";
11
- readonly icon: import("react/jsx-runtime").JSX.Element;
12
9
  readonly autoClose: false;
13
- };
14
- readonly warning: {
15
- readonly defaultTitle: "Warning";
16
- readonly color: "#FE9A00";
10
+ readonly color: "#FF3B30";
11
+ readonly defaultTitle: "Oops!";
17
12
  readonly icon: import("react/jsx-runtime").JSX.Element;
18
- readonly autoClose: 4000;
19
13
  };
20
14
  readonly info: {
15
+ readonly autoClose: 4000;
16
+ readonly color: "#6F3FEE";
21
17
  readonly defaultTitle: "Note";
22
- readonly color: "#00A6F4";
23
18
  readonly icon: import("react/jsx-runtime").JSX.Element;
24
- readonly autoClose: 4000;
25
19
  };
26
20
  readonly loading: {
21
+ readonly autoClose: false;
22
+ readonly color: "#6F3FEE";
27
23
  readonly defaultTitle: "Loading...";
28
- readonly color: "#00A6F4";
29
24
  readonly icon: import("react/jsx-runtime").JSX.Element;
30
- readonly autoClose: false;
31
25
  };
32
- readonly copy: {
33
- readonly defaultTitle: "Copied to clipboard!";
34
- readonly color: "#0081CE";
26
+ readonly success: {
27
+ readonly autoClose: 4000;
28
+ readonly color: "#00A84F";
29
+ readonly defaultTitle: "Success!";
35
30
  readonly icon: import("react/jsx-runtime").JSX.Element;
31
+ };
32
+ readonly remove: {
36
33
  readonly autoClose: 4000;
34
+ readonly color: "#FF3B30";
35
+ readonly defaultTitle: "Removed";
36
+ readonly icon: import("react/jsx-runtime").JSX.Element;
37
+ };
38
+ readonly warning: {
39
+ readonly autoClose: 4000;
40
+ readonly color: "#FE9A00";
41
+ readonly defaultTitle: "Warning";
42
+ readonly icon: import("react/jsx-runtime").JSX.Element;
37
43
  };
38
44
  };
39
45
  //# sourceMappingURL=variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Notifications/variants.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCpB,CAAC"}
1
+ {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Notifications/variants.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDpB,CAAC"}
@@ -1,41 +1,47 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { primary, error, success, warning } from '../../../constants/colors';
2
+ import { error, primary, success, warning } from '../../../constants/colors';
3
3
  import { Loader } from '../../Layout/Loader/Loader';
4
4
  export const componentVariants = {
5
- success: {
6
- defaultTitle: 'Success!',
7
- color: success[200],
8
- icon: _jsx("i", { className: "fas fa-check-circle", style: { color: success[200] } }),
5
+ copy: {
9
6
  autoClose: 4000,
7
+ color: primary[200],
8
+ defaultTitle: 'Copied to clipboard!',
9
+ icon: _jsx("i", { className: 'fas fa-copy', style: { color: primary[200] } }),
10
10
  },
11
11
  error: {
12
- defaultTitle: 'Oops!',
13
- color: error[100],
14
- icon: _jsx("i", { className: "fas fa-exclamation-circle", style: { color: error[100] } }),
15
12
  autoClose: false,
16
- },
17
- warning: {
18
- defaultTitle: 'Warning',
19
- color: warning[100],
20
- icon: _jsx("i", { className: "fas fa-exclamation-triangle", style: { color: warning[100] } }),
21
- autoClose: 4000,
13
+ color: error[100],
14
+ defaultTitle: 'Oops!',
15
+ icon: (_jsx("i", { className: 'fas fa-exclamation-circle', style: { color: error[100] } })),
22
16
  },
23
17
  info: {
24
- defaultTitle: 'Note',
25
- color: primary[200],
26
- icon: _jsx("i", { className: "fas fa-info-circle", style: { color: primary[200] } }),
27
18
  autoClose: 4000,
19
+ color: primary[200],
20
+ defaultTitle: 'Note',
21
+ icon: _jsx("i", { className: 'fas fa-info-circle', style: { color: primary[200] } }),
28
22
  },
29
23
  loading: {
30
- defaultTitle: 'Loading...',
31
- color: primary[200],
32
- icon: _jsx(Loader, { size: "md", color: primary[200] }),
33
24
  autoClose: false,
25
+ color: primary[200],
26
+ defaultTitle: 'Loading...',
27
+ icon: _jsx(Loader, { color: primary[200], size: 'md' }),
34
28
  },
35
- copy: {
36
- defaultTitle: 'Copied to clipboard!',
37
- color: primary[300],
38
- icon: _jsx("i", { className: "fas fa-copy", style: { color: primary[300] } }),
29
+ success: {
39
30
  autoClose: 4000,
31
+ color: success[300],
32
+ defaultTitle: 'Success!',
33
+ icon: _jsx("i", { className: 'fas fa-check-circle', style: { color: success[300] } }),
34
+ },
35
+ remove: {
36
+ autoClose: 4000,
37
+ color: error[100],
38
+ defaultTitle: 'Removed',
39
+ icon: _jsx("i", { className: 'fas fa-circle-minus', style: { color: error[100] } }),
40
+ },
41
+ warning: {
42
+ autoClose: 4000,
43
+ color: warning[100],
44
+ defaultTitle: 'Warning',
45
+ icon: (_jsx("i", { className: 'fas fa-exclamation-triangle', style: { color: warning[100] } })),
40
46
  },
41
47
  };
@@ -0,0 +1,37 @@
1
+ import type React from 'react';
2
+ export interface ResponsiveDrawerAnchor {
3
+ /** Anchor used below the `breakpoint` width. */
4
+ base: 'bottom' | 'right' | 'left' | 'top';
5
+ /** Anchor used at/above the `breakpoint` width. */
6
+ md: 'bottom' | 'right' | 'left' | 'top';
7
+ }
8
+ export interface ResponsiveDrawerProps {
9
+ opened: boolean;
10
+ onClose: () => void;
11
+ children: React.ReactNode;
12
+ title?: React.ReactNode;
13
+ subtitle?: React.ReactNode;
14
+ footer?: React.ReactNode;
15
+ header?: React.ReactNode;
16
+ /** Width at which we switch from `base` to `md`. Default `768`. */
17
+ breakpoint?: number;
18
+ /** Anchor resolution across breakpoints. Default `{ base: 'bottom', md: 'right' }`. */
19
+ anchor?: ResponsiveDrawerAnchor;
20
+ /** Size prop forwarded to the active drawer variant. */
21
+ size?: string | number;
22
+ /** Max sheet height (viewport %) when rendering as `MobileDrawer`. */
23
+ maxHeightVh?: number;
24
+ /** Show the grab handle when rendering as `MobileDrawer`. Default `true`. */
25
+ showGrabHandle?: boolean;
26
+ /** Show the header close button when rendering as `Drawer`. Default `true`. */
27
+ showClose?: boolean;
28
+ /** Pixel offset from the viewport bottom when rendering as `MobileDrawer`. */
29
+ bottomOffset?: number;
30
+ }
31
+ /**
32
+ * Branches between `Drawer` and `MobileDrawer` at a breakpoint so consumers
33
+ * can author a single markup tree for both. Content shape (title / subtitle /
34
+ * footer / header) stays identical across both variants.
35
+ */
36
+ export declare const ResponsiveDrawer: ({ opened, onClose, children, title, subtitle, footer, header, breakpoint, anchor, size, maxHeightVh, showGrabHandle, showClose, bottomOffset, }: ResponsiveDrawerProps) => import("react/jsx-runtime").JSX.Element;
37
+ //# sourceMappingURL=ResponsiveDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponsiveDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/ResponsiveDrawer/ResponsiveDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,sBAAsB;IACrC,gDAAgD;IAChD,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;IAC1C,mDAAmD;IACnD,EAAE,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;CACzC;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,iJAe9B,qBAAqB,4CAqCvB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMediaQuery } from '../../../hooks/useMediaQuery';
3
+ import { Drawer } from '../Drawer/Drawer';
4
+ import { MobileDrawer } from '../MobileDrawer/MobileDrawer';
5
+ /**
6
+ * Branches between `Drawer` and `MobileDrawer` at a breakpoint so consumers
7
+ * can author a single markup tree for both. Content shape (title / subtitle /
8
+ * footer / header) stays identical across both variants.
9
+ */
10
+ export const ResponsiveDrawer = ({ opened, onClose, children, title, subtitle, footer, header, breakpoint = 768, anchor = { base: 'bottom', md: 'right' }, size, maxHeightVh, showGrabHandle, showClose, bottomOffset, }) => {
11
+ const isNarrow = useMediaQuery(`(max-width: ${breakpoint - 1}px)`);
12
+ const activeAnchor = isNarrow ? anchor.base : anchor.md;
13
+ if (activeAnchor === 'bottom') {
14
+ return (_jsx(MobileDrawer, { bottomOffset: bottomOffset, footer: footer, header: header, maxHeightVh: maxHeightVh, onClose: onClose, opened: opened, showGrabHandle: showGrabHandle, subtitle: subtitle, title: title, children: children }));
15
+ }
16
+ return (_jsx(Drawer, { footer: footer, header: header, onClose: onClose, opened: opened, position: activeAnchor, showClose: showClose, size: size, subtitle: subtitle, title: title, children: children }));
17
+ };
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { ResponsiveDrawer } from './ResponsiveDrawer';
3
+ declare const meta: Meta<typeof ResponsiveDrawer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=ResponsiveDrawer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponsiveDrawer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAYvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KA8BrB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useDisclosure } from '../../../hooks/useDisclosure';
3
+ import { Button } from '../../Inputs/Buttons/Button/Button';
4
+ import { Group } from '../../Layout/Group/Group';
5
+ import { Stack } from '../../Layout/Stack/Stack';
6
+ import { Text } from '../../Typography/Text/Text';
7
+ import { ResponsiveDrawer } from './ResponsiveDrawer';
8
+ const meta = {
9
+ component: ResponsiveDrawer,
10
+ parameters: {
11
+ docs: {
12
+ description: {
13
+ component: 'Branches between `Drawer` (right-anchored) and `MobileDrawer` (bottom-anchored) at a breakpoint. Author one markup tree — it renders correctly on both touch and pointer viewports. Resize the viewport to see the switch.',
14
+ },
15
+ },
16
+ layout: 'fullscreen',
17
+ },
18
+ title: 'Components/Info/ResponsiveDrawer',
19
+ };
20
+ export default meta;
21
+ export const Default = {
22
+ render: () => {
23
+ const [opened, { open, close }] = useDisclosure(false);
24
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: open, children: "Open responsive drawer" }), _jsx(ResponsiveDrawer, { footer: _jsxs(Group, { position: 'right', children: [_jsx(Button, { onClick: close, variant: 'cancel', children: "Cancel" }), _jsx(Button, { onClick: close, children: "Save" })] }), onClose: close, opened: opened, title: 'Slide details', children: _jsxs(Stack, { children: [_jsx(Text, { children: "Renders as a bottom sheet under 768px and as a right-side drawer above it." }), _jsx(Text, { variant: 'subtle', children: "Resize the viewport to observe." })] }) })] }));
25
+ },
26
+ };
@@ -21,7 +21,7 @@ declare const componentVariants: {
21
21
  icon: string;
22
22
  };
23
23
  error: {
24
- color: "#FB2C36";
24
+ color: "#FF3B30";
25
25
  icon: string;
26
26
  };
27
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InfoTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/components/Info/Tooltips/InfoTooltip/InfoTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,CAAC;IACnE,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;CAC1C;AAED,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;CAatB,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;CAKV,CAAC;AAEX,QAAA,MAAM,WAAW,GAAI,iFAA+G,gBAAgB,4CAcnJ,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"InfoTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/components/Info/Tooltips/InfoTooltip/InfoTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,CAAC;IACnE,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;CAC1C;AAED,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;CAatB,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;CAKV,CAAC;AAEX,QAAA,MAAM,WAAW,GAAI,iFAA+G,gBAAgB,4CAwBnJ,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,6 +1,8 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { error, neutral, warning } from '../../../../constants/colors';
3
3
  import { Tooltip } from '../Tooltip/Tooltip';
4
+ import { useTouchDevice } from '../../../../hooks/useMediaQuery';
5
+ import { Popover } from '../Popover/Popover';
4
6
  const componentVariants = {
5
7
  info: {
6
8
  color: neutral[100],
@@ -8,7 +10,7 @@ const componentVariants = {
8
10
  },
9
11
  warning: {
10
12
  color: warning[100],
11
- icon: 'fas fa-exclamation-circle',
13
+ icon: 'fas fa-triangle-exclamation',
12
14
  },
13
15
  error: {
14
16
  color: error[100],
@@ -29,6 +31,10 @@ const InfoTooltip = ({ text, content, position = 'top-start', size = 'md', offse
29
31
  },
30
32
  ...styles,
31
33
  };
32
- return (_jsx(Tooltip, { text: text || content, position: position, offset: offset, className: className, maxWidth: maxWidth, children: _jsx("i", { className: componentVariants[variant].icon, style: style.icon }) }));
34
+ const isTouchDevice = useTouchDevice();
35
+ return (_jsx(_Fragment, { children: isTouchDevice ?
36
+ _jsx(Popover, { text: text || content, position: position, offset: offset, className: className, maxWidth: maxWidth, children: _jsx("i", { className: componentVariants[variant].icon, style: style.icon }) })
37
+ :
38
+ _jsx(Tooltip, { text: text || content, position: position, offset: offset, className: className, maxWidth: maxWidth, children: _jsx("i", { className: componentVariants[variant].icon, style: style.icon }) }) }));
33
39
  };
34
40
  export { InfoTooltip };
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { CSSObject } from '@mantine/styles';
3
+ interface PopoverProps {
4
+ children: React.ReactNode;
5
+ text?: React.ReactNode;
6
+ position?: 'top-end' | 'bottom-end' | 'top-start' | 'bottom-start';
7
+ offset?: number;
8
+ className?: string;
9
+ styles?: Record<string, CSSObject>;
10
+ maxWidth?: string;
11
+ disabled?: boolean;
12
+ fullWidth?: boolean;
13
+ }
14
+ declare const Popover: ({ children, text, position, offset, className, styles, maxWidth, disabled, fullWidth }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
15
+ export { Popover };
16
+ //# sourceMappingURL=Popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Info/Tooltips/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,CAAC;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,OAAO,GAAI,wFAAsG,YAAY,4CA2ClI,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Popover as MantinePopover, Box } from '@mantine/core';
3
+ import { neutral } from '../../../../constants/colors';
4
+ import { fontBase, fontSize, fontWeight } from '../../../../constants/font';
5
+ import { spacing } from '../../../../constants/spacing';
6
+ const Popover = ({ children, text, position = 'top-start', offset, className, styles, maxWidth, disabled, fullWidth }) => {
7
+ const wrapperStyle = fullWidth
8
+ ? { display: 'block', width: '100%', minWidth: 0 }
9
+ : {
10
+ display: 'flex',
11
+ alignItems: 'center',
12
+ justifyContent: 'center',
13
+ width: 'fit-content',
14
+ };
15
+ const popoverStyle = {
16
+ dropdown: {
17
+ ...fontBase,
18
+ color: neutral[200],
19
+ fontWeight: fontWeight['medium'],
20
+ boxShadow: '0px 0px 19px 0px #00000040',
21
+ borderRadius: '8px',
22
+ textWrap: 'wrap',
23
+ maxWidth: maxWidth || '375px',
24
+ padding: `${spacing.sm} 11.25px`,
25
+ ...fontSize['sm'],
26
+ height: 'fit-content',
27
+ },
28
+ ...styles,
29
+ };
30
+ return (_jsxs(MantinePopover, { withArrow: true, arrowRadius: 0, arrowSize: 10, position: position, styles: popoverStyle, offset: offset, withinPortal: true, disabled: disabled, children: [_jsx(MantinePopover.Target, { children: _jsx(Box, { sx: wrapperStyle, className: className, children: children }) }), _jsx(MantinePopover.Dropdown, { children: text })] }));
31
+ };
32
+ export { Popover };