@thekestongroup/ui 0.0.0-stage → 0.1.1
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 +130 -0
- package/README.md +55 -2
- package/dist/components/Button.vue.d.ts +27 -0
- package/dist/components/Checkbox.vue.d.ts +18 -0
- package/dist/components/CloseButton.vue.d.ts +6 -0
- package/dist/components/Dialog.vue.d.ts +23 -0
- package/dist/components/Drawer.vue.d.ts +26 -0
- package/dist/components/DropdownMenu.vue.d.ts +21 -0
- package/dist/components/DropdownMenuItem.vue.d.ts +19 -0
- package/dist/components/DropdownMenuSeparator.vue.d.ts +6 -0
- package/dist/components/Input.vue.d.ts +14 -0
- package/dist/components/Label.vue.d.ts +16 -0
- package/dist/components/Popover.vue.d.ts +23 -0
- package/dist/components/Select.vue.d.ts +28 -0
- package/dist/components/Separator.vue.d.ts +11 -0
- package/dist/components/ToastRenderer.vue.d.ts +3 -0
- package/dist/components/Toaster.vue.d.ts +3 -0
- package/dist/components/Tooltip.vue.d.ts +23 -0
- package/dist/favicon-old.svg +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/keston-ui.cjs +14 -0
- package/dist/keston-ui.css +1 -0
- package/dist/keston-ui.js +14065 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/toast.d.ts +8 -0
- package/package.json +50 -3
- package/src/components/Button.vue +54 -0
- package/src/components/Checkbox.vue +47 -0
- package/src/components/CloseButton.vue +24 -0
- package/src/components/Dialog.vue +65 -0
- package/src/components/Drawer.vue +200 -0
- package/src/components/DropdownMenu.vue +41 -0
- package/src/components/DropdownMenuItem.vue +28 -0
- package/src/components/DropdownMenuSeparator.vue +12 -0
- package/src/components/Input.vue +21 -0
- package/src/components/Label.vue +15 -0
- package/src/components/Popover.vue +46 -0
- package/src/components/Select.vue +97 -0
- package/src/components/Separator.vue +30 -0
- package/src/components/ToastRenderer.vue +140 -0
- package/src/components/Toaster.vue +11 -0
- package/src/components/Tooltip.vue +48 -0
- package/src/index.ts +23 -0
- package/src/lib/cn.ts +6 -0
- package/src/lib/toast.ts +19 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
Required Notice: Copyright The Keston Group (https://github.com/thekestongroup)
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree
|
|
10
|
+
to them as both strict obligations and conditions to all
|
|
11
|
+
your licenses.
|
|
12
|
+
|
|
13
|
+
## Copyright License
|
|
14
|
+
|
|
15
|
+
The licensor grants you a copyright license for the software
|
|
16
|
+
to do everything you might do with the software that would
|
|
17
|
+
otherwise infringe the licensor's copyright in it for any
|
|
18
|
+
permitted purpose. However, you may only distribute the
|
|
19
|
+
software according to Distribution License and make changes
|
|
20
|
+
or new works based on the software according to Changes and
|
|
21
|
+
New Works License.
|
|
22
|
+
|
|
23
|
+
## Distribution License
|
|
24
|
+
|
|
25
|
+
The licensor grants you an additional copyright license to
|
|
26
|
+
distribute copies of the software. Your license to distribute
|
|
27
|
+
covers distributing the software with changes and new works
|
|
28
|
+
permitted by Changes and New Works License.
|
|
29
|
+
|
|
30
|
+
## Notices
|
|
31
|
+
|
|
32
|
+
You must ensure that anyone who gets a copy of any part of the
|
|
33
|
+
software from you also gets a copy of these terms or the URL for
|
|
34
|
+
them above, as well as copies of any plain-text lines beginning
|
|
35
|
+
with `Required Notice:` that the licensor provided with the
|
|
36
|
+
software. For example:
|
|
37
|
+
|
|
38
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
39
|
+
|
|
40
|
+
## Changes and New Works License
|
|
41
|
+
|
|
42
|
+
The licensor grants you an additional copyright license to make
|
|
43
|
+
changes and new works based on the software for any permitted
|
|
44
|
+
purpose.
|
|
45
|
+
|
|
46
|
+
## Patent License
|
|
47
|
+
|
|
48
|
+
The licensor grants you a patent license for the software that
|
|
49
|
+
covers patent claims the licensor can license, or becomes able
|
|
50
|
+
to license, that you would infringe by using the software.
|
|
51
|
+
|
|
52
|
+
## Noncommercial Purposes
|
|
53
|
+
|
|
54
|
+
Any noncommercial purpose is a permitted purpose.
|
|
55
|
+
|
|
56
|
+
## Personal Uses
|
|
57
|
+
|
|
58
|
+
Personal use for research, experiment, and testing for the
|
|
59
|
+
benefit of public knowledge, personal study, private
|
|
60
|
+
entertainment, hobby projects, amateur pursuits, or religious
|
|
61
|
+
observance, without any anticipated commercial application, is
|
|
62
|
+
use for a permitted purpose.
|
|
63
|
+
|
|
64
|
+
## Noncommercial Organizations
|
|
65
|
+
|
|
66
|
+
Use by any charitable organization, educational institution,
|
|
67
|
+
public research organization, public safety or health
|
|
68
|
+
organization, environmental protection organization, or
|
|
69
|
+
government institution is use for a permitted purpose regardless
|
|
70
|
+
of the source of funding or obligations resulting from the
|
|
71
|
+
funding.
|
|
72
|
+
|
|
73
|
+
## Fair Use
|
|
74
|
+
|
|
75
|
+
You may have "fair use" rights for the software under the law.
|
|
76
|
+
These terms do not limit them.
|
|
77
|
+
|
|
78
|
+
## No Other Rights
|
|
79
|
+
|
|
80
|
+
These terms do not allow you to sublicense or transfer any of
|
|
81
|
+
your licenses to anyone else, or prevent the licensor from
|
|
82
|
+
granting licenses to anyone else. These terms do not imply any
|
|
83
|
+
other licenses.
|
|
84
|
+
|
|
85
|
+
## Patent Defense
|
|
86
|
+
|
|
87
|
+
If you make any written claim that the software infringes or
|
|
88
|
+
contributes to infringement of any patent, your patent license
|
|
89
|
+
for the software granted under these terms ends immediately. If
|
|
90
|
+
your company makes such a claim, your patent license ends
|
|
91
|
+
immediately for work on behalf of your company.
|
|
92
|
+
|
|
93
|
+
## Violations
|
|
94
|
+
|
|
95
|
+
The first time you are notified in writing that you have violated
|
|
96
|
+
any of these terms, or done anything with the software not covered
|
|
97
|
+
by your licenses, your licenses can nonetheless continue if you
|
|
98
|
+
come into full compliance with these terms, and take practical
|
|
99
|
+
steps to correct past violations, within 32 days of receiving
|
|
100
|
+
notice. Otherwise, all your licenses end immediately.
|
|
101
|
+
|
|
102
|
+
## No Liability
|
|
103
|
+
|
|
104
|
+
**As far as the law allows, the software comes as is, without any
|
|
105
|
+
warranty or condition, and the licensor will not be liable to you
|
|
106
|
+
for any damages arising out of these terms or the use or nature
|
|
107
|
+
of the software, under any kind of legal claim.**
|
|
108
|
+
|
|
109
|
+
## Definitions
|
|
110
|
+
|
|
111
|
+
The **licensor** is the individual or entity offering these terms,
|
|
112
|
+
and the **software** is the software the licensor makes available
|
|
113
|
+
under these terms.
|
|
114
|
+
|
|
115
|
+
**You** refers to the individual or entity agreeing to these
|
|
116
|
+
terms.
|
|
117
|
+
|
|
118
|
+
**Your company** is any legal entity, sole proprietorship, or
|
|
119
|
+
other kind of organization that you work for, plus all
|
|
120
|
+
organizations that have control over, are under the control of, or
|
|
121
|
+
are under common control with that organization. **Control** means
|
|
122
|
+
ownership of substantially all the assets of an entity, or the
|
|
123
|
+
power to direct its management and policies by vote, contract, or
|
|
124
|
+
otherwise. Control can be direct or indirect.
|
|
125
|
+
|
|
126
|
+
**Your licenses** are all the licenses granted to you for the
|
|
127
|
+
software under these terms.
|
|
128
|
+
|
|
129
|
+
**Use** means anything you do with the software requiring one of
|
|
130
|
+
your licenses.
|
package/README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Keston UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Vue 3 + [Reka UI](https://reka-ui.com) + [Tailwind CSS](https://tailwindcss.com) component library for the Keston product suite. Published as `@thekestongroup/ui`.
|
|
4
|
+
|
|
5
|
+
## Development
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pnpm install
|
|
9
|
+
pnpm dev
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`pnpm dev` serves `demo/App.vue` at `http://localhost:5173` with Vite HMR — edit any component in `src/components/` and the page hot-reloads instantly.
|
|
13
|
+
|
|
14
|
+
## Scripts
|
|
15
|
+
|
|
16
|
+
| Command | Description |
|
|
17
|
+
| ----------------- | --------------------------------------------- |
|
|
18
|
+
| `pnpm dev` | Live demo with hot module reload |
|
|
19
|
+
| `pnpm build` | Type-check and build the library to `dist/` |
|
|
20
|
+
| `pnpm typecheck` | Type-check only |
|
|
21
|
+
| `pnpm preview` | Preview the built demo |
|
|
22
|
+
|
|
23
|
+
## Structure
|
|
24
|
+
|
|
25
|
+
- `src/` — the published component library (Reka UI primitives styled with Tailwind)
|
|
26
|
+
- `demo/` — the development playground (not published)
|
|
27
|
+
|
|
28
|
+
## Consuming the library
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
pnpm add @thekestongroup/ui
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Components are styled with Tailwind utility classes, so each consuming app must tell Tailwind to scan the library source:
|
|
35
|
+
|
|
36
|
+
```css
|
|
37
|
+
@import "tailwindcss";
|
|
38
|
+
@source "../node_modules/@thekestongroup/ui/src";
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Some components (e.g. the `Drawer`) also ship a small amount of CSS for animation keyframes. Import it once in your app entry:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import '@thekestongroup/ui/style.css'
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Publishing
|
|
48
|
+
|
|
49
|
+
Publishes to GitHub Packages (`npm.pkg.github.com`):
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
pnpm build
|
|
53
|
+
pnpm publish
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Requires a GitHub Packages auth token configured for the `@thekestongroup` scope.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type Variant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive';
|
|
2
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
variant?: Variant;
|
|
5
|
+
size?: Size;
|
|
6
|
+
type?: 'button' | 'submit' | 'reset';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
class?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
variant: Variant;
|
|
16
|
+
size: Size;
|
|
17
|
+
type: "button" | "submit" | "reset";
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: boolean) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
class?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: 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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_13: {}, __VLS_56: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
trigger?: (props: typeof __VLS_13) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_56) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
side?: Side;
|
|
6
|
+
class?: string;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_13: {}, __VLS_56: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
trigger?: (props: typeof __VLS_13) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_56) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
side: Side;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
align?: 'start' | 'center' | 'end';
|
|
3
|
+
class?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_13: {}, __VLS_27: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
trigger?: (props: typeof __VLS_13) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_27) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
align: "start" | "center" | "end";
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
class?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_7: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_7) => 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<{}>, {
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
class?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: 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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
class?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: string) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
class?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
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>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
align?: 'start' | 'center' | 'end';
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_13: {}, __VLS_27: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
trigger?: (props: typeof __VLS_13) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_27) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
side: "top" | "right" | "bottom" | "left";
|
|
14
|
+
align: "start" | "center" | "end";
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface SelectOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
items?: SelectOption[];
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
class?: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
|
+
modelValue?: string;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
placeholder: string;
|
|
25
|
+
items: SelectOption[];
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3
|
+
decorative?: boolean;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
orientation: "horizontal" | "vertical";
|
|
8
|
+
decorative: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
content?: string;
|
|
3
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_19: {}, __VLS_33: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
trigger?: (props: typeof __VLS_19) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_33) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
side: "top" | "right" | "bottom" | "left";
|
|
14
|
+
content: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="6" fill="#2563eb"/><text x="16" y="22" font-family="Arial, sans-serif" font-size="18" font-weight="bold" fill="#fff" text-anchor="middle">K</text></svg>
|
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden" viewBox="30 2 656 657"><g transform="translate(-1842 -907)"><g><path d="M1872 1069.49C1872 980.854 1943.85 909 2032.49 909L2367.51 909C2456.15 909 2528 980.854 2528 1069.49L2528 1405.51C2528 1494.15 2456.15 1566 2367.51 1566L2032.49 1566C1943.85 1566 1872 1494.15 1872 1405.51Z" fill="#023047" fill-rule="evenodd" fill-opacity="1"/><text fill="#FAFAFA" fill-opacity="1" font-family="Lato,Lato_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="700" font-stretch="normal" font-size="220" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" transform="matrix(1 0 0 1 1978.48 1322)">T</text><text fill="#FAFAFA" fill-opacity="1" font-family="Lato,Lato_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="700" font-stretch="normal" font-size="220" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" transform="matrix(1 0 0 1 2111.6 1324)">K</text><text fill="#FAFAFA" fill-opacity="1" font-family="Lato,Lato_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="700" font-stretch="normal" font-size="220" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" transform="matrix(1 0 0 1 2262.68 1322)">G</text></g></g></svg>
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { default as Button } from './components/Button.vue';
|
|
2
|
+
export { default as Checkbox } from './components/Checkbox.vue';
|
|
3
|
+
export { default as CloseButton } from './components/CloseButton.vue';
|
|
4
|
+
export { default as Dialog } from './components/Dialog.vue';
|
|
5
|
+
export { default as Drawer } from './components/Drawer.vue';
|
|
6
|
+
export { default as DropdownMenu } from './components/DropdownMenu.vue';
|
|
7
|
+
export { default as Input } from './components/Input.vue';
|
|
8
|
+
export { default as Label } from './components/Label.vue';
|
|
9
|
+
export { default as DropdownMenuItem } from './components/DropdownMenuItem.vue';
|
|
10
|
+
export { default as DropdownMenuSeparator } from './components/DropdownMenuSeparator.vue';
|
|
11
|
+
export { default as Popover } from './components/Popover.vue';
|
|
12
|
+
export { default as Select } from './components/Select.vue';
|
|
13
|
+
export type { SelectOption } from './components/Select.vue';
|
|
14
|
+
export { default as Separator } from './components/Separator.vue';
|
|
15
|
+
export { default as Tooltip } from './components/Tooltip.vue';
|
|
16
|
+
export { default as Toaster } from './components/Toaster.vue';
|
|
17
|
+
export { toast, toastManager } from './lib/toast';
|
|
18
|
+
export type { ToastObject, ToastAddOptions, ToastUpdateOptions, ToastPromiseOptions, } from './lib/toast';
|