@saas-ui/react 3.0.0-next.2 → 3.0.0-next.21

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 (1022) hide show
  1. package/CHANGELOG.md +124 -0
  2. package/dist/.tsbuildinfo.json +1 -0
  3. package/dist/colors.d.ts +1 -0
  4. package/dist/colors.js +1 -0
  5. package/dist/components/accordion/accordion.d.ts +14 -0
  6. package/dist/components/accordion/accordion.js +15 -0
  7. package/dist/components/accordion/accordion.recipe.d.ts +75 -0
  8. package/dist/components/accordion/accordion.recipe.js +139 -0
  9. package/dist/components/accordion/index.d.ts +1 -0
  10. package/dist/components/accordion/index.js +1 -0
  11. package/dist/components/action-bar/action-bar.d.ts +16 -0
  12. package/dist/components/action-bar/action-bar.js +17 -0
  13. package/dist/components/action-bar/action-bar.recipe.d.ts +1 -0
  14. package/dist/components/action-bar/action-bar.recipe.js +56 -0
  15. package/dist/components/action-bar/index.d.ts +1 -0
  16. package/dist/components/action-bar/index.js +1 -0
  17. package/dist/components/alert/alert.d.ts +10 -0
  18. package/dist/components/alert/alert.js +9 -0
  19. package/dist/components/alert/alert.recipe.d.ts +120 -0
  20. package/dist/components/alert/alert.recipe.js +149 -0
  21. package/dist/components/alert/index.d.ts +1 -0
  22. package/dist/components/alert/index.js +1 -0
  23. package/dist/components/app-shell/app-shell.d.ts +40 -0
  24. package/dist/components/app-shell/app-shell.js +22 -0
  25. package/dist/components/app-shell/app-shell.recipe.d.ts +18 -0
  26. package/dist/components/app-shell/app-shell.recipe.js +45 -0
  27. package/dist/components/app-shell/index.d.ts +2 -0
  28. package/dist/components/app-shell/index.js +1 -0
  29. package/dist/components/aspect-ratio/index.d.ts +1 -0
  30. package/dist/components/aspect-ratio/index.js +1 -0
  31. package/dist/components/avatar/avatar.d.ts +17 -0
  32. package/dist/components/avatar/avatar.js +25 -0
  33. package/dist/components/avatar/avatar.recipe.d.ts +89 -0
  34. package/dist/components/avatar/avatar.recipe.js +130 -0
  35. package/dist/components/avatar/index.d.ts +2 -0
  36. package/dist/components/avatar/index.js +1 -0
  37. package/dist/components/back-button/back-button.d.ts +7 -0
  38. package/dist/components/back-button/back-button.js +14 -0
  39. package/dist/components/back-button/index.d.ts +2 -0
  40. package/dist/components/back-button/index.js +1 -0
  41. package/dist/components/badge/badge.recipe.d.ts +48 -0
  42. package/dist/components/badge/badge.recipe.js +66 -0
  43. package/dist/components/badge/index.d.ts +1 -0
  44. package/dist/components/badge/index.js +1 -0
  45. package/dist/components/bleed/index.d.ts +1 -0
  46. package/dist/components/bleed/index.js +1 -0
  47. package/dist/components/blockquote/blockquote.d.ts +9 -0
  48. package/dist/components/blockquote/blockquote.js +7 -0
  49. package/dist/components/blockquote/blockquote.recipe.d.ts +52 -0
  50. package/dist/components/blockquote/blockquote.recipe.js +77 -0
  51. package/dist/components/blockquote/index.d.ts +1 -0
  52. package/dist/components/blockquote/index.js +1 -0
  53. package/dist/components/box/index.d.ts +1 -0
  54. package/dist/components/box/index.js +1 -0
  55. package/dist/components/breadcrumb/breadcrumb.d.ts +10 -0
  56. package/dist/components/breadcrumb/breadcrumb.js +15 -0
  57. package/dist/components/breadcrumb/breadcrumb.recipe.d.ts +46 -0
  58. package/dist/components/breadcrumb/breadcrumb.recipe.js +90 -0
  59. package/dist/components/breadcrumb/index.d.ts +1 -0
  60. package/dist/components/breadcrumb/index.js +1 -0
  61. package/dist/components/button/button.recipe.d.ts +138 -0
  62. package/dist/components/button/button.recipe.js +182 -0
  63. package/dist/components/button/index.d.ts +2 -0
  64. package/dist/components/button/index.js +1 -0
  65. package/dist/components/button-group/index.d.ts +2 -0
  66. package/dist/components/button-group/index.js +1 -0
  67. package/dist/components/card/card.recipe.d.ts +70 -0
  68. package/dist/components/card/card.recipe.js +120 -0
  69. package/dist/components/card/index.js +2 -0
  70. package/dist/components/center/index.d.ts +1 -0
  71. package/dist/components/center/index.js +1 -0
  72. package/dist/components/checkbox/checkbox.d.ts +7 -0
  73. package/dist/components/checkbox/checkbox.js +7 -0
  74. package/dist/components/checkbox/checkbox.recipe.d.ts +80 -0
  75. package/dist/components/checkbox/checkbox.recipe.js +64 -0
  76. package/dist/components/checkbox/index.d.ts +2 -0
  77. package/dist/components/checkbox/index.js +1 -0
  78. package/dist/components/checkbox-card/checkbox-card.d.ts +12 -0
  79. package/dist/components/checkbox-card/checkbox-card.js +10 -0
  80. package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +188 -0
  81. package/dist/components/checkbox-card/checkbox-card.recipe.js +201 -0
  82. package/dist/components/checkbox-card/index.d.ts +1 -0
  83. package/dist/components/checkbox-card/index.js +1 -0
  84. package/dist/components/checkmark/checkmark.recipe.d.ts +54 -0
  85. package/dist/components/checkmark/checkmark.recipe.js +80 -0
  86. package/dist/components/checkmark/index.d.ts +1 -0
  87. package/dist/components/checkmark/index.js +1 -0
  88. package/dist/components/client-only/index.d.ts +1 -0
  89. package/dist/components/client-only/index.js +1 -0
  90. package/dist/components/clipboard/clipboard.d.ts +22 -0
  91. package/dist/components/clipboard/clipboard.js +29 -0
  92. package/dist/components/clipboard/index.d.ts +3 -0
  93. package/dist/components/clipboard/index.js +2 -0
  94. package/dist/components/close-button/close-button.d.ts +4 -0
  95. package/dist/components/close-button/close-button.js +7 -0
  96. package/dist/components/close-button/index.d.ts +2 -0
  97. package/dist/components/close-button/index.js +1 -0
  98. package/dist/components/code/code.recipe.d.ts +48 -0
  99. package/dist/components/code/code.recipe.js +14 -0
  100. package/dist/components/code/index.d.ts +1 -0
  101. package/dist/components/code/index.js +1 -0
  102. package/dist/components/collapsible/collapsible.recipe.d.ts +1 -0
  103. package/dist/components/collapsible/collapsible.recipe.js +19 -0
  104. package/dist/components/color-swatch/index.d.ts +1 -0
  105. package/dist/components/color-swatch/index.js +1 -0
  106. package/dist/components/command/command.d.ts +14 -0
  107. package/dist/components/command/command.js +25 -0
  108. package/dist/components/command/command.recipe.d.ts +15 -0
  109. package/dist/components/command/command.recipe.js +34 -0
  110. package/dist/components/command/index.d.ts +1 -0
  111. package/dist/components/command/index.js +1 -0
  112. package/dist/components/container/container.recipe.d.ts +14 -0
  113. package/dist/components/container/container.recipe.js +25 -0
  114. package/dist/components/container/index.d.ts +1 -0
  115. package/dist/components/container/index.js +1 -0
  116. package/dist/components/data-list/data-list.recipe.d.ts +55 -0
  117. package/dist/components/data-list/data-list.recipe.js +78 -0
  118. package/dist/components/dialog/dialog.d.ts +21 -0
  119. package/dist/components/dialog/dialog.js +23 -0
  120. package/dist/components/dialog/dialog.recipe.d.ts +148 -0
  121. package/dist/components/dialog/dialog.recipe.js +219 -0
  122. package/dist/components/dialog/index.d.ts +1 -0
  123. package/dist/components/dialog/index.js +1 -0
  124. package/dist/components/drawer/drawer.d.ts +20 -0
  125. package/dist/components/drawer/drawer.js +24 -0
  126. package/dist/components/drawer/drawer.recipe.d.ts +113 -0
  127. package/dist/components/drawer/drawer.recipe.js +197 -0
  128. package/dist/components/drawer/index.d.ts +1 -0
  129. package/dist/components/drawer/index.js +1 -0
  130. package/dist/components/editable/editable.recipe.d.ts +37 -0
  131. package/dist/components/editable/editable.recipe.js +83 -0
  132. package/dist/components/editable/index.d.ts +1 -0
  133. package/dist/components/editable/index.js +1 -0
  134. package/dist/components/empty-state/empty-state.d.ts +7 -0
  135. package/dist/components/empty-state/empty-state.js +11 -0
  136. package/dist/components/empty-state/empty-state.recipe.d.ts +82 -0
  137. package/dist/components/empty-state/empty-state.recipe.js +130 -0
  138. package/dist/components/empty-state/index.d.ts +2 -0
  139. package/dist/components/empty-state/index.js +1 -0
  140. package/dist/components/env/index.d.ts +1 -0
  141. package/dist/components/env/index.js +1 -0
  142. package/dist/components/field/field.recipe.d.ts +29 -0
  143. package/dist/components/field/field.recipe.js +74 -0
  144. package/dist/components/fieldset/fieldset.recipe.d.ts +37 -0
  145. package/dist/components/fieldset/fieldset.recipe.js +59 -0
  146. package/dist/components/fieldset/index.d.ts +1 -0
  147. package/dist/components/fieldset/index.js +1 -0
  148. package/dist/components/file-upload/file-upload.d.ts +29 -0
  149. package/dist/components/file-upload/file-upload.js +46 -0
  150. package/dist/components/file-upload/file-upload.recipe.d.ts +1 -0
  151. package/dist/components/file-upload/file-upload.recipe.js +90 -0
  152. package/dist/components/file-upload/index.d.ts +2 -0
  153. package/dist/components/file-upload/index.js +2 -0
  154. package/dist/components/flex/index.d.ts +1 -0
  155. package/dist/components/flex/index.js +1 -0
  156. package/dist/components/float/index.d.ts +1 -0
  157. package/dist/components/float/index.js +1 -0
  158. package/dist/components/focus-trap/index.d.ts +1 -0
  159. package/dist/components/focus-trap/index.js +1 -0
  160. package/dist/components/for/index.d.ts +1 -0
  161. package/dist/components/for/index.js +1 -0
  162. package/dist/components/format/index.d.ts +1 -0
  163. package/dist/components/format/index.js +1 -0
  164. package/dist/components/grid/index.d.ts +1 -0
  165. package/dist/components/grid/index.js +1 -0
  166. package/dist/components/grid-list/grid-list.context.d.ts +1 -0
  167. package/dist/components/grid-list/grid-list.context.js +4 -0
  168. package/dist/components/grid-list/grid-list.d.ts +17 -0
  169. package/dist/components/grid-list/grid-list.js +7 -0
  170. package/dist/components/grid-list/grid-list.recipe.d.ts +60 -0
  171. package/dist/components/grid-list/grid-list.recipe.js +132 -0
  172. package/dist/components/grid-list/index.d.ts +1 -0
  173. package/dist/components/grid-list/index.js +1 -0
  174. package/dist/components/group/index.d.ts +1 -0
  175. package/dist/components/group/index.js +1 -0
  176. package/dist/components/heading/heading.recipe.d.ts +37 -0
  177. package/dist/components/heading/heading.recipe.js +26 -0
  178. package/dist/components/heading/index.d.ts +1 -0
  179. package/dist/components/heading/index.js +1 -0
  180. package/dist/components/highlight/index.d.ts +1 -0
  181. package/dist/components/highlight/index.js +1 -0
  182. package/dist/components/hover-card/hover-card.d.ts +11 -0
  183. package/dist/components/hover-card/hover-card.js +13 -0
  184. package/dist/components/hover-card/hover-card.recipe.d.ts +28 -0
  185. package/dist/components/hover-card/hover-card.recipe.js +70 -0
  186. package/dist/components/hover-card/index.d.ts +1 -0
  187. package/dist/components/hover-card/index.js +1 -0
  188. package/dist/components/icon/icon.recipe.d.ts +25 -0
  189. package/dist/components/icon/icon.recipe.js +27 -0
  190. package/dist/components/icon/index.d.ts +1 -0
  191. package/dist/components/icon/index.js +1 -0
  192. package/dist/components/icon-badge/icon-badge.d.ts +13 -0
  193. package/dist/components/icon-badge/icon-badge.js +23 -0
  194. package/dist/components/icon-badge/icon-badge.recipe.d.ts +43 -0
  195. package/dist/components/icon-badge/icon-badge.recipe.js +56 -0
  196. package/dist/components/icon-badge/index.d.ts +2 -0
  197. package/dist/components/icon-badge/index.js +1 -0
  198. package/dist/components/icon-button/icon-button.d.ts +4 -0
  199. package/dist/components/icon-button/icon-button.js +6 -0
  200. package/dist/components/icon-button/index.d.ts +1 -0
  201. package/dist/components/icon-button/index.js +1 -0
  202. package/dist/components/icons/create-icon.d.ts +27 -0
  203. package/dist/components/icons/create-icon.js +15 -0
  204. package/dist/components/icons/icons.d.ts +18 -0
  205. package/dist/components/icons/icons.js +74 -0
  206. package/dist/components/icons/index.d.ts +1 -0
  207. package/dist/components/icons/index.js +1 -0
  208. package/dist/components/image/index.d.ts +1 -0
  209. package/dist/components/image/index.js +1 -0
  210. package/dist/components/info-tip/index.d.ts +1 -0
  211. package/dist/components/info-tip/index.js +1 -0
  212. package/dist/components/info-tip/info-tip.d.ts +8 -0
  213. package/dist/components/info-tip/info-tip.js +9 -0
  214. package/dist/components/input/index.d.ts +2 -0
  215. package/dist/components/input/index.js +1 -0
  216. package/dist/components/input/input-addon.recipe.d.ts +56 -0
  217. package/dist/components/input/input-addon.recipe.js +36 -0
  218. package/dist/components/input/input.recipe.d.ts +66 -0
  219. package/dist/components/input/input.recipe.js +93 -0
  220. package/dist/components/kbd/index.d.ts +1 -0
  221. package/dist/components/kbd/index.js +1 -0
  222. package/dist/components/kbd/kbd.recipe.d.ts +36 -0
  223. package/dist/components/kbd/kbd.recipe.js +56 -0
  224. package/dist/components/link/index.d.ts +2 -0
  225. package/dist/components/link/index.js +1 -0
  226. package/dist/components/link/link.d.ts +10 -0
  227. package/dist/components/link/link.js +15 -0
  228. package/dist/components/link/link.recipe.d.ts +18 -0
  229. package/dist/components/link/link.recipe.js +34 -0
  230. package/dist/components/list/list.recipe.d.ts +38 -0
  231. package/dist/components/list/list.recipe.js +62 -0
  232. package/dist/components/loading-overlay/index.d.ts +2 -0
  233. package/dist/components/loading-overlay/index.js +2 -0
  234. package/dist/components/loading-overlay/loading-overlay.context.d.ts +1 -0
  235. package/dist/components/loading-overlay/loading-overlay.context.js +4 -0
  236. package/dist/components/loading-overlay/loading-overlay.d.ts +17 -0
  237. package/dist/components/loading-overlay/loading-overlay.js +16 -0
  238. package/dist/components/loading-overlay/loading-overlay.recipe.d.ts +35 -0
  239. package/dist/components/loading-overlay/loading-overlay.recipe.js +60 -0
  240. package/dist/components/locale/index.d.ts +1 -0
  241. package/dist/components/locale/index.js +1 -0
  242. package/dist/components/mark/index.d.ts +1 -0
  243. package/dist/components/mark/index.js +1 -0
  244. package/dist/components/mark/mark.recipe.d.ts +16 -0
  245. package/dist/components/mark/mark.recipe.js +25 -0
  246. package/dist/components/menu/index.d.ts +1 -0
  247. package/dist/components/menu/index.js +1 -0
  248. package/dist/components/menu/menu.d.ts +41 -0
  249. package/dist/components/menu/menu.js +47 -0
  250. package/dist/components/menu/menu.recipe.d.ts +55 -0
  251. package/dist/components/menu/menu.recipe.js +130 -0
  252. package/dist/components/native-select/index.d.ts +2 -0
  253. package/dist/components/native-select/index.js +1 -0
  254. package/dist/components/native-select/native-select.d.ts +7 -0
  255. package/dist/components/native-select/native-select.js +9 -0
  256. package/dist/components/native-select/native-select.recipe.d.ts +90 -0
  257. package/dist/components/native-select/native-select.recipe.js +134 -0
  258. package/dist/components/navbar/index.d.ts +1 -0
  259. package/dist/components/navbar/index.js +1 -0
  260. package/dist/components/navbar/navbar.context.d.ts +1 -0
  261. package/dist/components/navbar/navbar.context.js +4 -0
  262. package/dist/components/navbar/navbar.d.ts +14 -0
  263. package/dist/components/navbar/navbar.js +17 -0
  264. package/dist/components/navbar/navbar.recipe.d.ts +34 -0
  265. package/dist/components/navbar/navbar.recipe.js +108 -0
  266. package/dist/components/number-input/index.d.ts +2 -0
  267. package/dist/components/number-input/index.js +1 -0
  268. package/dist/components/number-input/number-input.d.ts +9 -0
  269. package/dist/components/number-input/number-input.js +8 -0
  270. package/dist/components/number-input/number-input.recipe.d.ts +144 -0
  271. package/dist/components/number-input/number-input.recipe.js +111 -0
  272. package/dist/components/page/index.d.ts +2 -0
  273. package/dist/components/page/index.js +2 -0
  274. package/dist/components/page/page.context.d.ts +7 -0
  275. package/dist/components/page/page.context.js +5 -0
  276. package/dist/components/page/page.d.ts +42 -0
  277. package/dist/components/page/page.js +50 -0
  278. package/dist/components/page/page.recipe.d.ts +58 -0
  279. package/dist/components/page/page.recipe.js +98 -0
  280. package/dist/components/pagination/index.d.ts +1 -0
  281. package/dist/components/pagination/index.js +1 -0
  282. package/dist/components/pagination/pagination.d.ts +22 -0
  283. package/dist/components/pagination/pagination.js +59 -0
  284. package/dist/components/password-input/index.d.ts +2 -0
  285. package/dist/components/password-input/index.js +1 -0
  286. package/dist/components/password-input/password-input.d.ts +15 -0
  287. package/dist/components/password-input/password-input.js +28 -0
  288. package/dist/components/persona/index.d.ts +4 -0
  289. package/dist/components/persona/index.js +2 -0
  290. package/dist/components/persona/persona-primitive.d.ts +77 -0
  291. package/dist/components/persona/persona-primitive.js +58 -0
  292. package/dist/components/persona/persona.context.d.ts +1 -0
  293. package/dist/components/persona/persona.context.js +4 -0
  294. package/dist/components/persona/persona.d.ts +63 -0
  295. package/dist/components/persona/persona.js +18 -0
  296. package/dist/components/persona/persona.recipe.d.ts +104 -0
  297. package/dist/components/persona/persona.recipe.js +106 -0
  298. package/dist/components/persona/presence.d.ts +20 -0
  299. package/dist/components/persona/presence.js +35 -0
  300. package/dist/components/pin-input/index.d.ts +2 -0
  301. package/dist/components/pin-input/index.js +1 -0
  302. package/dist/components/pin-input/pin-input.d.ts +8 -0
  303. package/dist/components/pin-input/pin-input.js +8 -0
  304. package/dist/components/pin-input/pin-input.recipe.d.ts +236 -0
  305. package/dist/components/pin-input/pin-input.recipe.js +32 -0
  306. package/dist/components/popover/index.d.ts +1 -0
  307. package/dist/components/popover/index.js +1 -0
  308. package/dist/components/popover/popover.d.ts +21 -0
  309. package/dist/components/popover/popover.js +23 -0
  310. package/dist/components/popover/popover.recipe.d.ts +24 -0
  311. package/dist/components/popover/popover.recipe.js +85 -0
  312. package/dist/components/portal/index.d.ts +1 -0
  313. package/dist/components/portal/index.js +1 -0
  314. package/dist/components/presence/index.d.ts +1 -0
  315. package/dist/components/presence/index.js +1 -0
  316. package/dist/components/progress/progress.recipe.d.ts +82 -0
  317. package/dist/components/progress/progress.recipe.js +120 -0
  318. package/dist/components/progress-circle/progress-circle.recipe.d.ts +49 -0
  319. package/dist/components/progress-circle/progress-circle.recipe.js +91 -0
  320. package/dist/components/qr-code/index.d.ts +2 -0
  321. package/dist/components/qr-code/index.js +1 -0
  322. package/dist/components/radio/index.d.ts +2 -0
  323. package/dist/components/radio/index.js +1 -0
  324. package/dist/components/radio/radio.d.ts +8 -0
  325. package/dist/components/radio/radio.js +8 -0
  326. package/dist/components/radio/radiomark.recipe.d.ts +56 -0
  327. package/dist/components/radio/radiomark.recipe.js +94 -0
  328. package/dist/components/radio-card/index.d.ts +1 -0
  329. package/dist/components/radio-card/index.js +1 -0
  330. package/dist/components/radio-card/radio-card.d.ts +19 -0
  331. package/dist/components/radio-card/radio-card.js +13 -0
  332. package/dist/components/radio-card/radio-card.recipe.d.ts +191 -0
  333. package/dist/components/radio-card/radio-card.recipe.js +209 -0
  334. package/dist/components/radio-group/radio-group.recipe.d.ts +77 -0
  335. package/dist/components/radio-group/radio-group.recipe.js +61 -0
  336. package/dist/components/radiomark/index.d.ts +1 -0
  337. package/dist/components/radiomark/index.js +1 -0
  338. package/dist/components/rating-group/rating-group.recipe.d.ts +24 -0
  339. package/dist/components/rating-group/rating-group.recipe.js +83 -0
  340. package/dist/components/search-input/index.d.ts +2 -0
  341. package/dist/components/search-input/index.js +1 -0
  342. package/dist/components/search-input/search-input.d.ts +12 -0
  343. package/dist/components/search-input/search-input.js +35 -0
  344. package/dist/components/section/index.d.ts +2 -0
  345. package/dist/components/section/index.js +2 -0
  346. package/dist/components/section/section.context.d.ts +1 -0
  347. package/dist/components/section/section.context.js +4 -0
  348. package/dist/components/section/section.d.ts +17 -0
  349. package/dist/components/section/section.js +13 -0
  350. package/dist/components/section/section.recipe.d.ts +27 -0
  351. package/dist/components/section/section.recipe.js +63 -0
  352. package/dist/components/segmented-control/index.d.ts +2 -0
  353. package/dist/components/segmented-control/index.js +1 -0
  354. package/dist/components/segmented-control/segment-group.recipe.d.ts +48 -0
  355. package/dist/components/segmented-control/segment-group.recipe.js +127 -0
  356. package/dist/components/segmented-control/segmented-control.d.ts +11 -0
  357. package/dist/components/segmented-control/segmented-control.js +17 -0
  358. package/dist/components/select/index.d.ts +1 -0
  359. package/dist/components/select/index.js +1 -0
  360. package/dist/components/select/namespace.d.ts +2 -0
  361. package/dist/components/select/namespace.js +1 -0
  362. package/dist/components/select/select.d.ts +25 -0
  363. package/dist/components/select/select.js +43 -0
  364. package/dist/components/select/select.recipe.d.ts +155 -0
  365. package/dist/components/select/select.recipe.js +284 -0
  366. package/dist/components/separator/index.d.ts +2 -0
  367. package/dist/components/separator/index.js +1 -0
  368. package/dist/components/separator/separator.recipe.d.ts +37 -0
  369. package/dist/components/separator/separator.recipe.js +50 -0
  370. package/dist/components/show/index.d.ts +1 -0
  371. package/dist/components/show/index.js +1 -0
  372. package/dist/components/sidebar/index.d.ts +3 -0
  373. package/dist/components/sidebar/index.js +3 -0
  374. package/dist/components/sidebar/sidebar-nav-item.recipe.d.ts +62 -0
  375. package/dist/components/sidebar/sidebar-nav-item.recipe.js +110 -0
  376. package/dist/components/sidebar/sidebar.context.d.ts +10 -0
  377. package/dist/components/sidebar/sidebar.context.js +7 -0
  378. package/dist/components/sidebar/sidebar.d.ts +77 -0
  379. package/dist/components/sidebar/sidebar.js +90 -0
  380. package/dist/components/sidebar/sidebar.recipe.d.ts +89 -0
  381. package/dist/components/sidebar/sidebar.recipe.js +236 -0
  382. package/dist/components/skeleton/index.d.ts +1 -0
  383. package/dist/components/skeleton/index.js +1 -0
  384. package/dist/components/skeleton/skeleton.d.ts +12 -0
  385. package/dist/components/skeleton/skeleton.js +14 -0
  386. package/dist/components/skeleton/skeleton.recipe.d.ts +40 -0
  387. package/dist/components/skeleton/skeleton.recipe.js +49 -0
  388. package/dist/components/skip-nav/index.d.ts +1 -0
  389. package/dist/components/skip-nav/index.js +1 -0
  390. package/dist/components/skip-nav-link/index.d.ts +1 -0
  391. package/dist/components/skip-nav-link/index.js +1 -0
  392. package/dist/components/skip-nav-link/skip-nav-link.recipe.d.ts +1 -0
  393. package/dist/components/skip-nav-link/skip-nav-link.recipe.js +31 -0
  394. package/dist/components/slider/index.d.ts +1 -0
  395. package/dist/components/slider/index.js +1 -0
  396. package/dist/components/slider/slider.d.ts +9 -0
  397. package/dist/components/slider/slider.js +18 -0
  398. package/dist/components/slider/slider.recipe.d.ts +101 -0
  399. package/dist/components/slider/slider.recipe.js +175 -0
  400. package/dist/components/spacer/index.d.ts +1 -0
  401. package/dist/components/spacer/index.js +1 -0
  402. package/dist/components/spinner/index.d.ts +2 -0
  403. package/dist/components/spinner/index.js +1 -0
  404. package/dist/components/spinner/spinner.d.ts +6 -0
  405. package/dist/components/spinner/spinner.js +10 -0
  406. package/dist/components/spinner/spinner.recipe.d.ts +22 -0
  407. package/dist/components/spinner/spinner.recipe.js +31 -0
  408. package/dist/components/stack/index.d.ts +1 -0
  409. package/dist/components/stack/index.js +1 -0
  410. package/dist/components/stat/index.d.ts +1 -0
  411. package/dist/components/stat/index.js +1 -0
  412. package/dist/components/stat/stat.d.ts +17 -0
  413. package/dist/components/stat/stat.js +21 -0
  414. package/dist/components/stat/stat.recipe.d.ts +19 -0
  415. package/dist/components/stat/stat.recipe.js +76 -0
  416. package/dist/components/status/index.d.ts +1 -0
  417. package/dist/components/status/index.js +1 -0
  418. package/dist/components/status/status.d.ts +14 -0
  419. package/dist/components/status/status.js +11 -0
  420. package/dist/components/status/status.recipe.d.ts +19 -0
  421. package/dist/components/status/status.recipe.js +44 -0
  422. package/dist/components/steps/index.d.ts +1 -0
  423. package/dist/components/steps/index.js +1 -0
  424. package/dist/components/steps/steps.d.ts +24 -0
  425. package/dist/components/steps/steps.js +30 -0
  426. package/dist/components/steps/steps.recipe.d.ts +142 -0
  427. package/dist/components/steps/steps.recipe.js +213 -0
  428. package/dist/components/switch/index.d.ts +2 -0
  429. package/dist/components/switch/index.js +1 -0
  430. package/dist/components/switch/switch.d.ts +14 -0
  431. package/dist/components/switch/switch.js +7 -0
  432. package/dist/components/switch/switch.recipe.d.ts +77 -0
  433. package/dist/components/switch/switch.recipe.js +156 -0
  434. package/dist/components/table/table.recipe.d.ts +121 -0
  435. package/dist/components/table/table.recipe.js +161 -0
  436. package/dist/components/tabs/index.d.ts +1 -0
  437. package/dist/components/tabs/index.js +1 -0
  438. package/dist/components/tabs/tabs.recipe.d.ts +243 -0
  439. package/dist/components/tabs/tabs.recipe.js +312 -0
  440. package/dist/components/tag/index.d.ts +1 -0
  441. package/dist/components/tag/index.js +1 -0
  442. package/dist/components/tag/tag.d.ts +8 -0
  443. package/dist/components/tag/tag.js +7 -0
  444. package/dist/components/tag/tag.recipe.d.ts +95 -0
  445. package/dist/components/tag/tag.recipe.js +154 -0
  446. package/dist/components/textarea/index.d.ts +2 -0
  447. package/dist/components/textarea/index.js +1 -0
  448. package/dist/components/textarea/textarea.recipe.d.ts +65 -0
  449. package/dist/components/textarea/textarea.recipe.js +90 -0
  450. package/dist/components/timeline/timeline.recipe.d.ts +62 -0
  451. package/dist/components/timeline/timeline.recipe.js +134 -0
  452. package/dist/components/toaster/index.d.ts +2 -0
  453. package/dist/components/toaster/index.js +1 -0
  454. package/dist/components/toaster/toast.recipe.d.ts +1 -0
  455. package/dist/components/toaster/toast.recipe.js +90 -0
  456. package/dist/components/toaster/toaster.d.ts +6 -0
  457. package/dist/components/toaster/toaster.js +42 -0
  458. package/dist/components/toggle/index.d.ts +1 -0
  459. package/dist/components/toggle/index.js +1 -0
  460. package/dist/components/toggle-group/index.d.ts +1 -0
  461. package/dist/components/toggle-group/index.js +1 -0
  462. package/dist/components/toggle-tip/index.d.ts +1 -0
  463. package/dist/components/toggle-tip/index.js +1 -0
  464. package/dist/components/toggle-tip/toggle-tip.d.ts +27 -0
  465. package/dist/components/toggle-tip/toggle-tip.js +8 -0
  466. package/dist/components/tooltip/index.d.ts +1 -0
  467. package/dist/components/tooltip/index.js +1 -0
  468. package/dist/components/tooltip/tooltip.d.ts +10 -0
  469. package/dist/components/tooltip/tooltip.js +10 -0
  470. package/dist/components/tooltip/tooltip.recipe.d.ts +10 -0
  471. package/dist/components/tooltip/tooltip.recipe.js +52 -0
  472. package/dist/components/typography/index.d.ts +1 -0
  473. package/dist/components/typography/index.js +1 -0
  474. package/dist/components/wrap/index.d.ts +1 -0
  475. package/dist/components/wrap/index.js +1 -0
  476. package/dist/index.d.ts +118 -1500
  477. package/dist/index.js +113 -2923
  478. package/dist/preset.d.ts +3 -6
  479. package/dist/preset.js +10 -11
  480. package/dist/provider/index.d.ts +3 -0
  481. package/dist/provider/index.js +2 -0
  482. package/dist/provider/sui-provider.d.ts +13 -0
  483. package/dist/provider/sui-provider.js +12 -0
  484. package/dist/provider/use-link.d.ts +2 -0
  485. package/dist/provider/use-link.js +9 -0
  486. package/dist/styled-system/create-recipe-context.d.ts +17 -0
  487. package/dist/styled-system/create-recipe-context.js +52 -0
  488. package/dist/styled-system/create-slot-recipe-context.d.ts +35 -0
  489. package/dist/styled-system/create-slot-recipe-context.js +90 -0
  490. package/dist/styled-system/empty.d.ts +3 -0
  491. package/dist/styled-system/empty.js +2 -0
  492. package/dist/styled-system/factory.types.d.ts +7 -0
  493. package/dist/styled-system/factory.types.js +1 -0
  494. package/dist/theme/animation-styles.d.ts +1 -0
  495. package/dist/theme/animation-styles.js +49 -0
  496. package/dist/theme/breakpoints.d.ts +10 -0
  497. package/dist/theme/breakpoints.js +8 -0
  498. package/dist/theme/conditions.d.ts +17 -0
  499. package/dist/theme/conditions.js +18 -0
  500. package/dist/theme/fluid-font-sizes.d.ts +0 -0
  501. package/dist/theme/fluid-font-sizes.js +61 -0
  502. package/dist/theme/global-css.d.ts +1 -0
  503. package/dist/theme/global-css.js +58 -0
  504. package/dist/theme/index.d.ts +1 -0
  505. package/dist/theme/index.js +72 -0
  506. package/dist/theme/layer-styles.d.ts +1 -0
  507. package/dist/theme/layer-styles.js +125 -0
  508. package/dist/theme/recipes.d.ts +835 -0
  509. package/dist/theme/recipes.js +44 -0
  510. package/dist/theme/semantic-tokens/colors.d.ts +1292 -0
  511. package/dist/theme/semantic-tokens/colors.js +684 -0
  512. package/dist/theme/semantic-tokens/radii.d.ts +44 -0
  513. package/dist/theme/semantic-tokens/radii.js +39 -0
  514. package/dist/theme/semantic-tokens/shadows.d.ts +50 -0
  515. package/dist/theme/semantic-tokens/shadows.js +51 -0
  516. package/dist/theme/slot-recipes.d.ts +3803 -0
  517. package/dist/theme/slot-recipes.js +106 -0
  518. package/dist/theme/text-styles.d.ts +1 -0
  519. package/dist/theme/text-styles.js +38 -0
  520. package/dist/theme/tokens/animations.d.ts +14 -0
  521. package/dist/theme/tokens/animations.js +7 -0
  522. package/dist/theme/tokens/aspect-ratios.d.ts +20 -0
  523. package/dist/theme/tokens/aspect-ratios.js +9 -0
  524. package/dist/theme/tokens/blurs.d.ts +26 -0
  525. package/dist/theme/tokens/blurs.js +11 -0
  526. package/dist/theme/tokens/borders.d.ts +17 -0
  527. package/dist/theme/tokens/borders.js +8 -0
  528. package/dist/theme/tokens/colors.d.ts +1 -3
  529. package/dist/theme/tokens/colors.js +319 -7
  530. package/dist/theme/tokens/cursor.d.ts +26 -0
  531. package/dist/theme/tokens/cursor.js +11 -0
  532. package/dist/theme/tokens/durations.d.ts +23 -0
  533. package/dist/theme/tokens/durations.js +10 -0
  534. package/dist/theme/tokens/easings.d.ts +20 -0
  535. package/dist/theme/tokens/easings.js +9 -0
  536. package/dist/theme/tokens/font-sizes.d.ts +44 -0
  537. package/dist/theme/tokens/font-sizes.js +18 -0
  538. package/dist/theme/tokens/font-weights.d.ts +29 -0
  539. package/dist/theme/tokens/font-weights.js +12 -0
  540. package/dist/theme/tokens/fonts.d.ts +11 -0
  541. package/dist/theme/tokens/fonts.js +13 -0
  542. package/dist/theme/tokens/keyframes.d.ts +1 -0
  543. package/dist/theme/tokens/keyframes.js +157 -0
  544. package/dist/theme/tokens/letter-spacing.d.ts +17 -0
  545. package/dist/theme/tokens/letter-spacing.js +8 -0
  546. package/dist/theme/tokens/line-heights.d.ts +41 -0
  547. package/dist/theme/tokens/line-heights.js +17 -0
  548. package/dist/theme/tokens/radius.d.ts +32 -0
  549. package/dist/theme/tokens/radius.js +15 -0
  550. package/dist/theme/tokens/sizes.d.ts +257 -0
  551. package/dist/theme/tokens/sizes.js +66 -0
  552. package/dist/theme/tokens/spacing.d.ts +101 -0
  553. package/dist/theme/tokens/spacing.js +37 -0
  554. package/dist/theme/tokens/z-indices.d.ts +53 -0
  555. package/dist/theme/tokens/z-indices.js +32 -0
  556. package/dist/theme/utilities.d.ts +10 -0
  557. package/dist/theme/utilities.js +49 -0
  558. package/dist/theme/utils.d.ts +19 -0
  559. package/dist/theme/utils.js +34 -0
  560. package/dist/types.d.ts +7 -0
  561. package/dist/types.js +1 -0
  562. package/package.json +17 -19
  563. package/dist/accordion/index.cjs +0 -204
  564. package/dist/accordion/index.d.cts +0 -29
  565. package/dist/accordion/index.d.ts +0 -29
  566. package/dist/accordion/index.js +0 -43
  567. package/dist/action-bar/index.cjs +0 -224
  568. package/dist/action-bar/index.d.cts +0 -33
  569. package/dist/action-bar/index.d.ts +0 -33
  570. package/dist/action-bar/index.js +0 -39
  571. package/dist/alert/index.cjs +0 -234
  572. package/dist/alert/index.d.cts +0 -14
  573. package/dist/alert/index.d.ts +0 -14
  574. package/dist/alert/index.js +0 -47
  575. package/dist/app-shell/index.cjs +0 -68
  576. package/dist/app-shell/index.d.cts +0 -30
  577. package/dist/app-shell/index.d.ts +0 -30
  578. package/dist/app-shell/index.js +0 -45
  579. package/dist/aspect-ratio/index.cjs +0 -31
  580. package/dist/aspect-ratio/index.d.cts +0 -1
  581. package/dist/aspect-ratio/index.d.ts +0 -1
  582. package/dist/aspect-ratio/index.js +0 -10
  583. package/dist/avatar/index.cjs +0 -70
  584. package/dist/avatar/index.d.cts +0 -20
  585. package/dist/avatar/index.d.ts +0 -20
  586. package/dist/avatar/index.js +0 -43
  587. package/dist/back-button/index.cjs +0 -227
  588. package/dist/back-button/index.d.cts +0 -11
  589. package/dist/back-button/index.d.ts +0 -11
  590. package/dist/back-button/index.js +0 -191
  591. package/dist/badge/index.cjs +0 -33
  592. package/dist/badge/index.d.cts +0 -1
  593. package/dist/badge/index.d.ts +0 -1
  594. package/dist/badge/index.js +0 -11
  595. package/dist/bleed/index.cjs +0 -31
  596. package/dist/bleed/index.d.cts +0 -2
  597. package/dist/bleed/index.d.ts +0 -2
  598. package/dist/bleed/index.js +0 -9
  599. package/dist/blockquote/index.cjs +0 -59
  600. package/dist/blockquote/index.d.cts +0 -12
  601. package/dist/blockquote/index.d.ts +0 -12
  602. package/dist/blockquote/index.js +0 -23
  603. package/dist/box/index.cjs +0 -31
  604. package/dist/box/index.d.cts +0 -3
  605. package/dist/box/index.d.ts +0 -3
  606. package/dist/box/index.js +0 -10
  607. package/dist/breadcrumb/index.cjs +0 -58
  608. package/dist/breadcrumb/index.d.cts +0 -23
  609. package/dist/breadcrumb/index.d.ts +0 -23
  610. package/dist/breadcrumb/index.js +0 -35
  611. package/dist/button/index.cjs +0 -31
  612. package/dist/button/index.d.cts +0 -1
  613. package/dist/button/index.d.ts +0 -1
  614. package/dist/button/index.js +0 -8
  615. package/dist/button-group/index.cjs +0 -31
  616. package/dist/button-group/index.d.cts +0 -1
  617. package/dist/button-group/index.d.ts +0 -1
  618. package/dist/button-group/index.js +0 -8
  619. package/dist/card/index.cjs +0 -32
  620. package/dist/card/index.d.cts +0 -1
  621. package/dist/card/index.js +0 -9
  622. package/dist/center/index.cjs +0 -31
  623. package/dist/center/index.d.cts +0 -3
  624. package/dist/center/index.d.ts +0 -3
  625. package/dist/center/index.js +0 -9
  626. package/dist/checkbox/index.cjs +0 -45
  627. package/dist/checkbox/index.d.cts +0 -11
  628. package/dist/checkbox/index.d.ts +0 -11
  629. package/dist/checkbox/index.js +0 -19
  630. package/dist/checkbox-card/index.cjs +0 -66
  631. package/dist/checkbox-card/index.d.cts +0 -15
  632. package/dist/checkbox-card/index.d.ts +0 -15
  633. package/dist/checkbox-card/index.js +0 -40
  634. package/dist/checkmark/index.cjs +0 -31
  635. package/dist/checkmark/index.d.cts +0 -1
  636. package/dist/checkmark/index.d.ts +0 -1
  637. package/dist/checkmark/index.js +0 -7
  638. package/dist/chunk-2Q6YNPRO.js +0 -151
  639. package/dist/chunk-4F7N63LO.js +0 -43
  640. package/dist/chunk-A4CVFWTP.js +0 -27
  641. package/dist/chunk-AX3QDODM.js +0 -136
  642. package/dist/chunk-BFWNUE2X.js +0 -15
  643. package/dist/chunk-EZNMWDPR.js +0 -28
  644. package/dist/chunk-GMRF4UIJ.js +0 -159
  645. package/dist/chunk-HBX3KIPQ.js +0 -135
  646. package/dist/chunk-KNFGYOLD.js +0 -332
  647. package/dist/chunk-M5ROLN3M.js +0 -8903
  648. package/dist/chunk-RTMS5TJN.js +0 -10
  649. package/dist/chunk-V5WPZT25.js +0 -135
  650. package/dist/client-only/index.cjs +0 -31
  651. package/dist/client-only/index.d.cts +0 -1
  652. package/dist/client-only/index.d.ts +0 -1
  653. package/dist/client-only/index.js +0 -9
  654. package/dist/clipboard/index.cjs +0 -234
  655. package/dist/clipboard/index.d.cts +0 -28
  656. package/dist/clipboard/index.d.ts +0 -28
  657. package/dist/clipboard/index.js +0 -63
  658. package/dist/close-button/index.cjs +0 -194
  659. package/dist/close-button/index.d.cts +0 -9
  660. package/dist/close-button/index.d.ts +0 -9
  661. package/dist/close-button/index.js +0 -19
  662. package/dist/code/index.cjs +0 -31
  663. package/dist/code/index.d.cts +0 -3
  664. package/dist/code/index.d.ts +0 -3
  665. package/dist/code/index.js +0 -8
  666. package/dist/collapsible/index.cjs +0 -31
  667. package/dist/collapsible/index.js +0 -8
  668. package/dist/color-picker/index.cjs +0 -31
  669. package/dist/color-picker/index.js +0 -8
  670. package/dist/color-swatch/index.cjs +0 -35
  671. package/dist/color-swatch/index.d.cts +0 -3
  672. package/dist/color-swatch/index.d.ts +0 -3
  673. package/dist/color-swatch/index.js +0 -14
  674. package/dist/command/index.cjs +0 -61
  675. package/dist/command/index.d.cts +0 -36
  676. package/dist/command/index.d.ts +0 -36
  677. package/dist/command/index.js +0 -38
  678. package/dist/container/index.cjs +0 -31
  679. package/dist/container/index.d.cts +0 -1
  680. package/dist/container/index.d.ts +0 -1
  681. package/dist/container/index.js +0 -8
  682. package/dist/data-list/index.cjs +0 -33
  683. package/dist/data-list/index.js +0 -9
  684. package/dist/dialog/index.cjs +0 -249
  685. package/dist/dialog/index.d.cts +0 -46
  686. package/dist/dialog/index.d.ts +0 -46
  687. package/dist/dialog/index.js +0 -226
  688. package/dist/drawer/index.cjs +0 -239
  689. package/dist/drawer/index.d.cts +0 -44
  690. package/dist/drawer/index.d.ts +0 -44
  691. package/dist/drawer/index.js +0 -216
  692. package/dist/editable/index.cjs +0 -31
  693. package/dist/editable/index.d.cts +0 -3
  694. package/dist/editable/index.d.ts +0 -3
  695. package/dist/editable/index.js +0 -8
  696. package/dist/empty-state/index.cjs +0 -50
  697. package/dist/empty-state/index.d.cts +0 -11
  698. package/dist/empty-state/index.d.ts +0 -11
  699. package/dist/empty-state/index.js +0 -29
  700. package/dist/env/index.cjs +0 -33
  701. package/dist/env/index.d.cts +0 -1
  702. package/dist/env/index.d.ts +0 -1
  703. package/dist/env/index.js +0 -12
  704. package/dist/field/index.cjs +0 -35
  705. package/dist/field/index.js +0 -10
  706. package/dist/fieldset/index.cjs +0 -33
  707. package/dist/fieldset/index.d.cts +0 -4
  708. package/dist/fieldset/index.d.ts +0 -4
  709. package/dist/fieldset/index.js +0 -9
  710. package/dist/file-upload/index.cjs +0 -303
  711. package/dist/file-upload/index.d.cts +0 -46
  712. package/dist/file-upload/index.d.ts +0 -46
  713. package/dist/file-upload/index.js +0 -272
  714. package/dist/flex/index.cjs +0 -31
  715. package/dist/flex/index.d.cts +0 -1
  716. package/dist/flex/index.d.ts +0 -1
  717. package/dist/flex/index.js +0 -10
  718. package/dist/float/index.cjs +0 -31
  719. package/dist/float/index.d.cts +0 -1
  720. package/dist/float/index.d.ts +0 -1
  721. package/dist/float/index.js +0 -10
  722. package/dist/focus-trap/index.cjs +0 -31
  723. package/dist/focus-trap/index.d.cts +0 -1
  724. package/dist/focus-trap/index.d.ts +0 -1
  725. package/dist/focus-trap/index.js +0 -8
  726. package/dist/for/index.cjs +0 -31
  727. package/dist/for/index.d.cts +0 -4
  728. package/dist/for/index.d.ts +0 -4
  729. package/dist/for/index.js +0 -10
  730. package/dist/format/index.cjs +0 -33
  731. package/dist/format/index.d.cts +0 -1
  732. package/dist/format/index.d.ts +0 -1
  733. package/dist/format/index.js +0 -12
  734. package/dist/grid/index.cjs +0 -31
  735. package/dist/grid/index.d.cts +0 -1
  736. package/dist/grid/index.d.ts +0 -1
  737. package/dist/grid/index.js +0 -10
  738. package/dist/grid-list/index.cjs +0 -68
  739. package/dist/grid-list/index.d.cts +0 -88
  740. package/dist/grid-list/index.d.ts +0 -88
  741. package/dist/grid-list/index.js +0 -45
  742. package/dist/group/index.cjs +0 -31
  743. package/dist/group/index.d.cts +0 -1
  744. package/dist/group/index.d.ts +0 -1
  745. package/dist/group/index.js +0 -10
  746. package/dist/heading/index.cjs +0 -31
  747. package/dist/heading/index.d.cts +0 -3
  748. package/dist/heading/index.d.ts +0 -3
  749. package/dist/heading/index.js +0 -8
  750. package/dist/highlight/index.cjs +0 -31
  751. package/dist/highlight/index.d.cts +0 -1
  752. package/dist/highlight/index.d.ts +0 -1
  753. package/dist/highlight/index.js +0 -10
  754. package/dist/hover-card/index.cjs +0 -66
  755. package/dist/hover-card/index.d.cts +0 -21
  756. package/dist/hover-card/index.d.ts +0 -21
  757. package/dist/hover-card/index.js +0 -33
  758. package/dist/icon/index.cjs +0 -31
  759. package/dist/icon/index.d.cts +0 -1
  760. package/dist/icon/index.d.ts +0 -1
  761. package/dist/icon/index.js +0 -8
  762. package/dist/icon-badge/index.cjs +0 -70
  763. package/dist/icon-badge/index.d.cts +0 -16
  764. package/dist/icon-badge/index.d.ts +0 -16
  765. package/dist/icon-badge/index.js +0 -38
  766. package/dist/icon-button/index.cjs +0 -53
  767. package/dist/icon-button/index.d.cts +0 -8
  768. package/dist/icon-button/index.d.ts +0 -8
  769. package/dist/icon-button/index.js +0 -8
  770. package/dist/icon-button-CR4hDxYi.d.cts +0 -6
  771. package/dist/icon-button-CR4hDxYi.d.ts +0 -6
  772. package/dist/icons/index.cjs +0 -193
  773. package/dist/icons/index.d.cts +0 -23
  774. package/dist/icons/index.d.ts +0 -23
  775. package/dist/icons/index.js +0 -42
  776. package/dist/image/index.cjs +0 -31
  777. package/dist/image/index.d.cts +0 -2
  778. package/dist/image/index.d.ts +0 -2
  779. package/dist/image/index.js +0 -8
  780. package/dist/index.cjs +0 -12205
  781. package/dist/index.d.cts +0 -1500
  782. package/dist/info-tip/index.cjs +0 -306
  783. package/dist/info-tip/index.d.cts +0 -38
  784. package/dist/info-tip/index.d.ts +0 -38
  785. package/dist/info-tip/index.js +0 -128
  786. package/dist/input/index.cjs +0 -39
  787. package/dist/input/index.d.cts +0 -1
  788. package/dist/input/index.d.ts +0 -1
  789. package/dist/input/index.js +0 -18
  790. package/dist/kbd/index.cjs +0 -31
  791. package/dist/kbd/index.d.cts +0 -3
  792. package/dist/kbd/index.d.ts +0 -3
  793. package/dist/kbd/index.js +0 -8
  794. package/dist/link/index.cjs +0 -71
  795. package/dist/link/index.d.cts +0 -13
  796. package/dist/link/index.d.ts +0 -13
  797. package/dist/link/index.js +0 -36
  798. package/dist/list/index.cjs +0 -31
  799. package/dist/list/index.js +0 -8
  800. package/dist/loader/index.cjs +0 -31
  801. package/dist/loader/index.js +0 -8
  802. package/dist/loading-overlay/index.cjs +0 -87
  803. package/dist/loading-overlay/index.d.cts +0 -31
  804. package/dist/loading-overlay/index.d.ts +0 -31
  805. package/dist/loading-overlay/index.js +0 -66
  806. package/dist/locale/index.cjs +0 -33
  807. package/dist/locale/index.d.cts +0 -1
  808. package/dist/locale/index.d.ts +0 -1
  809. package/dist/locale/index.js +0 -12
  810. package/dist/mark/index.cjs +0 -31
  811. package/dist/mark/index.d.cts +0 -2
  812. package/dist/mark/index.d.ts +0 -2
  813. package/dist/mark/index.js +0 -8
  814. package/dist/menu/index.cjs +0 -249
  815. package/dist/menu/index.d.cts +0 -40
  816. package/dist/menu/index.d.ts +0 -40
  817. package/dist/menu/index.js +0 -101
  818. package/dist/native-select/index.cjs +0 -185
  819. package/dist/native-select/index.d.cts +0 -10
  820. package/dist/native-select/index.d.ts +0 -10
  821. package/dist/native-select/index.js +0 -22
  822. package/dist/navbar/index.cjs +0 -111
  823. package/dist/navbar/index.d.cts +0 -21
  824. package/dist/navbar/index.d.ts +0 -21
  825. package/dist/navbar/index.js +0 -78
  826. package/dist/number-input/index.cjs +0 -67
  827. package/dist/number-input/index.d.cts +0 -13
  828. package/dist/number-input/index.d.ts +0 -13
  829. package/dist/number-input/index.js +0 -40
  830. package/dist/page/index.cjs +0 -196
  831. package/dist/page/index.d.cts +0 -50
  832. package/dist/page/index.d.ts +0 -50
  833. package/dist/page/index.js +0 -167
  834. package/dist/pagination/index.cjs +0 -260
  835. package/dist/pagination/index.d.cts +0 -43
  836. package/dist/pagination/index.d.ts +0 -43
  837. package/dist/pagination/index.js +0 -223
  838. package/dist/password-input/index.cjs +0 -284
  839. package/dist/password-input/index.d.cts +0 -18
  840. package/dist/password-input/index.d.ts +0 -18
  841. package/dist/password-input/index.js +0 -230
  842. package/dist/persona/index.cjs +0 -247
  843. package/dist/persona/index.d.cts +0 -230
  844. package/dist/persona/index.d.ts +0 -230
  845. package/dist/persona/index.js +0 -212
  846. package/dist/pin-input/index.cjs +0 -52
  847. package/dist/pin-input/index.d.cts +0 -12
  848. package/dist/pin-input/index.d.ts +0 -12
  849. package/dist/pin-input/index.js +0 -27
  850. package/dist/popover/index.cjs +0 -259
  851. package/dist/popover/index.d.cts +0 -37
  852. package/dist/popover/index.d.ts +0 -37
  853. package/dist/popover/index.js +0 -226
  854. package/dist/portal/index.cjs +0 -31
  855. package/dist/portal/index.d.cts +0 -3
  856. package/dist/portal/index.d.ts +0 -3
  857. package/dist/portal/index.js +0 -10
  858. package/dist/presence/index.cjs +0 -31
  859. package/dist/presence/index.d.cts +0 -1
  860. package/dist/presence/index.d.ts +0 -1
  861. package/dist/presence/index.js +0 -8
  862. package/dist/preset.cjs +0 -9240
  863. package/dist/preset.d.cts +0 -6
  864. package/dist/progress/index.cjs +0 -31
  865. package/dist/progress/index.js +0 -8
  866. package/dist/progress-circle/index.cjs +0 -31
  867. package/dist/progress-circle/index.js +0 -8
  868. package/dist/qr-code/index.cjs +0 -31
  869. package/dist/qr-code/index.d.cts +0 -3
  870. package/dist/qr-code/index.d.ts +0 -3
  871. package/dist/qr-code/index.js +0 -8
  872. package/dist/radio/index.cjs +0 -46
  873. package/dist/radio/index.d.cts +0 -10
  874. package/dist/radio/index.d.ts +0 -10
  875. package/dist/radio/index.js +0 -21
  876. package/dist/radio-card/index.cjs +0 -75
  877. package/dist/radio-card/index.d.cts +0 -31
  878. package/dist/radio-card/index.d.ts +0 -31
  879. package/dist/radio-card/index.js +0 -52
  880. package/dist/radio-group/index.cjs +0 -31
  881. package/dist/radio-group/index.js +0 -8
  882. package/dist/radiomark/index.cjs +0 -31
  883. package/dist/radiomark/index.d.cts +0 -2
  884. package/dist/radiomark/index.d.ts +0 -2
  885. package/dist/radiomark/index.js +0 -10
  886. package/dist/rating-group/index.cjs +0 -31
  887. package/dist/rating-group/index.js +0 -8
  888. package/dist/search-input/index.cjs +0 -274
  889. package/dist/search-input/index.d.cts +0 -15
  890. package/dist/search-input/index.d.ts +0 -15
  891. package/dist/search-input/index.js +0 -119
  892. package/dist/segmented-control/index.cjs +0 -61
  893. package/dist/segmented-control/index.d.cts +0 -14
  894. package/dist/segmented-control/index.d.ts +0 -14
  895. package/dist/segmented-control/index.js +0 -36
  896. package/dist/select/index.cjs +0 -286
  897. package/dist/select/index.d.cts +0 -33
  898. package/dist/select/index.d.ts +0 -33
  899. package/dist/select/index.js +0 -137
  900. package/dist/separator/index.cjs +0 -31
  901. package/dist/separator/index.d.cts +0 -3
  902. package/dist/separator/index.d.ts +0 -3
  903. package/dist/separator/index.js +0 -8
  904. package/dist/show/index.cjs +0 -31
  905. package/dist/show/index.d.cts +0 -1
  906. package/dist/show/index.d.ts +0 -1
  907. package/dist/show/index.js +0 -10
  908. package/dist/sidebar/index.cjs +0 -168
  909. package/dist/sidebar/index.d.cts +0 -90
  910. package/dist/sidebar/index.d.ts +0 -90
  911. package/dist/sidebar/index.js +0 -142
  912. package/dist/skeleton/index.cjs +0 -61
  913. package/dist/skeleton/index.d.cts +0 -17
  914. package/dist/skeleton/index.d.ts +0 -17
  915. package/dist/skeleton/index.js +0 -34
  916. package/dist/skip-nav/index.cjs +0 -33
  917. package/dist/skip-nav/index.d.cts +0 -1
  918. package/dist/skip-nav/index.d.ts +0 -1
  919. package/dist/skip-nav/index.js +0 -12
  920. package/dist/skip-nav-link/index.cjs +0 -33
  921. package/dist/skip-nav-link/index.d.cts +0 -3
  922. package/dist/skip-nav-link/index.d.ts +0 -3
  923. package/dist/skip-nav-link/index.js +0 -11
  924. package/dist/slider/index.cjs +0 -62
  925. package/dist/slider/index.d.cts +0 -13
  926. package/dist/slider/index.d.ts +0 -13
  927. package/dist/slider/index.js +0 -36
  928. package/dist/spacer/index.cjs +0 -31
  929. package/dist/spacer/index.d.cts +0 -1
  930. package/dist/spacer/index.d.ts +0 -1
  931. package/dist/spacer/index.js +0 -9
  932. package/dist/spinner/index.cjs +0 -44
  933. package/dist/spinner/index.d.cts +0 -10
  934. package/dist/spinner/index.d.ts +0 -10
  935. package/dist/spinner/index.js +0 -18
  936. package/dist/stack/index.cjs +0 -31
  937. package/dist/stack/index.d.cts +0 -1
  938. package/dist/stack/index.d.ts +0 -1
  939. package/dist/stack/index.js +0 -9
  940. package/dist/stat/index.cjs +0 -83
  941. package/dist/stat/index.d.cts +0 -29
  942. package/dist/stat/index.d.ts +0 -29
  943. package/dist/stat/index.js +0 -50
  944. package/dist/status/index.cjs +0 -45
  945. package/dist/status/index.d.cts +0 -18
  946. package/dist/status/index.d.ts +0 -18
  947. package/dist/status/index.js +0 -20
  948. package/dist/steps/index.cjs +0 -221
  949. package/dist/steps/index.d.cts +0 -31
  950. package/dist/steps/index.d.ts +0 -31
  951. package/dist/steps/index.js +0 -198
  952. package/dist/switch/index.cjs +0 -48
  953. package/dist/switch/index.d.cts +0 -18
  954. package/dist/switch/index.d.ts +0 -18
  955. package/dist/switch/index.js +0 -23
  956. package/dist/table/index.cjs +0 -31
  957. package/dist/table/index.js +0 -8
  958. package/dist/tabs/index.cjs +0 -37
  959. package/dist/tabs/index.d.cts +0 -3
  960. package/dist/tabs/index.d.ts +0 -3
  961. package/dist/tabs/index.js +0 -15
  962. package/dist/tag/index.cjs +0 -53
  963. package/dist/tag/index.d.cts +0 -12
  964. package/dist/tag/index.d.ts +0 -12
  965. package/dist/tag/index.js +0 -27
  966. package/dist/textarea/index.cjs +0 -31
  967. package/dist/textarea/index.d.cts +0 -1
  968. package/dist/textarea/index.d.ts +0 -1
  969. package/dist/textarea/index.js +0 -7
  970. package/dist/theme/tokens/colors.cjs +0 -349
  971. package/dist/theme/tokens/colors.d.cts +0 -856
  972. package/dist/timeline/index.cjs +0 -31
  973. package/dist/timeline/index.js +0 -7
  974. package/dist/toaster/index.cjs +0 -264
  975. package/dist/toaster/index.d.cts +0 -235
  976. package/dist/toaster/index.d.ts +0 -235
  977. package/dist/toaster/index.js +0 -241
  978. package/dist/toggle/index.cjs +0 -31
  979. package/dist/toggle/index.d.cts +0 -3
  980. package/dist/toggle/index.d.ts +0 -3
  981. package/dist/toggle/index.js +0 -8
  982. package/dist/toggle-tip/index.cjs +0 -296
  983. package/dist/toggle-tip/index.d.cts +0 -32
  984. package/dist/toggle-tip/index.d.ts +0 -32
  985. package/dist/toggle-tip/index.js +0 -263
  986. package/dist/tooltip/index.cjs +0 -58
  987. package/dist/tooltip/index.d.cts +0 -14
  988. package/dist/tooltip/index.d.ts +0 -14
  989. package/dist/tooltip/index.js +0 -33
  990. package/dist/typography/index.cjs +0 -37
  991. package/dist/typography/index.d.cts +0 -1
  992. package/dist/typography/index.d.ts +0 -1
  993. package/dist/typography/index.js +0 -16
  994. package/dist/visually-hidden/index.cjs +0 -31
  995. package/dist/visually-hidden/index.js +0 -8
  996. /package/dist/{card → components/card}/index.d.ts +0 -0
  997. /package/dist/{collapsible → components/collapsible}/index.d.ts +0 -0
  998. /package/dist/{collapsible/index.d.cts → components/collapsible/index.js} +0 -0
  999. /package/dist/{color-picker → components/color-picker}/index.d.ts +0 -0
  1000. /package/dist/{color-picker/index.d.cts → components/color-picker/index.js} +0 -0
  1001. /package/dist/{data-list → components/data-list}/index.d.ts +0 -0
  1002. /package/dist/{data-list/index.d.cts → components/data-list/index.js} +0 -0
  1003. /package/dist/{field → components/field}/index.d.ts +0 -0
  1004. /package/dist/{field/index.d.cts → components/field/index.js} +0 -0
  1005. /package/dist/{list → components/list}/index.d.ts +0 -0
  1006. /package/dist/{list/index.d.cts → components/list/index.js} +0 -0
  1007. /package/dist/{loader → components/loader}/index.d.ts +0 -0
  1008. /package/dist/{loader/index.d.cts → components/loader/index.js} +0 -0
  1009. /package/dist/{progress → components/progress}/index.d.ts +0 -0
  1010. /package/dist/{progress/index.d.cts → components/progress/index.js} +0 -0
  1011. /package/dist/{progress-circle → components/progress-circle}/index.d.ts +0 -0
  1012. /package/dist/{progress-circle/index.d.cts → components/progress-circle/index.js} +0 -0
  1013. /package/dist/{radio-group → components/radio-group}/index.d.ts +0 -0
  1014. /package/dist/{radio-group/index.d.cts → components/radio-group/index.js} +0 -0
  1015. /package/dist/{rating-group → components/rating-group}/index.d.ts +0 -0
  1016. /package/dist/{rating-group/index.d.cts → components/rating-group/index.js} +0 -0
  1017. /package/dist/{table → components/table}/index.d.ts +0 -0
  1018. /package/dist/{table/index.d.cts → components/table/index.js} +0 -0
  1019. /package/dist/{timeline → components/timeline}/index.d.ts +0 -0
  1020. /package/dist/{timeline/index.d.cts → components/timeline/index.js} +0 -0
  1021. /package/dist/{visually-hidden → components/visually-hidden}/index.d.ts +0 -0
  1022. /package/dist/{visually-hidden/index.d.cts → components/visually-hidden/index.js} +0 -0
package/dist/index.js CHANGED
@@ -1,2923 +1,113 @@
1
- import {
2
- defaultConfig,
3
- defaultSystem
4
- } from "./chunk-M5ROLN3M.js";
5
- import {
6
- __export
7
- } from "./chunk-KNFGYOLD.js";
8
-
9
- // src/index.ts
10
- import { createSystem } from "@chakra-ui/react";
11
-
12
- // src/provider/sui-provider.tsx
13
- import * as React from "react";
14
- import { ChakraProvider } from "@chakra-ui/react";
15
- import { jsx } from "react/jsx-runtime";
16
- var SuiContext = React.createContext({});
17
- function SuiProvider(props) {
18
- const { linkComponent, onError, children, ...rest } = props;
19
- const context = React.useMemo(
20
- () => ({
21
- linkComponent
22
- }),
23
- []
24
- );
25
- return /* @__PURE__ */ jsx(SuiContext.Provider, { value: context, children: /* @__PURE__ */ jsx(ChakraProvider, { ...rest, children }) });
26
- }
27
- var useSui = () => React.useContext(SuiContext);
28
-
29
- // src/provider/use-link.tsx
30
- import { chakra } from "@chakra-ui/react";
31
- function useLink() {
32
- const context = useSui();
33
- if (context == null ? void 0 : context.linkComponent) {
34
- return context.linkComponent;
35
- }
36
- return chakra.a;
37
- }
38
-
39
- // src/components/accordion/accordion.tsx
40
- var accordion_exports = {};
41
- __export(accordion_exports, {
42
- Item: () => Item,
43
- ItemContent: () => ItemContent,
44
- ItemTrigger: () => ItemTrigger,
45
- Root: () => Root
46
- });
47
- import * as React2 from "react";
48
- import { Accordion } from "@chakra-ui/react/accordion";
49
-
50
- // src/components/icons/create-icon.tsx
51
- import { createIcon as _createIcon } from "@chakra-ui/react/icon";
52
- var createIcon = (props) => {
53
- return _createIcon({
54
- viewBox: "0 0 24 24",
55
- defaultProps: {
56
- fill: "none",
57
- stroke: "currentColor",
58
- strokeWidth: "2",
59
- strokeLinecap: "round",
60
- strokeLinejoin: "round"
61
- },
62
- ...props
63
- });
64
- };
65
-
66
- // src/components/icons/icons.tsx
67
- import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
68
- var ChevronUpIcon = createIcon({
69
- displayName: "ChevronUpIcon",
70
- path: /* @__PURE__ */ jsx2("polyline", { points: "18 15 12 9 6 15" })
71
- });
72
- var ChevronDownIcon = createIcon({
73
- displayName: "ChevronDownIcon",
74
- path: /* @__PURE__ */ jsx2("polyline", { points: "6 9 12 15 18 9" })
75
- });
76
- var ChevronLeftIcon = createIcon({
77
- displayName: "ChevronLeftIcon",
78
- path: /* @__PURE__ */ jsx2("polyline", { points: "15 18 9 12 15 6" })
79
- });
80
- var ChevronRightIcon = createIcon({
81
- displayName: "ChevronRightIcon",
82
- path: /* @__PURE__ */ jsx2("polyline", { points: "9 18 15 12 9 6" })
83
- });
84
- var HamburgerIcon = createIcon({
85
- displayName: "ChevronDownIcon",
86
- path: /* @__PURE__ */ jsxs("g", { fill: "none", children: [
87
- /* @__PURE__ */ jsx2("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
88
- /* @__PURE__ */ jsx2("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
89
- /* @__PURE__ */ jsx2("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
90
- ] })
91
- });
92
- var CloseIcon = createIcon({
93
- displayName: "CloseIcon",
94
- path: /* @__PURE__ */ jsxs("g", { children: [
95
- /* @__PURE__ */ jsx2("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
96
- /* @__PURE__ */ jsx2("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
97
- ] })
98
- });
99
- var FilterIcon = createIcon({
100
- displayName: "FilterIcon",
101
- path: /* @__PURE__ */ jsx2("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" })
102
- });
103
- var CalendarIcon = createIcon({
104
- displayName: "CalendarIcon",
105
- path: /* @__PURE__ */ jsxs("g", { children: [
106
- /* @__PURE__ */ jsx2("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
107
- /* @__PURE__ */ jsx2("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
108
- /* @__PURE__ */ jsx2("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
109
- /* @__PURE__ */ jsx2("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
110
- ] })
111
- });
112
- var PlusIcon = createIcon({
113
- displayName: "PlusIcon",
114
- path: /* @__PURE__ */ jsxs("g", { children: [
115
- /* @__PURE__ */ jsx2("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
116
- /* @__PURE__ */ jsx2("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
117
- ] })
118
- });
119
- var MinusIcon = createIcon({
120
- displayName: "MinusIcon",
121
- path: /* @__PURE__ */ jsx2("g", { children: /* @__PURE__ */ jsx2("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) })
122
- });
123
- var ViewOffIcon = createIcon({
124
- displayName: "ViewOffIcon",
125
- path: /* @__PURE__ */ jsxs("g", { children: [
126
- /* @__PURE__ */ jsx2("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
127
- /* @__PURE__ */ jsx2("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
128
- ] })
129
- });
130
- var ViewIcon = createIcon({
131
- displayName: "ViewOffIcon",
132
- path: /* @__PURE__ */ jsxs("g", { children: [
133
- /* @__PURE__ */ jsx2("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
134
- /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "3" })
135
- ] })
136
- });
137
- var SearchIcon = createIcon({
138
- displayName: "SearchIcon",
139
- path: /* @__PURE__ */ jsxs("g", { children: [
140
- /* @__PURE__ */ jsx2("circle", { cx: "11", cy: "11", r: "8" }),
141
- /* @__PURE__ */ jsx2("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
142
- ] })
143
- });
144
- var CheckIcon = createIcon({
145
- displayName: "CheckIcon",
146
- path: /* @__PURE__ */ jsx2("g", { children: /* @__PURE__ */ jsx2("polyline", { points: "20 6 9 17 4 12" }) })
147
- });
148
- var EllipsisIcon = createIcon({
149
- displayName: "EllipsisIcon",
150
- path: /* @__PURE__ */ jsxs("g", { children: [
151
- /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "1" }),
152
- /* @__PURE__ */ jsx2("circle", { cx: "19", cy: "12", r: "1" }),
153
- /* @__PURE__ */ jsx2("circle", { cx: "5", cy: "12", r: "1" })
154
- ] })
155
- });
156
- var CopyIcon = createIcon({
157
- displayName: "CopyIcon",
158
- path: /* @__PURE__ */ jsxs("g", { children: [
159
- /* @__PURE__ */ jsx2("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
160
- /* @__PURE__ */ jsx2("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
161
- ] })
162
- });
163
- var InfoIcon = createIcon({
164
- displayName: "InfoIcon",
165
- path: /* @__PURE__ */ jsxs("g", { children: [
166
- /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10" }),
167
- /* @__PURE__ */ jsx2("path", { d: "M12 16v-4" }),
168
- /* @__PURE__ */ jsx2("path", { d: "M12 8h.01" })
169
- ] })
170
- });
171
- var ArrowLeftIcon = createIcon({
172
- displayName: "ArrowLeftIcon",
173
- path: /* @__PURE__ */ jsxs(Fragment, { children: [
174
- /* @__PURE__ */ jsx2("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
175
- /* @__PURE__ */ jsx2("polyline", { points: "12 19 5 12 12 5" })
176
- ] })
177
- });
178
-
179
- // src/components/accordion/accordion.tsx
180
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
181
- var ItemTrigger = React2.forwardRef(function AccordionItemTrigger(props, ref) {
182
- const {
183
- children,
184
- indicatorPlacement = "end",
185
- indicatorIcon = /* @__PURE__ */ jsx3(ChevronRightIcon, {}),
186
- ...rest
187
- } = props;
188
- const indicator = /* @__PURE__ */ jsx3(Accordion.ItemIndicator, { children: indicatorIcon });
189
- return /* @__PURE__ */ jsxs2(Accordion.ItemTrigger, { ...rest, ref, children: [
190
- indicatorPlacement === "start" && indicator,
191
- children,
192
- indicatorPlacement === "end" && indicator
193
- ] });
194
- });
195
- var ItemContent = React2.forwardRef(
196
- function AccordionItemContent(props, ref) {
197
- return /* @__PURE__ */ jsx3(Accordion.ItemContent, { children: /* @__PURE__ */ jsx3(Accordion.ItemBody, { ...props, ref }) });
198
- }
199
- );
200
- var Root = Accordion.Root;
201
- var Item = Accordion.Item;
202
-
203
- // src/components/action-bar/action-bar.tsx
204
- var action_bar_exports = {};
205
- __export(action_bar_exports, {
206
- CloseButton: () => CloseButton3,
207
- Content: () => Content,
208
- Root: () => Root2,
209
- SelectionTrigger: () => SelectionTrigger,
210
- Separator: () => Separator
211
- });
212
- import { forwardRef as forwardRef4 } from "react";
213
- import { ActionBar } from "@chakra-ui/react/action-bar";
214
- import { Portal } from "@chakra-ui/react/portal";
215
-
216
- // src/components/close-button/close-button.tsx
217
- import { forwardRef as forwardRef3 } from "react";
218
-
219
- // src/components/icon-button/icon-button.tsx
220
- import { forwardRef as forwardRef2 } from "react";
221
-
222
- // src/components/button/index.ts
223
- import { Button } from "@chakra-ui/react/button";
224
-
225
- // src/components/icon-button/icon-button.tsx
226
- import { jsx as jsx4 } from "react/jsx-runtime";
227
- var IconButton = forwardRef2(
228
- function IconButton2(props, ref) {
229
- return /* @__PURE__ */ jsx4(
230
- Button,
231
- {
232
- px: "0",
233
- py: "0",
234
- _icon: { fontSize: "1.2em" },
235
- ref,
236
- ...props
237
- }
238
- );
239
- }
240
- );
241
-
242
- // src/components/close-button/close-button.tsx
243
- import { jsx as jsx5 } from "react/jsx-runtime";
244
- var CloseButton = forwardRef3(
245
- function CloseButton2(props, ref) {
246
- var _a;
247
- return /* @__PURE__ */ jsx5(IconButton, { variant: "ghost", "aria-label": "Close", ref, ...props, children: (_a = props.children) != null ? _a : /* @__PURE__ */ jsx5(CloseIcon, {}) });
248
- }
249
- );
250
-
251
- // src/components/action-bar/action-bar.tsx
252
- import { jsx as jsx6 } from "react/jsx-runtime";
253
- var ActionBarContent = forwardRef4(
254
- function ActionBarContent2(props, ref) {
255
- const { children, portalled = true, portalRef, ...rest } = props;
256
- return /* @__PURE__ */ jsx6(Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx6(ActionBar.Positioner, { children: /* @__PURE__ */ jsx6(ActionBar.Content, { ref, ...rest, asChild: false, children }) }) });
257
- }
258
- );
259
- var ActionBarCloseButton = forwardRef4(function ActionBarCloseTrigger(props, ref) {
260
- return /* @__PURE__ */ jsx6(ActionBar.CloseTrigger, { ...props, asChild: true, ref, children: /* @__PURE__ */ jsx6(CloseButton, { size: "sm" }) });
261
- });
262
- var Root2 = ActionBar.Root;
263
- var SelectionTrigger = ActionBar.SelectionTrigger;
264
- var Separator = ActionBar.Separator;
265
- var Content = ActionBarContent;
266
- var CloseButton3 = ActionBarCloseButton;
267
-
268
- // src/components/alert/alert.tsx
269
- import { forwardRef as forwardRef5 } from "react";
270
- import { Alert as AlertPrimitive } from "@chakra-ui/react/alert";
271
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
272
- var Alert = forwardRef5(
273
- function Alert2(props, ref) {
274
- const {
275
- title,
276
- children,
277
- icon,
278
- closable,
279
- onClose,
280
- startElement,
281
- endElement,
282
- ...rest
283
- } = props;
284
- return /* @__PURE__ */ jsxs3(AlertPrimitive.Root, { ref, ...rest, children: [
285
- startElement || /* @__PURE__ */ jsx7(AlertPrimitive.Indicator, { children: icon }),
286
- children ? /* @__PURE__ */ jsxs3(AlertPrimitive.Content, { children: [
287
- /* @__PURE__ */ jsx7(AlertPrimitive.Title, { children: title }),
288
- /* @__PURE__ */ jsx7(AlertPrimitive.Description, { children })
289
- ] }) : /* @__PURE__ */ jsx7(AlertPrimitive.Title, { flex: "1", children: title }),
290
- endElement,
291
- closable && /* @__PURE__ */ jsx7(
292
- CloseButton,
293
- {
294
- size: "sm",
295
- pos: "relative",
296
- top: "-2",
297
- insetEnd: "-2",
298
- alignSelf: "flex-start",
299
- onClick: onClose
300
- }
301
- )
302
- ] });
303
- }
304
- );
305
-
306
- // src/components/app-shell/app-shell.tsx
307
- import { forwardRef as forwardRef6 } from "react";
308
- import {
309
- createSlotRecipeContext
310
- } from "@chakra-ui/react/styled-system";
311
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
312
- var {
313
- withProvider,
314
- withContext,
315
- useStyles: useAppShellStyles
316
- } = createSlotRecipeContext({
317
- key: "suiAppShell"
318
- });
319
- var AppShellRoot = withProvider(
320
- "div",
321
- "root",
322
- { forwardAsChild: true }
323
- );
324
- var AppShellContent = withContext("div", "content", { forwardAsChild: true });
325
- var AppShellMain = withContext(
326
- "div",
327
- "main",
328
- { forwardAsChild: true }
329
- );
330
- var AppShell = forwardRef6(
331
- (props, ref) => {
332
- const { header, sidebar, aside, footer, children, ...rootProps } = props;
333
- return /* @__PURE__ */ jsxs4(AppShellRoot, { ref, ...rootProps, children: [
334
- header,
335
- /* @__PURE__ */ jsxs4(AppShellContent, { children: [
336
- sidebar,
337
- /* @__PURE__ */ jsx8(AppShellMain, { children }),
338
- aside
339
- ] }),
340
- footer
341
- ] });
342
- }
343
- );
344
- AppShell.displayName = "AppShell";
345
-
346
- // src/components/avatar/avatar.tsx
347
- import { forwardRef as forwardRef7 } from "react";
348
- import { Avatar as ChakraAvatar } from "@chakra-ui/react/avatar";
349
- import { Group } from "@chakra-ui/react/group";
350
- import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
351
- var Avatar = forwardRef7(
352
- function Avatar2(props, ref) {
353
- const { name, src, srcSet, loading, icon, fallback, children, ...rest } = props;
354
- return /* @__PURE__ */ jsxs5(ChakraAvatar.Root, { ref, ...rest, children: [
355
- /* @__PURE__ */ jsx9(AvatarFallback, { name, icon, children: fallback }),
356
- /* @__PURE__ */ jsx9(ChakraAvatar.Image, { src, srcSet, loading }),
357
- children
358
- ] });
359
- }
360
- );
361
- var AvatarFallback = forwardRef7(
362
- function AvatarFallback2(props, ref) {
363
- const { name, icon, children, ...rest } = props;
364
- return /* @__PURE__ */ jsxs5(ChakraAvatar.Fallback, { ref, ...rest, children: [
365
- children,
366
- name != null && children == null && /* @__PURE__ */ jsx9(Fragment2, { children: getInitials(name) }),
367
- name == null && children == null && /* @__PURE__ */ jsx9(ChakraAvatar.Icon, { asChild: !!icon, children: icon })
368
- ] });
369
- }
370
- );
371
- function getInitials(name) {
372
- const names = name.trim().split(" ");
373
- const firstName = names[0] != null ? names[0] : "";
374
- const lastName = names.length > 1 ? names[names.length - 1] : "";
375
- return firstName && lastName ? `${firstName.charAt(0)}${lastName.charAt(0)}` : firstName.charAt(0);
376
- }
377
- var AvatarGroup = forwardRef7(
378
- function AvatarGroup2(props, ref) {
379
- const { size, variant, borderless, ...rest } = props;
380
- return /* @__PURE__ */ jsx9(ChakraAvatar.PropsProvider, { value: { size, variant, borderless }, children: /* @__PURE__ */ jsx9(Group, { gap: "0", spaceX: "-3", ref, ...rest }) });
381
- }
382
- );
383
-
384
- // src/components/badge/index.ts
385
- import {
386
- Badge,
387
- BadgePropsProvider
388
- } from "@chakra-ui/react/badge";
389
-
390
- // src/components/back-button/back-button.tsx
391
- import { forwardRef as forwardRef8 } from "react";
392
- import { IconButton as IconButton3 } from "@chakra-ui/react";
393
-
394
- // src/components/link/link.tsx
395
- import React3 from "react";
396
- import { Link as ChakraLink } from "@chakra-ui/react/link";
397
- import { jsx as jsx10 } from "react/jsx-runtime";
398
- var Link = React3.forwardRef(
399
- (props, ref) => {
400
- const LinkComponent = useLink();
401
- return /* @__PURE__ */ jsx10(ChakraLink, { asChild: true, children: /* @__PURE__ */ jsx10(LinkComponent, { ref, ...props }) });
402
- }
403
- );
404
- Link.displayName = "Link";
405
-
406
- // src/components/back-button/back-button.tsx
407
- import { jsx as jsx11 } from "react/jsx-runtime";
408
- var BackButton = forwardRef8(
409
- (props, ref) => {
410
- const { href, variant = "ghost", mr = 2, children, ...rest } = props;
411
- let content = children || /* @__PURE__ */ jsx11(ArrowLeftIcon, {});
412
- if (href) {
413
- content = /* @__PURE__ */ jsx11(Link, { href, children: content });
414
- }
415
- return /* @__PURE__ */ jsx11(
416
- IconButton3,
417
- {
418
- ref,
419
- "aria-label": "Go back",
420
- variant,
421
- mr,
422
- ...rest,
423
- children: content
424
- }
425
- );
426
- }
427
- );
428
-
429
- // src/components/blockquote/blockquote.tsx
430
- import * as React4 from "react";
431
- import { Blockquote as ChakraBlockquote } from "@chakra-ui/react";
432
- import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
433
- var Blockquote = React4.forwardRef(
434
- function Blockquote2(props, ref) {
435
- const { children, cite, citeUrl, showDash, icon, ...rest } = props;
436
- return /* @__PURE__ */ jsxs6(ChakraBlockquote.Root, { ref, ...rest, children: [
437
- icon,
438
- /* @__PURE__ */ jsx12(ChakraBlockquote.Content, { cite: citeUrl, children }),
439
- cite && /* @__PURE__ */ jsxs6(ChakraBlockquote.Caption, { children: [
440
- showDash ? /* @__PURE__ */ jsx12(Fragment3, { children: "\u2014" }) : null,
441
- " ",
442
- /* @__PURE__ */ jsx12("cite", { children: cite })
443
- ] })
444
- ] });
445
- }
446
- );
447
-
448
- // src/components/breadcrumb/breadcrumb.tsx
449
- var breadcrumb_exports = {};
450
- __export(breadcrumb_exports, {
451
- CurrentLink: () => CurrentLink,
452
- Ellipsis: () => Ellipsis,
453
- Link: () => Link2,
454
- Root: () => Root3
455
- });
456
- import { Children, Fragment as Fragment4, forwardRef as forwardRef10, isValidElement } from "react";
457
- import { Breadcrumb } from "@chakra-ui/react/breadcrumb";
458
- import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
459
- var Root3 = forwardRef10(
460
- function BreadcrumbRoot(props, ref) {
461
- const { separator = "/", separatorGap, children, ...rest } = props;
462
- const validChildren = Children.toArray(children).filter(isValidElement);
463
- return /* @__PURE__ */ jsx13(Breadcrumb.Root, { ref, ...rest, children: /* @__PURE__ */ jsx13(Breadcrumb.List, { gap: separatorGap, children: validChildren.map((child, index) => {
464
- const last = index === validChildren.length - 1;
465
- return /* @__PURE__ */ jsxs7(Fragment4, { children: [
466
- /* @__PURE__ */ jsx13(Breadcrumb.Item, { children: child }),
467
- !last && /* @__PURE__ */ jsx13(Breadcrumb.Separator, { children: separator })
468
- ] }, index);
469
- }) }) });
470
- }
471
- );
472
- var Link2 = Breadcrumb.Link;
473
- var CurrentLink = Breadcrumb.CurrentLink;
474
- var Ellipsis = Breadcrumb.Ellipsis;
475
-
476
- // src/components/button-group/index.ts
477
- import { ButtonGroup } from "@chakra-ui/react/button";
478
-
479
- // src/components/card/index.ts
480
- import { Card } from "@chakra-ui/react/card";
481
-
482
- // src/components/checkbox/checkbox.tsx
483
- import { forwardRef as forwardRef11 } from "react";
484
- import { Checkbox as ChakraCheckbox } from "@chakra-ui/react/checkbox";
485
- import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
486
- var Checkbox = forwardRef11(
487
- function Checkbox2(props, ref) {
488
- const { icon, children, inputProps, rootRef, ...rest } = props;
489
- return /* @__PURE__ */ jsxs8(ChakraCheckbox.Root, { ref: rootRef, ...rest, children: [
490
- /* @__PURE__ */ jsx14(ChakraCheckbox.HiddenInput, { ref, ...inputProps }),
491
- /* @__PURE__ */ jsx14(ChakraCheckbox.Control, { children: icon || /* @__PURE__ */ jsx14(ChakraCheckbox.Indicator, {}) }),
492
- children != null && /* @__PURE__ */ jsx14(ChakraCheckbox.Label, { children })
493
- ] });
494
- }
495
- );
496
-
497
- // src/components/checkmark/index.ts
498
- import { Checkmark } from "@chakra-ui/react/checkmark";
499
-
500
- // src/components/checkbox-card/checkbox-card.tsx
501
- import { Fragment as Fragment5, forwardRef as forwardRef12 } from "react";
502
- import { CheckboxCard as ChakraCheckboxCard } from "@chakra-ui/react/checkbox-card";
503
- import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
504
- var CheckboxCard = forwardRef12(
505
- function CheckboxCard2(props, ref) {
506
- const {
507
- inputProps,
508
- label,
509
- description,
510
- icon,
511
- addon,
512
- indicator = /* @__PURE__ */ jsx15(ChakraCheckboxCard.Indicator, {}),
513
- indicatorPlacement = "end",
514
- ...rest
515
- } = props;
516
- const hasContent = label || description || icon;
517
- const ContentWrapper = indicator ? ChakraCheckboxCard.Content : Fragment5;
518
- return /* @__PURE__ */ jsxs9(ChakraCheckboxCard.Root, { ...rest, children: [
519
- /* @__PURE__ */ jsx15(ChakraCheckboxCard.HiddenInput, { ref, ...inputProps }),
520
- /* @__PURE__ */ jsxs9(ChakraCheckboxCard.Control, { children: [
521
- indicatorPlacement === "start" && indicator,
522
- hasContent && /* @__PURE__ */ jsxs9(ContentWrapper, { children: [
523
- icon,
524
- label && /* @__PURE__ */ jsx15(ChakraCheckboxCard.Label, { children: label }),
525
- description && /* @__PURE__ */ jsx15(ChakraCheckboxCard.Description, { children: description }),
526
- indicatorPlacement === "inside" && indicator
527
- ] }),
528
- indicatorPlacement === "end" && indicator
529
- ] }),
530
- addon && /* @__PURE__ */ jsx15(ChakraCheckboxCard.Addon, { children: addon })
531
- ] });
532
- }
533
- );
534
- var CheckboxCardIndicator = ChakraCheckboxCard.Indicator;
535
-
536
- // src/components/clipboard/clipboard.tsx
537
- var clipboard_exports = {};
538
- __export(clipboard_exports, {
539
- Button: () => ClipboardButton,
540
- IconButton: () => ClipboardIconButton,
541
- Input: () => ClipboardInput,
542
- Label: () => ClipboardLabel,
543
- Root: () => ClipboardRoot
544
- });
545
- import * as React5 from "react";
546
- import { Clipboard as ChakraClipboard } from "@chakra-ui/react/clipboard";
547
-
548
- // src/components/input/index.ts
549
- import {
550
- Input,
551
- InputAddon,
552
- InputElement,
553
- InputPropsProvider,
554
- InputGroup
555
- } from "@chakra-ui/react/input";
556
-
557
- // src/components/clipboard/clipboard.tsx
558
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
559
- var ClipboardIcon = React5.forwardRef(function ClipboardIndicator(props, ref) {
560
- const { children = /* @__PURE__ */ jsx16(CopyIcon, {}), copied = /* @__PURE__ */ jsx16(CheckIcon, {}), ...rest } = props;
561
- return /* @__PURE__ */ jsx16(ChakraClipboard.Indicator, { copied, ...rest, ref, children });
562
- });
563
- var ClipboardCopyText = React5.forwardRef(function ClipboardCopyText2(props, ref) {
564
- const { children = "Copy", copied = "Copied", ...rest } = props;
565
- return /* @__PURE__ */ jsx16(ChakraClipboard.Indicator, { copied, ...rest, ref, children });
566
- });
567
- var ClipboardButton = React5.forwardRef(function ClipboardButton2(props, ref) {
568
- const { icon, copiedIcon, copied, children, ...rest } = props;
569
- return /* @__PURE__ */ jsx16(ChakraClipboard.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs10(Button, { ref, ...rest, children: [
570
- /* @__PURE__ */ jsx16(ClipboardIcon, { copied: copiedIcon, children: icon }),
571
- /* @__PURE__ */ jsx16(ClipboardCopyText, { copied, children })
572
- ] }) });
573
- });
574
- var ClipboardIconButton = React5.forwardRef(function ClipboardIconButton2(props, ref) {
575
- const { icon, copiedIcon, ...rest } = props;
576
- return /* @__PURE__ */ jsx16(ChakraClipboard.Trigger, { asChild: true, children: /* @__PURE__ */ jsx16(IconButton, { ref, size: "xs", ...rest, children: /* @__PURE__ */ jsx16(ClipboardIcon, { copied: copiedIcon, children: icon }) }) });
577
- });
578
- var ClipboardInput = React5.forwardRef(
579
- function ClipboardInputElement(props, ref) {
580
- return /* @__PURE__ */ jsx16(ChakraClipboard.Input, { asChild: true, children: /* @__PURE__ */ jsx16(Input, { ref, ...props }) });
581
- }
582
- );
583
- var ClipboardRoot = ChakraClipboard.Root;
584
- var ClipboardLabel = ChakraClipboard.Label;
585
-
586
- // src/components/container/index.ts
587
- import { Container } from "@chakra-ui/react/container";
588
-
589
- // src/components/code/index.ts
590
- import { Code } from "@chakra-ui/react/code";
591
-
592
- // src/components/collapsible/index.ts
593
- import { Collapsible } from "@chakra-ui/react/collapsible";
594
-
595
- // src/components/command/command.tsx
596
- import {
597
- createRecipeContext
598
- } from "@chakra-ui/react/styled-system";
599
-
600
- // src/components/kbd/index.ts
601
- import { Kbd } from "@chakra-ui/react/kbd";
602
-
603
- // src/components/command/command.tsx
604
- import { Fragment as Fragment6, jsx as jsx17 } from "react/jsx-runtime";
605
- var { withContext: withContext2 } = createRecipeContext({
606
- key: "suiCommand"
607
- });
608
- var Command = (props) => {
609
- const { children, modifiers, ...rest } = props;
610
- if (typeof children !== "string") {
611
- return /* @__PURE__ */ jsx17(Fragment6, { children });
612
- }
613
- const keys = children.split(/\s|\+/);
614
- return /* @__PURE__ */ jsx17(StyledCommand, { ...rest, children: keys.map((key) => /* @__PURE__ */ jsx17(Key, { modifiers, size: props.size, children: key }, key)) });
615
- };
616
- var StyledCommand = withContext2("span");
617
- var Key = (props) => {
618
- const { modifiers = ["then", "or", "+"], children, ...rest } = props;
619
- if (typeof children !== "string") {
620
- return /* @__PURE__ */ jsx17(Fragment6, { children });
621
- }
622
- if (modifiers.includes(children)) {
623
- return /* @__PURE__ */ jsx17("span", { children });
624
- }
625
- return /* @__PURE__ */ jsx17(Kbd, { ...rest, children });
626
- };
627
-
628
- // src/components/data-list/index.ts
629
- import { DataList, useDataListStyles } from "@chakra-ui/react/data-list";
630
-
631
- // src/components/dialog/dialog.tsx
632
- var dialog_exports = {};
633
- __export(dialog_exports, {
634
- ActionTrigger: () => ActionTrigger,
635
- Backdrop: () => Backdrop,
636
- Body: () => Body,
637
- CloseButton: () => CloseButton4,
638
- CloseTrigger: () => CloseTrigger,
639
- Content: () => Content2,
640
- Context: () => Context,
641
- Description: () => Description,
642
- DialogContext: () => DialogContext,
643
- Footer: () => Footer,
644
- Header: () => Header,
645
- Root: () => Root4,
646
- Title: () => Title,
647
- Trigger: () => Trigger
648
- });
649
- import { forwardRef as forwardRef14 } from "react";
650
- import { Dialog as ChakraDialog } from "@chakra-ui/react/dialog";
651
- import { Portal as Portal2 } from "@chakra-ui/react/portal";
652
- import { DialogContext } from "@ark-ui/react/dialog";
653
- import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
654
- var Content2 = forwardRef14(
655
- function DialogContent(props, ref) {
656
- const {
657
- children,
658
- portalled = true,
659
- portalRef,
660
- backdrop = true,
661
- ...rest
662
- } = props;
663
- return /* @__PURE__ */ jsxs11(Portal2, { disabled: !portalled, container: portalRef, children: [
664
- backdrop && /* @__PURE__ */ jsx18(ChakraDialog.Backdrop, {}),
665
- /* @__PURE__ */ jsx18(ChakraDialog.Positioner, { children: /* @__PURE__ */ jsx18(ChakraDialog.Content, { ref, ...rest, asChild: false, children }) })
666
- ] });
667
- }
668
- );
669
- var CloseButton4 = forwardRef14(function DialogCloseTrigger(props, ref) {
670
- return /* @__PURE__ */ jsx18(ChakraDialog.CloseTrigger, { ...props, asChild: true, children: /* @__PURE__ */ jsx18(CloseButton, { size: "sm", ref, children: props.children }) });
671
- });
672
- var CloseTrigger = ChakraDialog.CloseTrigger;
673
- var Root4 = ChakraDialog.Root;
674
- var Context = ChakraDialog.Context;
675
- var Footer = ChakraDialog.Footer;
676
- var Header = ChakraDialog.Header;
677
- var Body = ChakraDialog.Body;
678
- var Backdrop = ChakraDialog.Backdrop;
679
- var Title = ChakraDialog.Title;
680
- var Description = ChakraDialog.Description;
681
- var Trigger = ChakraDialog.Trigger;
682
- var ActionTrigger = ChakraDialog.ActionTrigger;
683
-
684
- // src/components/drawer/drawer.tsx
685
- var drawer_exports = {};
686
- __export(drawer_exports, {
687
- ActionTrigger: () => ActionTrigger2,
688
- Backdrop: () => Backdrop2,
689
- Body: () => Body2,
690
- CloseButton: () => CloseButton5,
691
- CloseTrigger: () => CloseTrigger2,
692
- Content: () => Content3,
693
- Context: () => Context2,
694
- Description: () => Description2,
695
- Footer: () => Footer2,
696
- Header: () => Header2,
697
- Root: () => Root5,
698
- Title: () => Title2,
699
- Trigger: () => Trigger2
700
- });
701
- import { forwardRef as forwardRef15 } from "react";
702
- import { DialogContext as DialogContext2 } from "@ark-ui/react/dialog";
703
- import { Drawer as ChakraDrawer, Portal as Portal3 } from "@chakra-ui/react";
704
- import { jsx as jsx19 } from "react/jsx-runtime";
705
- var Content3 = forwardRef15(
706
- function DrawerContent(props, ref) {
707
- const { children, portalled = true, portalRef, offset, ...rest } = props;
708
- return /* @__PURE__ */ jsx19(Portal3, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx19(ChakraDrawer.Positioner, { padding: offset, children: /* @__PURE__ */ jsx19(ChakraDrawer.Content, { ref, ...rest, asChild: false, children }) }) });
709
- }
710
- );
711
- var CloseButton5 = forwardRef15(function DrawerCloseTrigger(props, ref) {
712
- const { children, ...rest } = props;
713
- return /* @__PURE__ */ jsx19(ChakraDrawer.CloseTrigger, { ...rest, asChild: true, children: /* @__PURE__ */ jsx19(CloseButton, { size: "sm", ref, children }) });
714
- });
715
- var CloseTrigger2 = ChakraDrawer.CloseTrigger;
716
- var Trigger2 = ChakraDrawer.Trigger;
717
- var Root5 = ChakraDrawer.Root;
718
- var Footer2 = ChakraDrawer.Footer;
719
- var Header2 = ChakraDrawer.Header;
720
- var Body2 = ChakraDrawer.Body;
721
- var Backdrop2 = ChakraDrawer.Backdrop;
722
- var Description2 = ChakraDrawer.Description;
723
- var Title2 = ChakraDrawer.Title;
724
- var ActionTrigger2 = ChakraDrawer.ActionTrigger;
725
- var Context2 = DialogContext2;
726
-
727
- // src/components/editable/index.ts
728
- import { Editable } from "@chakra-ui/react/editable";
729
-
730
- // src/components/empty-state/empty-state.tsx
731
- import { forwardRef as forwardRef16 } from "react";
732
- import {
733
- Box,
734
- EmptyState as ChakraEmptyState,
735
- useEmptyStateStyles
736
- } from "@chakra-ui/react";
737
- import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
738
- var EmptyStateActions = (props) => {
739
- const { actions } = useEmptyStateStyles();
740
- return /* @__PURE__ */ jsx20(Box, { ...props, css: [actions, props.css] });
741
- };
742
- var EmptyState = forwardRef16(
743
- function EmptyState2(props, ref) {
744
- const { title, description, icon, children, ...rest } = props;
745
- return /* @__PURE__ */ jsx20(ChakraEmptyState.Root, { ref, ...rest, children: /* @__PURE__ */ jsxs12(ChakraEmptyState.Content, { children: [
746
- icon && /* @__PURE__ */ jsx20(ChakraEmptyState.Indicator, { children: icon }),
747
- /* @__PURE__ */ jsx20(ChakraEmptyState.Title, { children: title }),
748
- description ? /* @__PURE__ */ jsx20(ChakraEmptyState.Description, { children: description }) : null,
749
- /* @__PURE__ */ jsx20(EmptyStateActions, { children })
750
- ] }) });
751
- }
752
- );
753
-
754
- // src/components/file-upload/file-upload.tsx
755
- var file_upload_exports = {};
756
- __export(file_upload_exports, {
757
- ClearTrigger: () => ClearTrigger,
758
- Dropzone: () => Dropzone,
759
- Input: () => Input2,
760
- Label: () => Label,
761
- List: () => List,
762
- Root: () => Root6,
763
- Trigger: () => Trigger3
764
- });
765
- import * as React6 from "react";
766
- import { Span } from "@chakra-ui/react";
767
- import {
768
- FileUpload as ChakraFileUpload,
769
- useFileUploadContext
770
- } from "@chakra-ui/react/file-upload";
771
- import { useRecipe } from "@chakra-ui/react/styled-system";
772
- import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
773
- var Root6 = React6.forwardRef(
774
- function FileUploadRoot(props, ref) {
775
- const { children, inputProps, ...rest } = props;
776
- return /* @__PURE__ */ jsxs13(ChakraFileUpload.Root, { ...rest, children: [
777
- /* @__PURE__ */ jsx21(ChakraFileUpload.HiddenInput, { ref, ...inputProps }),
778
- children
779
- ] });
780
- }
781
- );
782
- var Dropzone = React6.forwardRef(
783
- function FileUploadDropzone(props, ref) {
784
- const { children, ...rest } = props;
785
- return /* @__PURE__ */ jsx21(ChakraFileUpload.Dropzone, { ref, ...rest, children: /* @__PURE__ */ jsx21(ChakraFileUpload.DropzoneContent, { children }) });
786
- }
787
- );
788
- var Item2 = React6.forwardRef(
789
- function FileUploadItem(props, ref) {
790
- const { file, showSize, icon, clearable } = props;
791
- return /* @__PURE__ */ jsxs13(ChakraFileUpload.Item, { file, ref, children: [
792
- /* @__PURE__ */ jsx21(ChakraFileUpload.ItemPreview, { children: icon }),
793
- showSize ? /* @__PURE__ */ jsxs13(ChakraFileUpload.ItemContent, { children: [
794
- /* @__PURE__ */ jsx21(ChakraFileUpload.ItemName, {}),
795
- /* @__PURE__ */ jsx21(ChakraFileUpload.ItemSizeText, {})
796
- ] }) : /* @__PURE__ */ jsx21(ChakraFileUpload.ItemName, { flex: "1" }),
797
- clearable && /* @__PURE__ */ jsx21(ChakraFileUpload.ItemDeleteTrigger, { asChild: true, children: /* @__PURE__ */ jsx21(CloseButton, { size: "xs" }) })
798
- ] });
799
- }
800
- );
801
- var List = React6.forwardRef(
802
- function FileUploadList(props, ref) {
803
- const { showSize, clearable, files, ...rest } = props;
804
- const fileUpload = useFileUploadContext();
805
- const acceptedFiles = files != null ? files : fileUpload.acceptedFiles;
806
- if (acceptedFiles.length === 0) return null;
807
- return /* @__PURE__ */ jsx21(ChakraFileUpload.ItemGroup, { ref, ...rest, children: acceptedFiles.map((file) => /* @__PURE__ */ jsx21(
808
- Item2,
809
- {
810
- file,
811
- showSize,
812
- clearable
813
- },
814
- file.name
815
- )) });
816
- }
817
- );
818
- var Input2 = React6.forwardRef(
819
- function FileInput(props, ref) {
820
- const inputRecipe = useRecipe({ key: "input" });
821
- const [recipeProps, restProps] = inputRecipe.splitVariantProps(props);
822
- const { placeholder = "Select file(s)", ...rest } = restProps;
823
- return /* @__PURE__ */ jsx21(ChakraFileUpload.Trigger, { asChild: true, children: /* @__PURE__ */ jsx21(
824
- Button,
825
- {
826
- unstyled: true,
827
- py: "0",
828
- ref,
829
- ...rest,
830
- css: [inputRecipe(recipeProps), props.css],
831
- children: /* @__PURE__ */ jsx21(ChakraFileUpload.Context, { children: ({ acceptedFiles }) => {
832
- if (acceptedFiles.length === 1) {
833
- return /* @__PURE__ */ jsx21("span", { children: acceptedFiles[0].name });
834
- }
835
- if (acceptedFiles.length > 1) {
836
- return /* @__PURE__ */ jsxs13("span", { children: [
837
- acceptedFiles.length,
838
- " files"
839
- ] });
840
- }
841
- return /* @__PURE__ */ jsx21(Span, { color: "fg.subtle", children: placeholder });
842
- } })
843
- }
844
- ) });
845
- }
846
- );
847
- var Label = ChakraFileUpload.Label;
848
- var ClearTrigger = ChakraFileUpload.ClearTrigger;
849
- var Trigger3 = ChakraFileUpload.Trigger;
850
-
851
- // src/components/file-upload/index.ts
852
- import { useFileUploadContext as useFileUploadContext2 } from "@chakra-ui/react/file-upload";
853
-
854
- // src/components/field/index.ts
855
- import { Field, useFieldContext, useFieldStyles } from "@chakra-ui/react/field";
856
-
857
- // src/components/fieldset/index.ts
858
- import { Fieldset, useFieldsetContext } from "@chakra-ui/react/fieldset";
859
-
860
- // src/components/grid-list/grid-list.tsx
861
- var grid_list_exports = {};
862
- __export(grid_list_exports, {
863
- Cell: () => GridListCell,
864
- Header: () => GridListHeader,
865
- Item: () => GridListItem,
866
- Root: () => GridListRoot
867
- });
868
- import { GridList } from "@saas-ui/core/grid-list";
869
-
870
- // src/components/grid-list/grid-list.context.ts
871
- import { createSlotRecipeContext as createSlotRecipeContext2 } from "@chakra-ui/react/styled-system";
872
- var {
873
- withProvider: withProvider2,
874
- withContext: withContext3,
875
- useStyles: useGridListStyles
876
- } = createSlotRecipeContext2({
877
- key: "suiGridList"
878
- });
879
-
880
- // src/components/grid-list/grid-list.tsx
881
- var GridListRoot = withProvider2(
882
- GridList.Root,
883
- "root"
884
- );
885
- var GridListItem = withContext3(
886
- GridList.Item,
887
- "item"
888
- );
889
- var GridListHeader = withContext3(
890
- GridList.Header,
891
- "header"
892
- );
893
- var GridListCell = withContext3(
894
- GridList.Cell,
895
- "cell"
896
- );
897
-
898
- // src/components/heading/index.ts
899
- import { Heading } from "@chakra-ui/react/typography";
900
-
901
- // src/components/hover-card/hover-card.tsx
902
- var hover_card_exports = {};
903
- __export(hover_card_exports, {
904
- Arrow: () => Arrow,
905
- Content: () => Content4,
906
- Root: () => Root7,
907
- Trigger: () => Trigger4
908
- });
909
- import * as React7 from "react";
910
- import { HoverCard } from "@chakra-ui/react/hover-card";
911
- import { Portal as Portal4 } from "@chakra-ui/react/portal";
912
- import { jsx as jsx22 } from "react/jsx-runtime";
913
- var Content4 = React7.forwardRef(
914
- function HoverCardContent(props, ref) {
915
- const { portalled = true, portalRef, ...rest } = props;
916
- return /* @__PURE__ */ jsx22(Portal4, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx22(HoverCard.Positioner, { children: /* @__PURE__ */ jsx22(HoverCard.Content, { ref, ...rest }) }) });
917
- }
918
- );
919
- var Arrow = React7.forwardRef(
920
- function HoverCardArrow(props, ref) {
921
- return /* @__PURE__ */ jsx22(HoverCard.Arrow, { ref, ...props, children: /* @__PURE__ */ jsx22(HoverCard.ArrowTip, {}) });
922
- }
923
- );
924
- var Root7 = HoverCard.Root;
925
- var Trigger4 = HoverCard.Trigger;
926
-
927
- // src/components/icon/index.ts
928
- import { Icon } from "@chakra-ui/react/icon";
929
-
930
- // src/components/icon-badge/icon-badge.tsx
931
- import * as React8 from "react";
932
- import { cloneElement, isValidElement as isValidElement2 } from "react";
933
- import {
934
- chakra as chakra2,
935
- useRecipe as useRecipe2
936
- } from "@chakra-ui/react/styled-system";
937
- import { cx } from "@saas-ui/core/utils";
938
- import { jsx as jsx23 } from "react/jsx-runtime";
939
- var IconBadge = React8.forwardRef(
940
- (props, ref) => {
941
- const { icon, children, ...rest } = props;
942
- const recipe = useRecipe2({ key: "suiIconBadge", recipe: props.recipe });
943
- const [variantProps, localProps] = recipe.splitVariantProps(rest);
944
- const styles = recipe(variantProps);
945
- const element = icon || children;
946
- const _children = isValidElement2(element) ? cloneElement(element, {
947
- "aria-hidden": true,
948
- focusable: false
949
- }) : null;
950
- return /* @__PURE__ */ jsx23(
951
- chakra2.div,
952
- {
953
- ref,
954
- ...localProps,
955
- css: [styles, props.css],
956
- className: cx(recipe.className, props.className),
957
- children: _children
958
- }
959
- );
960
- }
961
- );
962
-
963
- // src/components/image/index.ts
964
- import { Image } from "@chakra-ui/react/image";
965
-
966
- // src/components/info-tip/info-tip.tsx
967
- import * as React11 from "react";
968
-
969
- // src/components/toggle-tip/toggle-tip.tsx
970
- import * as React10 from "react";
971
-
972
- // src/components/popover/popover.tsx
973
- var popover_exports = {};
974
- __export(popover_exports, {
975
- Arrow: () => Arrow2,
976
- Body: () => Body3,
977
- CloseButton: () => CloseButton6,
978
- CloseTrigger: () => CloseTrigger3,
979
- Content: () => Content5,
980
- Description: () => Description3,
981
- Footer: () => Footer3,
982
- Header: () => Header3,
983
- Root: () => Root8,
984
- Title: () => Title3,
985
- Trigger: () => Trigger5
986
- });
987
- import * as React9 from "react";
988
- import { Popover as ChakraPopover } from "@chakra-ui/react/popover";
989
- import { Portal as Portal5 } from "@chakra-ui/react/portal";
990
- import { jsx as jsx24 } from "react/jsx-runtime";
991
- var Content5 = React9.forwardRef(
992
- function PopoverContent(props, ref) {
993
- const { portalled = true, portalRef, ...rest } = props;
994
- return /* @__PURE__ */ jsx24(Portal5, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx24(ChakraPopover.Positioner, { children: /* @__PURE__ */ jsx24(ChakraPopover.Content, { ref, ...rest }) }) });
995
- }
996
- );
997
- var Arrow2 = React9.forwardRef(
998
- function PopoverArrow(props, ref) {
999
- return /* @__PURE__ */ jsx24(ChakraPopover.Arrow, { ...props, ref, children: /* @__PURE__ */ jsx24(ChakraPopover.ArrowTip, {}) });
1000
- }
1001
- );
1002
- var CloseButton6 = React9.forwardRef(function PopoverCloseTrigger(props, ref) {
1003
- return /* @__PURE__ */ jsx24(
1004
- ChakraPopover.CloseTrigger,
1005
- {
1006
- position: "absolute",
1007
- top: "1",
1008
- insetEnd: "1",
1009
- ...props,
1010
- asChild: true,
1011
- ref,
1012
- children: /* @__PURE__ */ jsx24(CloseButton, { size: "sm" })
1013
- }
1014
- );
1015
- });
1016
- var CloseTrigger3 = ChakraPopover.CloseTrigger;
1017
- var Title3 = ChakraPopover.Title;
1018
- var Description3 = ChakraPopover.Description;
1019
- var Footer3 = ChakraPopover.Footer;
1020
- var Header3 = ChakraPopover.Header;
1021
- var Root8 = ChakraPopover.Root;
1022
- var Body3 = ChakraPopover.Body;
1023
- var Trigger5 = ChakraPopover.Trigger;
1024
-
1025
- // src/components/toggle-tip/toggle-tip.tsx
1026
- import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
1027
- var ToggleTip = React10.forwardRef(
1028
- function ToggleTip2(props, ref) {
1029
- const {
1030
- showArrow,
1031
- children,
1032
- portalled = true,
1033
- content,
1034
- portalRef,
1035
- ...rest
1036
- } = props;
1037
- return /* @__PURE__ */ jsxs14(popover_exports.Root, { ...rest, positioning: { ...rest.positioning, gutter: 4 }, children: [
1038
- /* @__PURE__ */ jsx25(popover_exports.Trigger, { asChild: true, children }),
1039
- /* @__PURE__ */ jsxs14(
1040
- popover_exports.Content,
1041
- {
1042
- width: "auto",
1043
- px: "2",
1044
- py: "1",
1045
- textStyle: "xs",
1046
- rounded: "sm",
1047
- portalled,
1048
- ref,
1049
- children: [
1050
- showArrow && /* @__PURE__ */ jsx25(popover_exports.Arrow, {}),
1051
- content
1052
- ]
1053
- }
1054
- )
1055
- ] });
1056
- }
1057
- );
1058
-
1059
- // src/components/info-tip/info-tip.tsx
1060
- import { jsx as jsx26 } from "react/jsx-runtime";
1061
- var InfoTip = React11.forwardRef(
1062
- function InfoTip2(props, ref) {
1063
- const { children, icon, "aria-label": ariaLabel = "Info", ...rest } = props;
1064
- return /* @__PURE__ */ jsx26(ToggleTip, { content: children, ...rest, ref, children: /* @__PURE__ */ jsx26(IconButton, { variant: "ghost", "aria-label": ariaLabel, size: "2xs", children: icon != null ? icon : /* @__PURE__ */ jsx26(InfoIcon, {}) }) });
1065
- }
1066
- );
1067
-
1068
- // src/components/loader/index.ts
1069
- import { Loader } from "@chakra-ui/react/loader";
1070
-
1071
- // src/components/list/index.ts
1072
- import { List as List2 } from "@chakra-ui/react/list";
1073
-
1074
- // src/components/loading-overlay/loading-overlay.tsx
1075
- var loading_overlay_exports = {};
1076
- __export(loading_overlay_exports, {
1077
- Root: () => LoadingOverlayRoot,
1078
- Spinner: () => LoadingOverlaySpinner,
1079
- Text: () => LoadingOverlayText
1080
- });
1081
- import { forwardRef as forwardRef24 } from "react";
1082
- import {
1083
- Presence,
1084
- splitPresenceProps
1085
- } from "@ark-ui/react/presence";
1086
- import { chakra as chakra3 } from "@chakra-ui/react";
1087
-
1088
- // src/components/spinner/spinner.tsx
1089
- import { forwardRef as forwardRef23 } from "react";
1090
- import { Spinner as ChakraSpinner } from "@chakra-ui/react/spinner";
1091
- import { Fragment as Fragment7, jsx as jsx27 } from "react/jsx-runtime";
1092
- var Spinner = forwardRef23(
1093
- function Spinner2(props, ref) {
1094
- const { loading, children, ...rest } = props;
1095
- if (loading === false) {
1096
- return /* @__PURE__ */ jsx27(Fragment7, { children });
1097
- }
1098
- return /* @__PURE__ */ jsx27(ChakraSpinner, { ref, ...rest });
1099
- }
1100
- );
1101
-
1102
- // src/components/loading-overlay/loading-overlay.context.ts
1103
- import { createSlotRecipeContext as createSlotRecipeContext3 } from "@chakra-ui/react";
1104
- var {
1105
- useStyles: useLoadingOverlayStyles,
1106
- withContext: withContext4,
1107
- withProvider: withProvider3
1108
- } = createSlotRecipeContext3({
1109
- key: "suiLoadingOverlay"
1110
- });
1111
-
1112
- // src/components/loading-overlay/loading-overlay.tsx
1113
- import { jsx as jsx28 } from "react/jsx-runtime";
1114
- var LoadingOverlay = forwardRef24(
1115
- (props, ref) => {
1116
- const { children, loading = true, ...rest } = props;
1117
- const [presenceProps, rootProps] = splitPresenceProps(rest);
1118
- return /* @__PURE__ */ jsx28(Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ jsx28(chakra3.div, { ref, ...rootProps, children }) });
1119
- }
1120
- );
1121
- var LoadingOverlayRoot = withProvider3(
1122
- LoadingOverlay,
1123
- "root"
1124
- );
1125
- LoadingOverlayRoot.displayName = "LoadingOverlay";
1126
- var LoadingOverlaySpinner = Spinner;
1127
- var LoadingOverlayText = withContext4(
1128
- "p",
1129
- "text"
1130
- );
1131
-
1132
- // src/components/mark/index.ts
1133
- import { Mark } from "@chakra-ui/react/typography";
1134
-
1135
- // src/components/navbar/navbar.tsx
1136
- var navbar_exports = {};
1137
- __export(navbar_exports, {
1138
- Brand: () => NavbarBrand,
1139
- Content: () => NavbarContent,
1140
- Item: () => NavbarItem,
1141
- Link: () => NavbarLink,
1142
- Root: () => NavbarRoot
1143
- });
1144
- import { forwardRef as forwardRef25 } from "react";
1145
- import { Navbar } from "@saas-ui/core/navbar";
1146
-
1147
- // src/components/navbar/navbar.context.ts
1148
- import { createSlotRecipeContext as createSlotRecipeContext4 } from "@chakra-ui/react";
1149
- var {
1150
- withProvider: withProvider4,
1151
- withContext: withContext5,
1152
- useStyles: useNavbarStyles
1153
- } = createSlotRecipeContext4({
1154
- key: "suiNavbar"
1155
- });
1156
-
1157
- // src/components/navbar/navbar.tsx
1158
- import { jsx as jsx29 } from "react/jsx-runtime";
1159
- var NavbarRoot = withProvider4(
1160
- Navbar.Root,
1161
- "root"
1162
- );
1163
- var NavbarBrand = withContext5(
1164
- Navbar.Brand,
1165
- "brand"
1166
- );
1167
- var NavbarContent = withContext5(
1168
- Navbar.Content,
1169
- "content"
1170
- );
1171
- var NavbarItem = withContext5(
1172
- Navbar.Item,
1173
- "item"
1174
- );
1175
- var NavbarLink = withContext5(
1176
- forwardRef25((props, ref) => {
1177
- const Link3 = useLink();
1178
- const { active, ...rest } = props;
1179
- return /* @__PURE__ */ jsx29(Navbar.Link, { asChild: true, ...rest, ref, children: /* @__PURE__ */ jsx29(Link3, { "data-active": active ? "" : void 0, ...props }) });
1180
- }),
1181
- "link",
1182
- {
1183
- forwardAsChild: true
1184
- }
1185
- );
1186
-
1187
- // src/components/native-select/native-select.tsx
1188
- import * as React13 from "react";
1189
- import { NativeSelect as Select } from "@chakra-ui/react/native-select";
1190
- import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
1191
- var NativeSelect = React13.forwardRef(
1192
- function NativeSelect2(props, ref) {
1193
- const { icon = /* @__PURE__ */ jsx30(ChevronDownIcon, {}), placeholder, children, ...rest } = props;
1194
- return /* @__PURE__ */ jsx30(Select.Root, { ref, ...rest, children: /* @__PURE__ */ jsxs15(Select.Field, { placeholder, children: [
1195
- children,
1196
- /* @__PURE__ */ jsx30(Select.Indicator, { children: icon })
1197
- ] }) });
1198
- }
1199
- );
1200
-
1201
- // src/components/number-input/number-input.tsx
1202
- import { forwardRef as forwardRef27 } from "react";
1203
- import { NumberInput as ChakraNumberInput } from "@chakra-ui/react/number-input";
1204
- import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
1205
- var NumberInput = forwardRef27(
1206
- function NumberInput2(props, ref) {
1207
- const {
1208
- hideControls,
1209
- startElement,
1210
- endElement,
1211
- inputProps,
1212
- rootRef,
1213
- ...rest
1214
- } = props;
1215
- return /* @__PURE__ */ jsxs16(ChakraNumberInput.Root, { ref: rootRef, ...rest, children: [
1216
- /* @__PURE__ */ jsx31(
1217
- InputGroup,
1218
- {
1219
- startElement,
1220
- endElement,
1221
- width: "full",
1222
- children: /* @__PURE__ */ jsx31(ChakraNumberInput.Input, { ref, ...inputProps })
1223
- }
1224
- ),
1225
- !hideControls && !endElement ? /* @__PURE__ */ jsxs16(ChakraNumberInput.Control, { children: [
1226
- /* @__PURE__ */ jsx31(ChakraNumberInput.IncrementTrigger, {}),
1227
- /* @__PURE__ */ jsx31(ChakraNumberInput.DecrementTrigger, {})
1228
- ] }) : null
1229
- ] });
1230
- }
1231
- );
1232
-
1233
- // src/components/menu/menu.tsx
1234
- var menu_exports = {};
1235
- __export(menu_exports, {
1236
- Arrow: () => MenuArrow,
1237
- Button: () => MenuButton,
1238
- CheckboxItem: () => MenuCheckboxItem,
1239
- Content: () => MenuContent,
1240
- Context: () => MenuContext,
1241
- ContextTrigger: () => MenuContextTrigger,
1242
- Item: () => MenuItem,
1243
- ItemCommand: () => MenuItemCommand,
1244
- ItemGroup: () => MenuItemGroup,
1245
- ItemText: () => MenuItemText,
1246
- RadioItem: () => MenuRadioItem,
1247
- RadioItemGroup: () => MenuRadioItemGroup,
1248
- Root: () => MenuRoot,
1249
- Separator: () => MenuSeparator,
1250
- Trigger: () => MenuTrigger,
1251
- TriggerItem: () => MenuTriggerItem
1252
- });
1253
- import { forwardRef as forwardRef28 } from "react";
1254
- import { AbsoluteCenter } from "@chakra-ui/react/center";
1255
- import { Menu as ChakraMenu } from "@chakra-ui/react/menu";
1256
- import { Portal as Portal6 } from "@chakra-ui/react/portal";
1257
- import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
1258
- var MenuContent = forwardRef28(
1259
- function MenuContent2(props, ref) {
1260
- const { portalled = true, portalRef, ...rest } = props;
1261
- return /* @__PURE__ */ jsx32(Portal6, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx32(ChakraMenu.Positioner, { children: /* @__PURE__ */ jsx32(ChakraMenu.Content, { ref, ...rest }) }) });
1262
- }
1263
- );
1264
- var MenuArrow = forwardRef28(
1265
- function MenuArrow2(props, ref) {
1266
- return /* @__PURE__ */ jsx32(ChakraMenu.Arrow, { ref, ...props, children: /* @__PURE__ */ jsx32(ChakraMenu.ArrowTip, {}) });
1267
- }
1268
- );
1269
- var MenuCheckboxItem = forwardRef28(function MenuCheckboxItem2(props, ref) {
1270
- return /* @__PURE__ */ jsxs17(ChakraMenu.CheckboxItem, { ref, ...props, children: [
1271
- /* @__PURE__ */ jsx32(ChakraMenu.ItemIndicator, { hidden: false, children: /* @__PURE__ */ jsx32(CheckIcon, {}) }),
1272
- props.children
1273
- ] });
1274
- });
1275
- var MenuRadioItem = forwardRef28(
1276
- function MenuRadioItem2(props, ref) {
1277
- const { children, ...rest } = props;
1278
- return /* @__PURE__ */ jsxs17(ChakraMenu.RadioItem, { ps: "8", ref, ...rest, children: [
1279
- /* @__PURE__ */ jsx32(AbsoluteCenter, { axis: "horizontal", left: "4", asChild: true, children: /* @__PURE__ */ jsx32(ChakraMenu.ItemIndicator, { children: /* @__PURE__ */ jsx32(CheckIcon, {}) }) }),
1280
- /* @__PURE__ */ jsx32(ChakraMenu.ItemText, { children })
1281
- ] });
1282
- }
1283
- );
1284
- var MenuItemGroup = forwardRef28(
1285
- function MenuItemGroup2(props, ref) {
1286
- const { title, children, ...rest } = props;
1287
- return /* @__PURE__ */ jsxs17(ChakraMenu.ItemGroup, { ref, ...rest, children: [
1288
- title && /* @__PURE__ */ jsx32(ChakraMenu.ItemGroupLabel, { userSelect: "none", children: title }),
1289
- children
1290
- ] });
1291
- }
1292
- );
1293
- var MenuTriggerItem = forwardRef28(
1294
- function MenuTriggerItem2(props, ref) {
1295
- const { startIcon, children, ...rest } = props;
1296
- return /* @__PURE__ */ jsxs17(ChakraMenu.TriggerItem, { ref, ...rest, children: [
1297
- startIcon,
1298
- children,
1299
- /* @__PURE__ */ jsx32(ChevronRightIcon, {})
1300
- ] });
1301
- }
1302
- );
1303
- var MenuButton = forwardRef28(
1304
- function MenuButton2(props, ref) {
1305
- return /* @__PURE__ */ jsx32(MenuTrigger, { ref, asChild: true, children: /* @__PURE__ */ jsx32(Button, { ...props }) });
1306
- }
1307
- );
1308
- var MenuRadioItemGroup = ChakraMenu.RadioItemGroup;
1309
- var MenuContextTrigger = ChakraMenu.ContextTrigger;
1310
- var MenuRoot = ChakraMenu.Root;
1311
- var MenuSeparator = ChakraMenu.Separator;
1312
- var MenuContext = ChakraMenu.Context;
1313
- var MenuItem = ChakraMenu.Item;
1314
- var MenuItemText = ChakraMenu.ItemText;
1315
- var MenuItemCommand = ChakraMenu.ItemCommand;
1316
- var MenuTrigger = ChakraMenu.Trigger;
1317
-
1318
- // src/components/page/page.tsx
1319
- var page_exports = {};
1320
- __export(page_exports, {
1321
- Body: () => PageBody,
1322
- Description: () => PageDescription,
1323
- Header: () => PageHeader,
1324
- HeaderSection: () => PageHeaderSection,
1325
- Root: () => PageRoot,
1326
- Title: () => PageTitle
1327
- });
1328
- import React14, { forwardRef as forwardRef29 } from "react";
1329
- import {
1330
- chakra as chakra4
1331
- } from "@chakra-ui/react";
1332
-
1333
- // src/components/page/page.context.ts
1334
- import { createContext as createContext2, createSlotRecipeContext as createSlotRecipeContext5 } from "@chakra-ui/react";
1335
- var {
1336
- withProvider: withProvider5,
1337
- withContext: withContext6,
1338
- useStyles: usePageStyles,
1339
- useClassNames
1340
- } = createSlotRecipeContext5({
1341
- key: "suiPage"
1342
- });
1343
- var [PageProvider, usePageContext] = createContext2();
1344
-
1345
- // src/components/page/page.tsx
1346
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
1347
- var PageRoot = withProvider5(
1348
- forwardRef29(function PageRoot2(props, ref) {
1349
- const { loading, skeleton, children, ...containerProps } = props;
1350
- const context = {
1351
- loading,
1352
- skeleton
1353
- };
1354
- return /* @__PURE__ */ jsx33(PageProvider, { value: context, children: /* @__PURE__ */ jsx33(chakra4.main, { ref, ...containerProps, children }) });
1355
- }),
1356
- "root"
1357
- );
1358
- var PageHeader = withContext6(
1359
- forwardRef29(function PageHeader2(props, ref) {
1360
- const { nav, title, description, actions, footer, css, ...rest } = props;
1361
- const styles = usePageStyles();
1362
- const classNames = useClassNames();
1363
- let heading;
1364
- if (title || description) {
1365
- heading = /* @__PURE__ */ jsxs18(
1366
- chakra4.div,
1367
- {
1368
- gridArea: "heading",
1369
- className: classNames.heading,
1370
- css: styles.heading,
1371
- children: [
1372
- typeof title === "string" ? /* @__PURE__ */ jsx33(PageTitle, { children: title }) : title,
1373
- typeof description === "string" ? /* @__PURE__ */ jsx33(PageDescription, { children: description }) : description
1374
- ]
1375
- }
1376
- );
1377
- }
1378
- return /* @__PURE__ */ jsxs18(chakra4.header, { ref, css, ...rest, className: props.className, children: [
1379
- React14.isValidElement(nav) ? React14.cloneElement(nav, {
1380
- gridArea: "nav"
1381
- }) : null,
1382
- heading,
1383
- React14.isValidElement(actions) ? React14.cloneElement(actions, {
1384
- gridArea: "actions"
1385
- }) : null,
1386
- React14.isValidElement(footer) ? React14.cloneElement(footer, {
1387
- gridArea: "footer"
1388
- }) : null
1389
- ] });
1390
- }),
1391
- "header"
1392
- );
1393
- var PageHeaderSection = withContext6(
1394
- "div",
1395
- "section"
1396
- );
1397
- var PageTitle = withContext6(
1398
- "h2",
1399
- "title"
1400
- );
1401
- var PageDescription = withContext6(
1402
- "div",
1403
- "description"
1404
- );
1405
- var PageBody = withContext6(
1406
- forwardRef29((props, ref) => {
1407
- const { children, ...rest } = props;
1408
- const { loading, skeleton } = usePageContext();
1409
- let content = children;
1410
- if (loading) {
1411
- content = skeleton || /* @__PURE__ */ jsx33(loading_overlay_exports.Root, { children: /* @__PURE__ */ jsx33(loading_overlay_exports.Spinner, {}) });
1412
- }
1413
- return /* @__PURE__ */ jsx33(chakra4.div, { ref, ...rest, children: content });
1414
- }),
1415
- "body"
1416
- );
1417
- PageBody.displayName = "PageBody";
1418
-
1419
- // src/components/pagination/pagination.tsx
1420
- var pagination_exports = {};
1421
- __export(pagination_exports, {
1422
- Context: () => Context3,
1423
- Ellipsis: () => Ellipsis2,
1424
- Item: () => Item3,
1425
- Items: () => Items,
1426
- NextButton: () => NextButton,
1427
- NextTrigger: () => NextTrigger,
1428
- PageText: () => PageText,
1429
- PrevButton: () => PrevButton,
1430
- PrevTrigger: () => PrevTrigger,
1431
- Root: () => Root9
1432
- });
1433
- import { forwardRef as forwardRef30, useMemo as useMemo2 } from "react";
1434
- import {
1435
- Pagination as ChakraPagination,
1436
- usePaginationContext
1437
- } from "@chakra-ui/react/pagination";
1438
- import { Text } from "@chakra-ui/react/typography";
1439
- import { createContext as createContext3 } from "@saas-ui/core/utils";
1440
- import { jsx as jsx34 } from "react/jsx-runtime";
1441
- var [RootPropsProvider, useRootProps] = createContext3({
1442
- name: "RootPropsProvider"
1443
- });
1444
- var variantMap = {
1445
- outline: { default: "ghost", ellipsis: "plain", current: "outline" },
1446
- solid: { default: "outline", ellipsis: "outline", current: "solid" },
1447
- subtle: { default: "ghost", ellipsis: "plain", current: "subtle" }
1448
- };
1449
- var Root9 = forwardRef30(
1450
- function PaginationRoot(props, ref) {
1451
- const { size = "sm", variant = "outline", ...rest } = props;
1452
- return /* @__PURE__ */ jsx34(RootPropsProvider, { value: { size, variantMap: variantMap[variant] }, children: /* @__PURE__ */ jsx34(ChakraPagination.Root, { ref, type: "button", ...rest }) });
1453
- }
1454
- );
1455
- var Ellipsis2 = forwardRef30(function PaginationEllipsis(props, ref) {
1456
- var _a;
1457
- const { size, variantMap: variantMap2 } = useRootProps();
1458
- return /* @__PURE__ */ jsx34(ChakraPagination.Ellipsis, { ref, ...props, asChild: true, children: /* @__PURE__ */ jsx34(Button, { as: "span", variant: variantMap2.ellipsis, size, children: (_a = props.children) != null ? _a : /* @__PURE__ */ jsx34(EllipsisIcon, {}) }) });
1459
- });
1460
- var Item3 = forwardRef30(
1461
- function PaginationItem(props, ref) {
1462
- const { page } = usePaginationContext();
1463
- const { size, variantMap: variantMap2 } = useRootProps();
1464
- const current = page === props.value;
1465
- const variant = current ? variantMap2.current : variantMap2.default;
1466
- return /* @__PURE__ */ jsx34(ChakraPagination.Item, { ref, ...props, asChild: true, children: /* @__PURE__ */ jsx34(Button, { variant, size, children: props.value }) });
1467
- }
1468
- );
1469
- var PrevButton = forwardRef30(function PaginationPrevTrigger(props, ref) {
1470
- var _a;
1471
- const { size, variantMap: variantMap2 } = useRootProps();
1472
- return /* @__PURE__ */ jsx34(ChakraPagination.PrevTrigger, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx34(IconButton, { variant: variantMap2.default, size, children: (_a = props.children) != null ? _a : /* @__PURE__ */ jsx34(ChevronLeftIcon, {}) }) });
1473
- });
1474
- var NextButton = forwardRef30(function PaginationNextTrigger(props, ref) {
1475
- var _a;
1476
- const { size, variantMap: variantMap2 } = useRootProps();
1477
- return /* @__PURE__ */ jsx34(ChakraPagination.NextTrigger, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx34(IconButton, { variant: variantMap2.default, size, children: (_a = props.children) != null ? _a : /* @__PURE__ */ jsx34(ChevronRightIcon, {}) }) });
1478
- });
1479
- var Items = (props) => {
1480
- return /* @__PURE__ */ jsx34(ChakraPagination.Context, { children: ({ pages }) => pages.map((page, index) => {
1481
- return page.type === "ellipsis" ? /* @__PURE__ */ jsx34(Ellipsis2, { index, ...props }, index) : /* @__PURE__ */ jsx34(Item3, { type: "page", value: page.value, ...props }, index);
1482
- }) });
1483
- };
1484
- var PageText = forwardRef30(
1485
- function PaginationPageText(props, ref) {
1486
- const { format = "compact", ...rest } = props;
1487
- const { page, pages, pageRange, count } = usePaginationContext();
1488
- const content = useMemo2(() => {
1489
- if (format === "short") return `${page} / ${pages.length}`;
1490
- if (format === "compact") return `${page} of ${pages.length}`;
1491
- return `${pageRange.start + 1} - ${pageRange.end} of ${count}`;
1492
- }, [format, page, pages.length, pageRange, count]);
1493
- return /* @__PURE__ */ jsx34(Text, { fontWeight: "medium", ref, ...rest, children: content });
1494
- }
1495
- );
1496
- var PrevTrigger = ChakraPagination.PrevTrigger;
1497
- var NextTrigger = ChakraPagination.NextTrigger;
1498
- var Context3 = ChakraPagination.Context;
1499
-
1500
- // src/components/password-input/password-input.tsx
1501
- import { forwardRef as forwardRef31, useRef } from "react";
1502
- import { mergeRefs, useControllableState } from "@chakra-ui/react";
1503
-
1504
- // ../../node_modules/react-icons/lib/iconBase.mjs
1505
- import React16 from "react";
1506
-
1507
- // ../../node_modules/react-icons/lib/iconContext.mjs
1508
- import React15 from "react";
1509
- var DefaultContext = {
1510
- color: void 0,
1511
- size: void 0,
1512
- className: void 0,
1513
- style: void 0,
1514
- attr: void 0
1515
- };
1516
- var IconContext = React15.createContext && /* @__PURE__ */ React15.createContext(DefaultContext);
1517
-
1518
- // ../../node_modules/react-icons/lib/iconBase.mjs
1519
- var _excluded = ["attr", "size", "title"];
1520
- function _objectWithoutProperties(source, excluded) {
1521
- if (source == null) return {};
1522
- var target = _objectWithoutPropertiesLoose(source, excluded);
1523
- var key, i;
1524
- if (Object.getOwnPropertySymbols) {
1525
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1526
- for (i = 0; i < sourceSymbolKeys.length; i++) {
1527
- key = sourceSymbolKeys[i];
1528
- if (excluded.indexOf(key) >= 0) continue;
1529
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1530
- target[key] = source[key];
1531
- }
1532
- }
1533
- return target;
1534
- }
1535
- function _objectWithoutPropertiesLoose(source, excluded) {
1536
- if (source == null) return {};
1537
- var target = {};
1538
- for (var key in source) {
1539
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1540
- if (excluded.indexOf(key) >= 0) continue;
1541
- target[key] = source[key];
1542
- }
1543
- }
1544
- return target;
1545
- }
1546
- function _extends() {
1547
- _extends = Object.assign ? Object.assign.bind() : function(target) {
1548
- for (var i = 1; i < arguments.length; i++) {
1549
- var source = arguments[i];
1550
- for (var key in source) {
1551
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1552
- target[key] = source[key];
1553
- }
1554
- }
1555
- }
1556
- return target;
1557
- };
1558
- return _extends.apply(this, arguments);
1559
- }
1560
- function ownKeys(e, r) {
1561
- var t = Object.keys(e);
1562
- if (Object.getOwnPropertySymbols) {
1563
- var o = Object.getOwnPropertySymbols(e);
1564
- r && (o = o.filter(function(r2) {
1565
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
1566
- })), t.push.apply(t, o);
1567
- }
1568
- return t;
1569
- }
1570
- function _objectSpread(e) {
1571
- for (var r = 1; r < arguments.length; r++) {
1572
- var t = null != arguments[r] ? arguments[r] : {};
1573
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
1574
- _defineProperty(e, r2, t[r2]);
1575
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
1576
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
1577
- });
1578
- }
1579
- return e;
1580
- }
1581
- function _defineProperty(obj, key, value) {
1582
- key = _toPropertyKey(key);
1583
- if (key in obj) {
1584
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
1585
- } else {
1586
- obj[key] = value;
1587
- }
1588
- return obj;
1589
- }
1590
- function _toPropertyKey(t) {
1591
- var i = _toPrimitive(t, "string");
1592
- return "symbol" == typeof i ? i : i + "";
1593
- }
1594
- function _toPrimitive(t, r) {
1595
- if ("object" != typeof t || !t) return t;
1596
- var e = t[Symbol.toPrimitive];
1597
- if (void 0 !== e) {
1598
- var i = e.call(t, r || "default");
1599
- if ("object" != typeof i) return i;
1600
- throw new TypeError("@@toPrimitive must return a primitive value.");
1601
- }
1602
- return ("string" === r ? String : Number)(t);
1603
- }
1604
- function Tree2Element(tree) {
1605
- return tree && tree.map((node, i) => /* @__PURE__ */ React16.createElement(node.tag, _objectSpread({
1606
- key: i
1607
- }, node.attr), Tree2Element(node.child)));
1608
- }
1609
- function GenIcon(data) {
1610
- return (props) => /* @__PURE__ */ React16.createElement(IconBase, _extends({
1611
- attr: _objectSpread({}, data.attr)
1612
- }, props), Tree2Element(data.child));
1613
- }
1614
- function IconBase(props) {
1615
- var elem = (conf) => {
1616
- var {
1617
- attr,
1618
- size,
1619
- title
1620
- } = props, svgProps = _objectWithoutProperties(props, _excluded);
1621
- var computedSize = size || conf.size || "1em";
1622
- var className;
1623
- if (conf.className) className = conf.className;
1624
- if (props.className) className = (className ? className + " " : "") + props.className;
1625
- return /* @__PURE__ */ React16.createElement("svg", _extends({
1626
- stroke: "currentColor",
1627
- fill: "currentColor",
1628
- strokeWidth: "0"
1629
- }, conf.attr, attr, svgProps, {
1630
- className,
1631
- style: _objectSpread(_objectSpread({
1632
- color: props.color || conf.color
1633
- }, conf.style), props.style),
1634
- height: computedSize,
1635
- width: computedSize,
1636
- xmlns: "http://www.w3.org/2000/svg"
1637
- }), title && /* @__PURE__ */ React16.createElement("title", null, title), props.children);
1638
- };
1639
- return IconContext !== void 0 ? /* @__PURE__ */ React16.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
1640
- }
1641
-
1642
- // ../../node_modules/react-icons/lu/index.mjs
1643
- function LuEyeOff(props) {
1644
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }, "child": [] }, { "tag": "path", "attr": { "d": "M14.084 14.158a3 3 0 0 1-4.242-4.242" }, "child": [] }, { "tag": "path", "attr": { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }, "child": [] }, { "tag": "path", "attr": { "d": "m2 2 20 20" }, "child": [] }] })(props);
1645
- }
1646
- function LuEye(props) {
1647
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }, "child": [] }, { "tag": "circle", "attr": { "cx": "12", "cy": "12", "r": "3" }, "child": [] }] })(props);
1648
- }
1649
-
1650
- // src/components/password-input/password-input.tsx
1651
- import { jsx as jsx35 } from "react/jsx-runtime";
1652
- var PasswordInput = forwardRef31(
1653
- function PasswordInput2(props, ref) {
1654
- const {
1655
- rootProps,
1656
- defaultVisible,
1657
- visible: visibleProp,
1658
- onVisibleChange,
1659
- visibilityIcon = { on: /* @__PURE__ */ jsx35(LuEye, {}), off: /* @__PURE__ */ jsx35(LuEyeOff, {}) },
1660
- ...rest
1661
- } = props;
1662
- const [visible, setVisible] = useControllableState({
1663
- value: visibleProp,
1664
- defaultValue: defaultVisible || false,
1665
- onChange: onVisibleChange
1666
- });
1667
- const inputRef = useRef(null);
1668
- return /* @__PURE__ */ jsx35(
1669
- InputGroup,
1670
- {
1671
- width: "full",
1672
- endElement: /* @__PURE__ */ jsx35(
1673
- VisibilityTrigger,
1674
- {
1675
- disabled: rest.disabled,
1676
- onPointerDown: (e) => {
1677
- if (rest.disabled) return;
1678
- if (e.button !== 0) return;
1679
- e.preventDefault();
1680
- setVisible(!visible);
1681
- },
1682
- children: visible ? visibilityIcon.off : visibilityIcon.on
1683
- }
1684
- ),
1685
- ...rootProps,
1686
- children: /* @__PURE__ */ jsx35(
1687
- Input,
1688
- {
1689
- ...rest,
1690
- ref: mergeRefs(ref, inputRef),
1691
- type: visible ? "text" : "password"
1692
- }
1693
- )
1694
- }
1695
- );
1696
- }
1697
- );
1698
- var VisibilityTrigger = forwardRef31(
1699
- function VisibilityTrigger2(props, ref) {
1700
- return /* @__PURE__ */ jsx35(
1701
- IconButton,
1702
- {
1703
- tabIndex: -1,
1704
- ref,
1705
- me: "-2",
1706
- aspectRatio: "square",
1707
- size: "sm",
1708
- variant: "ghost",
1709
- colorPalette: "gray",
1710
- height: "calc(100% - {spacing.2})",
1711
- "aria-label": "Toggle password visibility",
1712
- ...props
1713
- }
1714
- );
1715
- }
1716
- );
1717
-
1718
- // src/components/persona/persona.tsx
1719
- import * as React18 from "react";
1720
-
1721
- // src/components/persona/persona-primitive.tsx
1722
- import { forwardRef as forwardRef32 } from "react";
1723
- import {
1724
- chakra as chakra5
1725
- } from "@chakra-ui/react";
1726
- import { dataAttr } from "@saas-ui/core/utils";
1727
-
1728
- // src/components/persona/persona.context.ts
1729
- import { createSlotRecipeContext as createSlotRecipeContext6 } from "@chakra-ui/react";
1730
- var {
1731
- useStyles: usePersonaStyles,
1732
- withProvider: withProvider6,
1733
- withContext: withContext7
1734
- } = createSlotRecipeContext6({
1735
- key: "suiPersona"
1736
- });
1737
-
1738
- // src/components/persona/persona-primitive.tsx
1739
- import { jsx as jsx36 } from "react/jsx-runtime";
1740
- var PersonaRoot = withProvider6(
1741
- forwardRef32((props, ref) => {
1742
- const { outOfOffice, presence, ...rest } = props;
1743
- return /* @__PURE__ */ jsx36(
1744
- chakra5.div,
1745
- {
1746
- ref,
1747
- ...rest,
1748
- "data-out-of-office": dataAttr(outOfOffice),
1749
- "data-presence": presence,
1750
- css: [
1751
- presence ? {
1752
- "--persona-presence": `colors.presence.${presence}`
1753
- } : void 0,
1754
- rest.css
1755
- ]
1756
- }
1757
- );
1758
- }),
1759
- "root"
1760
- );
1761
- var PersonaAvatar = forwardRef32(
1762
- (props, ref) => {
1763
- const {
1764
- name,
1765
- getInitials: getInitials2 = (name2) => name2 == null ? void 0 : name2[0],
1766
- icon,
1767
- loading,
1768
- onError,
1769
- src,
1770
- srcSet,
1771
- children,
1772
- ...rest
1773
- } = props;
1774
- return /* @__PURE__ */ jsx36(Avatar, { ref, ...rest, children });
1775
- }
1776
- );
1777
- var PersonaPresenceBadge = withContext7("span", "presence");
1778
- var PersonaDetails = withContext7(
1779
- "div",
1780
- "details"
1781
- );
1782
- var PersonaLabel = withContext7(
1783
- "span",
1784
- "label"
1785
- );
1786
- PersonaLabel.displayName = "PersonaLabel";
1787
- var PersonaSecondaryLabel = withContext7(
1788
- "span",
1789
- "secondaryLabel"
1790
- );
1791
- var PersonaTertiaryLabel = withContext7(
1792
- "span",
1793
- "tertiaryLabel"
1794
- );
1795
-
1796
- // src/components/persona/persona.tsx
1797
- import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
1798
- var Persona = React18.forwardRef(
1799
- (props, ref) => {
1800
- const {
1801
- name,
1802
- presence,
1803
- presenceIcon,
1804
- isOutOfOffice,
1805
- label,
1806
- secondaryLabel,
1807
- tertiaryLabel,
1808
- size,
1809
- hideDetails,
1810
- children,
1811
- /** Avatar props */
1812
- getInitials: getInitials2,
1813
- icon,
1814
- loading,
1815
- onError,
1816
- src,
1817
- srcSet,
1818
- fallback,
1819
- ...rest
1820
- } = props;
1821
- return /* @__PURE__ */ jsxs19(
1822
- PersonaRoot,
1823
- {
1824
- ref,
1825
- outOfOffice: isOutOfOffice,
1826
- presence,
1827
- size,
1828
- ...rest,
1829
- children: [
1830
- /* @__PURE__ */ jsx37(
1831
- PersonaAvatar,
1832
- {
1833
- name,
1834
- size,
1835
- getInitials: getInitials2,
1836
- icon,
1837
- loading,
1838
- onError,
1839
- src,
1840
- srcSet,
1841
- fallback,
1842
- children: presence ? /* @__PURE__ */ jsx37(PersonaPresenceBadge, { children: presenceIcon }) : null
1843
- }
1844
- ),
1845
- !hideDetails && /* @__PURE__ */ jsxs19(PersonaDetails, { children: [
1846
- /* @__PURE__ */ jsx37(PersonaLabel, { children: label || name }),
1847
- secondaryLabel && /* @__PURE__ */ jsx37(PersonaSecondaryLabel, { children: secondaryLabel }),
1848
- tertiaryLabel && /* @__PURE__ */ jsx37(PersonaTertiaryLabel, { children: tertiaryLabel }),
1849
- children
1850
- ] })
1851
- ]
1852
- }
1853
- );
1854
- }
1855
- );
1856
- Persona.displayName = "Persona";
1857
- var PersonaAvatar2 = React18.forwardRef(function PersonaAvatar3(props, ref) {
1858
- return /* @__PURE__ */ jsx37(Persona, { ref, ...props, hideDetails: true });
1859
- });
1860
-
1861
- // src/components/persona/presence.ts
1862
- var defaultPersonaPresenceOptions = {
1863
- online: {
1864
- label: "Online",
1865
- color: "presence.online"
1866
- },
1867
- offline: {
1868
- label: "Offline",
1869
- color: "presence.offline"
1870
- },
1871
- busy: {
1872
- label: "Busy",
1873
- color: "presence.busy"
1874
- },
1875
- dnd: {
1876
- label: "Do-not-disturb",
1877
- color: "presence.dnd"
1878
- },
1879
- away: {
1880
- label: "Away",
1881
- color: "presence.away"
1882
- }
1883
- };
1884
-
1885
- // src/components/pin-input/pin-input.tsx
1886
- import { forwardRef as forwardRef34 } from "react";
1887
- import { Group as Group2 } from "@chakra-ui/react/group";
1888
- import { PinInput as ChakraPinInput } from "@chakra-ui/react/pin-input";
1889
- import { jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
1890
- var PinInput = forwardRef34(
1891
- function PinInput2(props, ref) {
1892
- const {
1893
- pinLength = 4,
1894
- inputProps,
1895
- rootRef,
1896
- attached,
1897
- gap = attached ? 0 : 2,
1898
- ...rest
1899
- } = props;
1900
- return /* @__PURE__ */ jsxs20(ChakraPinInput.Root, { ref: rootRef, ...rest, children: [
1901
- /* @__PURE__ */ jsx38(ChakraPinInput.HiddenInput, { ref, ...inputProps }),
1902
- /* @__PURE__ */ jsx38(ChakraPinInput.Control, { children: /* @__PURE__ */ jsx38(Group2, { attached, gap, children: Array.from({ length: pinLength }).map((_, index) => /* @__PURE__ */ jsx38(ChakraPinInput.Input, { index }, index)) }) })
1903
- ] });
1904
- }
1905
- );
1906
-
1907
- // src/components/progress/index.ts
1908
- import { Progress } from "@chakra-ui/react/progress";
1909
-
1910
- // src/components/progress-circle/index.ts
1911
- import { ProgressCircle } from "@chakra-ui/react/progress-circle";
1912
-
1913
- // src/components/radio/radio.tsx
1914
- import { forwardRef as forwardRef35 } from "react";
1915
- import { RadioGroup as ChakraRadioGroup } from "@chakra-ui/react/radio-group";
1916
- import { jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
1917
- var Radio = forwardRef35(
1918
- function Radio2(props, ref) {
1919
- const { children, inputProps, rootRef, ...rest } = props;
1920
- return /* @__PURE__ */ jsxs21(ChakraRadioGroup.Item, { ref: rootRef, ...rest, children: [
1921
- /* @__PURE__ */ jsx39(ChakraRadioGroup.ItemHiddenInput, { ref, ...inputProps }),
1922
- /* @__PURE__ */ jsx39(ChakraRadioGroup.ItemIndicator, {}),
1923
- children && /* @__PURE__ */ jsx39(ChakraRadioGroup.ItemText, { children })
1924
- ] });
1925
- }
1926
- );
1927
- var RadioGroup = ChakraRadioGroup.Root;
1928
-
1929
- // src/components/radio-group/index.ts
1930
- import { RadioGroup as RadioGroup2 } from "@chakra-ui/react/radio-group";
1931
-
1932
- // src/components/radio-card/radio-card.tsx
1933
- var radio_card_exports = {};
1934
- __export(radio_card_exports, {
1935
- Item: () => RadioCardItem,
1936
- ItemIndicator: () => RadioCardItemIndicator,
1937
- Label: () => RadioCardLabel,
1938
- Root: () => RadioCardRoot
1939
- });
1940
- import { Fragment as Fragment8, forwardRef as forwardRef36 } from "react";
1941
- import { RadioCard } from "@chakra-ui/react/radio-card";
1942
- import { jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
1943
- var RadioCardItem = forwardRef36(
1944
- function RadioCardItem2(props, ref) {
1945
- const {
1946
- inputProps,
1947
- label,
1948
- description,
1949
- addon,
1950
- icon,
1951
- indicator = /* @__PURE__ */ jsx40(RadioCard.ItemIndicator, {}),
1952
- indicatorPlacement = "end",
1953
- ...rest
1954
- } = props;
1955
- const hasContent = label || description || icon;
1956
- const ContentWrapper = indicator ? RadioCard.ItemContent : Fragment8;
1957
- return /* @__PURE__ */ jsxs22(RadioCard.Item, { ...rest, children: [
1958
- /* @__PURE__ */ jsx40(RadioCard.ItemHiddenInput, { ref, ...inputProps }),
1959
- /* @__PURE__ */ jsxs22(RadioCard.ItemControl, { children: [
1960
- indicatorPlacement === "start" && indicator,
1961
- hasContent && /* @__PURE__ */ jsxs22(ContentWrapper, { children: [
1962
- icon,
1963
- label && /* @__PURE__ */ jsx40(RadioCard.ItemText, { children: label }),
1964
- description && /* @__PURE__ */ jsx40(RadioCard.ItemDescription, { children: description }),
1965
- indicatorPlacement === "inside" && indicator
1966
- ] }),
1967
- indicatorPlacement === "end" && indicator
1968
- ] }),
1969
- addon && /* @__PURE__ */ jsx40(RadioCard.ItemAddon, { children: addon })
1970
- ] });
1971
- }
1972
- );
1973
- var RadioCardRoot = RadioCard.Root;
1974
- var RadioCardLabel = RadioCard.Label;
1975
- var RadioCardItemIndicator = RadioCard.ItemIndicator;
1976
-
1977
- // src/components/rating-group/index.ts
1978
- import { RatingGroup } from "@chakra-ui/react/rating-group";
1979
-
1980
- // src/components/search-input/search-input.tsx
1981
- import React19, { forwardRef as forwardRef37 } from "react";
1982
- import {
1983
- Group as Group3,
1984
- IconButton as IconButton4,
1985
- Input as Input3,
1986
- InputElement as InputElement2,
1987
- mergeRefs as mergeRefs2,
1988
- useControllableState as useControllableState2
1989
- } from "@chakra-ui/react";
1990
- import { callAll } from "@saas-ui/core/utils";
1991
- import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
1992
- var SearchInput = forwardRef37(
1993
- (props, ref) => {
1994
- const {
1995
- placeholder = "Search",
1996
- value: valueProp,
1997
- defaultValue: defaultValueProp,
1998
- size,
1999
- variant,
2000
- width = "full",
2001
- icon = /* @__PURE__ */ jsx41(SearchIcon, {}),
2002
- resetIcon,
2003
- endElement: endElementProp,
2004
- onChange: onChangeProp,
2005
- onReset: onResetProp,
2006
- onKeyDown: onKeyDownProp,
2007
- disabled,
2008
- ...inputProps
2009
- } = props;
2010
- const inputRef = React19.useRef(null);
2011
- const [value, setValue] = useControllableState2({
2012
- value: valueProp,
2013
- defaultValue: defaultValueProp
2014
- });
2015
- const onChange = React19.useCallback(
2016
- (e) => {
2017
- setValue(e.target.value);
2018
- },
2019
- [setValue]
2020
- );
2021
- const onKeyDown = React19.useCallback(
2022
- (event) => {
2023
- if (event.key === "Escape") {
2024
- setValue("");
2025
- onReset();
2026
- }
2027
- },
2028
- [onResetProp, setValue]
2029
- );
2030
- const onReset = () => {
2031
- var _a;
2032
- setValue("");
2033
- onResetProp == null ? void 0 : onResetProp();
2034
- (_a = inputRef.current) == null ? void 0 : _a.focus();
2035
- };
2036
- const showReset = value && !props.disabled;
2037
- const endElement = showReset ? /* @__PURE__ */ jsx41(SearchInputResetButton, { size, children: resetIcon }) : endElementProp;
2038
- return /* @__PURE__ */ jsxs23(Group3, { width, children: [
2039
- /* @__PURE__ */ jsx41(
2040
- InputElement2,
2041
- {
2042
- placement: "start",
2043
- px: "0",
2044
- aspectRatio: "9/10",
2045
- fontSize: size,
2046
- children: icon
2047
- }
2048
- ),
2049
- /* @__PURE__ */ jsx41(
2050
- Input3,
2051
- {
2052
- type: "text",
2053
- placeholder,
2054
- variant,
2055
- size,
2056
- value,
2057
- disabled,
2058
- ref: mergeRefs2(ref, inputRef),
2059
- onChange: callAll(onChange, onChangeProp),
2060
- onKeyDown: callAll(onKeyDown, onKeyDownProp),
2061
- ps: "calc(var(--input-height) - var(--input-height) / 10)",
2062
- pe: "calc(var(--input-height) - var(--input-height) / 10)",
2063
- ...inputProps
2064
- }
2065
- ),
2066
- /* @__PURE__ */ jsx41(InputElement2, { placement: "end", children: endElement })
2067
- ] });
2068
- }
2069
- );
2070
- var SearchInputResetButton = forwardRef37(
2071
- (props, ref) => {
2072
- const { children = /* @__PURE__ */ jsx41(CloseIcon, {}), ...rest } = props;
2073
- return /* @__PURE__ */ jsx41(
2074
- IconButton4,
2075
- {
2076
- ref,
2077
- variant: "ghost",
2078
- "aria-label": "Reset search",
2079
- me: "-2",
2080
- aspectRatio: "square",
2081
- height: "calc(100% - {spacing.2})",
2082
- ...rest,
2083
- children
2084
- }
2085
- );
2086
- }
2087
- );
2088
- SearchInput.displayName = "SearchInput";
2089
-
2090
- // src/components/select/namespace.ts
2091
- var namespace_exports = {};
2092
- __export(namespace_exports, {
2093
- Content: () => SelectContent,
2094
- Item: () => SelectItem,
2095
- ItemGroup: () => SelectItemGroup,
2096
- ItemText: () => SelectItemText,
2097
- Label: () => SelectLabel,
2098
- Root: () => SelectRoot,
2099
- Trigger: () => SelectTrigger,
2100
- ValueText: () => SelectValueText
2101
- });
2102
-
2103
- // src/components/select/select.tsx
2104
- import { forwardRef as forwardRef38 } from "react";
2105
- import { Portal as Portal7 } from "@chakra-ui/react/portal";
2106
- import { Select as SelectPrimitive } from "@chakra-ui/react/select";
2107
- import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
2108
- var SelectTrigger = forwardRef38(
2109
- function SelectTrigger2(props, ref) {
2110
- const { children, clearable, ...rest } = props;
2111
- return /* @__PURE__ */ jsxs24(SelectPrimitive.Control, { ...rest, children: [
2112
- /* @__PURE__ */ jsx42(SelectPrimitive.Trigger, { ref, children }),
2113
- /* @__PURE__ */ jsxs24(SelectPrimitive.IndicatorGroup, { children: [
2114
- clearable && /* @__PURE__ */ jsx42(SelectClearTrigger, {}),
2115
- /* @__PURE__ */ jsx42(SelectPrimitive.Indicator, {})
2116
- ] })
2117
- ] });
2118
- }
2119
- );
2120
- var SelectClearTrigger = forwardRef38(function SelectClearTrigger2(props, ref) {
2121
- return /* @__PURE__ */ jsx42(SelectPrimitive.ClearTrigger, { asChild: true, ...props, ref, children: /* @__PURE__ */ jsx42(
2122
- CloseButton,
2123
- {
2124
- size: "xs",
2125
- variant: "plain",
2126
- focusVisibleRing: "inside",
2127
- focusRingWidth: "2px",
2128
- pointerEvents: "auto"
2129
- }
2130
- ) });
2131
- });
2132
- var SelectContent = forwardRef38(
2133
- function SelectContent2(props, ref) {
2134
- const { portalled = true, portalRef, ...rest } = props;
2135
- return /* @__PURE__ */ jsx42(Portal7, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx42(SelectPrimitive.Positioner, { children: /* @__PURE__ */ jsx42(SelectPrimitive.Content, { ...rest, ref }) }) });
2136
- }
2137
- );
2138
- var SelectItem = forwardRef38(
2139
- function SelectItem2(props, ref) {
2140
- const { item, children, ...rest } = props;
2141
- return /* @__PURE__ */ jsxs24(SelectPrimitive.Item, { item, ...rest, ref, children: [
2142
- children,
2143
- /* @__PURE__ */ jsx42(SelectPrimitive.ItemIndicator, {})
2144
- ] }, item.value);
2145
- }
2146
- );
2147
- var SelectValueText = forwardRef38(function SelectValueText2(props, ref) {
2148
- const { children, ...rest } = props;
2149
- return /* @__PURE__ */ jsx42(SelectPrimitive.ValueText, { ...rest, ref, children: /* @__PURE__ */ jsx42(SelectPrimitive.Context, { children: (select) => {
2150
- const items = select.selectedItems;
2151
- if (items.length === 0) return props.placeholder;
2152
- if (children) return children(items);
2153
- if (items.length === 1)
2154
- return select.collection.stringifyItem(items[0]);
2155
- return `${items.length} selected`;
2156
- } }) });
2157
- });
2158
- var SelectRoot = forwardRef38(function SelectRoot2(props, ref) {
2159
- return /* @__PURE__ */ jsx42(
2160
- SelectPrimitive.Root,
2161
- {
2162
- ...props,
2163
- ref,
2164
- positioning: { sameWidth: true, ...props.positioning }
2165
- }
2166
- );
2167
- });
2168
- var SelectItemGroup = forwardRef38(
2169
- function SelectItemGroup2(props, ref) {
2170
- const { children, label, ...rest } = props;
2171
- return /* @__PURE__ */ jsxs24(SelectPrimitive.ItemGroup, { ...rest, ref, children: [
2172
- /* @__PURE__ */ jsx42(SelectPrimitive.ItemGroupLabel, { children: label }),
2173
- children
2174
- ] });
2175
- }
2176
- );
2177
- var SelectLabel = SelectPrimitive.Label;
2178
- var SelectItemText = SelectPrimitive.ItemText;
2179
-
2180
- // src/components/separator/index.ts
2181
- import { Separator as Separator2 } from "@chakra-ui/react/separator";
2182
-
2183
- // src/components/skeleton/skeleton.tsx
2184
- import { forwardRef as forwardRef39 } from "react";
2185
- import { Circle } from "@chakra-ui/react/box";
2186
- import { Skeleton as ChakraSkeleton } from "@chakra-ui/react/skeleton";
2187
- import { Stack } from "@chakra-ui/react/stack";
2188
- import { jsx as jsx43 } from "react/jsx-runtime";
2189
- var SkeletonCircle = (props) => {
2190
- const { size, ...rest } = props;
2191
- return /* @__PURE__ */ jsx43(Circle, { size, asChild: true, children: /* @__PURE__ */ jsx43(ChakraSkeleton, { ...rest }) });
2192
- };
2193
- var SkeletonText = forwardRef39(
2194
- function SkeletonText2(props, ref) {
2195
- const { noOfLines = 3, gap, ...rest } = props;
2196
- return /* @__PURE__ */ jsx43(Stack, { gap, width: "full", ref, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsx43(
2197
- ChakraSkeleton,
2198
- {
2199
- height: "4",
2200
- ...props,
2201
- _last: { maxW: "80%" },
2202
- ...rest
2203
- },
2204
- index
2205
- )) });
2206
- }
2207
- );
2208
- var Skeleton = ChakraSkeleton;
2209
-
2210
- // src/components/segmented-control/segmented-control.tsx
2211
- import { forwardRef as forwardRef40, useMemo as useMemo3 } from "react";
2212
- import { For } from "@chakra-ui/react/for";
2213
- import { SegmentGroup } from "@chakra-ui/react/segment-group";
2214
- import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
2215
- function normalize(items) {
2216
- return items.map((item) => {
2217
- if (typeof item === "string") return { value: item, label: item };
2218
- return item;
2219
- });
2220
- }
2221
- var SegmentedControl = forwardRef40(function SegmentedControl2(props, ref) {
2222
- const { items, ...rest } = props;
2223
- const data = useMemo3(() => normalize(items), [items]);
2224
- return /* @__PURE__ */ jsxs25(SegmentGroup.Root, { ref, ...rest, children: [
2225
- /* @__PURE__ */ jsx44(SegmentGroup.Indicator, {}),
2226
- /* @__PURE__ */ jsx44(For, { each: data, children: (item) => /* @__PURE__ */ jsxs25(
2227
- SegmentGroup.Item,
2228
- {
2229
- value: item.value,
2230
- disabled: item.disabled,
2231
- children: [
2232
- /* @__PURE__ */ jsx44(SegmentGroup.ItemText, { children: item.label }),
2233
- /* @__PURE__ */ jsx44(SegmentGroup.ItemHiddenInput, {})
2234
- ]
2235
- },
2236
- item.value
2237
- ) })
2238
- ] });
2239
- });
2240
-
2241
- // src/components/sidebar/sidebar.tsx
2242
- var sidebar_exports = {};
2243
- __export(sidebar_exports, {
2244
- Backdrop: () => SidebarBackdrop,
2245
- Body: () => SidebarBody,
2246
- Context: () => SidebarContext,
2247
- FlyoutTrigger: () => SidebarFlyoutTrigger,
2248
- Footer: () => SidebarFooter,
2249
- Group: () => SidebarGroup,
2250
- GroupContent: () => SidebarGroupContent,
2251
- GroupEndElement: () => SidebarGroupEndElement,
2252
- GroupHeader: () => SidebarGroupHeader,
2253
- GroupTitle: () => SidebarGroupTitle,
2254
- Header: () => SidebarHeader,
2255
- NavButton: () => SidebarNavButton,
2256
- NavButtonEndElement: () => SidebarNavButtonEndElement,
2257
- NavItem: () => SidebarNavItem,
2258
- Provider: () => SidebarProvider,
2259
- Root: () => SidebarRoot,
2260
- Track: () => SidebarTrack,
2261
- Trigger: () => SidebarTrigger
2262
- });
2263
- import { Sidebar, useSidebar } from "@saas-ui/core/sidebar";
2264
-
2265
- // src/components/sidebar/sidebar.context.ts
2266
- import { createSlotRecipeContext as createSlotRecipeContext7 } from "@chakra-ui/react";
2267
- var {
2268
- withContext: withContext8,
2269
- useRecipeResult,
2270
- StylesProvider,
2271
- ClassNamesProvider,
2272
- useStyles: useSidebarStyles
2273
- } = createSlotRecipeContext7({
2274
- key: "suiSidebar"
2275
- });
2276
- var {
2277
- withProvider: withItemProvider,
2278
- withContext: withItemContext,
2279
- useStyles: useSidebarItemStyles
2280
- } = createSlotRecipeContext7({
2281
- key: "suiSidebarNavItem"
2282
- });
2283
-
2284
- // src/components/sidebar/sidebar.tsx
2285
- import { jsx as jsx45 } from "react/jsx-runtime";
2286
- var SidebarProvider = function SidebarProvider2(props) {
2287
- return /* @__PURE__ */ jsx45(Sidebar.Provider, { ...props, children: /* @__PURE__ */ jsx45(RecipeProvider, { ...props, children: props.children }) });
2288
- };
2289
- function RecipeProvider(props) {
2290
- const { mode } = useSidebar();
2291
- const { styles, classNames } = useRecipeResult({
2292
- ...props,
2293
- mode
2294
- });
2295
- return /* @__PURE__ */ jsx45(StylesProvider, { value: styles, children: /* @__PURE__ */ jsx45(ClassNamesProvider, { value: classNames, children: props.children }) });
2296
- }
2297
- var SidebarRoot = withContext8(
2298
- Sidebar.Root,
2299
- "root"
2300
- );
2301
- var SidebarTrigger = withContext8(
2302
- Sidebar.Trigger,
2303
- "trigger",
2304
- {
2305
- forwardAsChild: true
2306
- }
2307
- );
2308
- var SidebarFlyoutTrigger = withContext8(Sidebar.FlyoutTrigger, "flyoutTrigger", {
2309
- forwardAsChild: true
2310
- });
2311
- var SidebarBackdrop = withContext8(
2312
- Sidebar.Backdrop,
2313
- "backdrop",
2314
- {
2315
- forwardAsChild: true
2316
- }
2317
- );
2318
- var SidebarHeader = withContext8(
2319
- Sidebar.Header,
2320
- "header"
2321
- );
2322
- var SidebarBody = withContext8(
2323
- Sidebar.Body,
2324
- "body"
2325
- );
2326
- var SidebarFooter = withContext8(
2327
- Sidebar.Footer,
2328
- "footer"
2329
- );
2330
- var SidebarTrack = withContext8(
2331
- Sidebar.Track,
2332
- "track",
2333
- {
2334
- forwardAsChild: true
2335
- }
2336
- );
2337
- var SidebarGroup = withContext8(
2338
- Sidebar.Group,
2339
- "group",
2340
- {
2341
- defaultProps: {
2342
- role: "group"
2343
- }
2344
- }
2345
- );
2346
- var SidebarGroupHeader = withContext8(
2347
- Sidebar.GroupHeader,
2348
- "groupHeader"
2349
- );
2350
- var SidebarGroupTitle = withContext8(Sidebar.GroupTitle, "groupTitle");
2351
- var SidebarGroupEndElement = withContext8(Sidebar.GroupEndElement, "groupEndElement");
2352
- var SidebarGroupContent = withContext8(
2353
- Sidebar.GroupContent,
2354
- "groupContent"
2355
- );
2356
- var SidebarNavItem = withItemProvider(
2357
- Sidebar.NavItem,
2358
- "item"
2359
- );
2360
- var SidebarNavButton = withItemContext(Sidebar.NavButton, "button", {
2361
- forwardAsChild: true
2362
- });
2363
- var SidebarNavButtonEndElement = withItemContext(Sidebar.NavItemEndElement, "endElement", {
2364
- defaultProps: {
2365
- "data-slot": "endElement"
2366
- }
2367
- });
2368
- var SidebarContext = Sidebar.Context;
2369
-
2370
- // src/components/sidebar/index.ts
2371
- import { useSidebar as useSidebar2 } from "@saas-ui/core/sidebar";
2372
-
2373
- // src/components/skip-nav/index.ts
2374
- import {
2375
- SkipNavContent,
2376
- SkipNavLink
2377
- } from "@chakra-ui/react/skip-nav";
2378
-
2379
- // src/components/slider/slider.tsx
2380
- import { forwardRef as forwardRef41 } from "react";
2381
- import { Slider as ChakraSlider } from "@chakra-ui/react/slider";
2382
- import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
2383
- var Slider = forwardRef41(
2384
- function Slider2(props, ref) {
2385
- var _a;
2386
- const { marks: marksProp, label, ...rest } = props;
2387
- const value = (_a = props.defaultValue) != null ? _a : props.value;
2388
- const marks = marksProp == null ? void 0 : marksProp.map((mark) => {
2389
- if (typeof mark === "number") return { value: mark, label: void 0 };
2390
- return mark;
2391
- });
2392
- const hasMarkLabel = !!(marks == null ? void 0 : marks.some((mark) => mark.label));
2393
- return /* @__PURE__ */ jsxs26(ChakraSlider.Root, { ref, thumbAlignment: "center", ...rest, children: [
2394
- label && /* @__PURE__ */ jsx46(ChakraSlider.Label, { fontWeight: "medium", children: label }),
2395
- /* @__PURE__ */ jsxs26(ChakraSlider.Control, { mb: hasMarkLabel ? "4" : void 0, children: [
2396
- /* @__PURE__ */ jsx46(ChakraSlider.Track, { children: /* @__PURE__ */ jsx46(ChakraSlider.Range, {}) }),
2397
- value == null ? void 0 : value.map((_, index) => /* @__PURE__ */ jsx46(ChakraSlider.Thumb, { index, children: /* @__PURE__ */ jsx46(ChakraSlider.HiddenInput, {}) }, index))
2398
- ] }),
2399
- (marks == null ? void 0 : marks.length) && /* @__PURE__ */ jsx46(ChakraSlider.MarkerGroup, { children: marks.map((mark, index) => {
2400
- const value2 = typeof mark === "number" ? mark : mark.value;
2401
- const label2 = typeof mark === "number" ? void 0 : mark.label;
2402
- return /* @__PURE__ */ jsxs26(ChakraSlider.Marker, { value: value2, children: [
2403
- /* @__PURE__ */ jsx46(ChakraSlider.MarkerIndicator, {}),
2404
- label2
2405
- ] }, index);
2406
- }) })
2407
- ] });
2408
- }
2409
- );
2410
-
2411
- // src/components/status/status.tsx
2412
- import { forwardRef as forwardRef42 } from "react";
2413
- import { Status as ChakraStatus } from "@chakra-ui/react/status";
2414
- import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
2415
- var Status = forwardRef42(
2416
- function Status2(props, ref) {
2417
- const { children, value, ...rest } = props;
2418
- const color = value ? `status.${value}` : void 0;
2419
- return /* @__PURE__ */ jsxs27(ChakraStatus.Root, { ref, ...rest, children: [
2420
- /* @__PURE__ */ jsx47(ChakraStatus.Indicator, { bg: color }),
2421
- children
2422
- ] });
2423
- }
2424
- );
2425
-
2426
- // src/components/stat/stat.tsx
2427
- var stat_exports = {};
2428
- __export(stat_exports, {
2429
- DownTrend: () => StatDownTrend,
2430
- HelpText: () => HelpText,
2431
- Label: () => Label2,
2432
- Root: () => Root10,
2433
- UpTrend: () => StatUpTrend,
2434
- ValueText: () => StatValueText,
2435
- ValueUnit: () => ValueUnit
2436
- });
2437
- import * as React20 from "react";
2438
- import { Badge as Badge2 } from "@chakra-ui/react/badge";
2439
- import { FormatNumber } from "@chakra-ui/react/format";
2440
- import { Stat as ChakraStat } from "@chakra-ui/react/stat";
2441
- import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
2442
- var StatValueText = React20.forwardRef(
2443
- function StatValueText2(props, ref) {
2444
- const { value, formatOptions, children, ...rest } = props;
2445
- return /* @__PURE__ */ jsx48(ChakraStat.ValueText, { ...rest, ref, children: children || value != null && /* @__PURE__ */ jsx48(FormatNumber, { value, ...formatOptions }) });
2446
- }
2447
- );
2448
- var StatUpTrend = React20.forwardRef(
2449
- function StatUpTrend2(props, ref) {
2450
- return /* @__PURE__ */ jsxs28(Badge2, { colorPalette: "green", gap: "0", ...props, ref, children: [
2451
- /* @__PURE__ */ jsx48(ChakraStat.UpIndicator, {}),
2452
- props.children
2453
- ] });
2454
- }
2455
- );
2456
- var StatDownTrend = React20.forwardRef(
2457
- function StatDownTrend2(props, ref) {
2458
- return /* @__PURE__ */ jsxs28(Badge2, { colorPalette: "red", gap: "0", ...props, ref, children: [
2459
- /* @__PURE__ */ jsx48(ChakraStat.DownIndicator, {}),
2460
- props.children
2461
- ] });
2462
- }
2463
- );
2464
- var Root10 = ChakraStat.Root;
2465
- var Label2 = ChakraStat.Label;
2466
- var HelpText = ChakraStat.HelpText;
2467
- var ValueUnit = ChakraStat.ValueUnit;
2468
-
2469
- // src/components/steps/steps.tsx
2470
- var steps_exports = {};
2471
- __export(steps_exports, {
2472
- CompletedContent: () => StepsCompletedContent,
2473
- Content: () => StepsContent,
2474
- Indicator: () => StepsIndicator,
2475
- Item: () => StepsItem,
2476
- List: () => StepsList,
2477
- NextTrigger: () => StepsNextTrigger,
2478
- PrevTrigger: () => StepsPrevTrigger,
2479
- Root: () => StepsRoot,
2480
- useContext: () => useStepsContext
2481
- });
2482
- import { Box as Box2 } from "@chakra-ui/react/box";
2483
- import { Steps as ChakraSteps, useStepsContext } from "@chakra-ui/react/steps";
2484
- import { Fragment as Fragment9, jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
2485
- var StepsItem = (props) => {
2486
- const { title, description, completedIcon, icon, ...rest } = props;
2487
- return /* @__PURE__ */ jsxs29(ChakraSteps.Item, { ...rest, children: [
2488
- /* @__PURE__ */ jsxs29(ChakraSteps.Trigger, { children: [
2489
- /* @__PURE__ */ jsx49(ChakraSteps.Indicator, { children: /* @__PURE__ */ jsx49(
2490
- ChakraSteps.Status,
2491
- {
2492
- complete: completedIcon || /* @__PURE__ */ jsx49(CheckIcon, {}),
2493
- incomplete: icon || /* @__PURE__ */ jsx49(ChakraSteps.Number, {})
2494
- }
2495
- ) }),
2496
- /* @__PURE__ */ jsx49(StepInfo, { title, description })
2497
- ] }),
2498
- /* @__PURE__ */ jsx49(ChakraSteps.Separator, {})
2499
- ] });
2500
- };
2501
- var StepInfo = (props) => {
2502
- const { title, description } = props;
2503
- if (title && description) {
2504
- return /* @__PURE__ */ jsxs29(Box2, { children: [
2505
- /* @__PURE__ */ jsx49(ChakraSteps.Title, { children: title }),
2506
- /* @__PURE__ */ jsx49(ChakraSteps.Description, { children: description })
2507
- ] });
2508
- }
2509
- return /* @__PURE__ */ jsxs29(Fragment9, { children: [
2510
- title && /* @__PURE__ */ jsx49(ChakraSteps.Title, { children: title }),
2511
- description && /* @__PURE__ */ jsx49(ChakraSteps.Description, { children: description })
2512
- ] });
2513
- };
2514
- var StepsIndicator = (props) => {
2515
- const { icon = /* @__PURE__ */ jsx49(ChakraSteps.Number, {}), completedIcon } = props;
2516
- return /* @__PURE__ */ jsx49(ChakraSteps.Indicator, { children: /* @__PURE__ */ jsx49(ChakraSteps.Status, { complete: completedIcon, incomplete: icon }) });
2517
- };
2518
- var StepsList = ChakraSteps.List;
2519
- var StepsRoot = ChakraSteps.Root;
2520
- var StepsContent = ChakraSteps.Content;
2521
- var StepsCompletedContent = ChakraSteps.CompletedContent;
2522
- var StepsNextTrigger = (props) => {
2523
- return /* @__PURE__ */ jsx49(ChakraSteps.NextTrigger, { ...props });
2524
- };
2525
- var StepsPrevTrigger = (props) => {
2526
- return /* @__PURE__ */ jsx49(ChakraSteps.PrevTrigger, { ...props });
2527
- };
2528
-
2529
- // src/components/switch/switch.tsx
2530
- import { forwardRef as forwardRef44 } from "react";
2531
- import { Switch as ChakraSwitch } from "@chakra-ui/react/switch";
2532
- import { jsx as jsx50, jsxs as jsxs30 } from "react/jsx-runtime";
2533
- var Switch = forwardRef44(
2534
- function Switch2(props, ref) {
2535
- const { inputProps, children, rootRef, trackLabel, thumbLabel, ...rest } = props;
2536
- return /* @__PURE__ */ jsxs30(ChakraSwitch.Root, { ref: rootRef, ...rest, children: [
2537
- /* @__PURE__ */ jsx50(ChakraSwitch.HiddenInput, { ref, ...inputProps }),
2538
- /* @__PURE__ */ jsxs30(ChakraSwitch.Control, { children: [
2539
- /* @__PURE__ */ jsx50(ChakraSwitch.Thumb, { children: thumbLabel && /* @__PURE__ */ jsx50(ChakraSwitch.ThumbIndicator, { fallback: thumbLabel == null ? void 0 : thumbLabel.off, children: thumbLabel == null ? void 0 : thumbLabel.on }) }),
2540
- trackLabel && /* @__PURE__ */ jsx50(ChakraSwitch.Indicator, { fallback: trackLabel.off, children: trackLabel.on })
2541
- ] }),
2542
- children != null && /* @__PURE__ */ jsx50(ChakraSwitch.Label, { children })
2543
- ] });
2544
- }
2545
- );
2546
-
2547
- // src/components/table/index.ts
2548
- import { Table } from "@chakra-ui/react/table";
2549
-
2550
- // src/components/tabs/index.ts
2551
- import {
2552
- Tabs,
2553
- useTabsContext,
2554
- useTabsStyles,
2555
- useTabs
2556
- } from "@chakra-ui/react/tabs";
2557
-
2558
- // src/components/tag/tag.tsx
2559
- import { forwardRef as forwardRef45 } from "react";
2560
- import { Tag as ChakraTag } from "@chakra-ui/react/tag";
2561
- import { jsx as jsx51, jsxs as jsxs31 } from "react/jsx-runtime";
2562
- var Tag = forwardRef45(
2563
- function Tag2(props, ref) {
2564
- const {
2565
- startElement,
2566
- endElement,
2567
- onClose,
2568
- closable = !!onClose,
2569
- children,
2570
- ...rest
2571
- } = props;
2572
- return /* @__PURE__ */ jsxs31(ChakraTag.Root, { ref, ...rest, children: [
2573
- startElement && /* @__PURE__ */ jsx51(ChakraTag.StartElement, { children: startElement }),
2574
- /* @__PURE__ */ jsx51(ChakraTag.Label, { children }),
2575
- endElement && /* @__PURE__ */ jsx51(ChakraTag.EndElement, { children: endElement }),
2576
- closable && /* @__PURE__ */ jsx51(ChakraTag.EndElement, { children: /* @__PURE__ */ jsx51(ChakraTag.CloseTrigger, { onClick: onClose }) })
2577
- ] });
2578
- }
2579
- );
2580
-
2581
- // src/components/timeline/index.ts
2582
- import { Timeline } from "@chakra-ui/react/timeline";
2583
-
2584
- // src/components/toaster/toaster.tsx
2585
- import { useCallback, useMemo as useMemo4, useState } from "react";
2586
- import { Portal as Portal8 } from "@chakra-ui/react/portal";
2587
- import { Stack as Stack2 } from "@chakra-ui/react/stack";
2588
- import {
2589
- Toaster as ChakraToaster,
2590
- Toast,
2591
- createToaster
2592
- } from "@chakra-ui/react/toast";
2593
- import { jsx as jsx52, jsxs as jsxs32 } from "react/jsx-runtime";
2594
- var defaultOptions = {
2595
- placement: "bottom-end",
2596
- pauseOnPageIdle: true
2597
- };
2598
- var toast = createToaster(defaultOptions);
2599
- var Toaster = (props) => {
2600
- const { closable: defaultClosable = true, ...options } = props || {};
2601
- const toaster = useMemo4(() => {
2602
- toast = createToaster({
2603
- ...defaultOptions,
2604
- ...options
2605
- });
2606
- return toast;
2607
- }, [options]);
2608
- return /* @__PURE__ */ jsx52(Portal8, { children: /* @__PURE__ */ jsx52(ChakraToaster, { toaster, insetInline: { mdDown: "4" }, children: (toast2) => {
2609
- var _a;
2610
- const closable = ((_a = toast2.meta) == null ? void 0 : _a.closable) === false ? false : defaultClosable && toast2.type !== "loading";
2611
- return /* @__PURE__ */ jsxs32(ToastRoot, { children: [
2612
- toast2.type === "loading" ? /* @__PURE__ */ jsx52(Spinner, { size: "sm", color: "colorPalette.solid", mt: "0.5" }) : /* @__PURE__ */ jsx52(Toast.Indicator, {}),
2613
- /* @__PURE__ */ jsxs32(Stack2, { gap: "1", flex: "1", maxWidth: "100%", children: [
2614
- toast2.title && /* @__PURE__ */ jsx52(Toast.Title, { children: toast2.title }),
2615
- toast2.description && /* @__PURE__ */ jsx52(Toast.Description, { children: toast2.description }),
2616
- toast2.action && /* @__PURE__ */ jsx52(Toast.ActionTrigger, { children: toast2.action.label })
2617
- ] }),
2618
- closable !== false && /* @__PURE__ */ jsx52(Toast.CloseTrigger, { children: /* @__PURE__ */ jsx52(CloseButton, { size: "xs" }) })
2619
- ] });
2620
- } }) });
2621
- };
2622
- function ToastRoot(props) {
2623
- const [rect, setRect] = useState();
2624
- const rectCallbackRef = useCallback((el) => {
2625
- setRect(el == null ? void 0 : el.getBoundingClientRect());
2626
- }, []);
2627
- return /* @__PURE__ */ jsx52(
2628
- Toast.Root,
2629
- {
2630
- ref: rectCallbackRef,
2631
- width: { md: "sm" },
2632
- css: {
2633
- "--toast-height": `${rect == null ? void 0 : rect.height}px`
2634
- },
2635
- children: props.children
2636
- }
2637
- );
2638
- }
2639
-
2640
- // src/components/tooltip/tooltip.tsx
2641
- import { forwardRef as forwardRef46 } from "react";
2642
- import { Portal as Portal9 } from "@chakra-ui/react/portal";
2643
- import { Tooltip as ChakraTooltip } from "@chakra-ui/react/tooltip";
2644
- import { jsx as jsx53, jsxs as jsxs33 } from "react/jsx-runtime";
2645
- var Tooltip = forwardRef46(
2646
- function Tooltip2(props, ref) {
2647
- const {
2648
- showArrow,
2649
- children,
2650
- disabled,
2651
- portalled,
2652
- content,
2653
- contentProps,
2654
- portalRef,
2655
- ...rest
2656
- } = props;
2657
- if (disabled) return children;
2658
- return /* @__PURE__ */ jsxs33(ChakraTooltip.Root, { ...rest, children: [
2659
- /* @__PURE__ */ jsx53(ChakraTooltip.Trigger, { asChild: true, children }),
2660
- /* @__PURE__ */ jsx53(Portal9, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx53(ChakraTooltip.Positioner, { children: /* @__PURE__ */ jsxs33(ChakraTooltip.Content, { ref, ...contentProps, children: [
2661
- showArrow && /* @__PURE__ */ jsx53(ChakraTooltip.Arrow, { children: /* @__PURE__ */ jsx53(ChakraTooltip.ArrowTip, {}) }),
2662
- content
2663
- ] }) }) })
2664
- ] });
2665
- }
2666
- );
2667
-
2668
- // src/components/textarea/index.ts
2669
- import { Textarea } from "@chakra-ui/react/textarea";
2670
-
2671
- // src/components/aspect-ratio/index.ts
2672
- import {
2673
- AspectRatio
2674
- } from "@chakra-ui/react/aspect-ratio";
2675
-
2676
- // src/components/bleed/index.ts
2677
- import {
2678
- Bleed
2679
- } from "@chakra-ui/react/bleed";
2680
-
2681
- // src/components/box/index.ts
2682
- import {
2683
- Box as Box3
2684
- } from "@chakra-ui/react/box";
2685
-
2686
- // src/components/center/index.ts
2687
- import {
2688
- Center
2689
- } from "@chakra-ui/react/center";
2690
-
2691
- // src/components/client-only/index.ts
2692
- import {
2693
- ClientOnly
2694
- } from "@chakra-ui/react/client-only";
2695
-
2696
- // src/components/color-picker/index.ts
2697
- import { ColorPicker } from "@chakra-ui/react/color-picker";
2698
-
2699
- // src/components/color-swatch/index.ts
2700
- import {
2701
- ColorSwatch,
2702
- ColorSwatchMix,
2703
- ColorSwatchPropsProvider
2704
- } from "@chakra-ui/react/color-swatch";
2705
-
2706
- // src/components/env/index.ts
2707
- import {
2708
- EnvironmentProvider,
2709
- useEnvironmentContext
2710
- } from "@chakra-ui/react/env";
2711
-
2712
- // src/components/float/index.ts
2713
- import {
2714
- Float
2715
- } from "@chakra-ui/react/float";
2716
-
2717
- // src/components/focus-trap/index.ts
2718
- import { FocusTrap } from "@chakra-ui/react/focus-trap";
2719
-
2720
- // src/components/format/index.ts
2721
- import {
2722
- FormatByte,
2723
- FormatNumber as FormatNumber2
2724
- } from "@chakra-ui/react/format";
2725
-
2726
- // src/components/grid/index.ts
2727
- import {
2728
- Grid
2729
- } from "@chakra-ui/react/grid";
2730
-
2731
- // src/components/group/index.ts
2732
- import {
2733
- Group as Group4
2734
- } from "@chakra-ui/react/group";
2735
-
2736
- // src/components/highlight/index.ts
2737
- import {
2738
- Highlight
2739
- } from "@chakra-ui/react/highlight";
2740
-
2741
- // src/components/portal/index.ts
2742
- import {
2743
- Portal as Portal10
2744
- } from "@chakra-ui/react/portal";
2745
-
2746
- // src/components/presence/index.ts
2747
- import { Presence as Presence2 } from "@chakra-ui/react/presence";
2748
-
2749
- // src/components/qr-code/index.ts
2750
- import { QrCode } from "@chakra-ui/react/qr-code";
2751
-
2752
- // src/components/show/index.ts
2753
- import {
2754
- Show
2755
- } from "@chakra-ui/react/show";
2756
-
2757
- // src/components/spacer/index.ts
2758
- import {
2759
- Spacer
2760
- } from "@chakra-ui/react/spacer";
2761
-
2762
- // src/components/stack/index.ts
2763
- import {
2764
- Stack as Stack3
2765
- } from "@chakra-ui/react/stack";
2766
-
2767
- // src/components/toggle/index.ts
2768
- import { Toggle } from "@chakra-ui/react/toggle";
2769
-
2770
- // src/components/typography/index.ts
2771
- import {
2772
- Em,
2773
- Heading as Heading2,
2774
- Strong,
2775
- Text as Text2
2776
- } from "@chakra-ui/react/typography";
2777
-
2778
- // src/components/visually-hidden/index.ts
2779
- import { VisuallyHidden } from "@chakra-ui/react/visually-hidden";
2780
-
2781
- // src/components/wrap/index.ts
2782
- import { Wrap } from "@chakra-ui/react/wrap";
2783
- export {
2784
- accordion_exports as Accordion,
2785
- action_bar_exports as ActionBar,
2786
- Alert,
2787
- AppShell,
2788
- AspectRatio,
2789
- Avatar,
2790
- AvatarGroup,
2791
- BackButton,
2792
- Badge,
2793
- BadgePropsProvider,
2794
- Bleed,
2795
- Blockquote,
2796
- Box3 as Box,
2797
- breadcrumb_exports as Breadcrumb,
2798
- Button,
2799
- ButtonGroup,
2800
- Card,
2801
- Center,
2802
- Checkbox,
2803
- CheckboxCard,
2804
- Checkmark,
2805
- ClientOnly,
2806
- clipboard_exports as Clipboard,
2807
- CloseButton,
2808
- Code,
2809
- Collapsible,
2810
- ColorPicker,
2811
- ColorSwatch,
2812
- Command,
2813
- Container,
2814
- DataList,
2815
- dialog_exports as Dialog,
2816
- drawer_exports as Drawer,
2817
- Editable,
2818
- Em,
2819
- EmptyState,
2820
- EnvironmentProvider,
2821
- Field,
2822
- Fieldset,
2823
- file_upload_exports as FileUpload,
2824
- Float,
2825
- FocusTrap,
2826
- FormatByte,
2827
- FormatNumber2 as FormatNumber,
2828
- Grid,
2829
- grid_list_exports as GridList,
2830
- Group4 as Group,
2831
- Heading,
2832
- Highlight,
2833
- hover_card_exports as HoverCard,
2834
- Icon,
2835
- IconBadge,
2836
- IconButton,
2837
- Image,
2838
- InfoTip,
2839
- Input,
2840
- InputAddon,
2841
- InputElement,
2842
- InputGroup,
2843
- InputPropsProvider,
2844
- Kbd,
2845
- Link,
2846
- List2 as List,
2847
- Loader,
2848
- loading_overlay_exports as LoadingOverlay,
2849
- Mark,
2850
- menu_exports as Menu,
2851
- NativeSelect,
2852
- navbar_exports as Navbar,
2853
- NumberInput,
2854
- page_exports as Page,
2855
- pagination_exports as Pagination,
2856
- PasswordInput,
2857
- Persona,
2858
- PersonaAvatar2 as PersonaAvatar,
2859
- PinInput,
2860
- popover_exports as Popover,
2861
- Portal10 as Portal,
2862
- Presence2 as Presence,
2863
- Progress,
2864
- ProgressCircle,
2865
- QrCode,
2866
- Radio,
2867
- radio_card_exports as RadioCard,
2868
- RadioGroup2 as RadioGroup,
2869
- RatingGroup,
2870
- SearchInput,
2871
- SegmentedControl,
2872
- namespace_exports as Select,
2873
- Separator2 as Separator,
2874
- Show,
2875
- sidebar_exports as Sidebar,
2876
- Skeleton,
2877
- SkeletonCircle,
2878
- SkeletonText,
2879
- SkipNavContent,
2880
- SkipNavLink,
2881
- Slider,
2882
- Spacer,
2883
- Spinner,
2884
- Stack3 as Stack,
2885
- stat_exports as Stat,
2886
- Status,
2887
- steps_exports as Steps,
2888
- Strong,
2889
- SuiContext,
2890
- SuiProvider,
2891
- Switch,
2892
- Table,
2893
- Tabs,
2894
- Tag,
2895
- Text2 as Text,
2896
- Textarea,
2897
- Timeline,
2898
- Toaster,
2899
- Toggle,
2900
- ToggleTip,
2901
- Tooltip,
2902
- VisuallyHidden,
2903
- Wrap,
2904
- createSystem,
2905
- defaultConfig,
2906
- defaultPersonaPresenceOptions,
2907
- defaultSystem,
2908
- toast,
2909
- useDataListStyles,
2910
- useEnvironmentContext,
2911
- useFieldContext,
2912
- useFieldStyles,
2913
- useFieldsetContext,
2914
- useFileUploadContext2 as useFileUploadContext,
2915
- useLink,
2916
- usePageStyles,
2917
- useSidebar2 as useSidebar,
2918
- useSidebarItemStyles,
2919
- useSidebarStyles,
2920
- useSui,
2921
- useTabsContext,
2922
- useTabsStyles
2923
- };
1
+ export { defaultSystem, defaultConfig } from "./preset.js";
2
+ export { createSystem, defineAnimationStyles, defineConditions, defineConfig, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyle, defineTextStyles, defineTokens, chakra, createRecipeContext, createSlotRecipeContext, useRecipe, useSlotRecipe, useChakraContext, useToken, } from '@chakra-ui/react/styled-system';
3
+ export { useMediaQuery, useBreakpoint, useBreakpointValue, useControllableState, useDisclosure, createListCollection, createContext, mergeRefs, } from '@chakra-ui/react';
4
+ export { SuiProvider, SuiContext, useLink, useSui } from "./provider/index.js";
5
+ export { Accordion } from "./components/accordion/index.js";
6
+ export { ActionBar } from "./components/action-bar/index.js";
7
+ export { Alert } from "./components/alert/index.js";
8
+ export { AppShell } from "./components/app-shell/index.js";
9
+ export { Avatar, AvatarGroup, } from "./components/avatar/index.js";
10
+ export { Badge, BadgePropsProvider, } from "./components/badge/index.js";
11
+ export { BackButton, } from "./components/back-button/index.js";
12
+ export { Blockquote, } from "./components/blockquote/index.js";
13
+ export { Breadcrumb } from "./components/breadcrumb/index.js";
14
+ export { Button } from "./components/button/index.js";
15
+ export { ButtonGroup, } from "./components/button-group/index.js";
16
+ export { Card } from "./components/card/index.js";
17
+ export { Checkbox } from "./components/checkbox/index.js";
18
+ export { Checkmark } from "./components/checkmark/index.js";
19
+ export { CheckboxCard, } from "./components/checkbox-card/index.js";
20
+ export { Clipboard } from "./components/clipboard/index.js";
21
+ export { useClipboard } from "./components/clipboard/index.js";
22
+ export { CloseButton, } from "./components/close-button/index.js";
23
+ export { Container } from "./components/container/index.js";
24
+ export { Code } from "./components/code/index.js";
25
+ export { Collapsible } from "./components/collapsible/index.js";
26
+ export { Command } from "./components/command/index.js";
27
+ export { DataList, useDataListStyles } from "./components/data-list/index.js";
28
+ export { Dialog } from "./components/dialog/index.js";
29
+ export { Drawer } from "./components/drawer/index.js";
30
+ export { Editable } from "./components/editable/index.js";
31
+ export { EmptyState, } from "./components/empty-state/index.js";
32
+ export { FileUpload, useFileUploadContext, } from "./components/file-upload/index.js";
33
+ export { Field, useFieldContext, useFieldStyles, } from "./components/field/index.js";
34
+ export { Fieldset, useFieldsetContext } from "./components/fieldset/index.js";
35
+ export { GridList } from "./components/grid-list/index.js";
36
+ export { Heading } from "./components/heading/index.js";
37
+ export { HoverCard } from "./components/hover-card/index.js";
38
+ export { createIcon } from "./components/icons/create-icon.js";
39
+ export { Icon } from "./components/icon/index.js";
40
+ export { IconBadge } from "./components/icon-badge/index.js";
41
+ export { IconButton, } from "./components/icon-button/index.js";
42
+ export { Image } from "./components/image/index.js";
43
+ export { Input, InputAddon, InputElement, InputPropsProvider, InputGroup, } from "./components/input/index.js";
44
+ export { InfoTip } from "./components/info-tip/index.js";
45
+ export { Kbd } from "./components/kbd/index.js";
46
+ export { Link } from "./components/link/index.js";
47
+ export { Loader } from "./components/loader/index.js";
48
+ export { List } from "./components/list/index.js";
49
+ export { LoadingOverlay } from "./components/loading-overlay/index.js";
50
+ export { Mark } from "./components/mark/index.js";
51
+ export { Navbar } from "./components/navbar/index.js";
52
+ export { NativeSelect, } from "./components/native-select/index.js";
53
+ export { NumberInput, } from "./components/number-input/index.js";
54
+ export { Menu } from "./components/menu/index.js";
55
+ export { Page, usePageStyles } from "./components/page/index.js";
56
+ export { Pagination } from "./components/pagination/index.js";
57
+ export { PasswordInput, } from "./components/password-input/index.js";
58
+ export { Persona, PersonaAvatar, defaultPersonaPresenceOptions, } from "./components/persona/index.js";
59
+ export { PinInput } from "./components/pin-input/index.js";
60
+ export { Popover } from "./components/popover/index.js";
61
+ export { Progress } from "./components/progress/index.js";
62
+ export { ProgressCircle } from "./components/progress-circle/index.js";
63
+ export { Radio } from "./components/radio/index.js";
64
+ export { RadioGroup } from "./components/radio-group/index.js";
65
+ export { RadioCard } from "./components/radio-card/index.js";
66
+ export { RatingGroup } from "./components/rating-group/index.js";
67
+ export { SearchInput, } from "./components/search-input/index.js";
68
+ export { Select } from "./components/select/index.js";
69
+ export { Separator } from "./components/separator/index.js";
70
+ export { Skeleton, SkeletonCircle, SkeletonText, } from "./components/skeleton/index.js";
71
+ export { SegmentedControl, } from "./components/segmented-control/index.js";
72
+ export { Sidebar, useSidebar, useSidebarItemStyles, useSidebarStyles, } from "./components/sidebar/index.js";
73
+ export { SkipNavLink, SkipNavContent, } from "./components/skip-nav/index.js";
74
+ export { Slider } from "./components/slider/index.js";
75
+ export { Spinner } from "./components/spinner/index.js";
76
+ export { Status } from "./components/status/index.js";
77
+ export { Stat } from "./components/stat/index.js";
78
+ export { Steps } from "./components/steps/index.js";
79
+ export { Switch } from "./components/switch/index.js";
80
+ export { Table } from "./components/table/index.js";
81
+ export { Tabs, useTabsContext, useTabsStyles } from "./components/tabs/index.js";
82
+ export { Tag } from "./components/tag/index.js";
83
+ export { Timeline } from "./components/timeline/index.js";
84
+ export { Toaster, toast, } from "./components/toaster/index.js";
85
+ export { Tooltip } from "./components/tooltip/index.js";
86
+ export { Textarea } from "./components/textarea/index.js";
87
+ export { ToggleTip, } from "./components/toggle-tip/index.js";
88
+ export { AspectRatio, } from "./components/aspect-ratio/index.js";
89
+ export { Bleed } from "./components/bleed/index.js";
90
+ export { Box, Span, } from "./components/box/index.js";
91
+ export { Center } from "./components/center/index.js";
92
+ export { ClientOnly } from "./components/client-only/index.js";
93
+ export { ColorPicker } from "./components/color-picker/index.js";
94
+ export { ColorSwatch } from "./components/color-swatch/index.js";
95
+ export { EnvironmentProvider, useEnvironmentContext, } from "./components/env/index.js";
96
+ export { Float } from "./components/float/index.js";
97
+ export { FocusTrap } from "./components/focus-trap/index.js";
98
+ export { FormatByte, FormatNumber, } from "./components/format/index.js";
99
+ export { Grid, SimpleGrid, GridItem, } from "./components/grid/index.js";
100
+ export { Group } from "./components/group/index.js";
101
+ export { Highlight } from "./components/highlight/index.js";
102
+ export { Portal } from "./components/portal/index.js";
103
+ export { Presence } from "./components/presence/index.js";
104
+ export { QrCode, useQrCode } from "./components/qr-code/index.js";
105
+ export { Section, useSectionStyles } from "./components/section/index.js";
106
+ export { Show } from "./components/show/index.js";
107
+ export { Spacer } from "./components/spacer/index.js";
108
+ export { Stack, HStack, VStack, StackSeparator, } from "./components/stack/index.js";
109
+ export { Toggle } from "./components/toggle/index.js";
110
+ export { Em, Strong, Text, } from "./components/typography/index.js";
111
+ export { VisuallyHidden } from "./components/visually-hidden/index.js";
112
+ export { Wrap } from "./components/wrap/index.js";
113
+ export { Flex } from "./components/flex/index.js";