@jacshuo/onyx 0.1.6 → 0.1.8

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 (210) hide show
  1. package/README.md +63 -31
  2. package/dist/Accordion.cjs +1 -0
  3. package/dist/Accordion.d.cts +23 -0
  4. package/dist/Accordion.d.ts +23 -0
  5. package/dist/Accordion.js +1 -0
  6. package/dist/Alert.cjs +1 -0
  7. package/dist/Alert.d.cts +28 -0
  8. package/dist/Alert.d.ts +28 -0
  9. package/dist/Alert.js +1 -0
  10. package/dist/Badge.cjs +1 -0
  11. package/dist/Badge.d.cts +10 -0
  12. package/dist/Badge.d.ts +10 -0
  13. package/dist/Badge.js +1 -0
  14. package/dist/Button.cjs +1 -0
  15. package/dist/Button.d.cts +10 -0
  16. package/dist/Button.d.ts +10 -0
  17. package/dist/Button.js +1 -0
  18. package/dist/Card.cjs +1 -0
  19. package/dist/Card.d.cts +33 -0
  20. package/dist/Card.d.ts +33 -0
  21. package/dist/Card.js +1 -0
  22. package/dist/Chat.cjs +1 -0
  23. package/dist/Chat.d.cts +32 -0
  24. package/dist/{components/Chat.d.ts → Chat.d.ts} +8 -5
  25. package/dist/Chat.js +1 -0
  26. package/dist/CinePlayer.cjs +1 -0
  27. package/dist/CinePlayer.d.cts +40 -0
  28. package/dist/{components/CinePlayer.d.ts → CinePlayer.d.ts} +8 -5
  29. package/dist/CinePlayer.js +1 -0
  30. package/dist/Dialog.cjs +1 -0
  31. package/dist/Dialog.d.cts +24 -0
  32. package/dist/Dialog.d.ts +24 -0
  33. package/dist/Dialog.js +1 -0
  34. package/dist/Dropdown.cjs +1 -0
  35. package/dist/Dropdown.d.cts +59 -0
  36. package/dist/{components/Dropdown.d.ts → Dropdown.d.ts} +10 -8
  37. package/dist/Dropdown.js +1 -0
  38. package/dist/DropdownButton.cjs +1 -0
  39. package/dist/DropdownButton.d.cts +37 -0
  40. package/dist/{components/DropdownButton.d.ts → DropdownButton.d.ts} +11 -7
  41. package/dist/DropdownButton.js +1 -0
  42. package/dist/FileExplorer.cjs +1 -0
  43. package/dist/FileExplorer.d.cts +96 -0
  44. package/dist/{components/FileExplorer.d.ts → FileExplorer.d.ts} +12 -9
  45. package/dist/FileExplorer.js +1 -0
  46. package/dist/FilmReel.cjs +1 -0
  47. package/dist/FilmReel.d.cts +43 -0
  48. package/dist/{components/FilmReel.d.ts → FilmReel.d.ts} +9 -6
  49. package/dist/FilmReel.js +1 -0
  50. package/dist/Header.cjs +1 -0
  51. package/dist/Header.d.cts +53 -0
  52. package/dist/{components/Header.d.ts → Header.d.ts} +9 -6
  53. package/dist/Header.js +1 -0
  54. package/dist/ImageCard.cjs +1 -0
  55. package/dist/ImageCard.d.cts +22 -0
  56. package/dist/ImageCard.d.ts +22 -0
  57. package/dist/ImageCard.js +1 -0
  58. package/dist/Input.cjs +1 -0
  59. package/dist/Input.d.cts +24 -0
  60. package/dist/{components/Input.d.ts → Input.d.ts} +12 -9
  61. package/dist/Input.js +1 -0
  62. package/dist/Label.cjs +1 -0
  63. package/dist/Label.d.cts +10 -0
  64. package/dist/Label.d.ts +10 -0
  65. package/dist/Label.js +1 -0
  66. package/dist/List.cjs +1 -0
  67. package/dist/List.d.cts +11 -0
  68. package/dist/List.d.ts +11 -0
  69. package/dist/List.js +1 -0
  70. package/dist/MiniPlayer.cjs +1 -0
  71. package/dist/MiniPlayer.d.cts +53 -0
  72. package/dist/{components/MiniPlayer.d.ts → MiniPlayer.d.ts} +10 -7
  73. package/dist/MiniPlayer.js +1 -0
  74. package/dist/Panel.cjs +1 -0
  75. package/dist/Panel.d.cts +12 -0
  76. package/dist/Panel.d.ts +12 -0
  77. package/dist/Panel.js +1 -0
  78. package/dist/SideNav.cjs +1 -0
  79. package/dist/SideNav.d.cts +67 -0
  80. package/dist/{components/SideNav.d.ts → SideNav.d.ts} +10 -7
  81. package/dist/SideNav.js +1 -0
  82. package/dist/Table.cjs +1 -0
  83. package/dist/Table.d.cts +82 -0
  84. package/dist/{components/Table.d.ts → Table.d.ts} +22 -19
  85. package/dist/Table.js +1 -0
  86. package/dist/Tabs.cjs +1 -0
  87. package/dist/Tabs.d.cts +28 -0
  88. package/dist/Tabs.d.ts +28 -0
  89. package/dist/Tabs.js +1 -0
  90. package/dist/Tooltip.cjs +1 -0
  91. package/dist/Tooltip.d.cts +17 -0
  92. package/dist/Tooltip.d.ts +17 -0
  93. package/dist/Tooltip.js +1 -0
  94. package/dist/Tree.cjs +1 -0
  95. package/dist/Tree.d.cts +33 -0
  96. package/dist/{components/Tree.d.ts → Tree.d.ts} +7 -5
  97. package/dist/Tree.js +1 -0
  98. package/dist/chunks/chunk-2DFUB3KN.js +1 -0
  99. package/dist/chunks/chunk-4BKLB4KV.cjs +1 -0
  100. package/dist/chunks/chunk-5PFWPAB6.js +1 -0
  101. package/dist/chunks/chunk-5XPTHIGM.cjs +1 -0
  102. package/dist/chunks/chunk-63LKYF4D.cjs +1 -0
  103. package/dist/chunks/chunk-66LIYNLT.cjs +1 -0
  104. package/dist/chunks/chunk-6AMBRNVW.js +1 -0
  105. package/dist/chunks/chunk-6HZRNHE6.js +1 -0
  106. package/dist/chunks/chunk-6OLB4BUJ.js +1 -0
  107. package/dist/chunks/chunk-6QQPQPD2.cjs +1 -0
  108. package/dist/chunks/chunk-7NYDMXZT.cjs +1 -0
  109. package/dist/chunks/chunk-A5KQAHDU.js +6 -0
  110. package/dist/chunks/chunk-AAFG7R4U.cjs +1 -0
  111. package/dist/chunks/chunk-ACQOSYBI.js +1 -0
  112. package/dist/chunks/chunk-AXBJKPZZ.js +1 -0
  113. package/dist/chunks/chunk-BQLPFPCA.cjs +1 -0
  114. package/dist/chunks/chunk-BW6NCATH.js +1 -0
  115. package/dist/chunks/chunk-CGGBE3GJ.cjs +2 -0
  116. package/dist/chunks/chunk-DWTXICFN.js +1 -0
  117. package/dist/chunks/chunk-DXXCR4ON.js +1 -0
  118. package/dist/chunks/chunk-EK4BC3WT.cjs +1 -0
  119. package/dist/chunks/chunk-ENRXEISR.js +1 -0
  120. package/dist/chunks/chunk-ER2MYWQO.cjs +1 -0
  121. package/dist/chunks/chunk-ETVECKSE.js +2 -0
  122. package/dist/chunks/chunk-GAK5OQW4.cjs +1 -0
  123. package/dist/chunks/chunk-HA5QPLJP.cjs +1 -0
  124. package/dist/chunks/chunk-JAKATE3I.js +1 -0
  125. package/dist/chunks/chunk-KVV5ZEYV.cjs +1 -0
  126. package/dist/chunks/chunk-MXDZHU6E.cjs +55 -0
  127. package/dist/chunks/chunk-N36YROV3.js +1 -0
  128. package/dist/chunks/chunk-N4QZRR2Y.cjs +17 -0
  129. package/dist/chunks/chunk-NBLJWONR.cjs +1 -0
  130. package/dist/chunks/chunk-NCJ5A6VE.js +1 -0
  131. package/dist/chunks/chunk-NG7F3GCN.js +55 -0
  132. package/dist/chunks/chunk-ORNYPP3O.cjs +1 -0
  133. package/dist/chunks/chunk-OZVJMUXX.cjs +1 -0
  134. package/dist/chunks/chunk-P652JDOU.cjs +1 -0
  135. package/dist/chunks/chunk-PHAX43YF.js +1 -0
  136. package/dist/chunks/chunk-PODSD5UT.js +1 -0
  137. package/dist/chunks/chunk-PSMWVB3O.js +1 -0
  138. package/dist/chunks/chunk-QLKUAE3R.cjs +1 -0
  139. package/dist/chunks/chunk-QTADJ7I5.js +17 -0
  140. package/dist/chunks/chunk-R2K6KI4L.js +1 -0
  141. package/dist/chunks/chunk-SCSMM2J4.js +1 -0
  142. package/dist/chunks/chunk-SMZQSZH2.js +1 -0
  143. package/dist/chunks/chunk-TDI2N27U.cjs +1 -0
  144. package/dist/chunks/chunk-U2ZQHP4I.cjs +1 -0
  145. package/dist/chunks/chunk-UDH3OKNZ.cjs +6 -0
  146. package/dist/chunks/chunk-VDC7N5TC.js +1 -0
  147. package/dist/chunks/chunk-X5YP5TMY.cjs +1 -0
  148. package/dist/chunks/chunk-XCP37UUA.cjs +1 -0
  149. package/dist/chunks/chunk-XOO3AGIT.js +1 -0
  150. package/dist/index.cjs +1 -1
  151. package/dist/index.d.cts +31 -0
  152. package/dist/index.d.ts +31 -27
  153. package/dist/index.js +1 -1
  154. package/dist/styles/CinePlayer.css +54 -0
  155. package/dist/styles/FileExplorer.css +38 -0
  156. package/dist/styles/FilmReel.css +24 -0
  157. package/dist/styles/MiniPlayer.css +71 -0
  158. package/dist/styles/base.css +3701 -0
  159. package/dist/styles/tokens.css +116 -0
  160. package/dist/styles.css +18 -18
  161. package/dist/theme.cjs +1 -0
  162. package/dist/theme.d.cts +51 -0
  163. package/dist/theme.d.ts +51 -0
  164. package/dist/theme.js +1 -0
  165. package/dist/utils.cjs +1 -0
  166. package/dist/utils.d.cts +5 -0
  167. package/dist/utils.d.ts +5 -0
  168. package/dist/utils.js +1 -0
  169. package/package.json +38 -9
  170. package/dist/components/Accordion.d.ts +0 -20
  171. package/dist/components/Accordion.d.ts.map +0 -1
  172. package/dist/components/Alert.d.ts +0 -25
  173. package/dist/components/Alert.d.ts.map +0 -1
  174. package/dist/components/Badge.d.ts +0 -7
  175. package/dist/components/Badge.d.ts.map +0 -1
  176. package/dist/components/Button.d.ts +0 -7
  177. package/dist/components/Button.d.ts.map +0 -1
  178. package/dist/components/Card.d.ts +0 -30
  179. package/dist/components/Card.d.ts.map +0 -1
  180. package/dist/components/Chat.d.ts.map +0 -1
  181. package/dist/components/CinePlayer.d.ts.map +0 -1
  182. package/dist/components/Dialog.d.ts +0 -21
  183. package/dist/components/Dialog.d.ts.map +0 -1
  184. package/dist/components/Dropdown.d.ts.map +0 -1
  185. package/dist/components/DropdownButton.d.ts.map +0 -1
  186. package/dist/components/FileExplorer.d.ts.map +0 -1
  187. package/dist/components/FilmReel.d.ts.map +0 -1
  188. package/dist/components/Header.d.ts.map +0 -1
  189. package/dist/components/ImageCard.d.ts +0 -23
  190. package/dist/components/ImageCard.d.ts.map +0 -1
  191. package/dist/components/Input.d.ts.map +0 -1
  192. package/dist/components/Label.d.ts +0 -7
  193. package/dist/components/Label.d.ts.map +0 -1
  194. package/dist/components/List.d.ts +0 -8
  195. package/dist/components/List.d.ts.map +0 -1
  196. package/dist/components/MiniPlayer.d.ts.map +0 -1
  197. package/dist/components/Panel.d.ts +0 -9
  198. package/dist/components/Panel.d.ts.map +0 -1
  199. package/dist/components/SideNav.d.ts.map +0 -1
  200. package/dist/components/Table.d.ts.map +0 -1
  201. package/dist/components/Tabs.d.ts +0 -25
  202. package/dist/components/Tabs.d.ts.map +0 -1
  203. package/dist/components/Tooltip.d.ts +0 -14
  204. package/dist/components/Tooltip.d.ts.map +0 -1
  205. package/dist/components/Tree.d.ts.map +0 -1
  206. package/dist/index.d.ts.map +0 -1
  207. package/dist/lib/utils.d.ts +0 -3
  208. package/dist/lib/utils.d.ts.map +0 -1
  209. package/dist/styles/theme.d.ts +0 -48
  210. package/dist/styles/theme.d.ts.map +0 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  # @jacshuo/onyx
9
9
 
10
- A cross-platform **React UI component library** built with Tailwind CSS v4 — designed for web browsers and Electron desktop apps. Ships ESM + CJS bundles with full TypeScript declarations.
10
+ A cross-platform **React UI component library** built with Tailwind CSS v4 — designed for web browsers and Electron desktop apps. Ships tree-shakeable ESM + CJS bundles with per-component subpath exports, modular CSS, and full TypeScript declarations.
11
11
 
12
12
  Born out of a personal passion for **cross-platform desktop development**, Onyx focuses on delivering a polished, consistent look and feel across Electron and web — the kind of UI toolkit I always wished existed when building desktop apps with web technologies.
13
13
 
@@ -30,7 +30,9 @@ Born out of a personal passion for **cross-platform desktop development**, Onyx
30
30
  - 🌗 **Dark / Light mode** — class-based, works out of the box
31
31
  - 🎯 **CSS variable design tokens** — override any color via `--cp-*`, `--mp-*`, `--fe-*` custom properties
32
32
  - ⚡ **Tailwind CSS v4** — zero config, `@theme` tokens, `color-mix()` accent support
33
- - 📦 **Tree-shakeable** — ESM + CJS dual output, `sideEffects: ["*.css"]`
33
+ - 📦 **Tree-shakeable** — Per-component ESM entries with code splitting; import only what you use
34
+ - 🗂️ **On-demand imports** — Subpath exports (`@jacshuo/onyx/Button`) for maximum control
35
+ - 🎨 **Modular CSS** — Full bundle, base-only, or per-component CSS — pick exactly what you need
34
36
  - 🖥️ **Cross-platform** — built for web & Electron desktop apps
35
37
  - ⌨️ **Keyboard-first** — comprehensive keyboard shortcuts for CinePlayer, FileExplorer, and more
36
38
  - 🔤 **Full TypeScript** — every prop, event, and variant is typed
@@ -88,6 +90,51 @@ function App() {
88
90
 
89
91
  ---
90
92
 
93
+ ## Import Strategies
94
+
95
+ Onyx supports multiple import styles — pick the one that best fits your bundler and performance requirements.
96
+
97
+ ### Full import (simplest)
98
+
99
+ Import everything from the barrel entry. Modern bundlers (Vite, Next.js, webpack 5) will tree-shake unused components automatically.
100
+
101
+ ```tsx
102
+ import { Button, Dialog, Tabs } from '@jacshuo/onyx';
103
+ import '@jacshuo/onyx/styles.css';
104
+ ```
105
+
106
+ ### Per-component import (maximum tree-shaking)
107
+
108
+ Import each component from its own subpath. This guarantees only the code you use is included, even with bundlers that don't tree-shake well.
109
+
110
+ ```tsx
111
+ import { Button } from '@jacshuo/onyx/Button';
112
+ import { Dialog, DialogContent } from '@jacshuo/onyx/Dialog';
113
+ import { Tabs, TabList, TabTrigger } from '@jacshuo/onyx/Tabs';
114
+ ```
115
+
116
+ ### CSS options
117
+
118
+ | Import | Size | Description |
119
+ |---|---|---|
120
+ | `@jacshuo/onyx/styles.css` | ~102 KB | Full pre-compiled bundle — all utilities + all component CSS. Simplest setup. |
121
+ | `@jacshuo/onyx/styles/base.css` | ~95 KB | Tailwind utilities + core design tokens. No component-specific keyframes. |
122
+ | `@jacshuo/onyx/styles/tokens.css` | ~4 KB | Raw `@theme` tokens only — for projects that already run Tailwind CSS v4. |
123
+ | `@jacshuo/onyx/styles/CinePlayer.css` | ~2.5 KB | CinePlayer keyframes & `--cp-*` design tokens |
124
+ | `@jacshuo/onyx/styles/MiniPlayer.css` | ~2.2 KB | MiniPlayer keyframes & `--mp-*` design tokens |
125
+ | `@jacshuo/onyx/styles/FileExplorer.css` | ~1.6 KB | FileExplorer `--fe-*` design tokens |
126
+ | `@jacshuo/onyx/styles/FilmReel.css` | ~0.6 KB | FilmReel keyframes |
127
+
128
+ **Example — minimal setup with CinePlayer only:**
129
+
130
+ ```tsx
131
+ import '@jacshuo/onyx/styles/base.css';
132
+ import '@jacshuo/onyx/styles/CinePlayer.css';
133
+ import { CinePlayer } from '@jacshuo/onyx/CinePlayer';
134
+ ```
135
+
136
+ ---
137
+
91
138
  ## Components
92
139
 
93
140
  ### Primitives
@@ -446,32 +493,6 @@ npm run typecheck
446
493
 
447
494
  ---
448
495
 
449
- ## Release Process
450
-
451
- Releases are fully automated via GitHub Actions:
452
-
453
- 1. Go to **Actions → Release → Run workflow**
454
- 2. Choose version bump: `patch` / `minor` / `major`
455
- 3. The pipeline will:
456
- - Bump `package.json` version
457
- - Commit & tag (e.g. `v0.2.0`)
458
- - Build & publish to **npm**
459
- - Create a **GitHub Release** with `.tar.gz` and `.zip` download artifacts
460
- - Build & deploy the **demo site** to GitHub Pages
461
-
462
- ### Required Secrets
463
-
464
- | Secret | Where | Description |
465
- |---|---|---|
466
- | `NPM_TOKEN` | GitHub repo → Settings → Secrets | npm access token with publish permission |
467
-
468
- ### GitHub Pages Setup
469
-
470
- 1. Go to **Settings → Pages**
471
- 2. Source: **GitHub Actions**
472
-
473
- ---
474
-
475
496
  ## Project Structure
476
497
 
477
498
  ```
@@ -480,8 +501,15 @@ jac-ui/
480
501
  │ ├── components/ # All React components
481
502
  │ ├── lib/utils.ts # cn() utility (clsx + tailwind-merge)
482
503
  │ └── styles/
483
- │ ├── theme.css # Tailwind theme, keyframes, CSS custom properties
484
- └── theme.ts # CVA variant definitions
504
+ │ ├── index.css # Full CSS entry (Tailwind + all tokens + all component CSS)
505
+ ├── base.css # Tailwind + core tokens only
506
+ │ ├── tokens.css # @theme semantic tokens & core keyframes
507
+ │ ├── theme.ts # CVA variant definitions
508
+ │ └── components/ # Per-component CSS (keyframes & design tokens)
509
+ │ ├── CinePlayer.css
510
+ │ ├── MiniPlayer.css
511
+ │ ├── FileExplorer.css
512
+ │ └── FilmReel.css
485
513
  ├── demo/ # Demo site (GitHub Pages)
486
514
  │ ├── App.tsx
487
515
  │ ├── main.tsx
@@ -489,7 +517,11 @@ jac-ui/
489
517
  ├── .github/workflows/
490
518
  │ ├── ci.yml # PR/push: typecheck + build
491
519
  │ └── release.yml # Manual: version bump → npm → GitHub Release → Pages
492
- ├── dist/ # Library build output
520
+ ├── dist/ # Library build output (ESM + CJS + DTS + CSS)
521
+ │ ├── *.js / *.cjs # Per-component entry points
522
+ │ ├── chunks/ # Shared code (auto-extracted by tsup)
523
+ │ ├── styles.css # Full pre-compiled CSS bundle
524
+ │ └── styles/ # Modular CSS files
493
525
  └── dist-demo/ # Demo build output
494
526
  ```
495
527
 
@@ -0,0 +1 @@
1
+ 'use strict';var chunkAAFG7R4U_cjs=require('./chunks/chunk-AAFG7R4U.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Accordion",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.a}});Object.defineProperty(exports,"AccordionContent",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.d}});Object.defineProperty(exports,"AccordionItem",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.b}});Object.defineProperty(exports,"AccordionTrigger",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.c}});
@@ -0,0 +1,23 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { accordionVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type AccordionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof accordionVariants> & {
8
+ type?: "single" | "multiple";
9
+ defaultValue?: string[];
10
+ value?: string[];
11
+ onValueChange?: (value: string[]) => void;
12
+ };
13
+ declare function Accordion({ type, defaultValue, value, onValueChange, intent, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
14
+ type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
15
+ value: string;
16
+ };
17
+ declare function AccordionItem({ value, className, children, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
18
+ type AccordionTriggerProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
19
+ declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
20
+ type AccordionContentProps = React.HTMLAttributes<HTMLDivElement>;
21
+ declare function AccordionContent({ className, children, ...props }: AccordionContentProps): react_jsx_runtime.JSX.Element;
22
+
23
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1,23 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { accordionVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type AccordionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof accordionVariants> & {
8
+ type?: "single" | "multiple";
9
+ defaultValue?: string[];
10
+ value?: string[];
11
+ onValueChange?: (value: string[]) => void;
12
+ };
13
+ declare function Accordion({ type, defaultValue, value, onValueChange, intent, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
14
+ type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
15
+ value: string;
16
+ };
17
+ declare function AccordionItem({ value, className, children, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
18
+ type AccordionTriggerProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
19
+ declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
20
+ type AccordionContentProps = React.HTMLAttributes<HTMLDivElement>;
21
+ declare function AccordionContent({ className, children, ...props }: AccordionContentProps): react_jsx_runtime.JSX.Element;
22
+
23
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1 @@
1
+ export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger}from'./chunks/chunk-5PFWPAB6.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Alert.cjs ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var chunk63LKYF4D_cjs=require('./chunks/chunk-63LKYF4D.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Alert",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.a}});Object.defineProperty(exports,"AlertDescription",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.c}});Object.defineProperty(exports,"AlertTitle",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.b}});Object.defineProperty(exports,"configureAlertTopOffset",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.d}});Object.defineProperty(exports,"useAlert",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.e}});
@@ -0,0 +1,28 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { alertVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type AlertProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>;
8
+ declare function Alert({ intent, className, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
9
+ declare function AlertTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
10
+ declare function AlertDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
11
+ type AlertPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center";
12
+ type AlertIntent = NonNullable<VariantProps<typeof alertVariants>["intent"]>;
13
+ type AlertOptions = {
14
+ intent?: AlertIntent;
15
+ title?: string;
16
+ message: string;
17
+ position?: AlertPosition;
18
+ duration?: number;
19
+ };
20
+ declare function removeAlert(id: string): void;
21
+ declare function addAlert(options: AlertOptions): string;
22
+ declare function configureAlertTopOffset(offset: number): void;
23
+ declare function useAlert(): {
24
+ addAlert: typeof addAlert;
25
+ removeAlert: typeof removeAlert;
26
+ };
27
+
28
+ export { Alert, AlertDescription, type AlertOptions, type AlertPosition, AlertTitle, configureAlertTopOffset, useAlert };
@@ -0,0 +1,28 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { alertVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type AlertProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>;
8
+ declare function Alert({ intent, className, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
9
+ declare function AlertTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
10
+ declare function AlertDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
11
+ type AlertPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center";
12
+ type AlertIntent = NonNullable<VariantProps<typeof alertVariants>["intent"]>;
13
+ type AlertOptions = {
14
+ intent?: AlertIntent;
15
+ title?: string;
16
+ message: string;
17
+ position?: AlertPosition;
18
+ duration?: number;
19
+ };
20
+ declare function removeAlert(id: string): void;
21
+ declare function addAlert(options: AlertOptions): string;
22
+ declare function configureAlertTopOffset(offset: number): void;
23
+ declare function useAlert(): {
24
+ addAlert: typeof addAlert;
25
+ removeAlert: typeof removeAlert;
26
+ };
27
+
28
+ export { Alert, AlertDescription, type AlertOptions, type AlertPosition, AlertTitle, configureAlertTopOffset, useAlert };
package/dist/Alert.js ADDED
@@ -0,0 +1 @@
1
+ export{a as Alert,c as AlertDescription,b as AlertTitle,d as configureAlertTopOffset,e as useAlert}from'./chunks/chunk-BW6NCATH.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Badge.cjs ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var chunkEK4BC3WT_cjs=require('./chunks/chunk-EK4BC3WT.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Badge",{enumerable:true,get:function(){return chunkEK4BC3WT_cjs.a}});
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { badgeVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
8
+ declare function Badge({ intent, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Badge };
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { badgeVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
8
+ declare function Badge({ intent, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Badge };
package/dist/Badge.js ADDED
@@ -0,0 +1 @@
1
+ export{a as Badge}from'./chunks/chunk-PODSD5UT.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunkBQLPFPCA_cjs=require('./chunks/chunk-BQLPFPCA.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunkBQLPFPCA_cjs.a}});
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { buttonVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>;
8
+ declare function Button({ intent, size, className, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Button };
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { buttonVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>;
8
+ declare function Button({ intent, size, className, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Button };
package/dist/Button.js ADDED
@@ -0,0 +1 @@
1
+ export{a as Button}from'./chunks/chunk-N36YROV3.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Card.cjs ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var chunkTDI2N27U_cjs=require('./chunks/chunk-TDI2N27U.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Card",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.a}});Object.defineProperty(exports,"CardContent",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.e}});Object.defineProperty(exports,"CardDescription",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.d}});Object.defineProperty(exports,"CardFooter",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.f}});Object.defineProperty(exports,"CardHeader",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.b}});Object.defineProperty(exports,"CardTitle",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.c}});Object.defineProperty(exports,"HorizontalCard",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.g}});
@@ -0,0 +1,33 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { cardVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type CardProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>;
8
+ declare function Card({ intent, size, className, ...props }: CardProps): react_jsx_runtime.JSX.Element;
9
+ declare function CardHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
10
+ declare function CardTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
11
+ declare function CardDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
12
+ declare function CardContent({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
13
+ declare function CardFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
14
+ type HorizontalCardMediaProps = {
15
+ /** Image source URL. */
16
+ src?: string;
17
+ /** Image alt text. */
18
+ alt?: string;
19
+ /** Render an icon or avatar instead of an image. */
20
+ icon?: React.ReactNode;
21
+ /** Width of the media area. @default '10rem' */
22
+ width?: string;
23
+ };
24
+ type HorizontalCardProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & VariantProps<typeof cardVariants> & {
25
+ /** Media placement. @default 'left' */
26
+ mediaPosition?: "left" | "right";
27
+ /** Media configuration. */
28
+ media: HorizontalCardMediaProps;
29
+ children: React.ReactNode;
30
+ };
31
+ declare function HorizontalCard({ intent, media, mediaPosition, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
32
+
33
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HorizontalCard };
package/dist/Card.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { cardVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type CardProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>;
8
+ declare function Card({ intent, size, className, ...props }: CardProps): react_jsx_runtime.JSX.Element;
9
+ declare function CardHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
10
+ declare function CardTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
11
+ declare function CardDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
12
+ declare function CardContent({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
13
+ declare function CardFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
14
+ type HorizontalCardMediaProps = {
15
+ /** Image source URL. */
16
+ src?: string;
17
+ /** Image alt text. */
18
+ alt?: string;
19
+ /** Render an icon or avatar instead of an image. */
20
+ icon?: React.ReactNode;
21
+ /** Width of the media area. @default '10rem' */
22
+ width?: string;
23
+ };
24
+ type HorizontalCardProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & VariantProps<typeof cardVariants> & {
25
+ /** Media placement. @default 'left' */
26
+ mediaPosition?: "left" | "right";
27
+ /** Media configuration. */
28
+ media: HorizontalCardMediaProps;
29
+ children: React.ReactNode;
30
+ };
31
+ declare function HorizontalCard({ intent, media, mediaPosition, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
32
+
33
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HorizontalCard };
package/dist/Card.js ADDED
@@ -0,0 +1 @@
1
+ export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle,g as HorizontalCard}from'./chunks/chunk-DXXCR4ON.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Chat.cjs ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var chunkOZVJMUXX_cjs=require('./chunks/chunk-OZVJMUXX.cjs');require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Chat",{enumerable:true,get:function(){return chunkOZVJMUXX_cjs.a}});
@@ -0,0 +1,32 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
4
+ interface ChatMessage {
5
+ /** Unique id for the message. */
6
+ id: string | number;
7
+ /** Sender display name. */
8
+ sender: string;
9
+ /** Avatar — URL string or ReactNode (icon / component). */
10
+ avatar?: string | React.ReactNode;
11
+ /** Message body. Can be text or rich ReactNode content. */
12
+ content: React.ReactNode;
13
+ /** Timestamp label, e.g. "10:30 AM". */
14
+ time?: string;
15
+ /** Mark as "self" (current user). Controls bubble alignment in split mode. */
16
+ self?: boolean;
17
+ }
18
+ interface ChatProps extends React.HTMLAttributes<HTMLDivElement> {
19
+ /** Array of messages to render. */
20
+ messages: ChatMessage[];
21
+ /**
22
+ * Layout mode.
23
+ * - `'split'` — self messages on the right, others on the left (default)
24
+ * - `'left'` — all messages aligned to the left
25
+ */
26
+ mode?: "split" | "left";
27
+ /** Auto-scroll to bottom when messages change. @default true */
28
+ autoScroll?: boolean;
29
+ }
30
+ declare function Chat({ messages, mode, autoScroll, className, ...props }: ChatProps): react_jsx_runtime.JSX.Element;
31
+
32
+ export { Chat, type ChatMessage, type ChatProps };
@@ -1,5 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import React from 'react';
2
- export interface ChatMessage {
3
+
4
+ interface ChatMessage {
3
5
  /** Unique id for the message. */
4
6
  id: string | number;
5
7
  /** Sender display name. */
@@ -13,7 +15,7 @@ export interface ChatMessage {
13
15
  /** Mark as "self" (current user). Controls bubble alignment in split mode. */
14
16
  self?: boolean;
15
17
  }
16
- export interface ChatProps extends React.HTMLAttributes<HTMLDivElement> {
18
+ interface ChatProps extends React.HTMLAttributes<HTMLDivElement> {
17
19
  /** Array of messages to render. */
18
20
  messages: ChatMessage[];
19
21
  /**
@@ -21,9 +23,10 @@ export interface ChatProps extends React.HTMLAttributes<HTMLDivElement> {
21
23
  * - `'split'` — self messages on the right, others on the left (default)
22
24
  * - `'left'` — all messages aligned to the left
23
25
  */
24
- mode?: 'split' | 'left';
26
+ mode?: "split" | "left";
25
27
  /** Auto-scroll to bottom when messages change. @default true */
26
28
  autoScroll?: boolean;
27
29
  }
28
- export declare function Chat({ messages, mode, autoScroll, className, ...props }: ChatProps): import("react/jsx-runtime").JSX.Element;
29
- //# sourceMappingURL=Chat.d.ts.map
30
+ declare function Chat({ messages, mode, autoScroll, className, ...props }: ChatProps): react_jsx_runtime.JSX.Element;
31
+
32
+ export { Chat, type ChatMessage, type ChatProps };
package/dist/Chat.js ADDED
@@ -0,0 +1 @@
1
+ export{a as Chat}from'./chunks/chunk-PHAX43YF.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunkN4QZRR2Y_cjs=require('./chunks/chunk-N4QZRR2Y.cjs');require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"CinePlayer",{enumerable:true,get:function(){return chunkN4QZRR2Y_cjs.a}});
@@ -0,0 +1,40 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface CinePlayerMedia {
4
+ /** Display title. */
5
+ title: string;
6
+ /** Subtitle / description line. */
7
+ subtitle?: string;
8
+ /** Media type tag (e.g. 'movie', 'clip', 'episode'). Used for sorting. */
9
+ type?: string;
10
+ /** Source URL (http/blob/file). */
11
+ src: string;
12
+ /** Poster / thumbnail URL. */
13
+ poster?: string;
14
+ /** Duration in seconds (auto-detected if omitted). */
15
+ duration?: number;
16
+ }
17
+ type CinePlayerSortKey = "title" | "type" | "duration";
18
+ interface CinePlayerProps {
19
+ /** Media playlist. */
20
+ playlist: CinePlayerMedia[];
21
+ /** Starting index. @default 0 */
22
+ initialTrack?: number;
23
+ /** Auto-play when ready. @default false */
24
+ autoPlay?: boolean;
25
+ /** Initial shuffle state. @default false */
26
+ shuffle?: boolean;
27
+ /** Initial loop state. @default false */
28
+ loop?: boolean;
29
+ /** Called on track change. */
30
+ onTrackChange?: (index: number, media: CinePlayerMedia) => void;
31
+ /** Called when play state changes. */
32
+ onPlayChange?: (playing: boolean) => void;
33
+ /** Accent color (any CSS color value). @default '#8b5cf6' */
34
+ accent?: string;
35
+ /** Extra class name on root. */
36
+ className?: string;
37
+ }
38
+ declare function CinePlayer({ playlist, initialTrack, autoPlay, shuffle: shuffleProp, loop: loopProp, onTrackChange, onPlayChange, accent, className, }: CinePlayerProps): react_jsx_runtime.JSX.Element;
39
+
40
+ export { CinePlayer, type CinePlayerMedia, type CinePlayerProps, type CinePlayerSortKey };
@@ -1,4 +1,6 @@
1
- export interface CinePlayerMedia {
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface CinePlayerMedia {
2
4
  /** Display title. */
3
5
  title: string;
4
6
  /** Subtitle / description line. */
@@ -12,8 +14,8 @@ export interface CinePlayerMedia {
12
14
  /** Duration in seconds (auto-detected if omitted). */
13
15
  duration?: number;
14
16
  }
15
- export type CinePlayerSortKey = 'title' | 'type' | 'duration';
16
- export interface CinePlayerProps {
17
+ type CinePlayerSortKey = "title" | "type" | "duration";
18
+ interface CinePlayerProps {
17
19
  /** Media playlist. */
18
20
  playlist: CinePlayerMedia[];
19
21
  /** Starting index. @default 0 */
@@ -33,5 +35,6 @@ export interface CinePlayerProps {
33
35
  /** Extra class name on root. */
34
36
  className?: string;
35
37
  }
36
- export declare function CinePlayer({ playlist, initialTrack, autoPlay, shuffle: shuffleProp, loop: loopProp, onTrackChange, onPlayChange, accent, className, }: CinePlayerProps): import("react/jsx-runtime").JSX.Element;
37
- //# sourceMappingURL=CinePlayer.d.ts.map
38
+ declare function CinePlayer({ playlist, initialTrack, autoPlay, shuffle: shuffleProp, loop: loopProp, onTrackChange, onPlayChange, accent, className, }: CinePlayerProps): react_jsx_runtime.JSX.Element;
39
+
40
+ export { CinePlayer, type CinePlayerMedia, type CinePlayerProps, type CinePlayerSortKey };
@@ -0,0 +1 @@
1
+ export{a as CinePlayer}from'./chunks/chunk-QTADJ7I5.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunkU2ZQHP4I_cjs=require('./chunks/chunk-U2ZQHP4I.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dialog",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.a}});Object.defineProperty(exports,"DialogClose",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.g}});Object.defineProperty(exports,"DialogContent",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.b}});Object.defineProperty(exports,"DialogDescription",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.e}});Object.defineProperty(exports,"DialogFooter",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.f}});Object.defineProperty(exports,"DialogHeader",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.c}});Object.defineProperty(exports,"DialogTitle",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.d}});
@@ -0,0 +1,24 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { dialogContentVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type DialogProps = {
8
+ open: boolean;
9
+ onOpenChange: (open: boolean) => void;
10
+ modal?: boolean;
11
+ /** When true, clicking outside the dialog closes it. @default false */
12
+ closeOnOutsideClick?: boolean;
13
+ children: React.ReactNode;
14
+ };
15
+ declare function Dialog({ open, onOpenChange, modal, closeOnOutsideClick, children, }: DialogProps): react_jsx_runtime.JSX.Element | null;
16
+ type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants>;
17
+ declare function DialogContent({ size, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element | null;
18
+ declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
19
+ declare function DialogTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
20
+ declare function DialogDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
21
+ declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
22
+ declare function DialogClose({ className, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
23
+
24
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle };
@@ -0,0 +1,24 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { dialogContentVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type DialogProps = {
8
+ open: boolean;
9
+ onOpenChange: (open: boolean) => void;
10
+ modal?: boolean;
11
+ /** When true, clicking outside the dialog closes it. @default false */
12
+ closeOnOutsideClick?: boolean;
13
+ children: React.ReactNode;
14
+ };
15
+ declare function Dialog({ open, onOpenChange, modal, closeOnOutsideClick, children, }: DialogProps): react_jsx_runtime.JSX.Element | null;
16
+ type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants>;
17
+ declare function DialogContent({ size, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element | null;
18
+ declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
19
+ declare function DialogTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
20
+ declare function DialogDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
21
+ declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
22
+ declare function DialogClose({ className, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
23
+
24
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle };
package/dist/Dialog.js ADDED
@@ -0,0 +1 @@
1
+ export{a as Dialog,g as DialogClose,b as DialogContent,e as DialogDescription,f as DialogFooter,c as DialogHeader,d as DialogTitle}from'./chunks/chunk-NCJ5A6VE.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunk5XPTHIGM_cjs=require('./chunks/chunk-5XPTHIGM.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dropdown",{enumerable:true,get:function(){return chunk5XPTHIGM_cjs.a}});