@returnless/focus-ui 0.0.14 → 0.0.15
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/components/ActionList/ActionList.vue.d.ts +2 -2
- package/dist/components/Alert/types.d.ts +1 -1
- package/dist/components/BarChart/BarChart.vue.d.ts +41 -24
- package/dist/components/BarChart/index.d.ts +0 -2
- package/dist/components/Button/Button.vue.d.ts +3 -0
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Link/Link.vue.d.ts +4 -5
- package/dist/components/OldBarChart/BarChart.vue.d.ts +27 -0
- package/dist/components/OldBarChart/ChartCrosshair.vue.d.ts +34 -0
- package/dist/components/OldBarChart/ChartTooltip.vue.d.ts +25 -0
- package/dist/components/OldBarChart/Vis.vue.d.ts +56 -0
- package/dist/components/OldBarChart/index.d.ts +5 -0
- package/dist/components/OldBarChart/types.d.ts +15 -0
- package/dist/components/Popper/Popper.vue.d.ts +21 -3
- package/dist/components/Popper/PopperArrow.vue.d.ts +2 -0
- package/dist/components/Popper/index.d.ts +2 -1
- package/dist/components/Stepper/Stepper.vue.d.ts +6 -0
- package/dist/components/Toast/ToastGroup.vue.d.ts +15 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/composables/useToastNotifications.d.ts +10 -9
- package/dist/focus-ui.js +4107 -5667
- package/dist/focus-ui.umd.cjs +11 -23
- package/dist/style.css +1 -1
- package/package.json +5 -3
- /package/dist/components/{BarChart → OldBarChart}/BarChartContainer.vue.d.ts +0 -0
- /package/dist/components/{BarChart → OldBarChart}/BarChartStacked.vue.d.ts +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Alignment } from '@floating-ui/vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
/** The alignment of the popover. */
|
|
4
|
-
alignment
|
|
4
|
+
alignment?: Alignment | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
alignment: string;
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
8
8
|
/** The alignment of the popover. */
|
|
9
|
-
alignment
|
|
9
|
+
alignment?: Alignment | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
alignment: string;
|
|
12
12
|
}>>>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type AlertVariant = 'default' | 'destructive' | 'warning';
|
|
1
|
+
export type AlertVariant = 'default' | 'informative' | 'destructive' | 'warning';
|
|
@@ -1,27 +1,44 @@
|
|
|
1
1
|
import { TailwindColor } from '../../composables';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
8
|
-
/** The data points to display */
|
|
9
|
-
dataPoints: DataPoint[];
|
|
10
|
-
/** The height of the chart */
|
|
11
|
-
height: number;
|
|
12
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
-
/** The data points to display */
|
|
14
|
-
dataPoints: DataPoint[];
|
|
15
|
-
/** The height of the chart */
|
|
2
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: {
|
|
3
|
+
data: any[];
|
|
4
|
+
categories: string[];
|
|
5
|
+
colors: TailwindColor[];
|
|
6
|
+
index: string;
|
|
16
7
|
height: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: {};
|
|
12
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
13
|
+
props: {
|
|
14
|
+
data: any[];
|
|
15
|
+
categories: string[];
|
|
16
|
+
colors: TailwindColor[];
|
|
17
|
+
index: string;
|
|
18
|
+
height: number;
|
|
19
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
20
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
21
|
+
attrs: any;
|
|
22
|
+
slots: {};
|
|
23
|
+
emit: {};
|
|
24
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}> & {
|
|
27
|
+
__ctx?: {
|
|
28
|
+
props: {
|
|
29
|
+
data: any[];
|
|
30
|
+
categories: string[];
|
|
31
|
+
colors: TailwindColor[];
|
|
32
|
+
index: string;
|
|
33
|
+
height: number;
|
|
34
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
35
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
36
|
+
attrs: any;
|
|
37
|
+
slots: {};
|
|
38
|
+
emit: {};
|
|
39
|
+
} | undefined;
|
|
27
40
|
};
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_Prettify<T> = {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} & {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from './types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
|
|
3
|
+
align: string;
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
disclosure: boolean;
|
|
5
6
|
external: boolean;
|
|
@@ -12,6 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
13
|
variant: string;
|
|
13
14
|
native: boolean;
|
|
14
15
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
|
|
16
|
+
align: string;
|
|
15
17
|
disabled: boolean;
|
|
16
18
|
disclosure: boolean;
|
|
17
19
|
external: boolean;
|
|
@@ -26,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
28
|
}>>>, {
|
|
27
29
|
type: "button" | "reset" | "submit";
|
|
28
30
|
href: string | null;
|
|
31
|
+
align: "right" | "left" | "center";
|
|
29
32
|
disabled: boolean;
|
|
30
33
|
disclosure: boolean;
|
|
31
34
|
external: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'ghost';
|
|
2
2
|
export interface ButtonProps {
|
|
3
|
+
/** The button's content alignment. */
|
|
4
|
+
align?: 'left' | 'center' | 'right';
|
|
3
5
|
/** Whether the button is disabled. */
|
|
4
6
|
disabled?: boolean;
|
|
5
7
|
/** Displays the button with a disclosure icon. Defaults to `down` when set to true. */
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
/** The aria-label attribute to be applied to the link */
|
|
3
3
|
accessibilityLabel?: string | null | undefined;
|
|
4
|
+
/** Whether the link should open in a new tab. */
|
|
5
|
+
external?: boolean | undefined;
|
|
4
6
|
/** The href attribute to be applied to the link */
|
|
5
7
|
href: string;
|
|
6
|
-
/** Whether the link should be rendered as a native anchor element */
|
|
7
|
-
native?: boolean | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
accessibilityLabel: null;
|
|
10
10
|
native: boolean;
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
12
|
/** The aria-label attribute to be applied to the link */
|
|
13
13
|
accessibilityLabel?: string | null | undefined;
|
|
14
|
+
/** Whether the link should open in a new tab. */
|
|
15
|
+
external?: boolean | undefined;
|
|
14
16
|
/** The href attribute to be applied to the link */
|
|
15
17
|
href: string;
|
|
16
|
-
/** Whether the link should be rendered as a native anchor element */
|
|
17
|
-
native?: boolean | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
accessibilityLabel: null;
|
|
20
20
|
native: boolean;
|
|
21
21
|
}>>>, {
|
|
22
|
-
native: boolean;
|
|
23
22
|
accessibilityLabel: string | null;
|
|
24
23
|
}, {}>, {
|
|
25
24
|
default?(_: {}): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TailwindColor } from '../../composables';
|
|
2
|
+
type DataPoint = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
color: TailwindColor;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
8
|
+
/** The data points to display */
|
|
9
|
+
dataPoints: DataPoint[];
|
|
10
|
+
/** The height of the chart */
|
|
11
|
+
height: number;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
+
/** The data points to display */
|
|
14
|
+
dataPoints: DataPoint[];
|
|
15
|
+
/** The height of the chart */
|
|
16
|
+
height: number;
|
|
17
|
+
}>>>, {}, {}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToOption<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
+
colors: string[];
|
|
4
|
+
index: string;
|
|
5
|
+
items: BulletLegendItemInterface[];
|
|
6
|
+
}>, {
|
|
7
|
+
colors: () => never[];
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
9
|
+
colors: string[];
|
|
10
|
+
index: string;
|
|
11
|
+
items: BulletLegendItemInterface[];
|
|
12
|
+
}>, {
|
|
13
|
+
colors: () => never[];
|
|
14
|
+
}>>>, {
|
|
15
|
+
colors: string[];
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithDefaults<P, D> = {
|
|
19
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
20
|
+
default: D[K];
|
|
21
|
+
}> : P[K];
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Prettify<T> = {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} & {};
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToOption<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
title?: string | undefined;
|
|
3
|
+
data: {
|
|
4
|
+
name: string;
|
|
5
|
+
color: string;
|
|
6
|
+
value: any;
|
|
7
|
+
}[];
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
data: {
|
|
11
|
+
name: string;
|
|
12
|
+
color: string;
|
|
13
|
+
value: any;
|
|
14
|
+
}[];
|
|
15
|
+
}>>>, {}, {}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: {
|
|
3
|
+
onLegendItemClick?: ((d: BulletLegendItemInterface, i: number) => any) | undefined;
|
|
4
|
+
data: T[];
|
|
5
|
+
categories: Extract<keyof T, string>[];
|
|
6
|
+
index: Extract<keyof T, string>;
|
|
7
|
+
colors: ("slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray")[];
|
|
8
|
+
height: number;
|
|
9
|
+
type?: "stacked" | "grouped" | undefined;
|
|
10
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
emit: (evt: "legendItemClick", d: BulletLegendItemInterface, i: number) => void;
|
|
16
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
17
|
+
props: {
|
|
18
|
+
onLegendItemClick?: ((d: BulletLegendItemInterface, i: number) => any) | undefined;
|
|
19
|
+
data: T[];
|
|
20
|
+
categories: Extract<keyof T, string>[];
|
|
21
|
+
index: Extract<keyof T, string>;
|
|
22
|
+
colors: ("slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray")[];
|
|
23
|
+
height: number;
|
|
24
|
+
type?: "stacked" | "grouped" | undefined;
|
|
25
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
26
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
27
|
+
attrs: any;
|
|
28
|
+
slots: {
|
|
29
|
+
default?(_: {}): any;
|
|
30
|
+
};
|
|
31
|
+
emit: (evt: "legendItemClick", d: BulletLegendItemInterface, i: number) => void;
|
|
32
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}> & {
|
|
35
|
+
__ctx?: {
|
|
36
|
+
props: {
|
|
37
|
+
onLegendItemClick?: ((d: BulletLegendItemInterface, i: number) => any) | undefined;
|
|
38
|
+
data: T[];
|
|
39
|
+
categories: Extract<keyof T, string>[];
|
|
40
|
+
index: Extract<keyof T, string>;
|
|
41
|
+
colors: ("slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray")[];
|
|
42
|
+
height: number;
|
|
43
|
+
type?: "stacked" | "grouped" | undefined;
|
|
44
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
45
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
46
|
+
attrs: any;
|
|
47
|
+
slots: {
|
|
48
|
+
default?(_: {}): any;
|
|
49
|
+
};
|
|
50
|
+
emit: (evt: "legendItemClick", d: BulletLegendItemInterface, i: number) => void;
|
|
51
|
+
} | undefined;
|
|
52
|
+
};
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_Prettify<T> = {
|
|
55
|
+
[K in keyof T]: T[K];
|
|
56
|
+
} & {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as BarChart } from './BarChart.vue';
|
|
2
|
+
export { default as BarChartContainer } from './BarChartContainer.vue';
|
|
3
|
+
export { default as BarChartStacked } from './BarChartStacked.vue';
|
|
4
|
+
export { default as Vis } from './Vis.vue';
|
|
5
|
+
export { default as ChartCrosshair } from './ChartCrosshair.vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TailwindColor } from '@/composables';
|
|
2
|
+
type KeyOf<T extends Record<string, any>> = Extract<keyof T, string>;
|
|
3
|
+
export interface BaseChartProps<T extends Record<string, any>> {
|
|
4
|
+
/** The source data, in which each entry is a dictionary. */
|
|
5
|
+
data: T[];
|
|
6
|
+
/** Select the categories from your data. Used to populate the legend and tooltip. */
|
|
7
|
+
categories: KeyOf<T>[];
|
|
8
|
+
/** Sets the key to map the data to the axis. */
|
|
9
|
+
index: KeyOf<T>;
|
|
10
|
+
/** Sets the key to map the data to the axis. */
|
|
11
|
+
colors: TailwindColor[];
|
|
12
|
+
/** The height of the chart. */
|
|
13
|
+
height: number;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
import { Placement } from '@floating-ui/vue';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
/** The trigger event of the popper */
|
|
4
4
|
trigger: "click" | "hover";
|
|
5
5
|
/** The placement of the popper */
|
|
6
6
|
placement: Placement;
|
|
7
|
-
|
|
7
|
+
/** The delay in milliseconds before hiding the popper */
|
|
8
|
+
timeout?: number | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
timeout: number;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
8
12
|
/** The trigger event of the popper */
|
|
9
13
|
trigger: "click" | "hover";
|
|
10
14
|
/** The placement of the popper */
|
|
11
15
|
placement: Placement;
|
|
12
|
-
|
|
16
|
+
/** The delay in milliseconds before hiding the popper */
|
|
17
|
+
timeout?: number | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
timeout: number;
|
|
20
|
+
}>>>, {
|
|
21
|
+
timeout: number;
|
|
22
|
+
}, {}>, {
|
|
13
23
|
default?(_: {}): any;
|
|
14
24
|
}>;
|
|
15
25
|
export default _default;
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
16
34
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
35
|
new (): {
|
|
18
36
|
$slots: S;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { default as PopperBody } from './PopperBody.vue';
|
|
2
1
|
export { default as Popper } from './Popper.vue';
|
|
2
|
+
export { default as PopperArrow } from './PopperArrow.vue';
|
|
3
|
+
export { default as PopperBody } from './PopperBody.vue';
|
|
3
4
|
export { default as PopperTrigger } from './PopperTrigger.vue';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { TailwindColor } from '../../composables';
|
|
1
2
|
declare let __VLS_typeProps: {
|
|
3
|
+
/** The color of the stepper. */
|
|
4
|
+
color?: TailwindColor | null;
|
|
2
5
|
/** The label for the stepper. */
|
|
3
6
|
label: string;
|
|
4
7
|
/** The maximum value of the stepper. */
|
|
@@ -10,16 +13,19 @@ type __VLS_PublicProps = {
|
|
|
10
13
|
modelValue?: number;
|
|
11
14
|
} & typeof __VLS_typeProps;
|
|
12
15
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
16
|
+
color: null;
|
|
13
17
|
min: undefined;
|
|
14
18
|
max: undefined;
|
|
15
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
20
|
"update:modelValue": (modelValue: number) => void;
|
|
17
21
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
22
|
+
color: null;
|
|
18
23
|
min: undefined;
|
|
19
24
|
max: undefined;
|
|
20
25
|
}>>> & {
|
|
21
26
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
22
27
|
}, {
|
|
28
|
+
color: "slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray" | null;
|
|
23
29
|
max: number;
|
|
24
30
|
min: number;
|
|
25
31
|
}, {}>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ToastNotification } from '../../composables/useToastNotifications';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
notifications: ToastNotification[];
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
|
+
notifications: ToastNotification[];
|
|
6
|
+
}>>>, {}, {}>, {
|
|
2
7
|
default?(_: {}): any;
|
|
3
8
|
}>;
|
|
4
9
|
export default _default;
|
|
@@ -7,3 +12,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
7
12
|
$slots: S;
|
|
8
13
|
};
|
|
9
14
|
};
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToOption<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
|
+
};
|
|
@@ -5,7 +5,7 @@ export { AlertDialog, AlertDialogActionButton, AlertDialogCancelButton, AlertDia
|
|
|
5
5
|
export { AspectRatio } from './AspectRatio';
|
|
6
6
|
export { Avatar } from './Avatar';
|
|
7
7
|
export { Badge, BadgeContent, BadgeIcon } from './Badge';
|
|
8
|
-
export { BarChart
|
|
8
|
+
export { BarChart } from './BarChart';
|
|
9
9
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from './Breadcrumbs';
|
|
10
10
|
export { type ButtonVariant, Button, ButtonBadge, ButtonContent, ButtonIcon, } from './Button';
|
|
11
11
|
export { ButtonGroup } from './ButtonGroup';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export interface ToastNotification {
|
|
2
2
|
id: string;
|
|
3
3
|
message: string;
|
|
4
|
+
timeout: number;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
toastNotifications:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export declare function useToastNotifications(): {
|
|
7
|
+
toastNotifications: import("vue").Ref<{
|
|
8
|
+
id: string;
|
|
9
|
+
message: string;
|
|
10
|
+
timeout: number;
|
|
11
|
+
}[]>;
|
|
12
|
+
emitToastNotification: (message: string, timeout?: number) => void;
|
|
13
|
+
closeToastNotification: (toastNotification: ToastNotification) => void;
|
|
14
|
+
};
|