abckit 0.0.1 → 0.0.3
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 +131 -0
- package/dist/module.d.mts +39 -5
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -28
- package/dist/runtime/components/app/AppImage.vue +1 -1
- package/dist/runtime/components/app/AppNavMain.vue +3 -1
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.d.vue.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue.d.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.d.vue.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue.d.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.d.vue.ts +0 -17
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue.d.ts +0 -17
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.d.vue.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue.d.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.d.vue.ts +0 -17
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue.d.ts +0 -17
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.d.vue.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue.d.ts +0 -14
- package/dist/runtime/components/ui/badge/index.d.ts +1 -1
- package/dist/runtime/components/ui/button/ThemeToggle.vue +2 -2
- package/dist/runtime/components/ui/button/index.d.ts +2 -2
- package/dist/runtime/components/ui/calendar/Calendar.vue +1 -0
- package/dist/runtime/components/ui/chart/ChartContainer.vue +1 -1
- package/dist/runtime/components/ui/chart/ChartLegendContent.vue +3 -3
- package/dist/runtime/components/ui/chart/ChartTooltipContent.vue +1 -0
- package/dist/runtime/components/ui/chart/index.d.ts +0 -1
- package/dist/runtime/components/ui/chart/index.js +0 -1
- package/dist/runtime/components/ui/chart/utils.js +1 -0
- package/dist/runtime/components/ui/combobox/Combobox.d.vue.ts +2 -2
- package/dist/runtime/components/ui/combobox/Combobox.vue.d.ts +2 -2
- package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +4 -1
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +4 -1
- package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +4 -4
- package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +4 -4
- package/dist/runtime/components/ui/file/FileGrid.vue +2 -0
- package/dist/runtime/components/ui/file/FileTable.vue +8 -4
- package/dist/runtime/components/ui/input-otp/InputOTP.d.vue.ts +8 -8
- package/dist/runtime/components/ui/input-otp/InputOTP.vue.d.ts +8 -8
- package/dist/runtime/components/ui/input-otp/InputOTPSlot.vue +1 -0
- package/dist/runtime/components/ui/item/index.d.ts +1 -1
- package/dist/runtime/components/ui/native-select/NativeSelect.d.vue.ts +7 -1
- package/dist/runtime/components/ui/native-select/NativeSelect.vue +9 -2
- package/dist/runtime/components/ui/native-select/NativeSelect.vue.d.ts +7 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +389 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue +6 -3
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +389 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +393 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue +6 -3
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +393 -1
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +1 -1
- package/dist/runtime/components/ui/select/Select.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/Select.vue.d.ts +2 -2
- package/dist/runtime/components/ui/sidebar/index.d.ts +1 -1
- package/dist/runtime/components/ui/sonner/Sonner.d.vue.ts +4 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue +62 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +4 -0
- package/dist/runtime/components/ui/sonner/index.d.ts +1 -0
- package/dist/runtime/components/ui/sonner/index.js +1 -0
- package/dist/runtime/components/ui/storage/StorageActionBar.d.vue.ts +2 -2
- package/dist/runtime/components/ui/storage/StorageActionBar.vue +1 -1
- package/dist/runtime/components/ui/storage/StorageActionBar.vue.d.ts +2 -2
- package/dist/runtime/components/ui/storage/StorageGrid.vue +2 -0
- package/dist/runtime/components/ui/storage/StorageTable.vue +8 -4
- package/dist/runtime/components/ui/tags-input/TagsInput.vue +8 -1
- package/dist/runtime/components/ui/timezone-select/useTimezone.d.ts +2 -2
- package/dist/runtime/components/ui/timezone-select/useTimezone.js +3 -3
- package/dist/runtime/components/ui/toggle/index.d.ts +1 -1
- package/dist/runtime/composables/useAuth.d.ts +49 -37
- package/dist/runtime/composables/useAuth.js +1 -0
- package/dist/runtime/composables/useBreadcrumbItems.js +1 -1
- package/dist/runtime/composables/useImageUrl.js +1 -0
- package/dist/runtime/error.vue +12 -4
- package/dist/runtime/graphql/organization.d.ts +5 -0
- package/dist/runtime/graphql/organization.js +11 -0
- package/dist/runtime/shared/constants/r2.d.ts +12 -0
- package/dist/runtime/shared/constants/r2.js +18 -0
- package/dist/runtime/types/nitro-graphql-client.d.ts +7 -1
- package/package.json +6 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 productdevbook
|
|
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
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# abckit
|
|
2
|
+
|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
+
[![License][license-src]][license-href]
|
|
6
|
+
|
|
7
|
+
A batteries-included Nuxt 4 module that gives you everything you need to build modern web apps — beautiful UI components, authentication, storage, and more.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **50+ UI Components** — shadcn/ui style components built on [Reka UI](https://reka-ui.com)
|
|
12
|
+
- **Authentication** — [Better Auth](https://better-auth.com) integration with session management
|
|
13
|
+
- **Storage** — S3/R2, Redis/Dragonfly, and local disk drivers
|
|
14
|
+
- **GraphQL API** — [GraphQL Yoga](https://the-guild.dev/graphql/yoga-server) via nitro-graphql
|
|
15
|
+
- **Dark Mode** — Built-in color mode support
|
|
16
|
+
- **Forms** — Validation with VeeValidate + Zod
|
|
17
|
+
- **Data Fetching** — Pinia Colada with global error handling
|
|
18
|
+
- **Icons** — 100k+ icons via Nuxt Icon
|
|
19
|
+
|
|
20
|
+
## Quick Start
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Install
|
|
24
|
+
pnpm add abckit
|
|
25
|
+
|
|
26
|
+
# Add to nuxt.config.ts
|
|
27
|
+
export default defineNuxtConfig({
|
|
28
|
+
modules: ['abckit']
|
|
29
|
+
})
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Import components from `abckit/shadcn/*`:
|
|
33
|
+
|
|
34
|
+
```vue
|
|
35
|
+
<script setup lang="ts">
|
|
36
|
+
import { Button } from 'abckit/shadcn/button'
|
|
37
|
+
import { Card, CardHeader, CardTitle } from 'abckit/shadcn/card'
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<Button variant="outline">Click me</Button>
|
|
42
|
+
<Card>
|
|
43
|
+
<CardHeader>
|
|
44
|
+
<CardTitle>Hello</CardTitle>
|
|
45
|
+
</CardHeader>
|
|
46
|
+
</Card>
|
|
47
|
+
</template>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Components
|
|
51
|
+
|
|
52
|
+
Accordion, Alert, AlertDialog, AspectRatio, AutoForm, Avatar, Badge, Breadcrumb, Button, ButtonGroup, Calendar, Card, Carousel, Chart, Checkbox, Collapsible, Combobox, Command, ContextMenu, CountrySelect, CurrencySelect, Dialog, Drawer, DropdownMenu, Empty, Field, File, Form, HoverCard, Input, InputGroup, InputOTP, Item, Kbd, Label, LanguageSelect, Menubar, NativeSelect, NavigationMenu, NumberField, Pagination, PinInput, Popover, Progress, RadioGroup, RangeCalendar, Resizable, ScrollArea, Select, Separator, Sheet, Sidebar, Skeleton, Slider, Spinner, Stepper, Storage, Switch, Table, Tabs, TagsInput, Textarea, TimezoneSelect, Toggle, ToggleGroup, Tooltip
|
|
53
|
+
|
|
54
|
+
## Composables
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
// Authentication
|
|
58
|
+
const { user, isAuthenticated, login, logout } = useAuth()
|
|
59
|
+
|
|
60
|
+
// Image CDN URLs with presets
|
|
61
|
+
const { getImageUrl } = useImageUrl()
|
|
62
|
+
const url = getImageUrl('products/photo.jpg', 'lg') // 1000x1000
|
|
63
|
+
|
|
64
|
+
// Auto breadcrumbs from routes
|
|
65
|
+
const items = useBreadcrumbItems()
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Configuration
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
// nuxt.config.ts
|
|
72
|
+
export default defineNuxtConfig({
|
|
73
|
+
extends: ['abckit'],
|
|
74
|
+
runtimeConfig: {
|
|
75
|
+
// Redis/Dragonfly
|
|
76
|
+
dragonfly: {
|
|
77
|
+
host: 'localhost',
|
|
78
|
+
port: 6379
|
|
79
|
+
},
|
|
80
|
+
// S3/R2 Storage
|
|
81
|
+
s3: {
|
|
82
|
+
accessKeyId: '',
|
|
83
|
+
secretAccessKey: '',
|
|
84
|
+
endpoint: '',
|
|
85
|
+
bucket: ''
|
|
86
|
+
},
|
|
87
|
+
// Enable storage drivers
|
|
88
|
+
storage: {
|
|
89
|
+
redis: true,
|
|
90
|
+
s3: true,
|
|
91
|
+
disk: false
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Theming
|
|
98
|
+
|
|
99
|
+
Override the default theme by creating `app/assets/css/tailwind.css`:
|
|
100
|
+
|
|
101
|
+
```css
|
|
102
|
+
@import "tailwindcss";
|
|
103
|
+
@import "tw-animate-css";
|
|
104
|
+
|
|
105
|
+
:root {
|
|
106
|
+
--primary: oklch(0.6 0.2 250);
|
|
107
|
+
--radius: 0.5rem;
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Contributing
|
|
112
|
+
|
|
113
|
+
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
|
|
114
|
+
|
|
115
|
+
## License
|
|
116
|
+
|
|
117
|
+
MIT
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
<p align="center">
|
|
122
|
+
<img src=".github/assets/footer.svg" width="100%" alt="abckit footer" />
|
|
123
|
+
</p>
|
|
124
|
+
|
|
125
|
+
<!-- Badges -->
|
|
126
|
+
[npm-version-src]: https://img.shields.io/npm/v/abckit?style=flat&colorA=080f12&colorB=1fa669
|
|
127
|
+
[npm-version-href]: https://npmjs.com/package/abckit
|
|
128
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/abckit?style=flat&colorA=080f12&colorB=1fa669
|
|
129
|
+
[npm-downloads-href]: https://npmjs.com/package/abckit
|
|
130
|
+
[license-src]: https://img.shields.io/github/license/productdevbook/abckit.svg?style=flat&colorA=080f12&colorB=1fa669
|
|
131
|
+
[license-href]: https://github.com/productdevbook/abckit/blob/main/LICENSE
|
package/dist/module.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nuxt_schema from 'nuxt/schema';
|
|
2
2
|
import { BreadcrumbItemProps } from '../dist/runtime/composables/useBreadcrumbItems.js';
|
|
3
3
|
|
|
4
4
|
interface BreadcrumbsConfig {
|
|
@@ -30,12 +30,46 @@ interface SetupConfig {
|
|
|
30
30
|
declare module 'nuxt/schema' {
|
|
31
31
|
interface AppConfig extends BreadcrumbsConfig, SetupConfig {
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
interface RuntimeConfig {
|
|
34
|
+
dragonfly: {
|
|
35
|
+
host: string;
|
|
36
|
+
port: number;
|
|
37
|
+
password: string;
|
|
38
|
+
};
|
|
39
|
+
s3: {
|
|
40
|
+
accessKeyId: string;
|
|
41
|
+
secretAccessKey: string;
|
|
42
|
+
endpoint: string;
|
|
43
|
+
bucket: string;
|
|
44
|
+
region: string;
|
|
45
|
+
publicUrl: string;
|
|
46
|
+
};
|
|
47
|
+
polar: {
|
|
48
|
+
accessToken: string;
|
|
49
|
+
checkoutSuccessUrl: string;
|
|
50
|
+
server: 'live' | 'sandbox';
|
|
51
|
+
webhookSecret: string;
|
|
52
|
+
};
|
|
53
|
+
imgproxy: {
|
|
54
|
+
storageUrl: string;
|
|
55
|
+
cdnDomains: string[];
|
|
56
|
+
};
|
|
57
|
+
storage: {
|
|
58
|
+
redis: boolean;
|
|
59
|
+
s3: boolean;
|
|
60
|
+
disk: boolean;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
interface PublicRuntimeConfig {
|
|
64
|
+
siteUrl: string;
|
|
65
|
+
debug: boolean;
|
|
66
|
+
imgproxy: {
|
|
67
|
+
storageUrl: string;
|
|
68
|
+
cdnDomains: string[];
|
|
69
|
+
};
|
|
36
70
|
}
|
|
37
71
|
}
|
|
38
|
-
declare const _default:
|
|
72
|
+
declare const _default: nuxt_schema.NuxtModule<nuxt_schema.ModuleOptions, nuxt_schema.ModuleOptions, false>;
|
|
39
73
|
|
|
40
74
|
export { _default as default };
|
|
41
75
|
export type { BreadcrumbsConfig, SetupConfig };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { readdirSync } from 'node:fs';
|
|
2
1
|
import { join } from 'node:path';
|
|
3
|
-
import { defineNuxtModule, createResolver, addTypeTemplate, addImportsDir, addServerScanDir, addRouteMiddleware
|
|
2
|
+
import { defineNuxtModule, createResolver, addTypeTemplate, addImportsDir, addServerScanDir, addRouteMiddleware } from '@nuxt/kit';
|
|
4
3
|
import { defu } from 'defu';
|
|
5
4
|
|
|
6
5
|
const module$1 = defineNuxtModule({
|
|
@@ -170,7 +169,6 @@ export {}
|
|
|
170
169
|
baseURL: "/",
|
|
171
170
|
maxAge: 0
|
|
172
171
|
});
|
|
173
|
-
const componentDir = resolve("./runtime/components/ui");
|
|
174
172
|
nuxt.hook("tailwindcss:sources:extend", (sources) => {
|
|
175
173
|
sources.push({
|
|
176
174
|
source: `${resolve("./runtime/components")}`,
|
|
@@ -231,31 +229,6 @@ export {}
|
|
|
231
229
|
path: resolve("./runtime/middleware/auth.global"),
|
|
232
230
|
global: true
|
|
233
231
|
});
|
|
234
|
-
addComponentsDir({
|
|
235
|
-
path: componentDir,
|
|
236
|
-
extensions: [],
|
|
237
|
-
ignore: ["**/*"]
|
|
238
|
-
}, {
|
|
239
|
-
prepend: true
|
|
240
|
-
});
|
|
241
|
-
try {
|
|
242
|
-
await Promise.all(readdirSync(componentDir).map(async (dir) => {
|
|
243
|
-
try {
|
|
244
|
-
const filePath = await resolvePath(join(componentDir, dir, "index"), { extensions: [".ts", ".js"] });
|
|
245
|
-
addComponentExports({
|
|
246
|
-
prefix: "",
|
|
247
|
-
filePath: resolve(filePath),
|
|
248
|
-
priority: 1
|
|
249
|
-
});
|
|
250
|
-
} catch (err) {
|
|
251
|
-
if (err instanceof Error)
|
|
252
|
-
console.warn("Module error: ", err.message);
|
|
253
|
-
}
|
|
254
|
-
}));
|
|
255
|
-
} catch (err) {
|
|
256
|
-
if (err instanceof Error)
|
|
257
|
-
console.warn(err.message);
|
|
258
|
-
}
|
|
259
232
|
}
|
|
260
233
|
});
|
|
261
234
|
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
alt: { type: String, required: false, default: "" },
|
|
8
8
|
class: { type: String, required: false, default: "" },
|
|
9
9
|
fallback: { type: String, required: false, default: "/images/placeholder.svg" },
|
|
10
|
-
size: { type:
|
|
10
|
+
size: { type: String, required: false, default: "lg" }
|
|
11
11
|
});
|
|
12
12
|
const { getImageUrl } = useImageUrl();
|
|
13
13
|
const imageUrl = computed(() => {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
declare var __VLS_20: any;
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_20) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
declare var __VLS_20: any;
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_20) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
declare var __VLS_25: any;
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_25) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
declare var __VLS_25: any;
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_25) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
type __VLS_Props = FieldProps & {
|
|
3
|
-
options?: string[];
|
|
4
|
-
};
|
|
5
|
-
declare var __VLS_25: any;
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_25) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
type __VLS_Props = FieldProps & {
|
|
3
|
-
options?: string[];
|
|
4
|
-
};
|
|
5
|
-
declare var __VLS_25: any;
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_25) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
declare var __VLS_25: any;
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_25) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
declare var __VLS_25: any;
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_25) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
type __VLS_Props = FieldProps & {
|
|
3
|
-
id?: string;
|
|
4
|
-
};
|
|
5
|
-
declare var __VLS_25: any;
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_25) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
type __VLS_Props = FieldProps & {
|
|
3
|
-
id?: string;
|
|
4
|
-
};
|
|
5
|
-
declare var __VLS_25: any;
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof __VLS_25) => any;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
declare var __VLS_25: any;
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_25) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldProps } from './interface.js';
|
|
2
|
-
declare var __VLS_25: any;
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_25) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
export { default as Badge } from "./Badge.vue.js";
|
|
3
3
|
export declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
@@ -3,8 +3,8 @@ import { useColorMode } from "#imports";
|
|
|
3
3
|
import { Icon } from "#components";
|
|
4
4
|
const colorMode = useColorMode();
|
|
5
5
|
function toggleDarkMode() {
|
|
6
|
-
|
|
7
|
-
colorMode.preference =
|
|
6
|
+
const newMode = colorMode.value === "dark" ? "light" : "dark";
|
|
7
|
+
colorMode.preference = newMode;
|
|
8
8
|
}
|
|
9
9
|
</script>
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
export { default as Button } from "./Button.vue.js";
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
@@ -3,6 +3,7 @@ import { getLocalTimeZone, today } from "@internationalized/date";
|
|
|
3
3
|
import { createReusableTemplate, reactiveOmit, useVModel } from "@vueuse/core";
|
|
4
4
|
import { CalendarRoot, useDateFormatter, useForwardPropsEmits } from "reka-ui";
|
|
5
5
|
import { createYear, createYearRange, toDate } from "reka-ui/date";
|
|
6
|
+
import { computed, toRaw } from "vue";
|
|
6
7
|
import { cn } from "abckit/utils";
|
|
7
8
|
import { NativeSelect, NativeSelectOption } from "abckit/shadcn/native-select";
|
|
8
9
|
import { CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNextButton, CalendarPrevButton } from ".";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from "vue";
|
|
2
|
+
import { computed, onMounted, ref } from "vue";
|
|
3
3
|
import { cn } from "abckit/utils";
|
|
4
4
|
import { useChart } from ".";
|
|
5
5
|
const props = defineProps({
|
|
@@ -37,12 +37,12 @@ onMounted(() => {
|
|
|
37
37
|
'[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3'
|
|
38
38
|
)"
|
|
39
39
|
>
|
|
40
|
-
<component :is="itemConfig
|
|
40
|
+
<component :is="itemConfig?.icon" v-if="itemConfig?.icon" />
|
|
41
41
|
<div
|
|
42
42
|
v-else
|
|
43
43
|
class="h-2 w-2 shrink-0 rounded-[2px]"
|
|
44
44
|
:style="{
|
|
45
|
-
backgroundColor: itemConfig
|
|
45
|
+
backgroundColor: itemConfig?.color
|
|
46
46
|
}"
|
|
47
47
|
/>
|
|
48
48
|
|
|
@@ -24,4 +24,3 @@ interface ChartContextProps {
|
|
|
24
24
|
config: Ref<ChartConfig>;
|
|
25
25
|
}
|
|
26
26
|
export declare const useChart: <T extends ChartContextProps | null | undefined = ChartContextProps>(fallback?: T | undefined) => T extends null ? ChartContextProps | null : ChartContextProps, provideChartContext: (contextValue: ChartContextProps) => ChartContextProps;
|
|
27
|
-
export { VisCrosshair as ChartCrosshair, VisTooltip as ChartTooltip } from "@unovis/vue";
|
|
@@ -5,4 +5,3 @@ export { default as ChartTooltipContent } from "./ChartTooltipContent.vue";
|
|
|
5
5
|
export { componentToString } from "./utils.js";
|
|
6
6
|
export const THEMES = { light: "", dark: ".dark" };
|
|
7
7
|
export const [useChart, provideChartContext] = createContext("Chart");
|
|
8
|
-
export { VisCrosshair as ChartCrosshair, VisTooltip as ChartTooltip } from "@unovis/vue";
|
|
@@ -8,15 +8,15 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
|
|
12
11
|
"update:open": (value: boolean) => any;
|
|
12
|
+
"update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
|
|
13
13
|
highlight: (payload: {
|
|
14
14
|
ref: HTMLElement;
|
|
15
15
|
value: import("reka-ui").AcceptableValue;
|
|
16
16
|
} | undefined) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
|
|
19
18
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
|
|
20
20
|
onHighlight?: ((payload: {
|
|
21
21
|
ref: HTMLElement;
|
|
22
22
|
value: import("reka-ui").AcceptableValue;
|
|
@@ -8,15 +8,15 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
|
|
12
11
|
"update:open": (value: boolean) => any;
|
|
12
|
+
"update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
|
|
13
13
|
highlight: (payload: {
|
|
14
14
|
ref: HTMLElement;
|
|
15
15
|
value: import("reka-ui").AcceptableValue;
|
|
16
16
|
} | undefined) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
|
|
19
18
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
|
|
20
20
|
onHighlight?: ((payload: {
|
|
21
21
|
ref: HTMLElement;
|
|
22
22
|
value: import("reka-ui").AcceptableValue;
|
|
@@ -3,7 +3,10 @@ type __VLS_Props = DialogRootProps & {
|
|
|
3
3
|
title?: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
};
|
|
6
|
-
declare var __VLS_37:
|
|
6
|
+
declare var __VLS_37: {
|
|
7
|
+
open: boolean;
|
|
8
|
+
close: () => void;
|
|
9
|
+
};
|
|
7
10
|
type __VLS_Slots = {} & {
|
|
8
11
|
default?: (props: typeof __VLS_37) => any;
|
|
9
12
|
};
|