@zuzjs/ui 0.7.7 → 0.7.9

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 (340) hide show
  1. package/dist/cjs/comps/Accordion/index.js +2 -1
  2. package/dist/cjs/comps/Actionbar/index.d.ts +1 -1
  3. package/dist/cjs/comps/Actionbar/index.js +3 -2
  4. package/dist/cjs/comps/Alert/index.d.ts +1 -1
  5. package/dist/cjs/comps/Alert/index.js +1 -0
  6. package/dist/cjs/comps/AutoComplete/index.js +1 -0
  7. package/dist/cjs/comps/Avatar/index.js +3 -2
  8. package/dist/cjs/comps/Box/index.d.ts +1 -2
  9. package/dist/cjs/comps/Box/index.js +15 -13
  10. package/dist/cjs/comps/Button/index.d.ts +2 -2
  11. package/dist/cjs/comps/Button/index.js +4 -3
  12. package/dist/cjs/comps/Button/types.d.ts +1 -1
  13. package/dist/cjs/comps/CheckBox/index.d.ts +2 -2
  14. package/dist/cjs/comps/CheckBox/index.js +2 -1
  15. package/dist/cjs/comps/ColorScheme/index.d.ts +3 -2
  16. package/dist/cjs/comps/ColorScheme/index.js +29 -9
  17. package/dist/cjs/comps/ColorScheme/types.d.ts +4 -0
  18. package/dist/cjs/comps/ColorScheme/types.js +1 -0
  19. package/dist/cjs/comps/ContextMenu/index.js +4 -4
  20. package/dist/cjs/comps/CookiesConsent/index.js +3 -2
  21. package/dist/cjs/comps/Cover/index.d.ts +1 -1
  22. package/dist/cjs/comps/Cover/index.js +3 -2
  23. package/dist/cjs/comps/Crumb/index.d.ts +4 -0
  24. package/dist/cjs/comps/Crumb/index.js +13 -0
  25. package/dist/cjs/comps/Crumb/types.d.ts +11 -0
  26. package/dist/cjs/comps/Crumb/types.js +1 -0
  27. package/dist/cjs/comps/Drawer/index.js +17 -15
  28. package/dist/cjs/comps/Editor/Timeline/index.js +4 -3
  29. package/dist/cjs/comps/Editor/index.js +2 -1
  30. package/dist/cjs/comps/Fab/index.d.ts +1 -2
  31. package/dist/cjs/comps/Fab/index.js +2 -1
  32. package/dist/cjs/comps/Filters/index.d.ts +4 -1
  33. package/dist/cjs/comps/Filters/index.js +1 -0
  34. package/dist/cjs/comps/Form/index.d.ts +3 -59
  35. package/dist/cjs/comps/Form/index.js +5 -7
  36. package/dist/cjs/comps/Form/types.d.ts +43 -0
  37. package/dist/cjs/comps/Form/types.js +1 -0
  38. package/dist/cjs/comps/Icon/index.d.ts +1 -1
  39. package/dist/cjs/comps/Icon/index.js +2 -2
  40. package/dist/cjs/comps/Image/index.js +1 -1
  41. package/dist/cjs/comps/Input/index.js +1 -0
  42. package/dist/cjs/comps/KeyboardKeys/index.d.ts +8 -0
  43. package/dist/cjs/comps/KeyboardKeys/index.js +33 -0
  44. package/dist/cjs/comps/KeyboardKeys/types.d.ts +13 -0
  45. package/dist/cjs/comps/KeyboardKeys/types.js +51 -0
  46. package/dist/cjs/comps/Label/index.js +1 -1
  47. package/dist/cjs/comps/List/index.d.ts +4 -1
  48. package/dist/cjs/comps/List/index.js +5 -4
  49. package/dist/cjs/comps/List/item.d.ts +6 -3
  50. package/dist/cjs/comps/List/item.js +6 -1
  51. package/dist/cjs/comps/List/types.d.ts +4 -1
  52. package/dist/cjs/comps/Network/index.js +6 -7
  53. package/dist/cjs/comps/Overlay/index.js +2 -1
  54. package/dist/cjs/comps/Pagination/index.js +3 -2
  55. package/dist/cjs/comps/Password/index.js +2 -1
  56. package/dist/cjs/comps/PinInput/index.js +2 -1
  57. package/dist/cjs/comps/ProgressBar/index.js +1 -0
  58. package/dist/cjs/comps/Radio/index.js +1 -0
  59. package/dist/cjs/comps/ScrollView/index.d.ts +5 -0
  60. package/dist/cjs/comps/ScrollView/index.js +13 -0
  61. package/dist/cjs/comps/ScrollView/types.d.ts +6 -0
  62. package/dist/cjs/comps/ScrollView/types.js +1 -0
  63. package/dist/cjs/comps/Search/index.d.ts +7 -10
  64. package/dist/cjs/comps/Search/index.js +12 -7
  65. package/dist/cjs/comps/Search/types.d.ts +12 -0
  66. package/dist/cjs/comps/Search/types.js +1 -0
  67. package/dist/cjs/comps/Segmented/index.d.ts +3 -2
  68. package/dist/cjs/comps/Segmented/index.js +6 -5
  69. package/dist/cjs/comps/Segmented/item.d.ts +4 -1
  70. package/dist/cjs/comps/Segmented/item.js +16 -14
  71. package/dist/cjs/comps/Segmented/types.d.ts +5 -1
  72. package/dist/cjs/comps/Select/index.d.ts +2 -4
  73. package/dist/cjs/comps/Select/index.js +4 -3
  74. package/dist/cjs/comps/Select/optionItem.d.ts +4 -1
  75. package/dist/cjs/comps/Select/optionItem.js +1 -0
  76. package/dist/cjs/comps/Select/types.d.ts +1 -1
  77. package/dist/cjs/comps/Sheet/index.d.ts +1 -1
  78. package/dist/cjs/comps/Sheet/index.js +12 -8
  79. package/dist/cjs/comps/Sidebar/index.js +1 -0
  80. package/dist/cjs/comps/Slider/index.d.ts +1 -1
  81. package/dist/cjs/comps/Slider/index.js +3 -2
  82. package/dist/cjs/comps/Span/index.js +1 -0
  83. package/dist/cjs/comps/Spinner/index.d.ts +1 -1
  84. package/dist/cjs/comps/Spinner/index.js +4 -7
  85. package/dist/cjs/comps/Switch/index.d.ts +1 -1
  86. package/dist/cjs/comps/Switch/index.js +2 -1
  87. package/dist/cjs/comps/TabView/body.js +1 -0
  88. package/dist/cjs/comps/TabView/index.d.ts +1 -1
  89. package/dist/cjs/comps/TabView/index.js +1 -0
  90. package/dist/cjs/comps/TabView/tab.d.ts +4 -1
  91. package/dist/cjs/comps/TabView/tab.js +1 -0
  92. package/dist/cjs/comps/TabView/types.d.ts +2 -2
  93. package/dist/cjs/comps/Table/col.d.ts +9 -6
  94. package/dist/cjs/comps/Table/col.js +1 -0
  95. package/dist/cjs/comps/Table/index.js +13 -5
  96. package/dist/cjs/comps/Table/row.d.ts +4 -1
  97. package/dist/cjs/comps/Table/row.js +5 -3
  98. package/dist/cjs/comps/Table/types.d.ts +88 -1
  99. package/dist/cjs/comps/Text/index.d.ts +2 -0
  100. package/dist/cjs/comps/Text/index.js +4 -2
  101. package/dist/cjs/comps/TextArea/index.d.ts +2 -0
  102. package/dist/cjs/comps/TextArea/index.js +3 -3
  103. package/dist/cjs/comps/TextWheel/index.js +1 -0
  104. package/dist/cjs/comps/Tooltip/index.d.ts +1 -2
  105. package/dist/cjs/comps/Tooltip/index.js +2 -1
  106. package/dist/cjs/comps/Treeview/index.d.ts +1 -2
  107. package/dist/cjs/comps/Treeview/index.js +3 -1
  108. package/dist/cjs/comps/Treeview/item.d.ts +3 -2
  109. package/dist/cjs/comps/Treeview/item.js +12 -7
  110. package/dist/cjs/comps/Treeview/types.d.ts +6 -2
  111. package/dist/cjs/comps/VideoPlayer/index.d.ts +2 -0
  112. package/dist/cjs/comps/VideoPlayer/index.js +7 -0
  113. package/dist/cjs/comps/index.d.ts +26 -18
  114. package/dist/cjs/comps/index.js +8 -0
  115. package/dist/cjs/funs/css.d.ts +3 -3
  116. package/dist/cjs/funs/css.js +20 -18
  117. package/dist/cjs/funs/index.d.ts +3 -1
  118. package/dist/cjs/funs/index.js +14 -3
  119. package/dist/cjs/funs/stylesheet.js +5 -0
  120. package/dist/cjs/hooks/index.d.ts +15 -9
  121. package/dist/cjs/hooks/index.js +14 -7
  122. package/dist/cjs/hooks/useAnchorPosition.d.ts +1 -2
  123. package/dist/cjs/hooks/useAnchorPosition.js +1 -0
  124. package/dist/cjs/hooks/useBase.js +27 -13
  125. package/dist/cjs/hooks/useCalendar.js +1 -0
  126. package/dist/cjs/hooks/useColorScheme.js +2 -2
  127. package/dist/cjs/hooks/useContextMenu.js +1 -0
  128. package/dist/cjs/hooks/useDB.js +1 -0
  129. package/dist/cjs/hooks/useDebounce.js +2 -1
  130. package/dist/cjs/hooks/useDelayed.d.ts +17 -0
  131. package/dist/cjs/hooks/useDelayed.js +26 -0
  132. package/dist/cjs/hooks/useDevice.js +1 -0
  133. package/dist/cjs/hooks/useDimensions.js +2 -1
  134. package/dist/cjs/hooks/useDom.d.ts +2 -0
  135. package/dist/cjs/hooks/useDom.js +3 -0
  136. package/dist/cjs/hooks/useDomMutation.d.ts +3 -0
  137. package/dist/cjs/hooks/useDomMutation.js +19 -0
  138. package/dist/cjs/hooks/useDrag.js +2 -1
  139. package/dist/cjs/hooks/useFileManager.d.ts +2 -0
  140. package/dist/cjs/hooks/useFileManager.js +3 -0
  141. package/dist/cjs/hooks/useImage.js +1 -0
  142. package/dist/cjs/hooks/useIntersectionObserver.js +2 -1
  143. package/dist/cjs/hooks/useMediaPlayer.d.ts +32 -0
  144. package/dist/cjs/hooks/useMediaPlayer.js +86 -0
  145. package/dist/cjs/hooks/useMergedRefs.d.ts +2 -0
  146. package/dist/cjs/hooks/useMergedRefs.js +14 -0
  147. package/dist/cjs/hooks/useMutationObserver.d.ts +3 -0
  148. package/dist/cjs/hooks/useMutationObserver.js +20 -0
  149. package/dist/cjs/hooks/useNetworkStatus.js +2 -1
  150. package/dist/cjs/hooks/usePlayer.d.ts +32 -0
  151. package/dist/cjs/hooks/usePlayer.js +85 -0
  152. package/dist/cjs/hooks/useResizeObserver.js +2 -1
  153. package/dist/cjs/hooks/useScrollbar.d.ts +16 -0
  154. package/dist/cjs/hooks/useScrollbar.js +160 -0
  155. package/dist/cjs/hooks/useSheet.js +1 -0
  156. package/dist/cjs/hooks/useShortcuts.d.ts +7 -0
  157. package/dist/cjs/hooks/useShortcuts.js +29 -0
  158. package/dist/cjs/hooks/useSlider.d.ts +7 -0
  159. package/dist/cjs/hooks/useSlider.js +23 -0
  160. package/dist/cjs/hooks/useTruncateText.d.ts +2 -0
  161. package/dist/cjs/hooks/useTruncateText.js +17 -0
  162. package/dist/cjs/hooks/useViewTransition.d.ts +2 -0
  163. package/dist/cjs/hooks/useViewTransition.js +13 -0
  164. package/dist/cjs/index.js +1 -0
  165. package/dist/cjs/types/enums.d.ts +1 -0
  166. package/dist/cjs/types/enums.js +1 -0
  167. package/dist/cjs/types/index.d.ts +2 -1
  168. package/dist/cjs/types/interfaces.d.ts +2 -0
  169. package/dist/css/styles.css +1 -1
  170. package/dist/esm/comps/Accordion/index.js +2 -1
  171. package/dist/esm/comps/Actionbar/index.d.ts +1 -1
  172. package/dist/esm/comps/Actionbar/index.js +3 -2
  173. package/dist/esm/comps/Alert/index.d.ts +1 -1
  174. package/dist/esm/comps/Alert/index.js +1 -0
  175. package/dist/esm/comps/AutoComplete/index.js +1 -0
  176. package/dist/esm/comps/Avatar/index.js +3 -2
  177. package/dist/esm/comps/Box/index.d.ts +1 -2
  178. package/dist/esm/comps/Box/index.js +15 -13
  179. package/dist/esm/comps/Button/index.d.ts +2 -2
  180. package/dist/esm/comps/Button/index.js +4 -3
  181. package/dist/esm/comps/Button/types.d.ts +1 -1
  182. package/dist/esm/comps/CheckBox/index.d.ts +2 -2
  183. package/dist/esm/comps/CheckBox/index.js +2 -1
  184. package/dist/esm/comps/ColorScheme/index.d.ts +3 -2
  185. package/dist/esm/comps/ColorScheme/index.js +29 -9
  186. package/dist/esm/comps/ColorScheme/types.d.ts +4 -0
  187. package/dist/esm/comps/ColorScheme/types.js +1 -0
  188. package/dist/esm/comps/ContextMenu/index.js +4 -4
  189. package/dist/esm/comps/CookiesConsent/index.js +3 -2
  190. package/dist/esm/comps/Cover/index.d.ts +1 -1
  191. package/dist/esm/comps/Cover/index.js +3 -2
  192. package/dist/esm/comps/Crumb/index.d.ts +4 -0
  193. package/dist/esm/comps/Crumb/index.js +13 -0
  194. package/dist/esm/comps/Crumb/types.d.ts +11 -0
  195. package/dist/esm/comps/Crumb/types.js +1 -0
  196. package/dist/esm/comps/Drawer/index.js +17 -15
  197. package/dist/esm/comps/Editor/Timeline/index.js +4 -3
  198. package/dist/esm/comps/Editor/index.js +2 -1
  199. package/dist/esm/comps/Fab/index.d.ts +1 -2
  200. package/dist/esm/comps/Fab/index.js +2 -1
  201. package/dist/esm/comps/Filters/index.d.ts +4 -1
  202. package/dist/esm/comps/Filters/index.js +1 -0
  203. package/dist/esm/comps/Form/index.d.ts +3 -59
  204. package/dist/esm/comps/Form/index.js +5 -7
  205. package/dist/esm/comps/Form/types.d.ts +43 -0
  206. package/dist/esm/comps/Form/types.js +1 -0
  207. package/dist/esm/comps/Icon/index.d.ts +1 -1
  208. package/dist/esm/comps/Icon/index.js +2 -2
  209. package/dist/esm/comps/Image/index.js +1 -1
  210. package/dist/esm/comps/Input/index.js +1 -0
  211. package/dist/esm/comps/KeyboardKeys/index.d.ts +8 -0
  212. package/dist/esm/comps/KeyboardKeys/index.js +33 -0
  213. package/dist/esm/comps/KeyboardKeys/types.d.ts +13 -0
  214. package/dist/esm/comps/KeyboardKeys/types.js +51 -0
  215. package/dist/esm/comps/Label/index.js +1 -1
  216. package/dist/esm/comps/List/index.d.ts +4 -1
  217. package/dist/esm/comps/List/index.js +5 -4
  218. package/dist/esm/comps/List/item.d.ts +6 -3
  219. package/dist/esm/comps/List/item.js +6 -1
  220. package/dist/esm/comps/List/types.d.ts +4 -1
  221. package/dist/esm/comps/Network/index.js +6 -7
  222. package/dist/esm/comps/Overlay/index.js +2 -1
  223. package/dist/esm/comps/Pagination/index.js +3 -2
  224. package/dist/esm/comps/Password/index.js +2 -1
  225. package/dist/esm/comps/PinInput/index.js +2 -1
  226. package/dist/esm/comps/ProgressBar/index.js +1 -0
  227. package/dist/esm/comps/Radio/index.js +1 -0
  228. package/dist/esm/comps/ScrollView/index.d.ts +5 -0
  229. package/dist/esm/comps/ScrollView/index.js +13 -0
  230. package/dist/esm/comps/ScrollView/types.d.ts +6 -0
  231. package/dist/esm/comps/ScrollView/types.js +1 -0
  232. package/dist/esm/comps/Search/index.d.ts +7 -10
  233. package/dist/esm/comps/Search/index.js +12 -7
  234. package/dist/esm/comps/Search/types.d.ts +12 -0
  235. package/dist/esm/comps/Search/types.js +1 -0
  236. package/dist/esm/comps/Segmented/index.d.ts +3 -2
  237. package/dist/esm/comps/Segmented/index.js +6 -5
  238. package/dist/esm/comps/Segmented/item.d.ts +4 -1
  239. package/dist/esm/comps/Segmented/item.js +16 -14
  240. package/dist/esm/comps/Segmented/types.d.ts +5 -1
  241. package/dist/esm/comps/Select/index.d.ts +2 -4
  242. package/dist/esm/comps/Select/index.js +4 -3
  243. package/dist/esm/comps/Select/optionItem.d.ts +4 -1
  244. package/dist/esm/comps/Select/optionItem.js +1 -0
  245. package/dist/esm/comps/Select/types.d.ts +1 -1
  246. package/dist/esm/comps/Sheet/index.d.ts +1 -1
  247. package/dist/esm/comps/Sheet/index.js +12 -8
  248. package/dist/esm/comps/Sidebar/index.js +1 -0
  249. package/dist/esm/comps/Slider/index.d.ts +1 -1
  250. package/dist/esm/comps/Slider/index.js +3 -2
  251. package/dist/esm/comps/Span/index.js +1 -0
  252. package/dist/esm/comps/Spinner/index.d.ts +1 -1
  253. package/dist/esm/comps/Spinner/index.js +4 -7
  254. package/dist/esm/comps/Switch/index.d.ts +1 -1
  255. package/dist/esm/comps/Switch/index.js +2 -1
  256. package/dist/esm/comps/TabView/body.js +1 -0
  257. package/dist/esm/comps/TabView/index.d.ts +1 -1
  258. package/dist/esm/comps/TabView/index.js +1 -0
  259. package/dist/esm/comps/TabView/tab.d.ts +4 -1
  260. package/dist/esm/comps/TabView/tab.js +1 -0
  261. package/dist/esm/comps/TabView/types.d.ts +2 -2
  262. package/dist/esm/comps/Table/col.d.ts +9 -6
  263. package/dist/esm/comps/Table/col.js +1 -0
  264. package/dist/esm/comps/Table/index.js +13 -5
  265. package/dist/esm/comps/Table/row.d.ts +4 -1
  266. package/dist/esm/comps/Table/row.js +5 -3
  267. package/dist/esm/comps/Table/types.d.ts +88 -1
  268. package/dist/esm/comps/Text/index.d.ts +2 -0
  269. package/dist/esm/comps/Text/index.js +4 -2
  270. package/dist/esm/comps/TextArea/index.d.ts +2 -0
  271. package/dist/esm/comps/TextArea/index.js +3 -3
  272. package/dist/esm/comps/TextWheel/index.js +1 -0
  273. package/dist/esm/comps/Tooltip/index.d.ts +1 -2
  274. package/dist/esm/comps/Tooltip/index.js +2 -1
  275. package/dist/esm/comps/Treeview/index.d.ts +1 -2
  276. package/dist/esm/comps/Treeview/index.js +3 -1
  277. package/dist/esm/comps/Treeview/item.d.ts +3 -2
  278. package/dist/esm/comps/Treeview/item.js +12 -7
  279. package/dist/esm/comps/Treeview/types.d.ts +6 -2
  280. package/dist/esm/comps/VideoPlayer/index.d.ts +2 -0
  281. package/dist/esm/comps/VideoPlayer/index.js +7 -0
  282. package/dist/esm/comps/index.d.ts +26 -18
  283. package/dist/esm/comps/index.js +8 -0
  284. package/dist/esm/funs/css.d.ts +3 -3
  285. package/dist/esm/funs/css.js +20 -18
  286. package/dist/esm/funs/index.d.ts +3 -1
  287. package/dist/esm/funs/index.js +14 -3
  288. package/dist/esm/funs/stylesheet.js +5 -0
  289. package/dist/esm/hooks/index.d.ts +15 -9
  290. package/dist/esm/hooks/index.js +14 -7
  291. package/dist/esm/hooks/useAnchorPosition.d.ts +1 -2
  292. package/dist/esm/hooks/useAnchorPosition.js +1 -0
  293. package/dist/esm/hooks/useBase.js +27 -13
  294. package/dist/esm/hooks/useCalendar.js +1 -0
  295. package/dist/esm/hooks/useColorScheme.js +2 -2
  296. package/dist/esm/hooks/useContextMenu.js +1 -0
  297. package/dist/esm/hooks/useDB.js +1 -0
  298. package/dist/esm/hooks/useDebounce.js +2 -1
  299. package/dist/esm/hooks/useDelayed.d.ts +17 -0
  300. package/dist/esm/hooks/useDelayed.js +26 -0
  301. package/dist/esm/hooks/useDevice.js +1 -0
  302. package/dist/esm/hooks/useDimensions.js +2 -1
  303. package/dist/esm/hooks/useDom.d.ts +2 -0
  304. package/dist/esm/hooks/useDom.js +3 -0
  305. package/dist/esm/hooks/useDomMutation.d.ts +3 -0
  306. package/dist/esm/hooks/useDomMutation.js +19 -0
  307. package/dist/esm/hooks/useDrag.js +2 -1
  308. package/dist/esm/hooks/useFileManager.d.ts +2 -0
  309. package/dist/esm/hooks/useFileManager.js +3 -0
  310. package/dist/esm/hooks/useImage.js +1 -0
  311. package/dist/esm/hooks/useIntersectionObserver.js +2 -1
  312. package/dist/esm/hooks/useMediaPlayer.d.ts +32 -0
  313. package/dist/esm/hooks/useMediaPlayer.js +86 -0
  314. package/dist/esm/hooks/useMergedRefs.d.ts +2 -0
  315. package/dist/esm/hooks/useMergedRefs.js +14 -0
  316. package/dist/esm/hooks/useMutationObserver.d.ts +3 -0
  317. package/dist/esm/hooks/useMutationObserver.js +20 -0
  318. package/dist/esm/hooks/useNetworkStatus.js +2 -1
  319. package/dist/esm/hooks/usePlayer.d.ts +32 -0
  320. package/dist/esm/hooks/usePlayer.js +85 -0
  321. package/dist/esm/hooks/useResizeObserver.js +2 -1
  322. package/dist/esm/hooks/useScrollbar.d.ts +16 -0
  323. package/dist/esm/hooks/useScrollbar.js +160 -0
  324. package/dist/esm/hooks/useSheet.js +1 -0
  325. package/dist/esm/hooks/useShortcuts.d.ts +7 -0
  326. package/dist/esm/hooks/useShortcuts.js +29 -0
  327. package/dist/esm/hooks/useSlider.d.ts +7 -0
  328. package/dist/esm/hooks/useSlider.js +23 -0
  329. package/dist/esm/hooks/useTruncateText.d.ts +2 -0
  330. package/dist/esm/hooks/useTruncateText.js +17 -0
  331. package/dist/esm/hooks/useViewTransition.d.ts +2 -0
  332. package/dist/esm/hooks/useViewTransition.js +13 -0
  333. package/dist/esm/index.js +1 -0
  334. package/dist/esm/types/enums.d.ts +1 -0
  335. package/dist/esm/types/enums.js +1 -0
  336. package/dist/esm/types/index.d.ts +2 -1
  337. package/dist/esm/types/interfaces.d.ts +2 -0
  338. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  339. package/dist/tsconfig.tsbuildinfo +1 -1
  340. package/package.json +1 -1
@@ -2,12 +2,13 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useState } from "react";
4
4
  import Box from "../Box";
5
+ import Button from "../Button";
5
6
  import Text from "../Text";
6
7
  import SVGIcons from "../svgicons";
7
- import Button from "../Button";
8
8
  const Accordion = forwardRef((props, ref) => {
9
9
  const { title, message, ...rest } = props;
10
10
  const [visible, setVisible] = useState(false);
11
11
  return _jsxs(Box, { className: `--accordion flex cols`, ...rest, children: [_jsxs(Button, { onClick: (e) => setVisible(!visible), className: `--toggle flex aic ${visible ? `--open` : ``}`.trim(), children: [_jsx(Text, { className: `--label flex`, children: title }), _jsx(Box, { className: `--arrow flex`, children: visible ? SVGIcons.arrowUp : SVGIcons.arrowDown })] }), visible && _jsx(Box, { className: `--detail`, children: message })] });
12
12
  });
13
+ Accordion.displayName = `Accordion`;
13
14
  export default Accordion;
@@ -1,6 +1,6 @@
1
+ import { Position } from "../../types/enums";
1
2
  import { BoxProps } from "../Box";
2
3
  import { ActionBarHandler } from "./types";
3
- import { Position } from "../../types/enums";
4
4
  /**
5
5
  * ActionBar renders a list of buttons with tooltips.
6
6
  *
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useCallback, useEffect, useRef, useState } from "react";
4
- import Box from "../Box";
5
4
  import { useBase } from "../../hooks";
6
- import ActionItem from "./item";
7
5
  import { Position } from "../../types/enums";
6
+ import Box from "../Box";
7
+ import ActionItem from "./item";
8
8
  /**
9
9
  * ActionBar renders a list of buttons with tooltips.
10
10
  *
@@ -59,4 +59,5 @@ const ActionBar = forwardRef((props, ref) => {
59
59
  `${!position || position == Position.Auto ? `rel` : `--${position}`}`
60
60
  ].join(` `).trim(), ...rest, children: [items.map((item, index) => _jsx(ActionItem, { selected: _selected === item.tag || selected == index, ...item, idx: index }, `actionbar-action-${item.label.toLowerCase().replace(/\s+/g, `-`)}`)), _jsx(Box, { className: `--tip abs`, children: _jsx(Box, { className: `--track flex aic`, children: items.map(({ label }) => _jsx(Box, { className: `--lb`, children: label }, `tool-tip-${label.toLowerCase().replace(/\s+/g, `-`)}`)) }) })] });
61
61
  });
62
+ ActionBar.displayName = `ActionBar`;
62
63
  export default ActionBar;
@@ -1,6 +1,6 @@
1
- import { AlertHandler } from "./types";
2
1
  import { ALERT } from "../../types/enums";
3
2
  import { BoxProps } from "../Box";
3
+ import { AlertHandler } from "./types";
4
4
  declare const Alert: import("react").ForwardRefExoticComponent<BoxProps & {
5
5
  type?: ALERT;
6
6
  icon?: string;
@@ -10,4 +10,5 @@ const Alert = forwardRef((props, ref) => {
10
10
  const { className, style, rest } = useBase(pops);
11
11
  return _jsxs(Box, { className: `--alert --${(type || ALERT.Info)} flex aic ${className}`.trim(), style: style, ...rest, children: [_jsx(Box, { className: `--icon icon-${icon || `auto-matic`}`, style: iconSize ? { width: iconSize, height: iconSize } : {}, children: !icon && SVGIcons[type || ALERT.Info] }), _jsxs(Box, { className: `--meta flex cols`, children: [_jsx(Text, { className: `--title ${message ? `--tm` : ``}`, children: title || `Lorem ipsum dolor sit amet, consectetur adipiscing elit.` }), message && _jsx(Text, { className: `--message`, h: 2, children: message })] })] });
12
12
  });
13
+ Alert.displayName = `Alert`;
13
14
  export default Alert;
@@ -171,4 +171,5 @@ const AutoComplete = forwardRef((props, ref) => {
171
171
  }
172
172
  })) })] });
173
173
  });
174
+ AutoComplete.displayName = `AutoComplete`;
174
175
  export default AutoComplete;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect } from "react";
4
- import { AVATAR, Size } from "../../types/enums";
5
4
  import { useBase, useImage } from "../../hooks";
6
- import Image from "../Image";
5
+ import { AVATAR, Size } from "../../types/enums";
7
6
  import Box from "../Box";
7
+ import Image from "../Image";
8
8
  import Text from "../Text";
9
9
  const Avatar = forwardRef((props, ref) => {
10
10
  const { src, size, variant, type, crossOrigin, referrerPolicy, animate, as, alt, color, ...pops } = props;
@@ -33,4 +33,5 @@ const Avatar = forwardRef((props, ref) => {
33
33
  ...style,
34
34
  }, ...rest, children: src ? _jsx(Image, { src: img, crossOrigin: crossOrigin, referrerPolicy: referrerPolicy, ...pops }) : _jsx(Text, { className: `--avatar-label`, children: (alt ? alt.charAt(0) : `A`).toUpperCase() }) });
35
35
  });
36
+ Avatar.displayName = `Avatar`;
36
37
  export default Avatar;
@@ -1,7 +1,6 @@
1
- import React from "react";
2
1
  import { Props } from "../../types";
3
2
  export interface BoxProps extends Partial<Props<`div`>> {
4
3
  name?: string;
5
4
  }
6
- declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const Box: import("react").ForwardRefExoticComponent<BoxProps & import("react").RefAttributes<HTMLDivElement>>;
7
6
  export default Box;
@@ -1,24 +1,26 @@
1
- "use client";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { forwardRef } from "react";
4
3
  import { useBase } from "../../hooks";
5
4
  const Box = forwardRef((props, ref) => {
6
5
  const { style, withEditor, ...pops } = props;
7
6
  const { style: _style, className, rest } = useBase(pops);
8
- const handleInternalClick = (e) => {
9
- // if ( withEditor && isBrowser ) {
10
- // // window.dispatchEvent(new CustomEvent(`ZUZ_COMP_SELECTED`, {
11
- // // detail: {
12
- // // compName: 'Box',
13
- // // target: e.target,
14
- // // props
15
- // // }
16
- // // }))
17
- // }
18
- };
19
- return _jsx("div", { ref: ref, onClick: handleInternalClick, className: `${className} ${withEditor ? `--with-zuz-editor` : ``}`.trim(), style: {
7
+ // const handleInternalClick = (e: React.MouseEvent<HTMLDivElement>) => {
8
+ // // if ( withEditor && isBrowser ) {
9
+ // // // window.dispatchEvent(new CustomEvent(`ZUZ_COMP_SELECTED`, {
10
+ // // // detail: {
11
+ // // // compName: 'Box',
12
+ // // // target: e.target,
13
+ // // // props
14
+ // // // }
15
+ // // // }))
16
+ // // }
17
+ // }
18
+ return _jsx("div", { ref: ref,
19
+ // onClick={handleInternalClick}
20
+ className: `${className} ${withEditor ? `--with-zuz-editor` : ``}`.trim(), style: {
20
21
  ..._style,
21
22
  ...(style || {})
22
23
  }, ...rest });
23
24
  });
25
+ Box.displayName = `Box`;
24
26
  export default Box;
@@ -1,7 +1,7 @@
1
- import { ButtonState } from './types';
2
1
  import { Size, SPINNER } from '../../types/enums';
2
+ import { ButtonState } from './types';
3
3
  declare const Button: import("react").ForwardRefExoticComponent<import("../..").ZuzProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof import("../..").ZuzProps> & {
4
- icon?: string;
4
+ icon?: string | null;
5
5
  iconSize?: Size;
6
6
  withLabel?: boolean;
7
7
  spinner?: SPINNER;
@@ -2,14 +2,15 @@
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef } from 'react';
4
4
  import { useBase } from '../../hooks';
5
+ import { Size, SPINNER } from '../../types/enums';
5
6
  import Icon from '../Icon';
6
7
  import Span from '../Span';
7
- import { ButtonState } from './types';
8
8
  import Spinner from '../Spinner';
9
- import { Size, SPINNER } from '../../types/enums';
9
+ import { ButtonState } from './types';
10
10
  const Button = forwardRef((props, ref) => {
11
11
  const { reset, size, variant, icon, iconSize, children, withLabel, spinner, state, disabled, ...pops } = props;
12
12
  const { style, className, rest } = useBase(pops);
13
- return _jsxs("button", { className: `--button ${variant ? `--${variant}` : ``} ${size ? `--${size}` : ``} flex aic ${!reset ? `jcc` : ``} ${icon ? `ico-btn` : ``} ${className}`.trim(), style: style, ref: ref, disabled: state == ButtonState.Loading || props.skeleton?.enabled || disabled, ...rest, children: [state == ButtonState.Loading && _jsx(Spinner, { size: Size.Small, type: spinner || SPINNER.Simple }), (!state || state == ButtonState.Normal) && _jsxs(_Fragment, { children: [icon && _jsx(Icon, { size: iconSize, name: icon }), withLabel === true ? _jsx(Span, { children: children }) : children] })] });
13
+ return _jsxs("button", { className: `--button ${variant ? `--${variant}` : ``} ${size ? `--${size}` : ``} flex aic ${!reset ? `jcc` : ``} ${icon ? `ico-btn` : ``} ${className}`.trim().replace(/\s+/g, ' '), style: style, ref: ref, disabled: state == ButtonState.Loading || props.skeleton?.enabled || disabled, ...rest, children: [state == ButtonState.Loading && _jsx(Spinner, { size: Size.Small, type: spinner || SPINNER.Simple }), (!state || state == ButtonState.Normal) && _jsxs(_Fragment, { children: [icon && _jsx(Icon, { size: iconSize, name: icon }), withLabel === true ? _jsx(Span, { children: children }) : children] })] });
14
14
  });
15
+ Button.displayName = `Button`;
15
16
  export default Button;
@@ -1,7 +1,7 @@
1
1
  import { Props } from "../../types";
2
2
  import { Size, SPINNER, Variant } from "../../types/enums";
3
3
  export type ButtonProps = Props<`button`> & {
4
- icon?: string;
4
+ icon?: string | null;
5
5
  iconSize?: Size;
6
6
  withLabel?: boolean;
7
7
  spinner?: SPINNER;
@@ -1,8 +1,8 @@
1
- import { CHECKBOX, Size, Variant } from "../../types/enums";
1
+ import { CHECKBOX, Variant } from "../../types/enums";
2
2
  import { CheckboxHandler } from "./types";
3
3
  declare const CheckBox: import("react").ForwardRefExoticComponent<import("../..").ZuzProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, keyof import("../..").ZuzProps> & {
4
4
  type?: CHECKBOX;
5
- size?: Size;
5
+ size?: import("../..").Size;
6
6
  variant?: Variant;
7
7
  onSwitch?: (checked: boolean, value: string | number | readonly string[]) => void;
8
8
  } & import("react").RefAttributes<CheckboxHandler>>;
@@ -2,8 +2,8 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useImperativeHandle, useRef, useState } from "react";
4
4
  import { CHECKBOX, Variant } from "../../types/enums";
5
- import Label from "../Label";
6
5
  import Input from "../Input";
6
+ import Label from "../Label";
7
7
  import SVGIcons from "../svgicons";
8
8
  const CheckBox = forwardRef((props, ref) => {
9
9
  const { name, required, type, value, size, variant, checked: defaultCheck, onSwitch, ...pops } = props;
@@ -31,4 +31,5 @@ const CheckBox = forwardRef((props, ref) => {
31
31
  _setChecked(e.target.checked);
32
32
  } })] });
33
33
  });
34
+ CheckBox.displayName = `CheckBox`;
34
35
  export default CheckBox;
@@ -1,4 +1,5 @@
1
- import { SegmentProps } from "../Segmented/types";
2
1
  import { ColorScheme } from "../../hooks/useColorScheme";
3
- declare const ColorScheme: import("react").ForwardRefExoticComponent<Omit<SegmentProps, "items"> & import("react").RefAttributes<HTMLDivElement>>;
2
+ declare const ColorScheme: import("react").ForwardRefExoticComponent<Omit<import("..").SegmentProps, "items"> & {
3
+ type?: "switch" | "toggle" | "system";
4
+ } & import("react").RefAttributes<HTMLDivElement>>;
4
5
  export default ColorScheme;
@@ -1,19 +1,39 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { forwardRef, useMemo } from "react";
3
+ import { forwardRef, useCallback, useMemo } from "react";
4
+ import { Button, useBase, useDelayed, Variant } from "../..";
5
+ import { useColorScheme } from "../../hooks/useColorScheme";
4
6
  import Segmented from "../Segmented";
5
7
  import SVGIcons from "../svgicons";
6
- import { useColorScheme } from "../../hooks/useColorScheme";
7
8
  const ColorScheme = forwardRef((props, ref) => {
9
+ const { type, ...pops } = props;
10
+ const mounted = useDelayed();
8
11
  const { colorScheme, setColorScheme } = useColorScheme();
9
- const items = useMemo(() => [
10
- { tag: `light`, index: 0, label: "", icon: SVGIcons.colorSchemeLight },
11
- { tag: `system`, index: 1, label: "", icon: SVGIcons.colorSchemeSystem },
12
- { tag: `dark`, index: 2, label: "", icon: SVGIcons.colorSchemeDark },
13
- ], []);
12
+ const loopSchemes = useCallback(() => {
13
+ setColorScheme(colorScheme == `dark` ? `light`
14
+ : colorScheme == `light` ? `system`
15
+ : `dark`);
16
+ }, [colorScheme]);
17
+ const { className, style } = useBase(pops);
18
+ const items = useMemo(() => type == `system` ?
19
+ [
20
+ { tag: `light`, index: 0, label: "", icon: SVGIcons.colorSchemeLight },
21
+ { tag: `system`, index: 1, label: "", icon: SVGIcons.colorSchemeSystem },
22
+ { tag: `dark`, index: 2, label: "", icon: SVGIcons.colorSchemeDark },
23
+ ]
24
+ :
25
+ [
26
+ { tag: `light`, index: 0, label: "", icon: SVGIcons.colorSchemeLight },
27
+ { tag: `dark`, index: 2, label: "", icon: SVGIcons.colorSchemeDark },
28
+ ], []);
14
29
  const selected = useMemo(() => [`light`, `system`, `dark`].indexOf(colorScheme), [colorScheme]);
15
- return selected == -1 ? null : _jsx(Segmented, { className: `--color-scheme`, onSwitch: ({ tag }) => {
30
+ if (!mounted || selected == -1)
31
+ return null;
32
+ return type == `system` || type == `switch` ? _jsx(Segmented, { className: `--color-scheme --${type}`, onSwitch: ({ tag }) => {
16
33
  setColorScheme(tag);
17
- }, selected: selected, items: items, ...props });
34
+ }, selected: selected, items: items, ...pops }) : _jsx(Button, { onClick: loopSchemes, style: style, as: `--color-scheme-switch --${pops.variant || Variant.Small} ${className}`.trim(), children: colorScheme == `system` ? SVGIcons.colorSchemeSystem
35
+ : colorScheme == `light` ? SVGIcons.colorSchemeLight
36
+ : SVGIcons.colorSchemeDark });
18
37
  });
38
+ ColorScheme.displayName = `ColorScheme`;
19
39
  export default ColorScheme;
@@ -0,0 +1,4 @@
1
+ import { SegmentProps } from "../..";
2
+ export type ColorSchemeProps = Omit<SegmentProps, `items`> & {
3
+ type?: "switch" | "toggle" | "system";
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,11 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { forwardRef, useImperativeHandle, useRef, useState } from "react";
4
- import Box from "../Box";
5
4
  import { useAnchorPosition, useBase } from "../../hooks";
6
- import MenuItem from "./item";
7
5
  import { TRANSITION_CURVES } from "../../types/enums";
8
- // import { dynamicObject } from "../../types";
6
+ import Box from "../Box";
7
+ import MenuItem from "./item";
9
8
  const ContextMenu = forwardRef((props, ref) => {
10
9
  const { as, offsetX, offsetY, parent, items: _items, ...pops } = props;
11
10
  const { className, style, rest } = useBase(pops);
@@ -30,7 +29,7 @@ const ContextMenu = forwardRef((props, ref) => {
30
29
  ...style,
31
30
  top: position.top,
32
31
  left: position.left
33
- }, animate: {
32
+ }, fx: {
34
33
  from: { opacity: 0, y: 20 },
35
34
  to: { opacity: 1, y: 0 },
36
35
  curve: TRANSITION_CURVES.EaseInOut,
@@ -38,4 +37,5 @@ const ContextMenu = forwardRef((props, ref) => {
38
37
  when: visible
39
38
  }, ref: targetRef, ...rest, children: items.map((item, index) => _jsx(MenuItem, { ...{ ...item, index } }, `context-${item.label.toLowerCase()}-${index}`)) });
40
39
  });
40
+ ContextMenu.displayName = `ContextMenu`;
41
41
  export default ContextMenu;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect, useState } from "react";
4
+ import { Position, TRANSITION_CURVES } from "../../types/enums";
4
5
  import Box from "../Box";
5
- import Text from "../Text";
6
6
  import Button from "../Button";
7
- import { Position, TRANSITION_CURVES } from "../../types/enums";
7
+ import Text from "../Text";
8
8
  const CookiesConsent = forwardRef((props, ref) => {
9
9
  const [accepted, setAccepted] = useState(`wait`);
10
10
  const { title, message, acceptLabel, rejectLabel, position } = props;
@@ -25,4 +25,5 @@ const CookiesConsent = forwardRef((props, ref) => {
25
25
  delay: accepted == `accepted` ? 0 : 3
26
26
  }, as: `--cookie-consent --${accepted} --${position || Position.Left} flex cols`, children: [_jsx(Text, { as: `--title`, children: title || `This site uses cookies` }), _jsx(Text, { as: `--message`, children: message || `We and selected third parties use cookies (or similar technologies) for technical purposes, to enhance and analyze site usage, to support our marketing efforts` }), _jsxs(Box, { as: `--footer flex aic`, children: [_jsx(Button, { onClick: e => handleAction(1), as: `--accept`, children: acceptLabel || `Accept All` }), _jsx(Button, { onClick: e => handleAction(0), as: `--reject`, children: rejectLabel || `Cancel` })] })] });
27
27
  });
28
+ CookiesConsent.displayName = `CookiesConsent`;
28
29
  export default CookiesConsent;
@@ -1,5 +1,5 @@
1
- import { BoxProps } from "../Box";
2
1
  import { SPINNER } from "../../types/enums";
2
+ import { BoxProps } from "../Box";
3
3
  export type CoverProps = BoxProps & {
4
4
  message?: string;
5
5
  spinner?: SPINNER;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef } from "react";
4
- import Box from "../Box";
5
- import { SPINNER } from "../../types/enums";
6
4
  import { useBase } from "../../hooks";
5
+ import { SPINNER } from "../../types/enums";
6
+ import Box from "../Box";
7
7
  import Spinner from "../Spinner";
8
8
  import Text from "../Text";
9
9
  const Cover = forwardRef((props, ref) => {
@@ -17,4 +17,5 @@ const Cover = forwardRef((props, ref) => {
17
17
  backgroundColor: `var(--cover-bg)`
18
18
  }, ...rest, children: [_jsx(Spinner, { type: spinner || SPINNER.Simple }), !hideMessage && _jsx(Text, { className: `--label`, style: { color: `var(--cover-label)` }, children: message || `loading` })] });
19
19
  });
20
+ Cover.displayName = `Cover`;
20
21
  export default Cover;
@@ -0,0 +1,4 @@
1
+ declare const Crumb: import("react").ForwardRefExoticComponent<import("..").BoxProps & {
2
+ items: import("./types").CrumbItem[];
3
+ } & import("react").RefAttributes<HTMLUListElement | HTMLOListElement>>;
4
+ export default Crumb;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import Box from "../Box";
4
+ import Button from "../Button";
5
+ import Icon from "../Icon";
6
+ import List from "../List";
7
+ import SVGIcons from "../svgicons";
8
+ import Text from "../Text";
9
+ const Crumb = forwardRef((props, ref) => {
10
+ const { items } = props;
11
+ return _jsx(List, { ref: ref, className: `--crumb flex aic`, direction: `rows`, seperator: _jsx(Box, { as: `--crumb-chevron`, children: SVGIcons.chevronRightOutline }), items: items.map((item, index, _items) => _jsxs(Button, { onClick: () => item.action?.(), className: `--crumb-item`, disabled: !_items[index + 1], children: [item.icon && _jsx(Icon, { as: `--crumb-icon`, name: item.icon }), _jsx(Text, { as: `--crumb-label`, children: item.label })] })) });
12
+ });
13
+ export default Crumb;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from "react";
2
+ import { BoxProps } from "../Box";
3
+ export type CrumbItem = {
4
+ ID?: string;
5
+ label: string;
6
+ icon?: string | ReactNode;
7
+ action?: () => void;
8
+ };
9
+ export type CrumbProps = BoxProps & {
10
+ items: CrumbItem[];
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,28 +1,29 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
4
- import { bindKey } from "../../funs";
4
+ import { useBase, useShortcuts } from "../../hooks";
5
5
  import { DRAWER_SIDE, KeyCode, TRANSITION_CURVES } from "../../types/enums";
6
6
  import Box from "../Box";
7
7
  import Overlay from "../Overlay";
8
8
  const Drawer = forwardRef((props, ref) => {
9
- const { as, from, speed, children, prerender, onClose, ...pops } = props;
9
+ const { from, speed, children, prerender, onClose, ...pops } = props;
10
10
  const [render, setRender] = useState(undefined == prerender ? true : prerender);
11
11
  const [visible, setVisible] = useState(false);
12
12
  const divRef = useRef(null);
13
13
  const [content, setContent] = useState(children);
14
+ const { className, style, rest } = useBase(pops);
15
+ useShortcuts([
16
+ { keys: [KeyCode.Escape], callback: () => {
17
+ if (visible) {
18
+ onClose?.();
19
+ setVisible(false);
20
+ }
21
+ } }
22
+ ]);
14
23
  useEffect(() => {
15
24
  setContent(children);
16
25
  }, [children]);
17
- useEffect(() => {
18
- bindKey(KeyCode.Escape, () => {
19
- if (visible) {
20
- onClose?.();
21
- setVisible(false);
22
- }
23
- });
24
- }, []);
25
- const style = useMemo(() => {
26
+ const _style = useMemo(() => {
26
27
  switch (from) {
27
28
  case DRAWER_SIDE.Left:
28
29
  return { from: { x: `-100vh` }, to: { x: 0 } };
@@ -52,12 +53,13 @@ const Drawer = forwardRef((props, ref) => {
52
53
  onClose?.();
53
54
  setVisible(false);
54
55
  }
55
- }, when: visible }), _jsxs(Box, { ref: divRef, className: `--drawer flex cols --${from ? from.toLowerCase() : `left`} fixed`, fx: {
56
- from: { ...style.from, opacity: 0 },
57
- to: { ...style.to, opacity: 1 },
56
+ }, when: visible }), _jsxs(Box, { ref: divRef, style: style, className: `--drawer flex cols ${className} --${from ? from.toLowerCase() : `left`} fixed`, fx: {
57
+ from: { ..._style.from, opacity: 0 },
58
+ to: { ..._style.to, opacity: 1 },
58
59
  when: visible,
59
60
  curve: TRANSITION_CURVES.EaseInOut,
60
61
  duration: speed || .5,
61
- }, ...pops, children: [from == DRAWER_SIDE.Top || from == DRAWER_SIDE.Bottom ? _jsx(Box, { className: `--handle` }) : null, render ? content : visible ? content : null] })] });
62
+ }, ...rest, children: [from == DRAWER_SIDE.Top || from == DRAWER_SIDE.Bottom ? _jsx(Box, { className: `--handle` }) : null, render ? content : visible ? content : null] })] });
62
63
  });
64
+ Drawer.displayName = `Drawer`;
63
65
  export default Drawer;
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect, useRef, useState } from "react";
4
+ import { DRAG_DIRECTION, SLIDER } from "../../../types/enums";
4
5
  import Box from "../../Box";
5
6
  import Button from "../../Button";
7
+ import Slider from "../../Slider";
6
8
  import SVGIcons from "../../svgicons";
7
9
  import Text from "../../Text";
8
- import Layer from "./layer";
9
- import Slider from "../../Slider";
10
- import { DRAG_DIRECTION, SLIDER } from "../../../types/enums";
11
10
  import ToolTip from "../../Tooltip";
11
+ import Layer from "./layer";
12
12
  const Timeline = forwardRef((props, ref) => {
13
13
  const { layers } = props;
14
14
  const [selected, setSelected] = useState([]);
@@ -55,4 +55,5 @@ const Timeline = forwardRef((props, ref) => {
55
55
  }
56
56
  }, className: `--cursor abs` })] });
57
57
  });
58
+ Timeline.displayName = `Timeline`;
58
59
  export default Timeline;
@@ -1,10 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React, { forwardRef } from 'react';
4
- import { EditorMode } from './types';
5
4
  import Box from '../Box';
5
+ import { EditorMode } from './types';
6
6
  const Editor = forwardRef((props, ref) => {
7
7
  const [mode, setMode] = React.useState(EditorMode.Select);
8
8
  return _jsx(Box, { as: `--ui-builder rel` });
9
9
  });
10
+ Editor.displayName = `Editor`;
10
11
  export default Editor;
@@ -1,7 +1,6 @@
1
1
  import SVGIcons from "../svgicons";
2
- import { Position } from "../../types/enums";
3
2
  declare const Fab: import("react").ForwardRefExoticComponent<Omit<import("..").ButtonProps, "icon"> & {
4
3
  icon?: string | keyof typeof SVGIcons;
5
- position?: `${Position.Top | Position.Bottom}${Position.Left | Position.Right}`;
4
+ position?: `${import("../..").Position.Top | import("../..").Position.Bottom}${import("../..").Position.Left | import("../..").Position.Right}`;
6
5
  } & import("react").RefAttributes<HTMLButtonElement>>;
7
6
  export default Fab;
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
+ import { Size } from "../../types/enums";
3
4
  import Button from "../Button";
4
5
  import SVGIcons from "../svgicons";
5
- import { Size } from "../../types/enums";
6
6
  const Fab = forwardRef((props, ref) => {
7
7
  const { icon, size, position } = props;
8
8
  return _jsx(Button, { className: `--fab fixed --${size || Size.Large} --${position || `bottomright`}`, children: icon || SVGIcons.plus });
9
9
  });
10
+ Fab.displayName = `Fab`;
10
11
  export default Fab;
@@ -3,5 +3,8 @@ export type FilterProps = {
3
3
  names?: FILTER[];
4
4
  strength?: number;
5
5
  };
6
- declare const Filters: (props: FilterProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Filters: {
7
+ (props: FilterProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
7
10
  export default Filters;
@@ -10,4 +10,5 @@ const Filters = (props) => {
10
10
  useEffect(() => { }, [names]);
11
11
  return _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", children: _jsx("defs", { children: (names || [FILTER.Gooey]).map(name => filters[name](strength)) }) });
12
12
  };
13
+ Filters.displayName = `Filters`;
13
14
  export default Filters;
@@ -1,48 +1,6 @@
1
- import { BoxProps } from "../Box";
2
1
  import { dynamicObject } from "../../types";
3
2
  import { SheetHandler } from "../Sheet";
4
- import { SPINNER } from "../../types/enums";
5
- export type FormProps = BoxProps & {
6
- /** Name of form, will be appended to --form-{name} in className
7
- * whitespace will be replaced with dash (-)
8
- */
9
- name?: string;
10
- /** The URL to which the form data is submitted */
11
- action?: string;
12
- /** List of error messages for form validation */
13
- errors?: dynamicObject;
14
- /** Spinner properties for loading indicator */
15
- spinner?: SPINNER;
16
- /** Additional data to include with form submission */
17
- withData?: dynamicObject;
18
- /** Handler function called before form submission with validated form data */
19
- beforeSubmit?: (data: FormData | dynamicObject) => void;
20
- /** Handler function called on form submission with validated form data */
21
- onSubmit?: (data: FormData | dynamicObject) => void;
22
- /** Callback triggered upon successful form submission */
23
- onSuccess?: (data: dynamicObject) => void;
24
- /** Callback triggered when form submission encounters an error */
25
- onError?: (error: any) => void;
26
- /** Cover properties to display loading or processing message */
27
- cover?: {
28
- /** Background color of the loading cover */
29
- color?: string;
30
- /** Message displayed during loading */
31
- message?: string;
32
- } | SheetHandler;
33
- resetOnSuccess?: boolean;
34
- };
35
- /**
36
- * Exposes control methods for the Form component, such as setting loading states or hiding errors.
37
- */
38
- export interface FormHandler {
39
- /** Sets the loading state of the form */
40
- setLoading: (mode: boolean) => void;
41
- /** Hides any currently displayed error message */
42
- hideError: () => void;
43
- /** Resets the form to its initial state */
44
- init: () => void;
45
- }
3
+ import { FormHandler } from "./types";
46
4
  /**
47
5
  * {@link Form} is a controlled component designed to handle form data submission, validation, and display of loading or error states.
48
6
  * It allows for optional server-side submission through an action endpoint and customizable success/error handling callbacks.
@@ -52,32 +10,18 @@ export interface FormHandler {
52
10
  * @param props - Properties to configure form behavior, validation messages, submission handling, and visual feedback.
53
11
  * @param ref - Reference to the {@link FormHandler} interface, exposing methods to control loading and error states from the parent.
54
12
  */
55
- declare const Form: import("react").ForwardRefExoticComponent<BoxProps & {
56
- /** Name of form, will be appended to --form-{name} in className
57
- * whitespace will be replaced with dash (-)
58
- */
13
+ declare const Form: import("react").ForwardRefExoticComponent<import("..").BoxProps & {
59
14
  name?: string;
60
- /** The URL to which the form data is submitted */
61
15
  action?: string;
62
- /** List of error messages for form validation */
63
16
  errors?: dynamicObject;
64
- /** Spinner properties for loading indicator */
65
- spinner?: SPINNER;
66
- /** Additional data to include with form submission */
17
+ spinner?: import("../..").SPINNER;
67
18
  withData?: dynamicObject;
68
- /** Handler function called before form submission with validated form data */
69
19
  beforeSubmit?: (data: FormData | dynamicObject) => void;
70
- /** Handler function called on form submission with validated form data */
71
20
  onSubmit?: (data: FormData | dynamicObject) => void;
72
- /** Callback triggered upon successful form submission */
73
21
  onSuccess?: (data: dynamicObject) => void;
74
- /** Callback triggered when form submission encounters an error */
75
22
  onError?: (error: any) => void;
76
- /** Cover properties to display loading or processing message */
77
23
  cover?: {
78
- /** Background color of the loading cover */
79
24
  color?: string;
80
- /** Message displayed during loading */
81
25
  message?: string;
82
26
  } | SheetHandler;
83
27
  resetOnSuccess?: boolean;