@wirekyt/vue 0.0.1 → 0.0.2
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/accordion.cjs +273 -0
- package/dist/accordion.d.cts +195 -0
- package/dist/accordion.d.ts +195 -0
- package/dist/accordion.js +250 -0
- package/dist/angle-slider.cjs +268 -0
- package/dist/angle-slider.d.cts +228 -0
- package/dist/angle-slider.d.ts +228 -0
- package/dist/angle-slider.js +244 -0
- package/dist/avatar.cjs +145 -0
- package/dist/avatar.d.cts +114 -0
- package/dist/avatar.d.ts +114 -0
- package/dist/avatar.js +126 -0
- package/dist/boolean-BCaEpMxQ.js +6 -0
- package/dist/boolean-Dyu9-5Wp.cjs +11 -0
- package/dist/carousel.cjs +342 -0
- package/dist/carousel.d.cts +303 -0
- package/dist/carousel.d.ts +303 -0
- package/dist/carousel.js +320 -0
- package/dist/checkbox.cjs +345 -0
- package/dist/checkbox.d.cts +272 -0
- package/dist/checkbox.d.ts +272 -0
- package/dist/checkbox.js +324 -0
- package/dist/clean-props--1kqQE0Y.js +8 -0
- package/dist/clean-props-MyKqus13.cjs +13 -0
- package/dist/client-only.cjs +17 -0
- package/dist/client-only.d.cts +18 -0
- package/dist/client-only.d.ts +18 -0
- package/dist/client-only.js +16 -0
- package/dist/clipboard.cjs +229 -0
- package/dist/clipboard.d.cts +203 -0
- package/dist/clipboard.d.ts +203 -0
- package/dist/clipboard.js +206 -0
- package/dist/collapsible-CEjnJlpm.js +179 -0
- package/dist/collapsible-aSz4kYqo.cjs +232 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +161 -0
- package/dist/collapsible.d.ts +161 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-1IjtyI-g.cjs +254 -0
- package/dist/collection-Ea6ZCZKK.js +211 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +804 -0
- package/dist/color-picker.d.cts +605 -0
- package/dist/color-picker.d.ts +605 -0
- package/dist/color-picker.js +759 -0
- package/dist/combobox.cjs +552 -0
- package/dist/combobox.d.cts +442 -0
- package/dist/combobox.d.ts +442 -0
- package/dist/combobox.js +521 -0
- package/dist/create-split-props-BBxrD7TV.js +10 -0
- package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
- package/dist/date-input.cjs +293 -0
- package/dist/date-input.d.cts +212 -0
- package/dist/date-input.d.ts +212 -0
- package/dist/date-input.js +270 -0
- package/dist/date-picker.cjs +821 -0
- package/dist/date-picker.d.cts +637 -0
- package/dist/date-picker.d.ts +637 -0
- package/dist/date-picker.js +776 -0
- package/dist/dialog.cjs +333 -0
- package/dist/dialog.d.cts +272 -0
- package/dist/dialog.d.ts +272 -0
- package/dist/dialog.js +308 -0
- package/dist/download-trigger.cjs +65 -0
- package/dist/download-trigger.d.cts +34 -0
- package/dist/download-trigger.d.ts +34 -0
- package/dist/download-trigger.js +63 -0
- package/dist/drawer.cjs +448 -0
- package/dist/drawer.d.cts +346 -0
- package/dist/drawer.d.ts +346 -0
- package/dist/drawer.js +415 -0
- package/dist/editable.cjs +331 -0
- package/dist/editable.d.cts +285 -0
- package/dist/editable.d.ts +285 -0
- package/dist/editable.js +306 -0
- package/dist/factory-8Ao0DEy3.js +34 -0
- package/dist/factory-BNwuanv4.d.cts +21 -0
- package/dist/factory-BNwuanv4.d.ts +21 -0
- package/dist/factory-JL7MPjkk.cjs +45 -0
- package/dist/field-C3pLqz1S.js +435 -0
- package/dist/field-DRz-v4rB.cjs +524 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +344 -0
- package/dist/field.d.ts +344 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-ByP_r1Uq.js +216 -0
- package/dist/fieldset-C5aj6Ims.cjs +275 -0
- package/dist/fieldset.cjs +17 -0
- package/dist/fieldset.d.cts +159 -0
- package/dist/fieldset.d.ts +159 -0
- package/dist/fieldset.js +2 -0
- package/dist/file-upload.cjs +421 -0
- package/dist/file-upload.d.cts +327 -0
- package/dist/file-upload.d.ts +327 -0
- package/dist/file-upload.js +392 -0
- package/dist/floating-panel.cjs +412 -0
- package/dist/floating-panel.d.cts +337 -0
- package/dist/floating-panel.d.ts +337 -0
- package/dist/floating-panel.js +383 -0
- package/dist/focus-trap.cjs +79 -0
- package/dist/focus-trap.d.cts +46 -0
- package/dist/focus-trap.d.ts +46 -0
- package/dist/focus-trap.js +78 -0
- package/dist/format.cjs +116 -0
- package/dist/format.d.cts +46 -0
- package/dist/format.d.ts +46 -0
- package/dist/format.js +106 -0
- package/dist/frame.cjs +93 -0
- package/dist/frame.d.cts +37 -0
- package/dist/frame.d.ts +37 -0
- package/dist/frame.js +92 -0
- package/dist/highlight.cjs +44 -0
- package/dist/highlight.d.cts +32 -0
- package/dist/highlight.d.ts +32 -0
- package/dist/highlight.js +42 -0
- package/dist/hover-card.cjs +269 -0
- package/dist/hover-card.d.cts +202 -0
- package/dist/hover-card.d.ts +202 -0
- package/dist/hover-card.js +246 -0
- package/dist/image-cropper.cjs +252 -0
- package/dist/image-cropper.d.cts +207 -0
- package/dist/image-cropper.d.ts +207 -0
- package/dist/image-cropper.js +235 -0
- package/dist/index-B-o8jLyV.d.cts +31 -0
- package/dist/index-BSoF1D-v.d.ts +31 -0
- package/dist/index-BTNfeIXf.d.ts +104 -0
- package/dist/index-C6Q2DqG6.d.ts +37 -0
- package/dist/index-CG9mpPgL.d.cts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DB2uALlJ.d.cts +74 -0
- package/dist/index-DXb0W_NP.d.cts +37 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-aMWdJRGL.d.ts +444 -0
- package/dist/index-uLE-tXSk.d.ts +74 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/json-tree-view.cjs +346 -0
- package/dist/json-tree-view.d.cts +86 -0
- package/dist/json-tree-view.d.ts +86 -0
- package/dist/json-tree-view.js +336 -0
- package/dist/listbox.cjs +386 -0
- package/dist/listbox.d.cts +323 -0
- package/dist/listbox.d.ts +323 -0
- package/dist/listbox.js +361 -0
- package/dist/marquee.cjs +256 -0
- package/dist/marquee.d.cts +208 -0
- package/dist/marquee.d.ts +208 -0
- package/dist/marquee.js +235 -0
- package/dist/menu.cjs +650 -0
- package/dist/menu.d.cts +501 -0
- package/dist/menu.d.ts +501 -0
- package/dist/menu.js +613 -0
- package/dist/navigation-menu.cjs +408 -0
- package/dist/navigation-menu.d.cts +271 -0
- package/dist/navigation-menu.d.ts +271 -0
- package/dist/navigation-menu.js +380 -0
- package/dist/number-input.cjs +298 -0
- package/dist/number-input.d.cts +253 -0
- package/dist/number-input.d.ts +253 -0
- package/dist/number-input.js +274 -0
- package/dist/pagination.cjs +249 -0
- package/dist/pagination.d.cts +209 -0
- package/dist/pagination.d.ts +209 -0
- package/dist/pagination.js +226 -0
- package/dist/password-input.cjs +232 -0
- package/dist/password-input.d.cts +208 -0
- package/dist/password-input.d.ts +208 -0
- package/dist/password-input.js +210 -0
- package/dist/pin-input.cjs +245 -0
- package/dist/pin-input.d.cts +199 -0
- package/dist/pin-input.d.ts +199 -0
- package/dist/pin-input.js +224 -0
- package/dist/popover.cjs +377 -0
- package/dist/popover.d.cts +324 -0
- package/dist/popover.d.ts +324 -0
- package/dist/popover.js +349 -0
- package/dist/presence-DD3l4Tgb.cjs +60 -0
- package/dist/presence-jaHZaD_O.js +43 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +3 -0
- package/dist/presence.d.ts +3 -0
- package/dist/presence.js +3 -0
- package/dist/progress.cjs +270 -0
- package/dist/progress.d.cts +229 -0
- package/dist/progress.d.ts +229 -0
- package/dist/progress.js +245 -0
- package/dist/providers-5QhcwgSd.cjs +190 -0
- package/dist/providers-C3XQH-uu.js +119 -0
- package/dist/qr-code.cjs +195 -0
- package/dist/qr-code.d.cts +157 -0
- package/dist/qr-code.d.ts +157 -0
- package/dist/qr-code.js +174 -0
- package/dist/radio-group.cjs +274 -0
- package/dist/radio-group.d.cts +230 -0
- package/dist/radio-group.d.ts +230 -0
- package/dist/radio-group.js +249 -0
- package/dist/rating-group.cjs +243 -0
- package/dist/rating-group.d.cts +200 -0
- package/dist/rating-group.d.ts +200 -0
- package/dist/rating-group.js +220 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +206 -0
- package/dist/scroll-area.d.cts +169 -0
- package/dist/scroll-area.d.ts +169 -0
- package/dist/scroll-area.js +184 -0
- package/dist/segment-group.cjs +318 -0
- package/dist/segment-group.d.cts +229 -0
- package/dist/segment-group.d.ts +229 -0
- package/dist/segment-group.js +298 -0
- package/dist/select.cjs +560 -0
- package/dist/select.d.cts +430 -0
- package/dist/select.d.ts +430 -0
- package/dist/select.js +523 -0
- package/dist/signature-pad.cjs +260 -0
- package/dist/signature-pad.d.cts +200 -0
- package/dist/signature-pad.d.ts +200 -0
- package/dist/signature-pad.js +237 -0
- package/dist/slider.cjs +350 -0
- package/dist/slider.d.cts +299 -0
- package/dist/slider.d.ts +299 -0
- package/dist/slider.js +323 -0
- package/dist/splitter.cjs +225 -0
- package/dist/splitter.d.cts +166 -0
- package/dist/splitter.d.ts +166 -0
- package/dist/splitter.js +198 -0
- package/dist/steps.cjs +348 -0
- package/dist/steps.d.cts +289 -0
- package/dist/steps.d.ts +289 -0
- package/dist/steps.js +319 -0
- package/dist/swap.cjs +154 -0
- package/dist/swap.d.cts +98 -0
- package/dist/swap.d.ts +98 -0
- package/dist/swap.js +141 -0
- package/dist/switch.cjs +213 -0
- package/dist/switch.d.cts +177 -0
- package/dist/switch.d.ts +177 -0
- package/dist/switch.js +192 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +179 -0
- package/dist/tabs.d.ts +179 -0
- package/dist/tabs.js +218 -0
- package/dist/tags-input.cjs +405 -0
- package/dist/tags-input.d.cts +340 -0
- package/dist/tags-input.d.ts +340 -0
- package/dist/tags-input.js +376 -0
- package/dist/timer.cjs +221 -0
- package/dist/timer.d.cts +176 -0
- package/dist/timer.d.ts +176 -0
- package/dist/timer.js +199 -0
- package/dist/toast.cjs +211 -0
- package/dist/toast.d.cts +157 -0
- package/dist/toast.d.ts +157 -0
- package/dist/toast.js +189 -0
- package/dist/toggle-group.cjs +150 -0
- package/dist/toggle-group.d.cts +122 -0
- package/dist/toggle-group.d.ts +122 -0
- package/dist/toggle-group.js +132 -0
- package/dist/toggle.cjs +107 -0
- package/dist/toggle.d.cts +98 -0
- package/dist/toggle.d.ts +98 -0
- package/dist/toggle.js +94 -0
- package/dist/tooltip.cjs +265 -0
- package/dist/tooltip.d.cts +204 -0
- package/dist/tooltip.d.ts +204 -0
- package/dist/tooltip.js +242 -0
- package/dist/tour.cjs +418 -0
- package/dist/tour.d.cts +304 -0
- package/dist/tour.d.ts +304 -0
- package/dist/tour.js +374 -0
- package/dist/tree-view-CWH9tv7s.cjs +651 -0
- package/dist/tree-view-CZcXMwi6.js +508 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-rSRkzyd6.d.cts +13 -0
- package/dist/types-rSRkzyd6.d.ts +13 -0
- package/dist/use-presence-BSp_dR-C.d.cts +22 -0
- package/dist/use-presence-CtEY6ZT8.cjs +49 -0
- package/dist/use-presence-DkGU_j9h.d.ts +22 -0
- package/dist/use-presence-oNdFU2c2.js +42 -0
- package/dist/utils-D95V66v9.js +548 -0
- package/dist/utils-XrBZd2Yk.cjs +625 -0
- package/package.json +278 -6
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { l as PropTypes, o as Optional } from "./index-BSoF1D-v.js";
|
|
3
|
+
import { ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import { Orientation } from "@wirekyt/dom/types";
|
|
5
|
+
import * as scrollArea from "@wirekyt/dom/machines/scroll-area";
|
|
6
|
+
import { ElementIds, ElementIds as ScrollAreaElementIds, ScrollToDetails, ScrollToDetails as ScrollAreaScrollToDetails, ScrollToEdge as ScrollAreaScrollToEdge, ScrollToEdgeDetails, ScrollToEdgeDetails as ScrollAreaScrollToEdgeDetails, ScrollbarState as ScrollAreaScrollbarState, anatomy as scrollAreaAnatomy } from "@wirekyt/dom/machines/scroll-area";
|
|
7
|
+
//#region src/components/scroll-area/use-scroll-area.d.ts
|
|
8
|
+
interface UseScrollAreaProps extends Optional<Omit<scrollArea.Props, "dir" | "getRootNode">, "id"> {}
|
|
9
|
+
interface UseScrollAreaReturn extends ComputedRef<scrollArea.Api<PropTypes>> {}
|
|
10
|
+
declare const useScrollArea: (props?: MaybeRef<UseScrollAreaProps>) => UseScrollAreaReturn;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/scroll-area/use-context.d.ts
|
|
13
|
+
interface UseScrollAreaContext extends UseScrollAreaReturn {}
|
|
14
|
+
declare const ScrollAreaProvider: (opts: UseScrollAreaContext) => void, useScrollAreaContext: (fallback?: UseScrollAreaContext | undefined) => UseScrollAreaContext;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/scroll-area/context.vue.d.ts
|
|
17
|
+
interface ScrollAreaContextProps extends SlotsType<{
|
|
18
|
+
default: UnwrapRef<UseScrollAreaContext>;
|
|
19
|
+
}> {}
|
|
20
|
+
declare const _default$1: typeof __VLS_export$7;
|
|
21
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
22
|
+
default(scrollArea: UnwrapRef<UseScrollAreaContext>): unknown;
|
|
23
|
+
}>;
|
|
24
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/scroll-area/content.vue.d.ts
|
|
31
|
+
interface ScrollAreaContentBaseProps extends PolymorphicProps {}
|
|
32
|
+
interface ScrollAreaContentProps extends ScrollAreaContentBaseProps,
|
|
33
|
+
/**
|
|
34
|
+
* @vue-ignore
|
|
35
|
+
*/
|
|
36
|
+
HTMLAttributes {}
|
|
37
|
+
declare const _default: typeof __VLS_export$6;
|
|
38
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<ScrollAreaContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
39
|
+
default?: (props: {}) => any;
|
|
40
|
+
}>;
|
|
41
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/scroll-area/corner.vue.d.ts
|
|
48
|
+
interface ScrollAreaCornerBaseProps extends PolymorphicProps {}
|
|
49
|
+
interface ScrollAreaCornerProps extends ScrollAreaCornerBaseProps,
|
|
50
|
+
/**
|
|
51
|
+
* @vue-ignore
|
|
52
|
+
*/
|
|
53
|
+
HTMLAttributes {}
|
|
54
|
+
declare const _default$2: typeof __VLS_export$5;
|
|
55
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<ScrollAreaCornerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaCornerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
56
|
+
default?: (props: {}) => any;
|
|
57
|
+
}>;
|
|
58
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/scroll-area/types.d.ts
|
|
65
|
+
interface RootProps {
|
|
66
|
+
id?: string;
|
|
67
|
+
ids?: Partial<{
|
|
68
|
+
root: string;
|
|
69
|
+
viewport: string;
|
|
70
|
+
content: string;
|
|
71
|
+
scrollbar: string;
|
|
72
|
+
thumb: string;
|
|
73
|
+
}>;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/scroll-area/root.vue.d.ts
|
|
77
|
+
interface ScrollAreaRootBaseProps extends RootProps, PolymorphicProps {}
|
|
78
|
+
interface ScrollAreaRootProps extends ScrollAreaRootBaseProps,
|
|
79
|
+
/**
|
|
80
|
+
* @vue-ignore
|
|
81
|
+
*/
|
|
82
|
+
HTMLAttributes {}
|
|
83
|
+
declare const _default$3: typeof __VLS_export$4;
|
|
84
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<ScrollAreaRootBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaRootBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
85
|
+
default?: (props: {}) => any;
|
|
86
|
+
}>;
|
|
87
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/scroll-area/root-provider.vue.d.ts
|
|
94
|
+
interface ScrollAreaRootProviderBaseProps extends PolymorphicProps {
|
|
95
|
+
value: UnwrapRef<UseScrollAreaContext>;
|
|
96
|
+
}
|
|
97
|
+
interface ScrollAreaRootProviderProps extends ScrollAreaRootProviderBaseProps,
|
|
98
|
+
/**
|
|
99
|
+
* @vue-ignore
|
|
100
|
+
*/
|
|
101
|
+
Omit<HTMLAttributes, "value"> {}
|
|
102
|
+
declare const _default$4: typeof __VLS_export$3;
|
|
103
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<ScrollAreaRootProviderBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaRootProviderBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
104
|
+
default?: (props: {}) => any;
|
|
105
|
+
}>;
|
|
106
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
107
|
+
new (): {
|
|
108
|
+
$slots: S;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/components/scroll-area/scrollbar.vue.d.ts
|
|
113
|
+
interface ScrollbarProps {
|
|
114
|
+
orientation?: Orientation;
|
|
115
|
+
}
|
|
116
|
+
interface ScrollAreaScrollbarBaseProps extends ScrollbarProps, PolymorphicProps {}
|
|
117
|
+
interface ScrollAreaScrollbarProps extends ScrollAreaScrollbarBaseProps,
|
|
118
|
+
/**
|
|
119
|
+
* @vue-ignore
|
|
120
|
+
*/
|
|
121
|
+
HTMLAttributes {}
|
|
122
|
+
declare const _default$5: typeof __VLS_export$2;
|
|
123
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<ScrollAreaScrollbarBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaScrollbarBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
124
|
+
default?: (props: {}) => any;
|
|
125
|
+
}>;
|
|
126
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
127
|
+
new (): {
|
|
128
|
+
$slots: S;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/components/scroll-area/thumb.vue.d.ts
|
|
133
|
+
interface ScrollAreaThumbBaseProps extends PolymorphicProps {}
|
|
134
|
+
interface ScrollAreaThumbProps extends ScrollAreaThumbBaseProps,
|
|
135
|
+
/**
|
|
136
|
+
* @vue-ignore
|
|
137
|
+
*/
|
|
138
|
+
HTMLAttributes {}
|
|
139
|
+
declare const _default$6: typeof __VLS_export$1;
|
|
140
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<ScrollAreaThumbBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaThumbBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
141
|
+
default?: (props: {}) => any;
|
|
142
|
+
}>;
|
|
143
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
144
|
+
new (): {
|
|
145
|
+
$slots: S;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/components/scroll-area/viewport.vue.d.ts
|
|
150
|
+
interface ScrollAreaViewportBaseProps extends PolymorphicProps {}
|
|
151
|
+
interface ScrollAreaViewportProps extends ScrollAreaViewportBaseProps,
|
|
152
|
+
/**
|
|
153
|
+
* @vue-ignore
|
|
154
|
+
*/
|
|
155
|
+
HTMLAttributes {}
|
|
156
|
+
declare const _default$7: typeof __VLS_export;
|
|
157
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ScrollAreaViewportProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaViewportProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
158
|
+
default?: (props: {}) => any;
|
|
159
|
+
}>;
|
|
160
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
161
|
+
new (): {
|
|
162
|
+
$slots: S;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
declare namespace scroll_area_d_exports {
|
|
166
|
+
export { _default as Content, ScrollAreaContentBaseProps as ContentBaseProps, ScrollAreaContentProps as ContentProps, _default$1 as Context, ScrollAreaContextProps as ContextProps, _default$2 as Corner, ScrollAreaCornerBaseProps as CornerBaseProps, ScrollAreaCornerProps as CornerProps, ElementIds, _default$3 as Root, ScrollAreaRootBaseProps as RootBaseProps, ScrollAreaRootProps as RootProps, _default$4 as RootProvider, ScrollAreaRootProviderBaseProps as RootProviderBaseProps, ScrollAreaRootProviderProps as RootProviderProps, ScrollToDetails, ScrollToEdgeDetails, _default$5 as Scrollbar, ScrollAreaScrollbarBaseProps as ScrollbarBaseProps, ScrollAreaScrollbarProps as ScrollbarProps, _default$6 as Thumb, ScrollAreaThumbBaseProps as ThumbBaseProps, ScrollAreaThumbProps as ThumbProps, _default$7 as Viewport, ScrollAreaViewportBaseProps as ViewportBaseProps, ScrollAreaViewportProps as ViewportProps };
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
export { scroll_area_d_exports as ScrollArea, _default as ScrollAreaContent, type ScrollAreaContentBaseProps, type ScrollAreaContentProps, _default$1 as ScrollAreaContext, type ScrollAreaContextProps, _default$2 as ScrollAreaCorner, type ScrollAreaCornerBaseProps, type ScrollAreaCornerProps, type ScrollAreaElementIds, _default$3 as ScrollAreaRoot, type ScrollAreaRootBaseProps, type ScrollAreaRootProps, _default$4 as ScrollAreaRootProvider, type ScrollAreaRootProviderBaseProps, type ScrollAreaRootProviderProps, type ScrollAreaScrollToDetails, type ScrollAreaScrollToEdge, type ScrollAreaScrollToEdgeDetails, _default$5 as ScrollAreaScrollbar, type ScrollAreaScrollbarBaseProps, type ScrollAreaScrollbarProps, type ScrollAreaScrollbarState, _default$6 as ScrollAreaThumb, type ScrollAreaThumbBaseProps, type ScrollAreaThumbProps, _default$7 as ScrollAreaViewport, type ScrollAreaViewportBaseProps, type ScrollAreaViewportProps, type UseScrollAreaContext, type UseScrollAreaProps, type UseScrollAreaReturn, scrollAreaAnatomy, useScrollArea, useScrollAreaContext };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { c as normalizeProps$1, d as useForwardExpose, m as createContext, s as useMachine } from "./utils-D95V66v9.js";
|
|
3
|
+
import { a as DEFAULT_LOCALE, d as useEnvironmentContext, o as useLocaleContext, u as DEFAULT_ENVIRONMENT } from "./providers-C3XQH-uu.js";
|
|
4
|
+
import { t as cleanProps } from "./clean-props--1kqQE0Y.js";
|
|
5
|
+
import { n as wire } from "./factory-8Ao0DEy3.js";
|
|
6
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useId, withCtx } from "vue";
|
|
7
|
+
import * as scrollArea from "@wirekyt/dom/machines/scroll-area";
|
|
8
|
+
import { anatomy as scrollAreaAnatomy } from "@wirekyt/dom/machines/scroll-area";
|
|
9
|
+
//#region src/components/scroll-area/use-context.ts
|
|
10
|
+
const [ScrollAreaProvider, useScrollAreaContext] = createContext("ScrollAreaContext");
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/scroll-area/context.vue
|
|
13
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
14
|
+
__name: "context",
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const scrollArea = useScrollAreaContext();
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(scrollArea))));
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/scroll-area/content.vue
|
|
24
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
25
|
+
__name: "content",
|
|
26
|
+
props: { asChild: { type: Boolean } },
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const scrollArea = useScrollAreaContext();
|
|
29
|
+
useForwardExpose();
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(scrollArea).getContentProps(), { "as-child": __props.asChild }), {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16, ["as-child"]);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/scroll-area/corner.vue
|
|
40
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
41
|
+
__name: "corner",
|
|
42
|
+
props: { asChild: { type: Boolean } },
|
|
43
|
+
setup(__props) {
|
|
44
|
+
const scrollArea = useScrollAreaContext();
|
|
45
|
+
useForwardExpose();
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(scrollArea).getCornerProps(), { "as-child": __props.asChild }), {
|
|
48
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
49
|
+
_: 3
|
|
50
|
+
}, 16, ["as-child"]);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/scroll-area/use-scroll-area.ts
|
|
56
|
+
const useScrollArea = (props = {}) => {
|
|
57
|
+
const id = useId();
|
|
58
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
59
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
60
|
+
const context = computed(() => {
|
|
61
|
+
const localProps = toValue(props);
|
|
62
|
+
return {
|
|
63
|
+
id,
|
|
64
|
+
dir: locale.value.dir,
|
|
65
|
+
getRootNode: env?.value.getRootNode,
|
|
66
|
+
...cleanProps(localProps)
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
const service = useMachine(scrollArea.machine, context);
|
|
70
|
+
return computed(() => scrollArea.connect(service, normalizeProps$1));
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/scroll-area/root.vue
|
|
74
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
75
|
+
__name: "root",
|
|
76
|
+
props: {
|
|
77
|
+
id: {},
|
|
78
|
+
ids: {},
|
|
79
|
+
asChild: { type: Boolean }
|
|
80
|
+
},
|
|
81
|
+
setup(__props) {
|
|
82
|
+
const scrollArea = useScrollArea(__props);
|
|
83
|
+
ScrollAreaProvider(scrollArea);
|
|
84
|
+
useForwardExpose();
|
|
85
|
+
return (_ctx, _cache) => {
|
|
86
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(scrollArea).getRootProps(), { "as-child": __props.asChild }), {
|
|
87
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
88
|
+
_: 3
|
|
89
|
+
}, 16, ["as-child"]);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/components/scroll-area/root-provider.vue
|
|
95
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
96
|
+
__name: "root-provider",
|
|
97
|
+
props: {
|
|
98
|
+
value: {},
|
|
99
|
+
asChild: { type: Boolean }
|
|
100
|
+
},
|
|
101
|
+
setup(__props) {
|
|
102
|
+
const props = __props;
|
|
103
|
+
const scrollArea = computed(() => props.value);
|
|
104
|
+
ScrollAreaProvider(scrollArea);
|
|
105
|
+
useForwardExpose();
|
|
106
|
+
return (_ctx, _cache) => {
|
|
107
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(scrollArea.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
108
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
109
|
+
_: 3
|
|
110
|
+
}, 16, ["as-child"]);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/scroll-area/use-scrollbar-props-context.ts
|
|
116
|
+
const [ScrollAreaScrollbarPropsProvider, useScrollAreaScrollbarPropsContext] = createContext("ScrollAreaScrollbarPropsContext");
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/scroll-area/scrollbar.vue
|
|
119
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
120
|
+
__name: "scrollbar",
|
|
121
|
+
props: {
|
|
122
|
+
orientation: {},
|
|
123
|
+
asChild: { type: Boolean }
|
|
124
|
+
},
|
|
125
|
+
setup(__props) {
|
|
126
|
+
const props = __props;
|
|
127
|
+
const scrollArea = useScrollAreaContext();
|
|
128
|
+
ScrollAreaScrollbarPropsProvider(computed(() => props));
|
|
129
|
+
useForwardExpose();
|
|
130
|
+
return (_ctx, _cache) => {
|
|
131
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(scrollArea).getScrollbarProps({ orientation: props.orientation }), { "as-child": __props.asChild }), {
|
|
132
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
133
|
+
_: 3
|
|
134
|
+
}, 16, ["as-child"]);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/components/scroll-area/thumb.vue
|
|
140
|
+
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
141
|
+
__name: "thumb",
|
|
142
|
+
props: { asChild: { type: Boolean } },
|
|
143
|
+
setup(__props) {
|
|
144
|
+
const scrollArea = useScrollAreaContext();
|
|
145
|
+
const scrollbarProps = useScrollAreaScrollbarPropsContext();
|
|
146
|
+
useForwardExpose();
|
|
147
|
+
return (_ctx, _cache) => {
|
|
148
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(scrollArea).getThumbProps(unref(scrollbarProps)), { "as-child": __props.asChild }), {
|
|
149
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
150
|
+
_: 3
|
|
151
|
+
}, 16, ["as-child"]);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/components/scroll-area/viewport.vue
|
|
157
|
+
const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
158
|
+
__name: "viewport",
|
|
159
|
+
props: { asChild: { type: Boolean } },
|
|
160
|
+
setup(__props) {
|
|
161
|
+
const scrollArea = useScrollAreaContext();
|
|
162
|
+
useForwardExpose();
|
|
163
|
+
return (_ctx, _cache) => {
|
|
164
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(scrollArea).getViewportProps(), { "as-child": __props.asChild }), {
|
|
165
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
166
|
+
_: 3
|
|
167
|
+
}, 16, ["as-child"]);
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/components/scroll-area/scroll-area.ts
|
|
173
|
+
var scroll_area_exports = /* @__PURE__ */ __exportAll({
|
|
174
|
+
Content: () => _sfc_main,
|
|
175
|
+
Context: () => _sfc_main$1,
|
|
176
|
+
Corner: () => _sfc_main$2,
|
|
177
|
+
Root: () => _sfc_main$3,
|
|
178
|
+
RootProvider: () => _sfc_main$4,
|
|
179
|
+
Scrollbar: () => _sfc_main$5,
|
|
180
|
+
Thumb: () => _sfc_main$6,
|
|
181
|
+
Viewport: () => _sfc_main$7
|
|
182
|
+
});
|
|
183
|
+
//#endregion
|
|
184
|
+
export { scroll_area_exports as ScrollArea, _sfc_main as ScrollAreaContent, _sfc_main$1 as ScrollAreaContext, _sfc_main$2 as ScrollAreaCorner, _sfc_main$3 as ScrollAreaRoot, _sfc_main$4 as ScrollAreaRootProvider, _sfc_main$5 as ScrollAreaScrollbar, _sfc_main$6 as ScrollAreaThumb, _sfc_main$7 as ScrollAreaViewport, scrollAreaAnatomy, useScrollArea, useScrollAreaContext };
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
3
|
+
const require_utils = require("./utils-XrBZd2Yk.cjs");
|
|
4
|
+
const require_providers = require("./providers-5QhcwgSd.cjs");
|
|
5
|
+
const require_clean_props = require("./clean-props-MyKqus13.cjs");
|
|
6
|
+
const require_factory = require("./factory-JL7MPjkk.cjs");
|
|
7
|
+
let vue = require("vue");
|
|
8
|
+
let _wirekyt_dom_machines_radio_group = require("@wirekyt/dom/machines/radio-group");
|
|
9
|
+
_wirekyt_dom_machines_radio_group = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_radio_group, 1);
|
|
10
|
+
//#region src/components/segment-group/use-context.ts
|
|
11
|
+
const [SegmentGroupProvider, useSegmentGroupContext] = require_utils.createContext("SegmentGroupContext");
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/segment-group/context.vue
|
|
14
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
15
|
+
__name: "context",
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const segmentGroup = useSegmentGroupContext();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(segmentGroup))));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/segment-group/anatomy.ts
|
|
25
|
+
const segmentGroupAnatomy = _wirekyt_dom_machines_radio_group.anatomy.rename("segment-group");
|
|
26
|
+
const parts = segmentGroupAnatomy.build();
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/segment-group/indicator.vue
|
|
29
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
30
|
+
__name: "indicator",
|
|
31
|
+
props: { asChild: { type: Boolean } },
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const segmentGroup = useSegmentGroupContext();
|
|
34
|
+
require_utils.useForwardExpose();
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(segmentGroup).getIndicatorProps(), {
|
|
37
|
+
"as-child": __props.asChild,
|
|
38
|
+
"data-scope": (0, vue.unref)(parts).indicator.attrs["data-scope"],
|
|
39
|
+
"data-part": (0, vue.unref)(parts).indicator.attrs["data-part"]
|
|
40
|
+
}), {
|
|
41
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 16, [
|
|
44
|
+
"as-child",
|
|
45
|
+
"data-scope",
|
|
46
|
+
"data-part"
|
|
47
|
+
]);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/components/segment-group/use-item-context.ts
|
|
53
|
+
const [SegmentGroupItemProvider, useSegmentGroupItemContext] = require_utils.createContext("SegmentGroupItemContext");
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/segment-group/item-context.vue
|
|
56
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
57
|
+
__name: "item-context",
|
|
58
|
+
setup(__props) {
|
|
59
|
+
const item = useSegmentGroupItemContext();
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(item))));
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/segment-group/use-item-props-context.ts
|
|
67
|
+
const [SegmentGroupItemPropsProvider, useSegmentGroupItemPropsContext] = require_utils.createContext("SegmentGroupItemPropsContext");
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/segment-group/item-control.vue
|
|
70
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
71
|
+
__name: "item-control",
|
|
72
|
+
props: { asChild: { type: Boolean } },
|
|
73
|
+
setup(__props) {
|
|
74
|
+
const segmentGroup = useSegmentGroupContext();
|
|
75
|
+
const itemProps = useSegmentGroupItemPropsContext();
|
|
76
|
+
require_utils.useForwardExpose();
|
|
77
|
+
return (_ctx, _cache) => {
|
|
78
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(segmentGroup).getItemControlProps((0, vue.unref)(itemProps)), {
|
|
79
|
+
"as-child": __props.asChild,
|
|
80
|
+
"data-scope": (0, vue.unref)(parts).itemControl.attrs["data-scope"],
|
|
81
|
+
"data-part": (0, vue.unref)(parts).itemControl.attrs["data-part"]
|
|
82
|
+
}), {
|
|
83
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 16, [
|
|
86
|
+
"as-child",
|
|
87
|
+
"data-scope",
|
|
88
|
+
"data-part"
|
|
89
|
+
]);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/components/segment-group/item-hidden-input.vue
|
|
95
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
96
|
+
__name: "item-hidden-input",
|
|
97
|
+
props: { asChild: { type: Boolean } },
|
|
98
|
+
setup(__props) {
|
|
99
|
+
const segmentGroup = useSegmentGroupContext();
|
|
100
|
+
const itemProps = useSegmentGroupItemPropsContext();
|
|
101
|
+
require_utils.useForwardExpose();
|
|
102
|
+
return (_ctx, _cache) => {
|
|
103
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).input, (0, vue.mergeProps)((0, vue.unref)(segmentGroup).getItemHiddenInputProps((0, vue.unref)(itemProps)), { "as-child": __props.asChild }), {
|
|
104
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
105
|
+
_: 3
|
|
106
|
+
}, 16, ["as-child"]);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/components/segment-group/item-text.vue
|
|
112
|
+
const _sfc_main$6 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
113
|
+
__name: "item-text",
|
|
114
|
+
props: { asChild: { type: Boolean } },
|
|
115
|
+
setup(__props) {
|
|
116
|
+
const segmentGroup = useSegmentGroupContext();
|
|
117
|
+
const itemProps = useSegmentGroupItemPropsContext();
|
|
118
|
+
require_utils.useForwardExpose();
|
|
119
|
+
return (_ctx, _cache) => {
|
|
120
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).span, (0, vue.mergeProps)((0, vue.unref)(segmentGroup).getItemTextProps((0, vue.unref)(itemProps)), {
|
|
121
|
+
"data-scope": (0, vue.unref)(parts).itemText.attrs["data-scope"],
|
|
122
|
+
"data-part": (0, vue.unref)(parts).itemText.attrs["data-part"],
|
|
123
|
+
"as-child": __props.asChild
|
|
124
|
+
}), {
|
|
125
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
126
|
+
_: 3
|
|
127
|
+
}, 16, [
|
|
128
|
+
"data-scope",
|
|
129
|
+
"data-part",
|
|
130
|
+
"as-child"
|
|
131
|
+
]);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/components/segment-group/item.vue
|
|
137
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
138
|
+
__name: "item",
|
|
139
|
+
props: {
|
|
140
|
+
value: {},
|
|
141
|
+
disabled: { type: Boolean },
|
|
142
|
+
invalid: { type: Boolean },
|
|
143
|
+
asChild: { type: Boolean }
|
|
144
|
+
},
|
|
145
|
+
setup(__props) {
|
|
146
|
+
const props = __props;
|
|
147
|
+
const segmentGroup = useSegmentGroupContext();
|
|
148
|
+
SegmentGroupItemPropsProvider(props);
|
|
149
|
+
SegmentGroupItemProvider((0, vue.computed)(() => segmentGroup.value.getItemState(props)));
|
|
150
|
+
require_utils.useForwardExpose();
|
|
151
|
+
return (_ctx, _cache) => {
|
|
152
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).label, (0, vue.mergeProps)((0, vue.unref)(segmentGroup).getItemProps(props), {
|
|
153
|
+
"data-scope": (0, vue.unref)(parts).item.attrs["data-scope"],
|
|
154
|
+
"data-part": (0, vue.unref)(parts).item.attrs["data-part"],
|
|
155
|
+
"as-child": __props.asChild
|
|
156
|
+
}), {
|
|
157
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
158
|
+
_: 3
|
|
159
|
+
}, 16, [
|
|
160
|
+
"data-scope",
|
|
161
|
+
"data-part",
|
|
162
|
+
"as-child"
|
|
163
|
+
]);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/components/segment-group/label.vue
|
|
169
|
+
const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
170
|
+
__name: "label",
|
|
171
|
+
props: { asChild: { type: Boolean } },
|
|
172
|
+
setup(__props) {
|
|
173
|
+
const segmentGroup = useSegmentGroupContext();
|
|
174
|
+
require_utils.useForwardExpose();
|
|
175
|
+
return (_ctx, _cache) => {
|
|
176
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).span, (0, vue.mergeProps)((0, vue.unref)(segmentGroup).getLabelProps(), {
|
|
177
|
+
"as-child": __props.asChild,
|
|
178
|
+
"data-scope": (0, vue.unref)(parts).label.attrs["data-scope"],
|
|
179
|
+
"data-part": (0, vue.unref)(parts).label.attrs["data-part"]
|
|
180
|
+
}), {
|
|
181
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
182
|
+
_: 3
|
|
183
|
+
}, 16, [
|
|
184
|
+
"as-child",
|
|
185
|
+
"data-scope",
|
|
186
|
+
"data-part"
|
|
187
|
+
]);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/components/segment-group/root-provider.vue
|
|
193
|
+
const _sfc_main$9 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
194
|
+
__name: "root-provider",
|
|
195
|
+
props: {
|
|
196
|
+
value: {},
|
|
197
|
+
asChild: { type: Boolean }
|
|
198
|
+
},
|
|
199
|
+
setup(__props) {
|
|
200
|
+
const props = __props;
|
|
201
|
+
const segmentGroup = (0, vue.computed)(() => props.value);
|
|
202
|
+
SegmentGroupProvider(segmentGroup);
|
|
203
|
+
require_utils.useForwardExpose();
|
|
204
|
+
return (_ctx, _cache) => {
|
|
205
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)(segmentGroup.value.getRootProps(), {
|
|
206
|
+
"data-scope": (0, vue.unref)(parts).root.attrs["data-scope"],
|
|
207
|
+
"data-part": (0, vue.unref)(parts).root.attrs["data-part"],
|
|
208
|
+
"as-child": __props.asChild
|
|
209
|
+
}), {
|
|
210
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
211
|
+
_: 3
|
|
212
|
+
}, 16, [
|
|
213
|
+
"data-scope",
|
|
214
|
+
"data-part",
|
|
215
|
+
"as-child"
|
|
216
|
+
]);
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/components/segment-group/use-segment-group.ts
|
|
222
|
+
const useSegmentGroup = (props = {}, emit) => {
|
|
223
|
+
const id = (0, vue.useId)();
|
|
224
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
225
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
226
|
+
const context = (0, vue.computed)(() => {
|
|
227
|
+
const localProps = (0, vue.toValue)(props);
|
|
228
|
+
return {
|
|
229
|
+
id,
|
|
230
|
+
dir: locale.value.dir,
|
|
231
|
+
value: localProps.modelValue,
|
|
232
|
+
getRootNode: env?.value.getRootNode,
|
|
233
|
+
...require_clean_props.cleanProps(localProps),
|
|
234
|
+
onValueChange: (details) => {
|
|
235
|
+
emit?.("valueChange", details);
|
|
236
|
+
emit?.("update:modelValue", details.value);
|
|
237
|
+
localProps.onValueChange?.(details);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
});
|
|
241
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_radio_group.machine, context);
|
|
242
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_radio_group.connect(service, require_utils.normalizeProps));
|
|
243
|
+
};
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/components/segment-group/root.vue
|
|
246
|
+
const _sfc_main$8 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
247
|
+
__name: "root",
|
|
248
|
+
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
249
|
+
defaultValue: {},
|
|
250
|
+
disabled: { type: Boolean },
|
|
251
|
+
form: {},
|
|
252
|
+
id: {},
|
|
253
|
+
ids: {},
|
|
254
|
+
modelValue: {},
|
|
255
|
+
name: {},
|
|
256
|
+
orientation: {},
|
|
257
|
+
readOnly: { type: Boolean },
|
|
258
|
+
asChild: { type: Boolean }
|
|
259
|
+
}, {
|
|
260
|
+
disabled: void 0,
|
|
261
|
+
readOnly: void 0
|
|
262
|
+
}),
|
|
263
|
+
emits: ["valueChange", "update:modelValue"],
|
|
264
|
+
setup(__props, { emit: __emit }) {
|
|
265
|
+
const segmentGroup = useSegmentGroup(__props, __emit);
|
|
266
|
+
SegmentGroupProvider(segmentGroup);
|
|
267
|
+
require_utils.useForwardExpose();
|
|
268
|
+
return (_ctx, _cache) => {
|
|
269
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(segmentGroup).getRootProps(), {
|
|
270
|
+
"data-scope": (0, vue.unref)(parts).root.attrs["data-scope"],
|
|
271
|
+
"data-part": (0, vue.unref)(parts).root.attrs["data-part"],
|
|
272
|
+
"as-child": __props.asChild
|
|
273
|
+
}), {
|
|
274
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
275
|
+
_: 3
|
|
276
|
+
}, 16, [
|
|
277
|
+
"data-scope",
|
|
278
|
+
"data-part",
|
|
279
|
+
"as-child"
|
|
280
|
+
]);
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region src/components/segment-group/segment-group.ts
|
|
286
|
+
var segment_group_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
287
|
+
Context: () => _sfc_main,
|
|
288
|
+
Indicator: () => _sfc_main$1,
|
|
289
|
+
Item: () => _sfc_main$2,
|
|
290
|
+
ItemContext: () => _sfc_main$3,
|
|
291
|
+
ItemControl: () => _sfc_main$4,
|
|
292
|
+
ItemHiddenInput: () => _sfc_main$5,
|
|
293
|
+
ItemText: () => _sfc_main$6,
|
|
294
|
+
Label: () => _sfc_main$7,
|
|
295
|
+
Root: () => _sfc_main$8,
|
|
296
|
+
RootProvider: () => _sfc_main$9
|
|
297
|
+
});
|
|
298
|
+
//#endregion
|
|
299
|
+
Object.defineProperty(exports, "SegmentGroup", {
|
|
300
|
+
enumerable: true,
|
|
301
|
+
get: function() {
|
|
302
|
+
return segment_group_exports;
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
exports.SegmentGroupContext = _sfc_main;
|
|
306
|
+
exports.SegmentGroupIndicator = _sfc_main$1;
|
|
307
|
+
exports.SegmentGroupItem = _sfc_main$2;
|
|
308
|
+
exports.SegmentGroupItemContext = _sfc_main$3;
|
|
309
|
+
exports.SegmentGroupItemControl = _sfc_main$4;
|
|
310
|
+
exports.SegmentGroupItemHiddenInput = _sfc_main$5;
|
|
311
|
+
exports.SegmentGroupItemText = _sfc_main$6;
|
|
312
|
+
exports.SegmentGroupLabel = _sfc_main$7;
|
|
313
|
+
exports.SegmentGroupRoot = _sfc_main$8;
|
|
314
|
+
exports.SegmentGroupRootProvider = _sfc_main$9;
|
|
315
|
+
exports.segmentGroupAnatomy = segmentGroupAnatomy;
|
|
316
|
+
exports.useSegmentGroup = useSegmentGroup;
|
|
317
|
+
exports.useSegmentGroupContext = useSegmentGroupContext;
|
|
318
|
+
exports.useSegmentGroupItemContext = useSegmentGroupItemContext;
|