@wisemen/vue-core-components 1.3.0 → 1.4.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.
- package/dist/{AlertCircleIcon-B3d-CXUl.js → AlertCircleIcon-Duy-YAaz.js} +1 -1
- package/dist/{ArrowDownIcon-BEFV2gBy.js → ArrowDownIcon-CBqD-ATH.js} +1 -1
- package/dist/{ArrowLeftIcon-BUfGaRGE.js → ArrowLeftIcon-LilWH7zD.js} +1 -1
- package/dist/{ArrowRightIcon-DCZJpxrp.js → ArrowRightIcon-BW7jNwDM.js} +1 -1
- package/dist/{ArrowUpIcon-BO_2dPlE.js → ArrowUpIcon-C9QAU1eL.js} +1 -1
- package/dist/{CalendarIcon-D-ESDpv5.js → CalendarIcon-BnaryxEe.js} +1 -1
- package/dist/{CheckCircleIcon-CsEUfOQY.js → CheckCircleIcon-i6qfMCwV.js} +1 -1
- package/dist/{CheckIcon-B9vyutJQ.js → CheckIcon-KVWVu-mw.js} +1 -1
- package/dist/{ChevronLeftDoubleIcon-BfI5koax.js → ChevronLeftDoubleIcon-DsnaKLT1.js} +1 -1
- package/dist/{ChevronLeftIcon-CHlLCOSs.js → ChevronLeftIcon-Box6BbFT.js} +1 -1
- package/dist/{ChevronRightDoubleIcon-CeWN33JQ.js → ChevronRightDoubleIcon-C-4NzWtx.js} +1 -1
- package/dist/{ChevronRightIcon-BwpcvIev.js → ChevronRightIcon-Dm0kif48.js} +1 -1
- package/dist/{CloseIcon-DZsSXl1P.js → CloseIcon-2gXLYTLG.js} +1 -1
- package/dist/{EyeIcon-cR6b22LR.js → EyeIcon-BOSosMdL.js} +1 -1
- package/dist/{EyeOffIcon-DTYD7SQ_.js → EyeOffIcon-Cy-jd2S4.js} +1 -1
- package/dist/{InfoCircleIcon-COWXV4q0.js → InfoCircleIcon-D_lBWIvH.js} +1 -1
- package/dist/{MinusIcon-FShUNBG1.js → MinusIcon-DibrVeA0.js} +1 -1
- package/dist/{PlusIcon-DIGSFATw.js → PlusIcon-CPaS6BcY.js} +1 -1
- package/dist/{SearchIcon-CpBI2Qr3.js → SearchIcon-BbaxZhZ3.js} +1 -1
- package/dist/{SelectIconRight-BOybCSHX.js → SelectIconRight-CpHMAMSc.js} +1 -1
- package/dist/{StarsIcon-ks2XfKLG.js → StarsIcon-FCc9vQkR.js} +1 -1
- package/dist/{SwitchVerticalIcon-Djmf8zA3.js → SwitchVerticalIcon-bPVIUTkW.js} +1 -1
- package/dist/{TranslateIcon-yQgLQSq0.js → TranslateIcon-CMfmDqWP.js} +1 -1
- package/dist/class-variant/classVariant.type.d.ts +20 -3
- package/dist/components/badge/Badge.d.ts +24 -0
- package/dist/components/badge/badge.context.d.ts +12 -0
- package/dist/components/badge/badge.emits.d.ts +3 -0
- package/dist/components/badge/badge.props.d.ts +28 -0
- package/dist/components/badge/badge.style.d.ts +115 -0
- package/dist/components/badge/index.d.ts +5 -0
- package/dist/components/badge/parts/BadgeIcon.d.ts +2 -0
- package/dist/components/badge/parts/BadgeRemoveButton.d.ts +2 -0
- package/dist/components/badge/parts/BadgeRoot.d.ts +29 -0
- package/dist/components/button/default-button/parts/ButtonRoot.d.ts +1 -1
- package/dist/components/button/icon-button/parts/IconButtonRoot.d.ts +7 -3
- package/dist/components/button/router-link-button/parts/RouterLinkButtonRoot.d.ts +1 -1
- package/dist/components/date-picker/index.d.ts +6 -0
- package/dist/components/date-picker/range/DateRangePicker.d.ts +32 -0
- package/dist/components/date-picker/range/dateRangePicker.context.d.ts +14 -0
- package/dist/components/date-picker/range/dateRangePicker.props.d.ts +6 -1
- package/dist/components/date-picker/range/dateRangePicker.style.d.ts +62 -0
- package/dist/components/date-picker/range/parts/DateRangePickerDate.d.ts +19 -0
- package/dist/components/date-picker/range/parts/DateRangePickerGrid.d.ts +25 -0
- package/dist/components/date-picker/range/parts/DateRangePickerHeader.d.ts +7 -0
- package/dist/components/date-picker/range/parts/DateRangePickerRoot.d.ts +47 -0
- package/dist/components/date-picker/shared/datePicker.util.d.ts +1 -0
- package/dist/components/date-picker/shared/sharedDatePicker.style.d.ts +15 -0
- package/dist/components/date-picker/single/datePicker.style.d.ts +20 -0
- package/dist/components/date-range-field/DateRangeField.d.ts +31 -0
- package/dist/components/date-range-field/dateRangeField.context.d.ts +15 -0
- package/dist/components/date-range-field/dateRangeField.emits.d.ts +4 -0
- package/dist/components/date-range-field/dateRangeField.props.d.ts +37 -0
- package/dist/components/date-range-field/dateRangeField.slots.d.ts +11 -0
- package/dist/components/date-range-field/dateRangeField.style.d.ts +34 -0
- package/dist/components/date-range-field/dateRangeField.type.d.ts +25 -0
- package/dist/components/date-range-field/index.d.ts +7 -0
- package/dist/components/date-range-field/parts/DateRangeFieldIconLeft.d.ts +2 -0
- package/dist/components/date-range-field/parts/DateRangeFieldInput.d.ts +6 -0
- package/dist/components/date-range-field/parts/DateRangeFieldLoader.d.ts +17 -0
- package/dist/components/date-range-field/parts/DateRangeFieldRoot.d.ts +65 -0
- package/dist/components/date-range-field/parts/DateRangefieldPopover.d.ts +2 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/{index-DzOo1t21.js → index-CRS8_i6z.js} +14819 -12912
- package/dist/index.d.ts +2 -0
- package/dist/index.js +157 -141
- package/dist/index.umd +18 -18
- package/dist/style.css +1 -1
- package/dist/types/dateRange.type.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { VariantProps } from 'tailwind-variants';
|
|
2
2
|
import { createAvatarStyle } from '../components/avatar/avatar.style';
|
|
3
|
+
import { createBadgeStyle } from '../components/badge/badge.style';
|
|
3
4
|
import { createButtonStyle } from '../components/button/default-button/button.style';
|
|
4
5
|
import { createIconButtonStyle } from '../components/button/icon-button/iconButton.style';
|
|
5
6
|
import { createRouterLinkButtonStyle } from '../components/button/router-link-button/routerLinkButton.style';
|
|
6
7
|
import { createCheckboxStyle } from '../components/checkbox/checkbox.style';
|
|
7
8
|
import { createDateFieldStyle } from '../components/date-field/dateField.style';
|
|
9
|
+
import { createDateRangePickerStyle } from '../components/date-picker/range/dateRangePicker.style';
|
|
8
10
|
import { createDatePickerStyle } from '../components/date-picker/single/datePicker.style';
|
|
11
|
+
import { createDateRangeFieldStyle } from '../components/date-range-field/dateRangeField.style';
|
|
9
12
|
import { createDialogStyle } from '../components/dialog/dialog.style';
|
|
10
13
|
import { createDropdownMenuStyle } from '../components/dropdown-menu/dropdownMenu.style';
|
|
11
14
|
import { createFormFieldStyle } from '../components/form-field/formField.style';
|
|
@@ -28,6 +31,12 @@ export interface ComponentMap {
|
|
|
28
31
|
style: typeof createAvatarStyle;
|
|
29
32
|
children: {};
|
|
30
33
|
};
|
|
34
|
+
badge: {
|
|
35
|
+
style: typeof createBadgeStyle;
|
|
36
|
+
children: {
|
|
37
|
+
removeButton: 'iconButton';
|
|
38
|
+
};
|
|
39
|
+
};
|
|
31
40
|
button: {
|
|
32
41
|
style: typeof createButtonStyle;
|
|
33
42
|
children: {};
|
|
@@ -46,6 +55,16 @@ export interface ComponentMap {
|
|
|
46
55
|
style: typeof createDatePickerStyle;
|
|
47
56
|
children: {};
|
|
48
57
|
};
|
|
58
|
+
dateRangeField: {
|
|
59
|
+
style: typeof createDateRangeFieldStyle;
|
|
60
|
+
children: {
|
|
61
|
+
datePicker: 'dateRangePicker';
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
dateRangePicker: {
|
|
65
|
+
style: typeof createDateRangePickerStyle;
|
|
66
|
+
children: {};
|
|
67
|
+
};
|
|
49
68
|
dialog: {
|
|
50
69
|
style: typeof createDialogStyle;
|
|
51
70
|
children: {
|
|
@@ -62,9 +81,7 @@ export interface ComponentMap {
|
|
|
62
81
|
};
|
|
63
82
|
iconButton: {
|
|
64
83
|
style: typeof createIconButtonStyle;
|
|
65
|
-
children: {
|
|
66
|
-
avatar: 'avatar';
|
|
67
|
-
};
|
|
84
|
+
children: {};
|
|
68
85
|
};
|
|
69
86
|
keyboardKey: {
|
|
70
87
|
style: typeof createKeyboardKeyStyle;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BadgeProps } from './badge.props';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
left?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
right?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
remove: () => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<BadgeProps> & Readonly<{
|
|
16
|
+
onRemove?: (() => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { ResolvedClassConfig } from '../../class-variant/classVariant.type';
|
|
3
|
+
import { BadgeProps } from './badge.props';
|
|
4
|
+
import { CreateBadgeStyle } from './badge.style';
|
|
5
|
+
import { PropsToComputed } from '../../utils/props.util';
|
|
6
|
+
interface BadgeContext extends PropsToComputed<BadgeProps> {
|
|
7
|
+
customClassConfig: ComputedRef<ResolvedClassConfig<'badge'>>;
|
|
8
|
+
style: ComputedRef<CreateBadgeStyle>;
|
|
9
|
+
onRemove: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useProvideBadgeContext: (context: BadgeContext) => BadgeContext, useInjectBadgeContext: <TFallback extends BadgeContext | null = BadgeContext>(fallback?: TFallback | undefined) => TFallback extends null ? BadgeContext | null : BadgeContext;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CustomizableElement, GetComponentProp } from '../../class-variant/classVariant.type';
|
|
2
|
+
import { Icon } from '../../icons/icons';
|
|
3
|
+
import { TestId } from '../../utils/props.util';
|
|
4
|
+
export interface BadgeProps extends TestId, CustomizableElement<'badge'> {
|
|
5
|
+
/**
|
|
6
|
+
* If true, a button will be visible to remove the badge.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
isRemovable?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The color of the badge.
|
|
12
|
+
*/
|
|
13
|
+
color: GetComponentProp<'badge', 'color'>;
|
|
14
|
+
/**
|
|
15
|
+
* An icon to be displayed in the left side of badge.
|
|
16
|
+
* @default null
|
|
17
|
+
*/
|
|
18
|
+
icon?: Icon | null;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the badge.
|
|
21
|
+
* @default 'md'
|
|
22
|
+
*/
|
|
23
|
+
size?: GetComponentProp<'badge', 'size'>;
|
|
24
|
+
/**
|
|
25
|
+
* The visual style of the badge.
|
|
26
|
+
*/
|
|
27
|
+
variant: GetComponentProp<'badge', 'variant'>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const createBadgeStyle: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
outline: {};
|
|
5
|
+
solid: {};
|
|
6
|
+
translucent: {};
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
brand: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
error: {
|
|
13
|
+
root: string;
|
|
14
|
+
};
|
|
15
|
+
gray: {
|
|
16
|
+
root: string;
|
|
17
|
+
};
|
|
18
|
+
success: {
|
|
19
|
+
root: string;
|
|
20
|
+
};
|
|
21
|
+
warning: {
|
|
22
|
+
root: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
lg: {
|
|
27
|
+
root: string;
|
|
28
|
+
};
|
|
29
|
+
md: {
|
|
30
|
+
root: string;
|
|
31
|
+
};
|
|
32
|
+
sm: {
|
|
33
|
+
root: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
icon: string;
|
|
38
|
+
root: string;
|
|
39
|
+
}, undefined, {
|
|
40
|
+
variant: {
|
|
41
|
+
outline: {};
|
|
42
|
+
solid: {};
|
|
43
|
+
translucent: {};
|
|
44
|
+
};
|
|
45
|
+
color: {
|
|
46
|
+
brand: {
|
|
47
|
+
root: string;
|
|
48
|
+
};
|
|
49
|
+
error: {
|
|
50
|
+
root: string;
|
|
51
|
+
};
|
|
52
|
+
gray: {
|
|
53
|
+
root: string;
|
|
54
|
+
};
|
|
55
|
+
success: {
|
|
56
|
+
root: string;
|
|
57
|
+
};
|
|
58
|
+
warning: {
|
|
59
|
+
root: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
size: {
|
|
63
|
+
lg: {
|
|
64
|
+
root: string;
|
|
65
|
+
};
|
|
66
|
+
md: {
|
|
67
|
+
root: string;
|
|
68
|
+
};
|
|
69
|
+
sm: {
|
|
70
|
+
root: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
icon: string;
|
|
75
|
+
root: string;
|
|
76
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
77
|
+
variant: {
|
|
78
|
+
outline: {};
|
|
79
|
+
solid: {};
|
|
80
|
+
translucent: {};
|
|
81
|
+
};
|
|
82
|
+
color: {
|
|
83
|
+
brand: {
|
|
84
|
+
root: string;
|
|
85
|
+
};
|
|
86
|
+
error: {
|
|
87
|
+
root: string;
|
|
88
|
+
};
|
|
89
|
+
gray: {
|
|
90
|
+
root: string;
|
|
91
|
+
};
|
|
92
|
+
success: {
|
|
93
|
+
root: string;
|
|
94
|
+
};
|
|
95
|
+
warning: {
|
|
96
|
+
root: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
size: {
|
|
100
|
+
lg: {
|
|
101
|
+
root: string;
|
|
102
|
+
};
|
|
103
|
+
md: {
|
|
104
|
+
root: string;
|
|
105
|
+
};
|
|
106
|
+
sm: {
|
|
107
|
+
root: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
icon: string;
|
|
112
|
+
root: string;
|
|
113
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
114
|
+
export type BadgeStyle = VariantProps<typeof createBadgeStyle>;
|
|
115
|
+
export type CreateBadgeStyle = ReturnType<typeof createBadgeStyle>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { BadgeProps as VcBadgeProps } from './badge.props';
|
|
2
|
+
export { default as VcBadge } from './Badge';
|
|
3
|
+
export { default as VcBadgeIcon } from './parts/BadgeIcon';
|
|
4
|
+
export { default as VcBadgeRemoveButton } from './parts/BadgeRemoveButton';
|
|
5
|
+
export { default as VcBadgeRoot } from './parts/BadgeRoot';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ResolvedClassConfig } from '../../../class-variant/classVariant.type';
|
|
2
|
+
import { BadgeProps } from '../badge.props';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
|
+
remove: () => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<BadgeProps> & Readonly<{
|
|
15
|
+
onRemove?: (() => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
icon: import('../../..').Icon | null;
|
|
18
|
+
size: "lg" | "md" | "sm";
|
|
19
|
+
testId: string | null;
|
|
20
|
+
classConfig: ResolvedClassConfig<"badge"> | null;
|
|
21
|
+
isRemovable: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -18,7 +18,7 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
|
|
|
18
18
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
variant: "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "primary" | "secondary" | "tertiary";
|
|
21
|
-
size: "
|
|
21
|
+
size: "lg" | "md" | "sm" | "2xl" | "xl";
|
|
22
22
|
iconLeft: import('../../../..').Icon | null;
|
|
23
23
|
iconRight: import('../../../..').Icon | null;
|
|
24
24
|
isLoading: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ResolvedClassConfig } from '../../../../class-variant/classVariant.type';
|
|
2
1
|
import { IconButtonProps } from '../iconButton.props';
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
3
|
attrs: Partial<{}>;
|
|
@@ -19,11 +18,16 @@ declare const __VLS_component: import('vue').DefineComponent<IconButtonProps, {}
|
|
|
19
18
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
20
19
|
}>, {
|
|
21
20
|
variant: "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "primary" | "secondary" | "tertiary";
|
|
22
|
-
size: "
|
|
21
|
+
size: "lg" | "md" | "sm" | "2xl" | "xl";
|
|
23
22
|
isLoading: boolean;
|
|
24
23
|
testId: string | null;
|
|
25
24
|
isDisabled: boolean;
|
|
26
|
-
classConfig:
|
|
25
|
+
classConfig: {
|
|
26
|
+
root?: string | undefined;
|
|
27
|
+
contentContainer?: string | undefined;
|
|
28
|
+
icon?: string | undefined;
|
|
29
|
+
loader?: string | undefined;
|
|
30
|
+
} | null;
|
|
27
31
|
type: "button" | "reset" | "submit";
|
|
28
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -10,7 +10,7 @@ declare function __VLS_template(): {
|
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<RouterLinkButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RouterLinkButtonProps> & Readonly<{}>, {
|
|
12
12
|
variant: "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "primary" | "secondary" | "tertiary";
|
|
13
|
-
size: "
|
|
13
|
+
size: "lg" | "md" | "sm" | "2xl" | "xl";
|
|
14
14
|
iconLeft: import('../../../..').Icon | null;
|
|
15
15
|
iconRight: import('../../../..').Icon | null;
|
|
16
16
|
testId: string | null;
|
|
@@ -4,3 +4,9 @@ export { default as VcDatePickerDate } from './single/parts/DatePickerDate';
|
|
|
4
4
|
export { default as VcDatePickerGrid } from './single/parts/DatePickerGrid';
|
|
5
5
|
export { default as VcDatePickerHeader } from './single/parts/DatePickerHeader';
|
|
6
6
|
export { default as VcDatePickerRoot } from './single/parts/DatePickerRoot';
|
|
7
|
+
export type { DateRangePickerProps as VcDateRangePickerProps } from './range/dateRangePicker.props';
|
|
8
|
+
export { default as VcDateRangePicker } from './range/DateRangePicker';
|
|
9
|
+
export { default as VcDateRangePickerDate } from './range/parts/DateRangePickerDate';
|
|
10
|
+
export { default as VcDateRangePickerGrid } from './range/parts/DateRangePickerGrid';
|
|
11
|
+
export { default as VcDateRangePickerHeader } from './range/parts/DateRangePickerHeader';
|
|
12
|
+
export { default as VcDateRangePickerRoot } from './range/parts/DateRangePickerRoot';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DateRangePickerProps } from './dateRangePicker.props';
|
|
2
|
+
import { DateRange } from '../../../types/dateRange.type';
|
|
3
|
+
type __VLS_Props = DateRangePickerProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue: DateRange;
|
|
6
|
+
'placeholderValue'?: Date;
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
date?(_: {
|
|
12
|
+
date: Date;
|
|
13
|
+
}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: DateRange) => any;
|
|
21
|
+
"update:placeholderValue": (value: Date) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: DateRange) => any) | undefined;
|
|
24
|
+
"onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { ResolvedClassConfig } from '../../../class-variant/classVariant.type';
|
|
3
|
+
import { DateRangePickerProps } from './dateRangePicker.props';
|
|
4
|
+
import { CreateDateRangePickerStyle } from './dateRangePicker.style';
|
|
5
|
+
import { DateRange } from '../../../types/dateRange.type';
|
|
6
|
+
import { PropsToComputed } from '../../../utils/props.util';
|
|
7
|
+
interface DateRangePickerContext extends PropsToComputed<DateRangePickerProps> {
|
|
8
|
+
customClassConfig: ComputedRef<ResolvedClassConfig<'dateRangePicker'>>;
|
|
9
|
+
modelValue: Ref<DateRange>;
|
|
10
|
+
placeholderValue: Ref<Date>;
|
|
11
|
+
style: ComputedRef<CreateDateRangePickerStyle>;
|
|
12
|
+
}
|
|
13
|
+
export declare const useProvideDateRangePickerContext: (context: DateRangePickerContext) => DateRangePickerContext, useInjectDateRangePickerContext: <TFallback extends DateRangePickerContext | null = DateRangePickerContext>(fallback?: TFallback | undefined) => TFallback extends null ? DateRangePickerContext | null : DateRangePickerContext;
|
|
14
|
+
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { CustomizableElement, GetComponentProp } from '../../../class-variant/classVariant.type';
|
|
1
2
|
import { SharedDatePickerProps } from '../shared/sharedDatePicker.props';
|
|
2
|
-
export interface DateRangePickerProps extends SharedDatePickerProps {
|
|
3
|
+
export interface DateRangePickerProps extends SharedDatePickerProps, CustomizableElement<'dateRangePicker'> {
|
|
3
4
|
/**
|
|
4
5
|
* When combined with isDateUnavailable, determines whether non-contiguous ranges,
|
|
5
6
|
* i.e. ranges containing unavailable dates, may be selected.
|
|
6
7
|
* @default false
|
|
7
8
|
*/
|
|
8
9
|
allowNonContinuousSelection?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The visual style of the date range picker.
|
|
12
|
+
*/
|
|
13
|
+
variant?: GetComponentProp<'dateRangePicker', 'variant'> | null;
|
|
9
14
|
}
|