@dskripchenko/ui 0.2.0 → 0.3.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.
@@ -0,0 +1,34 @@
1
+ export interface UidDescriptionItemProps {
2
+ label?: string;
3
+ span?: number;
4
+ copyable?: boolean;
5
+ copyValue?: string;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: Readonly<{
10
+ default?(): unknown;
11
+ label?(): unknown;
12
+ }> & {
13
+ default?(): unknown;
14
+ label?(): unknown;
15
+ };
16
+ refs: {
17
+ itemRef: HTMLDivElement;
18
+ };
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<UidDescriptionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidDescriptionItemProps> & Readonly<{}>, {
23
+ span: number;
24
+ copyable: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
26
+ itemRef: HTMLDivElement;
27
+ }, HTMLDivElement>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,36 @@
1
+ import { Size } from '../../types/index.js';
2
+ export interface UidDescriptionListProps {
3
+ title?: string;
4
+ direction?: 'horizontal' | 'vertical';
5
+ columns?: number;
6
+ bordered?: boolean;
7
+ size?: Size;
8
+ labelWidth?: string;
9
+ }
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: Readonly<{
13
+ default?(): unknown;
14
+ title?(): unknown;
15
+ }> & {
16
+ default?(): unknown;
17
+ title?(): unknown;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<UidDescriptionListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidDescriptionListProps> & Readonly<{}>, {
24
+ size: Size;
25
+ direction: "horizontal" | "vertical";
26
+ columns: number;
27
+ bordered: boolean;
28
+ labelWidth: string;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,6 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ export interface DescriptionListContext {
3
+ direction: Ref<'horizontal' | 'vertical'>;
4
+ bordered: Ref<boolean>;
5
+ }
6
+ export declare const descriptionListKey: InjectionKey<DescriptionListContext>;
@@ -0,0 +1,4 @@
1
+ export { default as UidDescriptionList } from './UidDescriptionList.vue';
2
+ export { default as UidDescriptionItem } from './UidDescriptionItem.vue';
3
+ export type { UidDescriptionListProps } from './UidDescriptionList.vue';
4
+ export type { UidDescriptionItemProps } from './UidDescriptionItem.vue';
@@ -0,0 +1,34 @@
1
+ import { Size } from '../../types/index.js';
2
+ export type RatingTone = 'warning' | 'primary' | 'success' | 'danger';
3
+ export interface UidRatingProps {
4
+ max?: number;
5
+ allowHalf?: boolean;
6
+ readonly?: boolean;
7
+ disabled?: boolean;
8
+ showLabel?: boolean;
9
+ size?: Size;
10
+ tone?: RatingTone;
11
+ icon?: unknown;
12
+ label?: string;
13
+ }
14
+ type __VLS_Props = UidRatingProps;
15
+ type __VLS_PublicProps = {
16
+ modelValue?: number;
17
+ } & __VLS_Props;
18
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ "update:modelValue": (value: number) => any;
20
+ change: (value: number) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
23
+ onChange?: ((value: number) => any) | undefined;
24
+ }>, {
25
+ icon: undefined;
26
+ size: Size;
27
+ disabled: boolean;
28
+ max: number;
29
+ readonly: boolean;
30
+ tone: RatingTone;
31
+ allowHalf: boolean;
32
+ showLabel: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
34
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as UidRating } from './UidRating.vue';
2
+ export type { UidRatingProps, RatingTone } from './UidRating.vue';
@@ -0,0 +1,50 @@
1
+ export interface UidSplitterProps {
2
+ direction?: 'horizontal' | 'vertical';
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ disabled?: boolean;
7
+ }
8
+ type __VLS_Props = UidSplitterProps;
9
+ type __VLS_PublicProps = {
10
+ modelValue?: number;
11
+ } & __VLS_Props;
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: Readonly<{
15
+ start?(): unknown;
16
+ end?(): unknown;
17
+ }> & {
18
+ start?(): unknown;
19
+ end?(): unknown;
20
+ };
21
+ refs: {
22
+ containerRef: HTMLDivElement;
23
+ handleRef: HTMLDivElement;
24
+ };
25
+ rootEl: HTMLDivElement;
26
+ };
27
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ "update:modelValue": (value: number) => any;
30
+ change: (value: number) => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
33
+ onChange?: ((value: number) => any) | undefined;
34
+ }>, {
35
+ disabled: boolean;
36
+ min: number;
37
+ max: number;
38
+ direction: "horizontal" | "vertical";
39
+ step: number;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
41
+ containerRef: HTMLDivElement;
42
+ handleRef: HTMLDivElement;
43
+ }, HTMLDivElement>;
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
+ export default _default;
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,2 @@
1
+ export { default as UidSplitter } from './UidSplitter.vue';
2
+ export type { UidSplitterProps } from './UidSplitter.vue';
@@ -0,0 +1,48 @@
1
+ import { Component } from 'vue';
2
+ export type StatTone = 'primary' | 'success' | 'warning' | 'danger' | 'info';
3
+ export type StatVariant = 'card' | 'ghost';
4
+ export interface UidStatProps {
5
+ title?: string;
6
+ value?: number | string;
7
+ prefix?: string;
8
+ suffix?: string;
9
+ trend?: number;
10
+ trendSuffix?: string;
11
+ precision?: number;
12
+ formatter?: (value: number | string) => string;
13
+ tone?: StatTone;
14
+ variant?: StatVariant;
15
+ icon?: Component;
16
+ loading?: boolean;
17
+ footer?: string;
18
+ }
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: Readonly<{
22
+ icon?(): unknown;
23
+ value?(): unknown;
24
+ trend?(): unknown;
25
+ footer?(): unknown;
26
+ }> & {
27
+ icon?(): unknown;
28
+ value?(): unknown;
29
+ trend?(): unknown;
30
+ footer?(): unknown;
31
+ };
32
+ refs: {};
33
+ rootEl: HTMLDivElement;
34
+ };
35
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
36
+ declare const __VLS_component: import('vue').DefineComponent<UidStatProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidStatProps> & Readonly<{}>, {
37
+ variant: StatVariant;
38
+ precision: number;
39
+ tone: StatTone;
40
+ trendSuffix: string;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
+ export default _default;
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,2 @@
1
+ export { default as UidStat } from './UidStat.vue';
2
+ export type { UidStatProps, StatTone, StatVariant } from './UidStat.vue';