@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,275 @@
|
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
2
|
+
const require_utils = require("./utils-XrBZd2Yk.cjs");
|
|
3
|
+
const require_providers = require("./providers-5QhcwgSd.cjs");
|
|
4
|
+
const require_factory = require("./factory-JL7MPjkk.cjs");
|
|
5
|
+
let vue = require("vue");
|
|
6
|
+
let _wirekyt_dom_dom_query = require("@wirekyt/dom/dom-query");
|
|
7
|
+
let _wirekyt_dom_anatomy = require("@wirekyt/dom/anatomy");
|
|
8
|
+
//#region src/components/fieldset/use-context.ts
|
|
9
|
+
const [FieldsetProvider, useFieldsetContext] = require_utils.createContext("FieldsetContext");
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/fieldset/context.vue
|
|
12
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
13
|
+
__name: "context",
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const fieldset = useFieldsetContext();
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(fieldset))));
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/fieldset/error-text.vue
|
|
23
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
24
|
+
__name: "error-text",
|
|
25
|
+
props: { asChild: { type: Boolean } },
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const fieldset = useFieldsetContext();
|
|
28
|
+
require_utils.useForwardExpose();
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return (0, vue.unref)(fieldset).invalid ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).span, (0, vue.mergeProps)({ key: 0 }, (0, vue.unref)(fieldset).getErrorTextProps(), { "as-child": __props.asChild }), {
|
|
31
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 16, ["as-child"])) : (0, vue.createCommentVNode)("v-if", true);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/fieldset/helper-text.vue
|
|
39
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
40
|
+
__name: "helper-text",
|
|
41
|
+
props: { asChild: { type: Boolean } },
|
|
42
|
+
setup(__props) {
|
|
43
|
+
const fieldset = useFieldsetContext();
|
|
44
|
+
require_utils.useForwardExpose();
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).span, (0, vue.mergeProps)((0, vue.unref)(fieldset).getHelperTextProps(), { "as-child": __props.asChild }), {
|
|
47
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 16, ["as-child"]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/components/fieldset/legend.vue
|
|
55
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
56
|
+
__name: "legend",
|
|
57
|
+
props: { asChild: { type: Boolean } },
|
|
58
|
+
setup(__props) {
|
|
59
|
+
const fieldset = useFieldsetContext();
|
|
60
|
+
require_utils.useForwardExpose();
|
|
61
|
+
return (_ctx, _cache) => {
|
|
62
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).legend, (0, vue.mergeProps)((0, vue.unref)(fieldset).getLegendProps(), { "as-child": __props.asChild }), {
|
|
63
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
64
|
+
_: 3
|
|
65
|
+
}, 16, ["as-child"]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/components/fieldset/root-provider.vue
|
|
71
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
72
|
+
__name: "root-provider",
|
|
73
|
+
props: {
|
|
74
|
+
value: {},
|
|
75
|
+
asChild: { type: Boolean }
|
|
76
|
+
},
|
|
77
|
+
setup(__props) {
|
|
78
|
+
const props = __props;
|
|
79
|
+
const fieldset = (0, vue.computed)(() => props.value);
|
|
80
|
+
FieldsetProvider(fieldset);
|
|
81
|
+
require_utils.useForwardExpose();
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).fieldset, (0, vue.mergeProps)(fieldset.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
84
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 16, ["as-child"]);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/fieldset/anatomy.ts
|
|
92
|
+
const fieldsetAnatomy = (0, _wirekyt_dom_anatomy.createAnatomy)("fieldset").parts("root", "errorText", "helperText", "legend");
|
|
93
|
+
const parts = fieldsetAnatomy.build();
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/fieldset/use-fieldset.ts
|
|
96
|
+
const useFieldset = (props = {}) => {
|
|
97
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
98
|
+
const state = (0, vue.reactive)({
|
|
99
|
+
hasErrorText: false,
|
|
100
|
+
hasHelperText: false
|
|
101
|
+
});
|
|
102
|
+
const rootRef = (0, vue.ref)(null);
|
|
103
|
+
const uuid = (0, vue.useId)();
|
|
104
|
+
const ids = (0, vue.computed)(() => {
|
|
105
|
+
const id = (0, vue.toValue)(props).id ?? uuid;
|
|
106
|
+
return {
|
|
107
|
+
legendId: `fieldset::${id}::legend`,
|
|
108
|
+
errorTextId: `fieldset::${id}::error-text`,
|
|
109
|
+
helperTextId: `fieldset::${id}::helper-text`
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
(0, vue.onMounted)(() => {
|
|
113
|
+
const rootNode = require_utils.unrefElement(rootRef);
|
|
114
|
+
if (!rootNode) return;
|
|
115
|
+
const checkTextElements = () => {
|
|
116
|
+
const { errorTextId, helperTextId } = ids.value;
|
|
117
|
+
const docOrShadowRoot = env.value.getRootNode();
|
|
118
|
+
state.hasErrorText = !!docOrShadowRoot.getElementById(errorTextId);
|
|
119
|
+
state.hasHelperText = !!docOrShadowRoot.getElementById(helperTextId);
|
|
120
|
+
};
|
|
121
|
+
checkTextElements();
|
|
122
|
+
const observer = new (env.value.getWindow()).MutationObserver(checkTextElements);
|
|
123
|
+
observer.observe(rootNode, {
|
|
124
|
+
childList: true,
|
|
125
|
+
subtree: true
|
|
126
|
+
});
|
|
127
|
+
(0, vue.onBeforeUnmount)(() => {
|
|
128
|
+
observer.disconnect();
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
return (0, vue.computed)(() => {
|
|
132
|
+
const { disabled, invalid } = (0, vue.toValue)(props);
|
|
133
|
+
const { legendId, errorTextId, helperTextId } = ids.value;
|
|
134
|
+
const describedByIds = [];
|
|
135
|
+
if (state.hasErrorText && invalid) describedByIds.push(errorTextId);
|
|
136
|
+
if (state.hasHelperText) describedByIds.push(helperTextId);
|
|
137
|
+
const describedBy = describedByIds.length > 0 ? describedByIds.join(" ") : void 0;
|
|
138
|
+
const getRootProps = () => ({
|
|
139
|
+
...parts.root.attrs,
|
|
140
|
+
disabled,
|
|
141
|
+
"data-disabled": (0, _wirekyt_dom_dom_query.dataAttr)(!!disabled),
|
|
142
|
+
"data-invalid": (0, _wirekyt_dom_dom_query.dataAttr)(invalid),
|
|
143
|
+
"aria-labelledby": legendId,
|
|
144
|
+
"aria-describedby": describedBy
|
|
145
|
+
});
|
|
146
|
+
const getLegendProps = () => ({
|
|
147
|
+
id: legendId,
|
|
148
|
+
...parts.legend.attrs,
|
|
149
|
+
"data-disabled": (0, _wirekyt_dom_dom_query.dataAttr)(!!disabled),
|
|
150
|
+
"data-invalid": (0, _wirekyt_dom_dom_query.dataAttr)(invalid)
|
|
151
|
+
});
|
|
152
|
+
const getHelperTextProps = () => ({
|
|
153
|
+
id: helperTextId,
|
|
154
|
+
...parts.helperText.attrs
|
|
155
|
+
});
|
|
156
|
+
const getErrorTextProps = () => ({
|
|
157
|
+
id: errorTextId,
|
|
158
|
+
...parts.errorText.attrs,
|
|
159
|
+
"aria-live": "polite"
|
|
160
|
+
});
|
|
161
|
+
return {
|
|
162
|
+
refs: { rootRef },
|
|
163
|
+
ids: {
|
|
164
|
+
legend: legendId,
|
|
165
|
+
errorText: errorTextId,
|
|
166
|
+
helperText: helperTextId
|
|
167
|
+
},
|
|
168
|
+
disabled,
|
|
169
|
+
invalid,
|
|
170
|
+
getRootProps,
|
|
171
|
+
getLegendProps,
|
|
172
|
+
getHelperTextProps,
|
|
173
|
+
getErrorTextProps
|
|
174
|
+
};
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/components/fieldset/root.vue
|
|
179
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
180
|
+
__name: "root",
|
|
181
|
+
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
182
|
+
disabled: { type: [Boolean, String] },
|
|
183
|
+
id: {},
|
|
184
|
+
invalid: { type: Boolean },
|
|
185
|
+
asChild: { type: Boolean }
|
|
186
|
+
}, {
|
|
187
|
+
disabled: void 0,
|
|
188
|
+
invalid: void 0
|
|
189
|
+
}),
|
|
190
|
+
setup(__props) {
|
|
191
|
+
const fieldset = useFieldset(__props);
|
|
192
|
+
FieldsetProvider(fieldset);
|
|
193
|
+
require_utils.useForwardExpose();
|
|
194
|
+
return (_ctx, _cache) => {
|
|
195
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).fieldset, (0, vue.mergeProps)((0, vue.unref)(fieldset).getRootProps(), {
|
|
196
|
+
ref: (0, vue.unref)(fieldset).refs.rootRef,
|
|
197
|
+
"as-child": __props.asChild
|
|
198
|
+
}), {
|
|
199
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
200
|
+
_: 3
|
|
201
|
+
}, 16, ["as-child"]);
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/components/fieldset/fieldset.ts
|
|
207
|
+
var fieldset_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
208
|
+
Context: () => _sfc_main$5,
|
|
209
|
+
ErrorText: () => _sfc_main$4,
|
|
210
|
+
HelperText: () => _sfc_main$3,
|
|
211
|
+
Legend: () => _sfc_main$2,
|
|
212
|
+
Root: () => _sfc_main,
|
|
213
|
+
RootProvider: () => _sfc_main$1
|
|
214
|
+
});
|
|
215
|
+
//#endregion
|
|
216
|
+
Object.defineProperty(exports, "_sfc_main", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function() {
|
|
219
|
+
return _sfc_main;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "_sfc_main$1", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function() {
|
|
225
|
+
return _sfc_main$1;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "_sfc_main$2", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function() {
|
|
231
|
+
return _sfc_main$2;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "_sfc_main$3", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function() {
|
|
237
|
+
return _sfc_main$3;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "_sfc_main$4", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function() {
|
|
243
|
+
return _sfc_main$4;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "_sfc_main$5", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function() {
|
|
249
|
+
return _sfc_main$5;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(exports, "fieldsetAnatomy", {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function() {
|
|
255
|
+
return fieldsetAnatomy;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "fieldset_exports", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function() {
|
|
261
|
+
return fieldset_exports;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
Object.defineProperty(exports, "useFieldset", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function() {
|
|
267
|
+
return useFieldset;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "useFieldsetContext", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function() {
|
|
273
|
+
return useFieldsetContext;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_fieldset = require("./fieldset-C5aj6Ims.cjs");
|
|
3
|
+
Object.defineProperty(exports, "Fieldset", {
|
|
4
|
+
enumerable: true,
|
|
5
|
+
get: function() {
|
|
6
|
+
return require_fieldset.fieldset_exports;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
exports.FieldsetContext = require_fieldset._sfc_main$5;
|
|
10
|
+
exports.FieldsetErrorText = require_fieldset._sfc_main$4;
|
|
11
|
+
exports.FieldsetHelperText = require_fieldset._sfc_main$3;
|
|
12
|
+
exports.FieldsetLegend = require_fieldset._sfc_main$2;
|
|
13
|
+
exports.FieldsetRoot = require_fieldset._sfc_main;
|
|
14
|
+
exports.FieldsetRootProvider = require_fieldset._sfc_main$1;
|
|
15
|
+
exports.fieldsetAnatomy = require_fieldset.fieldsetAnatomy;
|
|
16
|
+
exports.useFieldset = require_fieldset.useFieldset;
|
|
17
|
+
exports.useFieldsetContext = require_fieldset.useFieldsetContext;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.cjs";
|
|
2
|
+
import { FieldsetHTMLAttributes, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
3
|
+
//#region src/components/fieldset/use-fieldset.d.ts
|
|
4
|
+
interface UseFieldsetProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
disabled?: boolean | "true" | "false";
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type UseFieldsetReturn = ReturnType<typeof useFieldset>;
|
|
10
|
+
declare const useFieldset: (props?: MaybeRef<UseFieldsetProps>) => import("vue").ComputedRef<{
|
|
11
|
+
refs: {
|
|
12
|
+
rootRef: import("vue").Ref<null, null>;
|
|
13
|
+
};
|
|
14
|
+
ids: {
|
|
15
|
+
legend: string;
|
|
16
|
+
errorText: string;
|
|
17
|
+
helperText: string;
|
|
18
|
+
};
|
|
19
|
+
disabled: boolean | "true" | "false" | undefined;
|
|
20
|
+
invalid: boolean | undefined;
|
|
21
|
+
getRootProps: () => FieldsetHTMLAttributes;
|
|
22
|
+
getLegendProps: () => {
|
|
23
|
+
"data-disabled": import("@wirekyt/dom/dom-query").Booleanish;
|
|
24
|
+
"data-invalid": import("@wirekyt/dom/dom-query").Booleanish;
|
|
25
|
+
"data-scope": string;
|
|
26
|
+
"data-part": string;
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
getHelperTextProps: () => {
|
|
30
|
+
"data-scope": string;
|
|
31
|
+
"data-part": string;
|
|
32
|
+
id: string;
|
|
33
|
+
};
|
|
34
|
+
getErrorTextProps: () => HTMLAttributes;
|
|
35
|
+
}>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/fieldset/use-context.d.ts
|
|
38
|
+
interface UseFieldsetContext extends UseFieldsetReturn {}
|
|
39
|
+
declare const FieldsetProvider: (opts: UseFieldsetContext) => void, useFieldsetContext: (fallback?: UseFieldsetContext | undefined) => UseFieldsetContext;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/fieldset/context.vue.d.ts
|
|
42
|
+
interface FieldsetContextProps extends SlotsType<{
|
|
43
|
+
default: UnwrapRef<UseFieldsetContext>;
|
|
44
|
+
}> {}
|
|
45
|
+
declare const _default: typeof __VLS_export$5;
|
|
46
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
47
|
+
default(fieldset: UnwrapRef<UseFieldsetContext>): unknown;
|
|
48
|
+
}>;
|
|
49
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/fieldset/error-text.vue.d.ts
|
|
56
|
+
interface FieldsetErrorTextBaseProps extends PolymorphicProps {}
|
|
57
|
+
interface FieldsetErrorTextProps extends FieldsetErrorTextBaseProps,
|
|
58
|
+
/**
|
|
59
|
+
* @vue-ignore
|
|
60
|
+
*/
|
|
61
|
+
HTMLAttributes {}
|
|
62
|
+
declare const _default$1: typeof __VLS_export$4;
|
|
63
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<FieldsetErrorTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetErrorTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
64
|
+
default?: (props: {}) => any;
|
|
65
|
+
}>;
|
|
66
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/fieldset/helper-text.vue.d.ts
|
|
73
|
+
interface FieldsetHelperTextBaseProps extends PolymorphicProps {}
|
|
74
|
+
interface FieldsetHelperTextProps extends FieldsetHelperTextBaseProps,
|
|
75
|
+
/**
|
|
76
|
+
* @vue-ignore
|
|
77
|
+
*/
|
|
78
|
+
HTMLAttributes {}
|
|
79
|
+
declare const _default$2: typeof __VLS_export$3;
|
|
80
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<FieldsetHelperTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetHelperTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
81
|
+
default?: (props: {}) => any;
|
|
82
|
+
}>;
|
|
83
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/fieldset/legend.vue.d.ts
|
|
90
|
+
interface FieldsetLegendBaseProps extends PolymorphicProps {}
|
|
91
|
+
interface FieldsetLegendProps extends FieldsetLegendBaseProps,
|
|
92
|
+
/**
|
|
93
|
+
* @vue-ignore
|
|
94
|
+
*/
|
|
95
|
+
HTMLAttributes {}
|
|
96
|
+
declare const _default$3: typeof __VLS_export$2;
|
|
97
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<FieldsetLegendProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetLegendProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
98
|
+
default?: (props: {}) => any;
|
|
99
|
+
}>;
|
|
100
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
101
|
+
new (): {
|
|
102
|
+
$slots: S;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/fieldset/root-provider.vue.d.ts
|
|
107
|
+
interface RootProviderProps {
|
|
108
|
+
value: UnwrapRef<UseFieldsetReturn>;
|
|
109
|
+
}
|
|
110
|
+
interface FieldsetRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
111
|
+
interface FieldsetRootProviderProps extends FieldsetRootProviderBaseProps,
|
|
112
|
+
/**
|
|
113
|
+
* @vue-ignore
|
|
114
|
+
*/
|
|
115
|
+
FieldsetHTMLAttributes {}
|
|
116
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
117
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<FieldsetRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
118
|
+
default?: (props: {}) => any;
|
|
119
|
+
}>;
|
|
120
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/fieldset/types.d.ts
|
|
127
|
+
interface RootProps {
|
|
128
|
+
disabled?: boolean | "true" | "false";
|
|
129
|
+
id?: string;
|
|
130
|
+
invalid?: boolean;
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/fieldset/root.vue.d.ts
|
|
134
|
+
interface FieldsetRootBaseProps extends RootProps, PolymorphicProps {}
|
|
135
|
+
interface FieldsetRootProps extends FieldsetRootBaseProps,
|
|
136
|
+
/**
|
|
137
|
+
* @vue-ignore
|
|
138
|
+
*/
|
|
139
|
+
FieldsetHTMLAttributes {}
|
|
140
|
+
declare const _default$4: typeof __VLS_export;
|
|
141
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<FieldsetRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetRootProps> & Readonly<{}>, {
|
|
142
|
+
disabled: boolean | "true" | "false";
|
|
143
|
+
invalid: boolean;
|
|
144
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
145
|
+
default?: (props: {}) => any;
|
|
146
|
+
}>;
|
|
147
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
148
|
+
new (): {
|
|
149
|
+
$slots: S;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/components/fieldset/anatomy.d.ts
|
|
154
|
+
declare const fieldsetAnatomy: import("@wirekyt/dom/anatomy").AnatomyInstance<"legend" | "root" | "errorText" | "helperText">;
|
|
155
|
+
declare namespace fieldset_d_exports {
|
|
156
|
+
export { _default as Context, FieldsetContextProps as ContextProps, _default$1 as ErrorText, FieldsetErrorTextBaseProps as ErrorTextBaseProps, FieldsetErrorTextProps as ErrorTextProps, _default$2 as HelperText, FieldsetHelperTextBaseProps as HelperTextBaseProps, FieldsetHelperTextProps as HelperTextProps, _default$3 as Legend, FieldsetLegendBaseProps as LegendBaseProps, FieldsetLegendProps as LegendProps, _default$4 as Root, FieldsetRootBaseProps as RootBaseProps, FieldsetRootProps as RootProps, _default$5 as RootProvider, FieldsetRootProviderBaseProps as RootProviderBaseProps, FieldsetRootProviderProps as RootProviderProps };
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
export { fieldset_d_exports as Fieldset, _default as FieldsetContext, type FieldsetContextProps, _default$1 as FieldsetErrorText, type FieldsetErrorTextBaseProps, type FieldsetErrorTextProps, _default$2 as FieldsetHelperText, type FieldsetHelperTextBaseProps, type FieldsetHelperTextProps, _default$3 as FieldsetLegend, type FieldsetLegendBaseProps, type FieldsetLegendProps, _default$4 as FieldsetRoot, type FieldsetRootBaseProps, type FieldsetRootProps, _default$5 as FieldsetRootProvider, type FieldsetRootProviderBaseProps, type FieldsetRootProviderProps, type UseFieldsetContext, type UseFieldsetProps, type UseFieldsetReturn, fieldsetAnatomy, useFieldset, useFieldsetContext };
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { FieldsetHTMLAttributes, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
3
|
+
//#region src/components/fieldset/use-fieldset.d.ts
|
|
4
|
+
interface UseFieldsetProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
disabled?: boolean | "true" | "false";
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type UseFieldsetReturn = ReturnType<typeof useFieldset>;
|
|
10
|
+
declare const useFieldset: (props?: MaybeRef<UseFieldsetProps>) => import("vue").ComputedRef<{
|
|
11
|
+
refs: {
|
|
12
|
+
rootRef: import("vue").Ref<null, null>;
|
|
13
|
+
};
|
|
14
|
+
ids: {
|
|
15
|
+
legend: string;
|
|
16
|
+
errorText: string;
|
|
17
|
+
helperText: string;
|
|
18
|
+
};
|
|
19
|
+
disabled: boolean | "true" | "false" | undefined;
|
|
20
|
+
invalid: boolean | undefined;
|
|
21
|
+
getRootProps: () => FieldsetHTMLAttributes;
|
|
22
|
+
getLegendProps: () => {
|
|
23
|
+
"data-disabled": import("@wirekyt/dom/dom-query").Booleanish;
|
|
24
|
+
"data-invalid": import("@wirekyt/dom/dom-query").Booleanish;
|
|
25
|
+
"data-scope": string;
|
|
26
|
+
"data-part": string;
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
getHelperTextProps: () => {
|
|
30
|
+
"data-scope": string;
|
|
31
|
+
"data-part": string;
|
|
32
|
+
id: string;
|
|
33
|
+
};
|
|
34
|
+
getErrorTextProps: () => HTMLAttributes;
|
|
35
|
+
}>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/fieldset/use-context.d.ts
|
|
38
|
+
interface UseFieldsetContext extends UseFieldsetReturn {}
|
|
39
|
+
declare const FieldsetProvider: (opts: UseFieldsetContext) => void, useFieldsetContext: (fallback?: UseFieldsetContext | undefined) => UseFieldsetContext;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/fieldset/context.vue.d.ts
|
|
42
|
+
interface FieldsetContextProps extends SlotsType<{
|
|
43
|
+
default: UnwrapRef<UseFieldsetContext>;
|
|
44
|
+
}> {}
|
|
45
|
+
declare const _default: typeof __VLS_export$5;
|
|
46
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
47
|
+
default(fieldset: UnwrapRef<UseFieldsetContext>): unknown;
|
|
48
|
+
}>;
|
|
49
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/fieldset/error-text.vue.d.ts
|
|
56
|
+
interface FieldsetErrorTextBaseProps extends PolymorphicProps {}
|
|
57
|
+
interface FieldsetErrorTextProps extends FieldsetErrorTextBaseProps,
|
|
58
|
+
/**
|
|
59
|
+
* @vue-ignore
|
|
60
|
+
*/
|
|
61
|
+
HTMLAttributes {}
|
|
62
|
+
declare const _default$1: typeof __VLS_export$4;
|
|
63
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<FieldsetErrorTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetErrorTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
64
|
+
default?: (props: {}) => any;
|
|
65
|
+
}>;
|
|
66
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/fieldset/helper-text.vue.d.ts
|
|
73
|
+
interface FieldsetHelperTextBaseProps extends PolymorphicProps {}
|
|
74
|
+
interface FieldsetHelperTextProps extends FieldsetHelperTextBaseProps,
|
|
75
|
+
/**
|
|
76
|
+
* @vue-ignore
|
|
77
|
+
*/
|
|
78
|
+
HTMLAttributes {}
|
|
79
|
+
declare const _default$2: typeof __VLS_export$3;
|
|
80
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<FieldsetHelperTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetHelperTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
81
|
+
default?: (props: {}) => any;
|
|
82
|
+
}>;
|
|
83
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/fieldset/legend.vue.d.ts
|
|
90
|
+
interface FieldsetLegendBaseProps extends PolymorphicProps {}
|
|
91
|
+
interface FieldsetLegendProps extends FieldsetLegendBaseProps,
|
|
92
|
+
/**
|
|
93
|
+
* @vue-ignore
|
|
94
|
+
*/
|
|
95
|
+
HTMLAttributes {}
|
|
96
|
+
declare const _default$3: typeof __VLS_export$2;
|
|
97
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<FieldsetLegendProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetLegendProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
98
|
+
default?: (props: {}) => any;
|
|
99
|
+
}>;
|
|
100
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
101
|
+
new (): {
|
|
102
|
+
$slots: S;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/fieldset/root-provider.vue.d.ts
|
|
107
|
+
interface RootProviderProps {
|
|
108
|
+
value: UnwrapRef<UseFieldsetReturn>;
|
|
109
|
+
}
|
|
110
|
+
interface FieldsetRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
111
|
+
interface FieldsetRootProviderProps extends FieldsetRootProviderBaseProps,
|
|
112
|
+
/**
|
|
113
|
+
* @vue-ignore
|
|
114
|
+
*/
|
|
115
|
+
FieldsetHTMLAttributes {}
|
|
116
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
117
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<FieldsetRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
118
|
+
default?: (props: {}) => any;
|
|
119
|
+
}>;
|
|
120
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/fieldset/types.d.ts
|
|
127
|
+
interface RootProps {
|
|
128
|
+
disabled?: boolean | "true" | "false";
|
|
129
|
+
id?: string;
|
|
130
|
+
invalid?: boolean;
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/fieldset/root.vue.d.ts
|
|
134
|
+
interface FieldsetRootBaseProps extends RootProps, PolymorphicProps {}
|
|
135
|
+
interface FieldsetRootProps extends FieldsetRootBaseProps,
|
|
136
|
+
/**
|
|
137
|
+
* @vue-ignore
|
|
138
|
+
*/
|
|
139
|
+
FieldsetHTMLAttributes {}
|
|
140
|
+
declare const _default$4: typeof __VLS_export;
|
|
141
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<FieldsetRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldsetRootProps> & Readonly<{}>, {
|
|
142
|
+
disabled: boolean | "true" | "false";
|
|
143
|
+
invalid: boolean;
|
|
144
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
145
|
+
default?: (props: {}) => any;
|
|
146
|
+
}>;
|
|
147
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
148
|
+
new (): {
|
|
149
|
+
$slots: S;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/components/fieldset/anatomy.d.ts
|
|
154
|
+
declare const fieldsetAnatomy: import("@wirekyt/dom/anatomy").AnatomyInstance<"legend" | "root" | "errorText" | "helperText">;
|
|
155
|
+
declare namespace fieldset_d_exports {
|
|
156
|
+
export { _default as Context, FieldsetContextProps as ContextProps, _default$1 as ErrorText, FieldsetErrorTextBaseProps as ErrorTextBaseProps, FieldsetErrorTextProps as ErrorTextProps, _default$2 as HelperText, FieldsetHelperTextBaseProps as HelperTextBaseProps, FieldsetHelperTextProps as HelperTextProps, _default$3 as Legend, FieldsetLegendBaseProps as LegendBaseProps, FieldsetLegendProps as LegendProps, _default$4 as Root, FieldsetRootBaseProps as RootBaseProps, FieldsetRootProps as RootProps, _default$5 as RootProvider, FieldsetRootProviderBaseProps as RootProviderBaseProps, FieldsetRootProviderProps as RootProviderProps };
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
export { fieldset_d_exports as Fieldset, _default as FieldsetContext, type FieldsetContextProps, _default$1 as FieldsetErrorText, type FieldsetErrorTextBaseProps, type FieldsetErrorTextProps, _default$2 as FieldsetHelperText, type FieldsetHelperTextBaseProps, type FieldsetHelperTextProps, _default$3 as FieldsetLegend, type FieldsetLegendBaseProps, type FieldsetLegendProps, _default$4 as FieldsetRoot, type FieldsetRootBaseProps, type FieldsetRootProps, _default$5 as FieldsetRootProvider, type FieldsetRootProviderBaseProps, type FieldsetRootProviderProps, type UseFieldsetContext, type UseFieldsetProps, type UseFieldsetReturn, fieldsetAnatomy, useFieldset, useFieldsetContext };
|
package/dist/fieldset.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as _sfc_main$5, c as _sfc_main$1, i as fieldsetAnatomy, l as _sfc_main, n as _sfc_main$4, o as _sfc_main$3, r as useFieldset, s as _sfc_main$2, t as fieldset_exports, u as useFieldsetContext } from "./fieldset-ByP_r1Uq.js";
|
|
2
|
+
export { fieldset_exports as Fieldset, _sfc_main as FieldsetContext, _sfc_main$1 as FieldsetErrorText, _sfc_main$2 as FieldsetHelperText, _sfc_main$3 as FieldsetLegend, _sfc_main$4 as FieldsetRoot, _sfc_main$5 as FieldsetRootProvider, fieldsetAnatomy, useFieldset, useFieldsetContext };
|