@adit_firdaus/onecn 0.1.0 → 0.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/LICENSE +21 -0
- package/README.md +63 -22
- package/dist/components/helpers/confirm-dialog.d.ts +15 -0
- package/dist/components/helpers/confirm-dialog.d.ts.map +1 -0
- package/dist/components/helpers/confirm-dialog.js +7 -0
- package/dist/components/helpers/confirm-dialog.js.map +1 -0
- package/dist/components/helpers/copy-button.d.ts +7 -0
- package/dist/components/helpers/copy-button.d.ts.map +1 -0
- package/dist/components/helpers/copy-button.js +10 -0
- package/dist/components/helpers/copy-button.js.map +1 -0
- package/dist/components/helpers/empty-state.d.ts +13 -0
- package/dist/components/helpers/empty-state.d.ts.map +1 -0
- package/dist/components/helpers/empty-state.js +8 -0
- package/dist/components/helpers/empty-state.js.map +1 -0
- package/dist/components/helpers/form-group.d.ts +11 -0
- package/dist/components/helpers/form-group.d.ts.map +1 -0
- package/dist/components/helpers/form-group.js +7 -0
- package/dist/components/helpers/form-group.js.map +1 -0
- package/dist/components/helpers/page-header.d.ts +9 -0
- package/dist/components/helpers/page-header.d.ts.map +1 -0
- package/dist/components/helpers/page-header.js +6 -0
- package/dist/components/helpers/page-header.js.map +1 -0
- package/dist/components/helpers/skeleton-card.d.ts +8 -0
- package/dist/components/helpers/skeleton-card.d.ts.map +1 -0
- package/dist/components/helpers/skeleton-card.js +10 -0
- package/dist/components/helpers/skeleton-card.js.map +1 -0
- package/dist/components/helpers/status-badge.d.ts +7 -0
- package/dist/components/helpers/status-badge.d.ts.map +1 -0
- package/dist/components/helpers/status-badge.js +21 -0
- package/dist/components/helpers/status-badge.js.map +1 -0
- package/dist/components/helpers/theme-toggle.d.ts +5 -0
- package/dist/components/helpers/theme-toggle.d.ts.map +1 -0
- package/dist/components/helpers/theme-toggle.js +10 -0
- package/dist/components/helpers/theme-toggle.js.map +1 -0
- package/dist/components/onecn-provider.d.ts +20 -0
- package/dist/components/onecn-provider.d.ts.map +1 -0
- package/dist/components/onecn-provider.js +9 -0
- package/dist/components/onecn-provider.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +1 -1
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +2 -3
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +1 -1
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +6 -1
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +12 -3
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +7 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +1 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +1 -1
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +5 -19
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.d.ts +1 -1
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/command.d.ts +8 -8
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +2 -3
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +4 -7
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/form.d.ts +1 -1
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.js +2 -4
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +2 -2
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +5 -1
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +1 -1
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +1 -1
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +3 -5
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +2 -2
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +1 -1
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +2 -4
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +2 -3
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +2 -2
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.d.ts +1 -1
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +1 -1
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toast.d.ts +1 -1
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +1 -1
- package/dist/components/ui/toast.js.map +1 -1
- package/dist/components/ui/toaster.d.ts.map +1 -1
- package/dist/components/ui/toaster.js +1 -3
- package/dist/components/ui/toaster.js.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +1 -1
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/hooks/use-clipboard.d.ts +7 -0
- package/dist/hooks/use-clipboard.d.ts.map +1 -0
- package/dist/hooks/use-clipboard.js +33 -0
- package/dist/hooks/use-clipboard.js.map +1 -0
- package/dist/hooks/use-disclosure.d.ts +8 -0
- package/dist/hooks/use-disclosure.d.ts.map +1 -0
- package/dist/hooks/use-disclosure.js +9 -0
- package/dist/hooks/use-disclosure.js.map +1 -0
- package/dist/hooks/use-media-query.d.ts +2 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +15 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-previous.d.ts +2 -0
- package/dist/hooks/use-previous.d.ts.map +1 -0
- package/dist/hooks/use-previous.js +9 -0
- package/dist/hooks/use-previous.js.map +1 -0
- package/dist/hooks/use-theme.d.ts +3 -0
- package/dist/hooks/use-theme.d.ts.map +1 -0
- package/dist/hooks/use-theme.js +2 -0
- package/dist/hooks/use-theme.js.map +1 -0
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js +6 -6
- package/dist/hooks/use-toast.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/config.d.ts +16 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +11 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +19 -0
- package/dist/lib/utils.js.map +1 -1
- package/package.json +292 -9
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Adit Firdaus
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
# onecn
|
|
1
|
+
# @adit_firdaus/onecn
|
|
2
2
|
|
|
3
3
|
All [shadcn/ui](https://ui.shadcn.com) components packed into a single, easy-to-install package.
|
|
4
4
|
|
|
5
|
+
[](https://github.com/aditfirdaus/onecn/actions/workflows/ci.yml)
|
|
6
|
+
[](https://www.npmjs.com/package/@adit_firdaus/onecn)
|
|
7
|
+
|
|
5
8
|
## Why?
|
|
6
9
|
|
|
7
|
-
Instead of installing shadcn components one-by-one via the CLI,
|
|
10
|
+
Instead of installing shadcn components one-by-one via the CLI, `@adit_firdaus/onecn` gives you everything in one shot:
|
|
8
11
|
|
|
9
12
|
```bash
|
|
10
|
-
bun add onecn
|
|
13
|
+
bun add @adit_firdaus/onecn
|
|
11
14
|
```
|
|
12
15
|
|
|
13
16
|
## Installation
|
|
@@ -15,7 +18,7 @@ bun add onecn
|
|
|
15
18
|
### 1. Install the package
|
|
16
19
|
|
|
17
20
|
```bash
|
|
18
|
-
bun add onecn
|
|
21
|
+
bun add @adit_firdaus/onecn
|
|
19
22
|
```
|
|
20
23
|
|
|
21
24
|
### 2. Import the styles
|
|
@@ -23,10 +26,10 @@ bun add onecn
|
|
|
23
26
|
Add this to your main CSS file (e.g. `globals.css`):
|
|
24
27
|
|
|
25
28
|
```css
|
|
26
|
-
@import "onecn/styles";
|
|
29
|
+
@import "@adit_firdaus/onecn/styles";
|
|
27
30
|
```
|
|
28
31
|
|
|
29
|
-
Or copy the CSS variables from `node_modules/onecn/dist/index.css` into your own stylesheet.
|
|
32
|
+
Or copy the CSS variables from `node_modules/@adit_firdaus/onecn/dist/index.css` into your own stylesheet.
|
|
30
33
|
|
|
31
34
|
### 3. Configure Tailwind
|
|
32
35
|
|
|
@@ -36,7 +39,7 @@ Make sure your `tailwind.config.js` includes the package in its content paths:
|
|
|
36
39
|
module.exports = {
|
|
37
40
|
content: [
|
|
38
41
|
"./src/**/*.{js,ts,jsx,tsx}",
|
|
39
|
-
"./node_modules/onecn/dist/**/*.{js,ts,jsx,tsx}",
|
|
42
|
+
"./node_modules/@adit_firdaus/onecn/dist/**/*.{js,ts,jsx,tsx}",
|
|
40
43
|
],
|
|
41
44
|
theme: {
|
|
42
45
|
extend: {
|
|
@@ -87,31 +90,54 @@ module.exports = {
|
|
|
87
90
|
|
|
88
91
|
## Usage
|
|
89
92
|
|
|
90
|
-
|
|
93
|
+
### Barrel import (all components)
|
|
94
|
+
|
|
95
|
+
```tsx
|
|
96
|
+
import { Button, Card, Dialog, Input, Label } from "@adit_firdaus/onecn";
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Subpath import (tree-shaking friendly)
|
|
100
|
+
|
|
101
|
+
For better bundler performance and to avoid resolving heavy transitive dependencies when you only need one component:
|
|
91
102
|
|
|
92
103
|
```tsx
|
|
93
|
-
import { Button
|
|
104
|
+
import { Button } from "@adit_firdaus/onecn/button";
|
|
105
|
+
import { Dialog } from "@adit_firdaus/onecn/dialog";
|
|
106
|
+
import { cn } from "@adit_firdaus/onecn/utils";
|
|
107
|
+
import { useToast } from "@adit_firdaus/onecn/use-toast";
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Quick example
|
|
94
111
|
|
|
95
|
-
|
|
112
|
+
```tsx
|
|
113
|
+
import { Button } from "@adit_firdaus/onecn/button";
|
|
114
|
+
import { Card, CardHeader, CardTitle, CardContent } from "@adit_firdaus/onecn/card";
|
|
115
|
+
|
|
116
|
+
export function ProfileCard() {
|
|
96
117
|
return (
|
|
97
118
|
<Card>
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
119
|
+
<CardHeader>
|
|
120
|
+
<CardTitle>Profile</CardTitle>
|
|
121
|
+
</CardHeader>
|
|
122
|
+
<CardContent>
|
|
123
|
+
<Button>Save</Button>
|
|
124
|
+
</CardContent>
|
|
101
125
|
</Card>
|
|
102
126
|
);
|
|
103
127
|
}
|
|
104
128
|
```
|
|
105
129
|
|
|
106
|
-
## Included Components
|
|
130
|
+
## Included Components (47)
|
|
107
131
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
132
|
+
| Category | Components |
|
|
133
|
+
|----------|-----------|
|
|
134
|
+
| **Layout** | AspectRatio, Card, Resizable, ScrollArea, Separator, Sheet, Skeleton |
|
|
135
|
+
| **Forms** | Button, Calendar, Checkbox, Command, Form, Input, InputOTP, Label, RadioGroup, Select, Slider, Switch, Textarea, Toggle, ToggleGroup |
|
|
136
|
+
| **Overlays** | AlertDialog, Dialog, Drawer, DropdownMenu, ContextMenu, HoverCard, Menubar, NavigationMenu, Popover, Sheet, Tooltip |
|
|
137
|
+
| **Data Display** | Avatar, Badge, Breadcrumb, Carousel, Chart, Pagination, Progress, Table |
|
|
138
|
+
| **Feedback** | Alert, Sonner, Toast, Toaster |
|
|
139
|
+
| **Navigation** | Accordion, Collapsible, Tabs |
|
|
140
|
+
| **Utilities** | `cn` (from `tailwind-merge` + `clsx`) |
|
|
115
141
|
|
|
116
142
|
## Requirements
|
|
117
143
|
|
|
@@ -122,9 +148,24 @@ export default function Page() {
|
|
|
122
148
|
## Development
|
|
123
149
|
|
|
124
150
|
```bash
|
|
125
|
-
|
|
151
|
+
# Install dependencies
|
|
126
152
|
bun install
|
|
153
|
+
|
|
154
|
+
# Run tests
|
|
155
|
+
bun test
|
|
156
|
+
|
|
157
|
+
# Run linter
|
|
158
|
+
bun run lint
|
|
159
|
+
|
|
160
|
+
# Build package
|
|
127
161
|
bun run build
|
|
162
|
+
|
|
163
|
+
# Watch mode build
|
|
164
|
+
bun run dev
|
|
165
|
+
|
|
166
|
+
# Sync components with upstream shadcn/ui
|
|
167
|
+
bun run scripts/sync-shadcn.ts
|
|
168
|
+
bun run scripts/sync-shadcn.ts button
|
|
128
169
|
```
|
|
129
170
|
|
|
130
171
|
## License
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { type ButtonProps } from "../ui/button";
|
|
3
|
+
export interface ConfirmDialogProps {
|
|
4
|
+
trigger?: React.ReactNode;
|
|
5
|
+
triggerLabel?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
cancelLabel?: string;
|
|
9
|
+
confirmLabel?: string;
|
|
10
|
+
confirmVariant?: ButtonProps["variant"];
|
|
11
|
+
onConfirm?: () => void;
|
|
12
|
+
onCancel?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function ConfirmDialog({ trigger, triggerLabel, title, description, cancelLabel, confirmLabel, confirmVariant, onConfirm, onCancel, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=confirm-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/confirm-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAYpC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,YAAqB,EACrB,KAAuB,EACvB,WAA6C,EAC7C,WAAsB,EACtB,YAAyB,EACzB,cAA0B,EAC1B,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,2CAsBpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "../ui/alert-dialog";
|
|
3
|
+
import { Button } from "../ui/button";
|
|
4
|
+
export function ConfirmDialog({ trigger, triggerLabel = "Open", title = "Are you sure?", description = "This action cannot be undone.", cancelLabel = "Cancel", confirmLabel = "Continue", confirmVariant = "default", onConfirm, onCancel, }) {
|
|
5
|
+
return (_jsxs(AlertDialog, { children: [_jsx(AlertDialogTrigger, { asChild: true, children: trigger ?? _jsx(Button, { variant: "outline", children: triggerLabel }) }), _jsxs(AlertDialogContent, { children: [_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: title }), _jsx(AlertDialogDescription, { children: description })] }), _jsxs(AlertDialogFooter, { children: [_jsx(AlertDialogCancel, { onClick: onCancel, children: cancelLabel }), _jsx(AlertDialogAction, { onClick: onConfirm, className: confirmVariant ? undefined : undefined, children: _jsx(Button, { variant: confirmVariant, asChild: true, children: _jsx("span", { children: confirmLabel }) }) })] })] })] }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=confirm-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-dialog.js","sourceRoot":"","sources":["../../../src/components/helpers/confirm-dialog.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAoB,MAAM,cAAc,CAAC;AAcxD,MAAM,UAAU,aAAa,CAAC,EAC5B,OAAO,EACP,YAAY,GAAG,MAAM,EACrB,KAAK,GAAG,eAAe,EACvB,WAAW,GAAG,+BAA+B,EAC7C,WAAW,GAAG,QAAQ,EACtB,YAAY,GAAG,UAAU,EACzB,cAAc,GAAG,SAAS,EAC1B,SAAS,EACT,QAAQ,GACW;IACnB,OAAO,CACL,MAAC,WAAW,eACV,KAAC,kBAAkB,IAAC,OAAO,kBACxB,OAAO,IAAI,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,YAAE,YAAY,GAAU,GAC1C,EACrB,MAAC,kBAAkB,eACjB,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,cAAE,KAAK,GAAoB,EAC5C,KAAC,sBAAsB,cAAE,WAAW,GAA0B,IAC5C,EACpB,MAAC,iBAAiB,eAChB,KAAC,iBAAiB,IAAC,OAAO,EAAE,QAAQ,YAAG,WAAW,GAAqB,EACvE,KAAC,iBAAiB,IAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,YACtF,KAAC,MAAM,IAAC,OAAO,EAAE,cAAc,EAAE,OAAO,kBACtC,yBAAO,YAAY,GAAQ,GACpB,GACS,IACF,IACD,IACT,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ButtonProps } from "../ui/button";
|
|
2
|
+
export interface CopyButtonProps extends Omit<ButtonProps, "onClick"> {
|
|
3
|
+
text: string;
|
|
4
|
+
timeout?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function CopyButton({ text, timeout, className, variant, size, ...props }: CopyButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=copy-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/copy-button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAc,EACd,SAAS,EACT,OAAiB,EACjB,IAAa,EACb,GAAG,KAAK,EACT,EAAE,eAAe,2CAejB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Check, Copy } from "lucide-react";
|
|
3
|
+
import { useClipboard } from "../../hooks/use-clipboard";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import { Button } from "../ui/button";
|
|
6
|
+
export function CopyButton({ text, timeout = 2000, className, variant = "ghost", size = "icon", ...props }) {
|
|
7
|
+
const { copied, copy } = useClipboard(timeout);
|
|
8
|
+
return (_jsxs(Button, { variant: variant, size: size, className: cn(className), onClick: () => copy(text), ...props, children: [copied ? _jsx(Check, { className: "h-4 w-4" }) : _jsx(Copy, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "Copy" })] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=copy-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-button.js","sourceRoot":"","sources":["../../../src/components/helpers/copy-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAoB,MAAM,cAAc,CAAC;AAOxD,MAAM,UAAU,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,GAAG,IAAI,EACd,SAAS,EACT,OAAO,GAAG,OAAO,EACjB,IAAI,GAAG,MAAM,EACb,GAAG,KAAK,EACQ;IAChB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAE/C,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KACrB,KAAK,aAER,MAAM,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,SAAS,EAAC,SAAS,GAAG,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,SAAS,EAAC,SAAS,GAAG,EACtE,eAAM,SAAS,EAAC,SAAS,qBAAY,IAC9B,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { type ButtonProps } from "../ui/button";
|
|
3
|
+
export interface EmptyStateProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
action?: ButtonProps & {
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function EmptyState({ title, description, icon, action, className, }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=empty-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/empty-state.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,KAA0B,EAC1B,WAAqF,EACrF,IAAmE,EACnE,MAAM,EACN,SAAS,GACV,EAAE,eAAe,2CAkBjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FileQuestion } from "lucide-react";
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
import { Button } from "../ui/button";
|
|
5
|
+
export function EmptyState({ title = "No results found", description = "Try adjusting your search or filters to find what you're looking for.", icon = _jsx(FileQuestion, { className: "h-10 w-10 text-muted-foreground" }), action, className, }) {
|
|
6
|
+
return (_jsxs("div", { className: cn("flex flex-col items-center justify-center rounded-lg border border-dashed p-8 text-center", className), children: [_jsx("div", { className: "mb-4", children: icon }), _jsx("h3", { className: "text-lg font-semibold", children: title }), _jsx("p", { className: "mt-1 max-w-sm text-sm text-muted-foreground", children: description }), action && (_jsx(Button, { className: "mt-4", ...action, children: action.label }))] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=empty-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.js","sourceRoot":"","sources":["../../../src/components/helpers/empty-state.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAoB,MAAM,cAAc,CAAC;AAUxD,MAAM,UAAU,UAAU,CAAC,EACzB,KAAK,GAAG,kBAAkB,EAC1B,WAAW,GAAG,uEAAuE,EACrF,IAAI,GAAG,KAAC,YAAY,IAAC,SAAS,EAAC,iCAAiC,GAAG,EACnE,MAAM,EACN,SAAS,GACO;IAChB,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,2FAA2F,EAC3F,SAAS,CACV,aAED,cAAK,SAAS,EAAC,MAAM,YAAE,IAAI,GAAO,EAClC,aAAI,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAM,EAClD,YAAG,SAAS,EAAC,6CAA6C,YAAE,WAAW,GAAK,EAC3E,MAAM,IAAI,CACT,KAAC,MAAM,IAAC,SAAS,EAAC,MAAM,KAAK,MAAM,YAChC,MAAM,CAAC,KAAK,GACN,CACV,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface FormGroupProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
helper?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function FormGroup({ label, error, helper, children, className, required }: FormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=form-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-group.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/form-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,cAAc,2CAchG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
|
+
import { Label } from "../ui/label";
|
|
4
|
+
export function FormGroup({ label, error, helper, children, className, required }) {
|
|
5
|
+
return (_jsxs("div", { className: cn("space-y-2", className), children: [label && (_jsxs(Label, { className: cn(error && "text-destructive"), children: [label, required && _jsx("span", { className: "text-destructive ml-1", children: "*" })] })), children, error && _jsx("p", { className: "text-sm font-medium text-destructive", children: error }), helper && !error && _jsx("p", { className: "text-sm text-muted-foreground", children: helper })] }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=form-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-group.js","sourceRoot":"","sources":["../../../src/components/helpers/form-group.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAWpC,MAAM,UAAU,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAkB;IAC/F,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,aACvC,KAAK,IAAI,CACR,MAAC,KAAK,IAAC,SAAS,EAAE,EAAE,CAAC,KAAK,IAAI,kBAAkB,CAAC,aAC9C,KAAK,EACL,QAAQ,IAAI,eAAM,SAAS,EAAC,uBAAuB,kBAAS,IACvD,CACT,EACA,QAAQ,EACR,KAAK,IAAI,YAAG,SAAS,EAAC,sCAAsC,YAAE,KAAK,GAAK,EACxE,MAAM,IAAI,CAAC,KAAK,IAAI,YAAG,SAAS,EAAC,+BAA+B,YAAE,MAAM,GAAK,IAC1E,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface PageHeaderProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
actions?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function PageHeader({ title, description, actions, className }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/page-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,2CAerF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
|
+
export function PageHeader({ title, description, actions, className }) {
|
|
4
|
+
return (_jsxs("div", { className: cn("flex flex-col gap-1 pb-6 md:flex-row md:items-start md:justify-between", className), children: [_jsxs("div", { className: "space-y-1", children: [_jsx("h1", { className: "text-2xl font-bold tracking-tight", children: title }), description && _jsx("p", { className: "text-muted-foreground", children: description })] }), actions && _jsx("div", { className: "flex items-center gap-2 md:mt-0 mt-2", children: actions })] }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=page-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.js","sourceRoot":"","sources":["../../../src/components/helpers/page-header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AASrC,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAmB;IACpF,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,wEAAwE,EACxE,SAAS,CACV,aAED,eAAK,SAAS,EAAC,WAAW,aACxB,aAAI,SAAS,EAAC,mCAAmC,YAAE,KAAK,GAAM,EAC7D,WAAW,IAAI,YAAG,SAAS,EAAC,uBAAuB,YAAE,WAAW,GAAK,IAClE,EACL,OAAO,IAAI,cAAK,SAAS,EAAC,sCAAsC,YAAE,OAAO,GAAO,IAC7E,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface SkeletonCardProps {
|
|
2
|
+
header?: boolean;
|
|
3
|
+
footer?: boolean;
|
|
4
|
+
lines?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function SkeletonCard({ header, footer, lines, className, }: SkeletonCardProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=skeleton-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton-card.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/skeleton-card.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAC3B,MAAa,EACb,MAAa,EACb,KAAS,EACT,SAAS,GACV,EAAE,iBAAiB,2CAsBnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
|
+
import { Card, CardContent, CardFooter, CardHeader } from "../ui/card";
|
|
4
|
+
import { Skeleton } from "../ui/skeleton";
|
|
5
|
+
export function SkeletonCard({ header = true, footer = true, lines = 3, className, }) {
|
|
6
|
+
return (_jsxs(Card, { className: cn("w-full", className), children: [header && (_jsxs(CardHeader, { children: [_jsx(Skeleton, { className: "h-5 w-1/3" }), _jsx(Skeleton, { className: "h-4 w-1/2" })] })), _jsx(CardContent, { className: "space-y-2", children: Array.from({ length: lines }).map((_, i) => (
|
|
7
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: static skeleton placeholders
|
|
8
|
+
_jsx(Skeleton, { className: "h-4 w-full" }, `skeleton-${i}`))) }), footer && (_jsx(CardFooter, { children: _jsx(Skeleton, { className: "h-9 w-24" }) }))] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=skeleton-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton-card.js","sourceRoot":"","sources":["../../../src/components/helpers/skeleton-card.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAS1C,MAAM,UAAU,YAAY,CAAC,EAC3B,MAAM,GAAG,IAAI,EACb,MAAM,GAAG,IAAI,EACb,KAAK,GAAG,CAAC,EACT,SAAS,GACS;IAClB,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,aACrC,MAAM,IAAI,CACT,MAAC,UAAU,eACT,KAAC,QAAQ,IAAC,SAAS,EAAC,WAAW,GAAG,EAClC,KAAC,QAAQ,IAAC,SAAS,EAAC,WAAW,GAAG,IACvB,CACd,EACD,KAAC,WAAW,IAAC,SAAS,EAAC,WAAW,YAC/B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,6EAA6E;gBAC7E,KAAC,QAAQ,IAAuB,SAAS,EAAC,YAAY,IAAvC,YAAY,CAAC,EAAE,CAA2B,CAC1D,CAAC,GACU,EACb,MAAM,IAAI,CACT,KAAC,UAAU,cACT,KAAC,QAAQ,IAAC,SAAS,EAAC,UAAU,GAAG,GACtB,CACd,IACI,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type BadgeProps } from "../ui/badge";
|
|
2
|
+
export type Status = "success" | "warning" | "error" | "info" | "default";
|
|
3
|
+
export interface StatusBadgeProps extends Omit<BadgeProps, "variant"> {
|
|
4
|
+
status?: Status;
|
|
5
|
+
}
|
|
6
|
+
export declare function StatusBadge({ status, className, children, ...props }: StatusBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=status-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-badge.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/status-badge.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE1E,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAkBD,wBAAgB,WAAW,CAAC,EAC1B,MAAkB,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAUlB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
|
+
import { Badge } from "../ui/badge";
|
|
4
|
+
const statusVariantMap = {
|
|
5
|
+
success: "default",
|
|
6
|
+
warning: "secondary",
|
|
7
|
+
error: "destructive",
|
|
8
|
+
info: "outline",
|
|
9
|
+
default: "default",
|
|
10
|
+
};
|
|
11
|
+
const statusClassMap = {
|
|
12
|
+
success: "bg-green-100 text-green-800 hover:bg-green-100 border-green-200",
|
|
13
|
+
warning: "bg-yellow-100 text-yellow-800 hover:bg-yellow-100 border-yellow-200",
|
|
14
|
+
error: "", // destructive variant handles this
|
|
15
|
+
info: "bg-blue-50 text-blue-800 hover:bg-blue-50 border-blue-200",
|
|
16
|
+
default: "",
|
|
17
|
+
};
|
|
18
|
+
export function StatusBadge({ status = "default", className, children, ...props }) {
|
|
19
|
+
return (_jsx(Badge, { variant: statusVariantMap[status], className: cn(statusClassMap[status], className), ...props, children: children }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=status-badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-badge.js","sourceRoot":"","sources":["../../../src/components/helpers/status-badge.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,KAAK,EAAmB,MAAM,aAAa,CAAC;AAQrD,MAAM,gBAAgB,GAA0C;IAC9D,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,cAAc,GAA2B;IAC7C,OAAO,EAAE,iEAAiE;IAC1E,OAAO,EAAE,qEAAqE;IAC9E,KAAK,EAAE,EAAE,EAAE,mCAAmC;IAC9C,IAAI,EAAE,2DAA2D;IACjE,OAAO,EAAE,EAAE;CACZ,CAAC;AAEF,MAAM,UAAU,WAAW,CAAC,EAC1B,MAAM,GAAG,SAAS,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACS;IACjB,OAAO,CACL,KAAC,KAAK,IACJ,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,KAC5C,KAAK,YAER,QAAQ,GACH,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/theme-toggle.tsx"],"names":[],"mappings":"AAWA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CAmB1D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Moon, Sun } from "lucide-react";
|
|
3
|
+
import { useTheme } from "../../hooks/use-theme";
|
|
4
|
+
import { Button } from "../ui/button";
|
|
5
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "../ui/dropdown-menu";
|
|
6
|
+
export function ThemeToggle({ className }) {
|
|
7
|
+
const { setTheme } = useTheme();
|
|
8
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "outline", size: "icon", className: className, children: [_jsx(Sun, { className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }), _jsx(Moon, { className: "absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }), _jsx("span", { className: "sr-only", children: "Toggle theme" })] }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsx(DropdownMenuItem, { onClick: () => setTheme("light"), children: "Light" }), _jsx(DropdownMenuItem, { onClick: () => setTheme("dark"), children: "Dark" }), _jsx(DropdownMenuItem, { onClick: () => setTheme("system"), children: "System" })] })] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=theme-toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-toggle.js","sourceRoot":"","sources":["../../../src/components/helpers/theme-toggle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAM7B,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAoB;IACzD,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;IAEhC,OAAO,CACL,MAAC,YAAY,eACX,KAAC,mBAAmB,IAAC,OAAO,kBAC1B,MAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,SAAS,aACxD,KAAC,GAAG,IAAC,SAAS,EAAC,sFAAsF,GAAG,EACxG,KAAC,IAAI,IAAC,SAAS,EAAC,8FAA8F,GAAG,EACjH,eAAM,SAAS,EAAC,SAAS,6BAAoB,IACtC,GACW,EACtB,MAAC,mBAAmB,IAAC,KAAK,EAAC,KAAK,aAC9B,KAAC,gBAAgB,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,sBAA0B,EAC5E,KAAC,gBAAgB,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,qBAAyB,EAC1E,KAAC,gBAAgB,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,uBAA2B,IAC1D,IACT,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useTheme } from "next-themes";
|
|
2
|
+
import type { ThemeProviderProps } from "next-themes/dist/types";
|
|
3
|
+
import type * as React from "react";
|
|
4
|
+
import { type OneCNConfig } from "../lib/config";
|
|
5
|
+
export type { ThemeProviderProps };
|
|
6
|
+
export { useTheme };
|
|
7
|
+
export interface OneCNProviderProps {
|
|
8
|
+
/**
|
|
9
|
+
* Props passed to next-themes ThemeProvider.
|
|
10
|
+
* If omitted, a sensible default is used.
|
|
11
|
+
*/
|
|
12
|
+
theme?: Omit<ThemeProviderProps, "children">;
|
|
13
|
+
/**
|
|
14
|
+
* Global component configuration.
|
|
15
|
+
*/
|
|
16
|
+
config?: OneCNConfig;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function OneCNProvider({ theme, config, children }: OneCNProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=onecn-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onecn-provider.d.ts","sourceRoot":"","sources":["../../src/components/onecn-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjE,YAAY,EAAE,kBAAkB,EAAE,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAe5E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ThemeProvider, useTheme } from "next-themes";
|
|
3
|
+
import { ConfigProvider } from "../lib/config";
|
|
4
|
+
import { Toaster } from "./ui/toaster";
|
|
5
|
+
export { useTheme };
|
|
6
|
+
export function OneCNProvider({ theme, config, children }) {
|
|
7
|
+
return (_jsx(ThemeProvider, { attribute: "class", defaultTheme: "system", enableSystem: true, disableTransitionOnChange: false, ...theme, children: _jsxs(ConfigProvider, { config: config, children: [children, _jsx(Toaster, {})] }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=onecn-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onecn-provider.js","sourceRoot":"","sources":["../../src/components/onecn-provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAoB,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,QAAQ,EAAE,CAAC;AAepB,MAAM,UAAU,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAsB;IAC3E,OAAO,CACL,KAAC,aAAa,IACZ,SAAS,EAAC,OAAO,EACjB,YAAY,EAAC,QAAQ,EACrB,YAAY,QACZ,yBAAyB,EAAE,KAAK,KAC5B,KAAK,YAET,MAAC,cAAc,IAAC,MAAM,EAAE,MAAM,aAC3B,QAAQ,EACT,KAAC,OAAO,KAAG,IACI,GACH,CACjB,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,SAAS,8JAA0B,CAAC;AAE1C,QAAA,MAAM,aAAa,iKAKjB,CAAC;AAGH,QAAA,MAAM,gBAAgB,0KAiBpB,CAAC;AAGH,QAAA,MAAM,gBAAgB,oKAWpB,CAAC;AAGH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
4
3
|
import { ChevronDown } from "lucide-react";
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
6
|
const Accordion = AccordionPrimitive.Root;
|
|
7
7
|
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => (_jsx(AccordionPrimitive.Item, { ref: ref, className: cn("border-b", className), ...props })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":";AAAA,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EAAC,2GAA2G,KACjH,KAAK,YAET,cAAK,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,YAAG,QAAQ,GAAO,GACjC,CAC9B,CAAC,CAAC;AACH,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
4
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,WAAW,iDAA4B,CAAC;AAC9C,QAAA,MAAM,kBAAkB,wHAA+B,CAAC;AACxD,QAAA,MAAM,iBAAiB,uDAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,wKAYtB,CAAC;AAGH,QAAA,MAAM,kBAAkB,wKAetB,CAAC;AAGH,QAAA,MAAM,iBAAiB;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEvF,CAAC;AAGF,QAAA,MAAM,iBAAiB;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKvF,CAAC;AAGF,QAAA,MAAM,gBAAgB,8KASpB,CAAC;AAGH,QAAA,MAAM,sBAAsB,wLAS1B,CAAC;AAGH,QAAA,MAAM,iBAAiB,6KAKrB,CAAC;AAGH,QAAA,MAAM,iBAAiB,6KASrB,CAAC;AAGH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
import { buttonVariants } from "./button";
|
|
6
6
|
const AlertDialog = AlertDialogPrimitive.Root;
|
|
@@ -17,8 +17,7 @@ AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
|
17
17
|
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold", className), ...props })));
|
|
18
18
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
19
19
|
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
20
|
-
AlertDialogDescription.displayName =
|
|
21
|
-
AlertDialogPrimitive.Description.displayName;
|
|
20
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
22
21
|
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Action, { ref: ref, className: cn(buttonVariants(), className), ...props })));
|
|
23
22
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
24
23
|
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Cancel, { ref: ref, className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className), ...props })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.js","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"alert-dialog.js","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,GAAG,oBAAoB,CAAC,IAAI,CAAC;AAC9C,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,OAAO,CAAC;AACxD,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,MAAM,CAAC;AAEtD,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAGzC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,oBAAoB,CAAC,OAAO,IAC3B,SAAS,EAAE,EAAE,CACX,wJAAwJ,EACxJ,SAAS,CACV,KACG,KAAK,EACT,GAAG,EAAE,GAAG,GACR,CACH,CAAC,CAAC;AACH,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC,OAAO,CAAC,WAAW,CAAC;AAE1E,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAGzC,CAAC,EAAE,SAAS,EAAE,GAAG,K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import * as React from "react";
|
|
3
3
|
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,QAAA,MAAM,KAAK;;sHAKT,CAAC;AAGH,QAAA,MAAM,UAAU,uHAQf,CAAC;AAGF,QAAA,MAAM,gBAAgB,yHAKpB,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
import { cva } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", {
|
|
6
6
|
variants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":";AAAA,OA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AgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
4
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
5
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|