@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
@@ -0,0 +1,239 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { DateTimePicker } from './DateTimePicker';
3
+ import { Group } from '../../../Layout/Group/Group';
4
+ const meta = {
5
+ title: 'Components/Inputs/Dates/DateTimePicker',
6
+ component: DateTimePicker,
7
+ parameters: {
8
+ layout: 'centered',
9
+ },
10
+ argTypes: {
11
+ size: {
12
+ control: { type: 'select' },
13
+ options: ['sm', 'md', 'lg'],
14
+ description: 'Controls the date-time picker size',
15
+ table: {
16
+ type: { summary: "'sm' | 'md' | 'lg'" },
17
+ defaultValue: { summary: "'md'" },
18
+ },
19
+ },
20
+ placeholder: {
21
+ control: { type: 'text' },
22
+ description: 'Placeholder text',
23
+ table: {
24
+ type: { summary: 'string' },
25
+ defaultValue: { summary: "'Pick date and time'" },
26
+ },
27
+ },
28
+ label: {
29
+ control: { type: 'text' },
30
+ description: 'Input label',
31
+ table: {
32
+ type: { summary: 'string' },
33
+ },
34
+ },
35
+ description: {
36
+ control: { type: 'text' },
37
+ description: 'Description text',
38
+ table: {
39
+ type: { summary: 'string' },
40
+ },
41
+ },
42
+ error: {
43
+ control: { type: 'text' },
44
+ description: 'Error message',
45
+ table: {
46
+ type: { summary: 'string' },
47
+ },
48
+ },
49
+ disabled: {
50
+ control: { type: 'boolean' },
51
+ description: 'Disabled state',
52
+ table: {
53
+ type: { summary: 'boolean' },
54
+ defaultValue: { summary: 'false' },
55
+ },
56
+ },
57
+ required: {
58
+ control: { type: 'boolean' },
59
+ description: 'Required field',
60
+ table: {
61
+ type: { summary: 'boolean' },
62
+ defaultValue: { summary: 'false' },
63
+ },
64
+ },
65
+ fullWidth: {
66
+ control: { type: 'boolean' },
67
+ description: 'Full width of container',
68
+ table: {
69
+ type: { summary: 'boolean' },
70
+ defaultValue: { summary: 'false' },
71
+ },
72
+ },
73
+ showIcon: {
74
+ control: { type: 'boolean' },
75
+ description: 'Show calendar icon',
76
+ table: {
77
+ type: { summary: 'boolean' },
78
+ defaultValue: { summary: 'true' },
79
+ },
80
+ },
81
+ withSeconds: {
82
+ control: { type: 'boolean' },
83
+ description: 'Allow picking seconds',
84
+ table: {
85
+ type: { summary: 'boolean' },
86
+ defaultValue: { summary: 'false' },
87
+ },
88
+ },
89
+ clearable: {
90
+ control: { type: 'boolean' },
91
+ description: 'Show clear button when value is set',
92
+ table: {
93
+ type: { summary: 'boolean' },
94
+ defaultValue: { summary: 'false' },
95
+ },
96
+ },
97
+ valueFormat: {
98
+ control: { type: 'text' },
99
+ description: 'Format used to display the selected value',
100
+ table: {
101
+ type: { summary: 'string' },
102
+ defaultValue: { summary: "'DD/MM/YYYY HH:mm'" },
103
+ },
104
+ },
105
+ width: {
106
+ control: { type: 'text' },
107
+ description: 'Custom width',
108
+ table: {
109
+ type: { summary: 'string | number' },
110
+ },
111
+ },
112
+ styles: {
113
+ control: { type: 'object' },
114
+ description: 'Custom styles object',
115
+ table: {
116
+ type: { summary: 'Record<string, CSSObject>' },
117
+ },
118
+ },
119
+ onChange: {
120
+ action: 'changed',
121
+ description: 'Change handler function',
122
+ table: {
123
+ type: { summary: '(value: Date | null) => void' },
124
+ },
125
+ },
126
+ },
127
+ };
128
+ export default meta;
129
+ export const Default = {
130
+ args: {
131
+ placeholder: 'Pick date and time',
132
+ size: 'md',
133
+ disabled: false,
134
+ required: false,
135
+ fullWidth: false,
136
+ showIcon: true,
137
+ withSeconds: false,
138
+ clearable: false,
139
+ },
140
+ decorators: [
141
+ (Story) => (_jsx("div", { style: { height: '360px' }, children: _jsx(Story, {}) })),
142
+ ],
143
+ parameters: {
144
+ docs: {
145
+ source: {
146
+ code: `<DateTimePicker
147
+ placeholder="Pick date and time"
148
+ value={selectedDateTime}
149
+ onChange={(value) => setSelectedDateTime(value)}
150
+ />`,
151
+ },
152
+ },
153
+ },
154
+ };
155
+ export const Sizes = {
156
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(DateTimePicker, { size: "sm" }), _jsx(DateTimePicker, {}), _jsx(DateTimePicker, { size: "lg" })] })),
157
+ parameters: {
158
+ docs: {
159
+ source: {
160
+ code: false,
161
+ },
162
+ },
163
+ },
164
+ };
165
+ export const States = {
166
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(DateTimePicker, { label: "Normal" }), _jsx(DateTimePicker, { label: "Disabled", disabled: true }), _jsx(DateTimePicker, { label: "Required", required: true }), _jsx(DateTimePicker, { label: "With Description", description: "Pick both date and time" }), _jsx(DateTimePicker, { label: "With Error", error: "This field is required" })] })),
167
+ parameters: {
168
+ docs: {
169
+ source: {
170
+ code: false,
171
+ },
172
+ },
173
+ },
174
+ };
175
+ export const WithAndWithoutIcon = {
176
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(DateTimePicker, { label: "With Icon", placeholder: "Pick date and time", showIcon: true }), _jsx(DateTimePicker, { label: "Without Icon", placeholder: "Pick date and time", showIcon: false })] })),
177
+ parameters: {
178
+ docs: {
179
+ source: {
180
+ code: false,
181
+ },
182
+ },
183
+ },
184
+ };
185
+ export const WithSeconds = {
186
+ render: () => (_jsx(DateTimePicker, { label: "Includes seconds", withSeconds: true, placeholder: "Pick date and time" })),
187
+ parameters: {
188
+ docs: {
189
+ source: {
190
+ code: false,
191
+ },
192
+ },
193
+ },
194
+ };
195
+ export const FullWidth = {
196
+ render: () => (_jsx("div", { style: { width: '400px' }, children: _jsx(DateTimePicker, { label: "Full Width DateTimePicker", placeholder: "Pick date and time", fullWidth: true }) })),
197
+ parameters: {
198
+ docs: {
199
+ source: {
200
+ code: false,
201
+ },
202
+ },
203
+ },
204
+ };
205
+ export const CustomStyles = {
206
+ render: () => (_jsxs(Group, { gap: "20px", children: [_jsx(DateTimePicker, { label: "Custom Styled", placeholder: "Pick date and time", styles: {
207
+ input: {
208
+ borderColor: '#ff6b6b',
209
+ '&:focus': {
210
+ borderColor: '#ff6b6b',
211
+ boxShadow: '0 0 0 2px rgba(255, 107, 107, 0.2)',
212
+ },
213
+ },
214
+ label: {
215
+ color: '#ff6b6b',
216
+ fontWeight: 600,
217
+ },
218
+ } }), _jsx(DateTimePicker, { label: "Another Custom Style", placeholder: "Pick date and time", styles: {
219
+ input: {
220
+ backgroundColor: '#f8f9fa',
221
+ borderColor: '#4CAF50',
222
+ '&:focus': {
223
+ borderColor: '#4CAF50',
224
+ boxShadow: '0 0 0 2px rgba(76, 175, 80, 0.2)',
225
+ },
226
+ },
227
+ label: {
228
+ color: '#4CAF50',
229
+ fontSize: '16px',
230
+ },
231
+ } })] })),
232
+ parameters: {
233
+ docs: {
234
+ source: {
235
+ code: false,
236
+ },
237
+ },
238
+ },
239
+ };
@@ -0,0 +1,19 @@
1
+ import { TimeInputProps as MantineTimeInputProps } from '@mantine/dates';
2
+ import { CSSObject } from '@mantine/styles';
3
+ import { componentSizes } from '../../Dropdowns/shared/sizes';
4
+ export interface TimeInputProps extends Omit<MantineTimeInputProps, 'styles'> {
5
+ size?: keyof typeof componentSizes;
6
+ width?: string | number;
7
+ fullWidth?: boolean;
8
+ styles?: Record<string, CSSObject>;
9
+ showIcon?: boolean;
10
+ }
11
+ /**
12
+ * A pure time-of-day input. Wraps Mantine's `TimeInput` (which uses a native
13
+ * `<input type='time'>`) so the user can't accidentally drift the date — use
14
+ * this any time only the time-of-day matters and a separate `<DatePicker>`
15
+ * owns the date. The displayed format (12h vs 24h) is determined by the
16
+ * browser's locale; the value is always `"HH:mm"` (24h) for consumers.
17
+ */
18
+ export declare const TimeInput: ({ size, width, fullWidth, placeholder, showIcon, styles, ...props }: TimeInputProps) => import("react/jsx-runtime").JSX.Element;
19
+ //# sourceMappingURL=TimeInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Dates/TimeInput/TimeInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,cAAc,IAAI,qBAAqB,EACxC,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC;IAC3E,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,qEAQvB,cAAc,4CAsDhB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { TimeInput as MantineTimeInput, } from '@mantine/dates';
3
+ import { createStyles } from '@mantine/core';
4
+ import { neutral } from '../../../../constants/colors';
5
+ import { fontBase } from '../../../../constants/font';
6
+ import { spacing } from '../../../../constants/spacing';
7
+ import { componentSizes } from '../../Dropdowns/shared/sizes';
8
+ /**
9
+ * A pure time-of-day input. Wraps Mantine's `TimeInput` (which uses a native
10
+ * `<input type='time'>`) so the user can't accidentally drift the date — use
11
+ * this any time only the time-of-day matters and a separate `<DatePicker>`
12
+ * owns the date. The displayed format (12h vs 24h) is determined by the
13
+ * browser's locale; the value is always `"HH:mm"` (24h) for consumers.
14
+ */
15
+ export const TimeInput = ({ size = 'md', width, fullWidth = false, placeholder = 'Pick a time', showIcon = true, styles, ...props }) => {
16
+ const selectedSize = componentSizes[size];
17
+ const { classes } = createStyles(() => ({
18
+ root: {
19
+ width: fullWidth ? '100%' : width || `${selectedSize.minWidth * 1.2}px`,
20
+ },
21
+ input: {
22
+ height: `${selectedSize.height}px`,
23
+ paddingRight: selectedSize.inputPadding,
24
+ ...fontBase,
25
+ fontSize: selectedSize.fontSize,
26
+ color: neutral[300],
27
+ borderRadius: '8px',
28
+ border: `1px solid ${neutral[100]}`,
29
+ transition: 'all 200ms ease-in-out',
30
+ whiteSpace: 'nowrap',
31
+ overflow: 'hidden',
32
+ textOverflow: 'ellipsis',
33
+ },
34
+ placeholder: {
35
+ ...fontBase,
36
+ fontSize: selectedSize.fontSize,
37
+ color: neutral[200],
38
+ },
39
+ label: {
40
+ ...fontBase,
41
+ fontSize: `calc(${selectedSize.fontSize} - 1px)`,
42
+ color: neutral[200],
43
+ },
44
+ ...styles,
45
+ }))();
46
+ return (_jsx(MantineTimeInput, { icon: showIcon ? (_jsx("i", { className: 'far fa-clock', style: { fontSize: 14, marginLeft: spacing.xxs } })) : undefined, radius: 'lg', size: 'xl', classNames: {
47
+ root: classes.root,
48
+ input: classes.input,
49
+ label: classes.label,
50
+ }, placeholder: placeholder, ...props }));
51
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"FontSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Dropdowns/FontSelect/FontSelect.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAU,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1E,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,UAAU,GAAI,wEAAyG,eAAe,4CAoD3I,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"FontSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Dropdowns/FontSelect/FontSelect.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAU,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIxD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1E,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,UAAU,GAAI,wEAAyG,eAAe,4CA6D3I,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,12 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo } from 'react';
2
3
  import { Box } from '@mantine/core';
3
4
  import { neutral } from '../../../../constants/colors';
4
5
  import { componentSizes } from '../shared/sizes';
5
6
  import { Select } from '../Select/Select';
7
+ import { sortByName } from '../../../../utils/sort';
6
8
  import Fonts from './font-options';
7
9
  const FontSelect = ({ data, value, placeholder = 'Select a font', size = 'md', width, fullWidth = false, styles, ...props }) => {
8
10
  const selectedSize = componentSizes[size];
9
11
  const computedWidth = fullWidth ? '100%' : width || `${selectedSize.minWidth}px`;
12
+ // Alphabetise the font dropdown so it's scannable. The bundled list ships
13
+ // in upload order; consumer-provided lists tend to be just as arbitrary.
14
+ // `sortByName` falls back to `label` for Select-style options and returns a
15
+ // new array (non-mutating).
16
+ const fontOptions = useMemo(() => sortByName(data !== null && data !== void 0 ? data : Fonts.FONTS, 'asc'), [data]);
10
17
  const DropdownItem = ({ value, label, ...others }) => (_jsx(Box, { title: label, children: _jsx("div", { style: {
11
18
  fontFamily: value,
12
19
  fontSize: selectedSize.fontSize,
@@ -43,6 +50,6 @@ const FontSelect = ({ data, value, placeholder = 'Select a font', size = 'md', w
43
50
  ...styles,
44
51
  },
45
52
  };
46
- return _jsx(Select, { placeholder: placeholder, width: computedWidth, value: value, size: size, styles: style, itemComponent: DropdownItem, data: data || Fonts.FONTS, ...props });
53
+ return _jsx(Select, { placeholder: placeholder, width: computedWidth, value: value, size: size, styles: style, itemComponent: DropdownItem, data: fontOptions, ...props });
47
54
  };
48
55
  export { FontSelect };
@@ -1,5 +1,5 @@
1
- import { MultiSelectProps as MantineMultiSelectProps } from '@mantine/core';
2
- import { CSSObject } from '@mantine/styles';
1
+ import { type MultiSelectProps as MantineMultiSelectProps } from '@mantine/core';
2
+ import type { CSSObject } from '@mantine/styles';
3
3
  import { componentSizes } from '../shared/sizes';
4
4
  interface MultiSelectProps extends MantineMultiSelectProps {
5
5
  size?: keyof typeof componentSizes;
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Dropdowns/MultiSelect/MultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqC,gBAAgB,IAAI,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,UAAU,gBAAiB,SAAQ,uBAAuB;IACxD,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,WAAW,GAAI,2DAA6F,gBAAgB,4CA0FxI,CAAC"}
1
+ {"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Dropdowns/MultiSelect/MultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,IAAI,uBAAuB,EACjD,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,UAAU,gBAAiB,SAAQ,uBAAuB;IACxD,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,WAAW,GAAI,2DAOzB,gBAAgB,4CAuHlB,CAAC"}
@@ -1,95 +1,114 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { MultiSelect as MantineMultiSelect } from '@mantine/core';
3
- import { neutral, primary } from '../../../../constants/colors';
2
+ import { MultiSelect as MantineMultiSelect, } from '@mantine/core';
3
+ import { neutral, primary, red } from '../../../../constants/colors';
4
4
  import { fontBase } from '../../../../constants/font';
5
5
  import { spacing } from '../../../../constants/spacing';
6
6
  import { componentSizes } from '../shared/sizes';
7
7
  export const MultiSelect = ({ size = 'md', width, fullWidth = false, placeholder = 'Select options', styles, ...props }) => {
8
8
  const selectedSize = componentSizes[size];
9
- const computedWidth = fullWidth ? '100%' : width || `${selectedSize.maxWidth}px`;
9
+ const computedWidth = fullWidth
10
+ ? '100%'
11
+ : width || `${selectedSize.maxWidth}px`;
10
12
  const style = {
11
- input: {
12
- height: 'auto',
13
- minHeight: `${selectedSize.height}px`,
14
- padding: selectedSize.inputPadding,
15
- display: 'flex',
16
- alignItems: 'center',
17
- cursor: 'pointer',
13
+ defaultValueLabel: {
18
14
  ...fontBase,
19
- fontSize: selectedSize.fontSize,
20
- color: neutral[200],
21
- border: `1px solid ${neutral[100]}`,
22
- borderRadius: '8px',
23
- backgroundColor: 'white',
24
- transition: 'all 200ms ease-in-out',
15
+ },
16
+ defaultValueRemove: {
25
17
  '&:hover': {
26
- backgroundColor: 'white',
18
+ backgroundColor: primary[25],
27
19
  },
20
+ alignItems: 'center',
21
+ backgroundColor: primary[25],
22
+ borderRadius: '50%',
23
+ color: primary[300],
24
+ display: 'flex',
25
+ justifyContent: 'center',
26
+ marginLeft: spacing.sm,
28
27
  },
29
28
  dropdown: {
30
29
  border: 'none',
31
30
  borderRadius: '8px',
32
31
  boxShadow: '0 10px 15px -3px rgba(0, 0, 0, 0.1)',
33
32
  },
34
- item: {
35
- padding: selectedSize.dropdownPadding,
36
- marginBottom: spacing.xs,
37
- borderRadius: '8px',
33
+ // Match the error-label typography used by TextInput/TextArea/Select so
34
+ // validation messages read at the same scale across all inputs (Mantine's
35
+ // default sizes this much smaller).
36
+ error: {
38
37
  ...fontBase,
39
- fontSize: selectedSize.fontSize,
40
- color: neutral[200],
38
+ color: red[200],
39
+ fontSize: `calc(${selectedSize.fontSize} - 0.5px)`,
40
+ },
41
+ input: {
42
+ alignItems: 'center',
43
+ cursor: 'pointer',
44
+ display: 'flex',
45
+ height: 'auto',
46
+ minHeight: `${selectedSize.height}px`,
47
+ padding: selectedSize.inputPadding,
48
+ ...fontBase,
49
+ '&:hover': {
50
+ backgroundColor: 'white',
51
+ },
41
52
  backgroundColor: 'white',
42
- '&[data-selected]': {
43
- backgroundColor: neutral[50],
53
+ border: `1px solid ${neutral[100]}`,
54
+ borderRadius: '8px',
55
+ color: neutral[200],
56
+ fontSize: selectedSize.fontSize,
57
+ transition: 'all 200ms ease-in-out',
58
+ '&[data-invalid]': {
59
+ borderColor: red[200],
44
60
  color: neutral[200],
45
- '&:hover': {
46
- backgroundColor: neutral[50],
61
+ '& input::placeholder': {
62
+ color: red[200],
47
63
  },
48
64
  },
49
- '&:hover': {
65
+ },
66
+ item: {
67
+ borderRadius: '8px',
68
+ marginBottom: spacing.xs,
69
+ padding: selectedSize.dropdownPadding,
70
+ ...fontBase,
71
+ // Mantine v6 highlights the keyboard-focused item with `data-hovered`,
72
+ // so we mirror the mouse `:hover` style there.
73
+ '&:hover, &[data-hovered]': {
50
74
  backgroundColor: neutral[50],
51
75
  },
52
- '&:not(:hover):not([data-selected])': {
76
+ '&:not(:hover):not([data-hovered]):not([data-selected])': {
53
77
  backgroundColor: 'white',
54
78
  },
55
- },
56
- value: {
57
- padding: selectedSize.valuePadding,
58
- borderRadius: '25px',
59
- ...fontBase,
60
- fontSize: `calc(${selectedSize.fontSize} - 1.25px)`,
61
- color: primary[300],
62
- backgroundColor: primary[50],
63
- '&:hover': {
64
- backgroundColor: primary[50],
65
- },
66
- },
67
- defaultValueRemove: {
68
- marginLeft: spacing.sm,
69
- borderRadius: '50%',
70
- display: 'flex',
71
- alignItems: 'center',
72
- justifyContent: 'center',
73
- color: primary[300],
74
- backgroundColor: primary[25],
75
- '&:hover': {
76
- backgroundColor: primary[25],
79
+ '&[data-selected]': {
80
+ '&:hover, &[data-hovered]': {
81
+ backgroundColor: neutral[50],
82
+ },
83
+ backgroundColor: neutral[50],
84
+ color: neutral[200],
77
85
  },
86
+ backgroundColor: 'white',
87
+ color: neutral[200],
88
+ fontSize: selectedSize.fontSize,
78
89
  },
79
90
  label: {
80
91
  ...fontBase,
81
- fontSize: `calc(${selectedSize.fontSize} - 1px)`,
82
92
  color: neutral[200],
83
- },
84
- defaultValueLabel: {
85
- ...fontBase,
93
+ fontSize: `calc(${selectedSize.fontSize} - 1px)`,
86
94
  },
87
95
  searchInput: {
88
96
  ...fontBase,
89
- fontSize: selectedSize.fontSize,
90
97
  color: neutral[200],
98
+ fontSize: selectedSize.fontSize,
99
+ },
100
+ value: {
101
+ borderRadius: '25px',
102
+ padding: selectedSize.valuePadding,
103
+ ...fontBase,
104
+ '&:hover': {
105
+ backgroundColor: primary[25],
106
+ },
107
+ backgroundColor: primary[25],
108
+ color: primary[300],
109
+ fontSize: `calc(${selectedSize.fontSize} - 1.25px)`,
91
110
  },
92
111
  ...styles,
93
112
  };
94
- return _jsx(MantineMultiSelect, { placeholder: placeholder, size: size, w: computedWidth, styles: style, maxDropdownHeight: selectedSize.dropdownHeight, searchable: true, ...props });
113
+ return (_jsx(MantineMultiSelect, { maxDropdownHeight: selectedSize.dropdownHeight, placeholder: placeholder, searchable: true, size: size, styles: style, w: computedWidth, ...props }));
95
114
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Dropdowns/Select/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,MAAM,GAAI,2DAA+F,WAAW,4CAqEhI,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Dropdowns/Select/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,MAAM,GAAI,2DAA+F,WAAW,4CAuEhI,CAAC"}
@@ -49,14 +49,16 @@ export const Select = ({ size = 'md', width, fullWidth = false, placeholder = 'S
49
49
  '&[data-selected]': {
50
50
  backgroundColor: neutral[50],
51
51
  color: neutral[200],
52
- '&:hover': {
52
+ '&:hover, &[data-hovered]': {
53
53
  backgroundColor: neutral[50],
54
54
  },
55
55
  },
56
- '&:hover': {
56
+ // Mantine v6 highlights the keyboard-focused item with `data-hovered`,
57
+ // so we mirror the mouse `:hover` style there.
58
+ '&:hover, &[data-hovered]': {
57
59
  backgroundColor: neutral[50],
58
60
  },
59
- '&:not(:hover):not([data-selected])': {
61
+ '&:not(:hover):not([data-hovered]):not([data-selected])': {
60
62
  backgroundColor: 'white',
61
63
  },
62
64
  },
@@ -0,0 +1,23 @@
1
+ import { DropzoneProps as MantineDropzoneProps } from '@mantine/dropzone';
2
+ import { CSSObject } from '@mantine/core';
3
+ export interface DropzoneProps extends Omit<MantineDropzoneProps, 'styles'> {
4
+ styles?: Record<string, CSSObject>;
5
+ }
6
+ export declare const Dropzone: (({ styles, children, ...props }: DropzoneProps) => import("react/jsx-runtime").JSX.Element) & {
7
+ Accept: {
8
+ (props: import("@mantine/dropzone/lib/DropzoneStatus").DropzoneStatusProps): JSX.Element;
9
+ displayName: string;
10
+ };
11
+ Reject: {
12
+ (props: import("@mantine/dropzone/lib/DropzoneStatus").DropzoneStatusProps): JSX.Element;
13
+ displayName: string;
14
+ };
15
+ Idle: {
16
+ (props: import("@mantine/dropzone/lib/DropzoneStatus").DropzoneStatusProps): JSX.Element;
17
+ displayName: string;
18
+ };
19
+ FullScreen: typeof import("@mantine/dropzone/lib/DropzoneFullScreen").DropzoneFullScreen;
20
+ };
21
+ export { IMAGE_MIME_TYPE, PDF_MIME_TYPE, MS_WORD_MIME_TYPE, MS_EXCEL_MIME_TYPE, MS_POWERPOINT_MIME_TYPE, MIME_TYPES, } from '@mantine/dropzone';
22
+ export type { FileWithPath, FileRejection } from '@mantine/dropzone';
23
+ //# sourceMappingURL=Dropzone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../../../src/components/Inputs/Dropzone/Dropzone.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,IAAI,oBAAoB,EACtC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAK1C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAsCD,eAAO,MAAM,QAAQ,oCApCsC,aAAa;;;;;;;;;;;;;;CAyCtE,CAAC;AAIH,OAAO,EACL,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Dropzone as MantineDropzone, } from '@mantine/dropzone';
3
+ import { colors } from '../../../constants/colors';
4
+ import { fontBase } from '../../../constants/font';
5
+ import { spacing } from '../../../constants/spacing';
6
+ const DropzoneComponent = ({ styles, children, ...props }) => {
7
+ const style = {
8
+ root: {
9
+ ...fontBase,
10
+ backgroundColor: 'white',
11
+ border: `1px dashed ${colors.neutral[100]}`,
12
+ borderRadius: '8px',
13
+ color: colors.neutral[300],
14
+ cursor: 'pointer',
15
+ padding: spacing.xl,
16
+ transition: 'background-color 200ms ease, border-color 200ms ease',
17
+ '&:hover': {
18
+ backgroundColor: colors.neutral[25],
19
+ borderColor: colors.neutral[200],
20
+ },
21
+ '&[data-accept]': {
22
+ backgroundColor: colors.primary[25],
23
+ borderColor: colors.primary[200],
24
+ borderStyle: 'solid',
25
+ },
26
+ '&[data-reject]': {
27
+ backgroundColor: colors.error[25],
28
+ borderColor: colors.error[200],
29
+ borderStyle: 'solid',
30
+ },
31
+ },
32
+ ...styles,
33
+ };
34
+ return (_jsx(MantineDropzone, { styles: style, ...props, children: children }));
35
+ };
36
+ export const Dropzone = Object.assign(DropzoneComponent, {
37
+ Accept: MantineDropzone.Accept,
38
+ Reject: MantineDropzone.Reject,
39
+ Idle: MantineDropzone.Idle,
40
+ FullScreen: MantineDropzone.FullScreen,
41
+ });
42
+ // Re-export the MIME-type presets so consumers can do:
43
+ // import { Dropzone, IMAGE_MIME_TYPE } from '@taiv/ui';
44
+ export { IMAGE_MIME_TYPE, PDF_MIME_TYPE, MS_WORD_MIME_TYPE, MS_EXCEL_MIME_TYPE, MS_POWERPOINT_MIME_TYPE, MIME_TYPES, } from '@mantine/dropzone';
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Dropzone } from './Dropzone';
3
+ declare const meta: Meta<typeof Dropzone>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const ImagesOnly: Story;
8
+ export declare const PdfsOnly: Story;
9
+ export declare const Loading: Story;
10
+ export declare const Disabled: Story;
11
+ export declare const WithFileList: Story;
12
+ //# sourceMappingURL=Dropzone.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropzone.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Inputs/Dropzone/Dropzone.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,QAAQ,EAAkC,MAAM,YAAY,CAAC;AAQtE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CA6D/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAsBnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAIF,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAC;AAIF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAIF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAIF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAIF,eAAO,MAAM,YAAY,EAAE,KA2B1B,CAAC"}