@byyuurin/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.
- package/LICENSE +20 -20
- package/README.md +5 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Accordion.vue +41 -41
- package/dist/runtime/components/Accordion.vue.d.ts +11 -7
- package/dist/runtime/components/Alert.vue +63 -63
- package/dist/runtime/components/Alert.vue.d.ts +4 -4
- package/dist/runtime/components/App.vue +11 -10
- package/dist/runtime/components/App.vue.d.ts +11 -7
- package/dist/runtime/components/Avatar.vue +29 -29
- package/dist/runtime/components/Avatar.vue.d.ts +4 -3
- package/dist/runtime/components/AvatarGroup.vue +4 -4
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue +32 -32
- package/dist/runtime/components/Badge.vue.d.ts +2 -2
- package/dist/runtime/components/Breadcrumb.vue +49 -49
- package/dist/runtime/components/Breadcrumb.vue.d.ts +10 -6
- package/dist/runtime/components/Button.vue +52 -51
- package/dist/runtime/components/Button.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +74 -74
- package/dist/runtime/components/Calendar.vue.d.ts +16 -12
- package/dist/runtime/components/Card.vue +41 -41
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +66 -66
- package/dist/runtime/components/Carousel.vue.d.ts +14 -10
- package/dist/runtime/components/Checkbox.vue +46 -46
- package/dist/runtime/components/Checkbox.vue.d.ts +4 -3
- package/dist/runtime/components/CheckboxGroup.vue +29 -29
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +11 -7
- package/dist/runtime/components/Chip.vue +15 -15
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue +14 -14
- package/dist/runtime/components/Collapsible.vue.d.ts +2 -2
- package/dist/runtime/components/Drawer.vue +76 -76
- package/dist/runtime/components/Drawer.vue.d.ts +6 -6
- package/dist/runtime/components/DropdownMenu.vue +28 -28
- package/dist/runtime/components/DropdownMenu.vue.d.ts +17 -9
- package/dist/runtime/components/DropdownMenuContent.vue +152 -153
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +11 -7
- package/dist/runtime/components/FieldGroup.vue +3 -3
- package/dist/runtime/components/FieldGroup.vue.d.ts +2 -2
- package/dist/runtime/components/Form.vue +9 -9
- package/dist/runtime/components/Form.vue.d.ts +13 -8
- package/dist/runtime/components/FormField.vue +39 -38
- package/dist/runtime/components/FormField.vue.d.ts +7 -2
- package/dist/runtime/components/Icon.vue +2 -2
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue +48 -48
- package/dist/runtime/components/Input.vue.d.ts +16 -12
- package/dist/runtime/components/InputNumber.vue +47 -47
- package/dist/runtime/components/InputNumber.vue.d.ts +128 -124
- package/dist/runtime/components/InputTags.vue +54 -53
- package/dist/runtime/components/InputTags.vue.d.ts +16 -11
- package/dist/runtime/components/Kbd.vue +3 -3
- package/dist/runtime/components/Kbd.vue.d.ts +2 -2
- package/dist/runtime/components/Link.vue +26 -25
- package/dist/runtime/components/Link.vue.d.ts +16 -6
- package/dist/runtime/components/LinkBase.vue +3 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +2 -2
- package/dist/runtime/components/Marquee.vue +5 -5
- package/dist/runtime/components/Marquee.vue.d.ts +3 -3
- package/dist/runtime/components/Modal.vue +74 -74
- package/dist/runtime/components/Modal.vue.d.ts +6 -6
- package/dist/runtime/components/NavigationMenu.vue +228 -228
- package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -7
- package/dist/runtime/components/OverlayProvider.vue +9 -9
- package/dist/runtime/components/Pagination.vue +47 -47
- package/dist/runtime/components/Pagination.vue.d.ts +4 -4
- package/dist/runtime/components/PinInput.vue +23 -23
- package/dist/runtime/components/PinInput.vue.d.ts +14 -10
- package/dist/runtime/components/Popover.vue +22 -22
- package/dist/runtime/components/Popover.vue.d.ts +11 -7
- package/dist/runtime/components/Progress.vue +25 -25
- package/dist/runtime/components/Progress.vue.d.ts +2 -2
- package/dist/runtime/components/RadioGroup.vue +50 -50
- package/dist/runtime/components/RadioGroup.vue.d.ts +11 -7
- package/dist/runtime/components/ScrollArea.vue +32 -32
- package/dist/runtime/components/ScrollArea.vue.d.ts +2 -2
- package/dist/runtime/components/Select.vue +299 -148
- package/dist/runtime/components/Select.vue.d.ts +103 -123
- package/dist/runtime/components/Separator.vue +30 -30
- package/dist/runtime/components/Separator.vue.d.ts +2 -2
- package/dist/runtime/components/Skeleton.vue +11 -11
- package/dist/runtime/components/Skeleton.vue.d.ts +2 -2
- package/dist/runtime/components/Slider.vue +25 -25
- package/dist/runtime/components/Slider.vue.d.ts +11 -7
- package/dist/runtime/components/Stepper.vue +116 -0
- package/dist/runtime/components/Stepper.vue.d.ts +83 -0
- package/dist/runtime/components/Switch.vue +30 -30
- package/dist/runtime/components/Switch.vue.d.ts +4 -3
- package/dist/runtime/components/Table.vue +137 -137
- package/dist/runtime/components/Table.vue.d.ts +13 -8
- package/dist/runtime/components/Tabs.vue +74 -74
- package/dist/runtime/components/Tabs.vue.d.ts +12 -8
- package/dist/runtime/components/Textarea.vue +47 -47
- package/dist/runtime/components/Textarea.vue.d.ts +16 -11
- package/dist/runtime/components/Timeline.vue +47 -47
- package/dist/runtime/components/Timeline.vue.d.ts +11 -7
- package/dist/runtime/components/Toast.vue +93 -93
- package/dist/runtime/components/Toast.vue.d.ts +5 -5
- package/dist/runtime/components/ToastProvider.vue +29 -29
- package/dist/runtime/components/ToastProvider.vue.d.ts +3 -3
- package/dist/runtime/components/Tooltip.vue +24 -25
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/components/Tree.vue +241 -0
- package/dist/runtime/components/Tree.vue.d.ts +121 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -0
- package/dist/runtime/composables/defineShortcuts.js +44 -8
- package/dist/runtime/composables/useLocale.d.ts +12 -0
- package/dist/runtime/locale/en.d.ts +6 -0
- package/dist/runtime/locale/en.js +6 -0
- package/dist/runtime/locale/zh_tw.d.ts +6 -0
- package/dist/runtime/locale/zh_tw.js +6 -0
- package/dist/runtime/types/html.d.ts +8 -0
- package/dist/runtime/types/html.js +0 -0
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/input.d.ts +5 -5
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/types/unocss.d.ts +4 -4
- package/dist/runtime/types/utils.d.ts +3 -3
- package/dist/runtime/utils/index.d.ts +3 -3
- package/dist/runtime/utils/link.d.ts +2 -1
- package/dist/runtime/utils/link.js +40 -29
- package/dist/runtime/vue/components/Icon.vue +2 -2
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.vue +7 -12
- package/dist/runtime/vue/components/Link.vue.d.ts +11 -40
- package/dist/setup.d.mts +1 -1
- package/dist/shared/{ui.CzIlLITK.mjs → ui.9kQouwss.mjs} +5 -3
- package/dist/shared/{ui.DpbffTXs.d.mts → ui.D8Bg1HWt.d.mts} +2 -0
- package/dist/shared/{ui.DLOxhmP0.mjs → ui.DpkP12cX.mjs} +262 -17
- package/dist/unocss.mjs +1 -1
- package/dist/unplugin.d.mts +1 -1
- package/dist/unplugin.mjs +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +29 -29
- package/vue-plugin.d.ts +5 -5
|
@@ -50,51 +50,51 @@ const lastIcon = computed(() => props.lastIcon || (dir.value === "rtl" ? appConf
|
|
|
50
50
|
</script>
|
|
51
51
|
|
|
52
52
|
<template>
|
|
53
|
-
<PaginationRoot v-slot="{ page, pageCount }" v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })" data-part="root">
|
|
54
|
-
<PaginationList v-slot="{ items }" :class="ui.list({ class: props.ui?.list })" data-part="list">
|
|
55
|
-
<PaginationFirst v-if="props.showControls || !!slots.first" :class="ui.first({ class: props.ui?.first })" as-child data-part="first">
|
|
56
|
-
<slot name="first">
|
|
57
|
-
<Button :color="props.color" :variant="props.variant" :size="props.size" :icon="firstIcon" :to="props.to?.(1)" />
|
|
58
|
-
</slot>
|
|
59
|
-
</PaginationFirst>
|
|
60
|
-
<PaginationPrev v-if="props.showControls || !!slots.prev" :class="ui.prev({ class: props.ui?.prev })" as-child data-part="perv">
|
|
61
|
-
<slot name="prev">
|
|
62
|
-
<Button :color="props.color" :variant="props.variant" :size="props.size" :icon="prevIcon" :to="page > 1 ? props.to?.(page - 1) : void 0" />
|
|
63
|
-
</slot>
|
|
64
|
-
</PaginationPrev>
|
|
65
|
-
|
|
66
|
-
<template v-for="(item, index) in items" :key="index">
|
|
67
|
-
<PaginationListItem v-if="item.type === 'page'" :value="item.value" :class="ui.item({ class: props.ui?.item })" as-child data-part="item">
|
|
68
|
-
<slot name="item" v-bind="{ item, index, page, pageCount }">
|
|
69
|
-
<Button
|
|
70
|
-
:color="props.page === item.value ? props.activeColor : props.color"
|
|
71
|
-
:variant="props.page === item.value ? props.activeVariant : props.variant"
|
|
72
|
-
:size="props.size"
|
|
73
|
-
:label="String(item.value)"
|
|
74
|
-
:to="props.to?.(item.value)"
|
|
75
|
-
:ui="{ label: ui.label({ class: props.ui?.label }) }"
|
|
76
|
-
square
|
|
77
|
-
/>
|
|
78
|
-
</slot>
|
|
79
|
-
</PaginationListItem>
|
|
80
|
-
|
|
81
|
-
<PaginationEllipsis v-else :class="ui.ellipsis({ class: props.ui?.ellipsis })" as-child data-part="ellipsis">
|
|
82
|
-
<slot name="ellipsis" :ui="ui">
|
|
83
|
-
<Button as="div" :color="props.color" :variant="props.variant" :size="props.size" :icon="ellipsisIcon || appConfig.ui.icons.ellipsis" />
|
|
84
|
-
</slot>
|
|
85
|
-
</PaginationEllipsis>
|
|
86
|
-
</template>
|
|
87
|
-
|
|
88
|
-
<PaginationNext v-if="props.showControls || !!slots.next" :class="ui.next({ class: props.ui?.next })" as-child data-part="next">
|
|
89
|
-
<slot name="next">
|
|
90
|
-
<Button :color="props.color" :variant="props.variant" :size="props.size" :icon="nextIcon" :to="page < pageCount ? props.to?.(page + 1) : void 0" />
|
|
91
|
-
</slot>
|
|
92
|
-
</PaginationNext>
|
|
93
|
-
<PaginationLast v-if="props.showControls || !!slots.last" :class="ui.last({ class: props.ui?.last })" as-child data-part="last">
|
|
94
|
-
<slot name="last">
|
|
95
|
-
<Button :color="props.color" :variant="props.variant" :size="props.size" :icon="lastIcon" :to="props.to?.(pageCount)" />
|
|
96
|
-
</slot>
|
|
97
|
-
</PaginationLast>
|
|
98
|
-
</PaginationList>
|
|
99
|
-
</PaginationRoot>
|
|
53
|
+
<PaginationRoot v-slot="{ page, pageCount }" v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })" data-part="root">
|
|
54
|
+
<PaginationList v-slot="{ items }" :class="ui.list({ class: props.ui?.list })" data-part="list">
|
|
55
|
+
<PaginationFirst v-if="props.showControls || !!slots.first" :class="ui.first({ class: props.ui?.first })" as-child data-part="first">
|
|
56
|
+
<slot name="first">
|
|
57
|
+
<Button :color="props.color" :variant="props.variant" :size="props.size" :icon="firstIcon" :to="props.to?.(1)" />
|
|
58
|
+
</slot>
|
|
59
|
+
</PaginationFirst>
|
|
60
|
+
<PaginationPrev v-if="props.showControls || !!slots.prev" :class="ui.prev({ class: props.ui?.prev })" as-child data-part="perv">
|
|
61
|
+
<slot name="prev">
|
|
62
|
+
<Button :color="props.color" :variant="props.variant" :size="props.size" :icon="prevIcon" :to="page > 1 ? props.to?.(page - 1) : void 0" />
|
|
63
|
+
</slot>
|
|
64
|
+
</PaginationPrev>
|
|
65
|
+
|
|
66
|
+
<template v-for="(item, index) in items" :key="index">
|
|
67
|
+
<PaginationListItem v-if="item.type === 'page'" :value="item.value" :class="ui.item({ class: props.ui?.item })" as-child data-part="item">
|
|
68
|
+
<slot name="item" v-bind="{ item, index, page, pageCount }">
|
|
69
|
+
<Button
|
|
70
|
+
:color="props.page === item.value ? props.activeColor : props.color"
|
|
71
|
+
:variant="props.page === item.value ? props.activeVariant : props.variant"
|
|
72
|
+
:size="props.size"
|
|
73
|
+
:label="String(item.value)"
|
|
74
|
+
:to="props.to?.(item.value)"
|
|
75
|
+
:ui="{ label: ui.label({ class: props.ui?.label }) }"
|
|
76
|
+
square
|
|
77
|
+
/>
|
|
78
|
+
</slot>
|
|
79
|
+
</PaginationListItem>
|
|
80
|
+
|
|
81
|
+
<PaginationEllipsis v-else :class="ui.ellipsis({ class: props.ui?.ellipsis })" as-child data-part="ellipsis">
|
|
82
|
+
<slot name="ellipsis" :ui="ui">
|
|
83
|
+
<Button as="div" :color="props.color" :variant="props.variant" :size="props.size" :icon="ellipsisIcon || appConfig.ui.icons.ellipsis" />
|
|
84
|
+
</slot>
|
|
85
|
+
</PaginationEllipsis>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<PaginationNext v-if="props.showControls || !!slots.next" :class="ui.next({ class: props.ui?.next })" as-child data-part="next">
|
|
89
|
+
<slot name="next">
|
|
90
|
+
<Button :color="props.color" :variant="props.variant" :size="props.size" :icon="nextIcon" :to="page < pageCount ? props.to?.(page + 1) : void 0" />
|
|
91
|
+
</slot>
|
|
92
|
+
</PaginationNext>
|
|
93
|
+
<PaginationLast v-if="props.showControls || !!slots.last" :class="ui.last({ class: props.ui?.last })" as-child data-part="last">
|
|
94
|
+
<slot name="last">
|
|
95
|
+
<Button :color="props.color" :variant="props.variant" :size="props.size" :icon="lastIcon" :to="props.to?.(pageCount)" />
|
|
96
|
+
</slot>
|
|
97
|
+
</PaginationLast>
|
|
98
|
+
</PaginationList>
|
|
99
|
+
</PaginationRoot>
|
|
100
100
|
</template>
|
|
@@ -92,23 +92,23 @@ export interface PaginationSlots {
|
|
|
92
92
|
index: number;
|
|
93
93
|
}>;
|
|
94
94
|
}
|
|
95
|
+
declare const _default: typeof __VLS_export;
|
|
96
|
+
export default _default;
|
|
95
97
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
96
98
|
"update:page": (value: number) => any;
|
|
97
99
|
}, string, import("vue").PublicProps, Readonly<PaginationProps> & Readonly<{
|
|
98
100
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
99
101
|
}>, {
|
|
100
|
-
color: "error" | "
|
|
102
|
+
color: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral";
|
|
101
103
|
variant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
|
|
102
104
|
activeVariant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
|
|
103
|
-
activeColor: "error" | "
|
|
105
|
+
activeColor: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral";
|
|
104
106
|
itemsPerPage: number;
|
|
105
107
|
showEdges: boolean;
|
|
106
108
|
siblingCount: number;
|
|
107
109
|
total: number;
|
|
108
110
|
showControls: boolean;
|
|
109
111
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PaginationSlots>;
|
|
110
|
-
declare const _default: typeof __VLS_export;
|
|
111
|
-
export default _default;
|
|
112
112
|
type __VLS_WithSlots<T, S> = T & {
|
|
113
113
|
new (): {
|
|
114
114
|
$slots: S;
|
|
@@ -21,7 +21,7 @@ const props = defineProps({
|
|
|
21
21
|
highlight: { type: Boolean, required: false },
|
|
22
22
|
ui: { type: null, required: false },
|
|
23
23
|
class: { type: [Object, String, Number, Boolean, null, Array], required: false, skipCheck: true },
|
|
24
|
-
defaultValue: { type:
|
|
24
|
+
defaultValue: { type: null, required: false },
|
|
25
25
|
disabled: { type: Boolean, required: false },
|
|
26
26
|
id: { type: String, required: false },
|
|
27
27
|
mask: { type: Boolean, required: false },
|
|
@@ -71,26 +71,26 @@ defineExpose({
|
|
|
71
71
|
</script>
|
|
72
72
|
|
|
73
73
|
<template>
|
|
74
|
-
<PinInputRoot
|
|
75
|
-
v-bind="{ ...rootProps, ...ariaAttrs, id, name }"
|
|
76
|
-
:placeholder="props.placeholder"
|
|
77
|
-
:model-value="modelValue"
|
|
78
|
-
:default-value="props.defaultValue"
|
|
79
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
80
|
-
data-part="root"
|
|
81
|
-
@update:model-value="emitFormInput"
|
|
82
|
-
@complete="onComplete"
|
|
83
|
-
>
|
|
84
|
-
<PinInputInput
|
|
85
|
-
v-for="(ids, index) in looseToNumber(props.length)"
|
|
86
|
-
:key="ids"
|
|
87
|
-
:ref="(el) => inputsRef[index] = el"
|
|
88
|
-
:index="index"
|
|
89
|
-
:disabled="disabled"
|
|
90
|
-
:class="ui.base({ class: props.ui?.base })"
|
|
91
|
-
data-part="base"
|
|
92
|
-
@blur="onBlur"
|
|
93
|
-
@focus="emitFormFocus"
|
|
94
|
-
/>
|
|
95
|
-
</PinInputRoot>
|
|
74
|
+
<PinInputRoot
|
|
75
|
+
v-bind="{ ...rootProps, ...ariaAttrs, id, name }"
|
|
76
|
+
:placeholder="props.placeholder"
|
|
77
|
+
:model-value="modelValue"
|
|
78
|
+
:default-value="props.defaultValue"
|
|
79
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
80
|
+
data-part="root"
|
|
81
|
+
@update:model-value="emitFormInput"
|
|
82
|
+
@complete="onComplete"
|
|
83
|
+
>
|
|
84
|
+
<PinInputInput
|
|
85
|
+
v-for="(ids, index) in looseToNumber(props.length)"
|
|
86
|
+
:key="ids"
|
|
87
|
+
:ref="(el) => inputsRef[index] = el"
|
|
88
|
+
:index="index"
|
|
89
|
+
:disabled="disabled"
|
|
90
|
+
:class="ui.base({ class: props.ui?.base })"
|
|
91
|
+
data-part="base"
|
|
92
|
+
@blur="onBlur"
|
|
93
|
+
@focus="emitFormFocus"
|
|
94
|
+
/>
|
|
95
|
+
</PinInputRoot>
|
|
96
96
|
</template>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ComponentPublicInstance } from 'vue';
|
|
2
1
|
import type { VariantProps } from '@byyuurin/ui-kit';
|
|
3
2
|
import type { PinInputRootEmits, PinInputRootProps } from 'reka-ui';
|
|
3
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
4
4
|
import theme from '#build/ui/pin-input';
|
|
5
5
|
import type { ComponentBaseProps, ComponentUIProps } from '../types';
|
|
6
6
|
type PinInputType = 'text' | 'number';
|
|
@@ -31,24 +31,28 @@ export type PinInputEmits<T extends PinInputType = 'text'> = PinInputRootEmits<T
|
|
|
31
31
|
change: [event: Event];
|
|
32
32
|
blur: [event: Event];
|
|
33
33
|
};
|
|
34
|
-
declare const
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
declare const __VLS_export: <T extends PinInputType = "text" | "number">(__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<{
|
|
37
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<PinInputProps<T> & {
|
|
37
38
|
onBlur?: ((event: Event) => any) | undefined;
|
|
39
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
38
40
|
"onUpdate:modelValue"?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
|
|
39
41
|
onComplete?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
|
|
40
|
-
}> &
|
|
42
|
+
}> & (typeof globalThis extends {
|
|
43
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
44
|
+
} ? P : {});
|
|
41
45
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
42
46
|
inputsRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
|
|
43
47
|
}>) => void;
|
|
44
48
|
attrs: any;
|
|
45
49
|
slots: {};
|
|
46
|
-
emit: ((evt: "
|
|
50
|
+
emit: ((evt: "blur", event: Event) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: [T] extends ["number"] ? number[] : string[]) => void) & ((evt: "complete", value: [T] extends ["number"] ? number[] : string[]) => void);
|
|
47
51
|
}>) => import("vue").VNode & {
|
|
48
52
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
49
53
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
55
|
+
[K in keyof T]: T[K];
|
|
56
|
+
} : {
|
|
53
57
|
[K in keyof T as K]: T[K];
|
|
54
|
-
} & {};
|
|
58
|
+
}) & {};
|
|
@@ -54,26 +54,26 @@ const ui = computed(() => {
|
|
|
54
54
|
</script>
|
|
55
55
|
|
|
56
56
|
<template>
|
|
57
|
-
<Component.Root v-slot="{ open, close }" v-bind="rootProps">
|
|
58
|
-
<Component.Trigger v-if="!!slots.default || !!props.reference" :reference="props.reference" as-child :class="props.class">
|
|
59
|
-
<slot :open="open"></slot>
|
|
60
|
-
</Component.Trigger>
|
|
61
|
-
|
|
62
|
-
<Component.Anchor v-if="'Anchor' in Component && !!slots.anchor" as-child>
|
|
63
|
-
<slot name="anchor" v-bind="close ? { close } : {}"></slot>
|
|
64
|
-
</Component.Anchor>
|
|
65
|
-
|
|
66
|
-
<Component.Portal v-bind="portalProps">
|
|
67
|
-
<Component.Content
|
|
68
|
-
v-bind="contentProps"
|
|
69
|
-
:class="ui.content({ class: [props.ui?.content, !slots.default && props.class] })"
|
|
70
|
-
data-part="content"
|
|
71
|
-
v-on="contentEvents"
|
|
72
|
-
>
|
|
73
|
-
<slot name="content" v-bind="close ? { close } : {}"></slot>
|
|
74
|
-
|
|
75
|
-
<Component.Arrow v-if="!!props.arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" data-part="arrow" />
|
|
76
|
-
</Component.Content>
|
|
77
|
-
</Component.Portal>
|
|
78
|
-
</Component.Root>
|
|
57
|
+
<Component.Root v-slot="{ open, close }" v-bind="rootProps">
|
|
58
|
+
<Component.Trigger v-if="!!slots.default || !!props.reference" :reference="props.reference" as-child :class="props.class">
|
|
59
|
+
<slot :open="open"></slot>
|
|
60
|
+
</Component.Trigger>
|
|
61
|
+
|
|
62
|
+
<Component.Anchor v-if="'Anchor' in Component && !!slots.anchor" as-child>
|
|
63
|
+
<slot name="anchor" v-bind="close ? { close } : {}"></slot>
|
|
64
|
+
</Component.Anchor>
|
|
65
|
+
|
|
66
|
+
<Component.Portal v-bind="portalProps">
|
|
67
|
+
<Component.Content
|
|
68
|
+
v-bind="contentProps"
|
|
69
|
+
:class="ui.content({ class: [props.ui?.content, !slots.default && props.class] })"
|
|
70
|
+
data-part="content"
|
|
71
|
+
v-on="contentEvents"
|
|
72
|
+
>
|
|
73
|
+
<slot name="content" v-bind="close ? { close } : {}"></slot>
|
|
74
|
+
|
|
75
|
+
<Component.Arrow v-if="!!props.arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" data-part="arrow" />
|
|
76
|
+
</Component.Content>
|
|
77
|
+
</Component.Portal>
|
|
78
|
+
</Component.Root>
|
|
79
79
|
</template>
|
|
@@ -51,11 +51,15 @@ export interface PopoverSlots<M extends PopoverMode = PopoverMode> {
|
|
|
51
51
|
close: () => void;
|
|
52
52
|
}>;
|
|
53
53
|
}
|
|
54
|
-
declare const
|
|
55
|
-
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
55
|
+
export default _default;
|
|
56
|
+
declare const __VLS_export: <M extends PopoverMode>(__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<{
|
|
57
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<PopoverProps<M> & {
|
|
56
58
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
57
59
|
"onClose-prevent"?: (() => any) | undefined;
|
|
58
|
-
}> &
|
|
60
|
+
}> & (typeof globalThis extends {
|
|
61
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
62
|
+
} ? P : {});
|
|
59
63
|
expose: (exposed: {}) => void;
|
|
60
64
|
attrs: any;
|
|
61
65
|
slots: PopoverSlots<M>;
|
|
@@ -63,8 +67,8 @@ declare const __VLS_export: <M extends PopoverMode>(__VLS_props: NonNullable<Awa
|
|
|
63
67
|
}>) => import("vue").VNode & {
|
|
64
68
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
65
69
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
71
|
+
[K in keyof T]: T[K];
|
|
72
|
+
} : {
|
|
69
73
|
[K in keyof T as K]: T[K];
|
|
70
|
-
} & {};
|
|
74
|
+
}) & {};
|
|
@@ -87,29 +87,29 @@ const ui = computed(() => {
|
|
|
87
87
|
</script>
|
|
88
88
|
|
|
89
89
|
<template>
|
|
90
|
-
<Primitive :as="props.as" :class="ui.root({ class: [props.ui?.root, props.class] })" :data-orientation="orientation" data-part="root">
|
|
91
|
-
<div v-if="!isIndeterminate && (props.status || !!slots.status)" :class="ui.status({ class: props.ui?.status })" data-part="status" :style="statusStyle">
|
|
92
|
-
<slot name="status" :percent="percent">
|
|
93
|
-
{{ percent }}%
|
|
94
|
-
</slot>
|
|
95
|
-
</div>
|
|
96
|
-
|
|
97
|
-
<ProgressRoot
|
|
98
|
-
v-bind="rootProps"
|
|
99
|
-
:max="realMax"
|
|
100
|
-
:class="ui.base({ class: props.ui?.base })"
|
|
101
|
-
data-part="base"
|
|
102
|
-
style="transform: translateZ(0)"
|
|
103
|
-
>
|
|
104
|
-
<ProgressIndicator :class="ui.indicator({ class: props.ui?.indicator })" data-part="indicator" :style="indicatorStyle" />
|
|
105
|
-
</ProgressRoot>
|
|
106
|
-
|
|
107
|
-
<div v-if="hasSteps" :class="ui.steps({ class: props.ui?.steps })" data-part="steps">
|
|
108
|
-
<div v-for="(step, index) in props.max" :key="index" :class="ui.step({ class: props.ui?.step, step: stepVariant(index) })" data-part="step">
|
|
109
|
-
<slot :name="`step-${index}`" :step="step">
|
|
110
|
-
{{ step }}
|
|
111
|
-
</slot>
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
</Primitive>
|
|
90
|
+
<Primitive :as="props.as" :class="ui.root({ class: [props.ui?.root, props.class] })" :data-orientation="orientation" data-part="root">
|
|
91
|
+
<div v-if="!isIndeterminate && (props.status || !!slots.status)" :class="ui.status({ class: props.ui?.status })" data-part="status" :style="statusStyle">
|
|
92
|
+
<slot name="status" :percent="percent">
|
|
93
|
+
{{ percent }}%
|
|
94
|
+
</slot>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<ProgressRoot
|
|
98
|
+
v-bind="rootProps"
|
|
99
|
+
:max="realMax"
|
|
100
|
+
:class="ui.base({ class: props.ui?.base })"
|
|
101
|
+
data-part="base"
|
|
102
|
+
style="transform: translateZ(0)"
|
|
103
|
+
>
|
|
104
|
+
<ProgressIndicator :class="ui.indicator({ class: props.ui?.indicator })" data-part="indicator" :style="indicatorStyle" />
|
|
105
|
+
</ProgressRoot>
|
|
106
|
+
|
|
107
|
+
<div v-if="hasSteps" :class="ui.steps({ class: props.ui?.steps })" data-part="steps">
|
|
108
|
+
<div v-for="(step, index) in props.max" :key="index" :class="ui.step({ class: props.ui?.step, step: stepVariant(index) })" data-part="step">
|
|
109
|
+
<slot :name="`step-${index}`" :step="step">
|
|
110
|
+
{{ step }}
|
|
111
|
+
</slot>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</Primitive>
|
|
115
115
|
</template>
|
|
@@ -43,6 +43,8 @@ export type ProgressSlots = {
|
|
|
43
43
|
step: string | number;
|
|
44
44
|
}>;
|
|
45
45
|
};
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
46
48
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
49
|
"update:modelValue": (value: string[] | undefined) => any;
|
|
48
50
|
"update:max": (value: number) => any;
|
|
@@ -54,8 +56,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Progre
|
|
|
54
56
|
inverted: boolean;
|
|
55
57
|
modelValue: number | null;
|
|
56
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProgressSlots>;
|
|
57
|
-
declare const _default: typeof __VLS_export;
|
|
58
|
-
export default _default;
|
|
59
59
|
type __VLS_WithSlots<T, S> = T & {
|
|
60
60
|
new (): {
|
|
61
61
|
$slots: S;
|
|
@@ -96,54 +96,54 @@ function onUpdate(value) {
|
|
|
96
96
|
</script>
|
|
97
97
|
|
|
98
98
|
<template>
|
|
99
|
-
<RadioGroupRoot
|
|
100
|
-
v-bind="{ id, ...rootProps, name, disabled }"
|
|
101
|
-
:model-value="props.modelValue"
|
|
102
|
-
:default-value="props.defaultValue"
|
|
103
|
-
:orientation="props.orientation"
|
|
104
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
105
|
-
data-part="root"
|
|
106
|
-
@update:model-value="onUpdate"
|
|
107
|
-
>
|
|
108
|
-
<fieldset v-bind="ariaAttrs" :class="ui.fieldset({ class: props.ui?.fieldset })" data-part="fieldset">
|
|
109
|
-
<legend v-if="props.legend || !!slots.legend" :class="ui.legend({ class: props.ui?.legend })" data-part="legend">
|
|
110
|
-
<slot name="legend">
|
|
111
|
-
{{ props.legend }}
|
|
112
|
-
</slot>
|
|
113
|
-
</legend>
|
|
114
|
-
<component
|
|
115
|
-
:is="!props.variant || props.variant === 'list' ? 'div' : Label"
|
|
116
|
-
v-for="item in normalizedItems"
|
|
117
|
-
:key="item.value"
|
|
118
|
-
:class="ui.item({ class: [props.ui?.item, item.ui?.item, item.class], disabled: item.disabled })"
|
|
119
|
-
data-part="item"
|
|
120
|
-
>
|
|
121
|
-
<div :class="ui.container({ class: [props.ui?.container, item.ui?.container], disabled: item.disabled })" data-part="container">
|
|
122
|
-
<RekaRadioGroupItem
|
|
123
|
-
:id="item.id"
|
|
124
|
-
:value="item.value"
|
|
125
|
-
:disabled="item.disabled"
|
|
126
|
-
:class="ui.base({ class: [props.ui?.base, item.ui?.base], disabled: item.disabled, indicator: props.indicator })"
|
|
127
|
-
data-part="base"
|
|
128
|
-
:data-indicator="props.indicator"
|
|
129
|
-
>
|
|
130
|
-
<RadioGroupIndicator :class="ui.indicator({ class: [props.ui?.indicator, item.ui?.indicator], disabled: item.disabled })" data-part="indicator" force-mount />
|
|
131
|
-
</RekaRadioGroupItem>
|
|
132
|
-
</div>
|
|
133
|
-
|
|
134
|
-
<div v-if="item.label || !!slots.label || (item.description || !!slots.description)" :class="ui.wrapper({ class: [props.ui?.wrapper, item.ui?.wrapper], disabled: item.disabled })" data-part="wrapper">
|
|
135
|
-
<component :is="!props.variant || props.variant === 'list' ? Label : 'p'" :for="item.id" :class="ui.label({ class: [props.ui?.label, item.ui?.label], disabled: item.disabled })" data-part="label">
|
|
136
|
-
<slot name="label" :item="item" :model-value="modelValue">
|
|
137
|
-
{{ item.label }}
|
|
138
|
-
</slot>
|
|
139
|
-
</component>
|
|
140
|
-
<p v-if="item.description || !!slots.description" :class="ui.description({ class: [props.ui?.description, item.ui?.description], disabled: item.disabled })" data-part="description">
|
|
141
|
-
<slot name="description" :item="item" :model-value="modelValue">
|
|
142
|
-
{{ item.description }}
|
|
143
|
-
</slot>
|
|
144
|
-
</p>
|
|
145
|
-
</div>
|
|
146
|
-
</component>
|
|
147
|
-
</fieldset>
|
|
148
|
-
</RadioGroupRoot>
|
|
99
|
+
<RadioGroupRoot
|
|
100
|
+
v-bind="{ id, ...rootProps, name, disabled }"
|
|
101
|
+
:model-value="props.modelValue"
|
|
102
|
+
:default-value="props.defaultValue"
|
|
103
|
+
:orientation="props.orientation"
|
|
104
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
105
|
+
data-part="root"
|
|
106
|
+
@update:model-value="onUpdate"
|
|
107
|
+
>
|
|
108
|
+
<fieldset v-bind="ariaAttrs" :class="ui.fieldset({ class: props.ui?.fieldset })" data-part="fieldset">
|
|
109
|
+
<legend v-if="props.legend || !!slots.legend" :class="ui.legend({ class: props.ui?.legend })" data-part="legend">
|
|
110
|
+
<slot name="legend">
|
|
111
|
+
{{ props.legend }}
|
|
112
|
+
</slot>
|
|
113
|
+
</legend>
|
|
114
|
+
<component
|
|
115
|
+
:is="!props.variant || props.variant === 'list' ? 'div' : Label"
|
|
116
|
+
v-for="item in normalizedItems"
|
|
117
|
+
:key="item.value"
|
|
118
|
+
:class="ui.item({ class: [props.ui?.item, item.ui?.item, item.class], disabled: item.disabled })"
|
|
119
|
+
data-part="item"
|
|
120
|
+
>
|
|
121
|
+
<div :class="ui.container({ class: [props.ui?.container, item.ui?.container], disabled: item.disabled })" data-part="container">
|
|
122
|
+
<RekaRadioGroupItem
|
|
123
|
+
:id="item.id"
|
|
124
|
+
:value="item.value"
|
|
125
|
+
:disabled="item.disabled"
|
|
126
|
+
:class="ui.base({ class: [props.ui?.base, item.ui?.base], disabled: item.disabled, indicator: props.indicator })"
|
|
127
|
+
data-part="base"
|
|
128
|
+
:data-indicator="props.indicator"
|
|
129
|
+
>
|
|
130
|
+
<RadioGroupIndicator :class="ui.indicator({ class: [props.ui?.indicator, item.ui?.indicator], disabled: item.disabled })" data-part="indicator" force-mount />
|
|
131
|
+
</RekaRadioGroupItem>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<div v-if="item.label || !!slots.label || (item.description || !!slots.description)" :class="ui.wrapper({ class: [props.ui?.wrapper, item.ui?.wrapper], disabled: item.disabled })" data-part="wrapper">
|
|
135
|
+
<component :is="!props.variant || props.variant === 'list' ? Label : 'p'" :for="item.id" :class="ui.label({ class: [props.ui?.label, item.ui?.label], disabled: item.disabled })" data-part="label">
|
|
136
|
+
<slot name="label" :item="item" :model-value="modelValue">
|
|
137
|
+
{{ item.label }}
|
|
138
|
+
</slot>
|
|
139
|
+
</component>
|
|
140
|
+
<p v-if="item.description || !!slots.description" :class="ui.description({ class: [props.ui?.description, item.ui?.description], disabled: item.disabled })" data-part="description">
|
|
141
|
+
<slot name="description" :item="item" :model-value="modelValue">
|
|
142
|
+
{{ item.description }}
|
|
143
|
+
</slot>
|
|
144
|
+
</p>
|
|
145
|
+
</div>
|
|
146
|
+
</component>
|
|
147
|
+
</fieldset>
|
|
148
|
+
</RadioGroupRoot>
|
|
149
149
|
</template>
|
|
@@ -77,11 +77,15 @@ export interface RadioGroupSlots<T extends RadioGroupItem[] = RadioGroupItem[]>
|
|
|
77
77
|
label: SlotProps<T>;
|
|
78
78
|
description: SlotProps<T>;
|
|
79
79
|
}
|
|
80
|
-
declare const
|
|
81
|
-
|
|
80
|
+
declare const _default: typeof __VLS_export;
|
|
81
|
+
export default _default;
|
|
82
|
+
declare const __VLS_export: <T extends RadioGroupItem[], VK extends GetItemKeys<T> = "value">(__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<{
|
|
83
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<RadioGroupProps<T, VK> & {
|
|
82
84
|
onChange?: ((event: Event) => any) | undefined;
|
|
83
85
|
"onUpdate:modelValue"?: ((value: import("../types").GetItemValue<T, VK, NestedItem<T>>) => any) | undefined;
|
|
84
|
-
}> &
|
|
86
|
+
}> & (typeof globalThis extends {
|
|
87
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
88
|
+
} ? P : {});
|
|
85
89
|
expose: (exposed: {}) => void;
|
|
86
90
|
attrs: any;
|
|
87
91
|
slots: RadioGroupSlots<T>;
|
|
@@ -89,8 +93,8 @@ declare const __VLS_export: <T extends RadioGroupItem[], VK extends GetItemKeys<
|
|
|
89
93
|
}>) => import("vue").VNode & {
|
|
90
94
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
91
95
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
97
|
+
[K in keyof T]: T[K];
|
|
98
|
+
} : {
|
|
95
99
|
[K in keyof T as K]: T[K];
|
|
96
|
-
} & {};
|
|
100
|
+
}) & {};
|
|
@@ -35,36 +35,36 @@ function scrollTopLeft() {
|
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<template>
|
|
38
|
-
<ScrollAreaRoot
|
|
39
|
-
ref="rootRef"
|
|
40
|
-
v-bind="rootProps"
|
|
41
|
-
:class="ui.root({ class: [props.class, props.ui?.root] })"
|
|
42
|
-
data-part="root"
|
|
43
|
-
>
|
|
44
|
-
<ScrollAreaViewport :class="ui.viewport({ class: props.ui?.viewport })" data-part="viewport">
|
|
45
|
-
<slot></slot>
|
|
46
|
-
</ScrollAreaViewport>
|
|
47
|
-
|
|
48
|
-
<ScrollAreaScrollbar
|
|
49
|
-
key="scrollbar-horizontal"
|
|
50
|
-
orientation="horizontal"
|
|
51
|
-
:class="ui.scrollbar({ class: props.ui?.scrollbar })"
|
|
52
|
-
data-part="scrollbar"
|
|
53
|
-
>
|
|
54
|
-
<ScrollAreaThumb :class="ui.thumb({ class: props.ui?.thumb })" data-part="thumb" />
|
|
55
|
-
</ScrollAreaScrollbar>
|
|
56
|
-
<ScrollAreaScrollbar
|
|
57
|
-
key="scrollbar-vertical"
|
|
58
|
-
orientation="vertical"
|
|
59
|
-
:class="ui.scrollbar({ class: props.ui?.scrollbar })"
|
|
60
|
-
data-part="scrollbar"
|
|
61
|
-
>
|
|
62
|
-
<ScrollAreaThumb :class="ui.thumb({ class: props.ui?.thumb })" data-part="thumb" />
|
|
63
|
-
</ScrollAreaScrollbar>
|
|
64
|
-
<ScrollAreaCorner
|
|
65
|
-
key="corner"
|
|
66
|
-
:class="ui.corner({ class: props.ui?.corner })"
|
|
67
|
-
data-part="corner"
|
|
68
|
-
/>
|
|
69
|
-
</ScrollAreaRoot>
|
|
38
|
+
<ScrollAreaRoot
|
|
39
|
+
ref="rootRef"
|
|
40
|
+
v-bind="rootProps"
|
|
41
|
+
:class="ui.root({ class: [props.class, props.ui?.root] })"
|
|
42
|
+
data-part="root"
|
|
43
|
+
>
|
|
44
|
+
<ScrollAreaViewport :class="ui.viewport({ class: props.ui?.viewport })" data-part="viewport">
|
|
45
|
+
<slot></slot>
|
|
46
|
+
</ScrollAreaViewport>
|
|
47
|
+
|
|
48
|
+
<ScrollAreaScrollbar
|
|
49
|
+
key="scrollbar-horizontal"
|
|
50
|
+
orientation="horizontal"
|
|
51
|
+
:class="ui.scrollbar({ class: props.ui?.scrollbar })"
|
|
52
|
+
data-part="scrollbar"
|
|
53
|
+
>
|
|
54
|
+
<ScrollAreaThumb :class="ui.thumb({ class: props.ui?.thumb })" data-part="thumb" />
|
|
55
|
+
</ScrollAreaScrollbar>
|
|
56
|
+
<ScrollAreaScrollbar
|
|
57
|
+
key="scrollbar-vertical"
|
|
58
|
+
orientation="vertical"
|
|
59
|
+
:class="ui.scrollbar({ class: props.ui?.scrollbar })"
|
|
60
|
+
data-part="scrollbar"
|
|
61
|
+
>
|
|
62
|
+
<ScrollAreaThumb :class="ui.thumb({ class: props.ui?.thumb })" data-part="thumb" />
|
|
63
|
+
</ScrollAreaScrollbar>
|
|
64
|
+
<ScrollAreaCorner
|
|
65
|
+
key="corner"
|
|
66
|
+
:class="ui.corner({ class: props.ui?.corner })"
|
|
67
|
+
data-part="corner"
|
|
68
|
+
/>
|
|
69
|
+
</ScrollAreaRoot>
|
|
70
70
|
</template>
|
|
@@ -4,6 +4,8 @@ import type { ComponentBaseProps, ComponentUIProps } from '../types';
|
|
|
4
4
|
export interface ScrollAreaProps extends ComponentBaseProps, Pick<ScrollAreaRootProps, 'type' | 'dir' | 'scrollHideDelay'> {
|
|
5
5
|
ui?: ComponentUIProps<typeof theme>;
|
|
6
6
|
}
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
7
9
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ScrollAreaProps, {
|
|
8
10
|
scrollTop: () => void;
|
|
9
11
|
scrollTopLeft: () => void;
|
|
@@ -12,8 +14,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Scroll
|
|
|
12
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
13
15
|
default?: (props: {}) => any;
|
|
14
16
|
}>;
|
|
15
|
-
declare const _default: typeof __VLS_export;
|
|
16
|
-
export default _default;
|
|
17
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
18
18
|
new (): {
|
|
19
19
|
$slots: S;
|