@fuf-stack/pixels 1.15.1 → 2.0.0-next.3

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 (354) hide show
  1. package/dist/Accordion/Accordion.d.mts +23 -545
  2. package/dist/Accordion/Accordion.d.mts.map +1 -1
  3. package/dist/Accordion/Accordion.mjs +77 -48
  4. package/dist/Accordion/Accordion.mjs.map +1 -1
  5. package/dist/Accordion/accordionVariants.d.mts +616 -0
  6. package/dist/Accordion/accordionVariants.d.mts.map +1 -0
  7. package/dist/Accordion/accordionVariants.mjs +52 -0
  8. package/dist/Accordion/accordionVariants.mjs.map +1 -0
  9. package/dist/Accordion/index.d.mts +2 -1
  10. package/dist/Accordion/index.mjs +2 -1
  11. package/dist/Accordion/index.mjs.map +1 -1
  12. package/dist/Accordion/subcomponents/AccordionItem.mjs +96 -0
  13. package/dist/Accordion/subcomponents/AccordionItem.mjs.map +1 -0
  14. package/dist/Accordion/subcomponents/AccordionPanel.mjs +51 -0
  15. package/dist/Accordion/subcomponents/AccordionPanel.mjs.map +1 -0
  16. package/dist/Alert/Alert.d.mts +12 -470
  17. package/dist/Alert/Alert.d.mts.map +1 -1
  18. package/dist/Alert/Alert.mjs +63 -73
  19. package/dist/Alert/Alert.mjs.map +1 -1
  20. package/dist/Alert/alertVariants.d.mts +468 -0
  21. package/dist/Alert/alertVariants.d.mts.map +1 -0
  22. package/dist/Alert/alertVariants.mjs +62 -0
  23. package/dist/Alert/alertVariants.mjs.map +1 -0
  24. package/dist/Alert/index.d.mts +2 -1
  25. package/dist/Alert/index.mjs +2 -1
  26. package/dist/Alert/index.mjs.map +1 -1
  27. package/dist/Alert/subcomponents/AlertCloseButton.mjs +42 -0
  28. package/dist/Alert/subcomponents/AlertCloseButton.mjs.map +1 -0
  29. package/dist/Alert/subcomponents/AlertIcon.mjs +57 -0
  30. package/dist/Alert/subcomponents/AlertIcon.mjs.map +1 -0
  31. package/dist/Avatar/Avatar.d.mts +12 -748
  32. package/dist/Avatar/Avatar.d.mts.map +1 -1
  33. package/dist/Avatar/Avatar.mjs +32 -25
  34. package/dist/Avatar/Avatar.mjs.map +1 -1
  35. package/dist/Avatar/avatarVariants.d.mts +444 -0
  36. package/dist/Avatar/avatarVariants.d.mts.map +1 -0
  37. package/dist/Avatar/avatarVariants.mjs +45 -0
  38. package/dist/Avatar/avatarVariants.mjs.map +1 -0
  39. package/dist/Avatar/index.d.mts +2 -1
  40. package/dist/Avatar/index.mjs +2 -1
  41. package/dist/Avatar/index.mjs.map +1 -1
  42. package/dist/Avatar/subcomponents/AvatarGroupContext.mjs +7 -0
  43. package/dist/Avatar/subcomponents/AvatarGroupContext.mjs.map +1 -0
  44. package/dist/Avatar/subcomponents/AvatarImage.mjs +40 -0
  45. package/dist/Avatar/subcomponents/AvatarImage.mjs.map +1 -0
  46. package/dist/Avatar/subcomponents/AvatarPlaceholder.mjs +28 -0
  47. package/dist/Avatar/subcomponents/AvatarPlaceholder.mjs.map +1 -0
  48. package/dist/AvatarGroup/AvatarGroup.d.mts +10 -4
  49. package/dist/AvatarGroup/AvatarGroup.d.mts.map +1 -1
  50. package/dist/AvatarGroup/AvatarGroup.mjs +35 -27
  51. package/dist/AvatarGroup/AvatarGroup.mjs.map +1 -1
  52. package/dist/AvatarGroup/avatarGroupVariants.d.mts +389 -0
  53. package/dist/AvatarGroup/avatarGroupVariants.d.mts.map +1 -0
  54. package/dist/AvatarGroup/avatarGroupVariants.mjs +16 -0
  55. package/dist/AvatarGroup/avatarGroupVariants.mjs.map +1 -0
  56. package/dist/AvatarGroup/index.d.mts +2 -1
  57. package/dist/AvatarGroup/index.mjs +2 -1
  58. package/dist/AvatarGroup/index.mjs.map +1 -1
  59. package/dist/AvatarGroup/subcomponents/AvatarGroupCount.mjs +31 -0
  60. package/dist/AvatarGroup/subcomponents/AvatarGroupCount.mjs.map +1 -0
  61. package/dist/Badge/Badge.d.mts +18 -404
  62. package/dist/Badge/Badge.d.mts.map +1 -1
  63. package/dist/Badge/Badge.mjs +27 -22
  64. package/dist/Badge/Badge.mjs.map +1 -1
  65. package/dist/Badge/badgeVariants.d.mts +350 -0
  66. package/dist/Badge/badgeVariants.d.mts.map +1 -0
  67. package/dist/Badge/badgeVariants.mjs +83 -0
  68. package/dist/Badge/badgeVariants.mjs.map +1 -0
  69. package/dist/Badge/index.d.mts +3 -2
  70. package/dist/Badge/index.mjs +4 -3
  71. package/dist/Badge/index.mjs.map +1 -1
  72. package/dist/Breadcrumb/Breadcrumb.d.mts +16 -889
  73. package/dist/Breadcrumb/Breadcrumb.d.mts.map +1 -1
  74. package/dist/Breadcrumb/Breadcrumb.mjs +51 -44
  75. package/dist/Breadcrumb/Breadcrumb.mjs.map +1 -1
  76. package/dist/Breadcrumb/breadcrumbVariants.d.mts +686 -0
  77. package/dist/Breadcrumb/breadcrumbVariants.d.mts.map +1 -0
  78. package/dist/Breadcrumb/breadcrumbVariants.mjs +158 -0
  79. package/dist/Breadcrumb/breadcrumbVariants.mjs.map +1 -0
  80. package/dist/Breadcrumb/index.d.mts +2 -1
  81. package/dist/Breadcrumb/index.mjs +2 -1
  82. package/dist/Breadcrumb/index.mjs.map +1 -1
  83. package/dist/Breadcrumb/subcomponents/BreadcrumbItem.mjs +90 -0
  84. package/dist/Breadcrumb/subcomponents/BreadcrumbItem.mjs.map +1 -0
  85. package/dist/Breadcrumb/subcomponents/BreadcrumbSeparator.mjs +26 -0
  86. package/dist/Breadcrumb/subcomponents/BreadcrumbSeparator.mjs.map +1 -0
  87. package/dist/Button/Button.d.mts +26 -29
  88. package/dist/Button/Button.d.mts.map +1 -1
  89. package/dist/Button/Button.mjs +62 -90
  90. package/dist/Button/Button.mjs.map +1 -1
  91. package/dist/Button/buttonVariants.d.mts +266 -0
  92. package/dist/Button/buttonVariants.d.mts.map +1 -0
  93. package/dist/Button/buttonVariants.mjs +417 -0
  94. package/dist/Button/buttonVariants.mjs.map +1 -0
  95. package/dist/Button/hooks/useButtonRipple.mjs +40 -0
  96. package/dist/Button/hooks/useButtonRipple.mjs.map +1 -0
  97. package/dist/Button/index.d.mts +2 -1
  98. package/dist/Button/index.mjs +2 -1
  99. package/dist/Button/index.mjs.map +1 -1
  100. package/dist/Button/subcomponents/ButtonRipple.mjs +37 -0
  101. package/dist/Button/subcomponents/ButtonRipple.mjs.map +1 -0
  102. package/dist/Button/subcomponents/LoadingSpinner.mjs +3 -5
  103. package/dist/Button/subcomponents/LoadingSpinner.mjs.map +1 -1
  104. package/dist/ButtonGroup/ButtonGroup.d.mts +30 -6
  105. package/dist/ButtonGroup/ButtonGroup.d.mts.map +1 -1
  106. package/dist/ButtonGroup/ButtonGroup.mjs +49 -6
  107. package/dist/ButtonGroup/ButtonGroup.mjs.map +1 -1
  108. package/dist/ButtonGroup/ButtonGroupContext.mjs +6 -0
  109. package/dist/ButtonGroup/ButtonGroupContext.mjs.map +1 -0
  110. package/dist/ButtonGroup/buttonGroupVariants.d.mts +106 -0
  111. package/dist/ButtonGroup/buttonGroupVariants.d.mts.map +1 -0
  112. package/dist/ButtonGroup/buttonGroupVariants.mjs +11 -0
  113. package/dist/ButtonGroup/buttonGroupVariants.mjs.map +1 -0
  114. package/dist/ButtonGroup/index.d.mts +2 -1
  115. package/dist/ButtonGroup/index.mjs +2 -1
  116. package/dist/ButtonGroup/index.mjs.map +1 -1
  117. package/dist/Card/Card.d.mts +7 -749
  118. package/dist/Card/Card.d.mts.map +1 -1
  119. package/dist/Card/Card.mjs +34 -32
  120. package/dist/Card/Card.mjs.map +1 -1
  121. package/dist/Card/cardVariants.d.mts +753 -0
  122. package/dist/Card/cardVariants.d.mts.map +1 -0
  123. package/dist/Card/cardVariants.mjs +23 -0
  124. package/dist/Card/cardVariants.mjs.map +1 -0
  125. package/dist/Card/index.d.mts +2 -1
  126. package/dist/Card/index.mjs +2 -1
  127. package/dist/Card/index.mjs.map +1 -1
  128. package/dist/Drawer/Drawer.d.mts +20 -1009
  129. package/dist/Drawer/Drawer.d.mts.map +1 -1
  130. package/dist/Drawer/Drawer.mjs +23 -67
  131. package/dist/Drawer/Drawer.mjs.map +1 -1
  132. package/dist/Drawer/drawerVariants.d.mts +638 -0
  133. package/dist/Drawer/drawerVariants.d.mts.map +1 -0
  134. package/dist/Drawer/drawerVariants.mjs +80 -0
  135. package/dist/Drawer/drawerVariants.mjs.map +1 -0
  136. package/dist/Drawer/index.d.mts +2 -1
  137. package/dist/Drawer/index.mjs +2 -1
  138. package/dist/Drawer/index.mjs.map +1 -1
  139. package/dist/Json/Json.mjs +3 -1
  140. package/dist/Json/Json.mjs.map +1 -1
  141. package/dist/Label/Label.d.mts +17 -447
  142. package/dist/Label/Label.d.mts.map +1 -1
  143. package/dist/Label/Label.mjs +40 -73
  144. package/dist/Label/Label.mjs.map +1 -1
  145. package/dist/Label/index.d.mts +2 -1
  146. package/dist/Label/index.mjs +2 -1
  147. package/dist/Label/index.mjs.map +1 -1
  148. package/dist/Label/labelVariants.d.mts +638 -0
  149. package/dist/Label/labelVariants.d.mts.map +1 -0
  150. package/dist/Label/labelVariants.mjs +317 -0
  151. package/dist/Label/labelVariants.mjs.map +1 -0
  152. package/dist/Label/subcomponents/LabelEndContent.mjs +35 -0
  153. package/dist/Label/subcomponents/LabelEndContent.mjs.map +1 -0
  154. package/dist/Menu/Menu.d.mts +46 -425
  155. package/dist/Menu/Menu.d.mts.map +1 -1
  156. package/dist/Menu/Menu.mjs +25 -86
  157. package/dist/Menu/Menu.mjs.map +1 -1
  158. package/dist/Menu/index.d.mts +2 -1
  159. package/dist/Menu/index.mjs +2 -1
  160. package/dist/Menu/index.mjs.map +1 -1
  161. package/dist/Menu/menuVariants.d.mts +1358 -0
  162. package/dist/Menu/menuVariants.d.mts.map +1 -0
  163. package/dist/Menu/menuVariants.mjs +33 -0
  164. package/dist/Menu/menuVariants.mjs.map +1 -0
  165. package/dist/Menu/subcomponents/MenuOption.mjs +48 -0
  166. package/dist/Menu/subcomponents/MenuOption.mjs.map +1 -0
  167. package/dist/Menu/subcomponents/MenuOptions.mjs +42 -0
  168. package/dist/Menu/subcomponents/MenuOptions.mjs.map +1 -0
  169. package/dist/Menu/subcomponents/MenuOverlay.mjs +20 -0
  170. package/dist/Menu/subcomponents/MenuOverlay.mjs.map +1 -0
  171. package/dist/Menu/subcomponents/MenuSurface.mjs +92 -0
  172. package/dist/Menu/subcomponents/MenuSurface.mjs.map +1 -0
  173. package/dist/Menu/subcomponents/MenuTriggerButton.mjs +59 -0
  174. package/dist/Menu/subcomponents/MenuTriggerButton.mjs.map +1 -0
  175. package/dist/Modal/Modal.d.mts +15 -375
  176. package/dist/Modal/Modal.d.mts.map +1 -1
  177. package/dist/Modal/Modal.mjs +19 -47
  178. package/dist/Modal/Modal.mjs.map +1 -1
  179. package/dist/Modal/ModalHost.mjs +2 -2
  180. package/dist/Modal/ModalHost.mjs.map +1 -1
  181. package/dist/Modal/hooks/useModalViewportHeight.mjs +29 -0
  182. package/dist/Modal/hooks/useModalViewportHeight.mjs.map +1 -0
  183. package/dist/Modal/index.d.mts +2 -1
  184. package/dist/Modal/index.mjs +2 -1
  185. package/dist/Modal/index.mjs.map +1 -1
  186. package/dist/Modal/modalStore.mjs.map +1 -1
  187. package/dist/Modal/modalVariants.d.mts +371 -0
  188. package/dist/Modal/modalVariants.d.mts.map +1 -0
  189. package/dist/Modal/modalVariants.mjs +41 -0
  190. package/dist/Modal/modalVariants.mjs.map +1 -0
  191. package/dist/Modal/subcomponents/ModalCloseButton.mjs +46 -0
  192. package/dist/Modal/subcomponents/ModalCloseButton.mjs.map +1 -0
  193. package/dist/Modal/subcomponents/ModalOverlay.mjs +28 -0
  194. package/dist/Modal/subcomponents/ModalOverlay.mjs.map +1 -0
  195. package/dist/Modal/subcomponents/ModalSections.mjs +27 -0
  196. package/dist/Modal/subcomponents/ModalSections.mjs.map +1 -0
  197. package/dist/Modal/subcomponents/ModalSurface.mjs +101 -0
  198. package/dist/Modal/subcomponents/ModalSurface.mjs.map +1 -0
  199. package/dist/Popover/Popover.d.mts +23 -1119
  200. package/dist/Popover/Popover.d.mts.map +1 -1
  201. package/dist/Popover/Popover.mjs +27 -63
  202. package/dist/Popover/Popover.mjs.map +1 -1
  203. package/dist/Popover/index.d.mts +2 -1
  204. package/dist/Popover/index.mjs +2 -1
  205. package/dist/Popover/index.mjs.map +1 -1
  206. package/dist/Popover/popoverVariants.d.mts +1358 -0
  207. package/dist/Popover/popoverVariants.d.mts.map +1 -0
  208. package/dist/Popover/popoverVariants.mjs +75 -0
  209. package/dist/Popover/popoverVariants.mjs.map +1 -0
  210. package/dist/Popover/subcomponents/PopoverContent.mjs +59 -0
  211. package/dist/Popover/subcomponents/PopoverContent.mjs.map +1 -0
  212. package/dist/Popover/subcomponents/PopoverOverlay.mjs +105 -0
  213. package/dist/Popover/subcomponents/PopoverOverlay.mjs.map +1 -0
  214. package/dist/Popover/subcomponents/PopoverTrigger.mjs +46 -0
  215. package/dist/Popover/subcomponents/PopoverTrigger.mjs.map +1 -0
  216. package/dist/Progress/Progress.d.mts +15 -349
  217. package/dist/Progress/Progress.d.mts.map +1 -1
  218. package/dist/Progress/Progress.mjs +52 -40
  219. package/dist/Progress/Progress.mjs.map +1 -1
  220. package/dist/Progress/index.d.mts +2 -1
  221. package/dist/Progress/index.mjs +2 -1
  222. package/dist/Progress/index.mjs.map +1 -1
  223. package/dist/Progress/progressVariants.d.mts +480 -0
  224. package/dist/Progress/progressVariants.d.mts.map +1 -0
  225. package/dist/Progress/progressVariants.mjs +56 -0
  226. package/dist/Progress/progressVariants.mjs.map +1 -0
  227. package/dist/Progress/subcomponents/ProgressIndicator.mjs +31 -0
  228. package/dist/Progress/subcomponents/ProgressIndicator.mjs.map +1 -0
  229. package/dist/ProgressCircular/ProgressCircular.d.mts +16 -532
  230. package/dist/ProgressCircular/ProgressCircular.d.mts.map +1 -1
  231. package/dist/ProgressCircular/ProgressCircular.mjs +46 -81
  232. package/dist/ProgressCircular/ProgressCircular.mjs.map +1 -1
  233. package/dist/ProgressCircular/index.d.mts +2 -1
  234. package/dist/ProgressCircular/index.mjs +2 -1
  235. package/dist/ProgressCircular/index.mjs.map +1 -1
  236. package/dist/ProgressCircular/progressCircularVariants.d.mts +624 -0
  237. package/dist/ProgressCircular/progressCircularVariants.d.mts.map +1 -0
  238. package/dist/ProgressCircular/progressCircularVariants.mjs +72 -0
  239. package/dist/ProgressCircular/progressCircularVariants.mjs.map +1 -0
  240. package/dist/ProgressCircular/subcomponents/ProgressCircularRing.mjs +52 -0
  241. package/dist/ProgressCircular/subcomponents/ProgressCircularRing.mjs.map +1 -0
  242. package/dist/ScrollShadow/ScrollShadow.d.mts +9 -11
  243. package/dist/ScrollShadow/ScrollShadow.d.mts.map +1 -1
  244. package/dist/ScrollShadow/ScrollShadow.mjs +32 -16
  245. package/dist/ScrollShadow/ScrollShadow.mjs.map +1 -1
  246. package/dist/ScrollShadow/hooks/useScrollShadow.mjs +84 -0
  247. package/dist/ScrollShadow/hooks/useScrollShadow.mjs.map +1 -0
  248. package/dist/ScrollShadow/index.d.mts +3 -2
  249. package/dist/ScrollShadow/index.mjs +4 -3
  250. package/dist/ScrollShadow/index.mjs.map +1 -1
  251. package/dist/ScrollShadow/scrollShadowVariants.d.mts +103 -0
  252. package/dist/ScrollShadow/scrollShadowVariants.d.mts.map +1 -0
  253. package/dist/ScrollShadow/scrollShadowVariants.mjs +29 -0
  254. package/dist/ScrollShadow/scrollShadowVariants.mjs.map +1 -0
  255. package/dist/SearchInput/SearchInput.d.mts +13 -644
  256. package/dist/SearchInput/SearchInput.d.mts.map +1 -1
  257. package/dist/SearchInput/SearchInput.mjs +13 -44
  258. package/dist/SearchInput/SearchInput.mjs.map +1 -1
  259. package/dist/SearchInput/index.d.mts +2 -1
  260. package/dist/SearchInput/index.mjs +2 -1
  261. package/dist/SearchInput/index.mjs.map +1 -1
  262. package/dist/SearchInput/searchInputVariants.d.mts +402 -0
  263. package/dist/SearchInput/searchInputVariants.d.mts.map +1 -0
  264. package/dist/SearchInput/searchInputVariants.mjs +56 -0
  265. package/dist/SearchInput/searchInputVariants.mjs.map +1 -0
  266. package/dist/SearchInput/subcomponents/SearchInputClearButton.mjs +40 -0
  267. package/dist/SearchInput/subcomponents/SearchInputClearButton.mjs.map +1 -0
  268. package/dist/SearchInput/subcomponents/SearchInputControl.mjs +97 -0
  269. package/dist/SearchInput/subcomponents/SearchInputControl.mjs.map +1 -0
  270. package/dist/StylingProvider/StylingProvider.d.mts +10 -0
  271. package/dist/StylingProvider/StylingProvider.d.mts.map +1 -0
  272. package/dist/StylingProvider/StylingProvider.mjs +18 -0
  273. package/dist/StylingProvider/StylingProvider.mjs.map +1 -0
  274. package/dist/StylingProvider/index.d.mts +2 -0
  275. package/dist/StylingProvider/index.mjs +1 -0
  276. package/dist/Table/Table.d.mts +22 -546
  277. package/dist/Table/Table.d.mts.map +1 -1
  278. package/dist/Table/Table.mjs +32 -66
  279. package/dist/Table/Table.mjs.map +1 -1
  280. package/dist/Table/hooks/useTableVirtualizer.mjs +156 -0
  281. package/dist/Table/hooks/useTableVirtualizer.mjs.map +1 -0
  282. package/dist/Table/index.d.mts +2 -1
  283. package/dist/Table/index.mjs +2 -1
  284. package/dist/Table/index.mjs.map +1 -1
  285. package/dist/Table/subcomponents/TableBodyRow.mjs +39 -0
  286. package/dist/Table/subcomponents/TableBodyRow.mjs.map +1 -0
  287. package/dist/Table/subcomponents/TableCell.mjs +27 -0
  288. package/dist/Table/subcomponents/TableCell.mjs.map +1 -0
  289. package/dist/Table/subcomponents/TableGrid.mjs +147 -0
  290. package/dist/Table/subcomponents/TableGrid.mjs.map +1 -0
  291. package/dist/Table/subcomponents/TableHeaderCell.mjs +29 -0
  292. package/dist/Table/subcomponents/TableHeaderCell.mjs.map +1 -0
  293. package/dist/Table/subcomponents/TableHeaderRow.mjs +33 -0
  294. package/dist/Table/subcomponents/TableHeaderRow.mjs.map +1 -0
  295. package/dist/Table/tableVariants.d.mts +660 -0
  296. package/dist/Table/tableVariants.d.mts.map +1 -0
  297. package/dist/Table/tableVariants.mjs +55 -0
  298. package/dist/Table/tableVariants.mjs.map +1 -0
  299. package/dist/Tabs/Tabs.d.mts +4 -984
  300. package/dist/Tabs/Tabs.d.mts.map +1 -1
  301. package/dist/Tabs/Tabs.mjs +57 -36
  302. package/dist/Tabs/Tabs.mjs.map +1 -1
  303. package/dist/Tabs/index.d.mts +2 -1
  304. package/dist/Tabs/index.mjs +2 -1
  305. package/dist/Tabs/index.mjs.map +1 -1
  306. package/dist/Tabs/subcomponents/TabsItem.mjs +29 -0
  307. package/dist/Tabs/subcomponents/TabsItem.mjs.map +1 -0
  308. package/dist/Tabs/tabsVariants.d.mts +651 -0
  309. package/dist/Tabs/tabsVariants.d.mts.map +1 -0
  310. package/dist/Tabs/tabsVariants.mjs +163 -0
  311. package/dist/Tabs/tabsVariants.mjs.map +1 -0
  312. package/dist/Toast/Toaster.mjs +2 -1
  313. package/dist/Toast/Toaster.mjs.map +1 -1
  314. package/dist/Tooltip/Tooltip.d.mts +18 -486
  315. package/dist/Tooltip/Tooltip.d.mts.map +1 -1
  316. package/dist/Tooltip/Tooltip.mjs +21 -92
  317. package/dist/Tooltip/Tooltip.mjs.map +1 -1
  318. package/dist/Tooltip/index.d.mts +2 -1
  319. package/dist/Tooltip/index.mjs +2 -1
  320. package/dist/Tooltip/index.mjs.map +1 -1
  321. package/dist/Tooltip/subcomponents/TooltipContent.mjs +33 -0
  322. package/dist/Tooltip/subcomponents/TooltipContent.mjs.map +1 -0
  323. package/dist/Tooltip/subcomponents/TooltipOverlay.mjs +16 -0
  324. package/dist/Tooltip/subcomponents/TooltipOverlay.mjs.map +1 -0
  325. package/dist/Tooltip/subcomponents/TooltipSurface.mjs +94 -0
  326. package/dist/Tooltip/subcomponents/TooltipSurface.mjs.map +1 -0
  327. package/dist/Tooltip/subcomponents/TooltipTextTrigger.mjs +23 -0
  328. package/dist/Tooltip/subcomponents/TooltipTextTrigger.mjs.map +1 -0
  329. package/dist/Tooltip/subcomponents/TooltipTriggerElement.mjs +23 -0
  330. package/dist/Tooltip/subcomponents/TooltipTriggerElement.mjs.map +1 -0
  331. package/dist/Tooltip/tooltipVariants.d.mts +1772 -0
  332. package/dist/Tooltip/tooltipVariants.d.mts.map +1 -0
  333. package/dist/Tooltip/tooltipVariants.mjs +54 -0
  334. package/dist/Tooltip/tooltipVariants.mjs.map +1 -0
  335. package/dist/hooks/useDebounce/useDebounce.mjs +1 -1
  336. package/dist/index.d.mts +40 -19
  337. package/dist/index.mjs +34 -14
  338. package/dist/index.mjs.map +1 -1
  339. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/Container.mjs +1 -1
  340. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs +1 -1
  341. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/comps/Copied.mjs +1 -1
  342. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs +2 -2
  343. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs.map +1 -1
  344. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/index.mjs +1 -1
  345. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/Expands.mjs +1 -1
  346. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/Section.mjs +1 -1
  347. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/ShowTools.mjs +1 -1
  348. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/Symbols.mjs +1 -1
  349. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/Types.mjs +1 -1
  350. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store.mjs +1 -1
  351. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/types/index.mjs +12 -12
  352. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/types/index.mjs.map +1 -1
  353. package/dist/utils/createWithSuspense/createWithSuspense.mjs +1 -1
  354. package/package.json +14 -29
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progressCircularVariants.d.mts","names":[],"sources":["../../src/ProgressCircular/progressCircularVariants.ts"],"mappings":";;qBAKa,4BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqDzB,eAAe,eAAe;YAE9B,YAAY,mBAAmB"}
@@ -0,0 +1,72 @@
1
+ import { tv } from "@fuf-stack/pixel-utils";
2
+ // src/ProgressCircular/progressCircularVariants.ts
3
+ /** Circular progress track, value and completion or error feedback */
4
+ const progressCircularVariants = tv({
5
+ slots: {
6
+ /** Container centering the progress ring */
7
+ base: "flex max-w-fit flex-col items-center justify-center gap-1",
8
+ /** Filled arc showing completed progress */
9
+ indicator: ["h-full stroke-current", "transition-all !duration-500 motion-reduce:transition-none"],
10
+ /** Reserved supporting label slot */
11
+ label: "text-small",
12
+ /** Completion or error symbol inside the ring */
13
+ statusIcon: "",
14
+ /** Drawing surface for the progress ring */
15
+ svg: "relative z-0 overflow-hidden",
16
+ /** Container positioning the value inside the ring */
17
+ svgWrapper: "relative block",
18
+ /** Unfilled arc behind the progress indicator */
19
+ track: "h-full stroke-default-300",
20
+ /** Formatted value centered inside the ring */
21
+ value: "absolute inset-0 flex items-center justify-center font-normal"
22
+ },
23
+ variants: {
24
+ color: {
25
+ info: { svg: "text-info" },
26
+ default: { svg: "text-default-400" },
27
+ primary: { svg: "text-primary" },
28
+ secondary: { svg: "text-secondary" },
29
+ success: { svg: "text-success" },
30
+ warning: { svg: "text-warning" },
31
+ danger: { svg: "text-danger" }
32
+ },
33
+ disableAnimation: { true: { indicator: "!transition-none" } },
34
+ hasError: { true: {
35
+ statusIcon: "text-danger",
36
+ svg: "text-danger"
37
+ } },
38
+ isFinished: { true: {
39
+ statusIcon: "text-success",
40
+ svg: "text-success"
41
+ } },
42
+ size: {
43
+ xs: {
44
+ svg: "h-10 w-10",
45
+ value: "text-[0.6rem]"
46
+ },
47
+ sm: {
48
+ svg: "h-12 w-12",
49
+ value: "text-xs"
50
+ },
51
+ md: {
52
+ svg: "h-16 w-16",
53
+ value: "text-md"
54
+ },
55
+ lg: {
56
+ svg: "h-20 w-20",
57
+ value: "text-lg"
58
+ },
59
+ xl: {
60
+ svg: "h-24 w-24",
61
+ value: "text-xl"
62
+ }
63
+ }
64
+ },
65
+ defaultVariants: {
66
+ color: "info",
67
+ size: "md"
68
+ }
69
+ });
70
+ export { progressCircularVariants as default, progressCircularVariants };
71
+
72
+ //# sourceMappingURL=progressCircularVariants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progressCircularVariants.mjs","names":[],"sources":["../../src/ProgressCircular/progressCircularVariants.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\n/** Circular progress track, value and completion or error feedback */\nexport const progressCircularVariants = tv({\n slots: {\n /** Container centering the progress ring */\n base: 'flex max-w-fit flex-col items-center justify-center gap-1',\n /** Filled arc showing completed progress */\n indicator: [\n 'h-full stroke-current',\n // animate updates while respecting reduced motion\n 'transition-all !duration-500 motion-reduce:transition-none',\n ],\n /** Reserved supporting label slot */\n label: 'text-small',\n /** Completion or error symbol inside the ring */\n statusIcon: '',\n /** Drawing surface for the progress ring */\n svg: 'relative z-0 overflow-hidden',\n /** Container positioning the value inside the ring */\n svgWrapper: 'relative block',\n /** Unfilled arc behind the progress indicator */\n track: 'h-full stroke-default-300',\n /** Formatted value centered inside the ring */\n value: 'absolute inset-0 flex items-center justify-center font-normal',\n },\n variants: {\n color: {\n info: { svg: 'text-info' },\n default: { svg: 'text-default-400' },\n primary: { svg: 'text-primary' },\n secondary: { svg: 'text-secondary' },\n success: { svg: 'text-success' },\n warning: { svg: 'text-warning' },\n danger: { svg: 'text-danger' },\n },\n disableAnimation: {\n true: { indicator: '!transition-none' },\n },\n hasError: {\n true: { statusIcon: 'text-danger', svg: 'text-danger' },\n },\n isFinished: {\n true: { statusIcon: 'text-success', svg: 'text-success' },\n },\n size: {\n xs: { svg: 'h-10 w-10', value: 'text-[0.6rem]' },\n sm: { svg: 'h-12 w-12', value: 'text-xs' },\n md: { svg: 'h-16 w-16', value: 'text-md' },\n lg: { svg: 'h-20 w-20', value: 'text-lg' },\n xl: { svg: 'h-24 w-24', value: 'text-xl' },\n },\n },\n defaultVariants: { color: 'info', size: 'md' },\n});\n\nexport type VariantProps = TVProps<typeof progressCircularVariants>;\n\nexport type ClassName = TVClassName<typeof progressCircularVariants>;\n\nexport type ProgressCircularClassNames = Record<\n keyof typeof progressCircularVariants.slots,\n string\n>;\n\nexport default progressCircularVariants;\n"],"mappings":";;;AAKA,MAAa,2BAA2B,GAAG;CACzC,OAAO;;EAEL,MAAM;;EAEN,WAAW,CACT,yBAEA,4DACF;;EAEA,OAAO;;EAEP,YAAY;;EAEZ,KAAK;;EAEL,YAAY;;EAEZ,OAAO;;EAEP,OAAO;CACT;CACA,UAAU;EACR,OAAO;GACL,MAAM,EAAE,KAAK,YAAY;GACzB,SAAS,EAAE,KAAK,mBAAmB;GACnC,SAAS,EAAE,KAAK,eAAe;GAC/B,WAAW,EAAE,KAAK,iBAAiB;GACnC,SAAS,EAAE,KAAK,eAAe;GAC/B,SAAS,EAAE,KAAK,eAAe;GAC/B,QAAQ,EAAE,KAAK,cAAc;EAC/B;EACA,kBAAkB,EAChB,MAAM,EAAE,WAAW,mBAAmB,EACxC;EACA,UAAU,EACR,MAAM;GAAE,YAAY;GAAe,KAAK;EAAc,EACxD;EACA,YAAY,EACV,MAAM;GAAE,YAAY;GAAgB,KAAK;EAAe,EAC1D;EACA,MAAM;GACJ,IAAI;IAAE,KAAK;IAAa,OAAO;GAAgB;GAC/C,IAAI;IAAE,KAAK;IAAa,OAAO;GAAU;GACzC,IAAI;IAAE,KAAK;IAAa,OAAO;GAAU;GACzC,IAAI;IAAE,KAAK;IAAa,OAAO;GAAU;GACzC,IAAI;IAAE,KAAK;IAAa,OAAO;GAAU;EAC3C;CACF;CACA,iBAAiB;EAAE,OAAO;EAAQ,MAAM;CAAK;AAC/C,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ // src/ProgressCircular/subcomponents/ProgressCircularRing.tsx
3
+ /** SVG track and progress arc sharing the same radius and stroke width */
4
+ const ProgressCircularRing = ({ className: classNames, percentage, size = "md", strokeWidth: customStrokeWidth = void 0 }) => {
5
+ let strokeWidth = customStrokeWidth;
6
+ if (!strokeWidth) switch (size) {
7
+ case "xs":
8
+ strokeWidth = 2;
9
+ break;
10
+ case "sm":
11
+ strokeWidth = 1.8;
12
+ break;
13
+ default: strokeWidth = 1.6;
14
+ }
15
+ const radius = 16 - strokeWidth;
16
+ const circumference = 2 * radius * Math.PI;
17
+ const offset = circumference - percentage / 100 * circumference;
18
+ return /* @__PURE__ */ jsxs("svg", {
19
+ "aria-hidden": "true",
20
+ className: classNames.svg,
21
+ "data-slot": "svg",
22
+ fill: "none",
23
+ strokeWidth,
24
+ viewBox: "0 0 32 32",
25
+ children: [/* @__PURE__ */ jsx("circle", {
26
+ className: classNames.track,
27
+ cx: 16,
28
+ cy: 16,
29
+ "data-slot": "track",
30
+ r: radius,
31
+ role: "presentation",
32
+ strokeDasharray: `${circumference} ${circumference}`,
33
+ strokeDashoffset: 0,
34
+ strokeLinecap: "round",
35
+ transform: "rotate(-90 16 16)"
36
+ }), /* @__PURE__ */ jsx("circle", {
37
+ className: classNames.indicator,
38
+ cx: 16,
39
+ cy: 16,
40
+ "data-slot": "indicator",
41
+ r: radius,
42
+ role: "presentation",
43
+ strokeDasharray: `${circumference} ${circumference}`,
44
+ strokeDashoffset: offset,
45
+ strokeLinecap: "round",
46
+ transform: "rotate(-90 16 16)"
47
+ })]
48
+ });
49
+ };
50
+ export { ProgressCircularRing as default };
51
+
52
+ //# sourceMappingURL=ProgressCircularRing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressCircularRing.mjs","names":[],"sources":["../../../src/ProgressCircular/subcomponents/ProgressCircularRing.tsx"],"sourcesContent":["import type { ProgressCircularProps } from '../ProgressCircular';\nimport type { ProgressCircularClassNames } from '../progressCircularVariants';\n\ninterface ProgressCircularRingProps extends Pick<\n ProgressCircularProps,\n 'size' | 'strokeWidth'\n> {\n /** CSS class name */\n className: ProgressCircularClassNames;\n /** Filled percentage within the range from zero to one hundred */\n percentage: number;\n}\n\n/** SVG track and progress arc sharing the same radius and stroke width */\nconst ProgressCircularRing = ({\n className: classNames,\n percentage,\n size = 'md',\n strokeWidth: customStrokeWidth = undefined,\n}: ProgressCircularRingProps) => {\n // smaller rings need a proportionally heavier stroke\n let strokeWidth = customStrokeWidth;\n if (!strokeWidth) {\n switch (size) {\n case 'xs':\n strokeWidth = 2;\n break;\n case 'sm':\n strokeWidth = 1.8;\n break;\n default:\n strokeWidth = 1.6;\n }\n }\n\n const radius = 16 - strokeWidth;\n const circumference = 2 * radius * Math.PI;\n const offset = circumference - (percentage / 100) * circumference;\n\n return (\n <svg\n aria-hidden=\"true\"\n className={classNames.svg}\n data-slot=\"svg\"\n fill=\"none\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 32 32\"\n >\n {/* unfilled track */}\n <circle\n className={classNames.track}\n cx={16}\n cy={16}\n data-slot=\"track\"\n r={radius}\n role=\"presentation\"\n strokeDasharray={`${circumference} ${circumference}`}\n strokeDashoffset={0}\n strokeLinecap=\"round\"\n transform=\"rotate(-90 16 16)\"\n />\n\n {/* completed arc */}\n <circle\n className={classNames.indicator}\n cx={16}\n cy={16}\n data-slot=\"indicator\"\n r={radius}\n role=\"presentation\"\n strokeDasharray={`${circumference} ${circumference}`}\n strokeDashoffset={offset}\n strokeLinecap=\"round\"\n transform=\"rotate(-90 16 16)\"\n />\n </svg>\n );\n};\n\nexport default ProgressCircularRing;\n"],"mappings":";;;AAcA,MAAM,wBAAwB,EAC5B,WAAW,YACX,YACA,OAAO,MACP,aAAa,oBAAoB,KAAA,QACF;CAE/B,IAAI,cAAc;CAClB,IAAI,CAAC,aACH,QAAQ,MAAR;EACE,KAAK;GACH,cAAc;GACd;EACF,KAAK;GACH,cAAc;GACd;EACF,SACE,cAAc;CAClB;CAGF,MAAM,SAAS,KAAK;CACpB,MAAM,gBAAgB,IAAI,SAAS,KAAK;CACxC,MAAM,SAAS,gBAAiB,aAAa,MAAO;CAEpD,OACE,qBAAC,OAAD;EACE,eAAY;EACZ,WAAW,WAAW;EACtB,aAAU;EACV,MAAK;EACQ;EACb,SAAQ;EANV,UAAA,CASE,oBAAC,UAAD;GACE,WAAW,WAAW;GACtB,IAAI;GACJ,IAAI;GACJ,aAAU;GACV,GAAG;GACH,MAAK;GACL,iBAAiB,GAAG,cAAc,GAAG;GACrC,kBAAkB;GAClB,eAAc;GACd,WAAU;EACX,CAAA,GAGD,oBAAC,UAAD;GACE,WAAW,WAAW;GACtB,IAAI;GACJ,IAAI;GACJ,aAAU;GACV,GAAG;GACH,MAAK;GACL,iBAAiB,GAAG,cAAc,GAAG;GACrC,kBAAkB;GAClB,eAAc;GACd,WAAU;EACX,CAAA,CACE;;AAET"}
@@ -1,28 +1,26 @@
1
1
  import { CSSProperties, ReactNode } from "react";
2
2
  type ScrollShadowVisibility = 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'both' | 'none';
3
3
  export interface ScrollShadowProps {
4
- /** child components */
4
+ /** Scrollable content */
5
5
  children?: ReactNode;
6
6
  /** CSS class name */
7
7
  className?: string | string[];
8
- /** Slot name for styling/debugging hooks */
8
+ /** Slot name for styling and debugging */
9
9
  dataSlot?: string;
10
10
  /** Hides the scrollbar */
11
11
  hideScrollBar?: boolean;
12
- /** Orientation of the scroll shadow */
12
+ /** Direction of scrolling and edge shadows */
13
13
  orientation?: 'horizontal' | 'vertical';
14
14
  /** Shadow size in pixels */
15
15
  size?: number;
16
- /** Inline style overrides for the root scroll container. */
16
+ /** Inline styles for the scroll container */
17
17
  style?: CSSProperties;
18
- /** HTML data-testid attribute used in e2e tests */
18
+ /** HTML data-testid attribute for e2e tests */
19
19
  testId?: string;
20
- /** Visibility mode for scroll shadows */
20
+ /** Visible edges, auto follows the current scroll position */
21
21
  visibility?: ScrollShadowVisibility;
22
22
  }
23
- /**
24
- * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)
25
- */
26
- declare const _default: import("react").ForwardRefExoticComponent<ScrollShadowProps & import("react").RefAttributes<HTMLDivElement>>;
27
- export { _default as default };
23
+ /** Scrollable content with fading edges that indicate more content */
24
+ declare const ScrollShadow: import("react").ForwardRefExoticComponent<ScrollShadowProps & import("react").RefAttributes<HTMLDivElement>>;
25
+ export { ScrollShadow as default };
28
26
  //# sourceMappingURL=ScrollShadow.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollShadow.d.mts","names":[],"sources":["../../src/ScrollShadow/ScrollShadow.tsx"],"mappings":";KAUK;iBASY;;EAEf,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,QAAQ;;EAER;;EAEA,aAAa"}
1
+ {"version":3,"file":"ScrollShadow.d.mts","names":[],"sources":["../../src/ScrollShadow/ScrollShadow.tsx"],"mappings":";KAWK;iBAGY;;EAEf,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,QAAQ;;EAER;;EAEA,aAAa;;;cAIT,8BAAY,0BAAA,oCAAA,cAAA"}
@@ -1,25 +1,41 @@
1
- import { cn } from "@fuf-stack/pixel-utils";
2
- import { jsx } from "react/jsx-runtime";
1
+ import { useStyling } from "../StylingProvider/StylingProvider.mjs";
2
+ import useScrollShadow from "./hooks/useScrollShadow.mjs";
3
+ import scrollShadowVariants from "./scrollShadowVariants.mjs";
3
4
  import { forwardRef } from "react";
4
- import { ScrollShadow } from "@heroui/scroll-shadow";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { useObjectRef } from "react-aria";
5
7
  // src/ScrollShadow/ScrollShadow.tsx
6
- /**
7
- * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)
8
- */
9
- var ScrollShadow_default = forwardRef(({ children = null, dataSlot = void 0, className = void 0, hideScrollBar = false, orientation = "vertical", size = 40, style = void 0, testId = void 0, visibility = "auto" }, ref) => {
10
- return /* @__PURE__ */ jsx(ScrollShadow, {
11
- ref,
12
- className: cn(className),
8
+ /** Scrollable content with fading edges that indicate more content */
9
+ const ScrollShadow = forwardRef(({ children = null, className = void 0, dataSlot = void 0, hideScrollBar = false, orientation = "vertical", size = 40, style = void 0, testId = void 0, visibility = "auto" }, ref) => {
10
+ const styling = useStyling();
11
+ const controlRef = useObjectRef(ref);
12
+ useScrollShadow({
13
+ children,
14
+ orientation,
15
+ ref: controlRef,
16
+ visibility
17
+ });
18
+ const variants = styling.resolve(scrollShadowVariants, {
19
+ className,
20
+ hideScrollBar,
21
+ orientation
22
+ });
23
+ const shadowStyle = {
24
+ "--scroll-shadow-size": `${size}px`,
25
+ ...style
26
+ };
27
+ return /* @__PURE__ */ jsx("div", {
28
+ ref: controlRef,
29
+ className: variants,
30
+ "data-component": "scroll-shadow",
31
+ "data-orientation": orientation,
13
32
  "data-slot": dataSlot,
14
33
  "data-testid": testId,
15
- hideScrollBar,
16
- orientation,
17
- size,
18
- style,
19
- visibility,
34
+ style: shadowStyle,
20
35
  children
21
36
  });
22
37
  });
23
- export { ScrollShadow_default as default };
38
+ ScrollShadow.displayName = "ScrollShadow";
39
+ export { ScrollShadow as default };
24
40
 
25
41
  //# sourceMappingURL=ScrollShadow.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollShadow.mjs","names":["HeroScrollShadow"],"sources":["../../src/ScrollShadow/ScrollShadow.tsx"],"sourcesContent":["/* eslint-disable react/require-default-props */\n\nimport type { CSSProperties, ReactNode } from 'react';\n\nimport { forwardRef } from 'react';\n\nimport { ScrollShadow as HeroScrollShadow } from '@heroui/scroll-shadow';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\ntype ScrollShadowVisibility =\n | 'auto'\n | 'top'\n | 'bottom'\n | 'left'\n | 'right'\n | 'both'\n | 'none';\n\nexport interface ScrollShadowProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** Slot name for styling/debugging hooks */\n dataSlot?: string;\n /** Hides the scrollbar */\n hideScrollBar?: boolean;\n /** Orientation of the scroll shadow */\n orientation?: 'horizontal' | 'vertical';\n /** Shadow size in pixels */\n size?: number;\n /** Inline style overrides for the root scroll container. */\n style?: CSSProperties;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Visibility mode for scroll shadows */\n visibility?: ScrollShadowVisibility;\n}\n\n/**\n * Scroll Shadow component based on [HeroUI Scroll Shadow](https://www.heroui.com//docs/components/scroll-shadow)\n */\nexport default forwardRef<HTMLDivElement, ScrollShadowProps>(\n (\n {\n children = null,\n dataSlot = undefined,\n className = undefined,\n hideScrollBar = false,\n orientation = 'vertical',\n size = 40,\n style = undefined,\n testId = undefined,\n visibility = 'auto',\n },\n ref,\n ) => {\n return (\n <HeroScrollShadow\n ref={ref}\n className={cn(className)}\n data-slot={dataSlot}\n data-testid={testId}\n hideScrollBar={hideScrollBar}\n orientation={orientation}\n size={size}\n style={style}\n visibility={visibility}\n >\n {children}\n </HeroScrollShadow>\n );\n },\n);\n"],"mappings":";;;;;;;;AA2CA,IAAA,uBAAe,YAEX,EACE,WAAW,MACX,WAAW,KAAA,GACX,YAAY,KAAA,GACZ,gBAAgB,OAChB,cAAc,YACd,OAAO,IACP,QAAQ,KAAA,GACR,SAAS,KAAA,GACT,aAAa,UAEf,QACG;CACH,OACE,oBAACA,cAAD;EACO;EACL,WAAW,GAAG,SAAS;EACvB,aAAW;EACX,eAAa;EACE;EACF;EACP;EACC;EACK;EAEX;CACe,CAAA;AAEtB,CACF"}
1
+ {"version":3,"file":"ScrollShadow.mjs","names":[],"sources":["../../src/ScrollShadow/ScrollShadow.tsx"],"sourcesContent":["/* eslint-disable react/require-default-props */\n\nimport type { CSSProperties, ReactNode } from 'react';\n\nimport { forwardRef } from 'react';\nimport { useObjectRef } from 'react-aria';\n\nimport { useStyling } from '../StylingProvider';\nimport useScrollShadow from './hooks/useScrollShadow';\nimport { scrollShadowVariants } from './scrollShadowVariants';\n\ntype ScrollShadowVisibility =\n 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'both' | 'none';\n\nexport interface ScrollShadowProps {\n /** Scrollable content */\n children?: ReactNode;\n /** CSS class name */\n className?: string | string[];\n /** Slot name for styling and debugging */\n dataSlot?: string;\n /** Hides the scrollbar */\n hideScrollBar?: boolean;\n /** Direction of scrolling and edge shadows */\n orientation?: 'horizontal' | 'vertical';\n /** Shadow size in pixels */\n size?: number;\n /** Inline styles for the scroll container */\n style?: CSSProperties;\n /** HTML data-testid attribute for e2e tests */\n testId?: string;\n /** Visible edges, auto follows the current scroll position */\n visibility?: ScrollShadowVisibility;\n}\n\n/** Scrollable content with fading edges that indicate more content */\nconst ScrollShadow = forwardRef<HTMLDivElement, ScrollShadowProps>(\n (\n {\n children = null,\n className = undefined,\n dataSlot = undefined,\n hideScrollBar = false,\n orientation = 'vertical',\n size = 40,\n style = undefined,\n testId = undefined,\n visibility = 'auto',\n },\n ref,\n ) => {\n const styling = useStyling();\n const controlRef = useObjectRef(ref);\n useScrollShadow({ children, orientation, ref: controlRef, visibility });\n\n // className from the scroll surface recipe\n const variants = styling.resolve(scrollShadowVariants, {\n className,\n hideScrollBar,\n orientation,\n });\n const shadowStyle = {\n '--scroll-shadow-size': `${size}px`,\n ...style,\n } as CSSProperties;\n\n return (\n <div\n ref={controlRef}\n className={variants}\n data-component=\"scroll-shadow\"\n data-orientation={orientation}\n data-slot={dataSlot}\n data-testid={testId}\n style={shadowStyle}\n >\n {children}\n </div>\n );\n },\n);\n\nScrollShadow.displayName = 'ScrollShadow';\n\nexport default ScrollShadow;\n"],"mappings":";;;;;;;;AAoCA,MAAM,eAAe,YAEjB,EACE,WAAW,MACX,YAAY,KAAA,GACZ,WAAW,KAAA,GACX,gBAAgB,OAChB,cAAc,YACd,OAAO,IACP,QAAQ,KAAA,GACR,SAAS,KAAA,GACT,aAAa,UAEf,QACG;CACH,MAAM,UAAU,WAAW;CAC3B,MAAM,aAAa,aAAa,GAAG;CACnC,gBAAgB;EAAE;EAAU;EAAa,KAAK;EAAY;CAAW,CAAC;CAGtE,MAAM,WAAW,QAAQ,QAAQ,sBAAsB;EACrD;EACA;EACA;CACF,CAAC;CACD,MAAM,cAAc;EAClB,wBAAwB,GAAG,KAAK;EAChC,GAAG;CACL;CAEA,OACE,oBAAC,OAAD;EACE,KAAK;EACL,WAAW;EACX,kBAAe;EACf,oBAAkB;EAClB,aAAW;EACX,eAAa;EACb,OAAO;EAEN;CACE,CAAA;AAET,CACF;AAEA,aAAa,cAAc"}
@@ -0,0 +1,84 @@
1
+ import { useEffect } from "react";
2
+ // src/ScrollShadow/hooks/useScrollShadow.ts
3
+ const edges = [
4
+ "top",
5
+ "bottom",
6
+ "top-bottom",
7
+ "left",
8
+ "right",
9
+ "left-right"
10
+ ];
11
+ /**
12
+ * Keeps edge masks in sync with scrolling and content or container resizing
13
+ *
14
+ * Measures the existing container without adding a content wrapper, so flex and
15
+ * grid children keep their layout, explicit visibility modes bypass measurement
16
+ */
17
+ const useScrollShadow = ({ children, orientation, ref, visibility }) => {
18
+ useEffect(() => {
19
+ const element = ref.current;
20
+ if (!element) return;
21
+ const horizontal = orientation === "horizontal";
22
+ const before = horizontal ? "left" : "top";
23
+ const after = horizontal ? "right" : "bottom";
24
+ const clearAttributes = () => {
25
+ edges.forEach((edge) => {
26
+ element.removeAttribute(`data-${edge}-scroll`);
27
+ });
28
+ };
29
+ const update = () => {
30
+ clearAttributes();
31
+ if (visibility !== "auto") {
32
+ const edge = visibility === "both" ? `${before}-${after}` : visibility;
33
+ if (edge !== "none") element.setAttribute(`data-${edge}-scroll`, "true");
34
+ return;
35
+ }
36
+ const position = horizontal ? element.scrollLeft : element.scrollTop;
37
+ const viewport = horizontal ? element.clientWidth : element.clientHeight;
38
+ const content = horizontal ? element.scrollWidth : element.scrollHeight;
39
+ const extent = Math.max(0, content - viewport);
40
+ const offset = horizontal && getComputedStyle(element).direction === "rtl" ? extent + position : position;
41
+ const hasBefore = offset > 0;
42
+ const hasAfter = offset < extent;
43
+ if (hasBefore && hasAfter) element.setAttribute(`data-${before}-${after}-scroll`, "true");
44
+ else {
45
+ element.setAttribute(`data-${before}-scroll`, String(hasBefore));
46
+ element.setAttribute(`data-${after}-scroll`, String(hasAfter));
47
+ }
48
+ };
49
+ update();
50
+ element.addEventListener("scroll", update, { passive: true });
51
+ const resizeObserver = typeof ResizeObserver === "undefined" ? void 0 : new ResizeObserver(update);
52
+ const observeContent = () => {
53
+ resizeObserver?.disconnect();
54
+ resizeObserver?.observe(element);
55
+ Array.from(element.children).forEach((child) => {
56
+ resizeObserver?.observe(child);
57
+ });
58
+ update();
59
+ };
60
+ const mutationObserver = new MutationObserver(observeContent);
61
+ observeContent();
62
+ window.addEventListener("resize", update);
63
+ mutationObserver.observe(element, {
64
+ childList: true,
65
+ subtree: true,
66
+ characterData: true
67
+ });
68
+ return () => {
69
+ element.removeEventListener("scroll", update);
70
+ window.removeEventListener("resize", update);
71
+ resizeObserver?.disconnect();
72
+ mutationObserver.disconnect();
73
+ clearAttributes();
74
+ };
75
+ }, [
76
+ children,
77
+ orientation,
78
+ ref,
79
+ visibility
80
+ ]);
81
+ };
82
+ export { useScrollShadow as default };
83
+
84
+ //# sourceMappingURL=useScrollShadow.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollShadow.mjs","names":[],"sources":["../../../src/ScrollShadow/hooks/useScrollShadow.ts"],"sourcesContent":["import type { RefObject } from 'react';\nimport type { ScrollShadowProps } from '../ScrollShadow';\n\nimport { useEffect } from 'react';\n\ninterface UseScrollShadowProps extends Pick<\n ScrollShadowProps,\n 'children' | 'orientation' | 'visibility'\n> {\n /** Scrollable element whose hidden edges are measured */\n ref: RefObject<HTMLDivElement | null>;\n}\n\nconst edges = ['top', 'bottom', 'top-bottom', 'left', 'right', 'left-right'];\n\n/**\n * Keeps edge masks in sync with scrolling and content or container resizing\n *\n * Measures the existing container without adding a content wrapper, so flex and\n * grid children keep their layout, explicit visibility modes bypass measurement\n */\nconst useScrollShadow = ({\n children,\n orientation,\n ref,\n visibility,\n}: UseScrollShadowProps) => {\n useEffect(() => {\n const element = ref.current;\n if (!element) {\n return undefined;\n }\n\n const horizontal = orientation === 'horizontal';\n const before = horizontal ? 'left' : 'top';\n const after = horizontal ? 'right' : 'bottom';\n\n const clearAttributes = () => {\n edges.forEach((edge) => {\n element.removeAttribute(`data-${edge}-scroll`);\n });\n };\n\n const update = () => {\n clearAttributes();\n\n if (visibility !== 'auto') {\n const edge = visibility === 'both' ? `${before}-${after}` : visibility;\n if (edge !== 'none') {\n element.setAttribute(`data-${edge}-scroll`, 'true');\n }\n return;\n }\n\n const position = horizontal ? element.scrollLeft : element.scrollTop;\n const viewport = horizontal ? element.clientWidth : element.clientHeight;\n const content = horizontal ? element.scrollWidth : element.scrollHeight;\n const extent = Math.max(0, content - viewport);\n\n // horizontal RTL scrolling uses negative offsets from the right edge\n const rtl = horizontal && getComputedStyle(element).direction === 'rtl';\n const offset = rtl ? extent + position : position;\n const hasBefore = offset > 0;\n const hasAfter = offset < extent;\n\n if (hasBefore && hasAfter) {\n element.setAttribute(`data-${before}-${after}-scroll`, 'true');\n } else {\n element.setAttribute(`data-${before}-scroll`, String(hasBefore));\n element.setAttribute(`data-${after}-scroll`, String(hasAfter));\n }\n };\n\n update();\n element.addEventListener('scroll', update, { passive: true });\n\n // observe children too, their size can change without resizing the container\n const resizeObserver =\n typeof ResizeObserver === 'undefined'\n ? undefined\n : new ResizeObserver(update);\n const observeContent = () => {\n resizeObserver?.disconnect();\n resizeObserver?.observe(element);\n Array.from(element.children).forEach((child) => {\n resizeObserver?.observe(child);\n });\n update();\n };\n const mutationObserver = new MutationObserver(observeContent);\n observeContent();\n window.addEventListener('resize', update);\n mutationObserver.observe(element, {\n childList: true,\n subtree: true,\n characterData: true,\n });\n\n return () => {\n element.removeEventListener('scroll', update);\n window.removeEventListener('resize', update);\n resizeObserver?.disconnect();\n mutationObserver.disconnect();\n clearAttributes();\n };\n }, [children, orientation, ref, visibility]);\n};\n\nexport default useScrollShadow;\n"],"mappings":";;AAaA,MAAM,QAAQ;CAAC;CAAO;CAAU;CAAc;CAAQ;CAAS;AAAY;;;;;;;AAQ3E,MAAM,mBAAmB,EACvB,UACA,aACA,KACA,iBAC0B;CAC1B,gBAAgB;EACd,MAAM,UAAU,IAAI;EACpB,IAAI,CAAC,SACH;EAGF,MAAM,aAAa,gBAAgB;EACnC,MAAM,SAAS,aAAa,SAAS;EACrC,MAAM,QAAQ,aAAa,UAAU;EAErC,MAAM,wBAAwB;GAC5B,MAAM,SAAS,SAAS;IACtB,QAAQ,gBAAgB,QAAQ,KAAK,QAAQ;GAC/C,CAAC;EACH;EAEA,MAAM,eAAe;GACnB,gBAAgB;GAEhB,IAAI,eAAe,QAAQ;IACzB,MAAM,OAAO,eAAe,SAAS,GAAG,OAAO,GAAG,UAAU;IAC5D,IAAI,SAAS,QACX,QAAQ,aAAa,QAAQ,KAAK,UAAU,MAAM;IAEpD;GACF;GAEA,MAAM,WAAW,aAAa,QAAQ,aAAa,QAAQ;GAC3D,MAAM,WAAW,aAAa,QAAQ,cAAc,QAAQ;GAC5D,MAAM,UAAU,aAAa,QAAQ,cAAc,QAAQ;GAC3D,MAAM,SAAS,KAAK,IAAI,GAAG,UAAU,QAAQ;GAI7C,MAAM,SADM,cAAc,iBAAiB,OAAO,CAAC,CAAC,cAAc,QAC7C,SAAS,WAAW;GACzC,MAAM,YAAY,SAAS;GAC3B,MAAM,WAAW,SAAS;GAE1B,IAAI,aAAa,UACf,QAAQ,aAAa,QAAQ,OAAO,GAAG,MAAM,UAAU,MAAM;QACxD;IACL,QAAQ,aAAa,QAAQ,OAAO,UAAU,OAAO,SAAS,CAAC;IAC/D,QAAQ,aAAa,QAAQ,MAAM,UAAU,OAAO,QAAQ,CAAC;GAC/D;EACF;EAEA,OAAO;EACP,QAAQ,iBAAiB,UAAU,QAAQ,EAAE,SAAS,KAAK,CAAC;EAG5D,MAAM,iBACJ,OAAO,mBAAmB,cACtB,KAAA,IACA,IAAI,eAAe,MAAM;EAC/B,MAAM,uBAAuB;GAC3B,gBAAgB,WAAW;GAC3B,gBAAgB,QAAQ,OAAO;GAC/B,MAAM,KAAK,QAAQ,QAAQ,CAAC,CAAC,SAAS,UAAU;IAC9C,gBAAgB,QAAQ,KAAK;GAC/B,CAAC;GACD,OAAO;EACT;EACA,MAAM,mBAAmB,IAAI,iBAAiB,cAAc;EAC5D,eAAe;EACf,OAAO,iBAAiB,UAAU,MAAM;EACxC,iBAAiB,QAAQ,SAAS;GAChC,WAAW;GACX,SAAS;GACT,eAAe;EACjB,CAAC;EAED,aAAa;GACX,QAAQ,oBAAoB,UAAU,MAAM;GAC5C,OAAO,oBAAoB,UAAU,MAAM;GAC3C,gBAAgB,WAAW;GAC3B,iBAAiB,WAAW;GAC5B,gBAAgB;EAClB;CACF,GAAG;EAAC;EAAU;EAAa;EAAK;CAAU,CAAC;AAC7C"}
@@ -1,2 +1,3 @@
1
- import _default, { ScrollShadowProps } from "./ScrollShadow.mjs";
2
- export { _default as ScrollShadow, _default as default, type ScrollShadowProps };
1
+ import ScrollShadow, { ScrollShadowProps } from "./ScrollShadow.mjs";
2
+ import scrollShadowVariants from "./scrollShadowVariants.mjs";
3
+ export { ScrollShadow, ScrollShadow as default, type ScrollShadowProps, scrollShadowVariants };
@@ -1,6 +1,7 @@
1
- import ScrollShadow_default from "./ScrollShadow.mjs";
1
+ import ScrollShadow from "./ScrollShadow.mjs";
2
+ import scrollShadowVariants from "./scrollShadowVariants.mjs";
2
3
  // src/ScrollShadow/index.ts
3
- var ScrollShadow_default$1 = ScrollShadow_default;
4
- export { ScrollShadow_default as ScrollShadow, ScrollShadow_default$1 as default };
4
+ var ScrollShadow_default = ScrollShadow;
5
+ export { ScrollShadow, ScrollShadow_default as default, scrollShadowVariants };
5
6
 
6
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["ScrollShadow"],"sources":["../../src/ScrollShadow/index.ts"],"sourcesContent":["import ScrollShadow from './ScrollShadow';\n\nexport type { ScrollShadowProps } from './ScrollShadow';\n\nexport { ScrollShadow };\n\nexport default ScrollShadow;\n"],"mappings":";;AAMA,IAAA,yBAAeA"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/ScrollShadow/index.ts"],"sourcesContent":["import ScrollShadow from './ScrollShadow';\n\nexport type { ScrollShadowProps } from './ScrollShadow';\n\nexport { scrollShadowVariants } from './scrollShadowVariants';\n\nexport { ScrollShadow };\n\nexport default ScrollShadow;\n"],"mappings":";;;AAQA,IAAA,uBAAe"}
@@ -0,0 +1,103 @@
1
+ import { TVProps } from "@fuf-stack/pixel-utils";
2
+ /** Scrollable surface with fading edges for hidden content */
3
+ export declare const scrollShadowVariants: ((props?: ({
4
+ hideScrollBar?: boolean | undefined;
5
+ orientation?: "vertical" | "horizontal" | undefined;
6
+ } & ({
7
+ class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
8
+ className?: never;
9
+ } | {
10
+ class?: never;
11
+ className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
12
+ })) | undefined) => string) & {
13
+ extend: ((props?: ({
14
+ hideScrollBar?: boolean | undefined;
15
+ orientation?: "vertical" | "horizontal" | undefined;
16
+ } & ({
17
+ class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
18
+ className?: never;
19
+ } | {
20
+ class?: never;
21
+ className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
22
+ })) | undefined) => {} & {} & {}) & {
23
+ extend: undefined;
24
+ base: undefined;
25
+ slots: undefined;
26
+ variants: {
27
+ hideScrollBar: {
28
+ true: string;
29
+ };
30
+ orientation: {
31
+ horizontal: string[];
32
+ vertical: string[];
33
+ };
34
+ };
35
+ defaultVariants: {
36
+ hideScrollBar?: boolean | undefined;
37
+ orientation?: "vertical" | "horizontal" | undefined;
38
+ };
39
+ compoundVariants: ({
40
+ hideScrollBar?: boolean | boolean[] | undefined;
41
+ orientation?: "vertical" | "horizontal" | ("vertical" | "horizontal")[] | undefined;
42
+ } & ({
43
+ class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {};
44
+ className?: never;
45
+ } | {
46
+ class?: never;
47
+ className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {};
48
+ }))[];
49
+ compoundSlots: ({
50
+ slots: never[];
51
+ } & ({
52
+ hideScrollBar?: boolean | boolean[] | undefined;
53
+ orientation?: "vertical" | "horizontal" | ("vertical" | "horizontal")[] | undefined;
54
+ } & ({
55
+ class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
56
+ className?: never;
57
+ } | {
58
+ class?: never;
59
+ className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
60
+ })))[];
61
+ variantKeys: ("hideScrollBar" | "orientation")[];
62
+ };
63
+ base: undefined;
64
+ slots: undefined;
65
+ variants: {
66
+ hideScrollBar: {
67
+ true: string;
68
+ };
69
+ orientation: {
70
+ horizontal: string[];
71
+ vertical: string[];
72
+ };
73
+ };
74
+ defaultVariants: {
75
+ hideScrollBar?: boolean | undefined;
76
+ orientation?: "vertical" | "horizontal" | undefined;
77
+ };
78
+ compoundVariants: ({
79
+ hideScrollBar?: boolean | boolean[] | undefined;
80
+ orientation?: "vertical" | "horizontal" | ("vertical" | "horizontal")[] | undefined;
81
+ } & ({
82
+ class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {};
83
+ className?: never;
84
+ } | {
85
+ class?: never;
86
+ className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {};
87
+ }))[];
88
+ compoundSlots: ({
89
+ slots: never[];
90
+ } & ({
91
+ hideScrollBar?: boolean | boolean[] | undefined;
92
+ orientation?: "vertical" | "horizontal" | ("vertical" | "horizontal")[] | undefined;
93
+ } & ({
94
+ class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
95
+ className?: never;
96
+ } | {
97
+ class?: never;
98
+ className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
99
+ })))[];
100
+ variantKeys: ("hideScrollBar" | "orientation")[];
101
+ };
102
+ export { scrollShadowVariants as default };
103
+ //# sourceMappingURL=scrollShadowVariants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollShadowVariants.d.mts","names":[],"sources":["../../src/ScrollShadow/scrollShadowVariants.ts"],"mappings":";;qBAKa,wBAAoB"}
@@ -0,0 +1,29 @@
1
+ import { tv } from "@fuf-stack/pixel-utils";
2
+ // src/ScrollShadow/scrollShadowVariants.ts
3
+ /** Scrollable surface with fading edges for hidden content */
4
+ const scrollShadowVariants = tv({
5
+ variants: {
6
+ hideScrollBar: { true: "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden" },
7
+ orientation: {
8
+ horizontal: [
9
+ "overflow-x-auto",
10
+ "data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
11
+ "data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
12
+ "data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"
13
+ ],
14
+ vertical: [
15
+ "overflow-y-auto",
16
+ "data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
17
+ "data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
18
+ "data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"
19
+ ]
20
+ }
21
+ },
22
+ defaultVariants: {
23
+ hideScrollBar: false,
24
+ orientation: "vertical"
25
+ }
26
+ });
27
+ export { scrollShadowVariants as default, scrollShadowVariants };
28
+
29
+ //# sourceMappingURL=scrollShadowVariants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollShadowVariants.mjs","names":[],"sources":["../../src/ScrollShadow/scrollShadowVariants.ts"],"sourcesContent":["import type { TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\n/** Scrollable surface with fading edges for hidden content */\nexport const scrollShadowVariants = tv({\n variants: {\n hideScrollBar: {\n true: '[scrollbar-width:none] [&::-webkit-scrollbar]:hidden',\n },\n orientation: {\n horizontal: [\n 'overflow-x-auto',\n // fade the leading, trailing or both horizontal edges\n 'data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]',\n 'data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]',\n 'data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]',\n ],\n vertical: [\n 'overflow-y-auto',\n // fade the leading, trailing or both vertical edges\n 'data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]',\n 'data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]',\n 'data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]',\n ],\n },\n },\n defaultVariants: { hideScrollBar: false, orientation: 'vertical' },\n});\n\nexport type VariantProps = TVProps<typeof scrollShadowVariants>;\n\nexport default scrollShadowVariants;\n"],"mappings":";;;AAKA,MAAa,uBAAuB,GAAG;CACrC,UAAU;EACR,eAAe,EACb,MAAM,uDACR;EACA,aAAa;GACX,YAAY;IACV;IAEA;IACA;IACA;GACF;GACA,UAAU;IACR;IAEA;IACA;IACA;GACF;EACF;CACF;CACA,iBAAiB;EAAE,eAAe;EAAO,aAAa;CAAW;AACnE,CAAC"}