@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.
- package/README.md +66 -38
- package/dist/accordion-base-qVomr7f_.d.mts +66 -0
- package/dist/accordion-base-qVomr7f_.d.ts +66 -0
- package/dist/avatar-base-s4dYg-24.d.mts +49 -0
- package/dist/avatar-base-s4dYg-24.d.ts +49 -0
- package/dist/card-base-CIGac8D_.d.mts +70 -0
- package/dist/card-base-CIGac8D_.d.ts +70 -0
- package/dist/chunk-2P3UU2J3.mjs +510 -0
- package/dist/chunk-2P3UU2J3.mjs.map +1 -0
- package/dist/chunk-2PQEXQVR.js +223 -0
- package/dist/chunk-2PQEXQVR.js.map +1 -0
- package/dist/chunk-3OR47XMY.js +273 -0
- package/dist/chunk-3OR47XMY.js.map +1 -0
- package/dist/chunk-4B7KGBQB.js +206 -0
- package/dist/chunk-4B7KGBQB.js.map +1 -0
- package/dist/chunk-5QB2KNZQ.js +148 -0
- package/dist/chunk-5QB2KNZQ.js.map +1 -0
- package/dist/chunk-6I7X5BF2.js +520 -0
- package/dist/chunk-6I7X5BF2.js.map +1 -0
- package/dist/chunk-7HL3A4YF.mjs +214 -0
- package/dist/chunk-7HL3A4YF.mjs.map +1 -0
- package/dist/chunk-AOEI4V3W.mjs +286 -0
- package/dist/chunk-AOEI4V3W.mjs.map +1 -0
- package/dist/chunk-BVXTOEBI.mjs +259 -0
- package/dist/chunk-BVXTOEBI.mjs.map +1 -0
- package/dist/chunk-C2FCPQTO.js +279 -0
- package/dist/chunk-C2FCPQTO.js.map +1 -0
- package/dist/chunk-E3DZNJAD.js +128 -0
- package/dist/chunk-E3DZNJAD.js.map +1 -0
- package/dist/chunk-FLILFCQE.mjs +197 -0
- package/dist/chunk-FLILFCQE.mjs.map +1 -0
- package/dist/chunk-IXDJ3IPG.mjs +315 -0
- package/dist/chunk-IXDJ3IPG.mjs.map +1 -0
- package/dist/chunk-JQ5TIJ4F.mjs +68 -0
- package/dist/chunk-JQ5TIJ4F.mjs.map +1 -0
- package/dist/chunk-LVUPECBT.mjs +217 -0
- package/dist/chunk-LVUPECBT.mjs.map +1 -0
- package/dist/chunk-N4NO3SYL.js +328 -0
- package/dist/chunk-N4NO3SYL.js.map +1 -0
- package/dist/chunk-OJ67PZ6N.js +175 -0
- package/dist/chunk-OJ67PZ6N.js.map +1 -0
- package/dist/chunk-P5HUBXUX.js +231 -0
- package/dist/chunk-P5HUBXUX.js.map +1 -0
- package/dist/chunk-PCK6LX3K.js +253 -0
- package/dist/chunk-PCK6LX3K.js.map +1 -0
- package/dist/chunk-PGH27VTL.mjs +316 -0
- package/dist/chunk-PGH27VTL.mjs.map +1 -0
- package/dist/chunk-QZKMFSH5.js +288 -0
- package/dist/chunk-QZKMFSH5.js.map +1 -0
- package/dist/chunk-RDSPHBHK.mjs +221 -0
- package/dist/chunk-RDSPHBHK.mjs.map +1 -0
- package/dist/chunk-U4YQCAXW.js +204 -0
- package/dist/chunk-U4YQCAXW.js.map +1 -0
- package/dist/chunk-UBFKTC2P.mjs +268 -0
- package/dist/chunk-UBFKTC2P.mjs.map +1 -0
- package/dist/chunk-UOFTZKMM.js +229 -0
- package/dist/chunk-UOFTZKMM.js.map +1 -0
- package/dist/chunk-UXGHUBNJ.mjs +240 -0
- package/dist/chunk-UXGHUBNJ.mjs.map +1 -0
- package/dist/chunk-W6PRMYUC.mjs +169 -0
- package/dist/chunk-W6PRMYUC.mjs.map +1 -0
- package/dist/chunk-WDCIZHXY.mjs +139 -0
- package/dist/chunk-WDCIZHXY.mjs.map +1 -0
- package/dist/chunk-WZKGRU3U.js +182 -0
- package/dist/chunk-WZKGRU3U.js.map +1 -0
- package/dist/chunk-X22LLJL6.js +71 -0
- package/dist/chunk-X22LLJL6.js.map +1 -0
- package/dist/chunk-XIXF7UVM.mjs +194 -0
- package/dist/chunk-XIXF7UVM.mjs.map +1 -0
- package/dist/chunk-XLAFQ24R.js +328 -0
- package/dist/chunk-XLAFQ24R.js.map +1 -0
- package/dist/chunk-XWM2S6VV.mjs +124 -0
- package/dist/chunk-XWM2S6VV.mjs.map +1 -0
- package/dist/chunk-YNCD6TKE.mjs +175 -0
- package/dist/chunk-YNCD6TKE.mjs.map +1 -0
- package/dist/progress-base-Cm1JODYA.d.mts +66 -0
- package/dist/progress-base-Cm1JODYA.d.ts +66 -0
- package/dist/types-C7N9UvRm.d.mts +38 -0
- package/dist/types-C7N9UvRm.d.ts +38 -0
- package/dist/types-CFpwSbpK.d.mts +27 -0
- package/dist/types-CFpwSbpK.d.ts +27 -0
- package/dist/types-CK_vNRIb.d.mts +63 -0
- package/dist/types-CK_vNRIb.d.ts +63 -0
- package/dist/types-Ca3t5aC_.d.mts +31 -0
- package/dist/types-Ca3t5aC_.d.ts +31 -0
- package/dist/types-Cn7IcgkH.d.mts +32 -0
- package/dist/types-Cn7IcgkH.d.ts +32 -0
- package/dist/types-CtFK7mFE.d.mts +34 -0
- package/dist/types-CtFK7mFE.d.ts +34 -0
- package/dist/types-DMkTQsWg.d.mts +46 -0
- package/dist/types-DMkTQsWg.d.ts +46 -0
- package/dist/types-DN400jNg.d.mts +28 -0
- package/dist/types-DN400jNg.d.ts +28 -0
- package/dist/types-vcZcRc6w.d.mts +24 -0
- package/dist/types-vcZcRc6w.d.ts +24 -0
- package/dist/types-zHcMUtKK.d.mts +42 -0
- package/dist/types-zHcMUtKK.d.ts +42 -0
- package/dist/ui/accordion/animated.d.mts +24 -0
- package/dist/ui/accordion/animated.d.ts +24 -0
- package/dist/ui/accordion/animated.js +67 -0
- package/dist/ui/accordion/animated.js.map +1 -0
- package/dist/ui/accordion/animated.mjs +56 -0
- package/dist/ui/accordion/animated.mjs.map +1 -0
- package/dist/ui/accordion.d.mts +9 -65
- package/dist/ui/accordion.d.ts +9 -65
- package/dist/ui/accordion.js +32 -288
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/accordion.mjs +6 -281
- package/dist/ui/accordion.mjs.map +1 -1
- package/dist/ui/alert/animated.d.mts +18 -0
- package/dist/ui/alert/animated.d.ts +18 -0
- package/dist/ui/alert/animated.js +47 -0
- package/dist/ui/alert/animated.js.map +1 -0
- package/dist/ui/alert/animated.mjs +44 -0
- package/dist/ui/alert/animated.mjs.map +1 -0
- package/dist/ui/alert.d.mts +10 -40
- package/dist/ui/alert.d.ts +10 -40
- package/dist/ui/alert.js +36 -218
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/alert.mjs +7 -211
- package/dist/ui/alert.mjs.map +1 -1
- package/dist/ui/avatar/animated.d.mts +22 -0
- package/dist/ui/avatar/animated.d.ts +22 -0
- package/dist/ui/avatar/animated.js +51 -0
- package/dist/ui/avatar/animated.js.map +1 -0
- package/dist/ui/avatar/animated.mjs +37 -0
- package/dist/ui/avatar/animated.mjs.map +1 -0
- package/dist/ui/avatar.d.mts +7 -53
- package/dist/ui/avatar.d.ts +7 -53
- package/dist/ui/avatar.js +32 -210
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/avatar.mjs +7 -204
- package/dist/ui/avatar.mjs.map +1 -1
- package/dist/ui/badge/animated.d.mts +22 -0
- package/dist/ui/badge/animated.d.ts +22 -0
- package/dist/ui/badge/animated.js +50 -0
- package/dist/ui/badge/animated.js.map +1 -0
- package/dist/ui/badge/animated.mjs +47 -0
- package/dist/ui/badge/animated.mjs.map +1 -0
- package/dist/ui/badge.d.mts +6 -30
- package/dist/ui/badge.d.ts +6 -30
- package/dist/ui/badge.js +11 -142
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/badge.mjs +6 -141
- package/dist/ui/badge.mjs.map +1 -1
- package/dist/ui/buttons/animated.d.mts +27 -0
- package/dist/ui/buttons/animated.d.ts +27 -0
- package/dist/ui/buttons/animated.js +101 -0
- package/dist/ui/buttons/animated.js.map +1 -0
- package/dist/ui/buttons/animated.mjs +98 -0
- package/dist/ui/buttons/animated.mjs.map +1 -0
- package/dist/ui/buttons.d.mts +5 -13
- package/dist/ui/buttons.d.ts +5 -13
- package/dist/ui/buttons.js +7 -45
- package/dist/ui/buttons.js.map +1 -1
- package/dist/ui/buttons.mjs +8 -45
- package/dist/ui/buttons.mjs.map +1 -1
- package/dist/ui/card/animated.d.mts +23 -0
- package/dist/ui/card/animated.d.ts +23 -0
- package/dist/ui/card/animated.js +72 -0
- package/dist/ui/card/animated.js.map +1 -0
- package/dist/ui/card/animated.mjs +50 -0
- package/dist/ui/card/animated.mjs.map +1 -0
- package/dist/ui/card.d.mts +6 -70
- package/dist/ui/card.d.ts +6 -70
- package/dist/ui/card.js +43 -245
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/card.mjs +5 -235
- package/dist/ui/card.mjs.map +1 -1
- package/dist/ui/divider/animated.d.mts +19 -0
- package/dist/ui/divider/animated.d.ts +19 -0
- package/dist/ui/divider/animated.js +41 -0
- package/dist/ui/divider/animated.js.map +1 -0
- package/dist/ui/divider/animated.mjs +39 -0
- package/dist/ui/divider/animated.mjs.map +1 -0
- package/dist/ui/divider.d.mts +6 -32
- package/dist/ui/divider.d.ts +6 -32
- package/dist/ui/divider.js +19 -186
- package/dist/ui/divider.js.map +1 -1
- package/dist/ui/divider.mjs +6 -183
- package/dist/ui/divider.mjs.map +1 -1
- package/dist/ui/drawer/animated.d.mts +23 -0
- package/dist/ui/drawer/animated.d.ts +23 -0
- package/dist/ui/drawer/animated.js +143 -0
- package/dist/ui/drawer/animated.js.map +1 -0
- package/dist/ui/drawer/animated.mjs +113 -0
- package/dist/ui/drawer/animated.mjs.map +1 -0
- package/dist/ui/drawer.d.mts +10 -11
- package/dist/ui/drawer.d.ts +10 -11
- package/dist/ui/drawer.js +44 -357
- package/dist/ui/drawer.js.map +1 -1
- package/dist/ui/drawer.mjs +3 -349
- package/dist/ui/drawer.mjs.map +1 -1
- package/dist/ui/empty-state/animated.d.mts +24 -0
- package/dist/ui/empty-state/animated.d.ts +24 -0
- package/dist/ui/empty-state/animated.js +45 -0
- package/dist/ui/empty-state/animated.js.map +1 -0
- package/dist/ui/empty-state/animated.mjs +42 -0
- package/dist/ui/empty-state/animated.mjs.map +1 -0
- package/dist/ui/empty-state.d.mts +11 -32
- package/dist/ui/empty-state.d.ts +11 -32
- package/dist/ui/empty-state.js +35 -160
- package/dist/ui/empty-state.js.map +1 -1
- package/dist/ui/empty-state.mjs +5 -153
- package/dist/ui/empty-state.mjs.map +1 -1
- package/dist/ui/inputs/animated.d.mts +27 -0
- package/dist/ui/inputs/animated.d.ts +27 -0
- package/dist/ui/inputs/animated.js +141 -0
- package/dist/ui/inputs/animated.js.map +1 -0
- package/dist/ui/inputs/animated.mjs +138 -0
- package/dist/ui/inputs/animated.mjs.map +1 -0
- package/dist/ui/inputs.d.mts +7 -21
- package/dist/ui/inputs.d.ts +7 -21
- package/dist/ui/inputs.js +16 -331
- package/dist/ui/inputs.js.map +1 -1
- package/dist/ui/inputs.mjs +13 -329
- package/dist/ui/inputs.mjs.map +1 -1
- package/dist/ui/modal/animated.d.mts +21 -0
- package/dist/ui/modal/animated.d.ts +21 -0
- package/dist/ui/modal/animated.js +120 -0
- package/dist/ui/modal/animated.js.map +1 -0
- package/dist/ui/modal/animated.mjs +117 -0
- package/dist/ui/modal/animated.mjs.map +1 -0
- package/dist/ui/modal.d.mts +10 -48
- package/dist/ui/modal.d.ts +10 -48
- package/dist/ui/modal.js +47 -361
- package/dist/ui/modal.js.map +1 -1
- package/dist/ui/modal.mjs +9 -351
- package/dist/ui/modal.mjs.map +1 -1
- package/dist/ui/progress/animated.d.mts +41 -0
- package/dist/ui/progress/animated.d.ts +41 -0
- package/dist/ui/progress/animated.js +123 -0
- package/dist/ui/progress/animated.js.map +1 -0
- package/dist/ui/progress/animated.mjs +112 -0
- package/dist/ui/progress/animated.mjs.map +1 -0
- package/dist/ui/progress.d.mts +10 -58
- package/dist/ui/progress.d.ts +10 -58
- package/dist/ui/progress.js +35 -227
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/progress.mjs +10 -222
- package/dist/ui/progress.mjs.map +1 -1
- package/dist/ui/skeleton/animated.d.mts +56 -0
- package/dist/ui/skeleton/animated.d.ts +56 -0
- package/dist/ui/skeleton/animated.js +126 -0
- package/dist/ui/skeleton/animated.js.map +1 -0
- package/dist/ui/skeleton/animated.mjs +119 -0
- package/dist/ui/skeleton/animated.mjs.map +1 -0
- package/dist/ui/skeleton.d.mts +16 -77
- package/dist/ui/skeleton.d.ts +16 -77
- package/dist/ui/skeleton.js +35 -526
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/skeleton.mjs +2 -520
- package/dist/ui/skeleton.mjs.map +1 -1
- package/dist/ui/{spinner.d.mts → spinner/animated.d.mts} +1 -6
- package/dist/ui/{spinner.d.ts → spinner/animated.d.ts} +1 -6
- package/dist/ui/{spinner.js → spinner/animated.js} +3 -9
- package/dist/ui/spinner/animated.js.map +1 -0
- package/dist/ui/{spinner.mjs → spinner/animated.mjs} +4 -9
- package/dist/ui/spinner/animated.mjs.map +1 -0
- package/dist/ui/table/animated.d.mts +21 -0
- package/dist/ui/table/animated.d.ts +21 -0
- package/dist/ui/table/animated.js +50 -0
- package/dist/ui/table/animated.js.map +1 -0
- package/dist/ui/table/animated.mjs +24 -0
- package/dist/ui/table/animated.mjs.map +1 -0
- package/dist/ui/table.d.mts +17 -11
- package/dist/ui/table.d.ts +17 -11
- package/dist/ui/table.js +55 -278
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/table.mjs +2 -269
- package/dist/ui/table.mjs.map +1 -1
- package/dist/ui/tabs/animated.d.mts +25 -0
- package/dist/ui/tabs/animated.d.ts +25 -0
- package/dist/ui/tabs/animated.js +83 -0
- package/dist/ui/tabs/animated.js.map +1 -0
- package/dist/ui/tabs/animated.mjs +79 -0
- package/dist/ui/tabs/animated.mjs.map +1 -0
- package/dist/ui/tabs.d.mts +7 -41
- package/dist/ui/tabs.d.ts +7 -41
- package/dist/ui/tabs.js +35 -261
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/tabs.mjs +2 -256
- package/dist/ui/tabs.mjs.map +1 -1
- package/dist/ui/toast/animated.d.mts +23 -0
- package/dist/ui/toast/animated.d.ts +23 -0
- package/dist/ui/toast/animated.js +103 -0
- package/dist/ui/toast/animated.js.map +1 -0
- package/dist/ui/toast/animated.mjs +99 -0
- package/dist/ui/toast/animated.mjs.map +1 -0
- package/dist/ui/toast.d.mts +7 -52
- package/dist/ui/toast.d.ts +7 -52
- package/dist/ui/toast.js +47 -268
- package/dist/ui/toast.js.map +1 -1
- package/dist/ui/toast.mjs +2 -259
- package/dist/ui/toast.mjs.map +1 -1
- package/dist/ui/toggle/animated.d.mts +22 -0
- package/dist/ui/toggle/animated.d.ts +22 -0
- package/dist/ui/toggle/animated.js +88 -0
- package/dist/ui/toggle/animated.js.map +1 -0
- package/dist/ui/toggle/animated.mjs +85 -0
- package/dist/ui/toggle/animated.mjs.map +1 -0
- package/dist/ui/toggle.d.mts +6 -30
- package/dist/ui/toggle.d.ts +6 -30
- package/dist/ui/toggle.js +19 -83
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/toggle.mjs +12 -80
- package/dist/ui/toggle.mjs.map +1 -1
- package/dist/ui/tooltip/animated.d.mts +17 -0
- package/dist/ui/tooltip/animated.d.ts +17 -0
- package/dist/ui/tooltip/animated.js +59 -0
- package/dist/ui/tooltip/animated.js.map +1 -0
- package/dist/ui/tooltip/animated.mjs +56 -0
- package/dist/ui/tooltip/animated.mjs.map +1 -0
- package/dist/ui/tooltip.d.mts +6 -33
- package/dist/ui/tooltip.d.ts +6 -33
- package/dist/ui/tooltip.js +26 -193
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/tooltip.mjs +2 -192
- package/dist/ui/tooltip.mjs.map +1 -1
- package/dist/variants-CYODHI8b.d.mts +10 -0
- package/dist/variants-CYODHI8b.d.ts +10 -0
- package/package.json +7 -4
- package/dist/ui/spinner.js.map +0 -1
- 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
|
|
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:
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
| Area |
|
|
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
|
|
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
|
|
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
|
|
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 };
|