@vanjana/vue-ui 0.1.116 → 0.1.120
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/dist/types/components/accordion.vue.d.ts +25 -0
- package/dist/types/components/floorplans/object-fllorplan.vue.d.ts +18 -0
- package/dist/types/components/form/input-slider.vue.d.ts +9 -2
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/services/icon-registry.d.ts +40 -0
- package/dist/types/services/index.d.ts +1 -0
- package/dist/types/stories/components/accordion.stories.d.ts +80 -0
- package/dist/types/stories/floorpans/object-floorplan.stories.d.ts +75 -0
- package/dist/vanjana-vue-ui.es.js +1100 -973
- package/dist/vanjana-vue-ui.umd.js +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
expanded?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_15: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_15) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:expanded": (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
+
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
expanded: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
title?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
label?: (props: typeof __VLS_3) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -4,12 +4,19 @@ type Props = FormFieldProps & {
|
|
|
4
4
|
max?: number;
|
|
5
5
|
step?: number;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type __VLS_Props = Props;
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
modelValue?: number;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: number | undefined) => any;
|
|
14
|
+
} & {
|
|
8
15
|
input: (value: number) => any;
|
|
9
16
|
blur: (value: FocusEvent) => any;
|
|
10
17
|
focus: (value: FocusEvent) => any;
|
|
11
18
|
"update:modelValue": (value: number) => any;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
20
|
onInput?: ((value: number) => any) | undefined;
|
|
14
21
|
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
15
22
|
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Accordion from './accordion.vue';
|
|
1
2
|
import ButtonBar from './button-bar.vue';
|
|
2
3
|
import Button from './button.vue';
|
|
3
4
|
import Card from './card.vue';
|
|
@@ -29,4 +30,4 @@ export type { ChipSelectorOption, ChipSelectorProps } from './chip-selector.vue'
|
|
|
29
30
|
export * from './form';
|
|
30
31
|
export * from './shell';
|
|
31
32
|
export * from './notification';
|
|
32
|
-
export { AmountBar, Button, ButtonBar, Card, Carousel, Checkbox, Radio, Chip, ChipGroup, ChipSelector, Dialog, DotMenu, Icon, LinkButton, Menu, MenuAction, Page, Paginator, SearchField, Separator, Spinner, Tab, TabView, Timer, EditableLabel, Skeleton, Upload, };
|
|
33
|
+
export { Accordion, AmountBar, Button, ButtonBar, Card, Carousel, Checkbox, Radio, Chip, ChipGroup, ChipSelector, Dialog, DotMenu, Icon, LinkButton, Menu, MenuAction, Page, Paginator, SearchField, Separator, Spinner, Tab, TabView, Timer, EditableLabel, Skeleton, Upload, };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
export type IconType = 'string' | 'component';
|
|
3
|
+
export interface RegisteredIcon {
|
|
4
|
+
type: IconType;
|
|
5
|
+
value: string | Component;
|
|
6
|
+
}
|
|
7
|
+
declare class IconRegistry {
|
|
8
|
+
private icons;
|
|
9
|
+
/**
|
|
10
|
+
* Register an icon component
|
|
11
|
+
* @param name - Unique identifier for the icon
|
|
12
|
+
* @param component - Vue component to render
|
|
13
|
+
*/
|
|
14
|
+
registerComponent(name: string, component: Component): void;
|
|
15
|
+
/**
|
|
16
|
+
* Register a string-based icon (e.g., FontAwesome)
|
|
17
|
+
* @param name - Unique identifier for the icon
|
|
18
|
+
* @param iconString - Icon string (e.g., 'fa-solid fa-house')
|
|
19
|
+
*/
|
|
20
|
+
registerString(name: string, iconString: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Register multiple icons at once
|
|
23
|
+
* @param icons - Object with name as key and icon definition as value
|
|
24
|
+
*/
|
|
25
|
+
registerBatch(icons: Record<string, Component | string>): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get a registered icon by name
|
|
28
|
+
*/
|
|
29
|
+
getIcon(name: string): RegisteredIcon | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Check if an icon is registered
|
|
32
|
+
*/
|
|
33
|
+
has(name: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Get all registered icon names
|
|
36
|
+
*/
|
|
37
|
+
getIconNames(): string[];
|
|
38
|
+
}
|
|
39
|
+
export declare const iconRegistry: IconRegistry;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
+
title: string;
|
|
7
|
+
expanded?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}> & Readonly<{
|
|
10
|
+
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:expanded": (value: boolean) => any;
|
|
13
|
+
}, import("vue").PublicProps, {
|
|
14
|
+
expanded: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
17
|
+
P: {};
|
|
18
|
+
B: {};
|
|
19
|
+
D: {};
|
|
20
|
+
C: {};
|
|
21
|
+
M: {};
|
|
22
|
+
Defaults: {};
|
|
23
|
+
}, Readonly<{
|
|
24
|
+
title: string;
|
|
25
|
+
expanded?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}> & Readonly<{
|
|
28
|
+
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, {
|
|
30
|
+
expanded: boolean;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
__isFragment?: never;
|
|
34
|
+
__isTeleport?: never;
|
|
35
|
+
__isSuspense?: never;
|
|
36
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
37
|
+
title: string;
|
|
38
|
+
expanded?: boolean;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
}> & Readonly<{
|
|
41
|
+
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
"update:expanded": (value: boolean) => any;
|
|
44
|
+
}, string, {
|
|
45
|
+
expanded: boolean;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
48
|
+
$slots: {
|
|
49
|
+
default?: (props: {}) => any;
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
tags: string[];
|
|
53
|
+
argTypes: {
|
|
54
|
+
title: {
|
|
55
|
+
control: "text";
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
expanded: {
|
|
59
|
+
control: "boolean";
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
disabled: {
|
|
63
|
+
control: "boolean";
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
args: {
|
|
68
|
+
title: string;
|
|
69
|
+
expanded: false;
|
|
70
|
+
disabled: false;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export default meta;
|
|
74
|
+
type Story = StoryObj<typeof meta>;
|
|
75
|
+
export declare const Default: Story;
|
|
76
|
+
export declare const Expanded: Story;
|
|
77
|
+
export declare const Disabled: Story;
|
|
78
|
+
export declare const Multiple: Story;
|
|
79
|
+
export declare const WithHTMLContent: Story;
|
|
80
|
+
export declare const LongContent: Story;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
+
title: string;
|
|
7
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
8
|
+
P: {};
|
|
9
|
+
B: {};
|
|
10
|
+
D: {};
|
|
11
|
+
C: {};
|
|
12
|
+
M: {};
|
|
13
|
+
Defaults: {};
|
|
14
|
+
}, Readonly<{
|
|
15
|
+
title: string;
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
17
|
+
__isFragment?: never;
|
|
18
|
+
__isTeleport?: never;
|
|
19
|
+
__isSuspense?: never;
|
|
20
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
21
|
+
title: string;
|
|
22
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
23
|
+
$slots: {
|
|
24
|
+
title?: (props: {}) => any;
|
|
25
|
+
} & {
|
|
26
|
+
label?: (props: {}) => any;
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
render: (args: unknown) => {
|
|
30
|
+
components: {
|
|
31
|
+
ObjectFllorplan: {
|
|
32
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
33
|
+
title: string;
|
|
34
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
35
|
+
P: {};
|
|
36
|
+
B: {};
|
|
37
|
+
D: {};
|
|
38
|
+
C: {};
|
|
39
|
+
M: {};
|
|
40
|
+
Defaults: {};
|
|
41
|
+
}, Readonly<{
|
|
42
|
+
title: string;
|
|
43
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
48
|
+
title: string;
|
|
49
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
50
|
+
$slots: {
|
|
51
|
+
title?: (props: {}) => any;
|
|
52
|
+
} & {
|
|
53
|
+
label?: (props: {}) => any;
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
setup(this: void): {
|
|
58
|
+
args: unknown;
|
|
59
|
+
};
|
|
60
|
+
template: string;
|
|
61
|
+
};
|
|
62
|
+
tags: string[];
|
|
63
|
+
argTypes: {
|
|
64
|
+
title: {
|
|
65
|
+
control: "text";
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
args: {
|
|
70
|
+
title: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export default meta;
|
|
74
|
+
type Story = StoryObj<typeof meta>;
|
|
75
|
+
export declare const LinkButton: Story;
|