@kazee-ds/vue 0.5.5 → 0.7.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/README.md +3 -1
- package/dist/index.js +9057 -4740
- package/dist/index.js.map +1 -1
- package/dist/types/Alert.vue.d.ts +3 -2
- package/dist/types/Avatar.vue.d.ts +31 -0
- package/dist/types/AvatarBadge.vue.d.ts +24 -0
- package/dist/types/AvatarFallback.vue.d.ts +22 -0
- package/dist/types/AvatarGroup.d.ts +79 -0
- package/dist/types/AvatarGroupCount.vue.d.ts +20 -0
- package/dist/types/AvatarImage.vue.d.ts +30 -0
- package/dist/types/Badge.vue.d.ts +20 -8
- package/dist/types/BadgeAnchor.vue.d.ts +19 -0
- package/dist/types/Breadcrumb.vue.d.ts +2 -1
- package/dist/types/Button.vue.d.ts +4 -3
- package/dist/types/ButtonGroup.d.ts +11 -2
- package/dist/types/Calendar.vue.d.ts +47 -0
- package/dist/types/Card.vue.d.ts +11 -2
- package/dist/types/CardAction.vue.d.ts +15 -0
- package/dist/types/CardFooter.vue.d.ts +20 -0
- package/dist/types/CardHeader.vue.d.ts +22 -0
- package/dist/types/CardRoot.vue.d.ts +23 -0
- package/dist/types/CardTitle.vue.d.ts +21 -0
- package/dist/types/Chart.vue.d.ts +2 -1
- package/dist/types/Checkbox.vue.d.ts +5 -4
- package/dist/types/CheckboxIndicator.vue.d.ts +14 -0
- package/dist/types/Combobox.vue.d.ts +2 -1
- package/dist/types/CompositionListBox.vue.d.ts +32 -0
- package/dist/types/CompositionListBoxItem.vue.d.ts +23 -0
- package/dist/types/CompositionListBoxItemIndicator.vue.d.ts +15 -0
- package/dist/types/CompositionListBoxSection.vue.d.ts +15 -0
- package/dist/types/DataTable.vue.d.ts +3 -2
- package/dist/types/DataTableRoot.vue.d.ts +26 -0
- package/dist/types/DataTableSortButton.vue.d.ts +18 -0
- package/dist/types/DateRangePanel.vue.d.ts +4 -3
- package/dist/types/DateRangePicker.vue.d.ts +17 -13
- package/dist/types/Description.vue.d.ts +16 -0
- package/dist/types/Dialog.vue.d.ts +6 -5
- package/dist/types/DropdownMenu.vue.d.ts +9 -6
- package/dist/types/DropdownMenuBranch.vue.d.ts +2 -1
- package/dist/types/Empty.vue.d.ts +2 -1
- package/dist/types/Field.vue.d.ts +4 -3
- package/dist/types/FieldError.vue.d.ts +16 -0
- package/dist/types/FieldFeedback.vue.d.ts +2 -1
- package/dist/types/Form.vue.d.ts +4 -3
- package/dist/types/Input.vue.d.ts +13 -8
- package/dist/types/InputClearButton.vue.d.ts +13 -0
- package/dist/types/InputControl.vue.d.ts +40 -0
- package/dist/types/InputLabel.vue.d.ts +13 -0
- package/dist/types/InputRoot.vue.d.ts +43 -0
- package/dist/types/Label.vue.d.ts +2 -1
- package/dist/types/Listbox.vue.d.ts +5 -4
- package/dist/types/MenuItemContent.vue.d.ts +2 -1
- package/dist/types/MonthYearNavigation.vue.d.ts +23 -0
- package/dist/types/NumberField.vue.d.ts +6 -5
- package/dist/types/Pagination.vue.d.ts +2 -1
- package/dist/types/Popover.vue.d.ts +2 -1
- package/dist/types/RadioGroup.vue.d.ts +5 -4
- package/dist/types/Select.vue.d.ts +5 -4
- package/dist/types/SelectClearButton.vue.d.ts +15 -0
- package/dist/types/SelectGroup.d.ts +11 -2
- package/dist/types/SelectPopover.vue.d.ts +13 -0
- package/dist/types/SelectRoot.vue.d.ts +50 -0
- package/dist/types/SelectTrigger.vue.d.ts +13 -0
- package/dist/types/SelectValue.vue.d.ts +19 -0
- package/dist/types/SelectionValidation.vue.d.ts +2 -2
- package/dist/types/Separator.vue.d.ts +2 -1
- package/dist/types/Sidebar.vue.d.ts +2 -1
- package/dist/types/SidebarNavigation.vue.d.ts +13 -0
- package/dist/types/SidebarRoot.vue.d.ts +26 -0
- package/dist/types/SidebarToggle.vue.d.ts +15 -0
- package/dist/types/Skeleton.vue.d.ts +2 -1
- package/dist/types/Spinner.vue.d.ts +2 -1
- package/dist/types/Switch.vue.d.ts +27 -5
- package/dist/types/SwitchGroup.vue.d.ts +21 -0
- package/dist/types/SwitchRoot.vue.d.ts +37 -0
- package/dist/types/Table.vue.d.ts +2 -1
- package/dist/types/Tabs.vue.d.ts +7 -4
- package/dist/types/TabsListView.vue.d.ts +2 -1
- package/dist/types/TabsRoot.vue.d.ts +32 -0
- package/dist/types/TemporalField.vue.d.ts +20 -0
- package/dist/types/TemporalPanel.vue.d.ts +3 -0
- package/dist/types/TemporalPicker.vue.d.ts +52 -0
- package/dist/types/TemporalRangeField.vue.d.ts +21 -0
- package/dist/types/Textarea.vue.d.ts +6 -5
- package/dist/types/TextareaControl.vue.d.ts +13 -0
- package/dist/types/TimeControls.vue.d.ts +20 -0
- package/dist/types/Toast.vue.d.ts +4 -2
- package/dist/types/ToastActionButton.vue.d.ts +16 -0
- package/dist/types/ToastCloseButton.vue.d.ts +13 -0
- package/dist/types/ToastProvider.vue.d.ts +7 -2
- package/dist/types/ToggleButton.vue.d.ts +4 -3
- package/dist/types/ToggleButtonGroup.vue.d.ts +4 -2
- package/dist/types/ToggleGroup.vue.d.ts +3 -2
- package/dist/types/Tooltip.vue.d.ts +2 -1
- package/dist/types/avatar-context.d.ts +19 -0
- package/dist/types/button-family-context.d.ts +1 -0
- package/dist/types/card-context.d.ts +2 -0
- package/dist/types/card-types.d.ts +12 -0
- package/dist/types/composition-factory.d.ts +20 -0
- package/dist/types/composition.d.ts +575 -0
- package/dist/types/data-table-composition-context.d.ts +8 -0
- package/dist/types/date-range-model.d.ts +3 -1
- package/dist/types/feedback-context.d.ts +8 -0
- package/dist/types/index.d.ts +336 -30
- package/dist/types/input-composition-context.d.ts +15 -0
- package/dist/types/select-composition-context.d.ts +18 -0
- package/dist/types/sidebar-composition-context.d.ts +7 -0
- package/dist/types/styling.d.ts +5 -0
- package/dist/types/switch-context.d.ts +9 -0
- package/dist/types/temporal-components.d.ts +855 -0
- package/dist/types/temporal-context.d.ts +32 -0
- package/dist/types/temporal-model.d.ts +44 -0
- package/dist/types/temporal-parts.d.ts +53 -0
- package/dist/types/temporal-types.d.ts +56 -0
- package/dist/types/toast-composition-context.d.ts +9 -0
- package/dist/types/toggle-group-model.d.ts +1 -1
- package/dist/types/types.d.ts +6 -6
- package/dist/types/visual.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_7: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_7) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TemporalFieldOptions } from './temporal-types.js';
|
|
2
|
+
type __VLS_Props = TemporalFieldOptions & {
|
|
3
|
+
presentation?: 'list' | 'clock';
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
change: (value: string) => any;
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onChange?: ((value: string) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
locale: string;
|
|
13
|
+
granularity: "hour" | "minute" | "second";
|
|
14
|
+
modelValue: string | null;
|
|
15
|
+
defaultValue: string | null;
|
|
16
|
+
presentation: "list" | "clock";
|
|
17
|
+
hourCycle: 12 | 24;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
1
2
|
import type { ToastEntry, ToastManager, ToastPlacement } from './toast-model.js';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
+
type __VLS_Props = StylingProps<'action' | 'actions' | 'body' | 'close' | 'description' | 'indicator' | 'progress' | 'root' | 'title'> & {
|
|
3
4
|
entry: ToastEntry;
|
|
5
|
+
composed?: boolean;
|
|
4
6
|
manager?: ToastManager;
|
|
5
7
|
placement?: ToastPlacement;
|
|
6
8
|
closeLabel?: string;
|
|
@@ -20,8 +22,8 @@ type __VLS_Slots = {
|
|
|
20
22
|
};
|
|
21
23
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
24
|
dir: "ltr" | "rtl";
|
|
23
|
-
closeLabel: string;
|
|
24
25
|
placement: ToastPlacement;
|
|
26
|
+
closeLabel: string;
|
|
25
27
|
showCloseButton: boolean;
|
|
26
28
|
manager: ToastManager;
|
|
27
29
|
showProgress: boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
cancel?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_9: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_9) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_9: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_9) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
1
2
|
import { type ToastEntry, type ToastManager, type ToastPlacement } from './toast-model.js';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
+
type __VLS_Props = StylingProps<'action' | 'actions' | 'body' | 'close' | 'description' | 'indicator' | 'progress' | 'root' | 'title' | 'toast' | 'viewport'> & {
|
|
3
4
|
manager?: ToastManager;
|
|
4
5
|
placement?: ToastPlacement;
|
|
5
6
|
label?: string;
|
|
@@ -14,6 +15,10 @@ type __VLS_Slots = {
|
|
|
14
15
|
default?: (props: {
|
|
15
16
|
toast: ToastManager;
|
|
16
17
|
}) => unknown;
|
|
18
|
+
item?: (props: {
|
|
19
|
+
entry: ToastEntry;
|
|
20
|
+
dismiss: () => void;
|
|
21
|
+
}) => unknown;
|
|
17
22
|
toast?: (props: {
|
|
18
23
|
entry: ToastEntry;
|
|
19
24
|
dismiss: () => void;
|
|
@@ -25,8 +30,8 @@ type __VLS_Slots = {
|
|
|
25
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
31
|
label: string;
|
|
27
32
|
dir: "ltr" | "rtl";
|
|
28
|
-
closeLabel: string;
|
|
29
33
|
placement: ToastPlacement;
|
|
34
|
+
closeLabel: string;
|
|
30
35
|
showCloseButton: boolean;
|
|
31
36
|
manager: ToastManager;
|
|
32
37
|
showProgress: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
1
2
|
import type { ButtonSize } from './types.js';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
+
type __VLS_Props = StylingProps<'root'> & {
|
|
3
4
|
id?: string;
|
|
4
|
-
variant?: 'default' | 'ghost';
|
|
5
|
+
variant?: 'default' | 'ghost' | 'chip';
|
|
5
6
|
size?: ButtonSize;
|
|
6
7
|
iconOnly?: boolean;
|
|
7
8
|
modelValue?: boolean;
|
|
@@ -22,8 +23,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
22
23
|
"onUpdate:modelValue"?: ((selected: boolean) => any) | undefined;
|
|
23
24
|
}>, {
|
|
24
25
|
id: string;
|
|
25
|
-
variant: "ghost" | "default";
|
|
26
26
|
size: ButtonSize;
|
|
27
|
+
variant: "default" | "ghost" | "chip";
|
|
27
28
|
modelValue: boolean;
|
|
28
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
1
2
|
import type { ButtonSize } from './types.js';
|
|
2
3
|
declare const __VLS_export: <M extends "single" | "multiple" = "single">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(StylingProps<"root"> & {
|
|
4
5
|
label: string;
|
|
5
6
|
selectionMode?: M;
|
|
6
7
|
modelValue?: M extends "multiple" ? string[] : string | null;
|
|
@@ -9,10 +10,11 @@ declare const __VLS_export: <M extends "single" | "multiple" = "single">(__VLS_p
|
|
|
9
10
|
detached?: boolean;
|
|
10
11
|
fullWidth?: boolean;
|
|
11
12
|
size?: ButtonSize;
|
|
13
|
+
variant?: "default" | "ghost" | "chip";
|
|
12
14
|
orientation?: "horizontal" | "vertical";
|
|
13
15
|
dir?: "ltr" | "rtl";
|
|
14
16
|
disallowEmptySelection?: boolean;
|
|
15
|
-
} & {
|
|
17
|
+
}) & {
|
|
16
18
|
"onUpdate:modelValue"?: ((value: M extends "multiple" ? string[] : string | null) => any) | undefined;
|
|
17
19
|
}> & (typeof globalThis extends {
|
|
18
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
1
2
|
import { type ToggleGroupItem, type ToggleGroupVariant } from './toggle-group-model.js';
|
|
2
3
|
import type { ButtonSize } from './types.js';
|
|
3
4
|
declare const __VLS_export: <M extends "single" | "multiple" = "single">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(StylingProps<"root" | "item" | "icon"> & {
|
|
5
6
|
label: string;
|
|
6
7
|
items: ToggleGroupItem[];
|
|
7
8
|
selectionMode?: M;
|
|
@@ -14,7 +15,7 @@ declare const __VLS_export: <M extends "single" | "multiple" = "single">(__VLS_p
|
|
|
14
15
|
size?: ButtonSize;
|
|
15
16
|
orientation?: "horizontal" | "vertical";
|
|
16
17
|
dir?: "ltr" | "rtl";
|
|
17
|
-
} & {
|
|
18
|
+
}) & {
|
|
18
19
|
"onUpdate:modelValue"?: ((value: M extends "multiple" ? string[] : string | null) => any) | undefined;
|
|
19
20
|
}> & (typeof globalThis extends {
|
|
20
21
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type StylingProps } from './styling.js';
|
|
1
2
|
import type { ButtonVariant, ButtonSize } from './types.js';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
+
type __VLS_Props = StylingProps<'panel' | 'root' | 'trigger'> & {
|
|
3
4
|
triggerLabel: string;
|
|
4
5
|
text: string;
|
|
5
6
|
triggerIconOnly?: boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import type { AvatarVariant, ComponentSize, ImageLoadingStatus, Tone } from './visual.js';
|
|
3
|
+
export interface AvatarStyles {
|
|
4
|
+
root?: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
fallback?: string;
|
|
7
|
+
badge?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const avatarGroupKey: InjectionKey<{
|
|
10
|
+
size: Readonly<Ref<ComponentSize>>;
|
|
11
|
+
tone: Readonly<Ref<Tone>>;
|
|
12
|
+
variant: Readonly<Ref<AvatarVariant>>;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const avatarKey: InjectionKey<{
|
|
15
|
+
status: Ref<ImageLoadingStatus>;
|
|
16
|
+
size: Readonly<Ref<ComponentSize>>;
|
|
17
|
+
classNames: Readonly<Ref<AvatarStyles | undefined>>;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const badgeAnchorKey: InjectionKey<boolean>;
|
|
@@ -2,6 +2,7 @@ import type { ComputedRef, InjectionKey } from 'vue';
|
|
|
2
2
|
import type { ButtonSize } from './types.js';
|
|
3
3
|
export declare const toggleButtonGroupKey: InjectionKey<ComputedRef<{
|
|
4
4
|
size: ButtonSize;
|
|
5
|
+
variant?: 'default' | 'ghost' | 'chip';
|
|
5
6
|
radio: boolean;
|
|
6
7
|
selectedIds: string[];
|
|
7
8
|
disabled: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface CardInteractionProps extends /* @vue-ignore */ HTMLAttributes {
|
|
3
|
+
density?: 'default' | 'compact';
|
|
4
|
+
href?: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
rel?: string;
|
|
7
|
+
onPress?: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
actionLabel?: string;
|
|
10
|
+
actionLabelledBy?: string;
|
|
11
|
+
actionClassName?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Component, type VNodeChild, type HTMLAttributes, type AnchorHTMLAttributes, type TdHTMLAttributes } from 'vue';
|
|
2
|
+
/** Wrap a primitive without replacing its props, events, slots or exposed instance. */
|
|
3
|
+
export declare function styledPrimitive<T extends Component>(primitive: T, name: string, base: string, fallback?: () => VNodeChild, defaults?: Record<string, unknown>): T;
|
|
4
|
+
/** A content part; semantic tags and native attributes remain under consumer control. */
|
|
5
|
+
export interface ContentPart<Props> {
|
|
6
|
+
new (): {
|
|
7
|
+
$props: Props;
|
|
8
|
+
$slots: {
|
|
9
|
+
default?: () => VNodeChild;
|
|
10
|
+
};
|
|
11
|
+
$el: Element;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
type ContentAttributes<Tag extends string> = HTMLAttributes & {
|
|
15
|
+
as?: string;
|
|
16
|
+
} & (Tag extends 'a' ? Pick<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'download' | 'hreflang' | 'type'> : Tag extends 'th' | 'td' ? Pick<TdHTMLAttributes, 'colspan' | 'rowspan' | 'headers'> & {
|
|
17
|
+
scope?: 'row' | 'col' | 'rowgroup' | 'colgroup';
|
|
18
|
+
} : unknown);
|
|
19
|
+
export declare function contentPart<Tag extends string>(name: string, tag: Tag, base: string, defaults?: {}): ContentPart<ContentAttributes<Tag>>;
|
|
20
|
+
export {};
|