@zentauri-ui/zentauri-components 0.0.84 → 0.0.92
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 +47 -29
- package/dist/chunk-BZSIXBA7.js +70 -0
- package/dist/chunk-BZSIXBA7.js.map +1 -0
- package/dist/chunk-E5UX537J.js +11 -0
- package/dist/chunk-E5UX537J.js.map +1 -0
- package/dist/chunk-MEWYFWBX.mjs +14 -0
- package/dist/chunk-MEWYFWBX.mjs.map +1 -0
- package/dist/chunk-VJHD7QZH.mjs +73 -0
- package/dist/chunk-VJHD7QZH.mjs.map +1 -0
- package/dist/ui/accordion.d.mts +70 -0
- package/dist/ui/accordion.d.ts +70 -0
- package/dist/ui/accordion.js +280 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/accordion.mjs +282 -0
- package/dist/ui/accordion.mjs.map +1 -0
- package/dist/ui/alert.d.mts +66 -0
- package/dist/ui/alert.d.ts +66 -0
- package/dist/ui/alert.js +218 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/alert.mjs +220 -0
- package/dist/ui/alert.mjs.map +1 -0
- package/dist/ui/badge.d.mts +37 -0
- package/dist/ui/badge.d.ts +37 -0
- package/dist/ui/badge.js +159 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/badge.mjs +161 -0
- package/dist/ui/badge.mjs.map +1 -0
- package/dist/ui/buttons.d.mts +27 -0
- package/dist/ui/buttons.d.ts +27 -0
- package/dist/ui/buttons.js +107 -0
- package/dist/ui/buttons.js.map +1 -0
- package/dist/ui/buttons.mjs +109 -0
- package/dist/ui/buttons.mjs.map +1 -0
- package/dist/ui/card.d.mts +77 -0
- package/dist/ui/card.d.ts +77 -0
- package/dist/ui/card.js +252 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/card.mjs +254 -0
- package/dist/ui/card.mjs.map +1 -0
- package/dist/ui/divider.d.mts +39 -0
- package/dist/ui/divider.d.ts +39 -0
- package/dist/ui/divider.js +194 -0
- package/dist/ui/divider.js.map +1 -0
- package/dist/ui/divider.mjs +196 -0
- package/dist/ui/divider.mjs.map +1 -0
- package/dist/ui/drawer.d.mts +81 -0
- package/dist/ui/drawer.d.ts +81 -0
- package/dist/ui/drawer.js +377 -0
- package/dist/ui/drawer.js.map +1 -0
- package/dist/ui/drawer.mjs +379 -0
- package/dist/ui/drawer.mjs.map +1 -0
- package/dist/ui/dropdown.d.mts +50 -0
- package/dist/ui/dropdown.d.ts +50 -0
- package/dist/ui/dropdown.js +272 -0
- package/dist/ui/dropdown.js.map +1 -0
- package/dist/ui/dropdown.mjs +274 -0
- package/dist/ui/dropdown.mjs.map +1 -0
- package/dist/ui/empty-state.d.mts +55 -0
- package/dist/ui/empty-state.d.ts +55 -0
- package/dist/ui/empty-state.js +148 -0
- package/dist/ui/empty-state.js.map +1 -0
- package/dist/ui/empty-state.mjs +150 -0
- package/dist/ui/empty-state.mjs.map +1 -0
- package/dist/ui/inputs.d.mts +35 -0
- package/dist/ui/inputs.d.ts +35 -0
- package/dist/ui/inputs.js +426 -0
- package/dist/ui/inputs.js.map +1 -0
- package/dist/ui/inputs.mjs +428 -0
- package/dist/ui/inputs.mjs.map +1 -0
- package/dist/ui/modal.d.mts +84 -0
- package/dist/ui/modal.d.ts +84 -0
- package/dist/ui/modal.js +378 -0
- package/dist/ui/modal.js.map +1 -0
- package/dist/ui/modal.mjs +380 -0
- package/dist/ui/modal.mjs.map +1 -0
- package/dist/ui/pagination.d.mts +114 -0
- package/dist/ui/pagination.d.ts +114 -0
- package/dist/ui/pagination.js +425 -0
- package/dist/ui/pagination.js.map +1 -0
- package/dist/ui/pagination.mjs +427 -0
- package/dist/ui/pagination.mjs.map +1 -0
- package/dist/ui/progress.d.mts +61 -0
- package/dist/ui/progress.d.ts +61 -0
- package/dist/ui/progress.js +231 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/progress.mjs +233 -0
- package/dist/ui/progress.mjs.map +1 -0
- package/dist/ui/select.d.mts +73 -0
- package/dist/ui/select.d.ts +73 -0
- package/dist/ui/select.js +321 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/select.mjs +323 -0
- package/dist/ui/select.mjs.map +1 -0
- package/dist/ui/skeleton.d.mts +90 -0
- package/dist/ui/skeleton.d.ts +90 -0
- package/dist/ui/skeleton.js +538 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/skeleton.mjs +540 -0
- package/dist/ui/skeleton.mjs.map +1 -0
- package/dist/ui/spinner.d.mts +27 -0
- package/dist/ui/spinner.d.ts +27 -0
- package/dist/ui/spinner.js +187 -0
- package/dist/ui/spinner.js.map +1 -0
- package/dist/ui/spinner.mjs +189 -0
- package/dist/ui/spinner.mjs.map +1 -0
- package/dist/ui/table.d.mts +81 -0
- package/dist/ui/table.d.ts +81 -0
- package/dist/ui/table.js +287 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/table.mjs +289 -0
- package/dist/ui/table.mjs.map +1 -0
- package/dist/ui/tabs.d.mts +58 -0
- package/dist/ui/tabs.d.ts +58 -0
- package/dist/ui/tabs.js +268 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/tabs.mjs +270 -0
- package/dist/ui/tabs.mjs.map +1 -0
- package/dist/ui/toast.d.mts +86 -0
- package/dist/ui/toast.d.ts +86 -0
- package/dist/ui/toast.js +252 -0
- package/dist/ui/toast.js.map +1 -0
- package/dist/ui/toast.mjs +254 -0
- package/dist/ui/toast.mjs.map +1 -0
- package/dist/ui/toggle.d.mts +37 -0
- package/dist/ui/toggle.d.ts +37 -0
- package/dist/ui/toggle.js +152 -0
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/toggle.mjs +154 -0
- package/dist/ui/toggle.mjs.map +1 -0
- package/dist/ui/tooltip.d.mts +46 -0
- package/dist/ui/tooltip.d.ts +46 -0
- package/dist/ui/tooltip.js +208 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/ui/tooltip.mjs +210 -0
- package/dist/ui/tooltip.mjs.map +1 -0
- package/dist/variants-Dd9pe-ov.d.mts +8 -0
- package/dist/variants-Dd9pe-ov.d.ts +8 -0
- package/package.json +15 -14
- package/dist/ui/index.cjs +0 -5764
- package/dist/ui/index.cjs.map +0 -1
- package/dist/ui/index.d.cts +0 -1164
- package/dist/ui/index.d.ts +0 -1164
- package/dist/ui/index.js +0 -5626
- package/dist/ui/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,13 +6,16 @@ A React UI kit for building product interfaces with Tailwind CSS. Components are
|
|
|
6
6
|
|
|
7
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.
|
|
8
8
|
|
|
9
|
-
Published artifacts live under `dist
|
|
9
|
+
Published artifacts live under `dist/`. You can import either the **UI barrel** (`@zentauri-ui/zentauri-components/ui`) or a **per-area subpath** (`@zentauri-ui/zentauri-components/ui/<name>`) so bundlers only pull in the entry you use. 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` |
|
|
15
|
+
| `@zentauri-ui/zentauri-components/ui` | Full UI barrel: all components, hooks, and types (ESM `.js`, CJS `.cjs`, `.d.ts`) |
|
|
16
|
+
| `@zentauri-ui/zentauri-components/ui/<name>` | Single area entry (same artifacts per file). Use this when you import from one module only to keep the dependency graph smaller. |
|
|
17
|
+
|
|
18
|
+
The `<name>` segment matches the folder under `src/ui/` (for example `accordion`, `select`, `empty-state`, `buttons` for `Button`, `inputs` for `Input`).
|
|
16
19
|
|
|
17
20
|
## Requirements
|
|
18
21
|
|
|
@@ -21,33 +24,35 @@ Published artifacts live under `dist/`; consumers import the UI barrel at `@zent
|
|
|
21
24
|
|
|
22
25
|
## Components
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
Each area is available from the barrel and from its own subpath (`…/ui/<subpath>`):
|
|
28
|
+
|
|
29
|
+
| Area | Subpath `…/ui/…` |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| Accordion | `accordion` |
|
|
32
|
+
| Alert | `alert` |
|
|
33
|
+
| Badge | `badge` |
|
|
34
|
+
| Button | `buttons` |
|
|
35
|
+
| Card | `card` |
|
|
36
|
+
| Divider | `divider` |
|
|
37
|
+
| Drawer | `drawer` |
|
|
38
|
+
| Dropdown | `dropdown` |
|
|
39
|
+
| Empty state | `empty-state` |
|
|
40
|
+
| Input | `inputs` |
|
|
41
|
+
| Modal | `modal` |
|
|
42
|
+
| Pagination | `pagination` |
|
|
43
|
+
| Progress | `progress` |
|
|
44
|
+
| Select | `select` |
|
|
45
|
+
| Skeleton | `skeleton` |
|
|
46
|
+
| Spinner | `spinner` |
|
|
47
|
+
| Table | `table` |
|
|
48
|
+
| Tabs | `tabs` |
|
|
49
|
+
| Toast | `toast` |
|
|
50
|
+
| Toggle | `toggle` |
|
|
51
|
+
| Tooltip | `tooltip` |
|
|
47
52
|
|
|
48
53
|
## Installation
|
|
49
54
|
|
|
50
|
-
**Getting started** — Add the package, point Tailwind at the library sources, then import
|
|
55
|
+
**Getting started** — Add the package, point Tailwind at the library sources, then import from the UI barrel or from a specific `ui/<name>` subpath.
|
|
51
56
|
|
|
52
57
|
### Step 1 — Install the package
|
|
53
58
|
|
|
@@ -76,9 +81,9 @@ Add an `@source` entry so Tailwind scans class names inside `@zentauri-ui/zentau
|
|
|
76
81
|
|
|
77
82
|
### Step 3 — Import and use components
|
|
78
83
|
|
|
79
|
-
|
|
84
|
+
Prefer a **subpath** when you only need one area (smaller resolved graph than the full barrel). The barrel remains valid when you use many primitives from different areas.
|
|
80
85
|
|
|
81
|
-
#### Imports
|
|
86
|
+
#### Imports (subpath — recommended for a single area)
|
|
82
87
|
|
|
83
88
|
```tsx
|
|
84
89
|
import {
|
|
@@ -86,7 +91,20 @@ import {
|
|
|
86
91
|
AccordionContent,
|
|
87
92
|
AccordionItem,
|
|
88
93
|
AccordionTrigger,
|
|
89
|
-
} from "@zentauri-ui/zentauri-components/ui";
|
|
94
|
+
} from "@zentauri-ui/zentauri-components/ui/accordion";
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
#### Imports (multiple areas — one subpath import per area)
|
|
98
|
+
|
|
99
|
+
```tsx
|
|
100
|
+
import { Button } from "@zentauri-ui/zentauri-components/ui/buttons";
|
|
101
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "@zentauri-ui/zentauri-components/ui/select";
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
#### Imports (barrel — one entry for symbols from several areas)
|
|
105
|
+
|
|
106
|
+
```tsx
|
|
107
|
+
import { Button, Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "@zentauri-ui/zentauri-components/ui";
|
|
90
108
|
```
|
|
91
109
|
|
|
92
110
|
#### Usage
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/ui/buttons/variants.ts
|
|
2
|
+
var _classvarianceauthority = require('class-variance-authority');
|
|
3
|
+
var buttonVariants = _classvarianceauthority.cva.call(void 0,
|
|
4
|
+
[
|
|
5
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl",
|
|
6
|
+
"text-sm font-medium ring-offset-slate-950 transition-colors",
|
|
7
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-300 focus-visible:ring-offset-2",
|
|
8
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
9
|
+
"select-none"
|
|
10
|
+
],
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
appearance: {
|
|
14
|
+
default: "bg-slate-50 text-slate-950 shadow-[0_1px_2px_rgba(15,23,42,0.12)] hover:bg-white",
|
|
15
|
+
secondary: "bg-slate-800 text-slate-50 hover:bg-slate-700",
|
|
16
|
+
destructive: "bg-rose-600 text-white hover:bg-rose-600",
|
|
17
|
+
outline: "border border-white/10 bg-white/5 text-slate-50 hover:bg-white/10",
|
|
18
|
+
ghost: "bg-transparent text-slate-200 hover:bg-white/5",
|
|
19
|
+
link: "bg-transparent text-cyan-300 underline-offset-4 hover:underline",
|
|
20
|
+
glass: "border border-white/15 bg-white/10 text-white backdrop-blur-md hover:bg-white/15",
|
|
21
|
+
emerald: "bg-emerald-600 text-white hover:bg-emerald-600",
|
|
22
|
+
indigo: "bg-indigo-600 text-white hover:bg-indigo-600",
|
|
23
|
+
purple: "bg-purple-600 text-white hover:bg-purple-600",
|
|
24
|
+
pink: "bg-pink-600 text-white hover:bg-pink-600",
|
|
25
|
+
rose: "bg-rose-600 text-white hover:bg-rose-600",
|
|
26
|
+
sky: "bg-sky-600 text-white hover:bg-sky-600",
|
|
27
|
+
teal: "bg-teal-600 text-white hover:bg-teal-600",
|
|
28
|
+
yellow: "bg-yellow-600 text-white hover:bg-yellow-600",
|
|
29
|
+
orange: "bg-orange-600 text-white hover:bg-orange-600",
|
|
30
|
+
gray: "bg-gray-600 text-white hover:bg-gray-600",
|
|
31
|
+
amber: "bg-amber-600 text-white hover:bg-amber-600",
|
|
32
|
+
violet: "bg-violet-600 text-white hover:bg-violet-600",
|
|
33
|
+
"gradient-blue": "bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-600 hover:to-purple-600",
|
|
34
|
+
"gradient-green": "bg-gradient-to-r from-green-600 to-lime-600 text-white hover:from-green-600 hover:to-lime-600",
|
|
35
|
+
"gradient-red": "bg-gradient-to-r from-red-600 to-pink-600 text-white hover:from-red-600 hover:to-pink-600",
|
|
36
|
+
"gradient-yellow": "bg-gradient-to-r from-yellow-600 to-orange-600 text-white hover:from-yellow-600 hover:to-orange-600",
|
|
37
|
+
"gradient-purple": "bg-gradient-to-r from-purple-600 to-pink-600 text-white hover:from-purple-600 hover:to-pink-600",
|
|
38
|
+
"gradient-teal": "bg-gradient-to-r from-teal-600 to-cyan-600 text-white hover:from-teal-600 hover:to-cyan-600",
|
|
39
|
+
"gradient-indigo": "bg-gradient-to-r from-indigo-600 to-purple-600 text-white hover:from-indigo-600 hover:to-purple-600",
|
|
40
|
+
"gradient-pink": "bg-gradient-to-r from-pink-600 to-rose-600 text-white hover:from-pink-600 hover:to-rose-600",
|
|
41
|
+
"gradient-orange": "bg-gradient-to-r from-orange-600 to-red-600 text-white hover:from-orange-600 hover:to-red-600"
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
sm: "h-7 md:h-9 px-3 text-xs",
|
|
45
|
+
md: "h-9 md:h-11 px-4",
|
|
46
|
+
lg: "h-10 md:h-12 px-5 text-base",
|
|
47
|
+
xl: "h-12 md:h-14 px-6 text-lg",
|
|
48
|
+
"2xl": "h-14 md:h-16 px-6 md:px-8 text-xl",
|
|
49
|
+
"3xl": "h-16 md:h-18 px-8 md:px-10 text-2xl",
|
|
50
|
+
"4xl": "h-18 md:h-20 px-10 md:px-12 text-2xl",
|
|
51
|
+
"5xl": "h-20 md:h-22 px-12 md:px-14 text-2xl",
|
|
52
|
+
"6xl": "h-22 md:h-24 px-14 md:px-16 text-2xl",
|
|
53
|
+
"7xl": "h-24 md:h-26 px-16 md:px-18 text-2xl",
|
|
54
|
+
"8xl": "h-26 md:h-28 px-20 text-2xl",
|
|
55
|
+
"9xl": "h-24 md:h-30 px-18 md:px-22 text-2xl",
|
|
56
|
+
"10xl": "h-26 md:h-32 px-20 md:px-24 text-2xl",
|
|
57
|
+
icon: "h-10 w-10"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
defaultVariants: {
|
|
61
|
+
appearance: "default",
|
|
62
|
+
size: "md"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
exports.buttonVariants = buttonVariants;
|
|
70
|
+
//# sourceMappingURL=chunk-BZSIXBA7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/Users/shubham/Desktop/Repos/NEXT%20JS/zentauri-ui/packages/components/dist/chunk-BZSIXBA7.js"],"names":[],"mappings":"AAAA;AACA,kEAA8C;AAC9C,IAAI,eAAe,EAAE,yCAAG;AACxB,EAAE;AACF,IAAI,4EAA4E;AAChF,IAAI,6DAA6D;AACjE,IAAI,0GAA0G;AAC9G,IAAI,kDAAkD;AACtD,IAAI;AACJ,EAAE,CAAC;AACH,EAAE;AACF,IAAI,QAAQ,EAAE;AACd,MAAM,UAAU,EAAE;AAClB,QAAQ,OAAO,EAAE,kFAAkF;AACnG,QAAQ,SAAS,EAAE,+CAA+C;AAClE,QAAQ,WAAW,EAAE,0CAA0C;AAC/D,QAAQ,OAAO,EAAE,mEAAmE;AACpF,QAAQ,KAAK,EAAE,gDAAgD;AAC/D,QAAQ,IAAI,EAAE,iEAAiE;AAC/E,QAAQ,KAAK,EAAE,kFAAkF;AACjG,QAAQ,OAAO,EAAE,gDAAgD;AACjE,QAAQ,MAAM,EAAE,8CAA8C;AAC9D,QAAQ,MAAM,EAAE,8CAA8C;AAC9D,QAAQ,IAAI,EAAE,0CAA0C;AACxD,QAAQ,IAAI,EAAE,0CAA0C;AACxD,QAAQ,GAAG,EAAE,wCAAwC;AACrD,QAAQ,IAAI,EAAE,0CAA0C;AACxD,QAAQ,MAAM,EAAE,8CAA8C;AAC9D,QAAQ,MAAM,EAAE,8CAA8C;AAC9D,QAAQ,IAAI,EAAE,0CAA0C;AACxD,QAAQ,KAAK,EAAE,4CAA4C;AAC3D,QAAQ,MAAM,EAAE,8CAA8C;AAC9D,QAAQ,eAAe,EAAE,iGAAiG;AAC1H,QAAQ,gBAAgB,EAAE,+FAA+F;AACzH,QAAQ,cAAc,EAAE,2FAA2F;AACnH,QAAQ,iBAAiB,EAAE,qGAAqG;AAChI,QAAQ,iBAAiB,EAAE,iGAAiG;AAC5H,QAAQ,eAAe,EAAE,6FAA6F;AACtH,QAAQ,iBAAiB,EAAE,qGAAqG;AAChI,QAAQ,eAAe,EAAE,6FAA6F;AACtH,QAAQ,iBAAiB,EAAE;AAC3B,MAAM,CAAC;AACP,MAAM,IAAI,EAAE;AACZ,QAAQ,EAAE,EAAE,yBAAyB;AACrC,QAAQ,EAAE,EAAE,kBAAkB;AAC9B,QAAQ,EAAE,EAAE,6BAA6B;AACzC,QAAQ,EAAE,EAAE,2BAA2B;AACvC,QAAQ,KAAK,EAAE,mCAAmC;AAClD,QAAQ,KAAK,EAAE,qCAAqC;AACpD,QAAQ,KAAK,EAAE,sCAAsC;AACrD,QAAQ,KAAK,EAAE,sCAAsC;AACrD,QAAQ,KAAK,EAAE,sCAAsC;AACrD,QAAQ,KAAK,EAAE,sCAAsC;AACrD,QAAQ,KAAK,EAAE,6BAA6B;AAC5C,QAAQ,KAAK,EAAE,sCAAsC;AACrD,QAAQ,MAAM,EAAE,sCAAsC;AACtD,QAAQ,IAAI,EAAE;AACd,MAAM;AACN,IAAI,CAAC;AACL,IAAI,eAAe,EAAE;AACrB,MAAM,UAAU,EAAE,SAAS;AAC3B,MAAM,IAAI,EAAE;AACZ,IAAI;AACJ,EAAE;AACF,CAAC;AACD;AACA;AACE;AACF,wCAAC","file":"/Users/shubham/Desktop/Repos/NEXT JS/zentauri-ui/packages/components/dist/chunk-BZSIXBA7.js","sourcesContent":[null]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/lib/utils.ts
|
|
2
|
+
var _clsx = require('clsx');
|
|
3
|
+
var _tailwindmerge = require('tailwind-merge');
|
|
4
|
+
function cn(...inputs) {
|
|
5
|
+
return _tailwindmerge.twMerge.call(void 0, _clsx.clsx.call(void 0, inputs));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.cn = cn;
|
|
11
|
+
//# sourceMappingURL=chunk-E5UX537J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/Users/shubham/Desktop/Repos/NEXT%20JS/zentauri-ui/packages/components/dist/chunk-E5UX537J.js"],"names":[],"mappings":"AAAA;AACA,4BAA2B;AAC3B,+CAAwC;AACxC,SAAS,EAAE,CAAC,GAAG,MAAM,EAAE;AACvB,EAAE,OAAO,oCAAO,wBAAK,MAAO,CAAC,CAAC;AAC9B;AACA;AACA;AACE;AACF,gBAAC","file":"/Users/shubham/Desktop/Repos/NEXT JS/zentauri-ui/packages/components/dist/chunk-E5UX537J.js","sourcesContent":[null]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}"],"mappings":";;;;AAAA,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;","names":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// src/ui/buttons/variants.ts
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
var buttonVariants = cva(
|
|
7
|
+
[
|
|
8
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl",
|
|
9
|
+
"text-sm font-medium ring-offset-slate-950 transition-colors",
|
|
10
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-300 focus-visible:ring-offset-2",
|
|
11
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
12
|
+
"select-none"
|
|
13
|
+
],
|
|
14
|
+
{
|
|
15
|
+
variants: {
|
|
16
|
+
appearance: {
|
|
17
|
+
default: "bg-slate-50 text-slate-950 shadow-[0_1px_2px_rgba(15,23,42,0.12)] hover:bg-white",
|
|
18
|
+
secondary: "bg-slate-800 text-slate-50 hover:bg-slate-700",
|
|
19
|
+
destructive: "bg-rose-600 text-white hover:bg-rose-600",
|
|
20
|
+
outline: "border border-white/10 bg-white/5 text-slate-50 hover:bg-white/10",
|
|
21
|
+
ghost: "bg-transparent text-slate-200 hover:bg-white/5",
|
|
22
|
+
link: "bg-transparent text-cyan-300 underline-offset-4 hover:underline",
|
|
23
|
+
glass: "border border-white/15 bg-white/10 text-white backdrop-blur-md hover:bg-white/15",
|
|
24
|
+
emerald: "bg-emerald-600 text-white hover:bg-emerald-600",
|
|
25
|
+
indigo: "bg-indigo-600 text-white hover:bg-indigo-600",
|
|
26
|
+
purple: "bg-purple-600 text-white hover:bg-purple-600",
|
|
27
|
+
pink: "bg-pink-600 text-white hover:bg-pink-600",
|
|
28
|
+
rose: "bg-rose-600 text-white hover:bg-rose-600",
|
|
29
|
+
sky: "bg-sky-600 text-white hover:bg-sky-600",
|
|
30
|
+
teal: "bg-teal-600 text-white hover:bg-teal-600",
|
|
31
|
+
yellow: "bg-yellow-600 text-white hover:bg-yellow-600",
|
|
32
|
+
orange: "bg-orange-600 text-white hover:bg-orange-600",
|
|
33
|
+
gray: "bg-gray-600 text-white hover:bg-gray-600",
|
|
34
|
+
amber: "bg-amber-600 text-white hover:bg-amber-600",
|
|
35
|
+
violet: "bg-violet-600 text-white hover:bg-violet-600",
|
|
36
|
+
"gradient-blue": "bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-600 hover:to-purple-600",
|
|
37
|
+
"gradient-green": "bg-gradient-to-r from-green-600 to-lime-600 text-white hover:from-green-600 hover:to-lime-600",
|
|
38
|
+
"gradient-red": "bg-gradient-to-r from-red-600 to-pink-600 text-white hover:from-red-600 hover:to-pink-600",
|
|
39
|
+
"gradient-yellow": "bg-gradient-to-r from-yellow-600 to-orange-600 text-white hover:from-yellow-600 hover:to-orange-600",
|
|
40
|
+
"gradient-purple": "bg-gradient-to-r from-purple-600 to-pink-600 text-white hover:from-purple-600 hover:to-pink-600",
|
|
41
|
+
"gradient-teal": "bg-gradient-to-r from-teal-600 to-cyan-600 text-white hover:from-teal-600 hover:to-cyan-600",
|
|
42
|
+
"gradient-indigo": "bg-gradient-to-r from-indigo-600 to-purple-600 text-white hover:from-indigo-600 hover:to-purple-600",
|
|
43
|
+
"gradient-pink": "bg-gradient-to-r from-pink-600 to-rose-600 text-white hover:from-pink-600 hover:to-rose-600",
|
|
44
|
+
"gradient-orange": "bg-gradient-to-r from-orange-600 to-red-600 text-white hover:from-orange-600 hover:to-red-600"
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
sm: "h-7 md:h-9 px-3 text-xs",
|
|
48
|
+
md: "h-9 md:h-11 px-4",
|
|
49
|
+
lg: "h-10 md:h-12 px-5 text-base",
|
|
50
|
+
xl: "h-12 md:h-14 px-6 text-lg",
|
|
51
|
+
"2xl": "h-14 md:h-16 px-6 md:px-8 text-xl",
|
|
52
|
+
"3xl": "h-16 md:h-18 px-8 md:px-10 text-2xl",
|
|
53
|
+
"4xl": "h-18 md:h-20 px-10 md:px-12 text-2xl",
|
|
54
|
+
"5xl": "h-20 md:h-22 px-12 md:px-14 text-2xl",
|
|
55
|
+
"6xl": "h-22 md:h-24 px-14 md:px-16 text-2xl",
|
|
56
|
+
"7xl": "h-24 md:h-26 px-16 md:px-18 text-2xl",
|
|
57
|
+
"8xl": "h-26 md:h-28 px-20 text-2xl",
|
|
58
|
+
"9xl": "h-24 md:h-30 px-18 md:px-22 text-2xl",
|
|
59
|
+
"10xl": "h-26 md:h-32 px-20 md:px-24 text-2xl",
|
|
60
|
+
icon: "h-10 w-10"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
defaultVariants: {
|
|
64
|
+
appearance: "default",
|
|
65
|
+
size: "md"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
buttonVariants
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=chunk-VJHD7QZH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/buttons/variants.ts"],"sourcesContent":["import { cva } from \"class-variance-authority\";\n\nexport const buttonVariants = cva(\n [\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl\",\n \"text-sm font-medium ring-offset-slate-950 transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-300 focus-visible:ring-offset-2\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n \"select-none\",\n ],\n {\n variants: {\n appearance: {\n default:\n \"bg-slate-50 text-slate-950 shadow-[0_1px_2px_rgba(15,23,42,0.12)] hover:bg-white\",\n secondary: \"bg-slate-800 text-slate-50 hover:bg-slate-700\",\n destructive: \"bg-rose-600 text-white hover:bg-rose-600\",\n outline:\n \"border border-white/10 bg-white/5 text-slate-50 hover:bg-white/10\",\n ghost: \"bg-transparent text-slate-200 hover:bg-white/5\",\n link: \"bg-transparent text-cyan-300 underline-offset-4 hover:underline\",\n glass:\n \"border border-white/15 bg-white/10 text-white backdrop-blur-md hover:bg-white/15\",\n emerald: \"bg-emerald-600 text-white hover:bg-emerald-600\",\n indigo: \"bg-indigo-600 text-white hover:bg-indigo-600\",\n purple: \"bg-purple-600 text-white hover:bg-purple-600\",\n pink: \"bg-pink-600 text-white hover:bg-pink-600\",\n rose: \"bg-rose-600 text-white hover:bg-rose-600\",\n sky: \"bg-sky-600 text-white hover:bg-sky-600\",\n teal: \"bg-teal-600 text-white hover:bg-teal-600\",\n yellow: \"bg-yellow-600 text-white hover:bg-yellow-600\",\n orange: \"bg-orange-600 text-white hover:bg-orange-600\",\n gray: \"bg-gray-600 text-white hover:bg-gray-600\",\n amber: \"bg-amber-600 text-white hover:bg-amber-600\",\n violet: \"bg-violet-600 text-white hover:bg-violet-600\",\n \"gradient-blue\": \"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-600 hover:to-purple-600\",\n \"gradient-green\": \"bg-gradient-to-r from-green-600 to-lime-600 text-white hover:from-green-600 hover:to-lime-600\",\n \"gradient-red\": \"bg-gradient-to-r from-red-600 to-pink-600 text-white hover:from-red-600 hover:to-pink-600\",\n \"gradient-yellow\": \"bg-gradient-to-r from-yellow-600 to-orange-600 text-white hover:from-yellow-600 hover:to-orange-600\",\n \"gradient-purple\": \"bg-gradient-to-r from-purple-600 to-pink-600 text-white hover:from-purple-600 hover:to-pink-600\",\n \"gradient-teal\": \"bg-gradient-to-r from-teal-600 to-cyan-600 text-white hover:from-teal-600 hover:to-cyan-600\",\n \"gradient-indigo\": \"bg-gradient-to-r from-indigo-600 to-purple-600 text-white hover:from-indigo-600 hover:to-purple-600\",\n \"gradient-pink\": \"bg-gradient-to-r from-pink-600 to-rose-600 text-white hover:from-pink-600 hover:to-rose-600\",\n \"gradient-orange\": \"bg-gradient-to-r from-orange-600 to-red-600 text-white hover:from-orange-600 hover:to-red-600\",\n },\n size: {\n sm: \"h-7 md:h-9 px-3 text-xs\",\n md: \"h-9 md:h-11 px-4\",\n lg: \"h-10 md:h-12 px-5 text-base\",\n xl: \"h-12 md:h-14 px-6 text-lg\",\n \"2xl\": \"h-14 md:h-16 px-6 md:px-8 text-xl\",\n \"3xl\": \"h-16 md:h-18 px-8 md:px-10 text-2xl\",\n \"4xl\": \"h-18 md:h-20 px-10 md:px-12 text-2xl\",\n \"5xl\": \"h-20 md:h-22 px-12 md:px-14 text-2xl\",\n \"6xl\": \"h-22 md:h-24 px-14 md:px-16 text-2xl\",\n \"7xl\": \"h-24 md:h-26 px-16 md:px-18 text-2xl\",\n \"8xl\": \"h-26 md:h-28 px-20 text-2xl\",\n \"9xl\": \"h-24 md:h-30 px-18 md:px-22 text-2xl\",\n \"10xl\": \"h-26 md:h-32 px-20 md:px-24 text-2xl\",\n icon: \"h-10 w-10\",\n },\n },\n defaultVariants: {\n appearance: \"default\",\n size: \"md\",\n },\n },\n);\n"],"mappings":";;;;AAAA,SAAS,WAAW;AAEb,IAAM,iBAAiB;AAAA,EAC5B;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,YAAY;AAAA,QACV,SACE;AAAA,QACF,WAAW;AAAA,QACX,aAAa;AAAA,QACb,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,OACE;AAAA,QACF,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,MAAM;AAAA,QACN,KAAK;AAAA,QACL,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,iBAAiB;AAAA,QACjB,kBAAkB;AAAA,QAClB,gBAAgB;AAAA,QAChB,mBAAmB;AAAA,QACnB,mBAAmB;AAAA,QACnB,iBAAiB;AAAA,QACjB,mBAAmB;AAAA,QACnB,iBAAiB;AAAA,QACjB,mBAAmB;AAAA,MACrB;AAAA,MACA,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,OAAO;AAAA,QACP,OAAO;AAAA,QACP,OAAO;AAAA,QACP,OAAO;AAAA,QACP,OAAO;AAAA,QACP,OAAO;AAAA,QACP,OAAO;AAAA,QACP,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,YAAY;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { ReactNode, HTMLAttributes, Ref } from 'react';
|
|
4
|
+
import { Transition } from 'framer-motion';
|
|
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 AccordionProps = AccordionVariantProps & {
|
|
29
|
+
transition?: AccordionTransition;
|
|
30
|
+
type?: AccordionType;
|
|
31
|
+
/** Controlled value for `single` mode. */
|
|
32
|
+
value?: string;
|
|
33
|
+
/** Controlled values for `multiple` mode. */
|
|
34
|
+
values?: string[];
|
|
35
|
+
defaultValue?: string;
|
|
36
|
+
defaultValues?: string[];
|
|
37
|
+
onValueChange?: (value: string | undefined) => void;
|
|
38
|
+
onValuesChange?: (values: string[]) => void;
|
|
39
|
+
className?: string;
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
};
|
|
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 Accordion({ type, value, values, defaultValue, defaultValues, onValueChange, onValuesChange, transition, appearance, size, className, children, }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
54
|
+
declare namespace Accordion {
|
|
55
|
+
var displayName: string;
|
|
56
|
+
}
|
|
57
|
+
declare function AccordionItem({ className, value, children, ref, ...rest }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
58
|
+
declare namespace AccordionItem {
|
|
59
|
+
var displayName: string;
|
|
60
|
+
}
|
|
61
|
+
declare function AccordionTrigger({ className, children, ref, ...rest }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
declare namespace AccordionTrigger {
|
|
63
|
+
var displayName: string;
|
|
64
|
+
}
|
|
65
|
+
declare function AccordionContent({ className, children, ref }: AccordionContentProps): react_jsx_runtime.JSX.Element | null;
|
|
66
|
+
declare namespace AccordionContent {
|
|
67
|
+
var displayName: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionTransition, AccordionTrigger, type AccordionTriggerProps, type AccordionType, accordionContentTransitionPresets, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, accordionVariants };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { ReactNode, HTMLAttributes, Ref } from 'react';
|
|
4
|
+
import { Transition } from 'framer-motion';
|
|
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 AccordionProps = AccordionVariantProps & {
|
|
29
|
+
transition?: AccordionTransition;
|
|
30
|
+
type?: AccordionType;
|
|
31
|
+
/** Controlled value for `single` mode. */
|
|
32
|
+
value?: string;
|
|
33
|
+
/** Controlled values for `multiple` mode. */
|
|
34
|
+
values?: string[];
|
|
35
|
+
defaultValue?: string;
|
|
36
|
+
defaultValues?: string[];
|
|
37
|
+
onValueChange?: (value: string | undefined) => void;
|
|
38
|
+
onValuesChange?: (values: string[]) => void;
|
|
39
|
+
className?: string;
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
};
|
|
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 Accordion({ type, value, values, defaultValue, defaultValues, onValueChange, onValuesChange, transition, appearance, size, className, children, }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
54
|
+
declare namespace Accordion {
|
|
55
|
+
var displayName: string;
|
|
56
|
+
}
|
|
57
|
+
declare function AccordionItem({ className, value, children, ref, ...rest }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
58
|
+
declare namespace AccordionItem {
|
|
59
|
+
var displayName: string;
|
|
60
|
+
}
|
|
61
|
+
declare function AccordionTrigger({ className, children, ref, ...rest }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
declare namespace AccordionTrigger {
|
|
63
|
+
var displayName: string;
|
|
64
|
+
}
|
|
65
|
+
declare function AccordionContent({ className, children, ref }: AccordionContentProps): react_jsx_runtime.JSX.Element | null;
|
|
66
|
+
declare namespace AccordionContent {
|
|
67
|
+
var displayName: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionTransition, AccordionTrigger, type AccordionTriggerProps, type AccordionType, accordionContentTransitionPresets, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, accordionVariants };
|