@vanduo-oss/vue 0.1.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/CHANGELOG.md +9 -0
- package/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/components/VdAccordion.vue.d.ts +29 -0
- package/dist/components/VdAlert.vue.d.ts +27 -0
- package/dist/components/VdAvatar.vue.d.ts +23 -0
- package/dist/components/VdBadge.vue.d.ts +21 -0
- package/dist/components/VdButton.vue.d.ts +32 -0
- package/dist/components/VdButtonGroup.vue.d.ts +23 -0
- package/dist/components/VdCard.vue.d.ts +24 -0
- package/dist/components/VdCheckboxGroup.vue.d.ts +24 -0
- package/dist/components/VdChip.vue.d.ts +36 -0
- package/dist/components/VdCodeSnippet.vue.d.ts +11 -0
- package/dist/components/VdCollection.vue.d.ts +23 -0
- package/dist/components/VdCustomSelect.vue.d.ts +23 -0
- package/dist/components/VdFlow.vue.d.ts +28 -0
- package/dist/components/VdIcon.vue.d.ts +11 -0
- package/dist/components/VdInput.vue.d.ts +43 -0
- package/dist/components/VdModal.vue.d.ts +33 -0
- package/dist/components/VdOffcanvas.vue.d.ts +33 -0
- package/dist/components/VdPagination.vue.d.ts +29 -0
- package/dist/components/VdPreloader.vue.d.ts +17 -0
- package/dist/components/VdProgress.vue.d.ts +14 -0
- package/dist/components/VdRadioGroup.vue.d.ts +24 -0
- package/dist/components/VdRating.vue.d.ts +21 -0
- package/dist/components/VdSelect.vue.d.ts +27 -0
- package/dist/components/VdSidenav.vue.d.ts +35 -0
- package/dist/components/VdSkeleton.vue.d.ts +16 -0
- package/dist/components/VdSpinner.vue.d.ts +11 -0
- package/dist/components/VdTable.vue.d.ts +22 -0
- package/dist/components/VdTabs.vue.d.ts +25 -0
- package/dist/components/VdToast.vue.d.ts +11 -0
- package/dist/components/VdToastContainer.vue.d.ts +3 -0
- package/dist/components/VdTooltip.vue.d.ts +20 -0
- package/dist/components/VdTransfer.vue.d.ts +27 -0
- package/dist/components/VdTree.vue.d.ts +26 -0
- package/dist/components/VdTreeNode.vue.d.ts +22 -0
- package/dist/components/primitives/VdBox.vue.d.ts +22 -0
- package/dist/components/primitives/VdCenter.vue.d.ts +25 -0
- package/dist/components/primitives/VdCover.vue.d.ts +25 -0
- package/dist/components/primitives/VdFrame.vue.d.ts +20 -0
- package/dist/components/primitives/VdInline.vue.d.ts +20 -0
- package/dist/components/primitives/VdStack.vue.d.ts +22 -0
- package/dist/components/primitives/VdSwitcher.vue.d.ts +24 -0
- package/dist/composables/useAffix.d.ts +2 -0
- package/dist/composables/useDatepicker.d.ts +2 -0
- package/dist/composables/useDraggable.d.ts +9 -0
- package/dist/composables/useDropdown.d.ts +20 -0
- package/dist/composables/useExpandingCards.d.ts +10 -0
- package/dist/composables/useFlow.d.ts +13 -0
- package/dist/composables/useFocusTrap.d.ts +6 -0
- package/dist/composables/useGlass.d.ts +8 -0
- package/dist/composables/useImageBox.d.ts +9 -0
- package/dist/composables/useKeyboardNav.d.ts +10 -0
- package/dist/composables/useMorph.d.ts +10 -0
- package/dist/composables/useMorphBadges.d.ts +9 -0
- package/dist/composables/useNavbarGlassScroll.d.ts +7 -0
- package/dist/composables/useParallax.d.ts +9 -0
- package/dist/composables/usePopover.d.ts +9 -0
- package/dist/composables/useRipple.d.ts +9 -0
- package/dist/composables/useScrollspy.d.ts +7 -0
- package/dist/composables/useSearch.d.ts +13 -0
- package/dist/composables/useSidenav.d.ts +14 -0
- package/dist/composables/useSpotlight.d.ts +9 -0
- package/dist/composables/useStepper.d.ts +19 -0
- package/dist/composables/useSuggest.d.ts +2 -0
- package/dist/composables/useTabs.d.ts +7 -0
- package/dist/composables/useTheme.d.ts +36 -0
- package/dist/composables/useTimeline.d.ts +9 -0
- package/dist/composables/useTimepicker.d.ts +2 -0
- package/dist/composables/useToast.d.ts +127 -0
- package/dist/composables/useTooltips.d.ts +11 -0
- package/dist/composables/useValidate.d.ts +9 -0
- package/dist/composables/useWaypoint.d.ts +18 -0
- package/dist/config/themeDefaults.d.ts +10 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.js +3254 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin.d.ts +8 -0
- package/dist/utils/sanitizeHtml.d.ts +19 -0
- package/dist/vanduo-vue.css +2 -0
- package/package.json +66 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 (unreleased)
|
|
4
|
+
|
|
5
|
+
- Initial extraction of VD2 from the docs app: 41 `Vd*` components (incl. 7
|
|
6
|
+
layout primitives) + 30 composables, published as `@vanduo-oss/vue`.
|
|
7
|
+
- `VanduoVue` plugin + `loadVanduoRuntime()` to bootstrap the framework's
|
|
8
|
+
client-side JS engine.
|
|
9
|
+
- `@vanduo-oss/vue/css` forwards the Vanduo stylesheet.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-2026 Vanduo Framework
|
|
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,50 @@
|
|
|
1
|
+
# @vanduo-oss/vue
|
|
2
|
+
|
|
3
|
+
**VD2** — first-class Vue 3 components and composables for the
|
|
4
|
+
[Vanduo](https://vanduo.dev) design system.
|
|
5
|
+
|
|
6
|
+
One install gives you the Vue engine; the design tokens
|
|
7
|
+
([`@vanduo-oss/core`](https://www.npmjs.com/package/@vanduo-oss/core)) and the
|
|
8
|
+
runtime/styles ([`@vanduo-oss/framework`](https://www.npmjs.com/package/@vanduo-oss/framework))
|
|
9
|
+
come along automatically.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add @vanduo-oss/vue
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`vue` (and `pinia`, used by the toast store) are peer dependencies.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
// main.ts
|
|
23
|
+
import { createApp } from "vue";
|
|
24
|
+
import { createPinia } from "pinia";
|
|
25
|
+
import { VanduoVue } from "@vanduo-oss/vue";
|
|
26
|
+
import "@vanduo-oss/vue/css"; // forwards the Vanduo stylesheet
|
|
27
|
+
import App from "./App.vue";
|
|
28
|
+
|
|
29
|
+
createApp(App).use(createPinia()).use(VanduoVue).mount("#app");
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```vue
|
|
33
|
+
<script setup lang="ts">
|
|
34
|
+
import { VdButton, VdModal, useToast } from "@vanduo-oss/vue";
|
|
35
|
+
const toast = useToast();
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<VdButton variant="primary" @click="toast.show({ message: 'Hi from VD2' })">
|
|
40
|
+
Open
|
|
41
|
+
</VdButton>
|
|
42
|
+
</template>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
For SSR/SSG, `await loadVanduoRuntime()` before mounting so the framework's
|
|
46
|
+
client JS is ready (see `@vanduo-oss/vue`'s `loadVanduoRuntime` export).
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
MIT © vanduo-oss
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface Item {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
content?: string;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
items: Item[];
|
|
8
|
+
modelValue: string | string[];
|
|
9
|
+
exclusive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare var __VLS_2: string, __VLS_3: {
|
|
12
|
+
item: Item;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type Variant = "info" | "success" | "warning" | "danger";
|
|
2
|
+
interface Props {
|
|
3
|
+
variant?: Variant;
|
|
4
|
+
dismissible?: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_6: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_6) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
dismiss: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
14
|
+
onDismiss?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
title: string;
|
|
17
|
+
variant: Variant;
|
|
18
|
+
dismissible: 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,23 @@
|
|
|
1
|
+
type Size = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
2
|
+
type Variant = "primary" | "secondary" | "success" | "warning" | "error" | "info";
|
|
3
|
+
type Shape = "circle" | "rounded" | "square";
|
|
4
|
+
interface Props {
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
initials?: string;
|
|
8
|
+
size?: Size;
|
|
9
|
+
variant?: Variant;
|
|
10
|
+
shape?: Shape;
|
|
11
|
+
status?: "online" | "offline" | "away" | "busy";
|
|
12
|
+
}
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
size: Size;
|
|
15
|
+
variant: Variant;
|
|
16
|
+
src: string;
|
|
17
|
+
alt: string;
|
|
18
|
+
initials: string;
|
|
19
|
+
shape: Shape;
|
|
20
|
+
status: "online" | "offline" | "away" | "busy";
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type Variant = "default" | "success" | "warning" | "danger";
|
|
2
|
+
interface Props {
|
|
3
|
+
variant?: Variant;
|
|
4
|
+
pill?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
11
|
+
variant: Variant;
|
|
12
|
+
pill: boolean;
|
|
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,32 @@
|
|
|
1
|
+
type Variant = "primary" | "secondary" | "ghost" | "danger";
|
|
2
|
+
type Size = "sm" | "md" | "lg";
|
|
3
|
+
interface Props {
|
|
4
|
+
variant?: Variant;
|
|
5
|
+
size?: Size;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
type?: "button" | "submit" | "reset";
|
|
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<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
click: (event: MouseEvent) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
17
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
type: "button" | "submit" | "reset";
|
|
20
|
+
size: Size;
|
|
21
|
+
variant: Variant;
|
|
22
|
+
loading: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type Size = "sm" | "md" | "lg";
|
|
2
|
+
interface Props {
|
|
3
|
+
size?: Size;
|
|
4
|
+
vertical?: boolean;
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
12
|
+
size: Size;
|
|
13
|
+
vertical: boolean;
|
|
14
|
+
fullWidth: boolean;
|
|
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,24 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
elevated?: boolean;
|
|
3
|
+
interactive?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
header?: (props: typeof __VLS_1) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_3) => any;
|
|
10
|
+
} & {
|
|
11
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
elevated: boolean;
|
|
15
|
+
interactive: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface CheckOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
options: readonly CheckOption[];
|
|
8
|
+
modelValue: readonly string[];
|
|
9
|
+
name: string;
|
|
10
|
+
inline?: boolean;
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string[]) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
size: "sm" | "md" | "lg";
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
inline: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type Size = "sm" | "md" | "lg";
|
|
2
|
+
type Variant = "primary" | "secondary" | "success" | "warning" | "error" | "info";
|
|
3
|
+
interface Props {
|
|
4
|
+
variant?: Variant;
|
|
5
|
+
size?: Size;
|
|
6
|
+
outline?: boolean;
|
|
7
|
+
dismissible?: boolean;
|
|
8
|
+
avatar?: string;
|
|
9
|
+
clickable?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare var __VLS_1: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
dismiss: () => any;
|
|
17
|
+
click: (event: MouseEvent) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
19
|
+
onDismiss?: (() => any) | undefined;
|
|
20
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
size: Size;
|
|
23
|
+
variant: Variant;
|
|
24
|
+
dismissible: boolean;
|
|
25
|
+
outline: boolean;
|
|
26
|
+
avatar: string;
|
|
27
|
+
clickable: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
code: string;
|
|
3
|
+
language?: string;
|
|
4
|
+
copyable?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
language: string;
|
|
8
|
+
copyable: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type Size = "sm" | "md" | "lg";
|
|
2
|
+
interface CollectionItem {
|
|
3
|
+
id: string | number;
|
|
4
|
+
avatar?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
action?: string;
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
items: readonly CollectionItem[];
|
|
11
|
+
header?: string;
|
|
12
|
+
hoverable?: boolean;
|
|
13
|
+
bordered?: boolean;
|
|
14
|
+
size?: Size;
|
|
15
|
+
}
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
|
+
header: string;
|
|
18
|
+
size: Size;
|
|
19
|
+
hoverable: boolean;
|
|
20
|
+
bordered: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface CustomSelectOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
modelValue: string;
|
|
8
|
+
options: readonly CustomSelectOption[];
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: string) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue: number;
|
|
3
|
+
total: number;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_2: `slide-${number}`, __VLS_3: {
|
|
6
|
+
index: number;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
12
|
+
go: (next: number) => void;
|
|
13
|
+
prev: () => void;
|
|
14
|
+
next: () => void;
|
|
15
|
+
index: import("vue").Ref<number, number>;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: number) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
name: string;
|
|
3
|
+
filled?: boolean;
|
|
4
|
+
size?: "sm" | "md" | "lg";
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
filled: boolean;
|
|
8
|
+
size: "sm" | "md" | "lg";
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type Size = "sm" | "md" | "lg";
|
|
2
|
+
type Variant = "default" | "error" | "success";
|
|
3
|
+
interface Props {
|
|
4
|
+
modelValue: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
size?: Size;
|
|
8
|
+
variant?: Variant;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
name?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
minlength?: number;
|
|
15
|
+
maxlength?: number;
|
|
16
|
+
pattern?: string;
|
|
17
|
+
autocomplete?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: string) => any;
|
|
21
|
+
blur: (event: FocusEvent) => any;
|
|
22
|
+
focus: (event: FocusEvent) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
25
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
26
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
pattern: string;
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
size: Size;
|
|
33
|
+
required: boolean;
|
|
34
|
+
variant: Variant;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
placeholder: string;
|
|
37
|
+
readonly: boolean;
|
|
38
|
+
minlength: number;
|
|
39
|
+
maxlength: number;
|
|
40
|
+
autocomplete: string;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
open: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
size?: "sm" | "md" | "lg";
|
|
5
|
+
closeOnBackdrop?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_7: {}, __VLS_14: {}, __VLS_16: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
header?: (props: typeof __VLS_7) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_14) => any;
|
|
12
|
+
} & {
|
|
13
|
+
footer?: (props: typeof __VLS_16) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
close: () => any;
|
|
17
|
+
"update:open": (value: boolean) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
19
|
+
onClose?: (() => any) | undefined;
|
|
20
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
title: string;
|
|
23
|
+
size: "sm" | "md" | "lg";
|
|
24
|
+
closeOnBackdrop: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
placement?: "left" | "right" | "top" | "bottom";
|
|
4
|
+
title?: string;
|
|
5
|
+
closeOnBackdrop?: boolean;
|
|
6
|
+
closeOnEsc?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
header?: (props: typeof __VLS_7) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_9) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: boolean) => any;
|
|
16
|
+
close: () => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
onClose?: (() => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
title: string;
|
|
22
|
+
closeOnBackdrop: boolean;
|
|
23
|
+
placement: "left" | "right" | "top" | "bottom";
|
|
24
|
+
closeOnEsc: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reactive reimplementation of framework/js/components/pagination.js. Reproduces
|
|
3
|
+
* the framework's DOM contract — `.vd-pagination` list of
|
|
4
|
+
* `.vd-pagination-item` (`<a class="vd-pagination-link">`), `.active` /
|
|
5
|
+
* `.disabled` states, prev/next, and ellipses via the framework's exact
|
|
6
|
+
* `calculatePages` algorithm — with a clean `v-model` API. Dispatches a native
|
|
7
|
+
* `pagination:change` ({ page, totalPages }) alongside `update:modelValue`.
|
|
8
|
+
*/
|
|
9
|
+
type Size = "sm" | "md" | "lg";
|
|
10
|
+
interface Props {
|
|
11
|
+
modelValue: number;
|
|
12
|
+
total: number;
|
|
13
|
+
maxVisible?: number;
|
|
14
|
+
size?: Size;
|
|
15
|
+
align?: "left" | "center" | "right";
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: number) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
size: Size;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
maxVisible: number;
|
|
26
|
+
align: "left" | "center" | "right";
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Variant = "primary" | "secondary" | "success" | "warning" | "error" | "info";
|
|
2
|
+
type Size = "sm" | "md" | "lg" | "xl";
|
|
3
|
+
type Theme = "light" | "dark";
|
|
4
|
+
interface Props {
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
size?: Size;
|
|
7
|
+
theme?: Theme;
|
|
8
|
+
text?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
11
|
+
text: string;
|
|
12
|
+
size: Size;
|
|
13
|
+
variant: Variant;
|
|
14
|
+
theme: Theme;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
value?: number;
|
|
3
|
+
max?: number;
|
|
4
|
+
indeterminate?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
max: number;
|
|
11
|
+
indeterminate: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface RadioOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
options: readonly RadioOption[];
|
|
8
|
+
modelValue: string;
|
|
9
|
+
name: string;
|
|
10
|
+
inline?: boolean;
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
size: "sm" | "md" | "lg";
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
inline: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue: number;
|
|
3
|
+
max?: number;
|
|
4
|
+
size?: "sm" | "lg";
|
|
5
|
+
readonly?: boolean;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: number) => any;
|
|
10
|
+
change: (value: number) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
13
|
+
onChange?: ((value: number) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
name: string;
|
|
16
|
+
size: "sm" | "lg";
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
max: number;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|