@taiv/ui 1.15.0 → 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 (393) 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/variants.d.ts +61 -41
  90. package/dist/components/Info/Modals/variants.d.ts.map +1 -1
  91. package/dist/components/Info/Modals/variants.js +58 -38
  92. package/dist/components/Info/Notifications/Notifications.stories.d.ts +1 -0
  93. package/dist/components/Info/Notifications/Notifications.stories.d.ts.map +1 -1
  94. package/dist/components/Info/Notifications/Notifications.stories.js +31 -0
  95. package/dist/components/Info/Notifications/variants.d.ts +25 -19
  96. package/dist/components/Info/Notifications/variants.d.ts.map +1 -1
  97. package/dist/components/Info/Notifications/variants.js +30 -24
  98. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.d.ts +37 -0
  99. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.d.ts.map +1 -0
  100. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.js +17 -0
  101. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.d.ts +7 -0
  102. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.d.ts.map +1 -0
  103. package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.js +26 -0
  104. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.d.ts +1 -1
  105. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.d.ts.map +1 -1
  106. package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.js +9 -3
  107. package/dist/components/Info/Tooltips/Popover/Popover.d.ts +16 -0
  108. package/dist/components/Info/Tooltips/Popover/Popover.d.ts.map +1 -0
  109. package/dist/components/Info/Tooltips/Popover/Popover.js +32 -0
  110. package/dist/components/Info/Tooltips/Tooltip/Tooltip.d.ts +5 -1
  111. package/dist/components/Info/Tooltips/Tooltip/Tooltip.d.ts.map +1 -1
  112. package/dist/components/Info/Tooltips/Tooltip/Tooltip.js +10 -8
  113. package/dist/components/Inputs/Buttons/Button/Button.d.ts +3 -1
  114. package/dist/components/Inputs/Buttons/Button/Button.d.ts.map +1 -1
  115. package/dist/components/Inputs/Buttons/Button/Button.js +38 -5
  116. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts +1 -0
  117. package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts.map +1 -1
  118. package/dist/components/Inputs/Buttons/Button/Button.stories.js +105 -79
  119. package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts +7 -2
  120. package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts.map +1 -1
  121. package/dist/components/Inputs/Buttons/IconButton/IconButton.js +35 -11
  122. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts +1 -0
  123. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts.map +1 -1
  124. package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.js +100 -74
  125. package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts +15 -0
  126. package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts.map +1 -1
  127. package/dist/components/Inputs/Buttons/IconButton/sizes.js +3 -0
  128. package/dist/components/Inputs/Buttons/shared/variants.d.ts +399 -164
  129. package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -1
  130. package/dist/components/Inputs/Buttons/shared/variants.js +353 -143
  131. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.d.ts +40 -0
  132. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.d.ts.map +1 -0
  133. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.js +139 -0
  134. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.d.ts +13 -0
  135. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.d.ts.map +1 -0
  136. package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.js +75 -0
  137. package/dist/components/Inputs/ColorSwatch/ColorSwatch.d.ts +27 -0
  138. package/dist/components/Inputs/ColorSwatch/ColorSwatch.d.ts.map +1 -0
  139. package/dist/components/Inputs/ColorSwatch/ColorSwatch.js +46 -0
  140. package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.d.ts +32 -0
  141. package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.d.ts.map +1 -0
  142. package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.js +92 -0
  143. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.d.ts +11 -8
  144. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  145. package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.js +20 -12
  146. package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts +25 -11
  147. package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts.map +1 -1
  148. package/dist/components/Inputs/Controls/Toggle/Toggle.js +67 -20
  149. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.d.ts +1 -0
  150. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.d.ts.map +1 -1
  151. package/dist/components/Inputs/Controls/Toggle/Toggle.stories.js +86 -69
  152. package/dist/components/Inputs/Dates/DatePicker/DatePicker.d.ts.map +1 -1
  153. package/dist/components/Inputs/Dates/DatePicker/DatePicker.js +23 -7
  154. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.d.ts +12 -0
  155. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.d.ts.map +1 -0
  156. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.js +87 -0
  157. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.d.ts +13 -0
  158. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -0
  159. package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.js +239 -0
  160. package/dist/components/Inputs/Dates/TimeInput/TimeInput.d.ts +19 -0
  161. package/dist/components/Inputs/Dates/TimeInput/TimeInput.d.ts.map +1 -0
  162. package/dist/components/Inputs/Dates/TimeInput/TimeInput.js +51 -0
  163. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.d.ts.map +1 -1
  164. package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.js +8 -1
  165. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts +2 -2
  166. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts.map +1 -1
  167. package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.js +76 -57
  168. package/dist/components/Inputs/Dropdowns/Select/Select.d.ts.map +1 -1
  169. package/dist/components/Inputs/Dropdowns/Select/Select.js +5 -3
  170. package/dist/components/Inputs/Dropzone/Dropzone.d.ts +23 -0
  171. package/dist/components/Inputs/Dropzone/Dropzone.d.ts.map +1 -0
  172. package/dist/components/Inputs/Dropzone/Dropzone.js +44 -0
  173. package/dist/components/Inputs/Dropzone/Dropzone.stories.d.ts +12 -0
  174. package/dist/components/Inputs/Dropzone/Dropzone.stories.d.ts.map +1 -0
  175. package/dist/components/Inputs/Dropzone/Dropzone.stories.js +114 -0
  176. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.d.ts.map +1 -1
  177. package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.js +4 -1
  178. package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.d.ts +46 -0
  179. package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.d.ts.map +1 -0
  180. package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.js +60 -0
  181. package/dist/components/Layout/Accordion/Accordion.d.ts +16 -0
  182. package/dist/components/Layout/Accordion/Accordion.d.ts.map +1 -0
  183. package/dist/components/Layout/Accordion/Accordion.js +63 -0
  184. package/dist/components/Layout/Accordion/Accordion.stories.d.ts +11 -0
  185. package/dist/components/Layout/Accordion/Accordion.stories.d.ts.map +1 -0
  186. package/dist/components/Layout/Accordion/Accordion.stories.js +148 -0
  187. package/dist/components/Layout/AutoGrid/AutoGrid.d.ts +20 -5
  188. package/dist/components/Layout/AutoGrid/AutoGrid.d.ts.map +1 -1
  189. package/dist/components/Layout/AutoGrid/AutoGrid.js +51 -3
  190. package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts +1 -0
  191. package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts.map +1 -1
  192. package/dist/components/Layout/AutoGrid/AutoGrid.stories.js +39 -29
  193. package/dist/components/Layout/BottomActionBar/BottomActionBar.d.ts +40 -0
  194. package/dist/components/Layout/BottomActionBar/BottomActionBar.d.ts.map +1 -0
  195. package/dist/components/Layout/BottomActionBar/BottomActionBar.js +79 -0
  196. package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.d.ts +10 -0
  197. package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.d.ts.map +1 -0
  198. package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.js +102 -0
  199. package/dist/components/Layout/Card/Card.d.ts +1 -1
  200. package/dist/components/Layout/Card/Card.d.ts.map +1 -1
  201. package/dist/components/Layout/Container/Container.d.ts +3 -0
  202. package/dist/components/Layout/Container/Container.d.ts.map +1 -0
  203. package/dist/components/Layout/Container/Container.js +1 -0
  204. package/dist/components/Layout/Container/Container.stories.d.ts +8 -0
  205. package/dist/components/Layout/Container/Container.stories.d.ts.map +1 -0
  206. package/dist/components/Layout/Container/Container.stories.js +52 -0
  207. package/dist/components/Layout/DataState/DataState.d.ts +34 -0
  208. package/dist/components/Layout/DataState/DataState.d.ts.map +1 -0
  209. package/dist/components/Layout/DataState/DataState.js +22 -0
  210. package/dist/components/Layout/DataState/DataState.stories.d.ts +11 -0
  211. package/dist/components/Layout/DataState/DataState.stories.d.ts.map +1 -0
  212. package/dist/components/Layout/DataState/DataState.stories.js +38 -0
  213. package/dist/components/Layout/Divider/Divider.d.ts.map +1 -1
  214. package/dist/components/Layout/Divider/Divider.js +4 -2
  215. package/dist/components/Layout/Group/Group.d.ts +1 -1
  216. package/dist/components/Layout/Group/Group.d.ts.map +1 -1
  217. package/dist/components/Layout/Loader/Loader.d.ts +1 -1
  218. package/dist/components/Layout/Loader/Loader.d.ts.map +1 -1
  219. package/dist/components/Layout/Loader/Loader.js +3 -2
  220. package/dist/components/Layout/Navbar/Navbar.d.ts +15 -0
  221. package/dist/components/Layout/Navbar/Navbar.d.ts.map +1 -0
  222. package/dist/components/Layout/Navbar/Navbar.js +20 -0
  223. package/dist/components/Layout/Navbar/Navbar.stories.d.ts +9 -0
  224. package/dist/components/Layout/Navbar/Navbar.stories.d.ts.map +1 -0
  225. package/dist/components/Layout/Navbar/Navbar.stories.js +98 -0
  226. package/dist/components/Layout/Page/Page.d.ts +13 -0
  227. package/dist/components/Layout/Page/Page.d.ts.map +1 -0
  228. package/dist/components/Layout/Page/Page.js +13 -0
  229. package/dist/components/Layout/Pagination/Pagination.d.ts +23 -0
  230. package/dist/components/Layout/Pagination/Pagination.d.ts.map +1 -0
  231. package/dist/components/Layout/Pagination/Pagination.js +53 -0
  232. package/dist/components/Layout/Pagination/Pagination.stories.d.ts +10 -0
  233. package/dist/components/Layout/Pagination/Pagination.stories.d.ts.map +1 -0
  234. package/dist/components/Layout/Pagination/Pagination.stories.js +76 -0
  235. package/dist/components/Layout/ScrollArea/ScrollArea.d.ts +3 -0
  236. package/dist/components/Layout/ScrollArea/ScrollArea.d.ts.map +1 -0
  237. package/dist/components/Layout/ScrollArea/ScrollArea.js +1 -0
  238. package/dist/components/Layout/ScrollArea/ScrollArea.stories.d.ts +8 -0
  239. package/dist/components/Layout/ScrollArea/ScrollArea.stories.d.ts.map +1 -0
  240. package/dist/components/Layout/ScrollArea/ScrollArea.stories.js +62 -0
  241. package/dist/components/Layout/Tabs/Tabs.d.ts +16 -5
  242. package/dist/components/Layout/Tabs/Tabs.d.ts.map +1 -1
  243. package/dist/components/Layout/Tabs/Tabs.js +53 -18
  244. package/dist/components/Layout/Tabs/Tabs.stories.d.ts.map +1 -1
  245. package/dist/components/Layout/Tabs/Tabs.stories.js +39 -39
  246. package/dist/components/Layout/VirtualGrid/VirtualGrid.d.ts +63 -0
  247. package/dist/components/Layout/VirtualGrid/VirtualGrid.d.ts.map +1 -0
  248. package/dist/components/Layout/VirtualGrid/VirtualGrid.js +159 -0
  249. package/dist/components/Misc/Burger/Burger.d.ts +6 -0
  250. package/dist/components/Misc/Burger/Burger.d.ts.map +1 -0
  251. package/dist/components/Misc/Burger/Burger.js +7 -0
  252. package/dist/components/Misc/Burger/Burger.stories.d.ts +10 -0
  253. package/dist/components/Misc/Burger/Burger.stories.d.ts.map +1 -0
  254. package/dist/components/Misc/Burger/Burger.stories.js +86 -0
  255. package/dist/components/Misc/Carousel/Carousel.d.ts +32 -0
  256. package/dist/components/Misc/Carousel/Carousel.d.ts.map +1 -0
  257. package/dist/components/Misc/Carousel/Carousel.js +16 -0
  258. package/dist/components/Misc/DragHandle/DragHandle.d.ts +19 -0
  259. package/dist/components/Misc/DragHandle/DragHandle.d.ts.map +1 -0
  260. package/dist/components/Misc/DragHandle/DragHandle.js +39 -0
  261. package/dist/components/Misc/DragHandle/DragHandle.stories.d.ts +9 -0
  262. package/dist/components/Misc/DragHandle/DragHandle.stories.d.ts.map +1 -0
  263. package/dist/components/Misc/DragHandle/DragHandle.stories.js +54 -0
  264. package/dist/components/Misc/FAB/FAB.d.ts +54 -0
  265. package/dist/components/Misc/FAB/FAB.d.ts.map +1 -0
  266. package/dist/components/Misc/FAB/FAB.js +53 -0
  267. package/dist/components/Misc/FAB/FAB.stories.d.ts +10 -0
  268. package/dist/components/Misc/FAB/FAB.stories.d.ts.map +1 -0
  269. package/dist/components/Misc/FAB/FAB.stories.js +100 -0
  270. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.d.ts +50 -0
  271. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.d.ts.map +1 -0
  272. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.js +40 -0
  273. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.d.ts +9 -0
  274. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.d.ts.map +1 -0
  275. package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.js +53 -0
  276. package/dist/components/Misc/HoverAction/HoverAction.d.ts +50 -0
  277. package/dist/components/Misc/HoverAction/HoverAction.d.ts.map +1 -0
  278. package/dist/components/Misc/HoverAction/HoverAction.js +61 -0
  279. package/dist/components/Misc/HoverAction/HoverAction.stories.d.ts +12 -0
  280. package/dist/components/Misc/HoverAction/HoverAction.stories.d.ts.map +1 -0
  281. package/dist/components/Misc/HoverAction/HoverAction.stories.js +96 -0
  282. package/dist/components/Misc/IconBadge/IconBadge.d.ts.map +1 -1
  283. package/dist/components/Misc/IconBadge/IconBadge.js +8 -6
  284. package/dist/components/Misc/Image/Image.d.ts +3 -0
  285. package/dist/components/Misc/Image/Image.d.ts.map +1 -0
  286. package/dist/components/Misc/Image/Image.js +1 -0
  287. package/dist/components/Misc/Image/Image.stories.d.ts +11 -0
  288. package/dist/components/Misc/Image/Image.stories.d.ts.map +1 -0
  289. package/dist/components/Misc/Image/Image.stories.js +63 -0
  290. package/dist/components/Misc/Kbd/Kbd.d.ts +6 -0
  291. package/dist/components/Misc/Kbd/Kbd.d.ts.map +1 -0
  292. package/dist/components/Misc/Kbd/Kbd.js +16 -0
  293. package/dist/components/Misc/Kbd/Kbd.stories.d.ts +9 -0
  294. package/dist/components/Misc/Kbd/Kbd.stories.d.ts.map +1 -0
  295. package/dist/components/Misc/Kbd/Kbd.stories.js +52 -0
  296. package/dist/components/Misc/Menu/Menu.d.ts +17 -0
  297. package/dist/components/Misc/Menu/Menu.d.ts.map +1 -0
  298. package/dist/components/Misc/Menu/Menu.js +52 -0
  299. package/dist/components/Misc/OverflowFade/OverflowFade.d.ts +42 -0
  300. package/dist/components/Misc/OverflowFade/OverflowFade.d.ts.map +1 -0
  301. package/dist/components/Misc/OverflowFade/OverflowFade.js +110 -0
  302. package/dist/components/Misc/OverflowFade/OverflowFade.stories.d.ts +11 -0
  303. package/dist/components/Misc/OverflowFade/OverflowFade.stories.d.ts.map +1 -0
  304. package/dist/components/Misc/OverflowFade/OverflowFade.stories.js +112 -0
  305. package/dist/components/Misc/Picker/Picker.d.ts +62 -0
  306. package/dist/components/Misc/Picker/Picker.d.ts.map +1 -0
  307. package/dist/components/Misc/Picker/Picker.js +111 -0
  308. package/dist/components/Misc/Picker/Picker.stories.d.ts +14 -0
  309. package/dist/components/Misc/Picker/Picker.stories.d.ts.map +1 -0
  310. package/dist/components/Misc/Picker/Picker.stories.js +154 -0
  311. package/dist/components/Misc/SelectableObject/SelectableObject.d.ts +38 -0
  312. package/dist/components/Misc/SelectableObject/SelectableObject.d.ts.map +1 -0
  313. package/dist/components/Misc/SelectableObject/SelectableObject.js +70 -0
  314. package/dist/components/Misc/SelectableObject/SelectableObject.stories.d.ts +11 -0
  315. package/dist/components/Misc/SelectableObject/SelectableObject.stories.d.ts.map +1 -0
  316. package/dist/components/Misc/SelectableObject/SelectableObject.stories.js +84 -0
  317. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.d.ts +26 -0
  318. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.d.ts.map +1 -0
  319. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.js +41 -0
  320. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.d.ts +10 -0
  321. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.d.ts.map +1 -0
  322. package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.js +48 -0
  323. package/dist/components/Misc/Stepper/Step.stories.d.ts +118 -118
  324. package/dist/components/Misc/Stepper/variants.d.ts +1 -1
  325. package/dist/components/Misc/Timeline/Timeline.d.ts +18 -0
  326. package/dist/components/Misc/Timeline/Timeline.d.ts.map +1 -0
  327. package/dist/components/Misc/Timeline/Timeline.js +38 -0
  328. package/dist/components/Misc/Timeline/Timeline.stories.d.ts +8 -0
  329. package/dist/components/Misc/Timeline/Timeline.stories.d.ts.map +1 -0
  330. package/dist/components/Misc/Timeline/Timeline.stories.js +54 -0
  331. package/dist/components/Typography/InlineEditableText/InlineEditableText.d.ts +35 -0
  332. package/dist/components/Typography/InlineEditableText/InlineEditableText.d.ts.map +1 -0
  333. package/dist/components/Typography/InlineEditableText/InlineEditableText.js +112 -0
  334. package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.d.ts +11 -0
  335. package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.d.ts.map +1 -0
  336. package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.js +48 -0
  337. package/dist/components/index.d.ts +148 -66
  338. package/dist/components/index.d.ts.map +1 -1
  339. package/dist/components/index.js +110 -68
  340. package/dist/constants/colors.d.ts +117 -91
  341. package/dist/constants/colors.d.ts.map +1 -1
  342. package/dist/constants/colors.js +56 -43
  343. package/dist/constants/font.d.ts +4 -4
  344. package/dist/constants/font.js +2 -2
  345. package/dist/hooks/index.d.ts +9 -1
  346. package/dist/hooks/index.d.ts.map +1 -1
  347. package/dist/hooks/index.js +7 -1
  348. package/dist/hooks/useConfirmationModal.d.ts.map +1 -1
  349. package/dist/hooks/useConfirmationModal.js +20 -1
  350. package/dist/hooks/useDisclosure.d.ts +11 -0
  351. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  352. package/dist/hooks/useDisclosure.js +10 -0
  353. package/dist/hooks/useHeadroom.d.ts +18 -0
  354. package/dist/hooks/useHeadroom.d.ts.map +1 -0
  355. package/dist/hooks/useHeadroom.js +17 -0
  356. package/dist/hooks/useInfoModal.d.ts.map +1 -1
  357. package/dist/hooks/useInfoModal.js +13 -1
  358. package/dist/hooks/useMediaQuery.d.ts +1 -0
  359. package/dist/hooks/useMediaQuery.d.ts.map +1 -1
  360. package/dist/hooks/useMediaQuery.js +1 -0
  361. package/dist/hooks/useNotifications.d.ts +39 -7
  362. package/dist/hooks/useNotifications.d.ts.map +1 -1
  363. package/dist/hooks/useNotifications.js +108 -5
  364. package/dist/hooks/usePagination.d.ts +11 -0
  365. package/dist/hooks/usePagination.d.ts.map +1 -0
  366. package/dist/hooks/usePagination.js +2 -0
  367. package/dist/hooks/useScrollLock.d.ts +21 -0
  368. package/dist/hooks/useScrollLock.d.ts.map +1 -0
  369. package/dist/hooks/useScrollLock.js +20 -0
  370. package/dist/index.d.ts +5 -5
  371. package/dist/index.js +5 -5
  372. package/dist/styles/iosInputZoomFix.d.ts +31 -0
  373. package/dist/styles/iosInputZoomFix.d.ts.map +1 -0
  374. package/dist/styles/iosInputZoomFix.js +135 -0
  375. package/dist/utils/bytes.d.ts +10 -0
  376. package/dist/utils/bytes.d.ts.map +1 -0
  377. package/dist/utils/bytes.js +17 -0
  378. package/dist/utils/datetime.d.ts +18 -0
  379. package/dist/utils/datetime.d.ts.map +1 -0
  380. package/dist/utils/datetime.js +42 -0
  381. package/dist/utils/duration.d.ts +17 -0
  382. package/dist/utils/duration.d.ts.map +1 -0
  383. package/dist/utils/duration.js +30 -0
  384. package/dist/utils/index.d.ts +8 -2
  385. package/dist/utils/index.d.ts.map +1 -1
  386. package/dist/utils/index.js +7 -2
  387. package/dist/utils/sort.d.ts +44 -0
  388. package/dist/utils/sort.d.ts.map +1 -0
  389. package/dist/utils/sort.js +53 -0
  390. package/dist/utils/string.d.ts +22 -0
  391. package/dist/utils/string.d.ts.map +1 -0
  392. package/dist/utils/string.js +25 -0
  393. package/package.json +26 -2
@@ -0,0 +1,96 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { HoverAction } from './HoverAction';
3
+ import { Card } from '../../Layout/Card/Card';
4
+ import { Group } from '../../Layout/Group/Group';
5
+ import { Stack } from '../../Layout/Stack/Stack';
6
+ import { Text } from '../../Typography/Text/Text';
7
+ import { Title } from '../../Typography/Title/Title';
8
+ import { spacing } from '../../../constants/spacing';
9
+ import { neutral } from '../../../constants/colors';
10
+ const SlidePreview = ({ label = 'Calamari' }) => (_jsxs(Stack, { gap: spacing.xs, children: [_jsx("div", { style: {
11
+ width: 160,
12
+ height: 110,
13
+ borderRadius: 8,
14
+ background: `linear-gradient(135deg, ${neutral[50]}, ${neutral[100]})`,
15
+ display: 'flex',
16
+ alignItems: 'center',
17
+ justifyContent: 'center',
18
+ }, children: _jsx(Text, { variant: 'label', style: { color: neutral[300] }, children: label }) }), _jsx(Text, { variant: 'label', children: label })] }));
19
+ const meta = {
20
+ title: 'Components/Misc/HoverAction',
21
+ component: HoverAction,
22
+ parameters: {
23
+ layout: 'centered',
24
+ docs: {
25
+ description: {
26
+ component: 'Wraps any content with a floating icon button pinned to the top-right corner. The button fades in when the wrapped content is hovered. Variants: close, trash, edit. Click handler is called with propagation stopped, so wrapping interactive cards is safe.',
27
+ },
28
+ },
29
+ },
30
+ argTypes: {
31
+ variant: {
32
+ control: { type: 'select' },
33
+ options: ['close', 'trash', 'edit'],
34
+ table: { defaultValue: { summary: "'close'" } },
35
+ },
36
+ showBackground: {
37
+ control: { type: 'boolean' },
38
+ description: 'Always show white circle background (vs transparent until hover)',
39
+ table: { defaultValue: { summary: 'false' } },
40
+ },
41
+ offset: {
42
+ control: { type: 'number' },
43
+ description: 'Pixels the button pokes out of the top-right corner',
44
+ table: { defaultValue: { summary: '10' } },
45
+ },
46
+ visible: {
47
+ control: { type: 'boolean' },
48
+ description: 'Manual override for visibility. When unset, button shows on hover.',
49
+ },
50
+ },
51
+ };
52
+ export default meta;
53
+ export const Default = {
54
+ args: {
55
+ variant: 'close',
56
+ showBackground: true,
57
+ offset: 10,
58
+ },
59
+ render: (args) => (_jsx(HoverAction, { ...args, onClick: () => console.log('clicked'), children: _jsx(SlidePreview, {}) })),
60
+ };
61
+ export const Variants = {
62
+ render: () => (_jsxs(Group, { gap: spacing.xl, children: [_jsx(HoverAction, { variant: 'close', showBackground: true, onClick: () => console.log('close'), children: _jsx(SlidePreview, { label: 'Close' }) }), _jsx(HoverAction, { variant: 'trash', showBackground: true, onClick: () => console.log('trash'), children: _jsx(SlidePreview, { label: 'Trash' }) }), _jsx(HoverAction, { variant: 'edit', showBackground: true, onClick: () => console.log('edit'), children: _jsx(SlidePreview, { label: 'Edit' }) })] })),
63
+ };
64
+ export const HiddenUntilHover = {
65
+ parameters: {
66
+ docs: {
67
+ description: {
68
+ story: 'With `showBackground={false}` (default), the button is fully hidden until the wrapper is hovered. Matches the Taiv app slide-preview pattern.',
69
+ },
70
+ },
71
+ },
72
+ render: () => (_jsx(HoverAction, { variant: 'close', onClick: () => console.log('close'), children: _jsx(SlidePreview, { label: 'Hover me' }) })),
73
+ };
74
+ export const AlwaysVisible = {
75
+ parameters: {
76
+ docs: {
77
+ description: {
78
+ story: 'Pass `visible` explicitly to bypass the internal hover state.',
79
+ },
80
+ },
81
+ },
82
+ render: () => (_jsx(HoverAction, { variant: 'trash', showBackground: true, visible: true, onClick: () => console.log('delete'), children: _jsx(SlidePreview, { label: 'Always shown' }) })),
83
+ };
84
+ export const WrappingACard = {
85
+ parameters: {
86
+ docs: {
87
+ description: {
88
+ story: 'Wrapping an interactive Card. Clicking the close button stops propagation — the card onClick does not fire.',
89
+ },
90
+ },
91
+ },
92
+ render: () => (_jsx(HoverAction, { variant: 'close', showBackground: true, onClick: () => alert('Removed!'), children: _jsx("div", { onClick: () => alert('Card clicked'), style: { cursor: 'pointer', width: 240 }, children: _jsx(Card, { children: _jsxs(Stack, { gap: spacing.xs, children: [_jsx(Title, { variant: 'cardHeader', children: "Calamari" }), _jsx(Text, { variant: 'subtle', children: "Crispy. Hot. Delicious." })] }) }) }) })),
93
+ };
94
+ export const CustomOffset = {
95
+ render: () => (_jsxs(Group, { gap: spacing.xl, children: [_jsx(HoverAction, { variant: 'close', showBackground: true, offset: 0, onClick: () => { }, children: _jsx(SlidePreview, { label: 'offset=0' }) }), _jsx(HoverAction, { variant: 'close', showBackground: true, offset: 10, onClick: () => { }, children: _jsx(SlidePreview, { label: 'offset=10' }) }), _jsx(HoverAction, { variant: 'close', showBackground: true, offset: 20, onClick: () => { }, children: _jsx(SlidePreview, { label: 'offset=20' }) })] })),
96
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"IconBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/IconBadge/IconBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,OAAO,UAAU,CAAC;CAChC;AAED,eAAO,MAAM,SAAS,GAAI,iBAAiB,cAAc,4CAgCxD,CAAC"}
1
+ {"version":3,"file":"IconBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/IconBadge/IconBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,OAAO,UAAU,CAAC;CAChC;AAED,eAAO,MAAM,SAAS,GAAI,iBAAiB,cAAc,4CAoCxD,CAAC"}
@@ -4,25 +4,27 @@ import { primitives } from '../../../constants/colors';
4
4
  export const IconBadge = ({ icon, color }) => {
5
5
  const getIconColors = () => {
6
6
  return {
7
- background: primitives[color][50],
7
+ background: primitives[color][25],
8
8
  icon: primitives[color][200],
9
9
  };
10
10
  };
11
11
  const getIconSize = () => {
12
- if (React.isValidElement(icon) && icon.props && typeof icon.props.size === 'number') {
12
+ if (React.isValidElement(icon) &&
13
+ icon.props &&
14
+ typeof icon.props.size === 'number') {
13
15
  const iconSize = icon.props.size;
14
16
  const badgeSize = iconSize + 12;
15
17
  return `${badgeSize}px`;
16
18
  }
17
19
  };
18
20
  return (_jsx("div", { style: {
19
- width: getIconSize(),
20
- height: getIconSize(),
21
- borderRadius: '50%',
21
+ alignItems: 'center',
22
22
  backgroundColor: getIconColors().background,
23
+ borderRadius: '50%',
23
24
  color: getIconColors().icon,
24
25
  display: 'flex',
25
- alignItems: 'center',
26
+ height: getIconSize(),
26
27
  justifyContent: 'center',
28
+ width: getIconSize(),
27
29
  }, children: icon }));
28
30
  };
@@ -0,0 +1,3 @@
1
+ export { Image } from '@mantine/core';
2
+ export type { ImageProps } from '@mantine/core';
3
+ //# sourceMappingURL=Image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ export { Image } from '@mantine/core';
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Image } from './Image';
3
+ declare const meta: Meta<typeof Image>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Image>;
6
+ export declare const Default: Story;
7
+ export declare const Fits: Story;
8
+ export declare const Radii: Story;
9
+ export declare const WithPlaceholder: Story;
10
+ export declare const WithCaption: Story;
11
+ //# sourceMappingURL=Image.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/Image/Image.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CA0B5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAWlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA6B7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Image } from './Image';
3
+ import { Group } from '../../Layout/Group/Group';
4
+ import { Stack } from '../../Layout/Stack/Stack';
5
+ import { Text } from '../../Typography/Text/Text';
6
+ import { spacing } from '../../../constants/spacing';
7
+ const SAMPLE_SRC = 'https://images.unsplash.com/photo-1511216335778-7cb8f49fa7a3?w=600';
8
+ const meta = {
9
+ title: 'Components/Misc/Image',
10
+ component: Image,
11
+ parameters: {
12
+ layout: 'centered',
13
+ docs: {
14
+ description: {
15
+ component: 'Re-export of Mantine Image. Handles object-fit, placeholders, captions, and loading/error states. Use this instead of raw <img> so placeholder and caption behavior stays consistent.',
16
+ },
17
+ },
18
+ },
19
+ argTypes: {
20
+ fit: {
21
+ control: { type: 'select' },
22
+ options: ['cover', 'contain', 'fill', 'none', 'scale-down'],
23
+ table: { defaultValue: { summary: "'cover'" } },
24
+ },
25
+ radius: {
26
+ control: { type: 'select' },
27
+ options: ['xs', 'sm', 'md', 'lg', 'xl'],
28
+ },
29
+ withPlaceholder: {
30
+ control: { type: 'boolean' },
31
+ },
32
+ },
33
+ };
34
+ export default meta;
35
+ export const Default = {
36
+ args: {
37
+ src: SAMPLE_SRC,
38
+ alt: 'Sample',
39
+ width: 320,
40
+ height: 200,
41
+ fit: 'cover',
42
+ radius: 'md',
43
+ },
44
+ };
45
+ export const Fits = {
46
+ render: () => (_jsx(Group, { gap: spacing.lg, align: 'flex-start', children: ['cover', 'contain', 'fill'].map((fit) => (_jsxs(Stack, { gap: spacing.xs, align: 'center', children: [_jsx(Image, { src: SAMPLE_SRC, alt: fit, width: 180, height: 120, fit: fit, radius: 'md' }), _jsx(Text, { variant: 'label', children: fit })] }, fit))) })),
47
+ };
48
+ export const Radii = {
49
+ render: () => (_jsx(Group, { gap: spacing.lg, children: ['xs', 'md', 'xl'].map((radius) => (_jsxs(Stack, { gap: spacing.xs, align: 'center', children: [_jsx(Image, { src: SAMPLE_SRC, alt: radius, width: 140, height: 140, fit: 'cover', radius: radius }), _jsxs(Text, { variant: 'label', children: ["radius=", radius] })] }, radius))) })),
50
+ };
51
+ export const WithPlaceholder = {
52
+ parameters: {
53
+ docs: {
54
+ description: {
55
+ story: 'When the src fails or is missing, `withPlaceholder` renders a fallback.',
56
+ },
57
+ },
58
+ },
59
+ render: () => (_jsxs(Group, { gap: spacing.lg, children: [_jsx(Image, { src: 'https://invalid.example.com/does-not-exist.jpg', alt: 'broken', width: 200, height: 140, radius: 'md', withPlaceholder: true }), _jsx(Image, { src: null, alt: 'none', width: 200, height: 140, radius: 'md', withPlaceholder: true, placeholder: _jsx(Text, { variant: 'label', children: "No image" }) })] })),
60
+ };
61
+ export const WithCaption = {
62
+ render: () => (_jsx(Image, { src: SAMPLE_SRC, alt: 'Ocean sunset', width: 320, height: 200, fit: 'cover', radius: 'md', caption: 'Pacific ocean, golden hour' })),
63
+ };
@@ -0,0 +1,6 @@
1
+ import { KbdProps as MantineKbdProps } from '@mantine/core';
2
+ export interface KbdProps extends MantineKbdProps {
3
+ }
4
+ declare const Kbd: ({ ...props }: KbdProps) => import("react/jsx-runtime").JSX.Element;
5
+ export { Kbd };
6
+ //# sourceMappingURL=Kbd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/Kbd/Kbd.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAI/E,MAAM,WAAW,QAAS,SAAQ,eAAe;CAAG;AAEpD,QAAA,MAAM,GAAG,GAAI,cAAc,QAAQ,4CAelC,CAAC;AAEF,OAAO,EAAE,GAAG,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Kbd as MantineKbd } from '@mantine/core';
3
+ import { colors } from '../../../constants/colors';
4
+ import { fontBase, fontSize } from '../../../constants/font';
5
+ const Kbd = ({ ...props }) => {
6
+ return (_jsx(MantineKbd, { sx: {
7
+ ...fontBase,
8
+ ...fontSize['sm'],
9
+ backgroundColor: colors.neutral[25],
10
+ borderColor: colors.neutral[100],
11
+ color: colors.neutral[300],
12
+ padding: '1px 6px',
13
+ borderRadius: '4px',
14
+ }, ...props }));
15
+ };
16
+ export { Kbd };
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Kbd } from './Kbd';
3
+ declare const meta: Meta<typeof Kbd>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const InContext: Story;
8
+ export declare const CommonShortcuts: Story;
9
+ //# sourceMappingURL=Kbd.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Kbd.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/Kbd/Kbd.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAK5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CAmB1B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAe7B,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Kbd } from './Kbd';
3
+ import { Group } from '../../Layout/Group/Group';
4
+ import { Text } from '../../Typography/Text/Text';
5
+ import { spacing } from '../../../constants/spacing';
6
+ const meta = {
7
+ title: 'Components/Misc/Kbd',
8
+ component: Kbd,
9
+ parameters: {
10
+ layout: 'centered',
11
+ docs: {
12
+ description: {
13
+ component: 'Thin wrapper around Mantine v6\'s `Kbd` component with Taiv typography and color tokens. Use inline within help text to render keyboard shortcuts.',
14
+ },
15
+ },
16
+ },
17
+ argTypes: {
18
+ children: {
19
+ control: { type: 'text' },
20
+ description: 'Key label to display',
21
+ table: { type: { summary: 'ReactNode' } },
22
+ },
23
+ },
24
+ };
25
+ export default meta;
26
+ export const Default = {
27
+ args: { children: '⌘K' },
28
+ parameters: {
29
+ docs: {
30
+ source: { code: `<Kbd>⌘K</Kbd>` },
31
+ },
32
+ },
33
+ };
34
+ export const InContext = {
35
+ render: () => (_jsxs(Text, { variant: 'subtle', children: ["Press ", _jsx(Kbd, { children: "\u2318K" }), " to open search, or ", _jsx(Kbd, { children: "Esc" }), " to dismiss."] })),
36
+ parameters: {
37
+ docs: {
38
+ description: { story: 'Typical usage — inline within a sentence of help text.' },
39
+ source: {
40
+ code: `<Text variant="subtle">
41
+ Press <Kbd>⌘K</Kbd> to open search, or <Kbd>Esc</Kbd> to dismiss.
42
+ </Text>`,
43
+ },
44
+ },
45
+ },
46
+ };
47
+ export const CommonShortcuts = {
48
+ render: () => (_jsxs(Group, { spacing: spacing.sm, children: [_jsx(Kbd, { children: "\u2318K" }), _jsx(Kbd, { children: "\u2318Z" }), _jsx(Kbd, { children: "\u2318\u21E7Z" }), _jsx(Kbd, { children: "Ctrl" }), _jsx(Kbd, { children: "Enter" }), _jsx(Kbd, { children: "Esc" }), _jsx(Kbd, { children: "Tab" })] })),
49
+ parameters: {
50
+ docs: { source: { code: false } },
51
+ },
52
+ };
@@ -0,0 +1,17 @@
1
+ import { MenuProps as MantineMenuProps } from '@mantine/core';
2
+ export interface MenuProps extends MantineMenuProps {
3
+ }
4
+ export declare const Menu: (({ styles, children, ...props }: MenuProps) => import("react/jsx-runtime").JSX.Element) & {
5
+ Target: import("react").ForwardRefExoticComponent<import("@mantine/core").MenuTargetProps & import("react").RefAttributes<HTMLElement>>;
6
+ Dropdown: typeof import("@mantine/core/lib/Menu/MenuDropdown/MenuDropdown").MenuDropdown;
7
+ Item: (<C = "button">(props: import("@mantine/utils").PolymorphicComponentProps<C, import("@mantine/core").MenuItemProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(import("@mantine/core").MenuItemProps & {
8
+ component?: any;
9
+ } & Omit<Pick<any, string | number | symbol>, "component" | keyof import("@mantine/core").MenuItemProps> & {
10
+ ref?: any;
11
+ }) | (import("@mantine/core").MenuItemProps & {
12
+ component: React.ElementType<any>;
13
+ })>, never> & Record<string, never>;
14
+ Label: import("react").ForwardRefExoticComponent<import("@mantine/core").MenuLabelProps & import("react").RefAttributes<HTMLDivElement>>;
15
+ Divider: import("react").ForwardRefExoticComponent<import("@mantine/core").MenuDividerProps & import("react").RefAttributes<HTMLDivElement>>;
16
+ };
17
+ //# sourceMappingURL=Menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,SAAS,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKnF,MAAM,WAAW,SAAU,SAAQ,gBAAgB;CAAG;AAwDtD,eAAO,MAAM,IAAI,oCAtDiC,SAAS;;;;;;;;;;;;CA4DzD,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Menu as MantineMenu } 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 MenuRoot = ({ styles, children, ...props }) => {
7
+ const baseStyles = {
8
+ dropdown: {
9
+ borderRadius: '8px',
10
+ border: `1px solid ${neutral[50]}`,
11
+ boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.08)',
12
+ padding: spacing.xs,
13
+ },
14
+ item: {
15
+ ...fontBase,
16
+ ...fontSize['sm'],
17
+ fontWeight: fontWeight.medium,
18
+ color: neutral[300],
19
+ borderRadius: '6px',
20
+ padding: `${spacing.sm} ${spacing.md}`,
21
+ '&[data-hovered]': {
22
+ backgroundColor: neutral[25],
23
+ },
24
+ },
25
+ itemLabel: {
26
+ ...fontBase,
27
+ ...fontSize['sm'],
28
+ fontWeight: fontWeight.medium,
29
+ },
30
+ label: {
31
+ ...fontBase,
32
+ ...fontSize['xs'],
33
+ fontWeight: fontWeight.medium,
34
+ color: neutral[200],
35
+ padding: `${spacing.xs} ${spacing.md}`,
36
+ },
37
+ divider: {
38
+ margin: `${spacing.xs} 0`,
39
+ },
40
+ };
41
+ return (_jsx(MantineMenu, { radius: 8, shadow: "md", transitionProps: { duration: 150 }, withinPortal: true, ...props, styles: (theme, params, context) => {
42
+ const userStyles = typeof styles === 'function' ? styles(theme, params, context) : (styles !== null && styles !== void 0 ? styles : {});
43
+ return { ...baseStyles, ...userStyles };
44
+ }, children: children }));
45
+ };
46
+ export const Menu = Object.assign(MenuRoot, {
47
+ Target: MantineMenu.Target,
48
+ Dropdown: MantineMenu.Dropdown,
49
+ Item: MantineMenu.Item,
50
+ Label: MantineMenu.Label,
51
+ Divider: MantineMenu.Divider,
52
+ });
@@ -0,0 +1,42 @@
1
+ import type { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
+ export interface OverflowFadeProps extends HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Color the gradient fades into. Match the surrounding surface so the
5
+ * fade reads as "the strip dissolves into the page". Default: 'white'.
6
+ */
7
+ background?: string;
8
+ /**
9
+ * Size of each fade band from the edge in px — width for horizontal
10
+ * (`orientation="horizontal"`), height for vertical (`orientation="vertical"`).
11
+ * Default: 64.
12
+ */
13
+ fadeWidth?: number;
14
+ /**
15
+ * Scroll axis. Horizontal: left/right fades (default). Vertical: top/bottom
16
+ * fades — pass `maxHeight` on the scroll viewport so content can clip.
17
+ */
18
+ orientation?: 'horizontal' | 'vertical';
19
+ /**
20
+ * When `orientation` is `vertical`, caps the scroll viewport (e.g. `'65vh'`).
21
+ * Without this, the block grows with content and no vertical scroll (or fades)
22
+ * occurs.
23
+ */
24
+ maxHeight?: CSSProperties['maxHeight'];
25
+ children: ReactNode;
26
+ }
27
+ /**
28
+ * Wraps scrollable content with bidirectional gradient fades that auto-detect
29
+ * overflow state.
30
+ *
31
+ * **Horizontal** (`orientation="horizontal"`, default): `overflow-x` scroll,
32
+ * left fade once scrolled away from the start, right fade when more content
33
+ * exists past the right edge. Both hidden when content fits.
34
+ *
35
+ * **Vertical** (`orientation="vertical"`): `overflow-y` scroll; set `maxHeight`
36
+ * so the viewport clips. Top fade once scrolled down; bottom fade when more
37
+ * content exists below. Hidden when content fits.
38
+ *
39
+ * The scrollbar is hidden by design — the fade is the affordance.
40
+ */
41
+ export declare const OverflowFade: import("react").ForwardRefExoticComponent<OverflowFadeProps & import("react").RefAttributes<HTMLDivElement>>;
42
+ //# sourceMappingURL=OverflowFade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverflowFade.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/OverflowFade/OverflowFade.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtE,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;;OAIG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,EAAE,SAAS,CAAC;CACrB;AASD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,8GA2IxB,CAAC"}
@@ -0,0 +1,110 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box } from '@mantine/core';
3
+ import { forwardRef, useEffect, useRef, useState } from 'react';
4
+ const scrollbarHiddenSx = {
5
+ '&::-webkit-scrollbar': { display: 'none' },
6
+ msOverflowStyle: 'none',
7
+ scrollbarWidth: 'none',
8
+ WebkitOverflowScrolling: 'touch',
9
+ };
10
+ /**
11
+ * Wraps scrollable content with bidirectional gradient fades that auto-detect
12
+ * overflow state.
13
+ *
14
+ * **Horizontal** (`orientation="horizontal"`, default): `overflow-x` scroll,
15
+ * left fade once scrolled away from the start, right fade when more content
16
+ * exists past the right edge. Both hidden when content fits.
17
+ *
18
+ * **Vertical** (`orientation="vertical"`): `overflow-y` scroll; set `maxHeight`
19
+ * so the viewport clips. Top fade once scrolled down; bottom fade when more
20
+ * content exists below. Hidden when content fits.
21
+ *
22
+ * The scrollbar is hidden by design — the fade is the affordance.
23
+ */
24
+ export const OverflowFade = forwardRef(({ background = 'white', fadeWidth = 64, orientation = 'horizontal', maxHeight, children, style, ...props }, ref) => {
25
+ const scrollRef = useRef(null);
26
+ const [showLeft, setShowLeft] = useState(false);
27
+ const [showRight, setShowRight] = useState(false);
28
+ const [showTop, setShowTop] = useState(false);
29
+ const [showBottom, setShowBottom] = useState(false);
30
+ useEffect(() => {
31
+ const el = scrollRef.current;
32
+ if (!el)
33
+ return;
34
+ const update = () => {
35
+ if (orientation === 'vertical') {
36
+ const overflowing = el.scrollHeight > el.clientHeight;
37
+ setShowTop(overflowing && el.scrollTop > 0);
38
+ setShowBottom(overflowing && el.scrollTop + el.clientHeight < el.scrollHeight - 1);
39
+ }
40
+ else {
41
+ const overflowing = el.scrollWidth > el.clientWidth;
42
+ setShowLeft(overflowing && el.scrollLeft > 0);
43
+ setShowRight(overflowing && el.scrollLeft + el.clientWidth < el.scrollWidth - 1);
44
+ }
45
+ };
46
+ update();
47
+ el.addEventListener('scroll', update, { passive: true });
48
+ const ro = new ResizeObserver(update);
49
+ ro.observe(el);
50
+ const mo = new MutationObserver(update);
51
+ mo.observe(el, { characterData: true, childList: true, subtree: true });
52
+ return () => {
53
+ el.removeEventListener('scroll', update);
54
+ ro.disconnect();
55
+ mo.disconnect();
56
+ };
57
+ }, [orientation]);
58
+ const horizontalFadeBand = {
59
+ bottom: 0,
60
+ pointerEvents: 'none',
61
+ position: 'absolute',
62
+ top: 0,
63
+ transition: 'opacity 150ms ease',
64
+ width: `${fadeWidth}px`,
65
+ };
66
+ const verticalFadeBand = {
67
+ height: `${fadeWidth}px`,
68
+ left: 0,
69
+ pointerEvents: 'none',
70
+ position: 'absolute',
71
+ right: 0,
72
+ transition: 'opacity 150ms ease',
73
+ };
74
+ const scrollSx = orientation === 'vertical'
75
+ ? {
76
+ ...scrollbarHiddenSx,
77
+ maxHeight,
78
+ overflowX: 'hidden',
79
+ overflowY: 'auto',
80
+ width: '100%',
81
+ }
82
+ : {
83
+ ...scrollbarHiddenSx,
84
+ overflowX: 'auto',
85
+ overflowY: 'hidden',
86
+ width: '100%',
87
+ };
88
+ return (_jsxs("div", { ref: ref, style: { position: 'relative', width: '100%', ...style }, ...props, children: [_jsx(Box, { ref: scrollRef, sx: scrollSx, children: children }), orientation === 'horizontal' ? (_jsxs(_Fragment, { children: [_jsx("div", { "aria-hidden": true, style: {
89
+ ...horizontalFadeBand,
90
+ background: `linear-gradient(to right, ${background} 0%, ${background} 20%, transparent 100%)`,
91
+ left: 0,
92
+ opacity: showLeft ? 1 : 0,
93
+ } }), _jsx("div", { "aria-hidden": true, style: {
94
+ ...horizontalFadeBand,
95
+ background: `linear-gradient(to left, ${background} 0%, ${background} 20%, transparent 100%)`,
96
+ opacity: showRight ? 1 : 0,
97
+ right: 0,
98
+ } })] })) : (_jsxs(_Fragment, { children: [_jsx("div", { "aria-hidden": true, style: {
99
+ ...verticalFadeBand,
100
+ background: `linear-gradient(to bottom, ${background} 0%, ${background} 20%, transparent 100%)`,
101
+ opacity: showTop ? 1 : 0,
102
+ top: 0,
103
+ } }), _jsx("div", { "aria-hidden": true, style: {
104
+ ...verticalFadeBand,
105
+ background: `linear-gradient(to top, ${background} 0%, ${background} 20%, transparent 100%)`,
106
+ bottom: 0,
107
+ opacity: showBottom ? 1 : 0,
108
+ } })] }))] }));
109
+ });
110
+ OverflowFade.displayName = 'OverflowFade';
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { OverflowFade } from './OverflowFade';
3
+ declare const meta: Meta<typeof OverflowFade>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof OverflowFade>;
6
+ export declare const Default: Story;
7
+ export declare const NoOverflow: Story;
8
+ export declare const OnNonWhiteSurface: Story;
9
+ export declare const Vertical: Story;
10
+ export declare const WithBadges: Story;
11
+ //# sourceMappingURL=OverflowFade.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverflowFade.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Misc/OverflowFade/OverflowFade.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CA2BnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAiC3C,eAAO,MAAM,OAAO,EAAE,KAqBrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAyB/B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAsBtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA0CxB,CAAC"}