@wello-dev/core 1.0.8 → 1.0.10

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 (311) hide show
  1. package/README.md +708 -425
  2. package/dist/{chunk-UAEHGDZX.js → chunk-24BSU7IV.js} +3 -3
  3. package/dist/{chunk-QFN4MBT2.js → chunk-2ALTUYW6.js} +4 -4
  4. package/dist/{chunk-QHJMXGDE.js → chunk-2UNEYJJF.js} +4 -4
  5. package/dist/{chunk-FR7TZXY3.js → chunk-2VG5ZNGU.js} +2 -2
  6. package/dist/{chunk-DJR6BSCZ.js → chunk-37TFLJKE.js} +4 -4
  7. package/dist/{chunk-7KIXQ2XG.js → chunk-3E6CPDFP.js} +10 -12
  8. package/dist/chunk-3E6CPDFP.js.map +1 -0
  9. package/dist/chunk-5I45O67K.js +72 -0
  10. package/dist/chunk-5I45O67K.js.map +1 -0
  11. package/dist/{chunk-N54W2U6W.js → chunk-5K7AQRVG.js} +12 -14
  12. package/dist/chunk-5K7AQRVG.js.map +1 -0
  13. package/dist/{chunk-QIS6W7Q6.js → chunk-73SHWSOJ.js} +4 -4
  14. package/dist/{chunk-2TFJ4SMR.js → chunk-7SSHX2FH.js} +2 -2
  15. package/dist/chunk-7SSHX2FH.js.map +1 -0
  16. package/dist/{chunk-L2V4OD4Q.js → chunk-7TZIUXO2.js} +21 -8
  17. package/dist/chunk-7TZIUXO2.js.map +1 -0
  18. package/dist/{chunk-IK562BNJ.js → chunk-7XVECKHA.js} +86 -2
  19. package/dist/chunk-7XVECKHA.js.map +1 -0
  20. package/dist/{chunk-L5MO7VKZ.js → chunk-AHGQGQR7.js} +4 -4
  21. package/dist/{chunk-UYKK6PVB.js → chunk-ALBB3Y4A.js} +7 -9
  22. package/dist/{chunk-UYKK6PVB.js.map → chunk-ALBB3Y4A.js.map} +1 -1
  23. package/dist/{chunk-SIZ7G2KD.js → chunk-ALXA6LV4.js} +3 -3
  24. package/dist/{chunk-JJXJXOZ7.js → chunk-AP7JH6SR.js} +7 -9
  25. package/dist/chunk-AP7JH6SR.js.map +1 -0
  26. package/dist/{chunk-57ZKN6G3.js → chunk-AXHYEBK3.js} +5 -7
  27. package/dist/{chunk-57ZKN6G3.js.map → chunk-AXHYEBK3.js.map} +1 -1
  28. package/dist/{chunk-TIZEUZHC.js → chunk-BJP7LO5W.js} +4 -4
  29. package/dist/{chunk-3NXEX2BT.js → chunk-BU75W7Q4.js} +4 -4
  30. package/dist/{chunk-BVUV3Y3X.js → chunk-C3KE4QQD.js} +1 -1
  31. package/dist/chunk-C3KE4QQD.js.map +1 -0
  32. package/dist/{chunk-5N3F6CKC.js → chunk-CAPV377R.js} +4 -4
  33. package/dist/{chunk-ESMDK5GY.js → chunk-CCWXF6JK.js} +12 -14
  34. package/dist/{chunk-ESMDK5GY.js.map → chunk-CCWXF6JK.js.map} +1 -1
  35. package/dist/{chunk-DCC7EE67.js → chunk-CJQ25MRL.js} +2 -2
  36. package/dist/{chunk-4L4RMGVI.js → chunk-D6CFOMD6.js} +7 -9
  37. package/dist/{chunk-4L4RMGVI.js.map → chunk-D6CFOMD6.js.map} +1 -1
  38. package/dist/{chunk-EYNM2DF5.js → chunk-DBHYNZDH.js} +9 -11
  39. package/dist/{chunk-EYNM2DF5.js.map → chunk-DBHYNZDH.js.map} +1 -1
  40. package/dist/{chunk-HESG7OWV.js → chunk-DBKYMWUP.js} +4 -4
  41. package/dist/{chunk-GGRLDV5L.js → chunk-EIEOYMGK.js} +4 -4
  42. package/dist/{chunk-ZVXCVBC4.js → chunk-F2WIHXVW.js} +2 -2
  43. package/dist/{chunk-E2765LHX.js → chunk-GB6OBQEK.js} +6 -8
  44. package/dist/chunk-GB6OBQEK.js.map +1 -0
  45. package/dist/chunk-GIOK4AS5.js +171 -0
  46. package/dist/chunk-GIOK4AS5.js.map +1 -0
  47. package/dist/{chunk-NGXT7GNE.js → chunk-GU4YZKAD.js} +8 -10
  48. package/dist/{chunk-NGXT7GNE.js.map → chunk-GU4YZKAD.js.map} +1 -1
  49. package/dist/{chunk-62UUESHU.js → chunk-GW3ZAIEV.js} +4 -4
  50. package/dist/{chunk-TVOR2RGE.js → chunk-GWAJJMJL.js} +4 -4
  51. package/dist/chunk-GZ736JGH.js +201 -0
  52. package/dist/chunk-GZ736JGH.js.map +1 -0
  53. package/dist/{chunk-TWM6DSH4.js → chunk-H3HCCEJ7.js} +4 -6
  54. package/dist/{chunk-TWM6DSH4.js.map → chunk-H3HCCEJ7.js.map} +1 -1
  55. package/dist/{chunk-7PTDAI65.js → chunk-HFIOFIWQ.js} +6 -8
  56. package/dist/{chunk-7PTDAI65.js.map → chunk-HFIOFIWQ.js.map} +1 -1
  57. package/dist/{chunk-2GM6477D.js → chunk-HTEAWFVV.js} +4 -4
  58. package/dist/{chunk-OHP4OBN2.js → chunk-HUBTQ4S3.js} +107 -14
  59. package/dist/chunk-HUBTQ4S3.js.map +1 -0
  60. package/dist/{chunk-APTAGITO.js → chunk-HXPKJWSJ.js} +4 -4
  61. package/dist/{chunk-YFBYWNYF.js → chunk-I4G6MKPE.js} +7 -9
  62. package/dist/{chunk-YFBYWNYF.js.map → chunk-I4G6MKPE.js.map} +1 -1
  63. package/dist/{chunk-NVAE2R5E.js → chunk-IHFRJXPA.js} +55 -44
  64. package/dist/chunk-IHFRJXPA.js.map +1 -0
  65. package/dist/{chunk-R3H3IYNM.js → chunk-JAWGIIWB.js} +3 -3
  66. package/dist/{chunk-BZ222ZYD.js → chunk-JW2KGQCX.js} +4 -4
  67. package/dist/{chunk-E74HEMFS.js → chunk-JXXAEOG2.js} +4 -4
  68. package/dist/{chunk-ZJHKJGKJ.js → chunk-KUPY6OSY.js} +4 -4
  69. package/dist/chunk-L3C4THCP.js +272 -0
  70. package/dist/chunk-L3C4THCP.js.map +1 -0
  71. package/dist/{chunk-VNM5TVQZ.js → chunk-MOD47227.js} +6 -6
  72. package/dist/{chunk-XAHR3DK7.js → chunk-MS3CJJPY.js} +6 -8
  73. package/dist/{chunk-XAHR3DK7.js.map → chunk-MS3CJJPY.js.map} +1 -1
  74. package/dist/{chunk-2WIGWLPL.js → chunk-MYCNM4EU.js} +4 -4
  75. package/dist/{chunk-MWYGXAJQ.js → chunk-NFP7KZR7.js} +5 -7
  76. package/dist/{chunk-MWYGXAJQ.js.map → chunk-NFP7KZR7.js.map} +1 -1
  77. package/dist/{chunk-H4D7LXZL.js → chunk-O2B5VWJ6.js} +2 -2
  78. package/dist/{chunk-7EINGVGG.js → chunk-PC7CWLM6.js} +3 -3
  79. package/dist/{chunk-BMKZFNPD.js → chunk-PGWZVRP7.js} +4 -4
  80. package/dist/chunk-PGWZVRP7.js.map +1 -0
  81. package/dist/chunk-PPCXKPJ5.js +267 -0
  82. package/dist/chunk-PPCXKPJ5.js.map +1 -0
  83. package/dist/{chunk-ZJZUNSCO.js → chunk-PVJ57BID.js} +4 -4
  84. package/dist/{chunk-RJK6AQEW.js → chunk-PXVHUZ5Q.js} +4 -4
  85. package/dist/chunk-QALNO7TY.js +118 -0
  86. package/dist/chunk-QALNO7TY.js.map +1 -0
  87. package/dist/{chunk-RW2ATREO.js → chunk-QWTS5DHG.js} +7 -9
  88. package/dist/{chunk-RW2ATREO.js.map → chunk-QWTS5DHG.js.map} +1 -1
  89. package/dist/{chunk-YTH2T5E4.js → chunk-R34Z5PI6.js} +10 -12
  90. package/dist/{chunk-YTH2T5E4.js.map → chunk-R34Z5PI6.js.map} +1 -1
  91. package/dist/{chunk-NZQI4WL5.js → chunk-RFM3OHDV.js} +8 -8
  92. package/dist/{chunk-YTI5AZL4.js → chunk-RJT2AM3I.js} +6 -8
  93. package/dist/{chunk-YTI5AZL4.js.map → chunk-RJT2AM3I.js.map} +1 -1
  94. package/dist/{chunk-K3B2RENY.js → chunk-RKE7LVU5.js} +15 -15
  95. package/dist/chunk-RKE7LVU5.js.map +1 -0
  96. package/dist/{chunk-CVIHRO4Q.js → chunk-RR4NJMJV.js} +5 -7
  97. package/dist/{chunk-CVIHRO4Q.js.map → chunk-RR4NJMJV.js.map} +1 -1
  98. package/dist/{chunk-5SQC5LKY.js → chunk-S46Q6UWM.js} +3 -3
  99. package/dist/{chunk-KPWAEDRU.js → chunk-SOL7LLRA.js} +9 -9
  100. package/dist/{chunk-KPWAEDRU.js.map → chunk-SOL7LLRA.js.map} +1 -1
  101. package/dist/{chunk-2A6MTZBO.js → chunk-SSMOQDZN.js} +4 -4
  102. package/dist/{chunk-4QBFXTYH.js → chunk-T324OFTR.js} +4 -6
  103. package/dist/{chunk-4QBFXTYH.js.map → chunk-T324OFTR.js.map} +1 -1
  104. package/dist/{chunk-XPSIP4MN.js → chunk-U6Y4OQOV.js} +12 -12
  105. package/dist/chunk-U6Y4OQOV.js.map +1 -0
  106. package/dist/{chunk-ZMR3K4MX.js → chunk-UCB5LY5G.js} +4 -4
  107. package/dist/{chunk-NOYSHU5U.js → chunk-UF2OB25K.js} +6 -8
  108. package/dist/chunk-UF2OB25K.js.map +1 -0
  109. package/dist/{chunk-VIO22OUP.js → chunk-UFHP3FHF.js} +5 -5
  110. package/dist/{chunk-CGR72YL6.js → chunk-UYSN5ABM.js} +7 -9
  111. package/dist/chunk-UYSN5ABM.js.map +1 -0
  112. package/dist/{chunk-7JGIQGZP.js → chunk-V2BJI7DA.js} +5 -7
  113. package/dist/{chunk-7JGIQGZP.js.map → chunk-V2BJI7DA.js.map} +1 -1
  114. package/dist/{chunk-EJ7ZXISQ.js → chunk-VSUI3XK6.js} +4 -6
  115. package/dist/{chunk-EJ7ZXISQ.js.map → chunk-VSUI3XK6.js.map} +1 -1
  116. package/dist/{chunk-3Z5OAUG3.js → chunk-W4RZKCSN.js} +6 -6
  117. package/dist/{chunk-JZJ5R7XW.js → chunk-WESDWEMX.js} +6 -8
  118. package/dist/{chunk-JZJ5R7XW.js.map → chunk-WESDWEMX.js.map} +1 -1
  119. package/dist/{chunk-GSLJSEUI.js → chunk-WMI5K6FE.js} +8 -10
  120. package/dist/chunk-WMI5K6FE.js.map +1 -0
  121. package/dist/{chunk-GKBBDYNB.js → chunk-WQAJTF24.js} +4 -4
  122. package/dist/{chunk-HSJ27BGL.js → chunk-WVJ5TCCL.js} +4 -4
  123. package/dist/{chunk-B3LVDQJU.js → chunk-XHD3U7DZ.js} +4 -4
  124. package/dist/chunk-XP4BYVID.js +161 -0
  125. package/dist/chunk-XP4BYVID.js.map +1 -0
  126. package/dist/{chunk-DHAMBKCR.js → chunk-YZLPRSJQ.js} +4 -4
  127. package/dist/{chunk-7S7RIVCI.js → chunk-Z4GFLFTW.js} +7 -9
  128. package/dist/{chunk-7S7RIVCI.js.map → chunk-Z4GFLFTW.js.map} +1 -1
  129. package/dist/{chunk-3E3X5RLN.js → chunk-Z5ZC7BIC.js} +4 -4
  130. package/dist/{chunk-O6A7IBIW.js → chunk-ZECMUHW2.js} +3 -3
  131. package/dist/{chunk-MYHAWRIV.js → chunk-ZEP2ULSL.js} +2 -2
  132. package/dist/{chunk-HIYHBWWU.js → chunk-ZFDCQN3H.js} +10 -12
  133. package/dist/{chunk-HIYHBWWU.js.map → chunk-ZFDCQN3H.js.map} +1 -1
  134. package/dist/{chunk-TIVOXLDX.js → chunk-ZGHHUVPX.js} +2 -2
  135. package/dist/chunk-ZGHHUVPX.js.map +1 -0
  136. package/dist/{chunk-ECFQDEFL.js → chunk-ZNJS7NVN.js} +8 -10
  137. package/dist/chunk-ZNJS7NVN.js.map +1 -0
  138. package/dist/components/Accordion/Accordion.js +8 -7
  139. package/dist/components/ActionIcon/ActionIcon.js +6 -7
  140. package/dist/components/Alert/Alert.js +8 -9
  141. package/dist/components/AlertDialog/AlertDialog.js +47 -0
  142. package/dist/components/Anchor/Anchor.js +5 -6
  143. package/dist/components/Avatar/Avatar.js +4 -5
  144. package/dist/components/Badge/Badge.js +5 -6
  145. package/dist/components/Blockquote/Blockquote.js +4 -5
  146. package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -6
  147. package/dist/components/Burger/Burger.js +5 -6
  148. package/dist/components/Button/Button.js +7 -8
  149. package/dist/components/Card/Card.js +20 -7
  150. package/dist/components/Carousel/Carousel.js +4 -5
  151. package/dist/components/Center/Center.js +4 -5
  152. package/dist/components/Checkbox/Checkbox.js +9 -10
  153. package/dist/components/Chip/Chip.js +4 -5
  154. package/dist/components/CloseButton/CloseButton.js +7 -8
  155. package/dist/components/Code/Code.js +4 -5
  156. package/dist/components/Collapse/Collapse.js +12 -7
  157. package/dist/components/ColorPicker/ColorInput.js +17 -16
  158. package/dist/components/ColorPicker/ColorPicker.js +5 -6
  159. package/dist/components/Combobox/Combobox.js +14 -13
  160. package/dist/components/Combobox/Pill.js +9 -10
  161. package/dist/components/Combobox/Select.js +18 -17
  162. package/dist/components/Combobox/TagsInput.js +18 -17
  163. package/dist/components/Command/Command.js +42 -0
  164. package/dist/components/Container/Container.js +4 -5
  165. package/dist/components/CopyButton/CopyButton.js +3 -4
  166. package/dist/components/CornerDialog/CornerDialog.js +19 -0
  167. package/dist/components/Dialog/Dialog.js +36 -13
  168. package/dist/components/Divider/Divider.js +4 -5
  169. package/dist/components/DropdownMenu/DropdownMenu.js +50 -0
  170. package/dist/components/Dropzone/Dropzone.js +15 -16
  171. package/dist/components/EmptyState/EmptyState.js +4 -5
  172. package/dist/components/Field/Field.js +9 -10
  173. package/dist/components/FileButton/FileButton.js +3 -4
  174. package/dist/components/Flex/Flex.js +4 -5
  175. package/dist/components/Grid/Grid.js +4 -5
  176. package/dist/components/Group/Group.js +4 -5
  177. package/dist/components/Image/Image.js +4 -5
  178. package/dist/components/Indicator/Indicator.js +4 -5
  179. package/dist/components/Input/Input.js +8 -9
  180. package/dist/components/List/List.js +4 -5
  181. package/dist/components/Loader/Loader.js +4 -5
  182. package/dist/components/Menu/Menu.js +11 -10
  183. package/dist/components/Modal/Drawer.js +12 -13
  184. package/dist/components/Modal/Modal.js +12 -13
  185. package/dist/components/Modal/ModalBase.js +11 -12
  186. package/dist/components/NavLink/NavLink.js +8 -7
  187. package/dist/components/Notification/Notification.js +8 -9
  188. package/dist/components/NumberFormatter/NumberFormatter.js +3 -4
  189. package/dist/components/Overlay/Overlay.js +6 -7
  190. package/dist/components/Pagination/Pagination.js +5 -6
  191. package/dist/components/Paper/Paper.js +4 -5
  192. package/dist/components/PhoneInput/PhoneInput.js +20 -19
  193. package/dist/components/PinInput/PinInput.js +4 -5
  194. package/dist/components/Popover/Popover.js +21 -8
  195. package/dist/components/Portal/Portal.js +3 -4
  196. package/dist/components/Progress/Progress.js +4 -5
  197. package/dist/components/RingProgress/RingProgress.js +4 -5
  198. package/dist/components/ScrollArea/ScrollArea.js +4 -5
  199. package/dist/components/Sheet/Sheet.js +41 -0
  200. package/dist/components/SimpleGrid/SimpleGrid.js +4 -5
  201. package/dist/components/Skeleton/Skeleton.js +4 -5
  202. package/dist/components/Slider/Slider.js +4 -5
  203. package/dist/components/Spoiler/Spoiler.js +6 -7
  204. package/dist/components/Stack/Stack.js +4 -5
  205. package/dist/components/Stepper/Stepper.js +6 -7
  206. package/dist/components/Table/Table.js +18 -19
  207. package/dist/components/Tabs/Tabs.js +5 -6
  208. package/dist/components/Text/Text.js +4 -5
  209. package/dist/components/TextInput/TextInput.js +10 -11
  210. package/dist/components/ThemeIcon/ThemeIcon.js +4 -5
  211. package/dist/components/ThemeToggle/ThemeToggle.js +8 -9
  212. package/dist/components/Timeline/Timeline.js +4 -5
  213. package/dist/components/Title/Title.js +4 -5
  214. package/dist/components/Toggle/Toggle.js +5 -6
  215. package/dist/components/Tooltip/Tooltip.js +18 -10
  216. package/dist/components/Transition/Transition.js +3 -4
  217. package/dist/components/Typography/Typography.js +4 -5
  218. package/dist/components/UnstyledButton/UnstyledButton.js +4 -5
  219. package/dist/components/VisuallyHidden/VisuallyHidden.js +3 -4
  220. package/dist/core/index.js +13 -15
  221. package/dist/index.cjs +2427 -2061
  222. package/dist/index.cjs.map +1 -1
  223. package/dist/index.d.cts +1512 -1494
  224. package/dist/index.d.ts +1512 -1494
  225. package/dist/index.js +268 -282
  226. package/dist/styles.css +3846 -3806
  227. package/package.json +78 -78
  228. package/dist/chunk-2TFJ4SMR.js.map +0 -1
  229. package/dist/chunk-5BD5JJVJ.js +0 -71
  230. package/dist/chunk-5BD5JJVJ.js.map +0 -1
  231. package/dist/chunk-652ZEQV7.js +0 -268
  232. package/dist/chunk-652ZEQV7.js.map +0 -1
  233. package/dist/chunk-7KIXQ2XG.js.map +0 -1
  234. package/dist/chunk-BMKZFNPD.js.map +0 -1
  235. package/dist/chunk-BVUV3Y3X.js.map +0 -1
  236. package/dist/chunk-CGR72YL6.js.map +0 -1
  237. package/dist/chunk-E2765LHX.js.map +0 -1
  238. package/dist/chunk-ECFQDEFL.js.map +0 -1
  239. package/dist/chunk-GSLJSEUI.js.map +0 -1
  240. package/dist/chunk-HBBXBVK6.js +0 -61
  241. package/dist/chunk-HBBXBVK6.js.map +0 -1
  242. package/dist/chunk-IK562BNJ.js.map +0 -1
  243. package/dist/chunk-JHBUYAOW.js +0 -203
  244. package/dist/chunk-JHBUYAOW.js.map +0 -1
  245. package/dist/chunk-JJXJXOZ7.js.map +0 -1
  246. package/dist/chunk-K3B2RENY.js.map +0 -1
  247. package/dist/chunk-L2V4OD4Q.js.map +0 -1
  248. package/dist/chunk-MO6GW5AX.js +0 -85
  249. package/dist/chunk-MO6GW5AX.js.map +0 -1
  250. package/dist/chunk-MWWNTAPV.js +0 -276
  251. package/dist/chunk-MWWNTAPV.js.map +0 -1
  252. package/dist/chunk-N54W2U6W.js.map +0 -1
  253. package/dist/chunk-NOYSHU5U.js.map +0 -1
  254. package/dist/chunk-NVAE2R5E.js.map +0 -1
  255. package/dist/chunk-OHP4OBN2.js.map +0 -1
  256. package/dist/chunk-ORHFHJKL.js +0 -89
  257. package/dist/chunk-ORHFHJKL.js.map +0 -1
  258. package/dist/chunk-TIVOXLDX.js.map +0 -1
  259. package/dist/chunk-XPSIP4MN.js.map +0 -1
  260. package/dist/shadcn/Command.js +0 -45
  261. package/dist/shadcn/Dialog.js +0 -80
  262. package/dist/shadcn/Floating.js +0 -74
  263. package/dist/shadcn/Parts.js +0 -53
  264. package/dist/shadcn/shared.js +0 -20
  265. /package/dist/{chunk-UAEHGDZX.js.map → chunk-24BSU7IV.js.map} +0 -0
  266. /package/dist/{chunk-QFN4MBT2.js.map → chunk-2ALTUYW6.js.map} +0 -0
  267. /package/dist/{chunk-QHJMXGDE.js.map → chunk-2UNEYJJF.js.map} +0 -0
  268. /package/dist/{chunk-FR7TZXY3.js.map → chunk-2VG5ZNGU.js.map} +0 -0
  269. /package/dist/{chunk-DJR6BSCZ.js.map → chunk-37TFLJKE.js.map} +0 -0
  270. /package/dist/{chunk-QIS6W7Q6.js.map → chunk-73SHWSOJ.js.map} +0 -0
  271. /package/dist/{chunk-L5MO7VKZ.js.map → chunk-AHGQGQR7.js.map} +0 -0
  272. /package/dist/{chunk-SIZ7G2KD.js.map → chunk-ALXA6LV4.js.map} +0 -0
  273. /package/dist/{chunk-TIZEUZHC.js.map → chunk-BJP7LO5W.js.map} +0 -0
  274. /package/dist/{chunk-3NXEX2BT.js.map → chunk-BU75W7Q4.js.map} +0 -0
  275. /package/dist/{chunk-5N3F6CKC.js.map → chunk-CAPV377R.js.map} +0 -0
  276. /package/dist/{chunk-DCC7EE67.js.map → chunk-CJQ25MRL.js.map} +0 -0
  277. /package/dist/{chunk-HESG7OWV.js.map → chunk-DBKYMWUP.js.map} +0 -0
  278. /package/dist/{chunk-GGRLDV5L.js.map → chunk-EIEOYMGK.js.map} +0 -0
  279. /package/dist/{chunk-ZVXCVBC4.js.map → chunk-F2WIHXVW.js.map} +0 -0
  280. /package/dist/{chunk-62UUESHU.js.map → chunk-GW3ZAIEV.js.map} +0 -0
  281. /package/dist/{chunk-TVOR2RGE.js.map → chunk-GWAJJMJL.js.map} +0 -0
  282. /package/dist/{chunk-2GM6477D.js.map → chunk-HTEAWFVV.js.map} +0 -0
  283. /package/dist/{chunk-APTAGITO.js.map → chunk-HXPKJWSJ.js.map} +0 -0
  284. /package/dist/{chunk-R3H3IYNM.js.map → chunk-JAWGIIWB.js.map} +0 -0
  285. /package/dist/{chunk-BZ222ZYD.js.map → chunk-JW2KGQCX.js.map} +0 -0
  286. /package/dist/{chunk-E74HEMFS.js.map → chunk-JXXAEOG2.js.map} +0 -0
  287. /package/dist/{chunk-ZJHKJGKJ.js.map → chunk-KUPY6OSY.js.map} +0 -0
  288. /package/dist/{chunk-VNM5TVQZ.js.map → chunk-MOD47227.js.map} +0 -0
  289. /package/dist/{chunk-2WIGWLPL.js.map → chunk-MYCNM4EU.js.map} +0 -0
  290. /package/dist/{chunk-H4D7LXZL.js.map → chunk-O2B5VWJ6.js.map} +0 -0
  291. /package/dist/{chunk-7EINGVGG.js.map → chunk-PC7CWLM6.js.map} +0 -0
  292. /package/dist/{chunk-ZJZUNSCO.js.map → chunk-PVJ57BID.js.map} +0 -0
  293. /package/dist/{chunk-RJK6AQEW.js.map → chunk-PXVHUZ5Q.js.map} +0 -0
  294. /package/dist/{chunk-NZQI4WL5.js.map → chunk-RFM3OHDV.js.map} +0 -0
  295. /package/dist/{chunk-5SQC5LKY.js.map → chunk-S46Q6UWM.js.map} +0 -0
  296. /package/dist/{chunk-2A6MTZBO.js.map → chunk-SSMOQDZN.js.map} +0 -0
  297. /package/dist/{chunk-ZMR3K4MX.js.map → chunk-UCB5LY5G.js.map} +0 -0
  298. /package/dist/{chunk-VIO22OUP.js.map → chunk-UFHP3FHF.js.map} +0 -0
  299. /package/dist/{chunk-3Z5OAUG3.js.map → chunk-W4RZKCSN.js.map} +0 -0
  300. /package/dist/{chunk-GKBBDYNB.js.map → chunk-WQAJTF24.js.map} +0 -0
  301. /package/dist/{chunk-HSJ27BGL.js.map → chunk-WVJ5TCCL.js.map} +0 -0
  302. /package/dist/{chunk-B3LVDQJU.js.map → chunk-XHD3U7DZ.js.map} +0 -0
  303. /package/dist/{chunk-DHAMBKCR.js.map → chunk-YZLPRSJQ.js.map} +0 -0
  304. /package/dist/{chunk-3E3X5RLN.js.map → chunk-Z5ZC7BIC.js.map} +0 -0
  305. /package/dist/{chunk-O6A7IBIW.js.map → chunk-ZECMUHW2.js.map} +0 -0
  306. /package/dist/{chunk-MYHAWRIV.js.map → chunk-ZEP2ULSL.js.map} +0 -0
  307. /package/dist/{shadcn/Command.js.map → components/AlertDialog/AlertDialog.js.map} +0 -0
  308. /package/dist/{shadcn/Dialog.js.map → components/Command/Command.js.map} +0 -0
  309. /package/dist/{shadcn/Floating.js.map → components/CornerDialog/CornerDialog.js.map} +0 -0
  310. /package/dist/{shadcn/Parts.js.map → components/DropdownMenu/DropdownMenu.js.map} +0 -0
  311. /package/dist/{shadcn/shared.js.map → components/Sheet/Sheet.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -2,11 +2,11 @@ import * as react from 'react';
2
2
  import { CSSProperties, ReactNode, ForwardRefExoticComponent, ElementType, ReactElement, RefAttributes, AllHTMLAttributes, ComponentPropsWithoutRef, ComponentPropsWithRef, ForwardRefRenderFunction, Provider, Ref, RefCallback, HTMLAttributes, SVGProps, ComponentProps, ChangeEvent } from 'react';
3
3
  export { ReactNode } from 'react';
4
4
  import { AxiosRequestConfig, AxiosResponse, AxiosInstance } from 'axios';
5
+ import { Command as Command$1 } from 'cmdk';
5
6
  import { Swiper } from 'swiper';
6
7
  export { Swiper as SwiperInstance } from 'swiper';
7
8
  import { SwiperOptions, SwiperModule } from 'swiper/types';
8
9
  export { SwiperModule, SwiperOptions } from 'swiper/types';
9
- import { Command as Command$1 } from 'cmdk';
10
10
 
11
11
  type WelloSize = "xs" | "sm" | "md" | "lg" | "xl";
12
12
  type WelloBreakpoint = WelloSize;
@@ -898,7 +898,7 @@ type LoaderFactory = {
898
898
  */
899
899
  declare const Loader: PolymorphicComponent<LoaderFactory>;
900
900
 
901
- /** shadcn/ui names and the extended names; every one honours `color`. */
901
+ /** Common variant names and the extended names; every one honours `color`. */
902
902
  type ButtonVariant = "default" | "outline" | "secondary" | "ghost" | "destructive" | "success" | "warning" | "info" | "link" | "filled" | "light" | "subtle" | "transparent" | "white" | "gradient";
903
903
  type ButtonSize = "default" | WelloSize | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | `compact-${WelloSize}`;
904
904
  type ButtonStylesNames = "root" | "inner" | "loader" | "section" | "label";
@@ -948,7 +948,7 @@ type ButtonFactory = {
948
948
  };
949
949
  };
950
950
  /**
951
- * Button: the shadcn/ui API (`variant`, `size`, `asChild`) and the extended one (`color`,
951
+ * Button: the common API (`variant`, `size`, `asChild`) and the extended one (`color`,
952
952
  * `leftSection`, `loading`, `component`, Styles API). `color` works with every variant.
953
953
  *
954
954
  * @example
@@ -1734,42 +1734,42 @@ interface TableProps extends BoxProps, StylesApiProps<TableStylesNames, TablePro
1734
1734
  fz?: BoxProps["fz"];
1735
1735
  children?: ReactNode;
1736
1736
  }
1737
- declare const TableThead: WelloComponent<{
1737
+ declare const TableHeader: WelloComponent<{
1738
1738
  props: BoxProps & {
1739
1739
  children?: ReactNode;
1740
1740
  } & Record<string, unknown>;
1741
1741
  ref: HTMLElement;
1742
1742
  stylesNames: TableStylesNames;
1743
1743
  }>;
1744
- declare const TableTbody: WelloComponent<{
1744
+ declare const TableBody: WelloComponent<{
1745
1745
  props: BoxProps & {
1746
1746
  children?: ReactNode;
1747
1747
  } & Record<string, unknown>;
1748
1748
  ref: HTMLElement;
1749
1749
  stylesNames: TableStylesNames;
1750
1750
  }>;
1751
- declare const TableTfoot: WelloComponent<{
1751
+ declare const TableFooter: WelloComponent<{
1752
1752
  props: BoxProps & {
1753
1753
  children?: ReactNode;
1754
1754
  } & Record<string, unknown>;
1755
1755
  ref: HTMLElement;
1756
1756
  stylesNames: TableStylesNames;
1757
1757
  }>;
1758
- declare const TableTr: WelloComponent<{
1758
+ declare const TableRow: WelloComponent<{
1759
1759
  props: BoxProps & {
1760
1760
  children?: ReactNode;
1761
1761
  } & Record<string, unknown>;
1762
1762
  ref: HTMLElement;
1763
1763
  stylesNames: TableStylesNames;
1764
1764
  }>;
1765
- declare const TableTh: WelloComponent<{
1765
+ declare const TableHead: WelloComponent<{
1766
1766
  props: BoxProps & {
1767
1767
  children?: ReactNode;
1768
1768
  } & Record<string, unknown>;
1769
1769
  ref: HTMLElement;
1770
1770
  stylesNames: TableStylesNames;
1771
1771
  }>;
1772
- declare const TableTd: WelloComponent<{
1772
+ declare const TableCell: WelloComponent<{
1773
1773
  props: BoxProps & {
1774
1774
  children?: ReactNode;
1775
1775
  } & Record<string, unknown>;
@@ -1813,12 +1813,12 @@ declare const Table: WelloComponent<{
1813
1813
  ref: HTMLTableElement;
1814
1814
  stylesNames: TableStylesNames;
1815
1815
  staticComponents: {
1816
- Thead: typeof TableThead;
1817
- Tbody: typeof TableTbody;
1818
- Tfoot: typeof TableTfoot;
1819
- Tr: typeof TableTr;
1820
- Th: typeof TableTh;
1821
- Td: typeof TableTd;
1816
+ Thead: typeof TableHeader;
1817
+ Tbody: typeof TableBody;
1818
+ Tfoot: typeof TableFooter;
1819
+ Tr: typeof TableRow;
1820
+ Th: typeof TableHead;
1821
+ Td: typeof TableCell;
1822
1822
  Caption: typeof TableCaption;
1823
1823
  ScrollContainer: typeof TableScrollContainer;
1824
1824
  };
@@ -1890,9 +1890,8 @@ declare const Divider: WelloComponent<{
1890
1890
  stylesNames: DividerStylesNames;
1891
1891
  }>;
1892
1892
 
1893
- interface CollapseProps extends BoxProps {
1894
- /** Open or closed */
1895
- in: boolean;
1893
+ /** Animation options shared by `<Collapse>` (panel) and `<CollapseContent>`. */
1894
+ interface CollapseAnimationProps {
1896
1895
  /** Default: 200 */
1897
1896
  transitionDuration?: number;
1898
1897
  /** Default: 'ease' */
@@ -1903,18 +1902,49 @@ interface CollapseProps extends BoxProps {
1903
1902
  onTransitionEnd?: () => void;
1904
1903
  /** Keep children rendered while closed (default). `false` unmounts them after closing */
1905
1904
  keepMounted?: boolean;
1905
+ }
1906
+ interface CollapseProps extends BoxProps, CollapseAnimationProps {
1907
+ /**
1908
+ * Open or closed (controlled). With a `CollapseContent` inside, `Collapse` is the container and
1909
+ * `CollapseContent` animates; without one, `Collapse` itself is the animated panel.
1910
+ */
1911
+ open?: boolean;
1912
+ /** Same as `open` (older name, still supported). */
1913
+ in?: boolean;
1914
+ /** Initial open state when `open` is not set. Default: false */
1915
+ defaultOpen?: boolean;
1916
+ /** Called with the new open state (from `CollapseTrigger`) */
1917
+ onOpenChange?: (open: boolean) => void;
1918
+ /** `CollapseTrigger` does nothing */
1919
+ disabled?: boolean;
1906
1920
  children?: ReactNode;
1907
1921
  }
1908
1922
  /**
1909
- * Animated show / hide of content of any height.
1923
+ * Animated show / hide of content of any height. `open` works the same both ways:
1910
1924
  *
1911
1925
  * @example
1912
- * <Collapse in={opened}><Text>Details</Text></Collapse>
1926
+ * // The panel, opened by your own state
1927
+ * <Collapse open={opened}><Text>Details</Text></Collapse>
1928
+ *
1929
+ * // With a trigger: CollapseContent animates, CollapseTrigger changes `open`
1930
+ * <Collapse>
1931
+ * <CollapseTrigger asChild><Button variant="ghost">Details</Button></CollapseTrigger>
1932
+ * <CollapseContent><Text>Details</Text></CollapseContent>
1933
+ * </Collapse>
1913
1934
  */
1914
1935
  declare const Collapse: WelloComponent<{
1915
1936
  props: CollapseProps;
1916
1937
  ref: HTMLDivElement;
1917
1938
  }>;
1939
+ /** Opens / closes the nearest `<Collapse>`. A `Button` child is used as the trigger itself. */
1940
+ declare function CollapseTrigger({ disabled: disabledProp, ...props }: ComponentProps<"button"> & {
1941
+ asChild?: boolean;
1942
+ }): react.JSX.Element;
1943
+ interface CollapseContentProps extends BoxProps, CollapseAnimationProps {
1944
+ children?: ReactNode;
1945
+ }
1946
+ /** The animated content of the nearest `<Collapse>`. */
1947
+ declare function CollapseContent({ children, ...props }: CollapseContentProps): react.JSX.Element;
1918
1948
 
1919
1949
  interface PortalProps {
1920
1950
  /** Element or selector to render into. Default: a new `<div>` in `document.body` */
@@ -2316,831 +2346,1305 @@ declare const Alert: WelloComponent<{
2316
2346
  stylesNames: AlertStylesNames;
2317
2347
  }>;
2318
2348
 
2319
- type NotificationStylesNames = "root" | "icon" | "loader" | "body" | "title" | "description" | "closeButton";
2320
- interface NotificationProps extends BoxProps, StylesApiProps<NotificationStylesNames, NotificationProps> {
2321
- /** Bar / icon color. Default: primary */
2322
- color?: WelloColor;
2349
+ interface OverlayProps extends BoxProps, StylesApiProps<"root", OverlayProps> {
2350
+ /** Default: '#000' */
2351
+ color?: string;
2352
+ /** 0–1. Default: 0.6 */
2353
+ backgroundOpacity?: number;
2354
+ /** Blur behind, px */
2355
+ blur?: number | string;
2356
+ /** Replaces color with a gradient */
2357
+ gradient?: string;
2358
+ /** Default: 200 */
2359
+ zIndex?: number | string;
2323
2360
  radius?: WelloRadius;
2324
- title?: ReactNode;
2325
- /** Replaces the color bar */
2326
- icon?: ReactNode;
2327
- /** Shows a loader instead of the icon */
2328
- loading?: boolean;
2329
- loaderProps?: LoaderProps;
2330
- /** Default: true */
2331
- withCloseButton?: boolean;
2332
- onClose?: () => void;
2333
- closeButtonProps?: Record<string, unknown>;
2334
- /** A border around it. Default: true */
2335
- withBorder?: boolean;
2336
- /** The message */
2361
+ /** `position: fixed` (whole viewport) instead of absolute */
2362
+ fixed?: boolean;
2363
+ /** Center children */
2364
+ center?: boolean;
2337
2365
  children?: ReactNode;
2338
2366
  }
2339
2367
  /**
2340
- * Static notification card (for toasts use @wello-dev/notifications).
2368
+ * Dim layer over its parent (or the viewport with `fixed`).
2341
2369
  *
2342
2370
  * @example
2343
- * <Notification title="Uploaded" color="teal">invoice.pdf is ready</Notification>
2371
+ * <Box pos="relative"><Overlay color="#000" backgroundOpacity={0.4} blur={2} /></Box>
2344
2372
  */
2345
- declare const Notification: WelloComponent<{
2346
- props: NotificationProps;
2373
+ declare const Overlay: PolymorphicComponent<{
2374
+ props: OverlayProps;
2375
+ defaultComponent: "div";
2376
+ defaultRef: HTMLDivElement;
2377
+ stylesNames: "root";
2378
+ }>;
2379
+ interface LoadingOverlayProps extends BoxProps, StylesApiProps<"root" | "loader" | "overlay", LoadingOverlayProps> {
2380
+ visible?: boolean;
2381
+ /** Default: 400 */
2382
+ zIndex?: number | string;
2383
+ overlayProps?: OverlayProps;
2384
+ loaderProps?: LoaderProps;
2385
+ transitionProps?: Omit<TransitionProps, "mounted" | "children">;
2386
+ }
2387
+ /**
2388
+ * Covers its relative parent with an overlay and a loader.
2389
+ *
2390
+ * @example
2391
+ * <Box pos="relative"><LoadingOverlay visible={saving} overlayProps={{ blur: 2 }} />…</Box>
2392
+ */
2393
+ declare const LoadingOverlay: WelloComponent<{
2394
+ props: LoadingOverlayProps;
2347
2395
  ref: HTMLDivElement;
2348
- stylesNames: NotificationStylesNames;
2396
+ stylesNames: "root" | "loader" | "overlay";
2349
2397
  }>;
2350
2398
 
2351
- type ProgressStylesNames = "root" | "section" | "label";
2352
- interface ProgressRootProps extends BoxProps, StylesApiProps<ProgressStylesNames, ProgressRootProps> {
2353
- /** Height: `xs`–`xl` or a value. Default: 'md' */
2354
- size?: WelloSize | number | (string & {});
2399
+ type ModalStylesNames = "root" | "inner" | "content" | "header" | "overlay" | "title" | "body" | "close";
2400
+ interface ModalBaseProps extends StylesApiProps<ModalStylesNames, ModalBaseProps> {
2401
+ opened: boolean;
2402
+ onClose: () => void;
2403
+ /** Default: 200 */
2404
+ zIndex?: number | string;
2405
+ /** Default: true */
2406
+ trapFocus?: boolean;
2407
+ /** Default: true */
2408
+ returnFocus?: boolean;
2409
+ /** Default: true */
2410
+ closeOnEscape?: boolean;
2411
+ /** Default: true */
2412
+ closeOnClickOutside?: boolean;
2413
+ /** Default: true */
2414
+ lockScroll?: boolean;
2415
+ /** Default: true */
2416
+ withOverlay?: boolean;
2417
+ overlayProps?: OverlayProps;
2418
+ /** Default: true */
2419
+ withinPortal?: boolean;
2420
+ portalProps?: Omit<PortalProps, "children">;
2421
+ transitionProps?: {
2422
+ transition?: TransitionName | TransitionStyles;
2423
+ duration?: number;
2424
+ exitDuration?: number;
2425
+ timingFunction?: string;
2426
+ };
2427
+ keepMounted?: boolean;
2428
+ /** Width */
2429
+ size?: number | string;
2355
2430
  radius?: WelloRadius;
2356
- /** Width animation, ms. Default: 100 */
2357
- transitionDuration?: number;
2358
- /** Vertical bar (sections stack bottom to top) */
2359
- orientation?: "horizontal" | "vertical";
2360
- /** Label color picked automatically */
2361
- autoContrast?: boolean;
2362
- children?: ReactNode;
2363
- }
2364
- interface ProgressSectionProps extends BoxProps {
2365
- /** 0–100 */
2366
- value: number;
2367
- /** Default: primary */
2368
- color?: WelloColor;
2369
- striped?: boolean;
2370
- /** Moving stripes */
2371
- animated?: boolean;
2372
- /** Tooltip-like title attribute */
2373
- title?: string;
2374
- /** Show a hidden section (width 0) without removing it */
2375
- withAria?: boolean;
2431
+ /** Default: 'xl' */
2432
+ shadow?: WelloShadow;
2433
+ /** Default: 'md' */
2434
+ padding?: WelloSpacing;
2435
+ /** Base id for aria */
2436
+ id?: string;
2437
+ onExitTransitionEnd?: () => void;
2438
+ onEnterTransitionEnd?: () => void;
2376
2439
  children?: ReactNode;
2377
2440
  className?: string;
2441
+ style?: CSSProperties;
2378
2442
  }
2379
- declare const ProgressRoot: WelloComponent<{
2380
- props: ProgressRootProps;
2443
+ interface ModalContextValue {
2444
+ opened: boolean;
2445
+ onClose: () => void;
2446
+ getStyles: GetStyles<ModalStylesNames>;
2447
+ id: string;
2448
+ closeOnClickOutside: boolean;
2449
+ status: ReturnType<typeof useTransition>["status"];
2450
+ duration: number;
2451
+ overlayDuration: number;
2452
+ transition: TransitionName | TransitionStyles;
2453
+ timingFunction: string;
2454
+ overlayProps?: OverlayProps;
2455
+ trapFocus: boolean;
2456
+ returnFocus: boolean;
2457
+ zIndex: number | string;
2458
+ /** Set by Modal / Drawer */
2459
+ kind: string;
2460
+ }
2461
+ declare function useModalContext(): ModalContextValue;
2462
+ /** Shared root of Modal and Drawer: portal, scroll lock, Escape and the transitions. */
2463
+ declare function ModalBaseRoot({ name, defaults, varsResolver, mod, ...input }: ModalBaseProps & {
2464
+ name: string;
2465
+ defaults: Partial<ModalBaseProps>;
2466
+ varsResolver: (props: ModalBaseProps) => Record<string, string | undefined>;
2467
+ mod?: Record<string, unknown>;
2468
+ }): react.JSX.Element;
2469
+ declare const ModalBaseOverlay: WelloComponent<{
2470
+ props: OverlayProps;
2381
2471
  ref: HTMLDivElement;
2382
- stylesNames: ProgressStylesNames;
2472
+ stylesNames: "overlay";
2383
2473
  }>;
2384
- declare const ProgressSection: WelloComponent<{
2385
- props: ProgressSectionProps;
2474
+ declare const ModalBaseContent: WelloComponent<{
2475
+ props: BoxProps & {
2476
+ children?: ReactNode;
2477
+ __hidden?: boolean;
2478
+ };
2386
2479
  ref: HTMLDivElement;
2387
- stylesNames: "section";
2480
+ stylesNames: "content";
2388
2481
  }>;
2389
- declare const ProgressLabel: WelloComponent<{
2482
+ declare const ModalBaseHeader: WelloComponent<{
2390
2483
  props: BoxProps & {
2391
2484
  children?: ReactNode;
2392
2485
  };
2393
2486
  ref: HTMLDivElement;
2394
- stylesNames: "label";
2487
+ stylesNames: "header";
2395
2488
  }>;
2396
- interface ProgressProps extends Omit<ProgressRootProps, "children"> {
2397
- /** 0–100 */
2398
- value: number;
2399
- color?: WelloColor;
2400
- striped?: boolean;
2401
- animated?: boolean;
2489
+ declare const ModalBaseTitle: WelloComponent<{
2490
+ props: BoxProps & {
2491
+ children?: ReactNode;
2492
+ };
2493
+ ref: HTMLHeadingElement;
2494
+ stylesNames: "title";
2495
+ }>;
2496
+ declare const ModalBaseBody: WelloComponent<{
2497
+ props: BoxProps & {
2498
+ children?: ReactNode;
2499
+ };
2500
+ ref: HTMLDivElement;
2501
+ stylesNames: "body";
2502
+ }>;
2503
+ declare const ModalBaseCloseButton: WelloComponent<{
2504
+ props: CloseButtonProps;
2505
+ ref: HTMLButtonElement;
2506
+ stylesNames: "close";
2507
+ }>;
2508
+ declare const sizeValue: (size: unknown, scale: string) => string | undefined;
2509
+
2510
+ interface ModalRootProps extends ModalBaseProps {
2511
+ /** Vertically centered */
2512
+ centered?: boolean;
2513
+ /** Takes the whole screen */
2514
+ fullScreen?: boolean;
2515
+ /** Top offset when not centered. Default: '5dvh' */
2516
+ yOffset?: number | string;
2517
+ /** Side offset. Default: '5vw' */
2518
+ xOffset?: number | string;
2519
+ }
2520
+ interface ModalProps extends ModalRootProps {
2521
+ /** `xs`–`xl`, a number (px) or `'auto'` / `'100%'`. Default: 'md' */
2522
+ size?: number | string;
2523
+ title?: ReactNode;
2524
+ /** Default: true */
2525
+ withCloseButton?: boolean;
2526
+ closeButtonProps?: CloseButtonProps;
2402
2527
  }
2528
+ declare function ModalRoot({ centered, fullScreen, yOffset, xOffset, ...props }: ModalRootProps): react.JSX.Element;
2403
2529
  /**
2404
- * Progress bar. For several colored sections use `Progress.Root` + `Progress.Section`.
2530
+ * Dialog window: overlay, focus trap, scroll lock, Escape and outside click to close.
2405
2531
  *
2406
2532
  * @example
2407
- * <Progress value={62} />
2408
- * <Progress.Root size="xl">
2409
- * <Progress.Section value={35} color="cyan"><Progress.Label>Docs</Progress.Label></Progress.Section>
2410
- * <Progress.Section value={28} color="pink"><Progress.Label>Photos</Progress.Label></Progress.Section>
2411
- * </Progress.Root>
2533
+ * <Modal opened={opened} onClose={close} title="Edit order" centered>…</Modal>
2534
+ * // Or build your own layout:
2535
+ * <Modal.Root opened={opened} onClose={close}>
2536
+ * <Modal.Overlay />
2537
+ * <Modal.Content>
2538
+ * <Modal.Header><Modal.Title>Title</Modal.Title><Modal.CloseButton /></Modal.Header>
2539
+ * <Modal.Body>…</Modal.Body>
2540
+ * </Modal.Content>
2541
+ * </Modal.Root>
2412
2542
  */
2413
- declare const Progress: WelloComponent<{
2414
- props: ProgressProps;
2415
- ref: HTMLDivElement;
2416
- stylesNames: ProgressStylesNames;
2417
- staticComponents: {
2418
- Root: typeof ProgressRoot;
2419
- Section: typeof ProgressSection;
2420
- Label: typeof ProgressLabel;
2421
- };
2422
- }>;
2423
-
2424
- type RingProgressStylesNames = "root" | "svg" | "label" | "curve";
2425
- interface RingProgressSection {
2426
- /** 0–100 */
2427
- value: number;
2428
- color: WelloColor;
2429
- /** Shown as a native tooltip */
2430
- tooltip?: string;
2431
- onClick?: () => void;
2543
+ declare function Modal({ title, withCloseButton, closeButtonProps, children, withOverlay, ...props }: ModalProps): react.JSX.Element;
2544
+ declare namespace Modal {
2545
+ var Root: typeof ModalRoot;
2546
+ var Overlay: WelloComponent<{
2547
+ props: OverlayProps;
2548
+ ref: HTMLDivElement;
2549
+ stylesNames: "overlay";
2550
+ }>;
2551
+ var Content: WelloComponent<{
2552
+ props: BoxProps & {
2553
+ children?: ReactNode;
2554
+ __hidden?: boolean;
2555
+ };
2556
+ ref: HTMLDivElement;
2557
+ stylesNames: "content";
2558
+ }>;
2559
+ var Header: WelloComponent<{
2560
+ props: BoxProps & {
2561
+ children?: ReactNode;
2562
+ };
2563
+ ref: HTMLDivElement;
2564
+ stylesNames: "header";
2565
+ }>;
2566
+ var Title: WelloComponent<{
2567
+ props: BoxProps & {
2568
+ children?: ReactNode;
2569
+ };
2570
+ ref: HTMLHeadingElement;
2571
+ stylesNames: "title";
2572
+ }>;
2573
+ var CloseButton: WelloComponent<{
2574
+ props: CloseButtonProps;
2575
+ ref: HTMLButtonElement;
2576
+ stylesNames: "close";
2577
+ }>;
2578
+ var Body: WelloComponent<{
2579
+ props: BoxProps & {
2580
+ children?: ReactNode;
2581
+ };
2582
+ ref: HTMLDivElement;
2583
+ stylesNames: "body";
2584
+ }>;
2585
+ var displayName: string;
2432
2586
  }
2433
- interface RingProgressProps extends BoxProps, StylesApiProps<RingProgressStylesNames, RingProgressProps> {
2434
- sections: RingProgressSection[];
2435
- /** Diameter in px. Default: 120 */
2436
- size?: number;
2437
- /** Ring width in px. Default: size / 10 */
2438
- thickness?: number;
2439
- /** In the middle */
2440
- label?: ReactNode;
2441
- /** Rounded ends */
2442
- roundCaps?: boolean;
2443
- /** Empty part color. Default: skeleton color */
2444
- rootColor?: WelloColor;
2445
- /** Animate section changes, ms. Default: 0 */
2446
- transitionDuration?: number;
2587
+
2588
+ /** Same dark scrim as the project's modal-styles (works in light and dark). */
2589
+ declare const OVERLAY: {
2590
+ readonly color: "#020617";
2591
+ readonly backgroundOpacity: 0.62;
2592
+ readonly blur: 10;
2593
+ };
2594
+ declare const TRANSITION: {
2595
+ transition: {
2596
+ in: {
2597
+ opacity: number;
2598
+ transform: string;
2599
+ };
2600
+ out: {
2601
+ opacity: number;
2602
+ transform: string;
2603
+ };
2604
+ common: {
2605
+ transformOrigin: string;
2606
+ };
2607
+ transitionProperty: string;
2608
+ };
2609
+ duration: number;
2610
+ timingFunction: string;
2611
+ };
2612
+ interface DialogProps {
2613
+ open?: boolean;
2614
+ defaultOpen?: boolean;
2615
+ onOpenChange?: (open: boolean) => void;
2616
+ /** Kept for API compatibility (always modal) */
2617
+ modal?: boolean;
2618
+ children?: ReactNode;
2447
2619
  }
2448
2620
  /**
2449
- * Circular progress with several sections.
2450
- *
2451
2621
  * @example
2452
- * <RingProgress label={<Text ta="center">62%</Text>} sections={[{ value: 40, color: "cyan" }, { value: 22, color: "orange" }]} />
2622
+ * <Dialog>
2623
+ * <DialogTrigger asChild><Button>Edit</Button></DialogTrigger>
2624
+ * <DialogContent title="Edit order">…</DialogContent>
2625
+ * </Dialog>
2453
2626
  */
2454
- declare const RingProgress: WelloComponent<{
2455
- props: RingProgressProps;
2456
- ref: HTMLDivElement;
2457
- stylesNames: RingProgressStylesNames;
2458
- }>;
2459
- interface SemiCircleProgressProps extends BoxProps, StylesApiProps<"root" | "svg" | "emptySegment" | "filledSegment" | "label", SemiCircleProgressProps> {
2460
- /** 0–100 */
2461
- value: number;
2462
- /** Width in px. Default: 200 */
2463
- size?: number;
2464
- /** Default: 12 */
2465
- thickness?: number;
2466
- /** Default: 'left-to-right' */
2467
- fillDirection?: "left-to-right" | "right-to-left";
2468
- /** Default: 'up' */
2469
- orientation?: "up" | "down";
2470
- filledSegmentColor?: WelloColor;
2471
- emptySegmentColor?: WelloColor;
2472
- /** Default: 'bottom' */
2473
- labelPosition?: "center" | "bottom";
2474
- label?: ReactNode;
2475
- /** ms. Default: 0 */
2476
- transitionDuration?: number;
2627
+ declare function Dialog({ open, defaultOpen, onOpenChange, children }: DialogProps): react.JSX.Element;
2628
+ declare function DialogTrigger(props: ComponentProps<"button"> & {
2629
+ asChild?: boolean;
2630
+ }): react.JSX.Element;
2631
+ declare function DialogClose(props: ComponentProps<"button"> & {
2632
+ asChild?: boolean;
2633
+ }): react.JSX.Element;
2634
+ interface DialogContentProps extends Omit<ModalProps, "opened" | "onClose" | "title" | "children"> {
2635
+ title?: ReactNode;
2636
+ /** Default: true */
2637
+ showCloseButton?: boolean;
2638
+ /** Default: true */
2639
+ centered?: boolean;
2640
+ /** Content height on phones; `false` = full screen. Default: true */
2641
+ autoSize?: boolean;
2642
+ className?: string;
2643
+ children?: ReactNode;
2477
2644
  }
2478
- /**
2479
- * Half-circle gauge.
2480
- *
2481
- * @example
2482
- * <SemiCircleProgress value={70} label="70%" filledSegmentColor="teal" />
2483
- */
2484
- declare const SemiCircleProgress: WelloComponent<{
2485
- props: SemiCircleProgressProps;
2486
- ref: HTMLDivElement;
2487
- stylesNames: "root" | "svg" | "emptySegment" | "filledSegment" | "label";
2488
- }>;
2645
+ declare function DialogContent({ className, children, showCloseButton, centered, size, autoSize, title, ...props }: DialogContentProps): react.JSX.Element;
2646
+ declare const DialogHeader: {
2647
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2648
+ displayName: string;
2649
+ };
2650
+ declare const DialogFooter: {
2651
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2652
+ displayName: string;
2653
+ };
2654
+ declare const DialogTitle: {
2655
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2656
+ displayName: string;
2657
+ };
2658
+ declare const DialogDescription: {
2659
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2660
+ displayName: string;
2661
+ };
2489
2662
 
2490
- interface SkeletonProps extends BoxProps, StylesApiProps<"root", SkeletonProps> {
2491
- /** Show the placeholder (true) or the children (false). Default: true */
2492
- visible?: boolean;
2493
- height?: number | string;
2494
- /** Default: 100% */
2495
- width?: number | string;
2496
- /** Circle of `height` size */
2497
- circle?: boolean;
2498
- radius?: WelloRadius;
2499
- /** Pulse. Default: true */
2500
- animate?: boolean;
2501
- children?: ReactNode;
2663
+ type ButtonProps = ButtonProps$1 & Omit<React.ComponentPropsWithoutRef<"button">, keyof ButtonProps$1 | "color">;
2664
+ type AlertDialogVariant = "default" | "info" | "success" | "warning" | "destructive";
2665
+ interface AlertDialogProps extends DialogProps {
2666
+ /** Icon and glow color. Default: 'default' */
2667
+ variant?: AlertDialogVariant;
2502
2668
  }
2503
2669
  /**
2504
- * Loading placeholder; wraps the real content and hides it until `visible` is false.
2670
+ * Confirmation dialog.
2505
2671
  *
2506
2672
  * @example
2507
- * <Skeleton height={8} radius="xl" />
2508
- * <Skeleton visible={loading}><Text>Loaded text</Text></Skeleton>
2673
+ * <AlertDialog variant="destructive">
2674
+ * <AlertDialogTrigger asChild><Button variant="destructive">Delete</Button></AlertDialogTrigger>
2675
+ * <AlertDialogContent title="Delete order?">
2676
+ * <AlertDialogDescription>This can't be undone.</AlertDialogDescription>
2677
+ * <AlertDialogFooter><AlertDialogCancel>Cancel</AlertDialogCancel><AlertDialogAction onClick={remove}>Delete</AlertDialogAction></AlertDialogFooter>
2678
+ * </AlertDialogContent>
2679
+ * </AlertDialog>
2509
2680
  */
2510
- declare const Skeleton: WelloComponent<{
2511
- props: SkeletonProps;
2512
- ref: HTMLDivElement;
2513
- stylesNames: "root";
2514
- }>;
2515
-
2516
- type EmptyStateStylesNames = "root" | "icon" | "title" | "description" | "actions";
2517
- interface EmptyStateProps extends BoxProps, StylesApiProps<EmptyStateStylesNames, EmptyStateProps> {
2681
+ declare function AlertDialog({ open, defaultOpen, onOpenChange, variant, children, }: AlertDialogProps): react.JSX.Element;
2682
+ declare function AlertDialogTrigger(props: ComponentProps<"button"> & {
2683
+ asChild?: boolean;
2684
+ }): react.JSX.Element;
2685
+ declare function AlertDialogIcon({ variant, icon, className, }: {
2686
+ variant?: AlertDialogVariant;
2518
2687
  icon?: ReactNode;
2688
+ className?: string;
2689
+ }): react.JSX.Element;
2690
+ interface AlertDialogContentProps extends Omit<ModalProps, "opened" | "onClose" | "title" | "children"> {
2519
2691
  title?: ReactNode;
2520
- description?: ReactNode;
2521
- /** Buttons under the text */
2522
- actions?: ReactNode;
2523
- /** Icon tint. Default: gray */
2524
- color?: WelloColor;
2525
- /** Default: 'md' */
2526
- size?: WelloSize;
2527
- /** Dashed border around it. Default: true */
2528
- withBorder?: boolean;
2692
+ variant?: AlertDialogVariant;
2693
+ icon?: ReactNode;
2694
+ /** Default: true */
2695
+ showIcon?: boolean;
2696
+ className?: string;
2529
2697
  children?: ReactNode;
2698
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
2530
2699
  }
2531
- /**
2532
- * "Nothing here yet" placeholder for empty lists, searches and pages.
2533
- *
2534
- * @example
2535
- * <EmptyState icon={<InboxIcon />} title="No orders yet" description="Orders appear here." actions={<Button>New order</Button>} />
2536
- */
2537
- declare const EmptyState: WelloComponent<{
2538
- props: EmptyStateProps;
2539
- ref: HTMLDivElement;
2540
- stylesNames: EmptyStateStylesNames;
2541
- }>;
2542
-
2543
- type AccordionStylesNames = "root" | "item" | "control" | "chevron" | "label" | "icon" | "panel" | "content";
2544
- type AccordionVariant = "default" | "contained" | "filled" | "separated";
2545
- type AccordionValue<Multiple extends boolean> = Multiple extends true ? string[] : string | null;
2546
- interface AccordionProps<Multiple extends boolean = false> extends BoxProps, StylesApiProps<AccordionStylesNames, AccordionProps<Multiple>> {
2547
- /** Several items open at once */
2548
- multiple?: Multiple;
2549
- /** Controlled open item(s) */
2550
- value?: AccordionValue<Multiple>;
2551
- defaultValue?: AccordionValue<Multiple>;
2552
- onChange?: (value: AccordionValue<Multiple>) => void;
2553
- /** Default: 'default' */
2554
- variant?: AccordionVariant | (string & {});
2555
- radius?: WelloRadius;
2556
- /** Default: 200 */
2557
- transitionDuration?: number;
2558
- /** Replaces the chevron */
2559
- chevron?: ReactNode;
2560
- /** Default: 'right' */
2561
- chevronPosition?: "left" | "right";
2562
- /** Default: 'auto' (24px) */
2563
- chevronSize?: number | string;
2564
- disableChevronRotation?: boolean;
2565
- /** Arrow keys wrap from last to first. Default: true */
2566
- loop?: boolean;
2567
- /** Wraps controls in h2–h6 */
2568
- order?: 2 | 3 | 4 | 5 | 6;
2569
- /** Keep closed panels in the DOM. Default: true */
2570
- keepMounted?: boolean;
2571
- children?: ReactNode;
2572
- }
2573
- declare function ChevronIcon(props: React.SVGProps<SVGSVGElement>): react.JSX.Element;
2574
- interface AccordionItemProps extends BoxProps {
2575
- /** Identifies the item in `value` */
2576
- value: string;
2577
- children?: ReactNode;
2578
- className?: string;
2579
- }
2580
- interface AccordionControlProps extends BoxProps {
2581
- /** Before the label */
2582
- icon?: ReactNode;
2583
- /** Replaces the chevron for this item */
2584
- chevron?: ReactNode;
2585
- disabled?: boolean;
2586
- children?: ReactNode;
2587
- className?: string;
2588
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
2700
+ declare function AlertDialogContent({ className, children, title, variant: variantProp, icon, showIcon, withCloseButton, size, onClick, ...props }: AlertDialogContentProps): react.JSX.Element;
2701
+ declare const AlertDialogHeader: {
2702
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2703
+ displayName: string;
2704
+ };
2705
+ declare const AlertDialogTitle: {
2706
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2707
+ displayName: string;
2708
+ };
2709
+ declare const AlertDialogDescription: {
2710
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2711
+ displayName: string;
2712
+ };
2713
+ declare const AlertDialogFooter: {
2714
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2715
+ displayName: string;
2716
+ };
2717
+ declare function AlertDialogAction({ className, variant: variantProp, onClick, ...props }: ButtonProps): react.JSX.Element;
2718
+ declare function AlertDialogCancel({ className, onClick, ...props }: ButtonProps): react.JSX.Element;
2719
+ declare function AlertDialogPortal({ children }: {
2720
+ children: ReactNode;
2721
+ }): react.JSX.Element;
2722
+
2723
+ type DrawerPosition = "left" | "right" | "top" | "bottom" | "start" | "end";
2724
+ interface DrawerRootProps extends ModalBaseProps {
2725
+ /** In RTL the sides mirror: `left` and `start` are on the right, `right` and `end` on the left. Default: 'left' */
2726
+ position?: DrawerPosition;
2727
+ /** Gap from the viewport edges, px (floating drawer) */
2728
+ offset?: number | string;
2589
2729
  }
2590
- interface AccordionPanelProps extends BoxProps {
2591
- children?: ReactNode;
2592
- className?: string;
2730
+ interface DrawerProps extends DrawerRootProps {
2731
+ /** Width (left/right) or height (top/bottom): `xs`–`xl`, a number or a CSS value. Default: 'md' */
2732
+ size?: number | string;
2733
+ title?: ReactNode;
2734
+ /** Default: true */
2735
+ withCloseButton?: boolean;
2736
+ closeButtonProps?: CloseButtonProps;
2593
2737
  }
2738
+ declare function DrawerRoot({ position, offset, transitionProps, ...props }: DrawerRootProps): react.JSX.Element;
2594
2739
  /**
2595
- * Expandable sections, single or multiple open, keyboard navigable.
2740
+ * Panel sliding in from an edge (filters, navigation, details).
2596
2741
  *
2597
2742
  * @example
2598
- * <Accordion defaultValue="shipping" variant="separated">
2599
- * <Accordion.Item value="shipping">
2600
- * <Accordion.Control icon={<TruckIcon />}>Shipping</Accordion.Control>
2601
- * <Accordion.Panel>2–4 days.</Accordion.Panel>
2602
- * </Accordion.Item>
2603
- * </Accordion>
2743
+ * <Drawer opened={opened} onClose={close} title="Filters" position="end" size="sm">…</Drawer>
2604
2744
  */
2605
- declare const Accordion: (<Multiple extends boolean = false>(props: AccordionProps<Multiple> & Omit<React.ComponentPropsWithoutRef<"div">, keyof AccordionProps<Multiple>> & {
2606
- ref?: React.Ref<HTMLDivElement>;
2607
- }) => React.ReactElement) & {
2608
- displayName?: string;
2609
- } & {
2610
- Item: WelloComponent<{
2611
- props: AccordionItemProps;
2745
+ declare function Drawer({ title, withCloseButton, closeButtonProps, children, withOverlay, ...props }: DrawerProps): react.JSX.Element;
2746
+ declare namespace Drawer {
2747
+ var Root: typeof DrawerRoot;
2748
+ var Overlay: WelloComponent<{
2749
+ props: OverlayProps;
2612
2750
  ref: HTMLDivElement;
2613
- stylesNames: "item";
2751
+ stylesNames: "overlay";
2614
2752
  }>;
2615
- Control: WelloComponent<{
2616
- props: AccordionControlProps;
2753
+ var Content: WelloComponent<{
2754
+ props: BoxProps & {
2755
+ children?: ReactNode;
2756
+ __hidden?: boolean;
2757
+ };
2758
+ ref: HTMLDivElement;
2759
+ stylesNames: "content";
2760
+ }>;
2761
+ var Header: WelloComponent<{
2762
+ props: BoxProps & {
2763
+ children?: ReactNode;
2764
+ };
2765
+ ref: HTMLDivElement;
2766
+ stylesNames: "header";
2767
+ }>;
2768
+ var Title: WelloComponent<{
2769
+ props: BoxProps & {
2770
+ children?: ReactNode;
2771
+ };
2772
+ ref: HTMLHeadingElement;
2773
+ stylesNames: "title";
2774
+ }>;
2775
+ var CloseButton: WelloComponent<{
2776
+ props: CloseButtonProps;
2617
2777
  ref: HTMLButtonElement;
2618
- stylesNames: "control";
2778
+ stylesNames: "close";
2619
2779
  }>;
2620
- Panel: WelloComponent<{
2621
- props: AccordionPanelProps;
2780
+ var Body: WelloComponent<{
2781
+ props: BoxProps & {
2782
+ children?: ReactNode;
2783
+ };
2622
2784
  ref: HTMLDivElement;
2623
- stylesNames: "panel";
2785
+ stylesNames: "body";
2624
2786
  }>;
2625
- };
2626
-
2627
- type AvatarStylesNames = "root" | "image" | "placeholder";
2628
- interface AvatarProps extends BoxProps, StylesApiProps<AvatarStylesNames, AvatarProps> {
2629
- src?: string | null;
2630
- alt?: string;
2631
- /** Default: 'md' */
2632
- size?: WelloSize | number | (string & {});
2633
- /** Default: '100%' (circle) */
2634
- radius?: WelloRadius;
2635
- /** `'initials'` picks a color from `name`. Default: gray */
2636
- color?: WelloColor | "initials";
2637
- /** Default: 'light' */
2638
- variant?: "filled" | "light" | "outline" | "transparent" | "white" | "default" | "gradient" | (string & {});
2639
- gradient?: WelloGradient;
2640
- /** Shows initials when there is no image */
2641
- name?: string;
2642
- /** Colors `color="initials"` picks from */
2643
- allowedInitialsColors?: string[];
2644
- autoContrast?: boolean;
2645
- imageProps?: React.ComponentPropsWithoutRef<"img">;
2646
- /** Placeholder content (default: initials or a user icon) */
2647
- children?: ReactNode;
2787
+ var displayName: string;
2648
2788
  }
2649
- /** `'Mohamed Wael'` → `'MW'`. */
2650
- declare function getInitials(name: string, limit?: number): string;
2789
+
2790
+ declare const SHEET_SIZES: {
2791
+ readonly sm: "360px";
2792
+ readonly md: "480px";
2793
+ readonly lg: "640px";
2794
+ readonly xl: "800px";
2795
+ readonly full: "100%";
2796
+ };
2797
+ type SheetSize = keyof typeof SHEET_SIZES;
2651
2798
  /**
2652
- * User image with initials / icon fallback.
2799
+ * Side panel that slides in from the edge.
2653
2800
  *
2654
2801
  * @example
2655
- * <Avatar src={user.photo} name={user.name} color="initials" />
2656
- * <Avatar.Group><Avatar src={a} /><Avatar src={b} /><Avatar>+5</Avatar></Avatar.Group>
2802
+ * <Sheet>
2803
+ * <SheetTrigger asChild><Button>Filters</Button></SheetTrigger>
2804
+ * <SheetContent title="Filters" side="end">…</SheetContent>
2805
+ * </Sheet>
2657
2806
  */
2658
- declare const Avatar: PolymorphicComponent<{
2659
- props: AvatarProps;
2660
- defaultComponent: "div";
2661
- defaultRef: HTMLDivElement;
2662
- stylesNames: AvatarStylesNames;
2663
- staticComponents: {
2664
- Group: typeof AvatarGroup;
2665
- };
2666
- }>;
2667
- interface AvatarGroupProps extends BoxProps, StylesApiProps<"group", AvatarGroupProps> {
2668
- /** Overlap between avatars. Default: 'sm' */
2669
- spacing?: WelloSpacing;
2807
+ declare function Sheet({ open, defaultOpen, onOpenChange, children }: DialogProps): react.JSX.Element;
2808
+ declare function SheetTrigger(props: ComponentProps<"button"> & {
2809
+ asChild?: boolean;
2810
+ }): react.JSX.Element;
2811
+ declare function SheetClose(props: ComponentProps<"button"> & {
2812
+ asChild?: boolean;
2813
+ }): react.JSX.Element;
2814
+ interface SheetContentProps {
2815
+ /** Default: 'md' (480px) */
2816
+ size?: SheetSize;
2817
+ title?: ReactNode;
2818
+ description?: ReactNode;
2819
+ /** Default: true */
2820
+ showCloseButton?: boolean;
2821
+ /** `start` / `end` follow the direction. Default: 'end' */
2822
+ side?: DrawerPosition;
2823
+ className?: string;
2670
2824
  children?: ReactNode;
2671
2825
  }
2672
- declare const AvatarGroup: WelloComponent<{
2673
- props: AvatarGroupProps;
2674
- ref: HTMLDivElement;
2675
- stylesNames: "group";
2676
- }>;
2826
+ /** Side panel. */
2827
+ declare function SheetContent({ className, children, size, title, description, showCloseButton, side }: SheetContentProps): react.JSX.Element;
2828
+ declare const SheetHeader: {
2829
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2830
+ displayName: string;
2831
+ };
2832
+ declare const SheetFooter: {
2833
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2834
+ displayName: string;
2835
+ };
2836
+ declare const SheetTitle: {
2837
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2838
+ displayName: string;
2839
+ };
2840
+ declare const SheetDescription: {
2841
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
2842
+ displayName: string;
2843
+ };
2677
2844
 
2678
- type BadgeStylesNames = "root" | "section" | "label";
2679
- interface BadgeProps extends BoxProps, StylesApiProps<BadgeStylesNames, BadgeProps> {
2680
- /** shared/ui names (`secondary`, `destructive`, `success`… are soft tints) or any variant. Default: 'default' */
2681
- variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "success" | "warning" | "info" | "filled" | "light" | "dot" | "subtle" | "transparent" | "white" | "gradient" | (string & {});
2682
- /** Default: 'md' */
2683
- size?: WelloSize | (string & {});
2845
+ type NotificationStylesNames = "root" | "icon" | "loader" | "body" | "title" | "description" | "closeButton";
2846
+ interface NotificationProps extends BoxProps, StylesApiProps<NotificationStylesNames, NotificationProps> {
2847
+ /** Bar / icon color. Default: primary */
2684
2848
  color?: WelloColor;
2685
- /** Default: 'xl' (pill) */
2686
2849
  radius?: WelloRadius;
2687
- gradient?: WelloGradient;
2688
- leftSection?: ReactNode;
2689
- rightSection?: ReactNode;
2690
- fullWidth?: boolean;
2691
- /** Same width and height (numbers, single letters) */
2692
- circle?: boolean;
2693
- autoContrast?: boolean;
2694
- /** Styles the one child instead of rendering a div, e.g. a link */
2695
- asChild?: boolean;
2850
+ title?: ReactNode;
2851
+ /** Replaces the color bar */
2852
+ icon?: ReactNode;
2853
+ /** Shows a loader instead of the icon */
2854
+ loading?: boolean;
2855
+ loaderProps?: LoaderProps;
2856
+ /** Default: true */
2857
+ withCloseButton?: boolean;
2858
+ onClose?: () => void;
2859
+ closeButtonProps?: Record<string, unknown>;
2860
+ /** A border around it. Default: true */
2861
+ withBorder?: boolean;
2862
+ /** The message */
2696
2863
  children?: ReactNode;
2697
2864
  }
2698
2865
  /**
2699
- * Small status label.
2866
+ * Static notification card (for toasts use @wello-dev/notifications).
2700
2867
  *
2701
2868
  * @example
2702
- * <Badge color="teal" variant="light">Paid</Badge>
2703
- * <Badge variant="dot" color="red">Offline</Badge>
2869
+ * <Notification title="Uploaded" color="teal">invoice.pdf is ready</Notification>
2704
2870
  */
2705
- declare const Badge: PolymorphicComponent<{
2706
- props: BadgeProps;
2707
- defaultComponent: "div";
2708
- defaultRef: HTMLDivElement;
2709
- stylesNames: BadgeStylesNames;
2871
+ declare const Notification: WelloComponent<{
2872
+ props: NotificationProps;
2873
+ ref: HTMLDivElement;
2874
+ stylesNames: NotificationStylesNames;
2710
2875
  }>;
2711
2876
 
2712
- interface CardProps extends BoxProps, StylesApiProps<"root" | "section", CardProps> {
2713
- /** Inner padding; sections bleed to the edges. Default: 'md' */
2714
- padding?: WelloSpacing;
2715
- shadow?: WelloShadow;
2877
+ type ProgressStylesNames = "root" | "section" | "label";
2878
+ interface ProgressRootProps extends BoxProps, StylesApiProps<ProgressStylesNames, ProgressRootProps> {
2879
+ /** Height: `xs`–`xl` or a value. Default: 'md' */
2880
+ size?: WelloSize | number | (string & {});
2716
2881
  radius?: WelloRadius;
2717
- /** A border around it. Default: true */
2718
- withBorder?: boolean;
2719
- /** Default: 'vertical' */
2720
- orientation?: "vertical" | "horizontal";
2882
+ /** Width animation, ms. Default: 100 */
2883
+ transitionDuration?: number;
2884
+ /** Vertical bar (sections stack bottom to top) */
2885
+ orientation?: "horizontal" | "vertical";
2886
+ /** Label color picked automatically */
2887
+ autoContrast?: boolean;
2721
2888
  children?: ReactNode;
2722
2889
  }
2723
- interface CardSectionProps extends BoxProps {
2724
- /** Borders between this section and its neighbours */
2725
- withBorder?: boolean;
2726
- /** Keep the card padding inside the section */
2727
- inheritPadding?: boolean;
2890
+ interface ProgressSectionProps extends BoxProps {
2891
+ /** 0–100 */
2892
+ value: number;
2893
+ /** Default: primary */
2894
+ color?: WelloColor;
2895
+ striped?: boolean;
2896
+ /** Moving stripes */
2897
+ animated?: boolean;
2898
+ /** Tooltip-like title attribute */
2899
+ title?: string;
2900
+ /** Show a hidden section (width 0) without removing it */
2901
+ withAria?: boolean;
2728
2902
  children?: ReactNode;
2903
+ className?: string;
2729
2904
  }
2730
- /** Full-width part of a card (image, footer…); first and last sections reach the card edge. */
2731
- declare const CardSection: PolymorphicComponent<{
2732
- props: CardSectionProps;
2733
- defaultComponent: "div";
2734
- defaultRef: HTMLDivElement;
2905
+ declare const ProgressRoot: WelloComponent<{
2906
+ props: ProgressRootProps;
2907
+ ref: HTMLDivElement;
2908
+ stylesNames: ProgressStylesNames;
2909
+ }>;
2910
+ declare const ProgressSection: WelloComponent<{
2911
+ props: ProgressSectionProps;
2912
+ ref: HTMLDivElement;
2735
2913
  stylesNames: "section";
2736
2914
  }>;
2915
+ declare const ProgressLabel: WelloComponent<{
2916
+ props: BoxProps & {
2917
+ children?: ReactNode;
2918
+ };
2919
+ ref: HTMLDivElement;
2920
+ stylesNames: "label";
2921
+ }>;
2922
+ interface ProgressProps extends Omit<ProgressRootProps, "children"> {
2923
+ /** 0–100 */
2924
+ value: number;
2925
+ color?: WelloColor;
2926
+ striped?: boolean;
2927
+ animated?: boolean;
2928
+ }
2737
2929
  /**
2738
- * Paper with padding and edge-to-edge sections.
2930
+ * Progress bar. For several colored sections use `Progress.Root` + `Progress.Section`.
2739
2931
  *
2740
2932
  * @example
2741
- * <Card withBorder shadow="sm">
2742
- * <Card.Section><Image src={cover} h={160} /></Card.Section>
2743
- * <Text fw={600} mt="md">Title</Text>
2744
- * </Card>
2933
+ * <Progress value={62} />
2934
+ * <Progress.Root size="xl">
2935
+ * <Progress.Section value={35} color="cyan"><Progress.Label>Docs</Progress.Label></Progress.Section>
2936
+ * <Progress.Section value={28} color="pink"><Progress.Label>Photos</Progress.Label></Progress.Section>
2937
+ * </Progress.Root>
2745
2938
  */
2746
- declare const Card: PolymorphicComponent<{
2747
- props: CardProps;
2748
- defaultComponent: "div";
2749
- defaultRef: HTMLDivElement;
2750
- stylesNames: "root" | "section";
2939
+ declare const Progress: WelloComponent<{
2940
+ props: ProgressProps;
2941
+ ref: HTMLDivElement;
2942
+ stylesNames: ProgressStylesNames;
2751
2943
  staticComponents: {
2752
- Section: typeof CardSection;
2944
+ Root: typeof ProgressRoot;
2945
+ Section: typeof ProgressSection;
2946
+ Label: typeof ProgressLabel;
2753
2947
  };
2754
2948
  }>;
2755
2949
 
2756
- interface ThemeIconProps extends BoxProps, StylesApiProps<"root", ThemeIconProps> {
2757
- /** Default: 'filled' */
2758
- variant?: "filled" | "light" | "outline" | "transparent" | "white" | "default" | "gradient" | (string & {});
2759
- /** Default: 'md' */
2760
- size?: WelloSize | number | (string & {});
2761
- color?: WelloColor;
2762
- radius?: WelloRadius;
2763
- gradient?: WelloGradient;
2764
- autoContrast?: boolean;
2765
- children?: ReactNode;
2950
+ type RingProgressStylesNames = "root" | "svg" | "label" | "curve";
2951
+ interface RingProgressSection {
2952
+ /** 0–100 */
2953
+ value: number;
2954
+ color: WelloColor;
2955
+ /** Shown as a native tooltip */
2956
+ tooltip?: string;
2957
+ onClick?: () => void;
2958
+ }
2959
+ interface RingProgressProps extends BoxProps, StylesApiProps<RingProgressStylesNames, RingProgressProps> {
2960
+ sections: RingProgressSection[];
2961
+ /** Diameter in px. Default: 120 */
2962
+ size?: number;
2963
+ /** Ring width in px. Default: size / 10 */
2964
+ thickness?: number;
2965
+ /** In the middle */
2966
+ label?: ReactNode;
2967
+ /** Rounded ends */
2968
+ roundCaps?: boolean;
2969
+ /** Empty part color. Default: skeleton color */
2970
+ rootColor?: WelloColor;
2971
+ /** Animate section changes, ms. Default: 0 */
2972
+ transitionDuration?: number;
2766
2973
  }
2767
2974
  /**
2768
- * Icon in a colored box (non-clickable ActionIcon).
2975
+ * Circular progress with several sections.
2769
2976
  *
2770
2977
  * @example
2771
- * <ThemeIcon variant="light" color="teal" radius="xl"><CheckIcon /></ThemeIcon>
2978
+ * <RingProgress label={<Text ta="center">62%</Text>} sections={[{ value: 40, color: "cyan" }, { value: 22, color: "orange" }]} />
2772
2979
  */
2773
- declare const ThemeIcon: WelloComponent<{
2774
- props: ThemeIconProps;
2980
+ declare const RingProgress: WelloComponent<{
2981
+ props: RingProgressProps;
2775
2982
  ref: HTMLDivElement;
2776
- stylesNames: "root";
2983
+ stylesNames: RingProgressStylesNames;
2777
2984
  }>;
2778
- interface ColorSwatchProps extends BoxProps, StylesApiProps<"root" | "alphaOverlay" | "shadowOverlay" | "colorOverlay" | "childrenOverlay", ColorSwatchProps> {
2779
- /** Any CSS or theme color */
2780
- color: WelloColor;
2781
- /** Default: 28 */
2782
- size?: number | string;
2783
- /** Default: 1000px (circle) */
2784
- radius?: WelloRadius;
2785
- /** Inner shadow. Default: true */
2786
- withShadow?: boolean;
2787
- /** Content over the color (e.g. a check icon) */
2788
- children?: ReactNode;
2985
+ interface SemiCircleProgressProps extends BoxProps, StylesApiProps<"root" | "svg" | "emptySegment" | "filledSegment" | "label", SemiCircleProgressProps> {
2986
+ /** 0–100 */
2987
+ value: number;
2988
+ /** Width in px. Default: 200 */
2989
+ size?: number;
2990
+ /** Default: 12 */
2991
+ thickness?: number;
2992
+ /** Default: 'left-to-right' */
2993
+ fillDirection?: "left-to-right" | "right-to-left";
2994
+ /** Default: 'up' */
2995
+ orientation?: "up" | "down";
2996
+ filledSegmentColor?: WelloColor;
2997
+ emptySegmentColor?: WelloColor;
2998
+ /** Default: 'bottom' */
2999
+ labelPosition?: "center" | "bottom";
3000
+ label?: ReactNode;
3001
+ /** ms. Default: 0 */
3002
+ transitionDuration?: number;
2789
3003
  }
2790
3004
  /**
2791
- * Color sample; checkerboard shows through transparent colors.
3005
+ * Half-circle gauge.
2792
3006
  *
2793
3007
  * @example
2794
- * <ColorSwatch color="#2563eb" /> <ColorSwatch color="rgba(255, 0, 0, 0.4)" />
3008
+ * <SemiCircleProgress value={70} label="70%" filledSegmentColor="teal" />
2795
3009
  */
2796
- declare const ColorSwatch: PolymorphicComponent<{
2797
- props: ColorSwatchProps;
2798
- defaultComponent: "div";
2799
- defaultRef: HTMLDivElement;
2800
- stylesNames: "root" | "alphaOverlay" | "shadowOverlay" | "colorOverlay" | "childrenOverlay";
3010
+ declare const SemiCircleProgress: WelloComponent<{
3011
+ props: SemiCircleProgressProps;
3012
+ ref: HTMLDivElement;
3013
+ stylesNames: "root" | "svg" | "emptySegment" | "filledSegment" | "label";
2801
3014
  }>;
2802
3015
 
2803
- interface ImageProps extends BoxProps, StylesApiProps<"root", ImageProps> {
2804
- src?: string | null;
2805
- /** Shown when `src` is missing or fails */
2806
- fallbackSrc?: string;
2807
- /** `object-fit`. Default: 'cover' */
2808
- fit?: CSSProperties["objectFit"];
3016
+ interface SkeletonProps extends BoxProps, StylesApiProps<"root", SkeletonProps> {
3017
+ /** Show the placeholder (true) or the children (false). Default: true */
3018
+ visible?: boolean;
3019
+ height?: number | string;
3020
+ /** Default: 100% */
3021
+ width?: number | string;
3022
+ /** Circle of `height` size */
3023
+ circle?: boolean;
2809
3024
  radius?: WelloRadius;
2810
- onError?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
3025
+ /** Pulse. Default: true */
3026
+ animate?: boolean;
3027
+ children?: ReactNode;
2811
3028
  }
2812
3029
  /**
2813
- * `<img>` with radius, object-fit and a fallback image.
3030
+ * Loading placeholder; wraps the real content and hides it until `visible` is false.
2814
3031
  *
2815
3032
  * @example
2816
- * <Image src={product.photo} fallbackSrc="/placeholder.png" h={200} radius="md" />
3033
+ * <Skeleton height={8} radius="xl" />
3034
+ * <Skeleton visible={loading}><Text>Loaded text</Text></Skeleton>
2817
3035
  */
2818
- declare const Image: PolymorphicComponent<{
2819
- props: ImageProps;
2820
- defaultComponent: "img";
2821
- defaultRef: HTMLImageElement;
3036
+ declare const Skeleton: WelloComponent<{
3037
+ props: SkeletonProps;
3038
+ ref: HTMLDivElement;
2822
3039
  stylesNames: "root";
2823
3040
  }>;
2824
- interface BackgroundImageProps extends BoxProps, StylesApiProps<"root", BackgroundImageProps> {
2825
- src: string;
2826
- radius?: WelloRadius;
3041
+
3042
+ type EmptyStateStylesNames = "root" | "icon" | "title" | "description" | "actions";
3043
+ interface EmptyStateProps extends BoxProps, StylesApiProps<EmptyStateStylesNames, EmptyStateProps> {
3044
+ icon?: ReactNode;
3045
+ title?: ReactNode;
3046
+ description?: ReactNode;
3047
+ /** Buttons under the text */
3048
+ actions?: ReactNode;
3049
+ /** Icon tint. Default: gray */
3050
+ color?: WelloColor;
3051
+ /** Default: 'md' */
3052
+ size?: WelloSize;
3053
+ /** Dashed border around it. Default: true */
3054
+ withBorder?: boolean;
2827
3055
  children?: ReactNode;
2828
3056
  }
2829
3057
  /**
2830
- * Box with a cover background image.
3058
+ * "Nothing here yet" placeholder for empty lists, searches and pages.
2831
3059
  *
2832
3060
  * @example
2833
- * <BackgroundImage src={hero} radius="md" p="xl"><Title c="white">Sale</Title></BackgroundImage>
3061
+ * <EmptyState icon={<InboxIcon />} title="No orders yet" description="Orders appear here." actions={<Button>New order</Button>} />
2834
3062
  */
2835
- declare const BackgroundImage: PolymorphicComponent<{
2836
- props: BackgroundImageProps;
2837
- defaultComponent: "div";
2838
- defaultRef: HTMLDivElement;
2839
- stylesNames: "root";
3063
+ declare const EmptyState: WelloComponent<{
3064
+ props: EmptyStateProps;
3065
+ ref: HTMLDivElement;
3066
+ stylesNames: EmptyStateStylesNames;
2840
3067
  }>;
2841
3068
 
2842
- type IndicatorPosition = "top-start" | "top-center" | "top-end" | "middle-start" | "middle-center" | "middle-end" | "bottom-start" | "bottom-center" | "bottom-end";
2843
- interface IndicatorProps extends BoxProps, StylesApiProps<"root" | "indicator", IndicatorProps> {
2844
- /** Default: 'top-end' */
2845
- position?: IndicatorPosition;
2846
- /** Distance from the corner. Default: 0 */
2847
- offset?: number;
2848
- /** Text inside (count, "new") */
2849
- label?: ReactNode;
2850
- /** Dot size without a label. Default: 10 */
2851
- size?: number | string;
2852
- color?: WelloColor;
2853
- radius?: WelloRadius;
2854
- /** Ring around it in the background color */
2855
- withBorder?: boolean;
2856
- /** Hide it */
2857
- disabled?: boolean;
2858
- /** Ping animation */
2859
- processing?: boolean;
2860
- /** `display: inline-block` root, for inline elements */
2861
- inline?: boolean;
3069
+ type AccordionStylesNames = "root" | "item" | "control" | "chevron" | "label" | "icon" | "panel" | "content";
3070
+ type AccordionVariant = "default" | "contained" | "filled" | "separated";
3071
+ type AccordionValue<Multiple extends boolean> = Multiple extends true ? string[] : string | null;
3072
+ interface AccordionProps<Multiple extends boolean = false> extends BoxProps, StylesApiProps<AccordionStylesNames, AccordionProps<Multiple>> {
3073
+ /** Several items open at once */
3074
+ multiple?: Multiple;
3075
+ /** Controlled open item(s) */
3076
+ value?: AccordionValue<Multiple>;
3077
+ defaultValue?: AccordionValue<Multiple>;
3078
+ onChange?: (value: AccordionValue<Multiple>) => void;
3079
+ /** Default: 'default' */
3080
+ variant?: AccordionVariant | (string & {});
3081
+ radius?: WelloRadius;
2862
3082
  /** Default: 200 */
2863
- zIndex?: number | string;
2864
- autoContrast?: boolean;
3083
+ transitionDuration?: number;
3084
+ /** Replaces the chevron */
3085
+ chevron?: ReactNode;
3086
+ /** Default: 'right' */
3087
+ chevronPosition?: "left" | "right";
3088
+ /** Default: 'auto' (24px) */
3089
+ chevronSize?: number | string;
3090
+ disableChevronRotation?: boolean;
3091
+ /** Arrow keys wrap from last to first. Default: true */
3092
+ loop?: boolean;
3093
+ /** Wraps controls in h2–h6 */
3094
+ order?: 2 | 3 | 4 | 5 | 6;
3095
+ /** Keep closed panels in the DOM. Default: true */
3096
+ keepMounted?: boolean;
3097
+ children?: ReactNode;
3098
+ }
3099
+ declare function ChevronIcon(props: React.SVGProps<SVGSVGElement>): react.JSX.Element;
3100
+ interface AccordionItemProps extends BoxProps {
3101
+ /** Identifies the item in `value` */
3102
+ value: string;
3103
+ children?: ReactNode;
3104
+ className?: string;
3105
+ }
3106
+ interface AccordionControlProps extends BoxProps {
3107
+ /** Before the label */
3108
+ icon?: ReactNode;
3109
+ /** Replaces the chevron for this item */
3110
+ chevron?: ReactNode;
3111
+ disabled?: boolean;
3112
+ children?: ReactNode;
3113
+ className?: string;
3114
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
3115
+ }
3116
+ interface AccordionPanelProps extends BoxProps {
2865
3117
  children?: ReactNode;
3118
+ className?: string;
2866
3119
  }
2867
3120
  /**
2868
- * Dot or count on the corner of an element (avatar, icon, button).
3121
+ * Expandable sections, single or multiple open, keyboard navigable.
2869
3122
  *
2870
3123
  * @example
2871
- * <Indicator label={3} size={16}><Avatar /></Indicator>
2872
- * <Indicator color="teal" processing withBorder><Avatar /></Indicator>
3124
+ * <Accordion defaultValue="shipping" variant="separated">
3125
+ * <Accordion.Item value="shipping">
3126
+ * <Accordion.Control icon={<TruckIcon />}>Shipping</Accordion.Control>
3127
+ * <Accordion.Panel>2–4 days.</Accordion.Panel>
3128
+ * </Accordion.Item>
3129
+ * </Accordion>
2873
3130
  */
2874
- declare const Indicator: WelloComponent<{
2875
- props: IndicatorProps;
2876
- ref: HTMLDivElement;
2877
- stylesNames: "root" | "indicator";
2878
- }>;
3131
+ declare const Accordion: (<Multiple extends boolean = false>(props: AccordionProps<Multiple> & Omit<React.ComponentPropsWithoutRef<"div">, keyof AccordionProps<Multiple>> & {
3132
+ ref?: React.Ref<HTMLDivElement>;
3133
+ }) => React.ReactElement) & {
3134
+ displayName?: string;
3135
+ } & {
3136
+ Item: WelloComponent<{
3137
+ props: AccordionItemProps;
3138
+ ref: HTMLDivElement;
3139
+ stylesNames: "item";
3140
+ }>;
3141
+ Control: WelloComponent<{
3142
+ props: AccordionControlProps;
3143
+ ref: HTMLButtonElement;
3144
+ stylesNames: "control";
3145
+ }>;
3146
+ Panel: WelloComponent<{
3147
+ props: AccordionPanelProps;
3148
+ ref: HTMLDivElement;
3149
+ stylesNames: "panel";
3150
+ }>;
3151
+ };
2879
3152
 
2880
- type TimelineStylesNames = "root" | "item" | "itemBody" | "itemTitle" | "itemBullet" | "itemContent";
2881
- interface TimelineProps extends BoxProps, StylesApiProps<TimelineStylesNames, TimelineProps> {
2882
- /** Index of the last done item (items up to it are colored). Default: -1 */
2883
- active?: number;
2884
- /** Default: primary */
2885
- color?: WelloColor;
2886
- /** Default: 20 */
2887
- bulletSize?: number | string;
2888
- /** Default: 4 */
2889
- lineWidth?: number | string;
3153
+ type AvatarStylesNames = "root" | "image" | "placeholder";
3154
+ interface AvatarProps extends BoxProps, StylesApiProps<AvatarStylesNames, AvatarProps> {
3155
+ src?: string | null;
3156
+ alt?: string;
3157
+ /** Default: 'md' */
3158
+ size?: WelloSize | number | (string & {});
3159
+ /** Default: '100%' (circle) */
2890
3160
  radius?: WelloRadius;
2891
- /** Bullets on the start or end side. Default: 'left' (start) */
2892
- align?: "left" | "right";
2893
- /** Done items are the ones after `active` */
2894
- reverseActive?: boolean;
3161
+ /** `'initials'` picks a color from `name`. Default: gray */
3162
+ color?: WelloColor | "initials";
3163
+ /** Default: 'light' */
3164
+ variant?: "filled" | "light" | "outline" | "transparent" | "white" | "default" | "gradient" | (string & {});
3165
+ gradient?: WelloGradient;
3166
+ /** Shows initials when there is no image */
3167
+ name?: string;
3168
+ /** Colors `color="initials"` picks from */
3169
+ allowedInitialsColors?: string[];
2895
3170
  autoContrast?: boolean;
3171
+ imageProps?: React.ComponentPropsWithoutRef<"img">;
3172
+ /** Placeholder content (default: initials or a user icon) */
2896
3173
  children?: ReactNode;
2897
3174
  }
2898
- interface TimelineItemProps extends BoxProps {
2899
- title?: ReactNode;
2900
- /** Inside the bullet (icon, avatar) */
2901
- bullet?: ReactNode;
2902
- /** Line under this item. Default: 'solid' */
2903
- lineVariant?: "solid" | "dashed" | "dotted";
2904
- /** Overrides the timeline color */
2905
- color?: WelloColor;
2906
- radius?: WelloRadius;
2907
- children?: ReactNode;
2908
- className?: string;
2909
- /** Set by Timeline */
2910
- __active?: boolean;
2911
- /** Set by Timeline */
2912
- __lineActive?: boolean;
2913
- /** Set by Timeline */
2914
- __align?: "left" | "right";
2915
- }
2916
- declare const TimelineItem: WelloComponent<{
2917
- props: TimelineItemProps;
2918
- ref: HTMLDivElement;
2919
- stylesNames: "item";
2920
- }>;
3175
+ /** `'Mohamed Wael'` → `'MW'`. */
3176
+ declare function getInitials(name: string, limit?: number): string;
2921
3177
  /**
2922
- * Vertical list of events with bullets and a line; items up to `active` are highlighted.
3178
+ * User image with initials / icon fallback.
2923
3179
  *
2924
3180
  * @example
2925
- * <Timeline active={1} bulletSize={24}>
2926
- * <Timeline.Item title="Ordered">Mar 2</Timeline.Item>
2927
- * <Timeline.Item title="Shipped">Mar 3</Timeline.Item>
2928
- * <Timeline.Item title="Delivered" lineVariant="dashed">Expected Mar 5</Timeline.Item>
2929
- * </Timeline>
3181
+ * <Avatar src={user.photo} name={user.name} color="initials" />
3182
+ * <Avatar.Group><Avatar src={a} /><Avatar src={b} /><Avatar>+5</Avatar></Avatar.Group>
2930
3183
  */
2931
- declare const Timeline: WelloComponent<{
2932
- props: TimelineProps;
2933
- ref: HTMLDivElement;
2934
- stylesNames: TimelineStylesNames;
3184
+ declare const Avatar: PolymorphicComponent<{
3185
+ props: AvatarProps;
3186
+ defaultComponent: "div";
3187
+ defaultRef: HTMLDivElement;
3188
+ stylesNames: AvatarStylesNames;
2935
3189
  staticComponents: {
2936
- Item: typeof TimelineItem;
3190
+ Group: typeof AvatarGroup;
2937
3191
  };
2938
3192
  }>;
2939
-
2940
- interface SpoilerProps extends BoxProps, StylesApiProps<"root" | "content" | "control", SpoilerProps> {
2941
- /** Height shown while collapsed, px. Default: 100 */
2942
- maxHeight?: number;
2943
- /** Default: 'Show more' */
2944
- showLabel?: ReactNode;
2945
- /** Default: 'Hide' */
2946
- hideLabel?: ReactNode;
2947
- /** Controlled state */
2948
- expanded?: boolean;
2949
- defaultExpanded?: boolean;
2950
- onExpandedChange?: (expanded: boolean) => void;
2951
- /** Default: 200 */
2952
- transitionDuration?: number;
3193
+ interface AvatarGroupProps extends BoxProps, StylesApiProps<"group", AvatarGroupProps> {
3194
+ /** Overlap between avatars. Default: 'sm' */
3195
+ spacing?: WelloSpacing;
2953
3196
  children?: ReactNode;
2954
3197
  }
2955
- /**
2956
- * Long content cut to a height, with Show more / Hide. The button only appears when needed.
2957
- *
2958
- * @example
2959
- * <Spoiler maxHeight={80} showLabel="Read more" hideLabel="Less">{longText}</Spoiler>
2960
- */
2961
- declare const Spoiler: WelloComponent<{
2962
- props: SpoilerProps;
3198
+ declare const AvatarGroup: WelloComponent<{
3199
+ props: AvatarGroupProps;
2963
3200
  ref: HTMLDivElement;
2964
- stylesNames: "root" | "content" | "control";
3201
+ stylesNames: "group";
2965
3202
  }>;
2966
3203
 
2967
- interface NumberFormatterProps {
2968
- value?: number | string | null;
2969
- /** Before the number, e.g. `'$ '` */
2970
- prefix?: string;
2971
- /** After the number, e.g. `' SAR'` */
2972
- suffix?: string;
2973
- /** `true` for `,`, or your own separator */
2974
- thousandSeparator?: string | boolean;
2975
- /** Default: '.' */
2976
- decimalSeparator?: string;
2977
- /** Digits after the decimal point (rounded) */
2978
- decimalScale?: number;
2979
- /** Always show `decimalScale` digits */
2980
- fixedDecimalScale?: boolean;
2981
- /** Allow negative numbers. Default: true */
2982
- allowNegative?: boolean;
2983
- /** Group size: `'thousand'` (1,000,000), `'lakh'` (10,00,000), `'wan'` (1,0000). Default: 'thousand' */
2984
- thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
3204
+ type BadgeStylesNames = "root" | "section" | "label";
3205
+ interface BadgeProps extends BoxProps, StylesApiProps<BadgeStylesNames, BadgeProps> {
3206
+ /** shared/ui names (`secondary`, `destructive`, `success`… are soft tints) or any variant. Default: 'default' */
3207
+ variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "success" | "warning" | "info" | "filled" | "light" | "dot" | "subtle" | "transparent" | "white" | "gradient" | (string & {});
3208
+ /** Default: 'md' */
3209
+ size?: WelloSize | (string & {});
3210
+ color?: WelloColor;
3211
+ /** Default: 'xl' (pill) */
3212
+ radius?: WelloRadius;
3213
+ gradient?: WelloGradient;
3214
+ leftSection?: ReactNode;
3215
+ rightSection?: ReactNode;
3216
+ fullWidth?: boolean;
3217
+ /** Same width and height (numbers, single letters) */
3218
+ circle?: boolean;
3219
+ autoContrast?: boolean;
3220
+ /** Styles the one child instead of rendering a div, e.g. a link */
3221
+ asChild?: boolean;
3222
+ children?: ReactNode;
2985
3223
  }
2986
- /** Formats a number as text, like the component (usable in non-React code). */
2987
- declare function formatNumber(value: number | string | null | undefined, options?: Omit<NumberFormatterProps, "value">): string;
2988
3224
  /**
2989
- * Prints a formatted number.
3225
+ * Small status label.
2990
3226
  *
2991
3227
  * @example
2992
- * <NumberFormatter value={1234567.891} thousandSeparator decimalScale={2} suffix=" SAR" />
3228
+ * <Badge color="teal" variant="light">Paid</Badge>
3229
+ * <Badge variant="dot" color="red">Offline</Badge>
2993
3230
  */
2994
- declare function NumberFormatter(_props: NumberFormatterProps): react.JSX.Element;
3231
+ declare const Badge: PolymorphicComponent<{
3232
+ props: BadgeProps;
3233
+ defaultComponent: "div";
3234
+ defaultRef: HTMLDivElement;
3235
+ stylesNames: BadgeStylesNames;
3236
+ }>;
2995
3237
 
2996
- interface OverlayProps extends BoxProps, StylesApiProps<"root", OverlayProps> {
2997
- /** Default: '#000' */
2998
- color?: string;
2999
- /** 0–1. Default: 0.6 */
3000
- backgroundOpacity?: number;
3001
- /** Blur behind, px */
3002
- blur?: number | string;
3003
- /** Replaces color with a gradient */
3004
- gradient?: string;
3005
- /** Default: 200 */
3006
- zIndex?: number | string;
3238
+ interface CardProps extends BoxProps, StylesApiProps<"root" | "section", CardProps> {
3239
+ /** Inner padding; sections bleed to the edges. Default: 'md' */
3240
+ padding?: WelloSpacing;
3241
+ shadow?: WelloShadow;
3007
3242
  radius?: WelloRadius;
3008
- /** `position: fixed` (whole viewport) instead of absolute */
3009
- fixed?: boolean;
3010
- /** Center children */
3011
- center?: boolean;
3243
+ /** A border around it. Default: true */
3244
+ withBorder?: boolean;
3245
+ /** Default: 'vertical' */
3246
+ orientation?: "vertical" | "horizontal";
3247
+ children?: ReactNode;
3248
+ }
3249
+ interface CardSectionProps extends BoxProps {
3250
+ /** Borders between this section and its neighbours */
3251
+ withBorder?: boolean;
3252
+ /** Keep the card padding inside the section */
3253
+ inheritPadding?: boolean;
3012
3254
  children?: ReactNode;
3013
3255
  }
3256
+ /** Full-width part of a card (image, footer…); first and last sections reach the card edge. */
3257
+ declare const CardSection: PolymorphicComponent<{
3258
+ props: CardSectionProps;
3259
+ defaultComponent: "div";
3260
+ defaultRef: HTMLDivElement;
3261
+ stylesNames: "section";
3262
+ }>;
3014
3263
  /**
3015
- * Dim layer over its parent (or the viewport with `fixed`).
3264
+ * Paper with padding and edge-to-edge sections.
3016
3265
  *
3017
3266
  * @example
3018
- * <Box pos="relative"><Overlay color="#000" backgroundOpacity={0.4} blur={2} /></Box>
3267
+ * <Card withBorder shadow="sm">
3268
+ * <Card.Section><Image src={cover} h={160} /></Card.Section>
3269
+ * <Text fw={600} mt="md">Title</Text>
3270
+ * </Card>
3019
3271
  */
3020
- declare const Overlay: PolymorphicComponent<{
3021
- props: OverlayProps;
3272
+ declare const Card: PolymorphicComponent<{
3273
+ props: CardProps;
3022
3274
  defaultComponent: "div";
3023
3275
  defaultRef: HTMLDivElement;
3024
- stylesNames: "root";
3276
+ stylesNames: "root" | "section";
3277
+ staticComponents: {
3278
+ Section: typeof CardSection;
3279
+ };
3025
3280
  }>;
3026
- interface LoadingOverlayProps extends BoxProps, StylesApiProps<"root" | "loader" | "overlay", LoadingOverlayProps> {
3027
- visible?: boolean;
3028
- /** Default: 400 */
3029
- zIndex?: number | string;
3030
- overlayProps?: OverlayProps;
3031
- loaderProps?: LoaderProps;
3032
- transitionProps?: Omit<TransitionProps, "mounted" | "children">;
3281
+ declare const CardHeader: {
3282
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3283
+ displayName: string;
3284
+ };
3285
+ declare const CardTitle: {
3286
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3287
+ displayName: string;
3288
+ };
3289
+ declare const CardDescription: {
3290
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3291
+ displayName: string;
3292
+ };
3293
+ declare const CardContent: {
3294
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3295
+ displayName: string;
3296
+ };
3297
+ declare const CardFooter: {
3298
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3299
+ displayName: string;
3300
+ };
3301
+ declare const CardAction: {
3302
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3303
+ displayName: string;
3304
+ };
3305
+
3306
+ interface ThemeIconProps extends BoxProps, StylesApiProps<"root", ThemeIconProps> {
3307
+ /** Default: 'filled' */
3308
+ variant?: "filled" | "light" | "outline" | "transparent" | "white" | "default" | "gradient" | (string & {});
3309
+ /** Default: 'md' */
3310
+ size?: WelloSize | number | (string & {});
3311
+ color?: WelloColor;
3312
+ radius?: WelloRadius;
3313
+ gradient?: WelloGradient;
3314
+ autoContrast?: boolean;
3315
+ children?: ReactNode;
3033
3316
  }
3034
3317
  /**
3035
- * Covers its relative parent with an overlay and a loader.
3318
+ * Icon in a colored box (non-clickable ActionIcon).
3036
3319
  *
3037
3320
  * @example
3038
- * <Box pos="relative"><LoadingOverlay visible={saving} overlayProps={{ blur: 2 }} />…</Box>
3321
+ * <ThemeIcon variant="light" color="teal" radius="xl"><CheckIcon /></ThemeIcon>
3039
3322
  */
3040
- declare const LoadingOverlay: WelloComponent<{
3041
- props: LoadingOverlayProps;
3323
+ declare const ThemeIcon: WelloComponent<{
3324
+ props: ThemeIconProps;
3042
3325
  ref: HTMLDivElement;
3043
- stylesNames: "root" | "loader" | "overlay";
3326
+ stylesNames: "root";
3327
+ }>;
3328
+ interface ColorSwatchProps extends BoxProps, StylesApiProps<"root" | "alphaOverlay" | "shadowOverlay" | "colorOverlay" | "childrenOverlay", ColorSwatchProps> {
3329
+ /** Any CSS or theme color */
3330
+ color: WelloColor;
3331
+ /** Default: 28 */
3332
+ size?: number | string;
3333
+ /** Default: 1000px (circle) */
3334
+ radius?: WelloRadius;
3335
+ /** Inner shadow. Default: true */
3336
+ withShadow?: boolean;
3337
+ /** Content over the color (e.g. a check icon) */
3338
+ children?: ReactNode;
3339
+ }
3340
+ /**
3341
+ * Color sample; checkerboard shows through transparent colors.
3342
+ *
3343
+ * @example
3344
+ * <ColorSwatch color="#2563eb" /> <ColorSwatch color="rgba(255, 0, 0, 0.4)" />
3345
+ */
3346
+ declare const ColorSwatch: PolymorphicComponent<{
3347
+ props: ColorSwatchProps;
3348
+ defaultComponent: "div";
3349
+ defaultRef: HTMLDivElement;
3350
+ stylesNames: "root" | "alphaOverlay" | "shadowOverlay" | "colorOverlay" | "childrenOverlay";
3044
3351
  }>;
3045
3352
 
3046
- type FloatingSide = "top" | "right" | "bottom" | "left";
3047
- type FloatingPosition = FloatingSide | `${FloatingSide}-start` | `${FloatingSide}-end` | `${FloatingSide}-left` | `${FloatingSide}-right`;
3048
- interface UseFloatingOptions {
3049
- opened: boolean;
3050
- /** Default: 'bottom' */
3051
- position?: FloatingPosition;
3052
- /** Gap between target and dropdown, px. Default: 8 */
3053
- offset?: number;
3054
- /** Move to the opposite side when there is no room. Default: true */
3055
- flip?: boolean;
3056
- /** Slide along the target to stay in the viewport. Default: true */
3057
- shift?: boolean;
3058
- /** Distance kept from the viewport edges, px. Default: 8 */
3059
- padding?: number;
3060
- /** RTL swaps logical start / end on top and bottom (not physical left / right) */
3061
- dir?: "ltr" | "rtl";
3062
- /** Arrow size, for keeping it inside rounded corners */
3063
- arrowSize?: number;
3064
- /** Space between the arrow and the dropdown corner. Default: 5 */
3065
- arrowOffset?: number;
3066
- /** Arrow at the side edge or centered on the target. Default: 'side' */
3067
- arrowPosition?: "side" | "center";
3068
- onPositionChange?: (position: FloatingPosition) => void;
3069
- /** Stay on the side it opened on, instead of flipping while scrolling. Default: true */
3070
- preventPositionChangeWhenVisible?: boolean;
3353
+ interface ImageProps extends BoxProps, StylesApiProps<"root", ImageProps> {
3354
+ src?: string | null;
3355
+ /** Shown when `src` is missing or fails */
3356
+ fallbackSrc?: string;
3357
+ /** `object-fit`. Default: 'cover' */
3358
+ fit?: CSSProperties["objectFit"];
3359
+ radius?: WelloRadius;
3360
+ onError?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
3071
3361
  }
3072
3362
  /**
3073
- * Positions a floating element next to a reference element (position: fixed), with flip,
3074
- * shift and an arrow. Updates on scroll, resize and size changes.
3363
+ * `<img>` with radius, object-fit and a fallback image.
3364
+ *
3365
+ * @example
3366
+ * <Image src={product.photo} fallbackSrc="/placeholder.png" h={200} radius="md" />
3075
3367
  */
3076
- declare function useFloating(options: UseFloatingOptions): {
3077
- update: () => void;
3078
- reference: react.RefObject<HTMLElement | null>;
3079
- floating: react.RefObject<HTMLElement | null>;
3080
- setReference: (node: HTMLElement | null) => void;
3081
- setFloating: (node: HTMLElement | null) => void;
3082
- x: number;
3083
- y: number;
3084
- /** Final position after flipping */
3085
- placement: FloatingPosition;
3086
- arrowX?: number;
3087
- arrowY?: number;
3088
- /** Target size, for `width="target"` */
3089
- referenceWidth: number;
3090
- ready: boolean;
3091
- /** The target is scrolled out of sight */
3092
- referenceHidden: boolean;
3093
- };
3368
+ declare const Image: PolymorphicComponent<{
3369
+ props: ImageProps;
3370
+ defaultComponent: "img";
3371
+ defaultRef: HTMLImageElement;
3372
+ stylesNames: "root";
3373
+ }>;
3374
+ interface BackgroundImageProps extends BoxProps, StylesApiProps<"root", BackgroundImageProps> {
3375
+ src: string;
3376
+ radius?: WelloRadius;
3377
+ children?: ReactNode;
3378
+ }
3379
+ /**
3380
+ * Box with a cover background image.
3381
+ *
3382
+ * @example
3383
+ * <BackgroundImage src={hero} radius="md" p="xl"><Title c="white">Sale</Title></BackgroundImage>
3384
+ */
3385
+ declare const BackgroundImage: PolymorphicComponent<{
3386
+ props: BackgroundImageProps;
3387
+ defaultComponent: "div";
3388
+ defaultRef: HTMLDivElement;
3389
+ stylesNames: "root";
3390
+ }>;
3094
3391
 
3095
- type PopoverStylesNames = "dropdown" | "arrow";
3096
- type PopoverWidth = "target" | "auto" | number | (string & {});
3097
- interface PopoverBaseProps {
3098
- /** Default: 'bottom' */
3099
- position?: FloatingPosition;
3100
- /** Default: 8 */
3392
+ type IndicatorPosition = "top-start" | "top-center" | "top-end" | "middle-start" | "middle-center" | "middle-end" | "bottom-start" | "bottom-center" | "bottom-end";
3393
+ interface IndicatorProps extends BoxProps, StylesApiProps<"root" | "indicator", IndicatorProps> {
3394
+ /** Default: 'top-end' */
3395
+ position?: IndicatorPosition;
3396
+ /** Distance from the corner. Default: 0 */
3101
3397
  offset?: number;
3102
- /** `'target'` = same width as the target. Default: 'max-content' */
3103
- width?: PopoverWidth;
3104
- withArrow?: boolean;
3105
- /** Default: 7 */
3106
- arrowSize?: number;
3107
- /** Default: 5 */
3108
- arrowOffset?: number;
3109
- /** Default: 0 */
3110
- arrowRadius?: number;
3111
- /** Default: 'side' */
3112
- arrowPosition?: "side" | "center";
3113
- /** Default: true */
3114
- withinPortal?: boolean;
3115
- portalProps?: Omit<PortalProps, "children">;
3116
- /** Default: 300 */
3117
- zIndex?: number | string;
3398
+ /** Text inside (count, "new") */
3399
+ label?: ReactNode;
3400
+ /** Dot size without a label. Default: 10 */
3401
+ size?: number | string;
3402
+ color?: WelloColor;
3118
3403
  radius?: WelloRadius;
3119
- /** Default: 'md' */
3120
- shadow?: WelloShadow;
3121
- /** Default: { transition: 'fade', duration: 150 } */
3122
- transitionProps?: Omit<TransitionProps, "mounted" | "children">;
3123
- /** Keep the dropdown in the DOM while closed */
3124
- keepMounted?: boolean;
3125
- /** Flip / shift to stay on screen. Default: both true */
3126
- middlewares?: {
3127
- flip?: boolean;
3128
- shift?: boolean;
3129
- };
3130
- onPositionChange?: (position: FloatingPosition) => void;
3131
- /** Hide the dropdown */
3404
+ /** Ring around it in the background color */
3405
+ withBorder?: boolean;
3406
+ /** Hide it */
3132
3407
  disabled?: boolean;
3133
- /** Hide it while the target is scrolled out of sight. Default: true */
3134
- hideDetached?: boolean;
3135
- /** Stay on the side it opened on, instead of flipping while scrolling. Default: true */
3136
- preventPositionChangeWhenVisible?: boolean;
3137
- /**
3408
+ /** Ping animation */
3409
+ processing?: boolean;
3410
+ /** `display: inline-block` root, for inline elements */
3411
+ inline?: boolean;
3412
+ /** Default: 200 */
3413
+ zIndex?: number | string;
3414
+ autoContrast?: boolean;
3415
+ children?: ReactNode;
3416
+ }
3417
+ /**
3418
+ * Dot or count on the corner of an element (avatar, icon, button).
3419
+ *
3420
+ * @example
3421
+ * <Indicator label={3} size={16}><Avatar /></Indicator>
3422
+ * <Indicator color="teal" processing withBorder><Avatar /></Indicator>
3423
+ */
3424
+ declare const Indicator: WelloComponent<{
3425
+ props: IndicatorProps;
3426
+ ref: HTMLDivElement;
3427
+ stylesNames: "root" | "indicator";
3428
+ }>;
3429
+
3430
+ type TimelineStylesNames = "root" | "item" | "itemBody" | "itemTitle" | "itemBullet" | "itemContent";
3431
+ interface TimelineProps extends BoxProps, StylesApiProps<TimelineStylesNames, TimelineProps> {
3432
+ /** Index of the last done item (items up to it are colored). Default: -1 */
3433
+ active?: number;
3434
+ /** Default: primary */
3435
+ color?: WelloColor;
3436
+ /** Default: 20 */
3437
+ bulletSize?: number | string;
3438
+ /** Default: 4 */
3439
+ lineWidth?: number | string;
3440
+ radius?: WelloRadius;
3441
+ /** Bullets on the start or end side. Default: 'left' (start) */
3442
+ align?: "left" | "right";
3443
+ /** Done items are the ones after `active` */
3444
+ reverseActive?: boolean;
3445
+ autoContrast?: boolean;
3446
+ children?: ReactNode;
3447
+ }
3448
+ interface TimelineItemProps extends BoxProps {
3449
+ title?: ReactNode;
3450
+ /** Inside the bullet (icon, avatar) */
3451
+ bullet?: ReactNode;
3452
+ /** Line under this item. Default: 'solid' */
3453
+ lineVariant?: "solid" | "dashed" | "dotted";
3454
+ /** Overrides the timeline color */
3455
+ color?: WelloColor;
3456
+ radius?: WelloRadius;
3457
+ children?: ReactNode;
3458
+ className?: string;
3459
+ /** Set by Timeline */
3460
+ __active?: boolean;
3461
+ /** Set by Timeline */
3462
+ __lineActive?: boolean;
3463
+ /** Set by Timeline */
3464
+ __align?: "left" | "right";
3465
+ }
3466
+ declare const TimelineItem: WelloComponent<{
3467
+ props: TimelineItemProps;
3468
+ ref: HTMLDivElement;
3469
+ stylesNames: "item";
3470
+ }>;
3471
+ /**
3472
+ * Vertical list of events with bullets and a line; items up to `active` are highlighted.
3473
+ *
3474
+ * @example
3475
+ * <Timeline active={1} bulletSize={24}>
3476
+ * <Timeline.Item title="Ordered">Mar 2</Timeline.Item>
3477
+ * <Timeline.Item title="Shipped">Mar 3</Timeline.Item>
3478
+ * <Timeline.Item title="Delivered" lineVariant="dashed">Expected Mar 5</Timeline.Item>
3479
+ * </Timeline>
3480
+ */
3481
+ declare const Timeline: WelloComponent<{
3482
+ props: TimelineProps;
3483
+ ref: HTMLDivElement;
3484
+ stylesNames: TimelineStylesNames;
3485
+ staticComponents: {
3486
+ Item: typeof TimelineItem;
3487
+ };
3488
+ }>;
3489
+
3490
+ interface SpoilerProps extends BoxProps, StylesApiProps<"root" | "content" | "control", SpoilerProps> {
3491
+ /** Height shown while collapsed, px. Default: 100 */
3492
+ maxHeight?: number;
3493
+ /** Default: 'Show more' */
3494
+ showLabel?: ReactNode;
3495
+ /** Default: 'Hide' */
3496
+ hideLabel?: ReactNode;
3497
+ /** Controlled state */
3498
+ expanded?: boolean;
3499
+ defaultExpanded?: boolean;
3500
+ onExpandedChange?: (expanded: boolean) => void;
3501
+ /** Default: 200 */
3502
+ transitionDuration?: number;
3503
+ children?: ReactNode;
3504
+ }
3505
+ /**
3506
+ * Long content cut to a height, with Show more / Hide. The button only appears when needed.
3507
+ *
3508
+ * @example
3509
+ * <Spoiler maxHeight={80} showLabel="Read more" hideLabel="Less">{longText}</Spoiler>
3510
+ */
3511
+ declare const Spoiler: WelloComponent<{
3512
+ props: SpoilerProps;
3513
+ ref: HTMLDivElement;
3514
+ stylesNames: "root" | "content" | "control";
3515
+ }>;
3516
+
3517
+ interface NumberFormatterProps {
3518
+ value?: number | string | null;
3519
+ /** Before the number, e.g. `'$ '` */
3520
+ prefix?: string;
3521
+ /** After the number, e.g. `' SAR'` */
3522
+ suffix?: string;
3523
+ /** `true` for `,`, or your own separator */
3524
+ thousandSeparator?: string | boolean;
3525
+ /** Default: '.' */
3526
+ decimalSeparator?: string;
3527
+ /** Digits after the decimal point (rounded) */
3528
+ decimalScale?: number;
3529
+ /** Always show `decimalScale` digits */
3530
+ fixedDecimalScale?: boolean;
3531
+ /** Allow negative numbers. Default: true */
3532
+ allowNegative?: boolean;
3533
+ /** Group size: `'thousand'` (1,000,000), `'lakh'` (10,00,000), `'wan'` (1,0000). Default: 'thousand' */
3534
+ thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
3535
+ }
3536
+ /** Formats a number as text, like the component (usable in non-React code). */
3537
+ declare function formatNumber(value: number | string | null | undefined, options?: Omit<NumberFormatterProps, "value">): string;
3538
+ /**
3539
+ * Prints a formatted number.
3540
+ *
3541
+ * @example
3542
+ * <NumberFormatter value={1234567.891} thousandSeparator decimalScale={2} suffix=" SAR" />
3543
+ */
3544
+ declare function NumberFormatter(_props: NumberFormatterProps): react.JSX.Element;
3545
+
3546
+ type FloatingSide = "top" | "right" | "bottom" | "left";
3547
+ type FloatingPosition = FloatingSide | `${FloatingSide}-start` | `${FloatingSide}-end` | `${FloatingSide}-left` | `${FloatingSide}-right`;
3548
+ interface UseFloatingOptions {
3549
+ opened: boolean;
3550
+ /** Default: 'bottom' */
3551
+ position?: FloatingPosition;
3552
+ /** Gap between target and dropdown, px. Default: 8 */
3553
+ offset?: number;
3554
+ /** Move to the opposite side when there is no room. Default: true */
3555
+ flip?: boolean;
3556
+ /** Slide along the target to stay in the viewport. Default: true */
3557
+ shift?: boolean;
3558
+ /** Distance kept from the viewport edges, px. Default: 8 */
3559
+ padding?: number;
3560
+ /** RTL swaps logical start / end on top and bottom (not physical left / right) */
3561
+ dir?: "ltr" | "rtl";
3562
+ /** Arrow size, for keeping it inside rounded corners */
3563
+ arrowSize?: number;
3564
+ /** Space between the arrow and the dropdown corner. Default: 5 */
3565
+ arrowOffset?: number;
3566
+ /** Arrow at the side edge or centered on the target. Default: 'side' */
3567
+ arrowPosition?: "side" | "center";
3568
+ onPositionChange?: (position: FloatingPosition) => void;
3569
+ /** Stay on the side it opened on, instead of flipping while scrolling. Default: true */
3570
+ preventPositionChangeWhenVisible?: boolean;
3571
+ }
3572
+ /**
3573
+ * Positions a floating element next to a reference element (position: fixed), with flip,
3574
+ * shift and an arrow. Updates on scroll, resize and size changes.
3575
+ */
3576
+ declare function useFloating(options: UseFloatingOptions): {
3577
+ update: () => void;
3578
+ reference: react.RefObject<HTMLElement | null>;
3579
+ floating: react.RefObject<HTMLElement | null>;
3580
+ setReference: (node: HTMLElement | null) => void;
3581
+ setFloating: (node: HTMLElement | null) => void;
3582
+ x: number;
3583
+ y: number;
3584
+ /** Final position after flipping */
3585
+ placement: FloatingPosition;
3586
+ arrowX?: number;
3587
+ arrowY?: number;
3588
+ /** Target size, for `width="target"` */
3589
+ referenceWidth: number;
3590
+ ready: boolean;
3591
+ /** The target is scrolled out of sight */
3592
+ referenceHidden: boolean;
3593
+ };
3594
+
3595
+ type Side = "top" | "right" | "bottom" | "left";
3596
+ type Align = "start" | "center" | "end";
3597
+
3598
+ type PopoverStylesNames = "dropdown" | "arrow";
3599
+ type PopoverWidth = "target" | "auto" | number | (string & {});
3600
+ interface PopoverBaseProps {
3601
+ /** Default: 'bottom' */
3602
+ position?: FloatingPosition;
3603
+ /** Default: 8 */
3604
+ offset?: number;
3605
+ /** `'target'` = same width as the target. Default: 'max-content' */
3606
+ width?: PopoverWidth;
3607
+ withArrow?: boolean;
3608
+ /** Default: 7 */
3609
+ arrowSize?: number;
3610
+ /** Default: 5 */
3611
+ arrowOffset?: number;
3612
+ /** Default: 0 */
3613
+ arrowRadius?: number;
3614
+ /** Default: 'side' */
3615
+ arrowPosition?: "side" | "center";
3616
+ /** Default: true */
3617
+ withinPortal?: boolean;
3618
+ portalProps?: Omit<PortalProps, "children">;
3619
+ /** Default: 300 */
3620
+ zIndex?: number | string;
3621
+ radius?: WelloRadius;
3622
+ /** Default: 'md' */
3623
+ shadow?: WelloShadow;
3624
+ /** Default: { transition: 'fade', duration: 150 } */
3625
+ transitionProps?: Omit<TransitionProps, "mounted" | "children">;
3626
+ /** Keep the dropdown in the DOM while closed */
3627
+ keepMounted?: boolean;
3628
+ /** Flip / shift to stay on screen. Default: both true */
3629
+ middlewares?: {
3630
+ flip?: boolean;
3631
+ shift?: boolean;
3632
+ };
3633
+ onPositionChange?: (position: FloatingPosition) => void;
3634
+ /** Hide the dropdown */
3635
+ disabled?: boolean;
3636
+ /** Hide it while the target is scrolled out of sight. Default: true */
3637
+ hideDetached?: boolean;
3638
+ /** Stay on the side it opened on, instead of flipping while scrolling. Default: true */
3639
+ preventPositionChangeWhenVisible?: boolean;
3640
+ /**
3138
3641
  * Floating alignment dir (`start` / `end`). Default: app direction.
3139
3642
  * Pass `"ltr"` for controls that stay left-anchored in RTL (e.g. PhoneInput dial code).
3140
3643
  */
3141
3644
  dir?: "ltr" | "rtl";
3142
3645
  }
3143
- interface PopoverProps$1 extends PopoverBaseProps, StylesApiProps<PopoverStylesNames, PopoverProps$1> {
3646
+ /** Props of the engine (internal). The public `PopoverProps` below adds open / onOpenChange. */
3647
+ interface PopoverRootProps extends PopoverBaseProps, StylesApiProps<PopoverStylesNames, PopoverRootProps> {
3144
3648
  /** Controlled state */
3145
3649
  opened?: boolean;
3146
3650
  defaultOpened?: boolean;
@@ -3176,7 +3680,7 @@ interface PopoverContextValue {
3176
3680
  targetRef: React.MutableRefObject<HTMLElement | null>;
3177
3681
  dropdownRef: React.MutableRefObject<HTMLElement | null>;
3178
3682
  getStyles: GetStyles<PopoverStylesNames>;
3179
- props: PopoverProps$1;
3683
+ props: PopoverRootProps;
3180
3684
  id: string;
3181
3685
  /** Nested popovers register their dropdown so clicks in them don't close this one */
3182
3686
  registerChild: (ref: React.MutableRefObject<HTMLElement | null>) => () => void;
@@ -3202,36 +3706,112 @@ declare const PopoverDropdown: WelloComponent<{
3202
3706
  ref: HTMLDivElement;
3203
3707
  stylesNames: "dropdown";
3204
3708
  }>;
3205
-
3206
- type TooltipStylesNames = "tooltip" | "arrow";
3207
- interface TooltipProps extends BoxProps, StylesApiProps<TooltipStylesNames, TooltipProps> {
3208
- /** Tooltip content */
3209
- label: ReactNode;
3210
- /** One element; receives ref and event handlers */
3211
- children: ReactElement;
3212
- /** Default: 'top' */
3213
- position?: FloatingPosition;
3214
- /** Default: 5 */
3215
- offset?: number;
3216
- /** Controlled visibility */
3217
- opened?: boolean;
3218
- /** ms. Default: 0 */
3219
- openDelay?: number;
3220
- /** ms. Default: 0 */
3221
- closeDelay?: number;
3222
- withArrow?: boolean;
3223
- /** Default: 4 */
3224
- arrowSize?: number;
3225
- /** Default: 5 */
3226
- arrowOffset?: number;
3227
- arrowRadius?: number;
3228
- arrowPosition?: "side" | "center";
3229
- /** Background. Default: dark */
3709
+ interface PopoverProps extends PopoverRootProps {
3710
+ /** Controlled state (same as `opened`) */
3711
+ open?: boolean;
3712
+ /** Same as `defaultOpened` */
3713
+ defaultOpen?: boolean;
3714
+ /** Same as `onChange` */
3715
+ onOpenChange?: (open: boolean) => void;
3716
+ /** Kept for API compatibility */
3717
+ modal?: boolean;
3718
+ }
3719
+ /**
3720
+ * Popover, with composable parts (`PopoverTrigger` / `PopoverContent` with side + align) or with
3721
+ * `Popover.Target` / `Popover.Dropdown` and `position`.
3722
+ *
3723
+ * @example
3724
+ * <Popover>
3725
+ * <PopoverTrigger asChild><Button variant="outline">Filters</Button></PopoverTrigger>
3726
+ * <PopoverContent align="end" sideOffset={8}>…</PopoverContent>
3727
+ * </Popover>
3728
+ * <Popover width={260} withArrow position="bottom">
3729
+ * <Popover.Target><Button>Open</Button></Popover.Target>
3730
+ * <Popover.Dropdown>…</Popover.Dropdown>
3731
+ * </Popover>
3732
+ */
3733
+ declare function Popover({ open, defaultOpen, onOpenChange, modal: _modal, opened, defaultOpened, onChange, position, offset, width, children, ...props }: PopoverProps): react.JSX.Element;
3734
+ declare namespace Popover {
3735
+ var Target: typeof PopoverTarget;
3736
+ var Dropdown: WelloComponent<{
3737
+ props: PopoverDropdownProps;
3738
+ ref: HTMLDivElement;
3739
+ stylesNames: "dropdown";
3740
+ }>;
3741
+ var displayName: string;
3742
+ }
3743
+ declare function PopoverTrigger({ asChild, children, ...props }: ComponentProps<"button"> & {
3744
+ asChild?: boolean;
3745
+ }): react.JSX.Element;
3746
+ interface PopoverContentProps extends Omit<ComponentProps<"div">, "ref"> {
3747
+ /** Default: 'start' */
3748
+ align?: Align;
3749
+ /** Default: 'bottom' */
3750
+ side?: Side;
3751
+ /** Default: 8 */
3752
+ sideOffset?: number;
3753
+ /** Same width as the trigger */
3754
+ sameWidth?: boolean;
3755
+ width?: Exclude<PopoverWidth, "target">;
3756
+ height?: number | string;
3757
+ /** Class of the dropdown, same as `className` */
3758
+ classNames?: {
3759
+ dropdown?: string;
3760
+ };
3761
+ }
3762
+ declare function PopoverContent({ className, classNames, children, align, side, sideOffset, sameWidth, width, height, style, ...props }: PopoverContentProps): react.JSX.Element;
3763
+ declare function PopoverAnchor({ children, ...props }: ComponentProps<"div">): react.JSX.Element;
3764
+ declare const PopoverHeader: {
3765
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3766
+ displayName: string;
3767
+ };
3768
+ declare const PopoverTitle: {
3769
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3770
+ displayName: string;
3771
+ };
3772
+ declare const PopoverDescription: {
3773
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
3774
+ displayName: string;
3775
+ };
3776
+
3777
+ type TooltipStylesNames = "tooltip" | "arrow";
3778
+ interface TooltipProps extends BoxProps, StylesApiProps<TooltipStylesNames, TooltipProps> {
3779
+ /** Tooltip content. Leave it out to write the parts instead (`TooltipTrigger` + `TooltipContent`) */
3780
+ label?: ReactNode;
3781
+ /** With `label`: one element, which receives ref and event handlers. Otherwise the parts */
3782
+ children?: ReactNode;
3783
+ /** Default: 'top' */
3784
+ position?: FloatingPosition;
3785
+ /** Default: 5 */
3786
+ offset?: number;
3787
+ /** Controlled visibility */
3788
+ opened?: boolean;
3789
+ /** Controlled visibility (same as `opened`) */
3790
+ open?: boolean;
3791
+ /** Visible on first render, when not controlled */
3792
+ defaultOpen?: boolean;
3793
+ /** Called when hover / focus / Escape want to show or hide it */
3794
+ onOpenChange?: (open: boolean) => void;
3795
+ /** ms. Default: the `TooltipProvider` delay, or 0 */
3796
+ openDelay?: number;
3797
+ /** Same as `openDelay` */
3798
+ delayDuration?: number;
3799
+ /** ms. Default: 0 */
3800
+ closeDelay?: number;
3801
+ /** Default: true with the parts, false with `label` */
3802
+ withArrow?: boolean;
3803
+ /** Default: 4 */
3804
+ arrowSize?: number;
3805
+ /** Default: 5 */
3806
+ arrowOffset?: number;
3807
+ arrowRadius?: number;
3808
+ arrowPosition?: "side" | "center";
3809
+ /** Background. Default: dark */
3230
3810
  color?: WelloColor;
3231
3811
  radius?: WelloRadius;
3232
3812
  /** Allow line breaks (set a width with `w`) */
3233
3813
  multiline?: boolean;
3234
- /** What opens it. Default: hover only */
3814
+ /** What opens it. Default: hover with `label`, hover + focus with the parts */
3235
3815
  events?: {
3236
3816
  hover?: boolean;
3237
3817
  focus?: boolean;
@@ -3251,7 +3831,60 @@ interface TooltipProps extends BoxProps, StylesApiProps<TooltipStylesNames, Tool
3251
3831
  /** Default: true */
3252
3832
  withinViewport?: boolean;
3253
3833
  }
3254
- interface TooltipFloatingProps extends Omit<TooltipProps, "position" | "opened" | "openDelay" | "closeDelay" | "withArrow" | "events" | "transitionProps"> {
3834
+ /**
3835
+ * Default open delay for every Tooltip inside it.
3836
+ *
3837
+ * @example
3838
+ * <TooltipProvider delayDuration={300}><App /></TooltipProvider>
3839
+ */
3840
+ declare function TooltipProvider({ children, delayDuration }: {
3841
+ children?: ReactNode;
3842
+ delayDuration?: number;
3843
+ }): react.JSX.Element;
3844
+ /**
3845
+ * Label shown on hover (and optionally focus / touch). Write it with a `label` prop, or with
3846
+ * composable parts (`TooltipTrigger` + `TooltipContent`).
3847
+ *
3848
+ * @example
3849
+ * <Tooltip label="Delete order" withArrow><ActionIcon><TrashIcon /></ActionIcon></Tooltip>
3850
+ * <Tooltip>
3851
+ * <TooltipTrigger asChild><Button size="icon">?</Button></TooltipTrigger>
3852
+ * <TooltipContent side="bottom">Help</TooltipContent>
3853
+ * </Tooltip>
3854
+ */
3855
+ declare function Tooltip(_props: TooltipProps): react.JSX.Element;
3856
+ declare namespace Tooltip {
3857
+ var Floating: typeof TooltipFloating;
3858
+ var displayName: string;
3859
+ }
3860
+ interface TooltipTriggerProps extends ComponentProps<"button"> {
3861
+ /** Use the child as the trigger instead of adding a button. Default: yes for a component, `button` or `a` */
3862
+ asChild?: boolean;
3863
+ }
3864
+ /** What the tooltip points at. */
3865
+ declare function TooltipTrigger({ asChild, children, className, ...props }: TooltipTriggerProps): react.JSX.Element;
3866
+ declare namespace TooltipTrigger {
3867
+ var displayName: string;
3868
+ }
3869
+ type TooltipSide = Side | "start" | "end";
3870
+ interface TooltipContentProps extends Omit<ComponentProps<"div">, "ref"> {
3871
+ /** `start` / `end` mean left / right. Default: 'top' */
3872
+ side?: TooltipSide;
3873
+ /** Same as `side` */
3874
+ placement?: TooltipSide;
3875
+ /** Default: 'center' */
3876
+ align?: Align;
3877
+ /** Distance from the trigger, px. Default: 6 */
3878
+ sideOffset?: number;
3879
+ }
3880
+ /** The tooltip itself. */
3881
+ declare function TooltipContent({ children, side, placement, align, sideOffset, className, style, ...props }: TooltipContentProps): react.JSX.Element;
3882
+ declare namespace TooltipContent {
3883
+ var displayName: string;
3884
+ }
3885
+ interface TooltipFloatingProps extends Omit<TooltipProps, "position" | "opened" | "open" | "defaultOpen" | "onOpenChange" | "openDelay" | "delayDuration" | "closeDelay" | "withArrow" | "events" | "transitionProps"> {
3886
+ label: ReactNode;
3887
+ children: ReactElement;
3255
3888
  /** Distance from the cursor. Default: 10 */
3256
3889
  offset?: number;
3257
3890
  }
@@ -3261,9 +3894,9 @@ interface TooltipFloatingProps extends Omit<TooltipProps, "position" | "opened"
3261
3894
  * @example
3262
3895
  * <Tooltip.Floating label="Map region"><Box h={200} /></Tooltip.Floating>
3263
3896
  */
3264
- declare function TooltipFloating(_props: TooltipFloatingProps): react.JSX.Element;
3897
+ declare function TooltipFloating(_props: TooltipFloatingProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
3265
3898
 
3266
- interface MenuProps extends Omit<PopoverProps$1, "children"> {
3899
+ interface MenuProps extends Omit<PopoverProps, "children"> {
3267
3900
  /** Default: 'click' */
3268
3901
  trigger?: "click" | "hover" | "click-hover";
3269
3902
  /** For hover triggers, ms. Default: 0 */
@@ -3348,304 +3981,133 @@ declare const MenuDivider: WelloComponent<{
3348
3981
  stylesNames: "divider";
3349
3982
  }>;
3350
3983
 
3351
- type ModalStylesNames = "root" | "inner" | "content" | "header" | "overlay" | "title" | "body" | "close";
3352
- interface ModalBaseProps extends StylesApiProps<ModalStylesNames, ModalBaseProps> {
3353
- opened: boolean;
3354
- onClose: () => void;
3984
+ declare function DropdownMenu({ open, defaultOpen, onOpenChange, children }: PopoverProps): react.JSX.Element;
3985
+ declare function DropdownMenuPortal({ children }: {
3986
+ children?: ReactNode;
3987
+ }): react.JSX.Element;
3988
+ declare function DropdownMenuTrigger({ asChild, children, ...props }: ComponentProps<"button"> & {
3989
+ asChild?: boolean;
3990
+ }): react.JSX.Element;
3991
+ declare function DropdownMenuContent({ className, align, side, sideOffset, children, ...props }: Omit<ComponentProps<"div">, "ref"> & {
3992
+ align?: Align;
3993
+ side?: Side;
3994
+ sideOffset?: number;
3995
+ }): react.JSX.Element;
3996
+ declare function DropdownMenuGroup({ className, ...props }: ComponentProps<"div">): react.JSX.Element;
3997
+ interface DropdownMenuItemProps extends Omit<ComponentProps<"button">, "ref" | "onSelect"> {
3998
+ /** Indent like items with a check / icon */
3999
+ inset?: boolean;
4000
+ /** Default: 'default' */
4001
+ variant?: "default" | "destructive";
4002
+ /** Called when chosen (click or Enter) */
4003
+ onSelect?: (event: Event) => void;
4004
+ /** Keep the menu open after choosing */
4005
+ closeOnSelect?: boolean;
4006
+ /** The one child becomes the item, e.g. a router link */
4007
+ asChild?: boolean;
4008
+ }
4009
+ declare function DropdownMenuItem({ className, inset, variant, onSelect, onClick, closeOnSelect, asChild, children, ...props }: DropdownMenuItemProps): react.JSX.Element;
4010
+ declare function DropdownMenuCheckboxItem({ className, children, checked, onCheckedChange, inset, ...props }: Omit<DropdownMenuItemProps, "onChange"> & {
4011
+ checked?: boolean;
4012
+ onCheckedChange?: (checked: boolean) => void;
4013
+ }): react.JSX.Element;
4014
+ declare function DropdownMenuRadioGroup({ value, onValueChange, children, className, }: {
4015
+ value?: string;
4016
+ onValueChange?: (value: string) => void;
4017
+ children?: ReactNode;
4018
+ className?: string;
4019
+ }): react.JSX.Element;
4020
+ declare function DropdownMenuRadioItem({ value, className, children, ...props }: Omit<DropdownMenuItemProps, "value"> & {
4021
+ value: string;
4022
+ }): react.JSX.Element;
4023
+ declare function DropdownMenuLabel({ className, inset, ...props }: ComponentProps<"div"> & {
4024
+ inset?: boolean;
4025
+ }): react.JSX.Element;
4026
+ declare function DropdownMenuSeparator({ className, ...props }: ComponentProps<"div">): react.JSX.Element;
4027
+ declare const DropdownMenuShortcut: {
4028
+ ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
4029
+ displayName: string;
4030
+ };
4031
+ declare function DropdownMenuSub({ children }: {
4032
+ children?: ReactNode;
4033
+ }): react.JSX.Element;
4034
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: Omit<ComponentProps<"button">, "ref"> & {
4035
+ inset?: boolean;
4036
+ }): react.JSX.Element;
4037
+ declare function DropdownMenuSubContent({ className, children, ...props }: Omit<ComponentProps<"div">, "ref">): react.JSX.Element;
4038
+
4039
+ interface AffixPosition {
4040
+ top?: number | string;
4041
+ left?: number | string;
4042
+ bottom?: number | string;
4043
+ right?: number | string;
4044
+ }
4045
+ interface AffixProps extends BoxProps, StylesApiProps<"root", AffixProps> {
4046
+ /** Default: { bottom: 0, right: 0 } */
4047
+ position?: AffixPosition;
3355
4048
  /** Default: 200 */
3356
4049
  zIndex?: number | string;
3357
4050
  /** Default: true */
3358
- trapFocus?: boolean;
3359
- /** Default: true */
3360
- returnFocus?: boolean;
3361
- /** Default: true */
3362
- closeOnEscape?: boolean;
3363
- /** Default: true */
3364
- closeOnClickOutside?: boolean;
3365
- /** Default: true */
3366
- lockScroll?: boolean;
3367
- /** Default: true */
3368
- withOverlay?: boolean;
3369
- overlayProps?: OverlayProps;
3370
- /** Default: true */
3371
4051
  withinPortal?: boolean;
3372
4052
  portalProps?: Omit<PortalProps, "children">;
3373
- transitionProps?: {
3374
- transition?: TransitionName | TransitionStyles;
3375
- duration?: number;
3376
- exitDuration?: number;
3377
- timingFunction?: string;
3378
- };
3379
- keepMounted?: boolean;
3380
- /** Width */
3381
- size?: number | string;
3382
- radius?: WelloRadius;
3383
- /** Default: 'xl' */
3384
- shadow?: WelloShadow;
3385
- /** Default: 'md' */
3386
- padding?: WelloSpacing;
3387
- /** Base id for aria */
3388
- id?: string;
3389
- onExitTransitionEnd?: () => void;
3390
- onEnterTransitionEnd?: () => void;
3391
4053
  children?: ReactNode;
3392
- className?: string;
3393
- style?: CSSProperties;
3394
4054
  }
3395
- interface ModalContextValue {
4055
+ interface CornerDialogProps extends Omit<AffixProps, "classNames" | "styles" | "vars" | "attributes">, StylesApiProps<"root" | "closeButton", CornerDialogProps> {
3396
4056
  opened: boolean;
3397
- onClose: () => void;
3398
- getStyles: GetStyles<ModalStylesNames>;
3399
- id: string;
3400
- closeOnClickOutside: boolean;
3401
- status: ReturnType<typeof useTransition>["status"];
3402
- duration: number;
3403
- overlayDuration: number;
3404
- transition: TransitionName | TransitionStyles;
3405
- timingFunction: string;
3406
- overlayProps?: OverlayProps;
3407
- trapFocus: boolean;
3408
- returnFocus: boolean;
3409
- zIndex: number | string;
3410
- /** Set by Modal / Drawer */
3411
- kind: string;
4057
+ onClose?: () => void;
4058
+ withCloseButton?: boolean;
4059
+ /** Width: `xs`–`xl` or a value. Default: 'md' */
4060
+ size?: number | string;
4061
+ radius?: WelloRadius;
4062
+ /** Default: 'md' */
4063
+ shadow?: WelloShadow;
4064
+ /** A border around it. Default: true */
4065
+ withBorder?: boolean;
4066
+ /** Default: { transition: 'pop-top-right', duration: 200 } */
4067
+ transitionProps?: Omit<TransitionProps, "mounted" | "children">;
4068
+ keepMounted?: boolean;
3412
4069
  }
3413
- declare function useModalContext(): ModalContextValue;
3414
- /** Shared root of Modal and Drawer: portal, scroll lock, Escape and the transitions. */
3415
- declare function ModalBaseRoot({ name, defaults, varsResolver, mod, ...input }: ModalBaseProps & {
3416
- name: string;
3417
- defaults: Partial<ModalBaseProps>;
3418
- varsResolver: (props: ModalBaseProps) => Record<string, string | undefined>;
3419
- mod?: Record<string, unknown>;
3420
- }): react.JSX.Element;
3421
- declare const ModalBaseOverlay: WelloComponent<{
3422
- props: OverlayProps;
3423
- ref: HTMLDivElement;
3424
- stylesNames: "overlay";
3425
- }>;
3426
- declare const ModalBaseContent: WelloComponent<{
3427
- props: BoxProps & {
3428
- children?: ReactNode;
3429
- __hidden?: boolean;
3430
- };
3431
- ref: HTMLDivElement;
3432
- stylesNames: "content";
3433
- }>;
3434
- declare const ModalBaseHeader: WelloComponent<{
3435
- props: BoxProps & {
3436
- children?: ReactNode;
3437
- };
3438
- ref: HTMLDivElement;
3439
- stylesNames: "header";
3440
- }>;
3441
- declare const ModalBaseTitle: WelloComponent<{
3442
- props: BoxProps & {
3443
- children?: ReactNode;
3444
- };
3445
- ref: HTMLHeadingElement;
3446
- stylesNames: "title";
3447
- }>;
3448
- declare const ModalBaseBody: WelloComponent<{
3449
- props: BoxProps & {
3450
- children?: ReactNode;
3451
- };
3452
- ref: HTMLDivElement;
3453
- stylesNames: "body";
3454
- }>;
3455
- declare const ModalBaseCloseButton: WelloComponent<{
3456
- props: CloseButtonProps;
3457
- ref: HTMLButtonElement;
3458
- stylesNames: "close";
3459
- }>;
3460
- declare const sizeValue: (size: unknown, scale: string) => string | undefined;
3461
-
3462
- interface ModalRootProps extends ModalBaseProps {
3463
- /** Vertically centered */
3464
- centered?: boolean;
3465
- /** Takes the whole screen */
3466
- fullScreen?: boolean;
3467
- /** Top offset when not centered. Default: '5dvh' */
3468
- yOffset?: number | string;
3469
- /** Side offset. Default: '5vw' */
3470
- xOffset?: number | string;
3471
- }
3472
- interface ModalProps extends ModalRootProps {
3473
- /** `xs`–`xl`, a number (px) or `'auto'` / `'100%'`. Default: 'md' */
3474
- size?: number | string;
3475
- title?: ReactNode;
3476
- /** Default: true */
3477
- withCloseButton?: boolean;
3478
- closeButtonProps?: CloseButtonProps;
3479
- }
3480
- declare function ModalRoot({ centered, fullScreen, yOffset, xOffset, ...props }: ModalRootProps): react.JSX.Element;
3481
4070
  /**
3482
- * Dialog window: overlay, focus trap, scroll lock, Escape and outside click to close.
4071
+ * Small non-modal window fixed to a corner (cookie notice, quick feedback).
3483
4072
  *
3484
4073
  * @example
3485
- * <Modal opened={opened} onClose={close} title="Edit order" centered>…</Modal>
3486
- * // Or build your own layout:
3487
- * <Modal.Root opened={opened} onClose={close}>
3488
- * <Modal.Overlay />
3489
- * <Modal.Content>
3490
- * <Modal.Header><Modal.Title>Title</Modal.Title><Modal.CloseButton /></Modal.Header>
3491
- * <Modal.Body>…</Modal.Body>
3492
- * </Modal.Content>
3493
- * </Modal.Root>
4074
+ * <CornerDialog opened={opened} onClose={close} withCloseButton size="lg" position={{ bottom: 20, right: 20 }}>…</CornerDialog>
3494
4075
  */
3495
- declare function Modal({ title, withCloseButton, closeButtonProps, children, withOverlay, ...props }: ModalProps): react.JSX.Element;
3496
- declare namespace Modal {
3497
- var Root: typeof ModalRoot;
3498
- var Overlay: WelloComponent<{
3499
- props: OverlayProps;
3500
- ref: HTMLDivElement;
3501
- stylesNames: "overlay";
3502
- }>;
3503
- var Content: WelloComponent<{
3504
- props: BoxProps & {
3505
- children?: ReactNode;
3506
- __hidden?: boolean;
3507
- };
3508
- ref: HTMLDivElement;
3509
- stylesNames: "content";
3510
- }>;
3511
- var Header: WelloComponent<{
3512
- props: BoxProps & {
3513
- children?: ReactNode;
3514
- };
3515
- ref: HTMLDivElement;
3516
- stylesNames: "header";
3517
- }>;
3518
- var Title: WelloComponent<{
3519
- props: BoxProps & {
3520
- children?: ReactNode;
3521
- };
3522
- ref: HTMLHeadingElement;
3523
- stylesNames: "title";
3524
- }>;
3525
- var CloseButton: WelloComponent<{
3526
- props: CloseButtonProps;
3527
- ref: HTMLButtonElement;
3528
- stylesNames: "close";
3529
- }>;
3530
- var Body: WelloComponent<{
3531
- props: BoxProps & {
3532
- children?: ReactNode;
3533
- };
3534
- ref: HTMLDivElement;
3535
- stylesNames: "body";
3536
- }>;
3537
- var displayName: string;
3538
- }
4076
+ declare const CornerDialog: WelloComponent<{
4077
+ props: CornerDialogProps;
4078
+ ref: HTMLDivElement;
4079
+ stylesNames: "root" | "closeButton";
4080
+ }>;
3539
4081
 
3540
- type DrawerPosition = "left" | "right" | "top" | "bottom" | "start" | "end";
3541
- interface DrawerRootProps extends ModalBaseProps {
3542
- /** In RTL the sides mirror: `left` and `start` are on the right, `right` and `end` on the left. Default: 'left' */
3543
- position?: DrawerPosition;
3544
- /** Gap from the viewport edges, px (floating drawer) */
3545
- offset?: number | string;
3546
- }
3547
- interface DrawerProps extends DrawerRootProps {
3548
- /** Width (left/right) or height (top/bottom): `xs`–`xl`, a number or a CSS value. Default: 'md' */
3549
- size?: number | string;
3550
- title?: ReactNode;
3551
- /** Default: true */
3552
- withCloseButton?: boolean;
3553
- closeButtonProps?: CloseButtonProps;
3554
- }
3555
- declare function DrawerRoot({ position, offset, transitionProps, ...props }: DrawerRootProps): react.JSX.Element;
3556
4082
  /**
3557
- * Panel sliding in from an edge (filters, navigation, details).
4083
+ * Searchable list of actions, on top of cmdk.
3558
4084
  *
3559
4085
  * @example
3560
- * <Drawer opened={opened} onClose={close} title="Filters" position="end" size="sm">…</Drawer>
4086
+ * <Command>
4087
+ * <CommandInput placeholder="Search…" />
4088
+ * <CommandList>
4089
+ * <CommandEmpty>No results</CommandEmpty>
4090
+ * <CommandGroup heading="Pages">
4091
+ * <CommandItem onSelect={openOrders}>Orders<CommandShortcut>⌘O</CommandShortcut></CommandItem>
4092
+ * </CommandGroup>
4093
+ * </CommandList>
4094
+ * </Command>
3561
4095
  */
3562
- declare function Drawer({ title, withCloseButton, closeButtonProps, children, withOverlay, ...props }: DrawerProps): react.JSX.Element;
3563
- declare namespace Drawer {
3564
- var Root: typeof DrawerRoot;
3565
- var Overlay: WelloComponent<{
3566
- props: OverlayProps;
3567
- ref: HTMLDivElement;
3568
- stylesNames: "overlay";
3569
- }>;
3570
- var Content: WelloComponent<{
3571
- props: BoxProps & {
3572
- children?: ReactNode;
3573
- __hidden?: boolean;
3574
- };
3575
- ref: HTMLDivElement;
3576
- stylesNames: "content";
3577
- }>;
3578
- var Header: WelloComponent<{
3579
- props: BoxProps & {
3580
- children?: ReactNode;
3581
- };
3582
- ref: HTMLDivElement;
3583
- stylesNames: "header";
3584
- }>;
3585
- var Title: WelloComponent<{
3586
- props: BoxProps & {
3587
- children?: ReactNode;
3588
- };
3589
- ref: HTMLHeadingElement;
3590
- stylesNames: "title";
3591
- }>;
3592
- var CloseButton: WelloComponent<{
3593
- props: CloseButtonProps;
3594
- ref: HTMLButtonElement;
3595
- stylesNames: "close";
3596
- }>;
3597
- var Body: WelloComponent<{
3598
- props: BoxProps & {
3599
- children?: ReactNode;
3600
- };
3601
- ref: HTMLDivElement;
3602
- stylesNames: "body";
3603
- }>;
3604
- var displayName: string;
3605
- }
3606
-
3607
- interface AffixPosition {
3608
- top?: number | string;
3609
- left?: number | string;
3610
- bottom?: number | string;
3611
- right?: number | string;
3612
- }
3613
- interface AffixProps extends BoxProps, StylesApiProps<"root", AffixProps> {
3614
- /** Default: { bottom: 0, right: 0 } */
3615
- position?: AffixPosition;
3616
- /** Default: 200 */
3617
- zIndex?: number | string;
3618
- /** Default: true */
3619
- withinPortal?: boolean;
3620
- portalProps?: Omit<PortalProps, "children">;
3621
- children?: ReactNode;
3622
- }
3623
- interface DialogProps$1 extends Omit<AffixProps, "classNames" | "styles" | "vars" | "attributes">, StylesApiProps<"root" | "closeButton", DialogProps$1> {
3624
- opened: boolean;
3625
- onClose?: () => void;
3626
- withCloseButton?: boolean;
3627
- /** Width: `xs`–`xl` or a value. Default: 'md' */
3628
- size?: number | string;
3629
- radius?: WelloRadius;
3630
- /** Default: 'md' */
3631
- shadow?: WelloShadow;
3632
- /** A border around it. Default: true */
3633
- withBorder?: boolean;
3634
- /** Default: { transition: 'pop-top-right', duration: 200 } */
3635
- transitionProps?: Omit<TransitionProps, "mounted" | "children">;
3636
- keepMounted?: boolean;
4096
+ declare function Command({ className, ...props }: ComponentProps<typeof Command$1>): react.JSX.Element;
4097
+ interface CommandDialogProps extends DialogProps, Pick<DialogContentProps, "title" | "size"> {
4098
+ className?: string;
4099
+ /** Default: false */
4100
+ showCloseButton?: boolean;
3637
4101
  }
3638
- /**
3639
- * Small non-modal window fixed to a corner (cookie notice, quick feedback).
3640
- *
3641
- * @example
3642
- * <Dialog opened={opened} onClose={close} withCloseButton size="lg" position={{ bottom: 20, right: 20 }}>…</Dialog>
3643
- */
3644
- declare const Dialog$1: WelloComponent<{
3645
- props: DialogProps$1;
3646
- ref: HTMLDivElement;
3647
- stylesNames: "root" | "closeButton";
3648
- }>;
4102
+ /** Command in a dialog, for ⌘K palettes. Put a `Command` inside. */
4103
+ declare function CommandDialog({ title, children, className, showCloseButton, size, ...props }: CommandDialogProps): react.JSX.Element;
4104
+ declare function CommandInput({ className, ...props }: ComponentProps<typeof Command$1.Input>): react.JSX.Element;
4105
+ declare function CommandList({ className, ...props }: ComponentProps<typeof Command$1.List>): react.JSX.Element;
4106
+ declare function CommandEmpty({ className, ...props }: ComponentProps<typeof Command$1.Empty>): react.JSX.Element;
4107
+ declare function CommandGroup({ className, ...props }: ComponentProps<typeof Command$1.Group>): react.JSX.Element;
4108
+ declare function CommandSeparator({ className, ...props }: ComponentProps<typeof Command$1.Separator>): react.JSX.Element;
4109
+ declare function CommandItem({ className, children, ...props }: ComponentProps<typeof Command$1.Item>): react.JSX.Element;
4110
+ declare function CommandShortcut({ className, ...props }: ComponentProps<"span">): react.JSX.Element;
3649
4111
 
3650
4112
  type InputSize = WelloSize | (string & {});
3651
4113
  type InputVariant = "default" | "filled" | "unstyled";
@@ -3687,7 +4149,7 @@ interface InputProps extends BoxProps, StylesApiProps<InputStylesNames, InputPro
3687
4149
  required?: boolean;
3688
4150
  /** Set aria-invalid / aria-describedby. Default: true */
3689
4151
  withAria?: boolean;
3690
- /** Merged into the input (shadcn: classes go on the field) */
4152
+ /** Merged into the input (classes go on the field itself) */
3691
4153
  className?: string;
3692
4154
  /** Keeps the red border off while `error` still shows. Default: true */
3693
4155
  withErrorStyles?: boolean;
@@ -3715,7 +4177,7 @@ declare const inputVarsResolver: (props: {
3715
4177
  "--input-right-section-width": string | undefined;
3716
4178
  };
3717
4179
  /**
3718
- * Styled field: works as a plain `<input>` (shadcn `Input`) and as the base of every
4180
+ * Styled field: works as a plain `<input>` and as the base of every
3719
4181
  * input component (sections, sizes, variants, error state).
3720
4182
  *
3721
4183
  * @example
@@ -3960,7 +4422,7 @@ declare const NumberInput: WelloComponent<{
3960
4422
  ref: HTMLInputElement;
3961
4423
  stylesNames: string;
3962
4424
  }>;
3963
- /** Same as NumberInput (shadcn-style name). */
4425
+ /** Same as NumberInput (alternative name). */
3964
4426
  declare const InputNumber: WelloComponent<{
3965
4427
  props: NumberInputProps;
3966
4428
  ref: HTMLInputElement;
@@ -4111,7 +4573,7 @@ interface CheckboxProps extends BoxProps, StylesApiProps<CheckboxStylesNames, Ch
4111
4573
  defaultChecked?: boolean;
4112
4574
  /** The input change event */
4113
4575
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
4114
- /** shadcn style: the new state */
4576
+ /** Called with the new state */
4115
4577
  onCheckedChange?: (checked: boolean) => void;
4116
4578
  /** Dash instead of the check */
4117
4579
  indeterminate?: boolean;
@@ -4166,7 +4628,7 @@ interface CheckboxGroupProps extends Omit<InputWrapperProps, "onChange"> {
4166
4628
  value?: string[];
4167
4629
  defaultValue?: string[];
4168
4630
  onChange?: (value: string[]) => void;
4169
- /** shadcn-style alias of onChange */
4631
+ /** Alias of onChange */
4170
4632
  onValueChange?: (value: string[]) => void;
4171
4633
  disabled?: boolean;
4172
4634
  children?: ReactNode;
@@ -4179,7 +4641,7 @@ declare const CheckboxGroup: WelloComponent<{
4179
4641
  interface RadioProps extends Omit<CheckboxProps, "indeterminate" | "icon" | "onCheckedChange" | "variant" | "iconColor" | "classNames" | "styles" | "vars" | "attributes">, StylesApiProps<CheckboxStylesNames, RadioProps> {
4180
4642
  /** Default: 'filled' */
4181
4643
  variant?: "filled" | "outline";
4182
- /** Label as children (shadcn RadioGroupItem) */
4644
+ /** Label as children (RadioGroupItem) */
4183
4645
  children?: ReactNode;
4184
4646
  }
4185
4647
  /**
@@ -4204,7 +4666,7 @@ interface RadioGroupProps extends Omit<InputWrapperProps, "onChange"> {
4204
4666
  defaultValue?: string | null;
4205
4667
  /** Gets the new value */
4206
4668
  onChange?: (value: string) => void;
4207
- /** shadcn style */
4669
+ /** Alias of onChange, called with the new value */
4208
4670
  onValueChange?: (value: string) => void;
4209
4671
  /** Shared name of the inputs. Default: generated */
4210
4672
  name?: string;
@@ -4218,7 +4680,7 @@ declare const RadioGroup: WelloComponent<{
4218
4680
  ref: HTMLDivElement;
4219
4681
  stylesNames: string;
4220
4682
  }>;
4221
- /** shadcn name: a Radio whose children are the label. */
4683
+ /** A Radio whose children are the label. */
4222
4684
  declare const RadioGroupItem: WelloComponent<{
4223
4685
  props: RadioProps;
4224
4686
  ref: HTMLInputElement;
@@ -4513,7 +4975,7 @@ declare const REGEXP_ONLY_DIGITS = "^\\d+$";
4513
4975
  declare const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
4514
4976
  declare const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
4515
4977
  /**
4516
- * shadcn-style OTP: lay out the cells with groups and separators.
4978
+ * OTP input built from parts: lay out the cells with groups and separators.
4517
4979
  *
4518
4980
  * @example
4519
4981
  * <InputOTP maxLength={6} pattern={REGEXP_ONLY_DIGITS} value={code} onChange={setCode}>
@@ -4940,7 +5402,7 @@ interface SingleSelectProps<T = any> extends SelectBaseProps<T> {
4940
5402
  defaultValue?: string | number | null;
4941
5403
  /** Value and its option */
4942
5404
  onChange?: (value: any, option: string | number | T | null) => void;
4943
- /** shadcn name: only when there is a value */
5405
+ /** Only when there is a value */
4944
5406
  onValueChange?: (value: string) => void;
4945
5407
  /** Clicking the chosen option again clears it. Default: true */
4946
5408
  allowDeselect?: boolean;
@@ -5293,7 +5755,7 @@ interface ColorInputProps extends Omit<InputBaseProps, "value" | "defaultValue"
5293
5755
  disallowInput?: boolean;
5294
5756
  /** Back to the last valid color on blur. Default: true */
5295
5757
  fixOnBlur?: boolean;
5296
- popoverProps?: Partial<PopoverProps$1>;
5758
+ popoverProps?: Partial<PopoverProps>;
5297
5759
  /** Color sample on the left. Default: true */
5298
5760
  withPreview?: boolean;
5299
5761
  /** Button to pick from the screen, where the browser supports it. Default: true */
@@ -5449,7 +5911,7 @@ declare const Carousel: WelloComponent<{
5449
5911
  }>;
5450
5912
 
5451
5913
  type TabsStylesNames = "root" | "list" | "tab" | "tabLabel" | "tabSection" | "panel" | "indicator";
5452
- /** `default` (pill with sliding indicator, shadcn look), `line` (underline), `outline` and `pills` */
5914
+ /** `default` (pill with sliding indicator), `line` (underline), `outline` and `pills` */
5453
5915
  type TabsVariant = "default" | "line" | "outline" | "pills";
5454
5916
  interface TabsContextValue {
5455
5917
  value: string | null;
@@ -5472,7 +5934,7 @@ interface TabsProps extends BoxProps, StylesApiProps<TabsStylesNames, TabsProps>
5472
5934
  defaultValue?: string | null;
5473
5935
  /** Gets the new value */
5474
5936
  onChange?: (value: string | null) => void;
5475
- /** shadcn style */
5937
+ /** Called with the new value */
5476
5938
  onValueChange?: (value: string) => void;
5477
5939
  /** Default: 'horizontal' */
5478
5940
  orientation?: "horizontal" | "vertical";
@@ -5497,7 +5959,7 @@ interface TabsProps extends BoxProps, StylesApiProps<TabsStylesNames, TabsProps>
5497
5959
  children?: ReactNode;
5498
5960
  }
5499
5961
  /**
5500
- * Tabs. shadcn parts (TabsList / TabsTrigger / TabsContent with `onValueChange`) or the
5962
+ * Tabs. Composable parts (TabsList / TabsTrigger / TabsContent with `onValueChange`) or the
5501
5963
  * compound parts (Tabs.List / Tabs.Tab / Tabs.Panel with `onChange`).
5502
5964
  *
5503
5965
  * @example
@@ -5524,7 +5986,7 @@ interface TabsListProps extends BoxProps {
5524
5986
  grow?: boolean;
5525
5987
  /** `justify-content` of the tabs */
5526
5988
  justify?: React.CSSProperties["justifyContent"];
5527
- /** shadcn: list look (`default` pill or `line`) */
5989
+ /** List look (`default` pill or `line`) */
5528
5990
  variant?: TabsVariant;
5529
5991
  children?: ReactNode;
5530
5992
  className?: string;
@@ -5562,7 +6024,7 @@ declare const TabsPanel: WelloComponent<{
5562
6024
  ref: HTMLDivElement;
5563
6025
  stylesNames: "panel";
5564
6026
  }>;
5565
- /** shadcn names */
6027
+ /** Part names */
5566
6028
  declare const TabsTrigger: WelloComponent<{
5567
6029
  props: TabsTabProps;
5568
6030
  ref: HTMLButtonElement;
@@ -5866,524 +6328,80 @@ interface ScrollAreaProps extends BoxProps, StylesApiProps<ScrollAreaStylesNames
5866
6328
  offsetScrollbars?: boolean | "x" | "y" | "present";
5867
6329
  /** shared/ui name: same as `type="never"` */
5868
6330
  hideScrollbar?: boolean;
5869
- viewportRef?: Ref<HTMLDivElement>;
5870
- viewportProps?: React.ComponentProps<"div">;
5871
- onScrollPositionChange?: (position: {
5872
- x: number;
5873
- y: number;
5874
- }) => void;
5875
- onBottomReached?: () => void;
5876
- onTopReached?: () => void;
5877
- onLeftReached?: () => void;
5878
- onRightReached?: () => void;
5879
- overscrollBehavior?: CSSProperties["overscrollBehavior"];
5880
- /** Scroll position on mount */
5881
- startScrollPosition?: {
5882
- x?: number;
5883
- y?: number;
5884
- };
5885
- /** Keep the vertical scrollbar on one side, whatever the direction. Default: the inline end */
5886
- verticalScrollbarPosition?: "left" | "right";
5887
- /** The content started or stopped overflowing */
5888
- onOverflowChange?: (overflowing: boolean) => void;
5889
- children?: ReactNode;
5890
- }
5891
- /**
5892
- * Scrollable box with custom scrollbars; scrolling itself stays native (wheel, touch, keys).
5893
- *
5894
- * @example
5895
- * <ScrollArea h={240} type="auto">…</ScrollArea>
5896
- * <ScrollArea.Autosize mah={300}>…</ScrollArea.Autosize>
5897
- */
5898
- declare const ScrollArea: WelloComponent<{
5899
- props: ScrollAreaProps;
5900
- ref: HTMLDivElement;
5901
- stylesNames: ScrollAreaStylesNames;
5902
- staticComponents: {
5903
- Autosize: typeof ScrollAreaAutosize;
5904
- };
5905
- }>;
5906
- type ScrollAreaAutosizeProps = ScrollAreaProps;
5907
- /** ScrollArea that is as tall as its content, up to `mah`. */
5908
- declare const ScrollAreaAutosize: WelloComponent<{
5909
- props: ScrollAreaAutosizeProps;
5910
- ref: HTMLDivElement;
5911
- stylesNames: ScrollAreaStylesNames;
5912
- }>;
5913
-
5914
- interface ToggleProps extends BoxProps, StylesApiProps<"root", ToggleProps> {
5915
- active?: boolean;
5916
- defaultActive?: boolean;
5917
- onActiveChange?: (active: boolean) => void;
5918
- disabled?: boolean;
5919
- /** Default: 'sm' */
5920
- size?: WelloSize;
5921
- radius?: WelloRadius;
5922
- /** Fit the content instead of a square */
5923
- autoWidth?: boolean;
5924
- /** Active color. Default: primary */
5925
- color?: WelloColor;
5926
- /** Active look. Default: 'filled' */
5927
- variant?: "filled" | "light" | "outline" | "subtle" | (string & {});
5928
- autoContrast?: boolean;
5929
- children?: ReactNode;
5930
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
5931
- }
5932
- /**
5933
- * Button that stays on or off.
5934
- *
5935
- * @example
5936
- * <Toggle aria-label="Bold" active={bold} onActiveChange={setBold}><BoldIcon /></Toggle>
5937
- */
5938
- declare const Toggle: PolymorphicComponent<{
5939
- props: ToggleProps;
5940
- defaultComponent: "button";
5941
- defaultRef: HTMLButtonElement;
5942
- stylesNames: "root";
5943
- }>;
5944
-
5945
- type ButtonProps = ButtonProps$1 & Omit<React.ComponentPropsWithoutRef<"button">, keyof ButtonProps$1 | "color">;
5946
- interface DialogProps {
5947
- open?: boolean;
5948
- defaultOpen?: boolean;
5949
- onOpenChange?: (open: boolean) => void;
5950
- /** Kept for API compatibility (always modal) */
5951
- modal?: boolean;
5952
- children?: ReactNode;
5953
- }
5954
- /**
5955
- * @example
5956
- * <Dialog>
5957
- * <DialogTrigger asChild><Button>Edit</Button></DialogTrigger>
5958
- * <DialogContent title="Edit order">…</DialogContent>
5959
- * </Dialog>
5960
- */
5961
- declare function Dialog({ open, defaultOpen, onOpenChange, children }: DialogProps): react.JSX.Element;
5962
- declare function DialogTrigger(props: ComponentProps<"button"> & {
5963
- asChild?: boolean;
5964
- }): react.JSX.Element;
5965
- declare function DialogClose(props: ComponentProps<"button"> & {
5966
- asChild?: boolean;
5967
- }): react.JSX.Element;
5968
- interface DialogContentProps extends Omit<ModalProps, "opened" | "onClose" | "title" | "children"> {
5969
- title?: ReactNode;
5970
- /** Default: true */
5971
- showCloseButton?: boolean;
5972
- /** Default: true */
5973
- centered?: boolean;
5974
- /** Content height on phones; `false` = full screen. Default: true */
5975
- autoSize?: boolean;
5976
- className?: string;
5977
- children?: ReactNode;
5978
- }
5979
- declare function DialogContent({ className, children, showCloseButton, centered, size, autoSize, title, ...props }: DialogContentProps): react.JSX.Element;
5980
- declare const DialogHeader: {
5981
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
5982
- displayName: string;
5983
- };
5984
- declare const DialogFooter: {
5985
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
5986
- displayName: string;
5987
- };
5988
- declare const DialogTitle: {
5989
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
5990
- displayName: string;
5991
- };
5992
- declare const DialogDescription: {
5993
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
5994
- displayName: string;
5995
- };
5996
- declare const SHEET_SIZES: {
5997
- readonly sm: "360px";
5998
- readonly md: "480px";
5999
- readonly lg: "640px";
6000
- readonly xl: "800px";
6001
- readonly full: "100%";
6002
- };
6003
- type SheetSize = keyof typeof SHEET_SIZES;
6004
- declare function Sheet({ open, defaultOpen, onOpenChange, children }: DialogProps): react.JSX.Element;
6005
- declare function SheetTrigger(props: ComponentProps<"button"> & {
6006
- asChild?: boolean;
6007
- }): react.JSX.Element;
6008
- declare function SheetClose(props: ComponentProps<"button"> & {
6009
- asChild?: boolean;
6010
- }): react.JSX.Element;
6011
- interface SheetContentProps {
6012
- /** Default: 'md' (480px) */
6013
- size?: SheetSize;
6014
- title?: ReactNode;
6015
- description?: ReactNode;
6016
- /** Default: true */
6017
- showCloseButton?: boolean;
6018
- /** `start` / `end` follow the direction. Default: 'end' */
6019
- side?: DrawerPosition;
6020
- className?: string;
6021
- children?: ReactNode;
6022
- }
6023
- /** Side panel. */
6024
- declare function SheetContent({ className, children, size, title, description, showCloseButton, side }: SheetContentProps): react.JSX.Element;
6025
- declare const SheetHeader: {
6026
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6027
- displayName: string;
6028
- };
6029
- declare const SheetFooter: {
6030
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6031
- displayName: string;
6032
- };
6033
- declare const SheetTitle: {
6034
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6035
- displayName: string;
6036
- };
6037
- declare const SheetDescription: {
6038
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6039
- displayName: string;
6040
- };
6041
- type AlertDialogVariant = "default" | "info" | "success" | "warning" | "destructive";
6042
- interface AlertDialogProps extends DialogProps {
6043
- /** Icon and glow color. Default: 'default' */
6044
- variant?: AlertDialogVariant;
6045
- }
6046
- /**
6047
- * Confirmation dialog.
6048
- *
6049
- * @example
6050
- * <AlertDialog variant="destructive">
6051
- * <AlertDialogTrigger asChild><Button variant="destructive">Delete</Button></AlertDialogTrigger>
6052
- * <AlertDialogContent title="Delete order?">
6053
- * <AlertDialogDescription>This can't be undone.</AlertDialogDescription>
6054
- * <AlertDialogFooter><AlertDialogCancel>Cancel</AlertDialogCancel><AlertDialogAction onClick={remove}>Delete</AlertDialogAction></AlertDialogFooter>
6055
- * </AlertDialogContent>
6056
- * </AlertDialog>
6057
- */
6058
- declare function AlertDialog({ open, defaultOpen, onOpenChange, variant, children }: AlertDialogProps): react.JSX.Element;
6059
- declare function AlertDialogTrigger(props: ComponentProps<"button"> & {
6060
- asChild?: boolean;
6061
- }): react.JSX.Element;
6062
- declare function AlertDialogIcon({ variant, icon, className }: {
6063
- variant?: AlertDialogVariant;
6064
- icon?: ReactNode;
6065
- className?: string;
6066
- }): react.JSX.Element;
6067
- interface AlertDialogContentProps extends Omit<ModalProps, "opened" | "onClose" | "title" | "children"> {
6068
- title?: ReactNode;
6069
- variant?: AlertDialogVariant;
6070
- icon?: ReactNode;
6071
- /** Default: true */
6072
- showIcon?: boolean;
6073
- className?: string;
6074
- children?: ReactNode;
6075
- onClick?: React.MouseEventHandler<HTMLDivElement>;
6076
- }
6077
- declare function AlertDialogContent({ className, children, title, variant: variantProp, icon, showIcon, withCloseButton, size, onClick, ...props }: AlertDialogContentProps): react.JSX.Element;
6078
- declare const AlertDialogHeader: {
6079
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6080
- displayName: string;
6081
- };
6082
- declare const AlertDialogTitle: {
6083
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6084
- displayName: string;
6085
- };
6086
- declare const AlertDialogDescription: {
6087
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6088
- displayName: string;
6089
- };
6090
- declare const AlertDialogFooter: {
6091
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6092
- displayName: string;
6093
- };
6094
- declare function AlertDialogAction({ className, variant: variantProp, onClick, ...props }: ButtonProps): react.JSX.Element;
6095
- declare function AlertDialogCancel({ className, onClick, ...props }: ButtonProps): react.JSX.Element;
6096
- declare function AlertDialogPortal({ children }: {
6097
- children: ReactNode;
6098
- }): react.JSX.Element;
6099
-
6100
- type Side = "top" | "right" | "bottom" | "left";
6101
- type Align = "start" | "center" | "end";
6102
-
6103
- interface PopoverProps extends PopoverProps$1 {
6104
- /** Controlled state (same as `opened`) */
6105
- open?: boolean;
6106
- /** Same as `defaultOpened` */
6107
- defaultOpen?: boolean;
6108
- /** Same as `onChange` */
6109
- onOpenChange?: (open: boolean) => void;
6110
- /** Kept for API compatibility */
6111
- modal?: boolean;
6112
- }
6113
- /**
6114
- * Popover, shadcn style (`PopoverTrigger` / `PopoverContent` with side + align) or with
6115
- * `Popover.Target` / `Popover.Dropdown` and `position`.
6116
- *
6117
- * @example
6118
- * <Popover>
6119
- * <PopoverTrigger asChild><Button variant="outline">Filters</Button></PopoverTrigger>
6120
- * <PopoverContent align="end" sideOffset={8}>…</PopoverContent>
6121
- * </Popover>
6122
- * <Popover width={260} withArrow position="bottom">
6123
- * <Popover.Target><Button>Open</Button></Popover.Target>
6124
- * <Popover.Dropdown>…</Popover.Dropdown>
6125
- * </Popover>
6126
- */
6127
- declare function Popover({ open, defaultOpen, onOpenChange, modal: _modal, opened, defaultOpened, onChange, position, offset, width, children, ...props }: PopoverProps): react.JSX.Element;
6128
- declare namespace Popover {
6129
- var Target: typeof PopoverTarget;
6130
- var Dropdown: WelloComponent<{
6131
- props: PopoverDropdownProps;
6132
- ref: HTMLDivElement;
6133
- stylesNames: "dropdown";
6134
- }>;
6135
- }
6136
- declare function PopoverTrigger({ asChild, children, ...props }: ComponentProps<"button"> & {
6137
- asChild?: boolean;
6138
- }): react.JSX.Element;
6139
- interface PopoverContentProps extends Omit<ComponentProps<"div">, "ref"> {
6140
- /** Default: 'start' */
6141
- align?: Align;
6142
- /** Default: 'bottom' */
6143
- side?: Side;
6144
- /** Default: 8 */
6145
- sideOffset?: number;
6146
- /** Same width as the trigger */
6147
- sameWidth?: boolean;
6148
- width?: Exclude<PopoverWidth, "target">;
6149
- height?: number | string;
6150
- /** Class of the dropdown, same as `className` */
6151
- classNames?: {
6152
- dropdown?: string;
6331
+ viewportRef?: Ref<HTMLDivElement>;
6332
+ viewportProps?: React.ComponentProps<"div">;
6333
+ onScrollPositionChange?: (position: {
6334
+ x: number;
6335
+ y: number;
6336
+ }) => void;
6337
+ onBottomReached?: () => void;
6338
+ onTopReached?: () => void;
6339
+ onLeftReached?: () => void;
6340
+ onRightReached?: () => void;
6341
+ overscrollBehavior?: CSSProperties["overscrollBehavior"];
6342
+ /** Scroll position on mount */
6343
+ startScrollPosition?: {
6344
+ x?: number;
6345
+ y?: number;
6153
6346
  };
6154
- }
6155
- declare function PopoverContent({ className, classNames, children, align, side, sideOffset, sameWidth, width, height, style, ...props }: PopoverContentProps): react.JSX.Element;
6156
- declare function PopoverAnchor({ children, ...props }: ComponentProps<"div">): react.JSX.Element;
6157
- declare const PopoverHeader: {
6158
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6159
- displayName: string;
6160
- };
6161
- declare const PopoverTitle: {
6162
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6163
- displayName: string;
6164
- };
6165
- declare const PopoverDescription: {
6166
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6167
- displayName: string;
6168
- };
6169
- declare function TooltipProvider({ children }: {
6170
- children?: ReactNode;
6171
- delayDuration?: number;
6172
- }): react.JSX.Element;
6173
- interface TooltipRootProps extends Partial<Omit<TooltipProps, "children">> {
6174
- open?: boolean;
6175
- defaultOpen?: boolean;
6176
- onOpenChange?: (open: boolean) => void;
6177
- delayDuration?: number;
6347
+ /** Keep the vertical scrollbar on one side, whatever the direction. Default: the inline end */
6348
+ verticalScrollbarPosition?: "left" | "right";
6349
+ /** The content started or stopped overflowing */
6350
+ onOverflowChange?: (overflowing: boolean) => void;
6178
6351
  children?: ReactNode;
6179
6352
  }
6180
- type TooltipSide = Side | "start" | "end";
6181
- declare function TooltipTrigger({ children }: ComponentProps<"button"> & {
6182
- asChild?: boolean;
6183
- }): react.JSX.Element;
6184
- declare namespace TooltipTrigger {
6185
- var displayName: string;
6186
- }
6187
- declare function TooltipContent({ children }: ComponentProps<"div"> & {
6188
- side?: TooltipSide;
6189
- placement?: TooltipSide;
6190
- sideOffset?: number;
6191
- }): react.JSX.Element;
6192
- declare namespace TooltipContent {
6193
- var displayName: string;
6194
- }
6195
6353
  /**
6196
- * Tooltip, shadcn style (TooltipTrigger + TooltipContent) or with a `label` prop.
6354
+ * Scrollable box with custom scrollbars; scrolling itself stays native (wheel, touch, keys).
6197
6355
  *
6198
6356
  * @example
6199
- * <Tooltip>
6200
- * <TooltipTrigger asChild><Button size="icon">?</Button></TooltipTrigger>
6201
- * <TooltipContent side="bottom">Help</TooltipContent>
6202
- * </Tooltip>
6203
- * <Tooltip label="Delete" withArrow><ActionIcon>…</ActionIcon></Tooltip>
6357
+ * <ScrollArea h={240} type="auto">…</ScrollArea>
6358
+ * <ScrollArea.Autosize mah={300}>…</ScrollArea.Autosize>
6204
6359
  */
6205
- declare function Tooltip(props: TooltipRootProps): react.JSX.Element;
6206
- declare namespace Tooltip {
6207
- var Floating: typeof TooltipFloating;
6208
- }
6209
- declare function DropdownMenu({ open, defaultOpen, onOpenChange, children }: PopoverProps): react.JSX.Element;
6210
- declare function DropdownMenuPortal({ children }: {
6211
- children?: ReactNode;
6212
- }): react.JSX.Element;
6213
- declare function DropdownMenuTrigger({ asChild, children, ...props }: ComponentProps<"button"> & {
6214
- asChild?: boolean;
6215
- }): react.JSX.Element;
6216
- declare function DropdownMenuContent({ className, align, side, sideOffset, children, ...props }: Omit<ComponentProps<"div">, "ref"> & {
6217
- align?: Align;
6218
- side?: Side;
6219
- sideOffset?: number;
6220
- }): react.JSX.Element;
6221
- declare function DropdownMenuGroup({ className, ...props }: ComponentProps<"div">): react.JSX.Element;
6222
- interface DropdownMenuItemProps extends Omit<ComponentProps<"button">, "ref" | "onSelect"> {
6223
- /** Indent like items with a check / icon */
6224
- inset?: boolean;
6225
- /** Default: 'default' */
6226
- variant?: "default" | "destructive";
6227
- /** Called when chosen (click or Enter) */
6228
- onSelect?: (event: Event) => void;
6229
- /** Keep the menu open after choosing */
6230
- closeOnSelect?: boolean;
6231
- /** The one child becomes the item, e.g. a router link */
6232
- asChild?: boolean;
6233
- }
6234
- declare function DropdownMenuItem({ className, inset, variant, onSelect, onClick, closeOnSelect, asChild, children, ...props }: DropdownMenuItemProps): react.JSX.Element;
6235
- declare function DropdownMenuCheckboxItem({ className, children, checked, onCheckedChange, inset, ...props }: Omit<DropdownMenuItemProps, "onChange"> & {
6236
- checked?: boolean;
6237
- onCheckedChange?: (checked: boolean) => void;
6238
- }): react.JSX.Element;
6239
- declare function DropdownMenuRadioGroup({ value, onValueChange, children, className }: {
6240
- value?: string;
6241
- onValueChange?: (value: string) => void;
6242
- children?: ReactNode;
6243
- className?: string;
6244
- }): react.JSX.Element;
6245
- declare function DropdownMenuRadioItem({ value, className, children, ...props }: Omit<DropdownMenuItemProps, "value"> & {
6246
- value: string;
6247
- }): react.JSX.Element;
6248
- declare function DropdownMenuLabel({ className, inset, ...props }: ComponentProps<"div"> & {
6249
- inset?: boolean;
6250
- }): react.JSX.Element;
6251
- declare function DropdownMenuSeparator({ className, ...props }: ComponentProps<"div">): react.JSX.Element;
6252
- declare const DropdownMenuShortcut: {
6253
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6254
- displayName: string;
6255
- };
6256
- declare function DropdownMenuSub({ children }: {
6257
- children?: ReactNode;
6258
- }): react.JSX.Element;
6259
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: Omit<ComponentProps<"button">, "ref"> & {
6260
- inset?: boolean;
6261
- }): react.JSX.Element;
6262
- declare function DropdownMenuSubContent({ className, children, ...props }: Omit<ComponentProps<"div">, "ref">): react.JSX.Element;
6263
-
6264
- declare const CardHeader: {
6265
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6266
- displayName: string;
6267
- };
6268
- declare const CardTitle: {
6269
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6270
- displayName: string;
6271
- };
6272
- declare const CardDescription: {
6273
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6274
- displayName: string;
6275
- };
6276
- declare const CardContent: {
6277
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6278
- displayName: string;
6279
- };
6280
- declare const CardFooter: {
6281
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6282
- displayName: string;
6283
- };
6284
- declare const CardAction: {
6285
- ({ className, ...props }: React.HTMLAttributes<HTMLElement>): react.JSX.Element;
6286
- displayName: string;
6287
- };
6288
- declare const TableHeader: WelloComponent<{
6289
- props: BoxProps & {
6290
- children?: ReactNode;
6291
- } & Record<string, unknown>;
6292
- ref: HTMLElement;
6293
- stylesNames: TableStylesNames;
6294
- }>;
6295
- declare const TableBody: WelloComponent<{
6296
- props: BoxProps & {
6297
- children?: ReactNode;
6298
- } & Record<string, unknown>;
6299
- ref: HTMLElement;
6300
- stylesNames: TableStylesNames;
6301
- }>;
6302
- declare const TableFooter: WelloComponent<{
6303
- props: BoxProps & {
6304
- children?: ReactNode;
6305
- } & Record<string, unknown>;
6306
- ref: HTMLElement;
6307
- stylesNames: TableStylesNames;
6308
- }>;
6309
- declare const TableRow: WelloComponent<{
6310
- props: BoxProps & {
6311
- children?: ReactNode;
6312
- } & Record<string, unknown>;
6313
- ref: HTMLElement;
6314
- stylesNames: TableStylesNames;
6315
- }>;
6316
- declare const TableHead: WelloComponent<{
6317
- props: BoxProps & {
6318
- children?: ReactNode;
6319
- } & Record<string, unknown>;
6320
- ref: HTMLElement;
6321
- stylesNames: TableStylesNames;
6360
+ declare const ScrollArea: WelloComponent<{
6361
+ props: ScrollAreaProps;
6362
+ ref: HTMLDivElement;
6363
+ stylesNames: ScrollAreaStylesNames;
6364
+ staticComponents: {
6365
+ Autosize: typeof ScrollAreaAutosize;
6366
+ };
6322
6367
  }>;
6323
- declare const TableCell: WelloComponent<{
6324
- props: BoxProps & {
6325
- children?: ReactNode;
6326
- } & Record<string, unknown>;
6327
- ref: HTMLElement;
6328
- stylesNames: TableStylesNames;
6368
+ type ScrollAreaAutosizeProps = ScrollAreaProps;
6369
+ /** ScrollArea that is as tall as its content, up to `mah`. */
6370
+ declare const ScrollAreaAutosize: WelloComponent<{
6371
+ props: ScrollAreaAutosizeProps;
6372
+ ref: HTMLDivElement;
6373
+ stylesNames: ScrollAreaStylesNames;
6329
6374
  }>;
6330
6375
 
6331
- declare function Separator({ orientation, ...props }: DividerProps): react.JSX.Element;
6332
- declare function KbdGroup({ className, ...props }: ComponentProps<"kbd">): react.JSX.Element;
6333
- interface CollapsibleProps extends Omit<ComponentProps<"div">, "ref"> {
6334
- open?: boolean;
6335
- defaultOpen?: boolean;
6336
- onOpenChange?: (open: boolean) => void;
6376
+ interface ToggleProps extends BoxProps, StylesApiProps<"root", ToggleProps> {
6377
+ active?: boolean;
6378
+ defaultActive?: boolean;
6379
+ onActiveChange?: (active: boolean) => void;
6337
6380
  disabled?: boolean;
6381
+ /** Default: 'sm' */
6382
+ size?: WelloSize;
6383
+ radius?: WelloRadius;
6384
+ /** Fit the content instead of a square */
6385
+ autoWidth?: boolean;
6386
+ /** Active color. Default: primary */
6387
+ color?: WelloColor;
6388
+ /** Active look. Default: 'filled' */
6389
+ variant?: "filled" | "light" | "outline" | "subtle" | (string & {});
6390
+ autoContrast?: boolean;
6338
6391
  children?: ReactNode;
6392
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
6339
6393
  }
6340
6394
  /**
6341
- * Show / hide with a trigger.
6342
- *
6343
- * @example
6344
- * <Collapsible>
6345
- * <CollapsibleTrigger asChild><Button variant="ghost">Details</Button></CollapsibleTrigger>
6346
- * <CollapsibleContent>…</CollapsibleContent>
6347
- * </Collapsible>
6348
- */
6349
- declare function Collapsible({ open, defaultOpen, onOpenChange, disabled, children, ...props }: CollapsibleProps): react.JSX.Element;
6350
- declare function CollapsibleTrigger({ disabled: disabledProp, ...props }: ComponentProps<"button"> & {
6351
- asChild?: boolean;
6352
- }): react.JSX.Element;
6353
- declare function CollapsibleContent({ children, className, style }: {
6354
- children?: ReactNode;
6355
- className?: string;
6356
- style?: React.CSSProperties;
6357
- }): react.JSX.Element;
6358
-
6359
- /**
6360
- * Searchable list of actions, on top of cmdk.
6395
+ * Button that stays on or off.
6361
6396
  *
6362
6397
  * @example
6363
- * <Command>
6364
- * <CommandInput placeholder="Search…" />
6365
- * <CommandList>
6366
- * <CommandEmpty>No results</CommandEmpty>
6367
- * <CommandGroup heading="Pages">
6368
- * <CommandItem onSelect={openOrders}>Orders<CommandShortcut>⌘O</CommandShortcut></CommandItem>
6369
- * </CommandGroup>
6370
- * </CommandList>
6371
- * </Command>
6398
+ * <Toggle aria-label="Bold" active={bold} onActiveChange={setBold}><BoldIcon /></Toggle>
6372
6399
  */
6373
- declare function Command({ className, ...props }: ComponentProps<typeof Command$1>): react.JSX.Element;
6374
- interface CommandDialogProps extends DialogProps, Pick<DialogContentProps, "title" | "size"> {
6375
- className?: string;
6376
- /** Default: false */
6377
- showCloseButton?: boolean;
6378
- }
6379
- /** Command in a dialog, for ⌘K palettes. Put a `Command` inside. */
6380
- declare function CommandDialog({ title, children, className, showCloseButton, size, ...props }: CommandDialogProps): react.JSX.Element;
6381
- declare function CommandInput({ className, ...props }: ComponentProps<typeof Command$1.Input>): react.JSX.Element;
6382
- declare function CommandList({ className, ...props }: ComponentProps<typeof Command$1.List>): react.JSX.Element;
6383
- declare function CommandEmpty({ className, ...props }: ComponentProps<typeof Command$1.Empty>): react.JSX.Element;
6384
- declare function CommandGroup({ className, ...props }: ComponentProps<typeof Command$1.Group>): react.JSX.Element;
6385
- declare function CommandSeparator({ className, ...props }: ComponentProps<typeof Command$1.Separator>): react.JSX.Element;
6386
- declare function CommandItem({ className, children, ...props }: ComponentProps<typeof Command$1.Item>): react.JSX.Element;
6387
- declare function CommandShortcut({ className, ...props }: ComponentProps<"span">): react.JSX.Element;
6400
+ declare const Toggle: PolymorphicComponent<{
6401
+ props: ToggleProps;
6402
+ defaultComponent: "button";
6403
+ defaultRef: HTMLButtonElement;
6404
+ stylesNames: "root";
6405
+ }>;
6388
6406
 
6389
- export { ALL_PHONE_COUNTRIES, Accordion, type AccordionControlProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type AccordionStylesNames, type AccordionValue, type AccordionVariant, ActionIcon, type ActionIconFactory, ActionIconGroup, type ActionIconGroupProps, ActionIconGroupSection, type ActionIconGroupSectionProps, type ActionIconProps, type ActionIconStylesNames, type AffixPosition, type AffixProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogIcon, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, type AlertDialogVariant, type AlertProps, type AlertStylesNames, AlphaSlider, type AlphaSliderProps, Anchor, type AnchorProps, type ApiRequestConfig, AspectRatio, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarStylesNames, BackgroundImage, type BackgroundImageProps, Badge, type BadgeProps, type BadgeStylesNames, Blockquote, type BlockquoteProps, type BlockquoteStylesNames, Box, type BoxComponentProps, type BoxMod, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Burger, type BurgerProps, Button, type ButtonFactory, ButtonGroup, type ButtonGroupProps, ButtonGroupSection, type ButtonGroupSectionProps, type ButtonGroupStylesNames, type ButtonProps$1 as ButtonProps, type ButtonSize, type ButtonStylesNames, type ButtonVariant, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardSection, type CardSectionProps, CardTitle, Carousel, type CarouselEffect, type CarouselProps, type CarouselStylesNames, Center, type CenterProps, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxStylesNames, ChevronIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, type ClassNames, CloseButton, type CloseButtonFactory, type CloseButtonProps, CloseIcon, Code, type CodeProps, Collapse, type CollapseProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorCheck, type ColorFormat, ColorInput, type ColorInputProps, type ColorInputStylesNames, ColorPicker, type ColorPickerBaseProps, type ColorPickerProps, type ColorPickerStylesNames, type ColorSchemeManager, type ColorSliderOptions, ColorSwatch, type ColorSwatchProps, Combobox, ComboboxChevron, ComboboxClearButton, type ComboboxData, ComboboxDropdown, type ComboboxDropdownProps, ComboboxEmpty, ComboboxFooter, ComboboxGroup, type ComboboxGroupData, ComboboxHeader, type ComboboxItem, ComboboxOption, type ComboboxOptionProps, ComboboxOptions, type ComboboxOptionsProps, type ComboboxProps, ComboboxSearch, type ComboboxStore, ComboboxTarget, type ComboboxTargetProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, type ContainerProps, CopyButton, type CopyButtonProps, Dialog$1 as CornerDialog, type DialogProps$1 as CornerDialogProps, type CssVars, DEFAULT_LABELS, DEFAULT_THEME, DOTS, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, DialogTrigger, type Direction, DirectionProvider, type DirectionProviderProps, Divider, type DividerProps, type DividerStylesNames, Drawer, type DrawerPosition, type DrawerProps, DrawerRoot, type DrawerRootProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, type DropzoneFile, type DropzoneFileStatus, type DropzoneFileType, type DropzoneProps, type DropzoneRejectReason, type DropzoneRejection, type DropzoneStylesNames, type DropzoneUploadContext, EmptyState, type EmptyStateProps, type EmptyStateStylesNames, type EndpointLoadersInput, type ExtendComponent, type FactoryPayload, type FactoryProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Fieldset, type FieldsetProps, FileButton, type FileButtonProps, FileInput, type FileInputProps, type FilterFn, Flex, type FlexProps, type GetStyles, Grid, GridCol, type GridColProps, type GridColSpan, type GridProps, type GridStylesNames, Group, type GroupProps, type HeadingStyle, Highlight, type HighlightProps, type HslaColor, type HsvaColor, HueSlider, Image, type ImageProps, Indicator, type IndicatorPosition, type IndicatorProps, Input, InputBase, type InputBaseProps, InputClearButton, InputDescription, InputError, type InputFactory, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputLabel, type InputLabelProps, InputNumber, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, InputPlaceholder, type InputProps, type InputSize, type InputStylesNames, type InputVariant, InputWrapper, type InputWrapperProps, type InputWrapperStylesNames, Kbd, KbdGroup, type KbdProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, type ListStylesNames, type LoadOptionsInput, type LoadOptionsResult, Loader, type LoaderFactory, type LoaderProps, type LoaderStylesNames, type LoaderType, LoadingOverlay, type LoadingOverlayProps, Mark, type MarkProps, Menu, MenuDivider, MenuDropdown, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuTarget, Modal, ModalBaseBody, ModalBaseCloseButton, ModalBaseContent, ModalBaseHeader, ModalBaseOverlay, type ModalBaseProps, ModalBaseRoot, ModalBaseTitle, type ModalProps, ModalRoot, type ModalRootProps, type ModalStylesNames, type MultiSelectProps, NavLink, type NavLinkProps, type NavLinkStylesNames, Notification, type NotificationProps, type NotificationStylesNames, NumberFormatter, type NumberFormatterProps, NumberInput, type NumberInputProps, OptionalPortal, Overlay, type OverlayProps, PALETTE, Pagination, type PaginationProps, Paper, type PaperProps, type ParsedThemeColor, PasswordInput, type PasswordInputProps, type PhoneCountry, PhoneInput, type PhoneInputProps, type PhoneInputStylesNames, Pill, PillGroup, type PillProps, PillsInput, PillsInputField, type PillsInputFieldProps, type PillsInputProps, PinInput, type PinInputProps, type PolymorphicComponent, type PolymorphicComponentProps, type PolymorphicFactoryPayload, Popover, PopoverAnchor, type PopoverBaseProps, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverDropdown, type PopoverDropdownProps, PopoverHeader, type PopoverProps, type PopoverStylesNames, PopoverTarget, type PopoverTargetProps, PopoverTitle, PopoverTrigger, type PopoverWidth, Portal, type PortalProps, Progress, type ProgressProps, type ProgressRootProps, type ProgressSectionProps, type ProgressStylesNames, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, type RGBA, Radio, RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioProps, RangeSlider, type RangeSliderProps, Rating, type RatingProps, type ResolvedPhoneCountry, type RgbaColor, RingProgress, type RingProgressProps, type RingProgressSection, type RingProgressStylesNames, SHADES, ScrollArea, ScrollAreaAutosize, type ScrollAreaAutosizeProps, type ScrollAreaProps, type ScrollAreaStylesNames, SegmentedControl, type SegmentedControlProps, Select, type SelectData, type SelectDropdownState, type SelectEntry, type SelectFilter, type SelectItem, type SelectOption, type SelectProps, type SelectRenderInput, type SelectStylesNames, SemiCircleProgress, type SemiCircleProgressProps, Separator, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetSize, SheetTitle, SheetTrigger, SimpleGrid, type SimpleGridProps, type SingleSelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderStylesNames, Slot, type SlotProps, Space, type SpaceProps, Spoiler, type SpoilerProps, Stack, type StackProps, Stepper, StepperCompleted, type StepperProps, StepperStep, type StepperStepProps, type StepperStylesNames, type StyleProp, type Styles, type StylesApiProps, type StylesNamesOf, Switch, SwitchGroup, type SwitchProps, TabCount, Table, TableBody, TableCaption, TableCell, type TableData, TableFooter, TableHead, TableHeader, type TableProps, TableRow, TableScrollContainer, type TableScrollContainerProps, type TableStylesNames, TableTbody, TableTd, TableTfoot, TableTh, TableThead, TableTr, Tabs, TabsContent, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, type TabsStylesNames, TabsTab, type TabsTabProps, TabsTrigger, type TabsVariant, TagsInput, type TagsInputProps, Text, type TextFactory, TextInput, type TextInputProps, type TextProps, type TextVariant, Textarea, type TextareaProps, ThemeIcon, type ThemeIconProps, ThemeToggle, ThemeToggleButton, type ThemeToggleButtonProps, type ThemeToggleProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, type TimelineStylesNames, Title, type TitleOrder, type TitleProps, type TitleSize, Toggle, ToggleLabel, type ToggleProps, type ToggleSize, Tooltip, TooltipContent, TooltipFloating, type TooltipFloatingProps, type TooltipProps, TooltipProvider, type TooltipStylesNames, TooltipTrigger, Transition, type TransitionName, type TransitionProps, type TransitionStatus, type TransitionStyles, Typography, type TypographyProps, UnstyledButton, type UnstyledButtonFactory, type UnstyledButtonProps, type UnstyledButtonStylesNames, type UseApi, type UseComboboxOptions, type UseFetchOptions, type UseFetchResult, type UseTransitionOptions, type VariantColorResult, type VariantColorsResolver, type VariantColorsResolverInput, type VarsResolver, type ViewTransitionOptions, type ViewTransitionStart, type ViewTransitionVariant, type VirtualColor, VisuallyHidden, type VisuallyHiddenProps, type WelloApiConfig, type WelloApiError, type WelloBreakpoint, type WelloColor, type WelloColorScheme, type WelloColorsTuple, type WelloComponent, type WelloFontSize, type WelloGradient, type WelloLabels, WelloProvider, type WelloProviderProps, type WelloRadius, type WelloShadow, type WelloSize, type WelloSpacing, type WelloStyle, type WelloStyleProps, type WelloTheme, type WelloThemeComponent, type WelloThemeOverride, alpha, buildViewTransitionCss, buttonVariants, callAll, checkColor, clamp, clearFetchCache, colorLuminance, colorSchemeVars, colorsTuple, convertHsvaTo, createApiClient, createOptionalContext, createSafeContext, createWelloConfig, cx, darken, defaultVariantColorsResolver, em, factory, fitPhoneNumber, formatFileSize, formatNumber, generateColors, getAutoContrastValue, getColorVars, getContrastColor, getFontSize, getGradient, getInitials, getLineHeight, getPaginationRange, getPrimaryContrastColor, getPrimaryShade, getRadius, getShadow, getSize, getSpacing, getThemeColor, getVirtualColorContrast, highlighter, hsvaToRgbaObject, inputVarsResolver, isColorValid, isCssColor, isLightColor, isNamedSize, isValidColor, isVirtualColor, labelVariants, lighten, localStorageColorSchemeManager, luminance, mapResponsive, matchesPhoneStartingNumber, mergeRefs, mergeStyles, mergeTheme, normalizeStartingNumber, parseColor, parseThemeColor, polymorphicFactory, px, readListResponse, rem, resolvePhoneCountry, rgba, runViewTransition, sizeValue, splitInputProps, staticClasses, tabsListVariants, toItem, toRgba, transitionStyles, transitions, useApi, useCombobox, useComboboxContext, useComponentStyles, useComputedColorScheme, useDirection, useEndpointLoaders, useFetch, useId, useInputWrapperContext, useModalContext, usePagination, usePopoverContext, useProps, useStyles, useTabsContext, useTransition, useViewTransition, useWelloColorScheme, useWelloLabels, useWelloTheme, virtualColor };
6407
+ export { ALL_PHONE_COUNTRIES, Accordion, type AccordionControlProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type AccordionStylesNames, type AccordionValue, type AccordionVariant, ActionIcon, type ActionIconFactory, ActionIconGroup, type ActionIconGroupProps, ActionIconGroupSection, type ActionIconGroupSectionProps, type ActionIconProps, type ActionIconStylesNames, type AffixPosition, type AffixProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogIcon, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, type AlertDialogVariant, type AlertProps, type AlertStylesNames, AlphaSlider, type AlphaSliderProps, Anchor, type AnchorProps, type ApiRequestConfig, AspectRatio, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarStylesNames, BackgroundImage, type BackgroundImageProps, Badge, type BadgeProps, type BadgeStylesNames, Blockquote, type BlockquoteProps, type BlockquoteStylesNames, Box, type BoxComponentProps, type BoxMod, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Burger, type BurgerProps, Button, type ButtonFactory, ButtonGroup, type ButtonGroupProps, ButtonGroupSection, type ButtonGroupSectionProps, type ButtonGroupStylesNames, type ButtonProps$1 as ButtonProps, type ButtonSize, type ButtonStylesNames, type ButtonVariant, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardSection, type CardSectionProps, CardTitle, Carousel, type CarouselEffect, type CarouselProps, type CarouselStylesNames, Center, type CenterProps, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxStylesNames, ChevronIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, type ClassNames, CloseButton, type CloseButtonFactory, type CloseButtonProps, CloseIcon, Code, type CodeProps, Collapse, CollapseContent, type CollapseContentProps, type CollapseProps, CollapseTrigger, type ColorCheck, type ColorFormat, ColorInput, type ColorInputProps, type ColorInputStylesNames, ColorPicker, type ColorPickerBaseProps, type ColorPickerProps, type ColorPickerStylesNames, type ColorSchemeManager, type ColorSliderOptions, ColorSwatch, type ColorSwatchProps, Combobox, ComboboxChevron, ComboboxClearButton, type ComboboxData, ComboboxDropdown, type ComboboxDropdownProps, ComboboxEmpty, ComboboxFooter, ComboboxGroup, type ComboboxGroupData, ComboboxHeader, type ComboboxItem, ComboboxOption, type ComboboxOptionProps, ComboboxOptions, type ComboboxOptionsProps, type ComboboxProps, ComboboxSearch, type ComboboxStore, ComboboxTarget, type ComboboxTargetProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, type ContainerProps, CopyButton, type CopyButtonProps, CornerDialog, type CornerDialogProps, type CssVars, DEFAULT_LABELS, DEFAULT_THEME, DOTS, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, DialogTrigger, type Direction, DirectionProvider, type DirectionProviderProps, Divider, type DividerProps, type DividerStylesNames, Drawer, type DrawerPosition, type DrawerProps, DrawerRoot, type DrawerRootProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, type DropzoneFile, type DropzoneFileStatus, type DropzoneFileType, type DropzoneProps, type DropzoneRejectReason, type DropzoneRejection, type DropzoneStylesNames, type DropzoneUploadContext, EmptyState, type EmptyStateProps, type EmptyStateStylesNames, type EndpointLoadersInput, type ExtendComponent, type FactoryPayload, type FactoryProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Fieldset, type FieldsetProps, FileButton, type FileButtonProps, FileInput, type FileInputProps, type FilterFn, Flex, type FlexProps, type GetStyles, Grid, GridCol, type GridColProps, type GridColSpan, type GridProps, type GridStylesNames, Group, type GroupProps, type HeadingStyle, Highlight, type HighlightProps, type HslaColor, type HsvaColor, HueSlider, Image, type ImageProps, Indicator, type IndicatorPosition, type IndicatorProps, Input, InputBase, type InputBaseProps, InputClearButton, InputDescription, InputError, type InputFactory, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputLabel, type InputLabelProps, InputNumber, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, InputPlaceholder, type InputProps, type InputSize, type InputStylesNames, type InputVariant, InputWrapper, type InputWrapperProps, type InputWrapperStylesNames, Kbd, type KbdProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, type ListStylesNames, type LoadOptionsInput, type LoadOptionsResult, Loader, type LoaderFactory, type LoaderProps, type LoaderStylesNames, type LoaderType, LoadingOverlay, type LoadingOverlayProps, Mark, type MarkProps, Menu, MenuDivider, MenuDropdown, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuTarget, Modal, ModalBaseBody, ModalBaseCloseButton, ModalBaseContent, ModalBaseHeader, ModalBaseOverlay, type ModalBaseProps, ModalBaseRoot, ModalBaseTitle, type ModalProps, ModalRoot, type ModalRootProps, type ModalStylesNames, type MultiSelectProps, NavLink, type NavLinkProps, type NavLinkStylesNames, Notification, type NotificationProps, type NotificationStylesNames, NumberFormatter, type NumberFormatterProps, NumberInput, type NumberInputProps, OVERLAY, OptionalPortal, Overlay, type OverlayProps, PALETTE, Pagination, type PaginationProps, Paper, type PaperProps, type ParsedThemeColor, PasswordInput, type PasswordInputProps, type PhoneCountry, PhoneInput, type PhoneInputProps, type PhoneInputStylesNames, Pill, PillGroup, type PillProps, PillsInput, PillsInputField, type PillsInputFieldProps, type PillsInputProps, PinInput, type PinInputProps, type PolymorphicComponent, type PolymorphicComponentProps, type PolymorphicFactoryPayload, Popover, PopoverAnchor, type PopoverBaseProps, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverDropdown, type PopoverDropdownProps, PopoverHeader, type PopoverProps, type PopoverStylesNames, PopoverTarget, type PopoverTargetProps, PopoverTitle, PopoverTrigger, type PopoverWidth, Portal, type PortalProps, Progress, type ProgressProps, type ProgressRootProps, type ProgressSectionProps, type ProgressStylesNames, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, type RGBA, Radio, RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioProps, RangeSlider, type RangeSliderProps, Rating, type RatingProps, type ResolvedPhoneCountry, type RgbaColor, RingProgress, type RingProgressProps, type RingProgressSection, type RingProgressStylesNames, SHADES, ScrollArea, ScrollAreaAutosize, type ScrollAreaAutosizeProps, type ScrollAreaProps, type ScrollAreaStylesNames, SegmentedControl, type SegmentedControlProps, Select, type SelectData, type SelectDropdownState, type SelectEntry, type SelectFilter, type SelectItem, type SelectOption, type SelectProps, type SelectRenderInput, type SelectStylesNames, SemiCircleProgress, type SemiCircleProgressProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetSize, SheetTitle, SheetTrigger, SimpleGrid, type SimpleGridProps, type SingleSelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderStylesNames, Slot, type SlotProps, Space, type SpaceProps, Spoiler, type SpoilerProps, Stack, type StackProps, Stepper, StepperCompleted, type StepperProps, StepperStep, type StepperStepProps, type StepperStylesNames, type StyleProp, type Styles, type StylesApiProps, type StylesNamesOf, Switch, SwitchGroup, type SwitchProps, TRANSITION, TabCount, Table, TableBody, TableCaption, TableCell, type TableData, TableFooter, TableHead, TableHeader, type TableProps, TableRow, TableScrollContainer, type TableScrollContainerProps, type TableStylesNames, Tabs, TabsContent, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, type TabsStylesNames, TabsTab, type TabsTabProps, TabsTrigger, type TabsVariant, TagsInput, type TagsInputProps, Text, type TextFactory, TextInput, type TextInputProps, type TextProps, type TextVariant, Textarea, type TextareaProps, ThemeIcon, type ThemeIconProps, ThemeToggle, ThemeToggleButton, type ThemeToggleButtonProps, type ThemeToggleProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, type TimelineStylesNames, Title, type TitleOrder, type TitleProps, type TitleSize, Toggle, ToggleLabel, type ToggleProps, type ToggleSize, Tooltip, TooltipContent, type TooltipContentProps, TooltipFloating, type TooltipFloatingProps, type TooltipProps, TooltipProvider, type TooltipStylesNames, TooltipTrigger, type TooltipTriggerProps, Transition, type TransitionName, type TransitionProps, type TransitionStatus, type TransitionStyles, Typography, type TypographyProps, UnstyledButton, type UnstyledButtonFactory, type UnstyledButtonProps, type UnstyledButtonStylesNames, type UseApi, type UseComboboxOptions, type UseFetchOptions, type UseFetchResult, type UseTransitionOptions, type VariantColorResult, type VariantColorsResolver, type VariantColorsResolverInput, type VarsResolver, type ViewTransitionOptions, type ViewTransitionStart, type ViewTransitionVariant, type VirtualColor, VisuallyHidden, type VisuallyHiddenProps, type WelloApiConfig, type WelloApiError, type WelloBreakpoint, type WelloColor, type WelloColorScheme, type WelloColorsTuple, type WelloComponent, type WelloFontSize, type WelloGradient, type WelloLabels, WelloProvider, type WelloProviderProps, type WelloRadius, type WelloShadow, type WelloSize, type WelloSpacing, type WelloStyle, type WelloStyleProps, type WelloTheme, type WelloThemeComponent, type WelloThemeOverride, alpha, buildViewTransitionCss, buttonVariants, callAll, checkColor, clamp, clearFetchCache, colorLuminance, colorSchemeVars, colorsTuple, convertHsvaTo, createApiClient, createOptionalContext, createSafeContext, createWelloConfig, cx, darken, defaultVariantColorsResolver, em, factory, fitPhoneNumber, formatFileSize, formatNumber, generateColors, getAutoContrastValue, getColorVars, getContrastColor, getFontSize, getGradient, getInitials, getLineHeight, getPaginationRange, getPrimaryContrastColor, getPrimaryShade, getRadius, getShadow, getSize, getSpacing, getThemeColor, getVirtualColorContrast, highlighter, hsvaToRgbaObject, inputVarsResolver, isColorValid, isCssColor, isLightColor, isNamedSize, isValidColor, isVirtualColor, labelVariants, lighten, localStorageColorSchemeManager, luminance, mapResponsive, matchesPhoneStartingNumber, mergeRefs, mergeStyles, mergeTheme, normalizeStartingNumber, parseColor, parseThemeColor, polymorphicFactory, px, readListResponse, rem, resolvePhoneCountry, rgba, runViewTransition, sizeValue, splitInputProps, staticClasses, tabsListVariants, toItem, toRgba, transitionStyles, transitions, useApi, useCombobox, useComboboxContext, useComponentStyles, useComputedColorScheme, useDirection, useEndpointLoaders, useFetch, useId, useInputWrapperContext, useModalContext, usePagination, usePopoverContext, useProps, useStyles, useTabsContext, useTransition, useViewTransition, useWelloColorScheme, useWelloLabels, useWelloTheme, virtualColor };