@react-fabric/core 1.0.0-beta.5 → 1.0.0-beta.51

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 (373) hide show
  1. package/{src/components/actionLabel/ActionLabel.module.css → css/components/_actionLabel.css} +4 -4
  2. package/{src/overlays/alert/Alert.module.css → css/components/_alert.css} +3 -3
  3. package/{src/components/animations/Animations.module.css → css/components/_animations.css} +9 -9
  4. package/{src/components/avatar/Avatar.module.css → css/components/_avatar.css} +11 -11
  5. package/{src/components/badge/Badge.module.css → css/components/_badge.css} +19 -17
  6. package/{src/components/breadcrumbs/Breadcrumbs.module.css → css/components/_breadcrumbs.css} +49 -44
  7. package/{src/components/button/Button.module.css → css/components/_button.css} +69 -79
  8. package/{src/components/card/Card.module.css → css/components/_card.css} +50 -28
  9. package/{src/components/chip/Chip.module.css → css/components/_chip.css} +14 -10
  10. package/{src/components/collapsable/Collapsable.module.css → css/components/_collapsable.css} +3 -3
  11. package/css/components/_divider.css +38 -0
  12. package/{src/components/dropdown/Dropdown.module.css → css/components/_dropdown.css} +2 -2
  13. package/{src/overlays/flyout/Flyout.module.css → css/components/_flyout.css} +6 -6
  14. package/{src/components/icon/Icon.module.css → css/components/_icon.css} +8 -5
  15. package/{src/components/media/Media.module.css → css/components/_media.css} +17 -17
  16. package/{src/components/menu/Menu.module.css → css/components/_menu.css} +19 -20
  17. package/{src/overlays/message/Message.module.css → css/components/_message.css} +2 -2
  18. package/{src/components/meter/Meter.module.css → css/components/_meter.css} +10 -10
  19. package/{src/overlays/modal/Modal.module.css → css/components/_modal.css} +6 -6
  20. package/{src/components/panel/Panel.module.css → css/components/_panel.css} +17 -17
  21. package/{src/components/progress/Progress.module.css → css/components/_progress.css} +7 -10
  22. package/{src/components/tabpanel/TabPanel.module.css → css/components/_tabPanel.css} +73 -84
  23. package/{src/overlays/toast/Toast.module.css → css/components/_toast.css} +2 -2
  24. package/css/components/_tooltip.css +29 -0
  25. package/{src/core/content/Content.module.css → css/components/index.css} +25 -18
  26. package/{src/core/aside/Aside.module.css → css/core/_aside.css} +56 -42
  27. package/{src/core/section/Section.module.css → css/core/_content.css} +5 -3
  28. package/{src/core/boundary/ErrorBoundary.module.css → css/core/_errorboundary.css} +9 -9
  29. package/{src/core/headfoot/HeadFoot.module.css → css/core/_headfoot.css} +4 -10
  30. package/{src/core/page/Page.module.css → css/core/_page.css} +10 -14
  31. package/{src/core/responsive/Responsive.module.css → css/core/_responsive.css} +10 -10
  32. package/css/core/_section.css +28 -0
  33. package/{src/core/theme/Theme.module.css → css/core/_theme.css} +3 -3
  34. package/{src/typography/Typography.module.css → css/core/_typography.css} +14 -12
  35. package/{src/core/viewport/Viewport.module.css → css/core/_viewport.css} +7 -3
  36. package/css/core/index.css +33 -0
  37. package/css/reset/_gradients.css +8 -8
  38. package/css/reset/_reset.css +42 -224
  39. package/css/reset/_text.css +14 -29
  40. package/css/reset/_theme.css +331 -52
  41. package/css/reset/index.css +4 -4
  42. package/css/styles.css +7 -6
  43. package/css/theme/_colors.css +320 -0
  44. package/css/theme/_utilities.css +530 -0
  45. package/css/theme/index.css +45 -0
  46. package/dist/cjs/components/actionLabel/ActionLabel.js +3 -3
  47. package/dist/cjs/components/animations/Animations.js +29 -18
  48. package/dist/cjs/components/avatar/Avatar.js +10 -13
  49. package/dist/cjs/components/avatar/AvatarGroup.js +3 -3
  50. package/dist/cjs/components/badge/Badge.js +5 -5
  51. package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +10 -8
  52. package/dist/cjs/components/button/Button.js +18 -14
  53. package/dist/cjs/components/button/ButtonGroup.js +4 -3
  54. package/dist/cjs/components/button/ConfirmButton.js +10 -3
  55. package/dist/cjs/components/button/ToggleButtonGroup.js +3 -3
  56. package/dist/cjs/components/callout/Callout.js +16 -4
  57. package/dist/cjs/components/card/Card.js +14 -10
  58. package/dist/cjs/components/card/CardCover.js +10 -5
  59. package/dist/cjs/components/card/FlipContent.js +35 -0
  60. package/dist/cjs/components/chip/Chip.js +11 -7
  61. package/dist/cjs/components/collapsable/Collapsable.js +6 -6
  62. package/dist/cjs/components/divider/Divider.js +11 -7
  63. package/dist/cjs/components/dropdown/Dropdown.js +6 -9
  64. package/dist/cjs/components/dropdown/DropdownTool.js +4 -3
  65. package/dist/cjs/components/empty/EmptyContent.js +8 -5
  66. package/dist/cjs/components/icon/Icon.js +17 -15
  67. package/dist/cjs/components/media/Media.js +116 -75
  68. package/dist/cjs/components/menu/ContextMenu.js +30 -10
  69. package/dist/cjs/components/menu/Menu.js +44 -21
  70. package/dist/cjs/components/menu/MenuItem.js +30 -16
  71. package/dist/cjs/components/meter/Meter.js +2 -3
  72. package/dist/cjs/components/navigator/Navigator.js +26 -13
  73. package/dist/cjs/components/panel/Panel.js +10 -9
  74. package/dist/cjs/components/panel/PanelGroup.js +1 -2
  75. package/dist/cjs/components/progress/ProgressBar.js +10 -9
  76. package/dist/cjs/components/progress/ProgressCircle.js +9 -7
  77. package/dist/cjs/components/tabpanel/Tab.js +58 -38
  78. package/dist/cjs/components/tabpanel/TabPanel.js +20 -16
  79. package/dist/cjs/context/Global.js +3 -0
  80. package/dist/cjs/context/NotificationCenter.js +3 -3
  81. package/dist/cjs/core/aside/Aside.js +11 -10
  82. package/dist/cjs/core/boundary/ErrorBoundary.js +6 -7
  83. package/dist/cjs/core/boundary/ErrorIcon.js +1 -2
  84. package/dist/cjs/core/content/Content.js +9 -7
  85. package/dist/cjs/core/headfoot/HeadFoot.js +2 -20
  86. package/dist/cjs/core/page/Page.js +16 -30
  87. package/dist/cjs/core/responsive/Responsive.js +5 -5
  88. package/dist/cjs/core/section/Section.js +1 -2
  89. package/dist/cjs/core/theme/ThemeProvider.js +11 -9
  90. package/dist/cjs/core/viewport/Viewport.js +4 -2
  91. package/dist/cjs/hooks/useDebounce.js +1 -1
  92. package/dist/cjs/hooks/useEffectDebugger.js +2 -2
  93. package/dist/cjs/hooks/useNavigator.js +6 -4
  94. package/dist/cjs/hooks/useResizeObserver.js +1 -1
  95. package/dist/cjs/hotkeys/HotKeyLabel.js +1 -1
  96. package/dist/cjs/hotkeys/HotKeyWrapper.js +3 -1
  97. package/dist/cjs/index.js +8 -2
  98. package/dist/cjs/overlays/alert/Alert.js +20 -14
  99. package/dist/cjs/overlays/flyout/Flyout.js +49 -60
  100. package/dist/cjs/overlays/message/Message.js +6 -3
  101. package/dist/cjs/overlays/modal/Modal.js +16 -12
  102. package/dist/cjs/overlays/toast/Toast.js +17 -9
  103. package/dist/cjs/overlays/tooltip/Tooltip.js +24 -11
  104. package/dist/cjs/types/icons.js +6 -1
  105. package/dist/cjs/typography/Abbr.js +4 -5
  106. package/dist/cjs/typography/{Link.js → Anchor.js} +5 -4
  107. package/dist/cjs/typography/Mark.js +2 -3
  108. package/dist/cjs/typography/Text.js +3 -4
  109. package/dist/cjs/typography/Title.js +3 -3
  110. package/dist/cjs/utils/cloneElement.js +47 -0
  111. package/dist/cjs/utils/getColor.js +1 -18
  112. package/dist/esm/components/actionLabel/ActionLabel.js +3 -3
  113. package/dist/esm/components/animations/Animations.js +30 -19
  114. package/dist/esm/components/avatar/Avatar.js +11 -14
  115. package/dist/esm/components/avatar/AvatarGroup.js +3 -3
  116. package/dist/esm/components/badge/Badge.js +5 -5
  117. package/dist/esm/components/breadcrumbs/Breadcrumbs.js +10 -8
  118. package/dist/esm/components/button/Button.js +18 -14
  119. package/dist/esm/components/button/ButtonGroup.js +5 -4
  120. package/dist/esm/components/button/ConfirmButton.js +10 -3
  121. package/dist/esm/components/button/ToggleButtonGroup.js +4 -4
  122. package/dist/esm/components/callout/Callout.js +16 -4
  123. package/dist/esm/components/card/Card.js +15 -11
  124. package/dist/esm/components/card/CardCover.js +10 -5
  125. package/dist/esm/components/card/FlipContent.js +35 -0
  126. package/dist/esm/components/chip/Chip.js +12 -8
  127. package/dist/esm/components/collapsable/Collapsable.js +6 -6
  128. package/dist/esm/components/divider/Divider.js +12 -8
  129. package/dist/esm/components/dropdown/Dropdown.js +6 -9
  130. package/dist/esm/components/dropdown/DropdownTool.js +4 -3
  131. package/dist/esm/components/empty/EmptyContent.js +8 -5
  132. package/dist/esm/components/icon/Icon.js +17 -15
  133. package/dist/esm/components/media/Media.js +117 -76
  134. package/dist/esm/components/menu/ContextMenu.js +32 -12
  135. package/dist/esm/components/menu/Menu.js +46 -23
  136. package/dist/esm/components/menu/MenuItem.js +24 -10
  137. package/dist/esm/components/meter/Meter.js +2 -3
  138. package/dist/esm/components/navigator/Navigator.js +26 -13
  139. package/dist/esm/components/panel/Panel.js +10 -9
  140. package/dist/esm/components/panel/PanelGroup.js +1 -2
  141. package/dist/esm/components/progress/ProgressBar.js +10 -9
  142. package/dist/esm/components/progress/ProgressCircle.js +9 -7
  143. package/dist/esm/components/tabpanel/Tab.js +59 -39
  144. package/dist/esm/components/tabpanel/TabPanel.js +20 -16
  145. package/dist/esm/context/Global.js +3 -0
  146. package/dist/esm/context/NotificationCenter.js +3 -3
  147. package/dist/esm/core/aside/Aside.js +11 -10
  148. package/dist/esm/core/boundary/ErrorBoundary.js +6 -7
  149. package/dist/esm/core/boundary/ErrorIcon.js +1 -2
  150. package/dist/esm/core/content/Content.js +9 -7
  151. package/dist/esm/core/headfoot/HeadFoot.js +2 -20
  152. package/dist/esm/core/page/Page.js +16 -30
  153. package/dist/esm/core/responsive/Responsive.js +5 -5
  154. package/dist/esm/core/section/Section.js +1 -2
  155. package/dist/esm/core/theme/ThemeProvider.js +11 -9
  156. package/dist/esm/core/viewport/Viewport.js +4 -2
  157. package/dist/esm/hooks/useDebounce.js +1 -1
  158. package/dist/esm/hooks/useEffectDebugger.js +2 -2
  159. package/dist/esm/hooks/useNavigator.js +7 -5
  160. package/dist/esm/hooks/useResizeObserver.js +1 -1
  161. package/dist/esm/hotkeys/HotKeyLabel.js +1 -1
  162. package/dist/esm/hotkeys/HotKeyWrapper.js +3 -1
  163. package/dist/esm/index.js +4 -1
  164. package/dist/esm/overlays/alert/Alert.js +21 -15
  165. package/dist/esm/overlays/flyout/Flyout.js +52 -63
  166. package/dist/esm/overlays/message/Message.js +7 -4
  167. package/dist/esm/overlays/modal/Modal.js +17 -13
  168. package/dist/esm/overlays/toast/Toast.js +18 -10
  169. package/dist/esm/overlays/tooltip/Tooltip.js +24 -11
  170. package/dist/esm/types/icons.js +6 -1
  171. package/dist/esm/typography/Abbr.js +4 -5
  172. package/dist/esm/typography/{Link.js → Anchor.js} +6 -5
  173. package/dist/esm/typography/Mark.js +2 -3
  174. package/dist/esm/typography/Text.js +4 -5
  175. package/dist/esm/typography/Title.js +4 -4
  176. package/dist/esm/utils/cloneElement.js +47 -0
  177. package/dist/esm/utils/getColor.js +2 -16
  178. package/dist/types/components/actionLabel/ActionLabel.d.ts +2 -2
  179. package/dist/types/components/animations/Animations.d.ts +5 -5
  180. package/dist/types/components/avatar/Avatar.d.ts +3 -3
  181. package/dist/types/components/badge/Badge.d.ts +5 -1
  182. package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts +2 -2
  183. package/dist/types/components/button/Button.d.ts +7 -5
  184. package/dist/types/components/button/ButtonGroup.d.ts +2 -2
  185. package/dist/types/components/button/ConfirmButton.d.ts +6 -1
  186. package/dist/types/components/callout/Callout.d.ts +4 -3
  187. package/dist/types/components/card/Card.d.ts +8 -4
  188. package/dist/types/components/card/FlipContent.d.ts +7 -0
  189. package/dist/types/components/chip/Chip.d.ts +3 -3
  190. package/dist/types/components/collapsable/Collapsable.d.ts +7 -3
  191. package/dist/types/components/divider/Divider.d.ts +11 -7
  192. package/dist/types/components/dropdown/DropdownTool.d.ts +2 -1
  193. package/dist/types/components/empty/EmptyContent.d.ts +6 -2
  194. package/dist/types/components/icon/Icon.d.ts +5 -4
  195. package/dist/types/components/index.d.ts +2 -1
  196. package/dist/types/components/media/Media.d.ts +2 -2
  197. package/dist/types/components/menu/ContextMenu.d.ts +2 -1
  198. package/dist/types/components/menu/MenuItem.d.ts +1 -1
  199. package/dist/types/components/menu/types.d.ts +3 -2
  200. package/dist/types/components/navigator/Navigator.d.ts +7 -4
  201. package/dist/types/components/panel/Panel.d.ts +0 -1
  202. package/dist/types/components/progress/ProgressBar.d.ts +3 -3
  203. package/dist/types/components/progress/ProgressCircle.d.ts +3 -3
  204. package/dist/types/components/tabpanel/Tab.d.ts +5 -5
  205. package/dist/types/components/tabpanel/TabPanel.d.ts +10 -1
  206. package/dist/types/core/boundary/ErrorBoundary.d.ts +1 -1
  207. package/dist/types/core/content/Content.d.ts +3 -2
  208. package/dist/types/core/headfoot/HeadFoot.d.ts +1 -9
  209. package/dist/types/core/page/Page.d.ts +3 -3
  210. package/dist/types/core/responsive/Responsive.d.ts +6 -2
  211. package/dist/types/core/theme/ThemeProvider.d.ts +4 -4
  212. package/dist/types/hooks/useOverlayService.d.ts +3 -5
  213. package/dist/types/hooks/useResize.d.ts +1 -1
  214. package/dist/types/hooks/useResizeObserver.d.ts +1 -1
  215. package/dist/types/index.d.ts +3 -0
  216. package/dist/types/overlays/alert/Alert.d.ts +2 -3
  217. package/dist/types/overlays/flyout/Flyout.d.ts +3 -2
  218. package/dist/types/overlays/message/Message.d.ts +2 -3
  219. package/dist/types/overlays/modal/Modal.d.ts +12 -3
  220. package/dist/types/overlays/toast/Toast.d.ts +2 -3
  221. package/dist/types/overlays/tooltip/Tooltip.d.ts +2 -2
  222. package/dist/types/types/icons.d.ts +6 -1
  223. package/dist/types/types/index.d.ts +26 -6
  224. package/dist/types/typography/Abbr.d.ts +6 -3
  225. package/dist/types/typography/Anchor.d.ts +25 -0
  226. package/dist/types/typography/Mark.d.ts +2 -3
  227. package/dist/types/typography/index.d.ts +1 -1
  228. package/dist/types/utils/cloneElement.d.ts +2 -0
  229. package/dist/types/utils/getColor.d.ts +1 -4
  230. package/dist/types/utils/index.d.ts +1 -0
  231. package/package.json +11 -13
  232. package/src/components/actionLabel/ActionLabel.tsx +15 -6
  233. package/src/components/animations/Animations.tsx +29 -23
  234. package/src/components/avatar/Avatar.tsx +74 -88
  235. package/src/components/avatar/AvatarGroup.tsx +4 -4
  236. package/src/components/badge/Badge.tsx +11 -7
  237. package/src/components/breadcrumbs/Breadcrumbs.tsx +13 -9
  238. package/src/components/button/Button.tsx +27 -22
  239. package/src/components/button/ButtonGroup.tsx +7 -7
  240. package/src/components/button/ConfirmButton.tsx +19 -6
  241. package/src/components/button/ToggleButtonGroup.tsx +5 -5
  242. package/src/components/callout/Callout.tsx +28 -12
  243. package/src/components/card/Card.tsx +30 -15
  244. package/src/components/card/CardCover.tsx +11 -6
  245. package/src/components/card/FlipContent.tsx +69 -0
  246. package/src/components/chip/Chip.tsx +19 -13
  247. package/src/components/collapsable/Collapsable.tsx +12 -7
  248. package/src/components/divider/Divider.tsx +23 -16
  249. package/src/components/dropdown/Dropdown.tsx +6 -11
  250. package/src/components/dropdown/DropdownTool.tsx +5 -3
  251. package/src/components/empty/EmptyContent.tsx +21 -6
  252. package/src/components/icon/Icon.tsx +58 -67
  253. package/src/components/index.ts +2 -1
  254. package/src/components/media/Media.tsx +141 -106
  255. package/src/components/menu/ContextMenu.tsx +36 -11
  256. package/src/components/menu/Menu.tsx +56 -30
  257. package/src/components/menu/MenuItem.tsx +19 -9
  258. package/src/components/menu/types.ts +3 -2
  259. package/src/components/meter/Meter.tsx +2 -3
  260. package/src/components/navigator/Navigator.tsx +36 -7
  261. package/src/components/panel/Panel.tsx +10 -9
  262. package/src/components/panel/PanelGroup.tsx +1 -2
  263. package/src/components/progress/ProgressBar.tsx +13 -14
  264. package/src/components/progress/ProgressCircle.tsx +10 -13
  265. package/src/components/tabpanel/Tab.tsx +81 -64
  266. package/src/components/tabpanel/TabPanel.tsx +34 -12
  267. package/src/context/Global.tsx +4 -0
  268. package/src/context/NotificationCenter.tsx +3 -3
  269. package/src/core/aside/Aside.tsx +11 -10
  270. package/src/core/boundary/ErrorBoundary.tsx +8 -7
  271. package/src/core/boundary/ErrorIcon.tsx +1 -2
  272. package/src/core/content/Content.tsx +17 -12
  273. package/src/core/headfoot/HeadFoot.tsx +2 -35
  274. package/src/core/page/Page.tsx +18 -5
  275. package/src/core/responsive/Responsive.tsx +14 -7
  276. package/src/core/section/Section.tsx +1 -2
  277. package/src/core/theme/ThemeProvider.tsx +14 -13
  278. package/src/core/viewport/Viewport.tsx +1 -2
  279. package/src/hooks/useDebounce.ts +1 -1
  280. package/src/hooks/useEffectDebugger.ts +1 -2
  281. package/src/hooks/useNavigator.tsx +10 -5
  282. package/src/hooks/useOverlayService.tsx +12 -6
  283. package/src/hooks/useResize.ts +1 -1
  284. package/src/hooks/useResizeObserver.ts +13 -9
  285. package/src/hotkeys/HotKeyLabel.tsx +1 -1
  286. package/src/hotkeys/HotKeyWrapper.tsx +3 -1
  287. package/src/index.ts +4 -0
  288. package/src/overlays/alert/Alert.tsx +28 -32
  289. package/src/overlays/flyout/Flyout.tsx +71 -84
  290. package/src/overlays/message/Message.tsx +10 -7
  291. package/src/overlays/modal/Modal.tsx +37 -15
  292. package/src/overlays/toast/Toast.tsx +18 -27
  293. package/src/overlays/tooltip/Tooltip.tsx +43 -18
  294. package/src/types/icons.ts +13 -2
  295. package/src/types/index.ts +268 -27
  296. package/src/typography/Abbr.tsx +16 -10
  297. package/src/typography/{Link.tsx → Anchor.tsx} +8 -13
  298. package/src/typography/Mark.tsx +4 -9
  299. package/src/typography/Text.tsx +4 -12
  300. package/src/typography/Title.tsx +2 -6
  301. package/src/typography/index.ts +1 -1
  302. package/src/{overlays/tooltip/Tooltip.module.css → utils/cloneElement.ts} +21 -27
  303. package/src/utils/getColor.ts +1 -17
  304. package/src/utils/index.ts +1 -0
  305. package/css/index.js +0 -250
  306. package/css/tailwind/colors.ts +0 -158
  307. package/dist/cjs/components/actionLabel/ActionLabel.module.css +0 -1
  308. package/dist/cjs/components/animations/Animations.module.css +0 -1
  309. package/dist/cjs/components/avatar/Avatar.module.css +0 -1
  310. package/dist/cjs/components/badge/Badge.module.css +0 -1
  311. package/dist/cjs/components/breadcrumbs/Breadcrumbs.module.css +0 -1
  312. package/dist/cjs/components/button/Button.module.css +0 -1
  313. package/dist/cjs/components/card/Card.module.css +0 -1
  314. package/dist/cjs/components/chip/Chip.module.css +0 -1
  315. package/dist/cjs/components/collapsable/Collapsable.module.css +0 -1
  316. package/dist/cjs/components/dropdown/Dropdown.module.css +0 -1
  317. package/dist/cjs/components/icon/Icon.module.css +0 -1
  318. package/dist/cjs/components/media/Media.module.css +0 -1
  319. package/dist/cjs/components/menu/Menu.module.css +0 -1
  320. package/dist/cjs/components/meter/Meter.module.css +0 -1
  321. package/dist/cjs/components/panel/Panel.module.css +0 -1
  322. package/dist/cjs/components/progress/Progress.module.css +0 -1
  323. package/dist/cjs/components/tabpanel/TabPanel.module.css +0 -1
  324. package/dist/cjs/core/aside/Aside.module.css +0 -1
  325. package/dist/cjs/core/boundary/ErrorBoundary.module.css +0 -1
  326. package/dist/cjs/core/content/Content.module.css +0 -1
  327. package/dist/cjs/core/headfoot/HeadFoot.module.css +0 -1
  328. package/dist/cjs/core/page/Page.module.css +0 -1
  329. package/dist/cjs/core/responsive/Responsive.module.css +0 -1
  330. package/dist/cjs/core/section/Section.module.css +0 -1
  331. package/dist/cjs/core/theme/Theme.module.css +0 -1
  332. package/dist/cjs/core/viewport/Viewport.module.css +0 -1
  333. package/dist/cjs/overlays/alert/Alert.module.css +0 -1
  334. package/dist/cjs/overlays/flyout/Flyout.module.css +0 -1
  335. package/dist/cjs/overlays/message/Message.module.css +0 -1
  336. package/dist/cjs/overlays/modal/Modal.module.css +0 -1
  337. package/dist/cjs/overlays/toast/Toast.module.css +0 -1
  338. package/dist/cjs/overlays/tooltip/Tooltip.module.css +0 -1
  339. package/dist/cjs/typography/Typography.module.css +0 -1
  340. package/dist/esm/components/actionLabel/ActionLabel.module.css +0 -1
  341. package/dist/esm/components/animations/Animations.module.css +0 -1
  342. package/dist/esm/components/avatar/Avatar.module.css +0 -1
  343. package/dist/esm/components/badge/Badge.module.css +0 -1
  344. package/dist/esm/components/breadcrumbs/Breadcrumbs.module.css +0 -1
  345. package/dist/esm/components/button/Button.module.css +0 -1
  346. package/dist/esm/components/card/Card.module.css +0 -1
  347. package/dist/esm/components/chip/Chip.module.css +0 -1
  348. package/dist/esm/components/collapsable/Collapsable.module.css +0 -1
  349. package/dist/esm/components/dropdown/Dropdown.module.css +0 -1
  350. package/dist/esm/components/icon/Icon.module.css +0 -1
  351. package/dist/esm/components/media/Media.module.css +0 -1
  352. package/dist/esm/components/menu/Menu.module.css +0 -1
  353. package/dist/esm/components/meter/Meter.module.css +0 -1
  354. package/dist/esm/components/panel/Panel.module.css +0 -1
  355. package/dist/esm/components/progress/Progress.module.css +0 -1
  356. package/dist/esm/components/tabpanel/TabPanel.module.css +0 -1
  357. package/dist/esm/core/aside/Aside.module.css +0 -1
  358. package/dist/esm/core/boundary/ErrorBoundary.module.css +0 -1
  359. package/dist/esm/core/content/Content.module.css +0 -1
  360. package/dist/esm/core/headfoot/HeadFoot.module.css +0 -1
  361. package/dist/esm/core/page/Page.module.css +0 -1
  362. package/dist/esm/core/responsive/Responsive.module.css +0 -1
  363. package/dist/esm/core/section/Section.module.css +0 -1
  364. package/dist/esm/core/theme/Theme.module.css +0 -1
  365. package/dist/esm/core/viewport/Viewport.module.css +0 -1
  366. package/dist/esm/overlays/alert/Alert.module.css +0 -1
  367. package/dist/esm/overlays/flyout/Flyout.module.css +0 -1
  368. package/dist/esm/overlays/message/Message.module.css +0 -1
  369. package/dist/esm/overlays/modal/Modal.module.css +0 -1
  370. package/dist/esm/overlays/toast/Toast.module.css +0 -1
  371. package/dist/esm/overlays/tooltip/Tooltip.module.css +0 -1
  372. package/dist/esm/typography/Typography.module.css +0 -1
  373. package/dist/types/typography/Link.d.ts +0 -25
@@ -38,6 +38,8 @@ export declare namespace CoreIcons {
38
38
  const collapseActive = "M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z";
39
39
  const expandAll = "M5.293 16.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414zM18.707 7.293l-6-6c-0.391-0.391-1.024-0.391-1.414 0l-6 6c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z";
40
40
  const colapseAll = "M18.707 21.293l-6-6c-0.391-0.391-1.024-0.391-1.414 0l-6 6c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414zM5.293 2.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
41
+ const expandAllVar = "M13,9V15H16L12,19L8,15H11V9H8L12,5L16,9H13M4,2H20V4H4V2M4,20H20V22H4V20Z";
42
+ const colapseAllVar = "M4,12H20V14H4V12M4,9H20V11H4V9M16,4L12,8L8,4H11V1H13V4H16M8,19L12,15L16,19H13V22H11V19H8Z";
41
43
  const folderClosed = "M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z";
42
44
  const folderOpen = "M6.1,10L4,18V8H21A2,2 0 0,0 19,6H12L10,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H19C19.9,20 20.7,19.4 20.9,18.5L23.2,10H6.1M19,18H6L7.6,12H20.6L19,18Z";
43
45
  const zoomIn = "M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414zM8 12h2v2c0 0.552 0.448 1 1 1s1-0.448 1-1v-2h2c0.552 0 1-0.448 1-1s-0.448-1-1-1h-2v-2c0-0.552-0.448-1-1-1s-1 0.448-1 1v2h-2c-0.552 0-1 0.448-1 1s0.448 1 1 1z";
@@ -46,9 +48,10 @@ export declare namespace CoreIcons {
46
48
  const sortAsc = "M19 7H22L18 3L14 7H17V21H19M2 17H12V19H2M6 5V7H2V5M2 11H9V13H2V11Z";
47
49
  const refresh = "M19.547 14.667c-0.736 2.083-2.245 3.67-4.094 4.553s-4.031 1.061-6.114 0.325-3.67-2.245-4.553-4.094-1.061-4.031-0.325-6.114 2.245-3.67 4.094-4.553 4.031-1.061 6.114-0.325c1.188 0.42 2.209 1.088 2.987 1.882l2.824 2.659h-3.48c-0.552 0-1 0.448-1 1s0.448 1 1 1h5.997c0.004 0 0.009 0 0.013 0 0.137-0.001 0.267-0.030 0.386-0.082 0.119-0.051 0.229-0.126 0.324-0.225 0.012-0.012 0.023-0.025 0.034-0.038 0.076-0.087 0.134-0.184 0.175-0.287s0.065-0.213 0.069-0.328c0.002-0.014 0.002-0.028 0.002-0.042v-5.998c0-0.552-0.448-1-1-1s-1 0.448-1 1v3.685l-2.916-2.745c-0.993-1.012-2.274-1.846-3.748-2.366-2.604-0.921-5.336-0.698-7.644 0.405s-4.197 3.088-5.117 5.692-0.696 5.335 0.406 7.643 3.088 4.197 5.692 5.117 5.335 0.697 7.643-0.406 4.197-3.088 5.117-5.692c0.184-0.521-0.089-1.092-0.61-1.276s-1.092 0.089-1.276 0.61z";
48
50
  const search = "M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z";
51
+ const ellipsis = "M14 12c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414zM14 5c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414zM14 19c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414z";
49
52
  const filter = "M6,13H18V11H6M3,6V8H21V6M10,18H14V16H10V18Z";
50
53
  const funnel = "M19.845 4l-6.609 7.814c-0.147 0.173-0.236 0.399-0.236 0.646v6.922l-2-1v-5.922c0.001-0.227-0.077-0.457-0.236-0.646l-6.609-7.814zM22 2h-20c-0.552 0-1 0.448-1 1 0 0.247 0.089 0.473 0.236 0.646l7.764 9.18v6.174c0 0.389 0.222 0.727 0.553 0.894l4 2c0.494 0.247 1.095 0.047 1.342-0.447 0.072-0.146 0.106-0.301 0.105-0.447v-8.174l7.764-9.18c0.357-0.422 0.304-1.053-0.118-1.409-0.189-0.16-0.419-0.238-0.646-0.237z";
51
- const ellipsis = "M14 12c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414zM14 5c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414zM14 19c0-0.552-0.225-1.053-0.586-1.414s-0.862-0.586-1.414-0.586-1.053 0.225-1.414 0.586-0.586 0.862-0.586 1.414 0.225 1.053 0.586 1.414 0.862 0.586 1.414 0.586 1.053-0.225 1.414-0.586 0.586-0.862 0.586-1.414z";
54
+ const funnelFull = "M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z";
52
55
  const funnelPlus = "M15 17H18V14H20V17H23V19H20V22H18V19H15V17M13 19.88C13.04 20.18 12.94 20.5 12.72 20.71C12.32 21.1 11.69 21.1 11.3 20.71L7.29 16.7C7.06 16.47 6.96 16.16 7 15.87V10.75L2.21 4.62C1.87 4.19 1.95 3.56 2.38 3.22C2.57 3.08 2.78 3 3 3V3H17V3C17.22 3 17.43 3.08 17.62 3.22C18.05 3.56 18.13 4.19 17.79 4.62L13 10.75V19.88M5.04 5L9 10.07V15.58L11 17.58V10.05L14.96 5H5.04Z";
53
56
  const funnelRemove = "M14.73,20.83L17.58,18L14.73,15.17L16.15,13.76L19,16.57L21.8,13.76L23.22,15.17L20.41,18L23.22,20.83L21.8,22.24L19,19.4L16.15,22.24L14.73,20.83M13,19.88C13.04,20.18 12.94,20.5 12.71,20.71C12.32,21.1 11.69,21.1 11.3,20.71L7.29,16.7C7.06,16.47 6.96,16.16 7,15.87V10.75L2.21,4.62C1.87,4.19 1.95,3.56 2.38,3.22C2.57,3.08 2.78,3 3,3V3H17V3C17.22,3 17.43,3.08 17.62,3.22C18.05,3.56 18.13,4.19 17.79,4.62L13,10.75V19.88M5.04,5L9,10.06V15.58L11,17.58V10.05L14.96,5H5.04Z";
54
57
  const funnelMinus = "M15 17H23V19H15V17M13 19.88C13.04 20.18 12.94 20.5 12.72 20.71C12.32 21.1 11.69 21.1 11.3 20.71L7.29 16.7C7.06 16.47 6.96 16.16 7 15.87V10.75L2.21 4.62C1.87 4.19 1.95 3.56 2.38 3.22C2.57 3.08 2.78 3 3 3V3H17V3C17.22 3 17.43 3.08 17.62 3.22C18.05 3.56 18.13 4.19 17.79 4.62L13 10.75V19.88M5.04 5L9 10.07V15.58L11 17.58V10.05L14.96 5H5.04Z";
@@ -105,6 +108,7 @@ export declare namespace CoreIcons {
105
108
  const mic = "M12 2c0.553 0 1.051 0.223 1.414 0.586s0.586 0.861 0.586 1.414v8c0 0.553-0.223 1.051-0.586 1.414s-0.861 0.586-1.414 0.586-1.051-0.223-1.414-0.586-0.586-0.861-0.586-1.414v-8c0-0.553 0.223-1.051 0.586-1.414s0.861-0.586 1.414-0.586zM12 0c-1.104 0-2.106 0.449-2.828 1.172s-1.172 1.724-1.172 2.828v8c0 1.104 0.449 2.106 1.172 2.828s1.724 1.172 2.828 1.172 2.106-0.449 2.828-1.172 1.172-1.724 1.172-2.828v-8c0-1.104-0.449-2.106-1.172-2.828s-1.724-1.172-2.828-1.172zM8 24h8c0.552 0 1-0.448 1-1s-0.448-1-1-1h-3v-2.062c1.809-0.226 3.432-1.056 4.657-2.281 1.446-1.447 2.343-3.448 2.343-5.657v-2c0-0.552-0.448-1-1-1s-1 0.448-1 1v2c0 1.657-0.67 3.156-1.757 4.243s-2.586 1.757-4.243 1.757-3.156-0.67-4.243-1.757-1.757-2.586-1.757-4.243v-2c0-0.552-0.448-1-1-1s-1 0.448-1 1v2c0 2.209 0.897 4.21 2.343 5.657 1.225 1.225 2.847 2.055 4.657 2.281v2.062h-3c-0.552 0-1 0.448-1 1s0.448 1 1 1z";
106
109
  const play = "M5.541 2.159c-0.153-0.1-0.34-0.159-0.541-0.159-0.552 0-1 0.448-1 1v18c-0.001 0.182 0.050 0.372 0.159 0.541 0.299 0.465 0.917 0.599 1.382 0.3l14-9c0.114-0.072 0.219-0.174 0.3-0.3 0.299-0.465 0.164-1.083-0.3-1.382zM6 4.832l11.151 7.168-11.151 7.168z";
107
110
  const pause = "M6 3c-0.552 0-1 0.448-1 1v16c0 0.552 0.448 1 1 1h4c0.552 0 1-0.448 1-1v-16c0-0.552-0.448-1-1-1zM7 5h2v14h-2zM14 3c-0.552 0-1 0.448-1 1v16c0 0.552 0.448 1 1 1h4c0.552 0 1-0.448 1-1v-16c0-0.552-0.448-1-1-1zM15 5h2v14h-2z";
111
+ const stop = "M18,18H6V6H18V18Z";
108
112
  const volumeOn = "M10 7.081v9.839l-3.375-2.7c-0.17-0.137-0.388-0.22-0.625-0.22h-3v-4h3c0.218 0.001 0.439-0.071 0.625-0.219zM10.375 4.219l-4.726 3.781h-3.649c-0.552 0-1 0.448-1 1v6c0 0.552 0.448 1 1 1h3.649l4.726 3.781c0.431 0.345 1.061 0.275 1.406-0.156 0.148-0.185 0.22-0.407 0.219-0.625v-14c0-0.552-0.448-1-1-1-0.237 0-0.455 0.083-0.625 0.219zM18.363 5.637c1.757 1.758 2.635 4.059 2.635 6.364 0 2.304-0.878 4.605-2.635 6.362-0.39 0.391-0.39 1.024 0 1.414s1.024 0.39 1.414 0c2.147-2.147 3.22-4.963 3.221-7.776s-1.074-5.63-3.221-7.778c-0.39-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414zM14.833 9.167c0.781 0.781 1.171 1.803 1.171 2.828s-0.39 2.047-1.171 2.828c-0.39 0.391-0.39 1.024 0 1.414s1.024 0.39 1.414 0c1.171-1.171 1.757-2.708 1.757-4.242s-0.586-3.071-1.757-4.242c-0.39-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
109
113
  const volumeOff = "M10 7.081v9.839l-3.375-2.7c-0.17-0.137-0.388-0.22-0.625-0.22h-3v-4h3c0.218 0.001 0.439-0.071 0.625-0.219zM10.375 4.219l-4.726 3.781h-3.649c-0.552 0-1 0.448-1 1v6c0 0.552 0.448 1 1 1h3.649l4.726 3.781c0.431 0.345 1.061 0.275 1.406-0.156 0.148-0.185 0.22-0.407 0.219-0.625v-14c0-0.552-0.448-1-1-1-0.237 0-0.455 0.083-0.625 0.219zM16.293 9.707l2.293 2.293-2.293 2.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l2.293-2.293 2.293 2.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-2.293-2.293 2.293-2.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-2.293 2.293-2.293-2.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z";
110
114
  const alignLeft = "M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z";
@@ -152,6 +156,7 @@ export declare namespace CoreIcons {
152
156
  const radioOn = "M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z";
153
157
  const colorSwatch = "M16 14V12H17.61C17.85 12.71 18 13.39 18 14H16M15.58 8C15.12 7.29 14.65 6.61 14.2 6H14V8H15.58M16 12V10H14V12H16M16 8.68V10H16.74C16.5 9.56 16.26 9.11 16 8.68M12 16V14H14V12H12V10H14V8H12V6H14V5.73C12.9 4.26 12 3.25 12 3.25S6 10 6 14C6 17.31 8.69 20 12 20V18H14V16H12M14 19.65C14.75 19.39 15.42 19 16 18.46V18H14V19.65M14 16H16V14H14V16M16 18H16.46C17 17.42 17.39 16.75 17.65 16H16V18Z";
154
158
  const colorPicker = "M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z";
159
+ const list = "M11 15H17V17H11V15M9 7H7V9H9V7M11 13H17V11H11V13M11 9H17V7H11V9M9 11H7V13H9V11M21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5M19 5H5V19H19V5M9 15H7V17H9V15Z";
155
160
  /**
156
161
  * alert icons
157
162
  */
@@ -1,9 +1,13 @@
1
1
  import { type Placement } from "@floating-ui/react";
2
2
  import { type JSXElementConstructor, type Ref } from "react";
3
+ export type ModalProps<P = unknown> = P & {
4
+ onClose: (...args: AnyObject) => void;
5
+ };
3
6
  export type SizeType = "xs" | "sm" | "md" | "lg" | "xl";
4
7
  export type SizeTypeWithZero = "xs" | "sm" | "md" | "lg" | "xl" | 0;
5
- export type ColorType = "primary" | "accent" | "info" | "danger" | "success" | "warning";
6
- export type PaletteType = "scarlet" | "pumpkin" | "marigold" | "avacado" | "jade" | "denim" | "iris" | "lilac" | "coral" | "wood" | "silver" | "steel" | "olive" | "sand";
8
+ export type ColorState = "primary" | "accent" | "info" | "danger" | "success" | "warning";
9
+ export type ColorType = "primary-50" | "primary-100" | "primary-200" | "primary-300" | "primary-400" | "primary-500" | "primary-600" | "primary-700" | "primary-800" | "primary-900" | "primary-950" | "accent-50" | "accent-100" | "accent-200" | "accent-300" | "accent-400" | "accent-500" | "accent-600" | "accent-700" | "accent-800" | "accent-900" | "accent-950" | "info-50" | "info-100" | "info-200" | "info-300" | "info-400" | "info-500" | "info-600" | "info-700" | "info-800" | "info-900" | "info-950" | "danger-50" | "danger-100" | "danger-200" | "danger-300" | "danger-400" | "danger-500" | "danger-600" | "danger-700" | "danger-800" | "danger-900" | "danger-950" | "success-50" | "success-100" | "success-200" | "success-300" | "success-400" | "success-500" | "success-600" | "success-700" | "success-800" | "success-900" | "success-950" | "warning-50" | "warning-100" | "warning-200" | "warning-300" | "warning-400" | "warning-500" | "warning-600" | "warning-700" | "warning-800" | "warning-900" | "warning-950";
10
+ export type PaletteType = "scarlet-50" | "scarlet-100" | "scarlet-200" | "scarlet-300" | "scarlet-400" | "scarlet-500" | "scarlet-600" | "scarlet-700" | "scarlet-800" | "scarlet-900" | "scarlet-950" | "pumpkin-50" | "pumpkin-100" | "pumpkin-200" | "pumpkin-300" | "pumpkin-400" | "pumpkin-500" | "pumpkin-600" | "pumpkin-700" | "pumpkin-800" | "pumpkin-900" | "pumpkin-950" | "marigold-50" | "marigold-100" | "marigold-200" | "marigold-300" | "marigold-400" | "marigold-500" | "marigold-600" | "marigold-700" | "marigold-800" | "marigold-900" | "marigold-950" | "avacado-50" | "avacado-100" | "avacado-200" | "avacado-300" | "avacado-400" | "avacado-500" | "avacado-600" | "avacado-700" | "avacado-800" | "avacado-900" | "avacado-950" | "jade-50" | "jade-100" | "jade-200" | "jade-300" | "jade-400" | "jade-500" | "jade-600" | "jade-700" | "jade-800" | "jade-900" | "jade-950" | "denim-50" | "denim-100" | "denim-200" | "denim-300" | "denim-400" | "denim-500" | "denim-600" | "denim-700" | "denim-800" | "denim-900" | "denim-950" | "iris-50" | "iris-100" | "iris-200" | "iris-300" | "iris-400" | "iris-500" | "iris-600" | "iris-700" | "iris-800" | "iris-900" | "iris-950" | "lilac-50" | "lilac-100" | "lilac-200" | "lilac-300" | "lilac-400" | "lilac-500" | "lilac-600" | "lilac-700" | "lilac-800" | "lilac-900" | "lilac-950" | "coral-50" | "coral-100" | "coral-200" | "coral-300" | "coral-400" | "coral-500" | "coral-600" | "coral-700" | "coral-800" | "coral-900" | "coral-950" | "wood-50" | "wood-100" | "wood-200" | "wood-300" | "wood-400" | "wood-500" | "wood-600" | "wood-700" | "wood-800" | "wood-900" | "wood-950" | "silver-50" | "silver-100" | "silver-200" | "silver-300" | "silver-400" | "silver-500" | "silver-600" | "silver-700" | "silver-800" | "silver-900" | "silver-950" | "steel-50" | "steel-100" | "steel-200" | "steel-300" | "steel-400" | "steel-500" | "steel-600" | "steel-700" | "steel-800" | "steel-900" | "steel-950" | "olive-50" | "olive-100" | "olive-200" | "olive-300" | "olive-400" | "olive-500" | "olive-600" | "olive-700" | "olive-800" | "olive-900" | "olive-950" | "sand-50" | "sand-100" | "sand-200" | "sand-300" | "sand-400" | "sand-500" | "sand-600" | "sand-700" | "sand-800" | "sand-900" | "sand-950" | "tint-50" | "tint-100" | "tint-200" | "tint-300" | "tint-400" | "tint-500" | "tint-600" | "tint-700" | "tint-800" | "tint-900" | "tint-950";
7
11
  export type ColorWithGrays = ColorType | "invert" | "dimmed" | "muted";
8
12
  export declare const ThemeColors: string[];
9
13
  export interface TooltipType {
@@ -14,7 +18,11 @@ export interface TooltipType {
14
18
  /**
15
19
  * tooltip color
16
20
  */
17
- color?: ColorType;
21
+ color?: ColorType | PaletteType | string;
22
+ /**
23
+ * text color
24
+ */
25
+ textColor?: ColorType | PaletteType | string;
18
26
  /**
19
27
  * tooltip placement
20
28
  */
@@ -43,6 +51,10 @@ export interface CssProp {
43
51
  * css classname(s)
44
52
  */
45
53
  className?: string;
54
+ /**
55
+ * direction
56
+ */
57
+ dir?: "ltr" | "rtl";
46
58
  }
47
59
  export interface TestProps {
48
60
  /**
@@ -54,7 +66,7 @@ export interface TestProps {
54
66
  */
55
67
  "data-test-value"?: AnyObject;
56
68
  }
57
- export type Elements<T> = React.ReactElement<T> | React.ReactPortal | React.ReactNode | string | number | boolean | null | undefined;
69
+ export type Elements<T> = React.ReactElement<T> | React.ReactNode;
58
70
  export type AriaProps = React.AriaAttributes;
59
71
  /**
60
72
  * For wrapping components
@@ -84,11 +96,11 @@ export interface IconProps {
84
96
  /**
85
97
  * icon background color
86
98
  */
87
- iconBg?: ColorType | string;
99
+ iconBg?: ColorType | PaletteType | string;
88
100
  /**
89
101
  * icon color
90
102
  */
91
- iconColor?: ColorType | string;
103
+ iconColor?: ColorType | PaletteType | string;
92
104
  }
93
105
  export interface CollapseProps {
94
106
  /**
@@ -138,3 +150,11 @@ export interface SizeObject {
138
150
  width: number;
139
151
  height: number;
140
152
  }
153
+ export interface ScrollObject extends PositionObject, SizeObject {
154
+ scrollWidth?: number;
155
+ scrollHeight: number;
156
+ }
157
+ export type ArrayType<T extends readonly any[] | ArrayLike<any> | undefined> = T extends readonly any[] ? T[number] : T extends ArrayLike<any> ? T[number] : undefined;
158
+ export type Complete<T> = {
159
+ [P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
160
+ };
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { type ChildProp, type ColorType, type CssProp } from "../types";
1
+ import { type ChildProp, type ColorType, type CssProp, type PaletteType } from "../types";
3
2
  export interface AbbrProps extends ChildProp<string>, CssProp {
4
3
  /**
5
4
  * content to copy using the tooltip copy action
@@ -10,7 +9,11 @@ export interface AbbrProps extends ChildProp<string>, CssProp {
10
9
  *
11
10
  * [textPart, tooltip, color (class name or color string)]
12
11
  */
13
- abbr: Array<[textPart: string, tooltip: string, color?: ColorType | string]>;
12
+ abbr: Array<[
13
+ textPart: string,
14
+ tooltip: string,
15
+ color?: ColorType | PaletteType | string
16
+ ]>;
14
17
  /**
15
18
  * renderer callback
16
19
  */
@@ -0,0 +1,25 @@
1
+ import { type MouseEventHandler } from "react";
2
+ import { type AriaProps, type ChildrenProp, type ColorType, type CssProp, type PaletteType, type PolymorphicProps, type RefProp, type SizeType } from "../types";
3
+ export interface AnchorProps extends ChildrenProp, CssProp, RefProp, AriaProps {
4
+ /**
5
+ * link background (CSS color / tailwind color)
6
+ */
7
+ bg?: ColorType | PaletteType | string;
8
+ /**
9
+ * link color (CSS color / tailwind color)
10
+ */
11
+ color?: ColorType | PaletteType | string;
12
+ /**
13
+ * link size
14
+ */
15
+ size?: SizeType | number | string;
16
+ /**
17
+ * font family
18
+ */
19
+ family?: "sans" | "serif" | "mono";
20
+ onClick?: MouseEventHandler;
21
+ }
22
+ /**
23
+ * Typography link component
24
+ */
25
+ export declare const Anchor: <Tag extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "a">({ ref, as, children, className, bg, color, family, size, ...aria }: AnchorProps & PolymorphicProps<Tag>) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- import { type ChildProp, type ColorType } from "../types";
1
+ import { type ChildProp, type ColorType, type PaletteType } from "../types";
3
2
  export interface MarkProps extends ChildProp<string> {
4
3
  /**
5
4
  * texts to match and abbreviate within
6
5
  *
7
6
  * [textPart, color (class name or color string)]
8
7
  */
9
- mark: Array<[textPart: string, color?: ColorType | string]>;
8
+ mark: Array<[textPart: string, color?: ColorType | PaletteType | string]>;
10
9
  /**
11
10
  * renderer callback
12
11
  */
@@ -1,6 +1,6 @@
1
1
  export { Abbr } from "./Abbr";
2
+ export { Anchor } from "./Anchor";
2
3
  export { Copy } from "./Copy";
3
- export { Link } from "./Link";
4
4
  export { Mark } from "./Mark";
5
5
  export { Text } from "./Text";
6
6
  export { Title } from "./Title";
@@ -0,0 +1,2 @@
1
+ import { type ReactNode } from "react";
2
+ export declare const cloneChildren: (children: ReactNode, callback: (child: ReactNode, index: number) => ReactNode) => ReactNode;
@@ -1,4 +1 @@
1
- export declare const getColor: (color: string) => string | undefined;
2
- export declare const getBgClass: (bg: string) => string | undefined;
3
- export declare const getColorClass: (color: string) => string | undefined;
4
- export declare const getBorderClass: (color: string) => string | undefined;
1
+ export declare const getColor: (color: string) => string;
@@ -1,3 +1,4 @@
1
1
  export * from "./calculateDimensions";
2
+ export * from "./cloneElement";
2
3
  export * from "./getColor";
3
4
  export * from "./nodeCheck";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/core",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.51",
4
4
  "description": "RUF: Core package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -35,26 +35,24 @@
35
35
  "watch": "npm-run-all -p watch:rollup watch:dts"
36
36
  },
37
37
  "dependencies": {
38
- "@floating-ui/react": "^0.26.24",
39
- "@react-fabric/utilities": "^1.0.0-beta.5",
40
- "@tailwindcss/container-queries": "^0.1.1",
41
- "@tailwindcss/forms": "^0.5.7",
42
- "@tailwindcss/typography": "^0.5.13",
43
- "boring-avatars": "^1.10.2",
38
+ "@floating-ui/react": "^0.27.12",
39
+ "@react-fabric/utilities": "^1.0.0-beta.50",
40
+ "@tailwindcss/postcss": "~4.1.8",
41
+ "boring-avatars": "^1.11.2",
44
42
  "classnames": "^2.5.1",
45
43
  "color": "^4.2.3",
46
44
  "resize-observer-polyfill": "^1.5.1",
47
- "tailwindcss": "^3.4.4"
45
+ "tailwindcss": "^4.1.8"
48
46
  },
49
47
  "peerDependencies": {
50
- "i18next": "^23.15.1",
51
- "react": ">=18.0.0 <20.0.0",
52
- "react-dom": ">=18.0.0 <20.0.0",
53
- "react-i18next": "^15.0.2"
48
+ "i18next": "^25.2.1",
49
+ "react": "^19.0.0",
50
+ "react-dom": "^19.0.0",
51
+ "react-i18next": "^15.5.2"
54
52
  },
55
53
  "engines": {
56
54
  "node": ">=18.12.0",
57
55
  "npm": ">=8.19.0"
58
56
  },
59
- "gitHead": "7d4a7ed1ea9890652826bef58d01c31280d761c8"
57
+ "gitHead": "a1b04de4663045f82992bff2aef8db26608eac74"
60
58
  }
@@ -22,12 +22,20 @@
22
22
  */
23
23
 
24
24
  import classNames from "classnames";
25
- import { type ReactElement, useCallback } from "react";
26
- import { type AriaProps, type ChildProp, type CssProp } from "../../types";
25
+ import { useCallback, type ReactElement } from "react";
26
+ import {
27
+ type AriaProps,
28
+ type ChildProp,
29
+ type CssProp,
30
+ type TestProps,
31
+ } from "../../types";
27
32
  import { ButtonGroup } from "../button/ButtonGroup";
28
- import classes from "./ActionLabel.module.css";
29
33
 
30
- export interface ActionLabelProps extends AriaProps, CssProp, ChildProp {
34
+ export interface ActionLabelProps
35
+ extends AriaProps,
36
+ CssProp,
37
+ ChildProp,
38
+ TestProps {
31
39
  /**
32
40
  * action buttons aligment
33
41
  */
@@ -75,7 +83,7 @@ export const ActionLabel = ({
75
83
  <div
76
84
  className={classNames(
77
85
  className,
78
- classes.actionLabel,
86
+ "fabric-actionLabel",
79
87
  "flex overflow-hidden gap-1 items-center cursor-default select-none",
80
88
  )}
81
89
  data-disabled={disabled}
@@ -83,8 +91,9 @@ export const ActionLabel = ({
83
91
  >
84
92
  <ButtonGroup
85
93
  ref={calculateBasis}
94
+ data-inner-clickable
86
95
  className={classNames(
87
- classes.actions,
96
+ "fabric-actions",
88
97
  "overflow-hidden flex-content",
89
98
  align === "end" && "order-2",
90
99
  )}
@@ -30,19 +30,18 @@ import {
30
30
  type CssProp,
31
31
  type PaletteType,
32
32
  } from "../../types";
33
- import { getColor, getColorClass } from "../../utils";
34
- import classes from "./Animations.module.css";
33
+ import { getColor } from "../../utils";
35
34
 
36
35
  export interface AnimationProps extends CssProp, AriaProps {
37
36
  type?: "info" | "check" | "cross" | "question" | "exclaim";
38
37
  /**
39
38
  * icon color
40
39
  */
41
- color?: ColorType | PaletteType;
40
+ color?: ColorType | PaletteType | string;
42
41
  /**
43
42
  * icon mark color
44
43
  */
45
- strokeColor?: ColorType | PaletteType;
44
+ strokeColor?: ColorType | PaletteType | string;
46
45
  }
47
46
 
48
47
  export const AnimationIndicator = ({
@@ -80,10 +79,9 @@ export const AnimationIndicator = ({
80
79
  <svg
81
80
  data-ref="animated-indicator"
82
81
  className={classNames(
83
- classes.checkAnimation,
82
+ "fabric-checkAnimation",
84
83
  className,
85
84
  "inline-block rounded-full",
86
- color && getColorClass(color),
87
85
  )}
88
86
  style={styles}
89
87
  xmlns="http://www.w3.org/2000/svg"
@@ -91,12 +89,14 @@ export const AnimationIndicator = ({
91
89
  aria-hidden="true"
92
90
  {...aria}
93
91
  >
94
- <circle className={classes.circlePart} cx="26" cy="26" r="25" />
92
+ <circle className={"fabric-circlePart"} cx="26" cy="26" r="25" />
95
93
  <path
96
- className={classNames(
97
- classes.iconPart,
98
- getColorClass(strokeColor ?? "invert"),
99
- )}
94
+ className={classNames("fabric-iconPart")}
95
+ style={{
96
+ color: strokeColor
97
+ ? getColor(strokeColor)
98
+ : "var(--text-color-invert)",
99
+ }}
100
100
  d={path}
101
101
  />
102
102
  </svg>
@@ -104,10 +104,10 @@ export const AnimationIndicator = ({
104
104
  };
105
105
 
106
106
  export const AnimationBars = ({
107
- color = "tint",
107
+ color = "tint-500",
108
108
  size = "2rem",
109
109
  }: {
110
- color?: ColorType | string;
110
+ color?: ColorType | PaletteType | string;
111
111
  size?: number | string;
112
112
  }) => {
113
113
  return (
@@ -118,12 +118,12 @@ export const AnimationBars = ({
118
118
  >
119
119
  <div
120
120
  className={classNames(
121
- "outline outline-tint-500/20 p-4 bg-base/50 backdrop-blur-sm rounded",
121
+ "outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded",
122
122
  )}
123
123
  >
124
124
  <div
125
- className={classNames(classes.bars, getColorClass(color + "-500/50"))}
126
- style={{ width: size }}
125
+ className={classNames("fabric-bars")}
126
+ style={{ width: size, color: getColor(color) }}
127
127
  />
128
128
  </div>
129
129
  </div>
@@ -134,7 +134,7 @@ export const AnimationSpinner = ({
134
134
  color = "tint-700",
135
135
  size = "2rem",
136
136
  }: {
137
- color?: ColorType | string;
137
+ color?: ColorType | PaletteType | string;
138
138
  size?: number | string;
139
139
  }) => {
140
140
  return (
@@ -142,15 +142,16 @@ export const AnimationSpinner = ({
142
142
  className={classNames(
143
143
  "absolute inset-0 z-10 flex justify-center items-center cursor-wait",
144
144
  )}
145
+ data-ref="spinner"
145
146
  >
146
147
  <div
147
148
  className={classNames(
148
- "outline outline-tint-500/20 p-4 bg-base/50 backdrop-blur-sm rounded",
149
+ "outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded",
149
150
  )}
150
151
  >
151
152
  <div
152
- className={classNames(classes.spinner, getColorClass(color))}
153
- style={{ width: size }}
153
+ className={classNames("fabric-spinner")}
154
+ style={{ width: size, color: getColor(color) }}
154
155
  />
155
156
  </div>
156
157
  </div>
@@ -161,18 +162,23 @@ export const Loading = () => {
161
162
  return (
162
163
  <div
163
164
  className={classNames(
164
- classes.loader,
165
+ "fabric-loader",
165
166
  "area-[loader] relative overflow-x-clip",
166
167
  )}
168
+ data-ref="loading"
167
169
  >
168
170
  <div className="absolute z-10 py-px inset-x-0 top-0 after:h-0.5 after:block after:bg-primary-500" />
169
171
  </div>
170
172
  );
171
173
  };
172
174
 
173
- export const Skeleton = () => {
175
+ export const Skeleton = ({ className, ...rest }: CssProp) => {
174
176
  return (
175
- <div className={classNames("p-2 animate-pulse flex gap-2 max-w-lg")}>
177
+ <div
178
+ className={classNames(className, "p-2 animate-pulse flex gap-2 max-w-lg")}
179
+ data-ref="skeleton"
180
+ {...rest}
181
+ >
176
182
  <div className="bg-tint-100 rounded aspect-square h-12" />
177
183
  <div className="flex-1 flex flex-col gap-2">
178
184
  <div className="bg-tint-100 h-3 rounded-full" />