@vue/devtools-ui 7.0.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.
Files changed (36) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/index.cjs +3 -0
  4. package/dist/index.js +1520 -0
  5. package/dist/style.css +1 -0
  6. package/dist/theme.cjs +17 -0
  7. package/dist/theme.js +278 -0
  8. package/dist/types/src/components/Badge.d.ts +9 -0
  9. package/dist/types/src/components/Button.d.ts +68 -0
  10. package/dist/types/src/components/Card.d.ts +9 -0
  11. package/dist/types/src/components/Checkbox.d.ts +35 -0
  12. package/dist/types/src/components/Confirm.d.ts +82 -0
  13. package/dist/types/src/components/DarkToggle.d.ts +55 -0
  14. package/dist/types/src/components/Dialog.d.ts +75 -0
  15. package/dist/types/src/components/Drawer.d.ts +74 -0
  16. package/dist/types/src/components/Dropdown.d.ts +101 -0
  17. package/dist/types/src/components/DropdownButton.d.ts +38 -0
  18. package/dist/types/src/components/FormField.d.ts +47 -0
  19. package/dist/types/src/components/Icon.d.ts +33 -0
  20. package/dist/types/src/components/Input.d.ts +79 -0
  21. package/dist/types/src/components/LoadingIndicator.d.ts +2 -0
  22. package/dist/types/src/components/Notification.d.ts +32 -0
  23. package/dist/types/src/components/Overlay.d.ts +22 -0
  24. package/dist/types/src/components/Select.d.ts +125 -0
  25. package/dist/types/src/components/Switch.d.ts +28 -0
  26. package/dist/types/src/components/Tooltip.d.ts +20 -0
  27. package/dist/types/src/components/index.d.ts +20 -0
  28. package/dist/types/src/composables/index.d.ts +2 -0
  29. package/dist/types/src/composables/notification.d.ts +10 -0
  30. package/dist/types/src/index.d.ts +5 -0
  31. package/dist/types/src/types/floating-vue.d.ts +9 -0
  32. package/dist/types/src/types/index.d.ts +1 -0
  33. package/dist/types/theme/index.d.ts +2 -0
  34. package/dist/types/theme/theme.d.ts +66 -0
  35. package/dist/types/theme/uno.config.d.ts +2 -0
  36. package/package.json +55 -0
@@ -0,0 +1,125 @@
1
+ import type { ButtonProps } from "./Button";
2
+ declare const _default: <Value extends string | number, Label, M extends boolean>(__VLS_props: {
3
+ disabled?: boolean | undefined;
4
+ modelValue: M extends true ? Value[] : Value;
5
+ "onUpdate:modelValue"?: ((value: M extends true ? Value[] : Value) => any) | undefined;
6
+ autoClose?: boolean | undefined;
7
+ buttonProps?: ButtonProps | undefined;
8
+ placeholder?: string | undefined;
9
+ multiple?: M | undefined;
10
+ options: {
11
+ label: Label;
12
+ value: Value;
13
+ }[];
14
+ labelRenderer?: ((label: Label) => string) | undefined;
15
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
16
+ attrs: any;
17
+ slots: Readonly<{
18
+ item(props: {
19
+ item: {
20
+ label: Label;
21
+ value: Value;
22
+ };
23
+ active: boolean;
24
+ disabled: boolean;
25
+ }): any;
26
+ button(): any;
27
+ }> & {
28
+ item(props: {
29
+ item: {
30
+ label: Label;
31
+ value: Value;
32
+ };
33
+ active: boolean;
34
+ disabled: boolean;
35
+ }): any;
36
+ button(): any;
37
+ };
38
+ emit: (evt: "update:modelValue", value: M extends true ? Value[] : Value) => void;
39
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
40
+ props: {
41
+ disabled?: boolean | undefined;
42
+ modelValue: M extends true ? Value[] : Value;
43
+ "onUpdate:modelValue"?: ((value: M extends true ? Value[] : Value) => any) | undefined;
44
+ autoClose?: boolean | undefined;
45
+ buttonProps?: ButtonProps | undefined;
46
+ placeholder?: string | undefined;
47
+ multiple?: M | undefined;
48
+ options: {
49
+ label: Label;
50
+ value: Value;
51
+ }[];
52
+ labelRenderer?: ((label: Label) => string) | undefined;
53
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
54
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
55
+ attrs: any;
56
+ slots: Readonly<{
57
+ item(props: {
58
+ item: {
59
+ label: Label;
60
+ value: Value;
61
+ };
62
+ active: boolean;
63
+ disabled: boolean;
64
+ }): any;
65
+ button(): any;
66
+ }> & {
67
+ item(props: {
68
+ item: {
69
+ label: Label;
70
+ value: Value;
71
+ };
72
+ active: boolean;
73
+ disabled: boolean;
74
+ }): any;
75
+ button(): any;
76
+ };
77
+ emit: (evt: "update:modelValue", value: M extends true ? Value[] : Value) => void;
78
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
79
+ [key: string]: any;
80
+ }> & {
81
+ __ctx?: {
82
+ props: {
83
+ disabled?: boolean | undefined;
84
+ modelValue: M extends true ? Value[] : Value;
85
+ "onUpdate:modelValue"?: ((value: M extends true ? Value[] : Value) => any) | undefined;
86
+ autoClose?: boolean | undefined;
87
+ buttonProps?: ButtonProps | undefined;
88
+ placeholder?: string | undefined;
89
+ multiple?: M | undefined;
90
+ options: {
91
+ label: Label;
92
+ value: Value;
93
+ }[];
94
+ labelRenderer?: ((label: Label) => string) | undefined;
95
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
96
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
97
+ attrs: any;
98
+ slots: Readonly<{
99
+ item(props: {
100
+ item: {
101
+ label: Label;
102
+ value: Value;
103
+ };
104
+ active: boolean;
105
+ disabled: boolean;
106
+ }): any;
107
+ button(): any;
108
+ }> & {
109
+ item(props: {
110
+ item: {
111
+ label: Label;
112
+ value: Value;
113
+ };
114
+ active: boolean;
115
+ disabled: boolean;
116
+ }): any;
117
+ button(): any;
118
+ };
119
+ emit: (evt: "update:modelValue", value: M extends true ? Value[] : Value) => void;
120
+ } | undefined;
121
+ };
122
+ export default _default;
123
+ type __VLS_Prettify<T> = {
124
+ [K in keyof T]: T[K];
125
+ } & {};
@@ -0,0 +1,28 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ modelValue: boolean;
3
+ disabled?: boolean | undefined;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: boolean) => void;
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ modelValue: boolean;
8
+ disabled?: boolean | undefined;
9
+ }>>> & {
10
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
11
+ }, {}, {}>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,20 @@
1
+ import type { FloatingVueCommonProps } from '../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<FloatingVueCommonProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FloatingVueCommonProps>>>, {}, {}>, {
3
+ default?(_: {}): any;
4
+ popper?(_: {}): any;
5
+ }>;
6
+ export default _default;
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,20 @@
1
+ import Button from "./Button";
2
+ import Badge from "./Badge";
3
+ import LoadingIndicator from "./LoadingIndicator";
4
+ import Icon from "./Icon";
5
+ import DarkToggle from "./DarkToggle";
6
+ import Card from "./Card";
7
+ import Dialog from "./Dialog";
8
+ import Input from "./Input";
9
+ import FormField from "./FormField";
10
+ import Dropdown from "./Dropdown";
11
+ import DropdownButton from "./DropdownButton";
12
+ import Confirm from "./Confirm";
13
+ import Select from "./Select";
14
+ import Switch from "./Switch";
15
+ import Checkbox from "./Checkbox";
16
+ import Drawer from "./Drawer";
17
+ import Overlay from "./Overlay";
18
+ import Notification from "./Notification";
19
+ import Tooltip from "./Tooltip";
20
+ export { Badge as VueBadge, Button as VueButton, Card as VueCard, Checkbox as VueCheckbox, Dialog as VueDialog, Drawer as VueDrawer, LoadingIndicator as VueLoadingIndicator, Icon as VueIcon, DarkToggle as VueDarkToggle, Input as VueInput, FormField as VueFormField, Overlay as VueOverlay, Dropdown as VueDropdown, DropdownButton as VueDropdownButton, Confirm as VueConfirm, Select as VueSelect, Switch as VueSwitch, Notification as VueNotification, Tooltip as VueTooltip, };
@@ -0,0 +1,2 @@
1
+ export * from './notification';
2
+ export type * from './notification';
@@ -0,0 +1,10 @@
1
+ export type VueNotificationPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2
+ export interface VueNotificationOptions {
3
+ message: string;
4
+ type?: 'success' | 'error' | 'info' | 'warning';
5
+ classes?: string;
6
+ duration?: number;
7
+ placement?: VueNotificationPlacement;
8
+ onClose?: () => void;
9
+ }
10
+ export declare function showVueNotification(options: VueNotificationOptions): void;
@@ -0,0 +1,5 @@
1
+ import { VTooltip } from 'floating-vue';
2
+ export * from './components';
3
+ export * from './composables';
4
+ export * from './types';
5
+ export { VTooltip, };
@@ -0,0 +1,9 @@
1
+ import type { Placement } from 'floating-vue';
2
+ export interface FloatingVueCommonProps {
3
+ trigger?: 'click' | 'hover';
4
+ distance?: number;
5
+ skidding?: number;
6
+ placement?: Placement;
7
+ disabled?: boolean;
8
+ shown?: boolean;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './floating-vue';
@@ -0,0 +1,2 @@
1
+ export * from './theme';
2
+ export * from './uno.config';
@@ -0,0 +1,66 @@
1
+ export declare const themeDef: {
2
+ colors: {
3
+ white: string;
4
+ black: string;
5
+ 'gray-900': string;
6
+ 'gray-800': string;
7
+ 'gray-700': string;
8
+ 'gray-600': string;
9
+ 'gray-500': string;
10
+ 'gray-400': string;
11
+ 'gray-300': string;
12
+ 'gray-200': string;
13
+ 'gray-100': string;
14
+ 'primary-900': string;
15
+ 'primary-800': string;
16
+ 'primary-700': string;
17
+ 'primary-600': string;
18
+ 'primary-500': string;
19
+ 'primary-400': string;
20
+ 'primary-300': string;
21
+ 'primary-200': string;
22
+ 'primary-100': string;
23
+ 'accent-900': string;
24
+ 'accent-800': string;
25
+ 'accent-700': string;
26
+ 'accent-600': string;
27
+ 'accent-500': string;
28
+ 'accent-400': string;
29
+ 'accent-300': string;
30
+ 'accent-200': string;
31
+ 'accent-100': string;
32
+ 'danger-900': string;
33
+ 'danger-800': string;
34
+ 'danger-700': string;
35
+ 'danger-600': string;
36
+ 'danger-500': string;
37
+ 'danger-400': string;
38
+ 'danger-300': string;
39
+ 'danger-200': string;
40
+ 'danger-100': string;
41
+ 'warning-900': string;
42
+ 'warning-800': string;
43
+ 'warning-700': string;
44
+ 'warning-600': string;
45
+ 'warning-500': string;
46
+ 'warning-400': string;
47
+ 'warning-300': string;
48
+ 'warning-200': string;
49
+ 'warning-100': string;
50
+ 'info-900': string;
51
+ 'info-800': string;
52
+ 'info-700': string;
53
+ 'info-600': string;
54
+ 'info-500': string;
55
+ 'info-400': string;
56
+ 'info-300': string;
57
+ 'info-200': string;
58
+ 'info-100': string;
59
+ };
60
+ };
61
+ export declare const theme: {
62
+ colors: Record<string, any>;
63
+ fontFamily: {
64
+ sans: string;
65
+ };
66
+ };
@@ -0,0 +1,2 @@
1
+ import type { UserConfig } from 'unocss';
2
+ export declare const unoConfig: UserConfig<object>;
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@vue/devtools-ui",
3
+ "type": "module",
4
+ "version": "7.0.0",
5
+ "author": "webfansplz",
6
+ "license": "MIT",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/types/src/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "./style.css": "./dist/style.css",
14
+ "./theme": {
15
+ "types": "./dist/types/theme/index.d.ts",
16
+ "import": "./dist/theme.js",
17
+ "require": "./dist/theme.cjs"
18
+ }
19
+ },
20
+ "main": "./dist/index.cjs",
21
+ "module": "./dist/index.js",
22
+ "types": "./dist/types/src/index.d.ts",
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "peerDependencies": {
27
+ "@unocss/reset": ">=0.50.0-0",
28
+ "floating-vue": ">=2.0.0-0",
29
+ "unocss": ">=0.50.0-0",
30
+ "vue": ">=3.0.0-0"
31
+ },
32
+ "dependencies": {
33
+ "@vueuse/components": "^10.7.1",
34
+ "@vueuse/core": "^10.7.1",
35
+ "@vueuse/integrations": "^10.7.1",
36
+ "colord": "^2.9.3",
37
+ "focus-trap": "^7.5.4"
38
+ },
39
+ "devDependencies": {
40
+ "@histoire/plugin-vue": "^0.17.6",
41
+ "@types/node": "^20.10.5",
42
+ "@unocss/reset": "^0.58.2",
43
+ "@vitejs/plugin-vue": "^4.6.0",
44
+ "floating-vue": "2.0.0-beta.24",
45
+ "histoire": "^0.17.6",
46
+ "unocss": "^0.58.2",
47
+ "vite-plugin-dts": "^3.7.0"
48
+ },
49
+ "scripts": {
50
+ "build": "vite build",
51
+ "story:build": "histoire build",
52
+ "story:dev": "histoire dev",
53
+ "story:preview": "histoire preview"
54
+ }
55
+ }