@zentauri-ui/zentauri-components 1.2.0 → 1.3.0

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 (324) hide show
  1. package/README.md +66 -38
  2. package/dist/accordion-base-qVomr7f_.d.mts +66 -0
  3. package/dist/accordion-base-qVomr7f_.d.ts +66 -0
  4. package/dist/avatar-base-s4dYg-24.d.mts +49 -0
  5. package/dist/avatar-base-s4dYg-24.d.ts +49 -0
  6. package/dist/card-base-CIGac8D_.d.mts +70 -0
  7. package/dist/card-base-CIGac8D_.d.ts +70 -0
  8. package/dist/chunk-2P3UU2J3.mjs +510 -0
  9. package/dist/chunk-2P3UU2J3.mjs.map +1 -0
  10. package/dist/chunk-2PQEXQVR.js +223 -0
  11. package/dist/chunk-2PQEXQVR.js.map +1 -0
  12. package/dist/chunk-3OR47XMY.js +273 -0
  13. package/dist/chunk-3OR47XMY.js.map +1 -0
  14. package/dist/chunk-4B7KGBQB.js +206 -0
  15. package/dist/chunk-4B7KGBQB.js.map +1 -0
  16. package/dist/chunk-5QB2KNZQ.js +148 -0
  17. package/dist/chunk-5QB2KNZQ.js.map +1 -0
  18. package/dist/chunk-6I7X5BF2.js +520 -0
  19. package/dist/chunk-6I7X5BF2.js.map +1 -0
  20. package/dist/chunk-7HL3A4YF.mjs +214 -0
  21. package/dist/chunk-7HL3A4YF.mjs.map +1 -0
  22. package/dist/chunk-AOEI4V3W.mjs +286 -0
  23. package/dist/chunk-AOEI4V3W.mjs.map +1 -0
  24. package/dist/chunk-BVXTOEBI.mjs +259 -0
  25. package/dist/chunk-BVXTOEBI.mjs.map +1 -0
  26. package/dist/chunk-C2FCPQTO.js +279 -0
  27. package/dist/chunk-C2FCPQTO.js.map +1 -0
  28. package/dist/chunk-E3DZNJAD.js +128 -0
  29. package/dist/chunk-E3DZNJAD.js.map +1 -0
  30. package/dist/chunk-FLILFCQE.mjs +197 -0
  31. package/dist/chunk-FLILFCQE.mjs.map +1 -0
  32. package/dist/chunk-IXDJ3IPG.mjs +315 -0
  33. package/dist/chunk-IXDJ3IPG.mjs.map +1 -0
  34. package/dist/chunk-JQ5TIJ4F.mjs +68 -0
  35. package/dist/chunk-JQ5TIJ4F.mjs.map +1 -0
  36. package/dist/chunk-LVUPECBT.mjs +217 -0
  37. package/dist/chunk-LVUPECBT.mjs.map +1 -0
  38. package/dist/chunk-N4NO3SYL.js +328 -0
  39. package/dist/chunk-N4NO3SYL.js.map +1 -0
  40. package/dist/chunk-OJ67PZ6N.js +175 -0
  41. package/dist/chunk-OJ67PZ6N.js.map +1 -0
  42. package/dist/chunk-P5HUBXUX.js +231 -0
  43. package/dist/chunk-P5HUBXUX.js.map +1 -0
  44. package/dist/chunk-PCK6LX3K.js +253 -0
  45. package/dist/chunk-PCK6LX3K.js.map +1 -0
  46. package/dist/chunk-PGH27VTL.mjs +316 -0
  47. package/dist/chunk-PGH27VTL.mjs.map +1 -0
  48. package/dist/chunk-QZKMFSH5.js +288 -0
  49. package/dist/chunk-QZKMFSH5.js.map +1 -0
  50. package/dist/chunk-RDSPHBHK.mjs +221 -0
  51. package/dist/chunk-RDSPHBHK.mjs.map +1 -0
  52. package/dist/chunk-U4YQCAXW.js +204 -0
  53. package/dist/chunk-U4YQCAXW.js.map +1 -0
  54. package/dist/chunk-UBFKTC2P.mjs +268 -0
  55. package/dist/chunk-UBFKTC2P.mjs.map +1 -0
  56. package/dist/chunk-UOFTZKMM.js +229 -0
  57. package/dist/chunk-UOFTZKMM.js.map +1 -0
  58. package/dist/chunk-UXGHUBNJ.mjs +240 -0
  59. package/dist/chunk-UXGHUBNJ.mjs.map +1 -0
  60. package/dist/chunk-W6PRMYUC.mjs +169 -0
  61. package/dist/chunk-W6PRMYUC.mjs.map +1 -0
  62. package/dist/chunk-WDCIZHXY.mjs +139 -0
  63. package/dist/chunk-WDCIZHXY.mjs.map +1 -0
  64. package/dist/chunk-WZKGRU3U.js +182 -0
  65. package/dist/chunk-WZKGRU3U.js.map +1 -0
  66. package/dist/chunk-X22LLJL6.js +71 -0
  67. package/dist/chunk-X22LLJL6.js.map +1 -0
  68. package/dist/chunk-XIXF7UVM.mjs +194 -0
  69. package/dist/chunk-XIXF7UVM.mjs.map +1 -0
  70. package/dist/chunk-XLAFQ24R.js +328 -0
  71. package/dist/chunk-XLAFQ24R.js.map +1 -0
  72. package/dist/chunk-XWM2S6VV.mjs +124 -0
  73. package/dist/chunk-XWM2S6VV.mjs.map +1 -0
  74. package/dist/chunk-YNCD6TKE.mjs +175 -0
  75. package/dist/chunk-YNCD6TKE.mjs.map +1 -0
  76. package/dist/progress-base-Cm1JODYA.d.mts +66 -0
  77. package/dist/progress-base-Cm1JODYA.d.ts +66 -0
  78. package/dist/types-C7N9UvRm.d.mts +38 -0
  79. package/dist/types-C7N9UvRm.d.ts +38 -0
  80. package/dist/types-CFpwSbpK.d.mts +27 -0
  81. package/dist/types-CFpwSbpK.d.ts +27 -0
  82. package/dist/types-CK_vNRIb.d.mts +63 -0
  83. package/dist/types-CK_vNRIb.d.ts +63 -0
  84. package/dist/types-Ca3t5aC_.d.mts +31 -0
  85. package/dist/types-Ca3t5aC_.d.ts +31 -0
  86. package/dist/types-Cn7IcgkH.d.mts +32 -0
  87. package/dist/types-Cn7IcgkH.d.ts +32 -0
  88. package/dist/types-CtFK7mFE.d.mts +34 -0
  89. package/dist/types-CtFK7mFE.d.ts +34 -0
  90. package/dist/types-DMkTQsWg.d.mts +46 -0
  91. package/dist/types-DMkTQsWg.d.ts +46 -0
  92. package/dist/types-DN400jNg.d.mts +28 -0
  93. package/dist/types-DN400jNg.d.ts +28 -0
  94. package/dist/types-vcZcRc6w.d.mts +24 -0
  95. package/dist/types-vcZcRc6w.d.ts +24 -0
  96. package/dist/types-zHcMUtKK.d.mts +42 -0
  97. package/dist/types-zHcMUtKK.d.ts +42 -0
  98. package/dist/ui/accordion/animated.d.mts +24 -0
  99. package/dist/ui/accordion/animated.d.ts +24 -0
  100. package/dist/ui/accordion/animated.js +67 -0
  101. package/dist/ui/accordion/animated.js.map +1 -0
  102. package/dist/ui/accordion/animated.mjs +56 -0
  103. package/dist/ui/accordion/animated.mjs.map +1 -0
  104. package/dist/ui/accordion.d.mts +9 -65
  105. package/dist/ui/accordion.d.ts +9 -65
  106. package/dist/ui/accordion.js +32 -288
  107. package/dist/ui/accordion.js.map +1 -1
  108. package/dist/ui/accordion.mjs +6 -281
  109. package/dist/ui/accordion.mjs.map +1 -1
  110. package/dist/ui/alert/animated.d.mts +18 -0
  111. package/dist/ui/alert/animated.d.ts +18 -0
  112. package/dist/ui/alert/animated.js +47 -0
  113. package/dist/ui/alert/animated.js.map +1 -0
  114. package/dist/ui/alert/animated.mjs +44 -0
  115. package/dist/ui/alert/animated.mjs.map +1 -0
  116. package/dist/ui/alert.d.mts +10 -40
  117. package/dist/ui/alert.d.ts +10 -40
  118. package/dist/ui/alert.js +36 -218
  119. package/dist/ui/alert.js.map +1 -1
  120. package/dist/ui/alert.mjs +7 -211
  121. package/dist/ui/alert.mjs.map +1 -1
  122. package/dist/ui/avatar/animated.d.mts +22 -0
  123. package/dist/ui/avatar/animated.d.ts +22 -0
  124. package/dist/ui/avatar/animated.js +51 -0
  125. package/dist/ui/avatar/animated.js.map +1 -0
  126. package/dist/ui/avatar/animated.mjs +37 -0
  127. package/dist/ui/avatar/animated.mjs.map +1 -0
  128. package/dist/ui/avatar.d.mts +7 -53
  129. package/dist/ui/avatar.d.ts +7 -53
  130. package/dist/ui/avatar.js +32 -210
  131. package/dist/ui/avatar.js.map +1 -1
  132. package/dist/ui/avatar.mjs +7 -204
  133. package/dist/ui/avatar.mjs.map +1 -1
  134. package/dist/ui/badge/animated.d.mts +22 -0
  135. package/dist/ui/badge/animated.d.ts +22 -0
  136. package/dist/ui/badge/animated.js +50 -0
  137. package/dist/ui/badge/animated.js.map +1 -0
  138. package/dist/ui/badge/animated.mjs +47 -0
  139. package/dist/ui/badge/animated.mjs.map +1 -0
  140. package/dist/ui/badge.d.mts +6 -30
  141. package/dist/ui/badge.d.ts +6 -30
  142. package/dist/ui/badge.js +11 -142
  143. package/dist/ui/badge.js.map +1 -1
  144. package/dist/ui/badge.mjs +6 -141
  145. package/dist/ui/badge.mjs.map +1 -1
  146. package/dist/ui/buttons/animated.d.mts +27 -0
  147. package/dist/ui/buttons/animated.d.ts +27 -0
  148. package/dist/ui/buttons/animated.js +101 -0
  149. package/dist/ui/buttons/animated.js.map +1 -0
  150. package/dist/ui/buttons/animated.mjs +98 -0
  151. package/dist/ui/buttons/animated.mjs.map +1 -0
  152. package/dist/ui/buttons.d.mts +5 -13
  153. package/dist/ui/buttons.d.ts +5 -13
  154. package/dist/ui/buttons.js +7 -45
  155. package/dist/ui/buttons.js.map +1 -1
  156. package/dist/ui/buttons.mjs +8 -45
  157. package/dist/ui/buttons.mjs.map +1 -1
  158. package/dist/ui/card/animated.d.mts +23 -0
  159. package/dist/ui/card/animated.d.ts +23 -0
  160. package/dist/ui/card/animated.js +72 -0
  161. package/dist/ui/card/animated.js.map +1 -0
  162. package/dist/ui/card/animated.mjs +50 -0
  163. package/dist/ui/card/animated.mjs.map +1 -0
  164. package/dist/ui/card.d.mts +6 -70
  165. package/dist/ui/card.d.ts +6 -70
  166. package/dist/ui/card.js +43 -245
  167. package/dist/ui/card.js.map +1 -1
  168. package/dist/ui/card.mjs +5 -235
  169. package/dist/ui/card.mjs.map +1 -1
  170. package/dist/ui/divider/animated.d.mts +19 -0
  171. package/dist/ui/divider/animated.d.ts +19 -0
  172. package/dist/ui/divider/animated.js +41 -0
  173. package/dist/ui/divider/animated.js.map +1 -0
  174. package/dist/ui/divider/animated.mjs +39 -0
  175. package/dist/ui/divider/animated.mjs.map +1 -0
  176. package/dist/ui/divider.d.mts +6 -32
  177. package/dist/ui/divider.d.ts +6 -32
  178. package/dist/ui/divider.js +19 -186
  179. package/dist/ui/divider.js.map +1 -1
  180. package/dist/ui/divider.mjs +6 -183
  181. package/dist/ui/divider.mjs.map +1 -1
  182. package/dist/ui/drawer/animated.d.mts +23 -0
  183. package/dist/ui/drawer/animated.d.ts +23 -0
  184. package/dist/ui/drawer/animated.js +143 -0
  185. package/dist/ui/drawer/animated.js.map +1 -0
  186. package/dist/ui/drawer/animated.mjs +113 -0
  187. package/dist/ui/drawer/animated.mjs.map +1 -0
  188. package/dist/ui/drawer.d.mts +10 -11
  189. package/dist/ui/drawer.d.ts +10 -11
  190. package/dist/ui/drawer.js +44 -357
  191. package/dist/ui/drawer.js.map +1 -1
  192. package/dist/ui/drawer.mjs +3 -349
  193. package/dist/ui/drawer.mjs.map +1 -1
  194. package/dist/ui/empty-state/animated.d.mts +24 -0
  195. package/dist/ui/empty-state/animated.d.ts +24 -0
  196. package/dist/ui/empty-state/animated.js +45 -0
  197. package/dist/ui/empty-state/animated.js.map +1 -0
  198. package/dist/ui/empty-state/animated.mjs +42 -0
  199. package/dist/ui/empty-state/animated.mjs.map +1 -0
  200. package/dist/ui/empty-state.d.mts +11 -32
  201. package/dist/ui/empty-state.d.ts +11 -32
  202. package/dist/ui/empty-state.js +35 -160
  203. package/dist/ui/empty-state.js.map +1 -1
  204. package/dist/ui/empty-state.mjs +5 -153
  205. package/dist/ui/empty-state.mjs.map +1 -1
  206. package/dist/ui/inputs/animated.d.mts +27 -0
  207. package/dist/ui/inputs/animated.d.ts +27 -0
  208. package/dist/ui/inputs/animated.js +141 -0
  209. package/dist/ui/inputs/animated.js.map +1 -0
  210. package/dist/ui/inputs/animated.mjs +138 -0
  211. package/dist/ui/inputs/animated.mjs.map +1 -0
  212. package/dist/ui/inputs.d.mts +7 -21
  213. package/dist/ui/inputs.d.ts +7 -21
  214. package/dist/ui/inputs.js +16 -331
  215. package/dist/ui/inputs.js.map +1 -1
  216. package/dist/ui/inputs.mjs +13 -329
  217. package/dist/ui/inputs.mjs.map +1 -1
  218. package/dist/ui/modal/animated.d.mts +21 -0
  219. package/dist/ui/modal/animated.d.ts +21 -0
  220. package/dist/ui/modal/animated.js +120 -0
  221. package/dist/ui/modal/animated.js.map +1 -0
  222. package/dist/ui/modal/animated.mjs +117 -0
  223. package/dist/ui/modal/animated.mjs.map +1 -0
  224. package/dist/ui/modal.d.mts +10 -48
  225. package/dist/ui/modal.d.ts +10 -48
  226. package/dist/ui/modal.js +47 -361
  227. package/dist/ui/modal.js.map +1 -1
  228. package/dist/ui/modal.mjs +9 -351
  229. package/dist/ui/modal.mjs.map +1 -1
  230. package/dist/ui/progress/animated.d.mts +41 -0
  231. package/dist/ui/progress/animated.d.ts +41 -0
  232. package/dist/ui/progress/animated.js +123 -0
  233. package/dist/ui/progress/animated.js.map +1 -0
  234. package/dist/ui/progress/animated.mjs +112 -0
  235. package/dist/ui/progress/animated.mjs.map +1 -0
  236. package/dist/ui/progress.d.mts +10 -58
  237. package/dist/ui/progress.d.ts +10 -58
  238. package/dist/ui/progress.js +35 -227
  239. package/dist/ui/progress.js.map +1 -1
  240. package/dist/ui/progress.mjs +10 -222
  241. package/dist/ui/progress.mjs.map +1 -1
  242. package/dist/ui/skeleton/animated.d.mts +56 -0
  243. package/dist/ui/skeleton/animated.d.ts +56 -0
  244. package/dist/ui/skeleton/animated.js +126 -0
  245. package/dist/ui/skeleton/animated.js.map +1 -0
  246. package/dist/ui/skeleton/animated.mjs +119 -0
  247. package/dist/ui/skeleton/animated.mjs.map +1 -0
  248. package/dist/ui/skeleton.d.mts +16 -77
  249. package/dist/ui/skeleton.d.ts +16 -77
  250. package/dist/ui/skeleton.js +35 -526
  251. package/dist/ui/skeleton.js.map +1 -1
  252. package/dist/ui/skeleton.mjs +2 -520
  253. package/dist/ui/skeleton.mjs.map +1 -1
  254. package/dist/ui/{spinner.d.mts → spinner/animated.d.mts} +1 -6
  255. package/dist/ui/{spinner.d.ts → spinner/animated.d.ts} +1 -6
  256. package/dist/ui/{spinner.js → spinner/animated.js} +3 -9
  257. package/dist/ui/spinner/animated.js.map +1 -0
  258. package/dist/ui/{spinner.mjs → spinner/animated.mjs} +4 -9
  259. package/dist/ui/spinner/animated.mjs.map +1 -0
  260. package/dist/ui/table/animated.d.mts +21 -0
  261. package/dist/ui/table/animated.d.ts +21 -0
  262. package/dist/ui/table/animated.js +50 -0
  263. package/dist/ui/table/animated.js.map +1 -0
  264. package/dist/ui/table/animated.mjs +24 -0
  265. package/dist/ui/table/animated.mjs.map +1 -0
  266. package/dist/ui/table.d.mts +17 -11
  267. package/dist/ui/table.d.ts +17 -11
  268. package/dist/ui/table.js +55 -278
  269. package/dist/ui/table.js.map +1 -1
  270. package/dist/ui/table.mjs +2 -269
  271. package/dist/ui/table.mjs.map +1 -1
  272. package/dist/ui/tabs/animated.d.mts +25 -0
  273. package/dist/ui/tabs/animated.d.ts +25 -0
  274. package/dist/ui/tabs/animated.js +83 -0
  275. package/dist/ui/tabs/animated.js.map +1 -0
  276. package/dist/ui/tabs/animated.mjs +79 -0
  277. package/dist/ui/tabs/animated.mjs.map +1 -0
  278. package/dist/ui/tabs.d.mts +7 -41
  279. package/dist/ui/tabs.d.ts +7 -41
  280. package/dist/ui/tabs.js +35 -261
  281. package/dist/ui/tabs.js.map +1 -1
  282. package/dist/ui/tabs.mjs +2 -256
  283. package/dist/ui/tabs.mjs.map +1 -1
  284. package/dist/ui/toast/animated.d.mts +23 -0
  285. package/dist/ui/toast/animated.d.ts +23 -0
  286. package/dist/ui/toast/animated.js +103 -0
  287. package/dist/ui/toast/animated.js.map +1 -0
  288. package/dist/ui/toast/animated.mjs +99 -0
  289. package/dist/ui/toast/animated.mjs.map +1 -0
  290. package/dist/ui/toast.d.mts +7 -52
  291. package/dist/ui/toast.d.ts +7 -52
  292. package/dist/ui/toast.js +47 -268
  293. package/dist/ui/toast.js.map +1 -1
  294. package/dist/ui/toast.mjs +2 -259
  295. package/dist/ui/toast.mjs.map +1 -1
  296. package/dist/ui/toggle/animated.d.mts +22 -0
  297. package/dist/ui/toggle/animated.d.ts +22 -0
  298. package/dist/ui/toggle/animated.js +88 -0
  299. package/dist/ui/toggle/animated.js.map +1 -0
  300. package/dist/ui/toggle/animated.mjs +85 -0
  301. package/dist/ui/toggle/animated.mjs.map +1 -0
  302. package/dist/ui/toggle.d.mts +6 -30
  303. package/dist/ui/toggle.d.ts +6 -30
  304. package/dist/ui/toggle.js +19 -83
  305. package/dist/ui/toggle.js.map +1 -1
  306. package/dist/ui/toggle.mjs +12 -80
  307. package/dist/ui/toggle.mjs.map +1 -1
  308. package/dist/ui/tooltip/animated.d.mts +17 -0
  309. package/dist/ui/tooltip/animated.d.ts +17 -0
  310. package/dist/ui/tooltip/animated.js +59 -0
  311. package/dist/ui/tooltip/animated.js.map +1 -0
  312. package/dist/ui/tooltip/animated.mjs +56 -0
  313. package/dist/ui/tooltip/animated.mjs.map +1 -0
  314. package/dist/ui/tooltip.d.mts +6 -33
  315. package/dist/ui/tooltip.d.ts +6 -33
  316. package/dist/ui/tooltip.js +26 -193
  317. package/dist/ui/tooltip.js.map +1 -1
  318. package/dist/ui/tooltip.mjs +2 -192
  319. package/dist/ui/tooltip.mjs.map +1 -1
  320. package/dist/variants-CYODHI8b.d.mts +10 -0
  321. package/dist/variants-CYODHI8b.d.ts +10 -0
  322. package/package.json +7 -4
  323. package/dist/ui/spinner.js.map +0 -1
  324. package/dist/ui/spinner.mjs.map +0 -1
package/README.md CHANGED
@@ -4,19 +4,33 @@ A React UI kit for building product interfaces with Tailwind CSS. Components are
4
4
 
5
5
  ## Overview
6
6
 
7
- The library targets **React 18+** apps that use **Tailwind CSS v4** (or an equivalent setup where Tailwind can scan this package via `@source`). Styling uses utility classes; **class-variance-authority** powers variant APIs (size, appearance, and similar props), with **clsx** and **tailwind-merge** for predictable `className` composition. **Framer Motion** backs motion where components animate, and **react-icons** is used for iconography where applicable.
7
+ The library targets **React 18+** apps that use **Tailwind CSS v4** (or an equivalent setup where Tailwind can scan this package via `@source`). Styling uses utility classes; **class-variance-authority** powers variant APIs (size, appearance, and similar props), with **clsx** and **tailwind-merge** for predictable `className` composition. **Framer Motion** backs motion where a feature ships animated variants, and **react-icons** is used for iconography where applicable.
8
8
 
9
- Published artifacts live under `dist/`. Imports use **per-entry subpaths**: `@zentauri-ui/zentauri-components/ui/<area>` for components and `@zentauri-ui/zentauri-components/hooks/<entry>` for React hooks (and shared helpers under `hooks/utils`). Each entry resolves to its own ESM (`.mjs`), CJS (`.js`), and types (`.d.ts`) so bundlers pull only what you import. Most apps rely on Tailwind scanning the package sources (see installation); a separate CSS import is not required for that setup.
9
+ Published artifacts live under `dist/`. Imports use **per-entry subpaths**: `@zentauri-ui/zentauri-components/ui/<area>` for static UI, `@zentauri-ui/zentauri-components/ui/<area>/animated` where a motion bundle exists, and `@zentauri-ui/zentauri-components/hooks/<entry>` for React hooks (and shared helpers under `hooks/utils`). Base UI entries do **not** re-export animated components; motion lives on its own entry so optional `framer-motion` usage stays tree-shakeable and chunk-friendly. Each entry resolves to its own ESM (`.mjs`), CJS (`.js`), and types (`.d.ts`) so bundlers pull only what you import. Most apps rely on Tailwind scanning the package sources (see installation); a separate CSS import is not required for that setup.
10
10
 
11
11
  ## Package exports
12
12
 
13
13
  | Subpath | Description |
14
14
  | ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
15
- | `@zentauri-ui/zentauri-components/ui/<name>` | Single UI area: components (and any re-exports from that area’s `index`, e.g. `usePagination` from `ui/pagination`). |
15
+ | `@zentauri-ui/zentauri-components/ui/<name>` | Single UI area: static primitives, compound parts, variants, and types. Does **not** include Framer Motion–based animated exports. |
16
+ | `@zentauri-ui/zentauri-components/ui/<name>/animated` | Motion entry for that area when published: animated components, motion presets, and related types (depends on **framer-motion**). |
16
17
  | `@zentauri-ui/zentauri-components/hooks/<entry>` | One hook module or `utils` (`cn`, `clampPage`, `range` from `src/lib/utils.ts`). Entries match files under `src/hooks/` (see **React hooks**). |
17
18
 
18
19
  The UI `<name>` segment matches the folder under `src/ui/` (for example `accordion`, `select`, `empty-state`, `buttons` for `Button`, `inputs` for `Input`). The hooks `<entry>` is the file stem (for example `useMediaQuery`, `usePagination`) or `utils`.
19
20
 
21
+ Only a subset of UI areas publish a `/animated` entry (see **Components**). Some motion entries also re-export non-motion pieces from the same feature so you can import one motion subpath for a whole flow; others pair a base `ui/<name>` import with a small set of `*Animated` exports from `ui/<name>/animated`—use the `animated/index.ts` for that area as the source of truth.
22
+
23
+ ## Animated components (`ui/<name>/animated`)
24
+
25
+ - **Why a separate subpath:** animated modules import **framer-motion**. Keeping them on `…/ui/<name>/animated` avoids pulling motion into pages that only use the static `…/ui/<name>` entry and keeps server/client boundaries predictable in app routers.
26
+ - **When to install `framer-motion`:** add it when your app imports any `@zentauri-ui/zentauri-components/ui/*/animated` path (see **Optional: animations and icons** under installation).
27
+
28
+ Published motion entries (same `<name>` as the base UI folder):
29
+
30
+ `accordion`, `alert`, `avatar`, `badge`, `buttons`, `card`, `divider`, `drawer`, `empty-state`, `inputs`, `modal`, `progress`, `skeleton`, `spinner`, `table`, `tabs`, `toast`, `toggle`, `tooltip`
31
+
32
+ **Spinner:** only the motion entry is built—import from `@zentauri-ui/zentauri-components/ui/spinner/animated` (there is no separate `ui/spinner` static bundle).
33
+
20
34
  ## Requirements
21
35
 
22
36
  - **React** and **React DOM** `>= 18` (peer dependencies)
@@ -24,36 +38,36 @@ The UI `<name>` segment matches the folder under `src/ui/` (for example `accordi
24
38
 
25
39
  ## Components
26
40
 
27
- Each area is available from its own subpath (`…/ui/<subpath>`):
28
-
29
- | Area | Subpath `…/ui/…` |
30
- | -------------- | ---------------- |
31
- | Accordion | `accordion` |
32
- | Alert | `alert` |
33
- | Avatar | `avatar` |
34
- | Badge | `badge` |
35
- | Breadcrumb | `breadcrumb` |
36
- | Button | `buttons` |
37
- | Card | `card` |
38
- | Divider | `divider` |
39
- | Drawer | `drawer` |
40
- | Dropdown | `dropdown` |
41
- | Empty state | `empty-state` |
42
- | File upload | `file-upload` |
43
- | Input | `inputs` |
44
- | Modal | `modal` |
45
- | Pagination | `pagination` |
46
- | Progress | `progress` |
47
- | Select | `select` |
48
- | Skeleton | `skeleton` |
49
- | Slider | `slider` |
50
- | Spinner | `spinner` |
51
- | Stepper | `stepper` |
52
- | Table | `table` |
53
- | Tabs | `tabs` |
54
- | Toast | `toast` |
55
- | Toggle | `toggle` |
56
- | Tooltip | `tooltip` |
41
+ Import static primitives from `@zentauri-ui/zentauri-components/ui/<subpath>` when the **Base** column lists a path. When the **Animated** column lists a path, motion components and preset helpers come from `@zentauri-ui/zentauri-components/ui/<subpath>/animated` (they are not exported from the base entry). **Spinner** has no static bundle—use only the animated subpath.
42
+
43
+ | Area | Base subpath `…/ui/…` | Animated subpath `…/ui/…/animated` |
44
+ | -------------- | --------------------- | ------------------------------------ |
45
+ | Accordion | `accordion` | `accordion/animated` |
46
+ | Alert | `alert` | `alert/animated` |
47
+ | Avatar | `avatar` | `avatar/animated` |
48
+ | Badge | `badge` | `badge/animated` |
49
+ | Breadcrumb | `breadcrumb` | — |
50
+ | Button | `buttons` | `buttons/animated` |
51
+ | Card | `card` | `card/animated` |
52
+ | Divider | `divider` | `divider/animated` |
53
+ | Drawer | `drawer` | `drawer/animated` |
54
+ | Dropdown | `dropdown` | — |
55
+ | Empty state | `empty-state` | `empty-state/animated` |
56
+ | File upload | `file-upload` | — |
57
+ | Input | `inputs` | `inputs/animated` |
58
+ | Modal | `modal` | `modal/animated` |
59
+ | Pagination | `pagination` | — |
60
+ | Progress | `progress` | `progress/animated` |
61
+ | Select | `select` | — |
62
+ | Skeleton | `skeleton` | `skeleton/animated` |
63
+ | Slider | `slider` | — |
64
+ | Spinner | — | `spinner/animated` |
65
+ | Stepper | `stepper` | — |
66
+ | Table | `table` | `table/animated` |
67
+ | Tabs | `tabs` | `tabs/animated` |
68
+ | Toast | `toast` | `toast/animated` |
69
+ | Toggle | `toggle` | `toggle/animated` |
70
+ | Tooltip | `tooltip` | `tooltip/animated` |
57
71
 
58
72
  ## React hooks
59
73
 
@@ -104,7 +118,7 @@ Some UI packages re-export the hook that belongs to that component (for example
104
118
 
105
119
  ## Installation
106
120
 
107
- **Getting started** — Add the package, install peer dependencies so primitives resolve correctly, point Tailwind at the library sources, then import from `ui/<name>` and/or `hooks/<entry>` subpaths.
121
+ **Getting started** — Add the package, install peer dependencies so primitives resolve correctly, point Tailwind at the library sources, then import from `ui/<name>` (static), `ui/<name>/animated` (motion, when published), and/or `hooks/<entry>` subpaths.
108
122
 
109
123
  ### Step 1 — Install the package
110
124
 
@@ -140,7 +154,7 @@ yarn add react react-dom class-variance-authority clsx tailwind-merge
140
154
 
141
155
  #### Optional: animations and icons
142
156
 
143
- Add `framer-motion` when using motion-based UI, and `react-icons` when using icon sets from that package.
157
+ Add **`framer-motion`** when you import any `@zentauri-ui/zentauri-components/ui/<name>/animated` entry (including **Spinner**, which is only published under `ui/spinner/animated`). Add **`react-icons`** when using icon sets from that package.
144
158
 
145
159
  ```bash
146
160
  npm install framer-motion react-icons
@@ -154,7 +168,7 @@ pnpm add framer-motion react-icons
154
168
  yarn add framer-motion react-icons
155
169
  ```
156
170
 
157
- Published `dist/` files **import** these packages; they are **not** vendored inside `@zentauri-ui/zentauri-components`. Your app installs them via `dependencies` (or optional peers above), and your bundler resolves them from `node_modules`.
171
+ Published `dist/` files **import** these packages; they are **not** vendored inside `@zentauri-ui/zentauri-components`. Static `ui/<name>` bundles do not depend on `framer-motion`; only `ui/<name>/animated` entries do. Your app installs peers via `dependencies` where needed, and your bundler resolves them from `node_modules`.
158
172
 
159
173
  ### Next.js: smaller route chunks
160
174
 
@@ -184,7 +198,7 @@ Add an `@source` entry so Tailwind scans class names inside `@zentauri-ui/zentau
184
198
 
185
199
  ### Step 4 — Import and use components and hooks
186
200
 
187
- Use **one subpath per UI area** and **one subpath per hook module** so the bundler resolves only the entries you use.
201
+ Use **one subpath per UI area** (static and animated are separate entries: `ui/<name>` vs `ui/<name>/animated`) and **one subpath per hook module** so the bundler resolves only the entries you use.
188
202
 
189
203
  #### Imports (single UI area)
190
204
 
@@ -217,6 +231,17 @@ import { useDisclosure } from "@zentauri-ui/zentauri-components/hooks/useDisclos
217
231
  import { Button } from "@zentauri-ui/zentauri-components/ui/buttons";
218
232
  ```
219
233
 
234
+ #### Imports (animated / Framer Motion)
235
+
236
+ Use the `/animated` subpath for motion components and preset helpers. You can import static and motion entries from the same feature in one file when you compose them (names and re-exports differ per area).
237
+
238
+ ```tsx
239
+ import { Button } from "@zentauri-ui/zentauri-components/ui/buttons";
240
+ import { ButtonAnimated } from "@zentauri-ui/zentauri-components/ui/buttons/animated";
241
+
242
+ import { Spinner } from "@zentauri-ui/zentauri-components/ui/spinner/animated";
243
+ ```
244
+
220
245
  #### Usage
221
246
 
222
247
  ```tsx
@@ -255,10 +280,13 @@ https://zentauri-ui.vercel.app/
255
280
 
256
281
  From this package directory in the monorepo:
257
282
 
258
- - `pnpm build` (or `npm run build`) — production bundle via `tsup` (Rollup treeshake + `scripts/prepend-use-client.mjs` via `onSuccess` so each `dist/ui/*.mjs` / `*.js` entry starts with `"use client"`)
283
+ - `pnpm build` (or `npm run build`) — production bundle via `tsup` (Rollup treeshake + `scripts/prepend-use-client.mjs` via `onSuccess` so each UI entry under `dist/ui/`, including `dist/ui/<name>/animated.*`, starts with `"use client"` where needed)
259
284
  - `pnpm dev` — `tsup` watch mode (same `onSuccess` hook after each rebuild)
260
285
  - `pnpm test` / `pnpm test:watch` — **Vitest** and **Testing Library** unit tests
261
286
 
287
+ ## Github Release log
288
+ https://github.com/ShubhamTiwari909/zentauri-ui/releases
289
+
262
290
  ## NOTE:
263
291
 
264
292
  This package is in initial phase of development and you might see some minor or major breaking changes in the future. If you want to contribute to this project, email me at @shubhmtiwri00@gmail.com or ping me on linkeded https://www.linkedin.com/in/shubham-tiwari-b7544b193/
@@ -0,0 +1,66 @@
1
+ import { Transition } from 'framer-motion';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { ReactNode, HTMLAttributes, Ref } from 'react';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+
7
+ /** Easing and duration presets for accordion panel open/close (opacity only). */
8
+ type AccordionTransition = "none" | "default" | "smooth" | "slow";
9
+ type AccordionTransitionPresets = Record<AccordionTransition, Transition>;
10
+ declare const accordionContentTransitionPresets: AccordionTransitionPresets;
11
+
12
+ declare const accordionVariants: (props?: ({
13
+ appearance?: "default" | "outline" | "ghost" | "card" | "separated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
14
+ size?: "sm" | "md" | "lg" | null | undefined;
15
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
16
+ declare const accordionItemVariants: (props?: ({
17
+ appearance?: "default" | "outline" | "ghost" | "card" | "separated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
18
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
19
+ declare const accordionTriggerVariants: (props?: ({
20
+ size?: "sm" | "md" | "lg" | null | undefined;
21
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
22
+ declare const accordionContentVariants: (props?: ({
23
+ size?: "sm" | "md" | "lg" | null | undefined;
24
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
25
+
26
+ type AccordionVariantProps = VariantProps<typeof accordionVariants>;
27
+ type AccordionType = "single" | "multiple";
28
+ type AccordionBaseProps = AccordionVariantProps & {
29
+ type?: AccordionType;
30
+ /** Controlled value for `single` mode. */
31
+ value?: string;
32
+ /** Controlled values for `multiple` mode. */
33
+ values?: string[];
34
+ defaultValue?: string;
35
+ defaultValues?: string[];
36
+ onValueChange?: (value: string | undefined) => void;
37
+ onValuesChange?: (values: string[]) => void;
38
+ className?: string;
39
+ children?: ReactNode;
40
+ };
41
+ type AccordionProps = AccordionBaseProps;
42
+ type AccordionItemProps = HTMLAttributes<HTMLDivElement> & {
43
+ value: string;
44
+ ref?: Ref<HTMLDivElement>;
45
+ };
46
+ type AccordionTriggerProps = HTMLAttributes<HTMLButtonElement> & {
47
+ ref?: Ref<HTMLButtonElement>;
48
+ };
49
+ type AccordionContentProps = HTMLAttributes<HTMLDivElement> & {
50
+ ref?: Ref<HTMLDivElement>;
51
+ };
52
+
53
+ declare function AccordionItem({ className, value, children, ref, ...rest }: AccordionItemProps): react_jsx_runtime.JSX.Element;
54
+ declare namespace AccordionItem {
55
+ var displayName: string;
56
+ }
57
+ declare function AccordionTrigger({ className, children, ref, ...rest }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
58
+ declare namespace AccordionTrigger {
59
+ var displayName: string;
60
+ }
61
+ declare function AccordionContent({ className, children, ref, }: AccordionContentProps): react_jsx_runtime.JSX.Element | null;
62
+ declare namespace AccordionContent {
63
+ var displayName: string;
64
+ }
65
+
66
+ export { type AccordionProps as A, type AccordionBaseProps as a, AccordionContent as b, type AccordionContentProps as c, AccordionItem as d, type AccordionItemProps as e, type AccordionTransition as f, AccordionTrigger as g, type AccordionTriggerProps as h, type AccordionType as i, accordionContentVariants as j, accordionItemVariants as k, accordionTriggerVariants as l, accordionVariants as m, accordionContentTransitionPresets as n };
@@ -0,0 +1,66 @@
1
+ import { Transition } from 'framer-motion';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { ReactNode, HTMLAttributes, Ref } from 'react';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+
7
+ /** Easing and duration presets for accordion panel open/close (opacity only). */
8
+ type AccordionTransition = "none" | "default" | "smooth" | "slow";
9
+ type AccordionTransitionPresets = Record<AccordionTransition, Transition>;
10
+ declare const accordionContentTransitionPresets: AccordionTransitionPresets;
11
+
12
+ declare const accordionVariants: (props?: ({
13
+ appearance?: "default" | "outline" | "ghost" | "card" | "separated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
14
+ size?: "sm" | "md" | "lg" | null | undefined;
15
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
16
+ declare const accordionItemVariants: (props?: ({
17
+ appearance?: "default" | "outline" | "ghost" | "card" | "separated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
18
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
19
+ declare const accordionTriggerVariants: (props?: ({
20
+ size?: "sm" | "md" | "lg" | null | undefined;
21
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
22
+ declare const accordionContentVariants: (props?: ({
23
+ size?: "sm" | "md" | "lg" | null | undefined;
24
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
25
+
26
+ type AccordionVariantProps = VariantProps<typeof accordionVariants>;
27
+ type AccordionType = "single" | "multiple";
28
+ type AccordionBaseProps = AccordionVariantProps & {
29
+ type?: AccordionType;
30
+ /** Controlled value for `single` mode. */
31
+ value?: string;
32
+ /** Controlled values for `multiple` mode. */
33
+ values?: string[];
34
+ defaultValue?: string;
35
+ defaultValues?: string[];
36
+ onValueChange?: (value: string | undefined) => void;
37
+ onValuesChange?: (values: string[]) => void;
38
+ className?: string;
39
+ children?: ReactNode;
40
+ };
41
+ type AccordionProps = AccordionBaseProps;
42
+ type AccordionItemProps = HTMLAttributes<HTMLDivElement> & {
43
+ value: string;
44
+ ref?: Ref<HTMLDivElement>;
45
+ };
46
+ type AccordionTriggerProps = HTMLAttributes<HTMLButtonElement> & {
47
+ ref?: Ref<HTMLButtonElement>;
48
+ };
49
+ type AccordionContentProps = HTMLAttributes<HTMLDivElement> & {
50
+ ref?: Ref<HTMLDivElement>;
51
+ };
52
+
53
+ declare function AccordionItem({ className, value, children, ref, ...rest }: AccordionItemProps): react_jsx_runtime.JSX.Element;
54
+ declare namespace AccordionItem {
55
+ var displayName: string;
56
+ }
57
+ declare function AccordionTrigger({ className, children, ref, ...rest }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
58
+ declare namespace AccordionTrigger {
59
+ var displayName: string;
60
+ }
61
+ declare function AccordionContent({ className, children, ref, }: AccordionContentProps): react_jsx_runtime.JSX.Element | null;
62
+ declare namespace AccordionContent {
63
+ var displayName: string;
64
+ }
65
+
66
+ export { type AccordionProps as A, type AccordionBaseProps as a, AccordionContent as b, type AccordionContentProps as c, AccordionItem as d, type AccordionItemProps as e, type AccordionTransition as f, AccordionTrigger as g, type AccordionTriggerProps as h, type AccordionType as i, accordionContentVariants as j, accordionItemVariants as k, accordionTriggerVariants as l, accordionVariants as m, accordionContentTransitionPresets as n };
@@ -0,0 +1,49 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentPropsWithRef, ElementType, ComponentPropsWithoutRef, Ref } from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+
6
+ declare const avatarVariants: (props?: ({
7
+ appearance?: "default" | "muted" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ declare const avatarImageVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
11
+ declare const avatarFallbackVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
12
+ declare const avatarGroupVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
13
+
14
+ type AvatarVariantProps = VariantProps<typeof avatarVariants>;
15
+ interface AvatarBaseProps extends ComponentPropsWithRef<"span"> {
16
+ size?: AvatarVariantProps["size"];
17
+ appearance?: AvatarVariantProps["appearance"];
18
+ as?: ElementType;
19
+ }
20
+ type AvatarProps = Omit<AvatarBaseProps, "as">;
21
+ type AvatarImageProps = ComponentPropsWithoutRef<"img">;
22
+ type AvatarFallbackProps = ComponentPropsWithoutRef<"span"> & {
23
+ delayMs?: number;
24
+ };
25
+ type AvatarGroupProps = ComponentPropsWithoutRef<"div"> & {
26
+ /** Max avatars before +N overflow label */
27
+ max?: number;
28
+ };
29
+
30
+ declare function AvatarImage({ className, onLoad, onError, ref, ...rest }: AvatarImageProps & {
31
+ ref?: Ref<HTMLImageElement>;
32
+ }): react_jsx_runtime.JSX.Element;
33
+ declare namespace AvatarImage {
34
+ var displayName: string;
35
+ }
36
+ declare function AvatarFallback({ className, delayMs, ref, ...rest }: AvatarFallbackProps & {
37
+ ref?: Ref<HTMLSpanElement>;
38
+ }): react_jsx_runtime.JSX.Element | null;
39
+ declare namespace AvatarFallback {
40
+ var displayName: string;
41
+ }
42
+ declare function AvatarGroup({ className, max, children, ref, ...rest }: AvatarGroupProps & {
43
+ ref?: Ref<HTMLDivElement>;
44
+ }): react_jsx_runtime.JSX.Element;
45
+ declare namespace AvatarGroup {
46
+ var displayName: string;
47
+ }
48
+
49
+ export { type AvatarProps as A, type AvatarBaseProps as a, AvatarFallback as b, type AvatarFallbackProps as c, AvatarGroup as d, type AvatarGroupProps as e, AvatarImage as f, type AvatarImageProps as g, avatarFallbackVariants as h, avatarGroupVariants as i, avatarImageVariants as j, avatarVariants as k };
@@ -0,0 +1,49 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentPropsWithRef, ElementType, ComponentPropsWithoutRef, Ref } from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+
6
+ declare const avatarVariants: (props?: ({
7
+ appearance?: "default" | "muted" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ declare const avatarImageVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
11
+ declare const avatarFallbackVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
12
+ declare const avatarGroupVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
13
+
14
+ type AvatarVariantProps = VariantProps<typeof avatarVariants>;
15
+ interface AvatarBaseProps extends ComponentPropsWithRef<"span"> {
16
+ size?: AvatarVariantProps["size"];
17
+ appearance?: AvatarVariantProps["appearance"];
18
+ as?: ElementType;
19
+ }
20
+ type AvatarProps = Omit<AvatarBaseProps, "as">;
21
+ type AvatarImageProps = ComponentPropsWithoutRef<"img">;
22
+ type AvatarFallbackProps = ComponentPropsWithoutRef<"span"> & {
23
+ delayMs?: number;
24
+ };
25
+ type AvatarGroupProps = ComponentPropsWithoutRef<"div"> & {
26
+ /** Max avatars before +N overflow label */
27
+ max?: number;
28
+ };
29
+
30
+ declare function AvatarImage({ className, onLoad, onError, ref, ...rest }: AvatarImageProps & {
31
+ ref?: Ref<HTMLImageElement>;
32
+ }): react_jsx_runtime.JSX.Element;
33
+ declare namespace AvatarImage {
34
+ var displayName: string;
35
+ }
36
+ declare function AvatarFallback({ className, delayMs, ref, ...rest }: AvatarFallbackProps & {
37
+ ref?: Ref<HTMLSpanElement>;
38
+ }): react_jsx_runtime.JSX.Element | null;
39
+ declare namespace AvatarFallback {
40
+ var displayName: string;
41
+ }
42
+ declare function AvatarGroup({ className, max, children, ref, ...rest }: AvatarGroupProps & {
43
+ ref?: Ref<HTMLDivElement>;
44
+ }): react_jsx_runtime.JSX.Element;
45
+ declare namespace AvatarGroup {
46
+ var displayName: string;
47
+ }
48
+
49
+ export { type AvatarProps as A, type AvatarBaseProps as a, AvatarFallback as b, type AvatarFallbackProps as c, AvatarGroup as d, type AvatarGroupProps as e, AvatarImage as f, type AvatarImageProps as g, avatarFallbackVariants as h, avatarGroupVariants as i, avatarImageVariants as j, avatarVariants as k };
@@ -0,0 +1,70 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { ComponentPropsWithRef, ElementType, ReactNode, Ref, HTMLAttributes } from 'react';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+
6
+ declare const cardVariants: (props?: ({
7
+ appearance?: "default" | "glass" | "outline" | "ghost" | "elevated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | null | undefined;
9
+ rounded?: "sm" | "md" | "lg" | "full" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ declare const cardHeaderVariants: (props?: ({
12
+ size?: "sm" | "md" | "lg" | null | undefined;
13
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
14
+ declare const cardFooterVariants: (props?: ({
15
+ size?: "sm" | "md" | "lg" | null | undefined;
16
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
17
+ declare const cardTitleVariants: (props?: ({
18
+ size?: "sm" | "md" | "lg" | null | undefined;
19
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
20
+ declare const cardDescriptionVariants: (props?: ({
21
+ size?: "sm" | "md" | "lg" | null | undefined;
22
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
23
+
24
+ type CardVariantProps = VariantProps<typeof cardVariants>;
25
+ interface CardBaseProps extends ComponentPropsWithRef<"article"> {
26
+ appearance?: CardVariantProps["appearance"];
27
+ size?: CardVariantProps["size"];
28
+ rounded?: CardVariantProps["rounded"];
29
+ as?: ElementType;
30
+ }
31
+ type CardProps = Omit<CardBaseProps, "as">;
32
+ type CardSectionProps = {
33
+ className?: string;
34
+ children?: ReactNode;
35
+ };
36
+ type CardTitleProps = {
37
+ as?: "h2" | "h3" | "h4" | "h5" | "h6";
38
+ className?: string;
39
+ children?: ReactNode;
40
+ ref?: Ref<HTMLHeadingElement>;
41
+ } & Omit<HTMLAttributes<HTMLHeadingElement>, "className" | "children">;
42
+ type CardDescriptionProps = {
43
+ as?: "p" | "span" | "div";
44
+ className?: string;
45
+ children?: ReactNode;
46
+ ref?: Ref<HTMLElement>;
47
+ } & Omit<HTMLAttributes<HTMLElement>, "className" | "children">;
48
+
49
+ declare function CardHeader({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
50
+ declare namespace CardHeader {
51
+ var displayName: string;
52
+ }
53
+ declare function CardBody({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
54
+ declare namespace CardBody {
55
+ var displayName: string;
56
+ }
57
+ declare function CardFooter({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
58
+ declare namespace CardFooter {
59
+ var displayName: string;
60
+ }
61
+ declare function CardTitle({ className, children, as, ref, ...rest }: CardTitleProps): react_jsx_runtime.JSX.Element;
62
+ declare namespace CardTitle {
63
+ var displayName: string;
64
+ }
65
+ declare function CardDescription({ className, children, as, ref, ...rest }: CardDescriptionProps): react_jsx_runtime.JSX.Element;
66
+ declare namespace CardDescription {
67
+ var displayName: string;
68
+ }
69
+
70
+ export { type CardProps as C, type CardBaseProps as a, CardBody as b, CardDescription as c, type CardDescriptionProps as d, CardFooter as e, CardHeader as f, type CardSectionProps as g, CardTitle as h, type CardTitleProps as i, type CardVariantProps as j, cardDescriptionVariants as k, cardFooterVariants as l, cardHeaderVariants as m, cardTitleVariants as n, cardVariants as o };
@@ -0,0 +1,70 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { ComponentPropsWithRef, ElementType, ReactNode, Ref, HTMLAttributes } from 'react';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+
6
+ declare const cardVariants: (props?: ({
7
+ appearance?: "default" | "glass" | "outline" | "ghost" | "elevated" | "sky" | "rose" | "purple" | "pink" | "orange" | "yellow" | "teal" | "indigo" | "emerald" | "gray" | "amber" | "violet" | "gradient-blue" | "gradient-green" | "gradient-red" | "gradient-yellow" | "gradient-purple" | "gradient-teal" | "gradient-indigo" | "gradient-pink" | "gradient-orange" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | null | undefined;
9
+ rounded?: "sm" | "md" | "lg" | "full" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ declare const cardHeaderVariants: (props?: ({
12
+ size?: "sm" | "md" | "lg" | null | undefined;
13
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
14
+ declare const cardFooterVariants: (props?: ({
15
+ size?: "sm" | "md" | "lg" | null | undefined;
16
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
17
+ declare const cardTitleVariants: (props?: ({
18
+ size?: "sm" | "md" | "lg" | null | undefined;
19
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
20
+ declare const cardDescriptionVariants: (props?: ({
21
+ size?: "sm" | "md" | "lg" | null | undefined;
22
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
23
+
24
+ type CardVariantProps = VariantProps<typeof cardVariants>;
25
+ interface CardBaseProps extends ComponentPropsWithRef<"article"> {
26
+ appearance?: CardVariantProps["appearance"];
27
+ size?: CardVariantProps["size"];
28
+ rounded?: CardVariantProps["rounded"];
29
+ as?: ElementType;
30
+ }
31
+ type CardProps = Omit<CardBaseProps, "as">;
32
+ type CardSectionProps = {
33
+ className?: string;
34
+ children?: ReactNode;
35
+ };
36
+ type CardTitleProps = {
37
+ as?: "h2" | "h3" | "h4" | "h5" | "h6";
38
+ className?: string;
39
+ children?: ReactNode;
40
+ ref?: Ref<HTMLHeadingElement>;
41
+ } & Omit<HTMLAttributes<HTMLHeadingElement>, "className" | "children">;
42
+ type CardDescriptionProps = {
43
+ as?: "p" | "span" | "div";
44
+ className?: string;
45
+ children?: ReactNode;
46
+ ref?: Ref<HTMLElement>;
47
+ } & Omit<HTMLAttributes<HTMLElement>, "className" | "children">;
48
+
49
+ declare function CardHeader({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
50
+ declare namespace CardHeader {
51
+ var displayName: string;
52
+ }
53
+ declare function CardBody({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
54
+ declare namespace CardBody {
55
+ var displayName: string;
56
+ }
57
+ declare function CardFooter({ className, children }: CardSectionProps): react_jsx_runtime.JSX.Element;
58
+ declare namespace CardFooter {
59
+ var displayName: string;
60
+ }
61
+ declare function CardTitle({ className, children, as, ref, ...rest }: CardTitleProps): react_jsx_runtime.JSX.Element;
62
+ declare namespace CardTitle {
63
+ var displayName: string;
64
+ }
65
+ declare function CardDescription({ className, children, as, ref, ...rest }: CardDescriptionProps): react_jsx_runtime.JSX.Element;
66
+ declare namespace CardDescription {
67
+ var displayName: string;
68
+ }
69
+
70
+ export { type CardProps as C, type CardBaseProps as a, CardBody as b, CardDescription as c, type CardDescriptionProps as d, CardFooter as e, CardHeader as f, type CardSectionProps as g, CardTitle as h, type CardTitleProps as i, type CardVariantProps as j, cardDescriptionVariants as k, cardFooterVariants as l, cardHeaderVariants as m, cardTitleVariants as n, cardVariants as o };