@returnless/focus-ui 0.0.27 → 0.0.29
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/BarChart/BarChart.vue.d.ts +41 -0
- package/dist/components/BarChart/BarChartLegend.vue.d.ts +25 -0
- package/dist/components/BarChart/BarChartTooltip.vue.d.ts +32 -0
- package/dist/components/BarChart/index.d.ts +2 -0
- package/dist/components/BarChart/types.d.ts +6 -0
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Card/CardTitle.vue.d.ts +4 -5
- package/dist/components/CategoryBar/CategoryBar.vue.d.ts +16 -0
- package/dist/components/CategoryBar/index.d.ts +2 -0
- package/dist/components/CategoryBar/types.d.ts +6 -0
- package/dist/components/Checkbox/CheckboxGroup.vue.d.ts +36 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/ColorInput/ColorInput.vue.d.ts +5 -0
- package/dist/components/DataList/DataList.vue.d.ts +8 -4
- package/dist/components/DataList/DataListItem.vue.d.ts +14 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +4 -21
- package/dist/components/DatePicker/index.d.ts +0 -1
- package/dist/components/TextField/TextField.vue.d.ts +7 -2
- package/dist/components/index.d.ts +4 -2
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/useCalendar.d.ts +16 -0
- package/dist/composables/useDateFormatter.d.ts +11 -0
- package/dist/focus-ui.js +8686 -4838
- package/dist/focus-ui.umd.cjs +28 -11
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/dist/components/DatePicker/DatePickerCard.vue.d.ts +0 -9
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type BarChartCategory } from './types';
|
|
2
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: {
|
|
3
|
+
categories: BarChartCategory<T>[];
|
|
4
|
+
data: T[];
|
|
5
|
+
labelAccessorKey: keyof T;
|
|
6
|
+
stacked?: boolean | undefined;
|
|
7
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {};
|
|
10
|
+
emit: {};
|
|
11
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
12
|
+
props: {
|
|
13
|
+
categories: BarChartCategory<T>[];
|
|
14
|
+
data: T[];
|
|
15
|
+
labelAccessorKey: keyof T;
|
|
16
|
+
stacked?: boolean | undefined;
|
|
17
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
18
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: {};
|
|
21
|
+
emit: {};
|
|
22
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}> & {
|
|
25
|
+
__ctx?: {
|
|
26
|
+
props: {
|
|
27
|
+
categories: BarChartCategory<T>[];
|
|
28
|
+
data: T[];
|
|
29
|
+
labelAccessorKey: keyof T;
|
|
30
|
+
stacked?: boolean | undefined;
|
|
31
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
32
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
33
|
+
attrs: any;
|
|
34
|
+
slots: {};
|
|
35
|
+
emit: {};
|
|
36
|
+
} | undefined;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: <T>(__VLS_props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
2
|
+
attrs: any;
|
|
3
|
+
slots: {};
|
|
4
|
+
emit: {};
|
|
5
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
6
|
+
props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
7
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}> & {
|
|
14
|
+
__ctx?: {
|
|
15
|
+
props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
16
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
17
|
+
attrs: any;
|
|
18
|
+
slots: {};
|
|
19
|
+
emit: {};
|
|
20
|
+
} | undefined;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_Prettify<T> = {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} & {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
declare const _default: <T>(__VLS_props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
3
|
+
attrs: any;
|
|
4
|
+
slots: {};
|
|
5
|
+
emit: {};
|
|
6
|
+
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
|
7
|
+
$tooltip: Ref<HTMLElement | undefined>;
|
|
8
|
+
}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
9
|
+
props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
10
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
11
|
+
$tooltip: Ref<HTMLElement | undefined>;
|
|
12
|
+
}>): void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: {};
|
|
15
|
+
emit: {};
|
|
16
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}> & {
|
|
19
|
+
__ctx?: {
|
|
20
|
+
props: {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
21
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
22
|
+
$tooltip: Ref<HTMLElement | undefined>;
|
|
23
|
+
}>): void;
|
|
24
|
+
attrs: any;
|
|
25
|
+
slots: {};
|
|
26
|
+
emit: {};
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_Prettify<T> = {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} & {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'ghost';
|
|
1
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'ghost' | 'outline';
|
|
2
2
|
export interface ButtonProps {
|
|
3
3
|
/** The button's content alignment. */
|
|
4
4
|
align?: 'left' | 'center' | 'right';
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
type CardHelp = {
|
|
1
|
+
type CardHelpProps = {
|
|
3
2
|
label: string;
|
|
4
3
|
href: string;
|
|
5
4
|
};
|
|
6
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
|
-
cardHelp?:
|
|
6
|
+
cardHelp?: CardHelpProps | null | undefined;
|
|
8
7
|
}>, {
|
|
9
8
|
cardHelp: null;
|
|
10
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
11
|
-
cardHelp?:
|
|
10
|
+
cardHelp?: CardHelpProps | null | undefined;
|
|
12
11
|
}>, {
|
|
13
12
|
cardHelp: null;
|
|
14
13
|
}>>>, {
|
|
15
|
-
cardHelp:
|
|
14
|
+
cardHelp: CardHelpProps | null;
|
|
16
15
|
}, {}>, {
|
|
17
16
|
default?(_: {}): any;
|
|
18
17
|
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CategoryBarCategory } from './types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
categories: CategoryBarCategory[];
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
|
+
categories: CategoryBarCategory[];
|
|
6
|
+
}>>>, {}, {}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToOption<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
|
+
label?: string | null | undefined;
|
|
3
|
+
}>, {
|
|
4
|
+
label: null;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
6
|
+
label?: string | null | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
label: null;
|
|
9
|
+
}>>>, {
|
|
10
|
+
label: string | null;
|
|
11
|
+
}, {}>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithDefaults<P, D> = {
|
|
16
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
17
|
+
default: D[K];
|
|
18
|
+
}> : P[K];
|
|
19
|
+
};
|
|
20
|
+
type __VLS_Prettify<T> = {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} & {};
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToOption<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
declare let __VLS_typeProps: {
|
|
2
|
+
/** Whether the input is disabled. */
|
|
3
|
+
disabled?: boolean;
|
|
2
4
|
/** The error to display below the input. */
|
|
3
5
|
error?: string | null;
|
|
4
6
|
/** The help text to display below the input. */
|
|
@@ -16,6 +18,7 @@ type __VLS_PublicProps = {
|
|
|
16
18
|
modelValue?: string;
|
|
17
19
|
} & typeof __VLS_typeProps;
|
|
18
20
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
21
|
+
disabled: boolean;
|
|
19
22
|
error: null;
|
|
20
23
|
helpText: null;
|
|
21
24
|
id: null;
|
|
@@ -23,6 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
23
26
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
27
|
"update:modelValue": (modelValue: string) => void;
|
|
25
28
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
29
|
+
disabled: boolean;
|
|
26
30
|
error: null;
|
|
27
31
|
helpText: null;
|
|
28
32
|
id: null;
|
|
@@ -32,6 +36,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
32
36
|
}, {
|
|
33
37
|
id: string | null;
|
|
34
38
|
error: string | null;
|
|
39
|
+
disabled: boolean;
|
|
35
40
|
labelHidden: boolean;
|
|
36
41
|
helpText: string | null;
|
|
37
42
|
}, {}>;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
|
-
sortable
|
|
2
|
+
sortable?: boolean | undefined;
|
|
3
3
|
}>, {
|
|
4
4
|
sortable: boolean;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
sort: (args_0: string[]) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
8
|
+
sortable?: boolean | undefined;
|
|
7
9
|
}>, {
|
|
8
10
|
sortable: boolean;
|
|
9
|
-
}
|
|
11
|
+
}>>> & {
|
|
12
|
+
onSort?: ((args_0: string[]) => any) | undefined;
|
|
13
|
+
}, {
|
|
10
14
|
sortable: boolean;
|
|
11
15
|
}, {}>, {
|
|
12
16
|
default?(_: {}): any;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
id?: string | undefined;
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
}>>>, {}, {}>, {
|
|
2
6
|
default?(_: {}): any;
|
|
3
7
|
}>;
|
|
4
8
|
export default _default;
|
|
@@ -7,3 +11,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
7
11
|
$slots: S;
|
|
8
12
|
};
|
|
9
13
|
};
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToOption<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1,29 +1,12 @@
|
|
|
1
|
-
declare let __VLS_typeProps: {
|
|
2
|
-
locale?: string;
|
|
3
|
-
};
|
|
4
1
|
type __VLS_PublicProps = {
|
|
5
2
|
modelValue: string;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<
|
|
8
|
-
locale: string;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
5
|
"update:modelValue": (modelValue: string) => void;
|
|
11
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
12
|
-
locale: string;
|
|
13
|
-
}>>> & {
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
14
7
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
locale: string;
|
|
17
|
-
}, {}>;
|
|
8
|
+
}, {}, {}>;
|
|
18
9
|
export default _default;
|
|
19
|
-
type __VLS_WithDefaults<P, D> = {
|
|
20
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
21
|
-
default: D[K];
|
|
22
|
-
}> : P[K];
|
|
23
|
-
};
|
|
24
|
-
type __VLS_Prettify<T> = {
|
|
25
|
-
[K in keyof T]: T[K];
|
|
26
|
-
} & {};
|
|
27
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
11
|
type __VLS_TypePropsToOption<T> = {
|
|
29
12
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -28,6 +28,8 @@ declare let __VLS_typeProps: {
|
|
|
28
28
|
required?: boolean;
|
|
29
29
|
/** The type of the input. */
|
|
30
30
|
type?: 'text' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'currency';
|
|
31
|
+
/** The maximum number of characters allowed in the input. */
|
|
32
|
+
maxLength?: number | null;
|
|
31
33
|
};
|
|
32
34
|
type __VLS_PublicProps = {
|
|
33
35
|
modelValue?: string;
|
|
@@ -45,6 +47,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
45
47
|
readonly: boolean;
|
|
46
48
|
required: boolean;
|
|
47
49
|
type: string;
|
|
50
|
+
maxLength: null;
|
|
48
51
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
52
|
"update:modelValue": (modelValue: string) => void;
|
|
50
53
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
@@ -60,10 +63,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
60
63
|
readonly: boolean;
|
|
61
64
|
required: boolean;
|
|
62
65
|
type: string;
|
|
66
|
+
maxLength: null;
|
|
63
67
|
}>>> & {
|
|
64
68
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
65
69
|
}, {
|
|
66
|
-
type: "number" | "search" | "time" | "text" | "date" | "datetime-local" | "email" | "
|
|
70
|
+
type: "number" | "search" | "time" | "text" | "month" | "date" | "datetime-local" | "email" | "password" | "tel" | "url" | "week" | "currency";
|
|
67
71
|
readonly: boolean;
|
|
68
72
|
id: string | null;
|
|
69
73
|
error: string | null;
|
|
@@ -72,9 +76,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
72
76
|
icon: string | FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
|
|
73
77
|
labelHidden: boolean;
|
|
74
78
|
helpText: string | null;
|
|
75
|
-
placeholder: string | null;
|
|
76
79
|
autoComplete: string | null;
|
|
77
80
|
multiline: boolean;
|
|
81
|
+
placeholder: string | null;
|
|
82
|
+
maxLength: number | null;
|
|
78
83
|
}, {}>;
|
|
79
84
|
export default _default;
|
|
80
85
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -5,15 +5,17 @@ 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 { type BarChartCategory, BarChart } from './BarChart';
|
|
8
9
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from './Breadcrumbs';
|
|
9
10
|
export { type ButtonVariant, Button, ButtonBadge, ButtonContent, ButtonIcon, } from './Button';
|
|
10
11
|
export { ButtonGroup } from './ButtonGroup';
|
|
11
12
|
export { Card, CardDescription, CardFooter, CardHeader, CardHelp, CardIcon, CardLayout, CardMedia, CardSection, CardTitle, } from './Card';
|
|
12
|
-
export {
|
|
13
|
+
export { type CategoryBarCategory, CategoryBar } from './CategoryBar';
|
|
14
|
+
export { Checkbox, CheckboxGroup } from './Checkbox';
|
|
13
15
|
export { Collapsible } from './Collapsible';
|
|
14
16
|
export { ColorInput } from './ColorInput';
|
|
15
17
|
export { DataList, DataListContent, DataListItem, DataListItemLine, } from './DataList';
|
|
16
|
-
export { DatePicker,
|
|
18
|
+
export { DatePicker, } from './DatePicker';
|
|
17
19
|
export { DescriptionList, DescriptionListDescription, DescriptionListItem, DescriptionListTerm, } from './DescriptionList';
|
|
18
20
|
export { Dialog, DialogCancelButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogIcon, DialogSection, DialogTitle, } from './Dialog';
|
|
19
21
|
export { DropZone } from './DropZone';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { type TailwindColor, useTailwindColor } from './useTailwindColor';
|
|
2
|
+
export { useCalendar } from './useCalendar';
|
|
3
|
+
export { useDateFormatter } from './useDateFormatter';
|
|
2
4
|
export { useTheme } from './useTheme';
|
|
3
5
|
export { useToastNotifications } from './useToastNotifications';
|
|
4
6
|
export { useUniqueId } from './useUniqueId';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type CalendarDate = {
|
|
3
|
+
day: number;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
inCurrentMonth: boolean;
|
|
6
|
+
value: string;
|
|
7
|
+
isToday: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function useCalendar(locale: Ref<string>, dateString: Ref<string>): {
|
|
10
|
+
displayDate: import("vue").ComputedRef<string>;
|
|
11
|
+
grid: import("vue").ComputedRef<CalendarDate[]>;
|
|
12
|
+
monthName: import("vue").ComputedRef<string>;
|
|
13
|
+
next: () => void;
|
|
14
|
+
previous: () => void;
|
|
15
|
+
weekDays: import("vue").ComputedRef<string[]>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { DateValue } from '@internationalized/date';
|
|
3
|
+
export interface DateFormatterOptions extends Intl.DateTimeFormatOptions {
|
|
4
|
+
calendar?: string;
|
|
5
|
+
}
|
|
6
|
+
export type Formatter = {
|
|
7
|
+
format: (date: DateValue, options: Intl.DateTimeFormatOptions) => string;
|
|
8
|
+
dayOfWeek: (date: Date, length?: DateFormatterOptions['weekday']) => string;
|
|
9
|
+
fullMonthAndYear: (date: DateValue, options?: DateFormatterOptions) => string;
|
|
10
|
+
};
|
|
11
|
+
export declare function useDateFormatter(locale: Ref<string>): Formatter;
|