@hebium-ui/vue 0.0.0-stage → 0.1.0-alpha.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 +21 -0
- package/README.md +7 -2
- package/dist/_virtual/_/plugin-vue/export-helper.js +8 -0
- package/dist/components/alert/alert.js +108 -0
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert/alert.types.d.ts +31 -0
- package/dist/components/alert/alert.vue.d.ts +28 -0
- package/dist/components/alert/index.d.ts +3 -0
- package/dist/components/anchor/anchor.js +106 -0
- package/dist/components/anchor/anchor.js.map +1 -0
- package/dist/components/anchor/anchor.types.d.ts +31 -0
- package/dist/components/anchor/anchor.vue.d.ts +30 -0
- package/dist/components/anchor/index.d.ts +3 -0
- package/dist/components/avatar/avatar.js +111 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatar.types.d.ts +17 -0
- package/dist/components/avatar/avatar.vue.d.ts +17 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/blockquote/blockquote.js +82 -0
- package/dist/components/blockquote/blockquote.js.map +1 -0
- package/dist/components/blockquote/blockquote.types.d.ts +25 -0
- package/dist/components/blockquote/blockquote.vue.d.ts +27 -0
- package/dist/components/blockquote/index.d.ts +3 -0
- package/dist/components/button/button.js +106 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/button.types.d.ts +31 -0
- package/dist/components/button/button.vue.d.ts +30 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/checkbox/checkbox.js +124 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.types.d.ts +27 -0
- package/dist/components/checkbox/checkbox.vue.d.ts +29 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/code/code.js +84 -0
- package/dist/components/code/code.js.map +1 -0
- package/dist/components/code/code.types.d.ts +12 -0
- package/dist/components/code/code.vue.d.ts +30 -0
- package/dist/components/code/index.d.ts +3 -0
- package/dist/components/details/details.js +76 -0
- package/dist/components/details/details.js.map +1 -0
- package/dist/components/details/details.types.d.ts +19 -0
- package/dist/components/details/details.vue.d.ts +27 -0
- package/dist/components/details/index.d.ts +3 -0
- package/dist/components/dialog/dialog-close.js +100 -0
- package/dist/components/dialog/dialog-close.js.map +1 -0
- package/dist/components/dialog/dialog-close.vue.d.ts +27 -0
- package/dist/components/dialog/dialog-content.js +180 -0
- package/dist/components/dialog/dialog-content.js.map +1 -0
- package/dist/components/dialog/dialog-content.vue.d.ts +30 -0
- package/dist/components/dialog/dialog-trigger.js +105 -0
- package/dist/components/dialog/dialog-trigger.js.map +1 -0
- package/dist/components/dialog/dialog-trigger.vue.d.ts +31 -0
- package/dist/components/dialog/dialog.context.d.ts +5 -0
- package/dist/components/dialog/dialog.context.js +15 -0
- package/dist/components/dialog/dialog.context.js.map +1 -0
- package/dist/components/dialog/dialog.js +62 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/dialog.types.d.ts +73 -0
- package/dist/components/dialog/dialog.vue.d.ts +18 -0
- package/dist/components/dialog/index.d.ts +7 -0
- package/dist/components/dl/dl-dd.js +71 -0
- package/dist/components/dl/dl-dd.js.map +1 -0
- package/dist/components/dl/dl-dd.vue.d.ts +24 -0
- package/dist/components/dl/dl-dt.js +71 -0
- package/dist/components/dl/dl-dt.js.map +1 -0
- package/dist/components/dl/dl-dt.vue.d.ts +24 -0
- package/dist/components/dl/dl.js +71 -0
- package/dist/components/dl/dl.js.map +1 -0
- package/dist/components/dl/dl.types.d.ts +19 -0
- package/dist/components/dl/dl.vue.d.ts +24 -0
- package/dist/components/dl/index.d.ts +5 -0
- package/dist/components/drawer/drawer-close.js +100 -0
- package/dist/components/drawer/drawer-close.js.map +1 -0
- package/dist/components/drawer/drawer-close.vue.d.ts +27 -0
- package/dist/components/drawer/drawer-content.js +185 -0
- package/dist/components/drawer/drawer-content.js.map +1 -0
- package/dist/components/drawer/drawer-content.vue.d.ts +30 -0
- package/dist/components/drawer/drawer-trigger.js +96 -0
- package/dist/components/drawer/drawer-trigger.js.map +1 -0
- package/dist/components/drawer/drawer-trigger.vue.d.ts +31 -0
- package/dist/components/drawer/drawer.context.d.ts +5 -0
- package/dist/components/drawer/drawer.context.js +15 -0
- package/dist/components/drawer/drawer.context.js.map +1 -0
- package/dist/components/drawer/drawer.js +43 -0
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/drawer/drawer.types.d.ts +73 -0
- package/dist/components/drawer/drawer.vue.d.ts +16 -0
- package/dist/components/drawer/index.d.ts +7 -0
- package/dist/components/fieldset/fieldset.js +71 -0
- package/dist/components/fieldset/fieldset.js.map +1 -0
- package/dist/components/fieldset/fieldset.types.d.ts +11 -0
- package/dist/components/fieldset/fieldset.vue.d.ts +24 -0
- package/dist/components/fieldset/index.d.ts +3 -0
- package/dist/components/heading/heading.js +95 -0
- package/dist/components/heading/heading.js.map +1 -0
- package/dist/components/heading/heading.types.d.ts +25 -0
- package/dist/components/heading/heading.vue.d.ts +25 -0
- package/dist/components/heading/index.d.ts +3 -0
- package/dist/components/hr/hr.js +81 -0
- package/dist/components/hr/hr.js.map +1 -0
- package/dist/components/hr/hr.types.d.ts +12 -0
- package/dist/components/hr/hr.vue.d.ts +28 -0
- package/dist/components/hr/index.d.ts +3 -0
- package/dist/components/index.d.ts +122 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/input.js +136 -0
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/input/input.types.d.ts +27 -0
- package/dist/components/input/input.vue.d.ts +28 -0
- package/dist/components/label/index.d.ts +3 -0
- package/dist/components/label/label.js +142 -0
- package/dist/components/label/label.js.map +1 -0
- package/dist/components/label/label.types.d.ts +26 -0
- package/dist/components/label/label.vue.d.ts +33 -0
- package/dist/components/menu/index.d.ts +7 -0
- package/dist/components/menu/menu-content.js +128 -0
- package/dist/components/menu/menu-content.js.map +1 -0
- package/dist/components/menu/menu-content.vue.d.ts +30 -0
- package/dist/components/menu/menu-item.js +165 -0
- package/dist/components/menu/menu-item.js.map +1 -0
- package/dist/components/menu/menu-item.vue.d.ts +30 -0
- package/dist/components/menu/menu-trigger.js +103 -0
- package/dist/components/menu/menu-trigger.js.map +1 -0
- package/dist/components/menu/menu-trigger.vue.d.ts +31 -0
- package/dist/components/menu/menu.context.d.ts +5 -0
- package/dist/components/menu/menu.context.js +15 -0
- package/dist/components/menu/menu.context.js.map +1 -0
- package/dist/components/menu/menu.js +43 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/menu/menu.types.d.ts +80 -0
- package/dist/components/menu/menu.vue.d.ts +16 -0
- package/dist/components/paragraph/index.d.ts +3 -0
- package/dist/components/paragraph/paragraph.js +89 -0
- package/dist/components/paragraph/paragraph.js.map +1 -0
- package/dist/components/paragraph/paragraph.types.d.ts +19 -0
- package/dist/components/paragraph/paragraph.vue.d.ts +30 -0
- package/dist/components/popover/index.d.ts +6 -0
- package/dist/components/popover/popover-content.js +120 -0
- package/dist/components/popover/popover-content.js.map +1 -0
- package/dist/components/popover/popover-content.vue.d.ts +30 -0
- package/dist/components/popover/popover-trigger.js +91 -0
- package/dist/components/popover/popover-trigger.js.map +1 -0
- package/dist/components/popover/popover-trigger.vue.d.ts +31 -0
- package/dist/components/popover/popover.context.d.ts +5 -0
- package/dist/components/popover/popover.context.js +15 -0
- package/dist/components/popover/popover.context.js.map +1 -0
- package/dist/components/popover/popover.js +43 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/popover/popover.types.d.ts +50 -0
- package/dist/components/popover/popover.vue.d.ts +16 -0
- package/dist/components/progress/index.d.ts +3 -0
- package/dist/components/progress/progress.js +149 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/progress/progress.types.d.ts +53 -0
- package/dist/components/progress/progress.vue.d.ts +26 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/radio.js +112 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/radio/radio.types.d.ts +21 -0
- package/dist/components/radio/radio.vue.d.ts +27 -0
- package/dist/components/radiogroup/index.d.ts +3 -0
- package/dist/components/radiogroup/radiogroup.js +130 -0
- package/dist/components/radiogroup/radiogroup.js.map +1 -0
- package/dist/components/radiogroup/radiogroup.types.d.ts +25 -0
- package/dist/components/radiogroup/radiogroup.vue.d.ts +34 -0
- package/dist/components/section/index.d.ts +3 -0
- package/dist/components/section/section.js +112 -0
- package/dist/components/section/section.js.map +1 -0
- package/dist/components/section/section.types.d.ts +37 -0
- package/dist/components/section/section.vue.d.ts +30 -0
- package/dist/components/segmented-control/index.d.ts +4 -0
- package/dist/components/segmented-control/segmented-control-item.js +110 -0
- package/dist/components/segmented-control/segmented-control-item.js.map +1 -0
- package/dist/components/segmented-control/segmented-control-item.vue.d.ts +30 -0
- package/dist/components/segmented-control/segmented-control.context.js +12 -0
- package/dist/components/segmented-control/segmented-control.context.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.js +112 -0
- package/dist/components/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.types.d.ts +42 -0
- package/dist/components/segmented-control/segmented-control.vue.d.ts +26 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/select.js +124 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/select.types.d.ts +21 -0
- package/dist/components/select/select.vue.d.ts +29 -0
- package/dist/components/table/index.d.ts +10 -0
- package/dist/components/table/table-caption.js +79 -0
- package/dist/components/table/table-caption.js.map +1 -0
- package/dist/components/table/table-caption.vue.d.ts +25 -0
- package/dist/components/table/table-tbody.js +70 -0
- package/dist/components/table/table-tbody.js.map +1 -0
- package/dist/components/table/table-tbody.vue.d.ts +24 -0
- package/dist/components/table/table-td.js +71 -0
- package/dist/components/table/table-td.js.map +1 -0
- package/dist/components/table/table-td.vue.d.ts +24 -0
- package/dist/components/table/table-tfoot.js +70 -0
- package/dist/components/table/table-tfoot.js.map +1 -0
- package/dist/components/table/table-tfoot.vue.d.ts +24 -0
- package/dist/components/table/table-th.js +71 -0
- package/dist/components/table/table-th.js.map +1 -0
- package/dist/components/table/table-th.vue.d.ts +24 -0
- package/dist/components/table/table-thead.js +70 -0
- package/dist/components/table/table-thead.js.map +1 -0
- package/dist/components/table/table-thead.vue.d.ts +24 -0
- package/dist/components/table/table-tr.js +79 -0
- package/dist/components/table/table-tr.js.map +1 -0
- package/dist/components/table/table-tr.vue.d.ts +25 -0
- package/dist/components/table/table.js +79 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/table/table.types.d.ts +59 -0
- package/dist/components/table/table.vue.d.ts +25 -0
- package/dist/components/tabs/index.d.ts +6 -0
- package/dist/components/tabs/tabs-list.js +98 -0
- package/dist/components/tabs/tabs-list.js.map +1 -0
- package/dist/components/tabs/tabs-list.vue.d.ts +29 -0
- package/dist/components/tabs/tabs-panel.js +100 -0
- package/dist/components/tabs/tabs-panel.js.map +1 -0
- package/dist/components/tabs/tabs-panel.vue.d.ts +30 -0
- package/dist/components/tabs/tabs-tab.js +135 -0
- package/dist/components/tabs/tabs-tab.js.map +1 -0
- package/dist/components/tabs/tabs-tab.vue.d.ts +30 -0
- package/dist/components/tabs/tabs.context.js +12 -0
- package/dist/components/tabs/tabs.context.js.map +1 -0
- package/dist/components/tabs/tabs.js +144 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/tabs.types.d.ts +61 -0
- package/dist/components/tabs/tabs.vue.d.ts +30 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/textarea.js +137 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/textarea/textarea.types.d.ts +27 -0
- package/dist/components/textarea/textarea.vue.d.ts +28 -0
- package/dist/components/tooltip/index.d.ts +6 -0
- package/dist/components/tooltip/tooltip-content.js +128 -0
- package/dist/components/tooltip/tooltip-content.js.map +1 -0
- package/dist/components/tooltip/tooltip-content.vue.d.ts +30 -0
- package/dist/components/tooltip/tooltip-trigger.js +125 -0
- package/dist/components/tooltip/tooltip-trigger.js.map +1 -0
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +31 -0
- package/dist/components/tooltip/tooltip.context.d.ts +5 -0
- package/dist/components/tooltip/tooltip.context.js +15 -0
- package/dist/components/tooltip/tooltip.context.js.map +1 -0
- package/dist/components/tooltip/tooltip.js +43 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip.types.d.ts +50 -0
- package/dist/components/tooltip/tooltip.vue.d.ts +16 -0
- package/dist/components/visually-hidden/index.d.ts +3 -0
- package/dist/components/visually-hidden/visually-hidden.js +84 -0
- package/dist/components/visually-hidden/visually-hidden.js.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.types.d.ts +12 -0
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +30 -0
- package/dist/index.d.ts +98 -0
- package/dist/index.js +64 -0
- package/dist/plugin.d.ts +126 -0
- package/dist/plugin.js +124 -0
- package/dist/plugin.js.map +1 -0
- package/dist/provider/hui-provider.context.d.ts +108 -0
- package/dist/provider/hui-provider.context.js +79 -0
- package/dist/provider/hui-provider.context.js.map +1 -0
- package/dist/provider/hui-provider.js +37 -0
- package/dist/provider/hui-provider.js.map +1 -0
- package/dist/provider/hui-provider.vue.d.ts +27 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/types/element.d.ts +12 -0
- package/dist/types/hui-component.d.ts +13 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/polymorphic.d.ts +19 -0
- package/dist/utils/attr-to-bool.js +8 -0
- package/dist/utils/attr-to-bool.js.map +1 -0
- package/package.json +59 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HuiElementPropsNoInfer } from "../../types/element.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { TableTrOwnProps } from "./table.types.js";
|
|
4
|
+
import { ClassValue, StyleValue } from "vue";
|
|
5
|
+
//#region src/components/table/table-tr.vue.d.ts
|
|
6
|
+
type Props = TableTrOwnProps & {
|
|
7
|
+
class?: ClassValue | undefined;
|
|
8
|
+
style?: StyleValue | undefined;
|
|
9
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"tr">, keyof TableTrOwnProps | "class" | "style">;
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
default?: () => unknown;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
14
|
+
root: Readonly<import("vue").ShallowRef<HTMLTableRowElement | null>>;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { _default as default };
|
|
25
|
+
//# sourceMappingURL=table-tr.vue.d.ts.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { useHuiAttrs, useHuiClasses, useHuiProps, useHuiStyles } from "../../provider/hui-provider.context.js";
|
|
2
|
+
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
|
|
3
|
+
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, useAttrs, useTemplateRef } from "vue";
|
|
4
|
+
import { tableRecipe } from "@hebium-ui/core";
|
|
5
|
+
//#region src/components/table/table.vue
|
|
6
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
|
+
name: "HuiTable",
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "table",
|
|
10
|
+
props: {
|
|
11
|
+
border: {
|
|
12
|
+
type: null,
|
|
13
|
+
required: false
|
|
14
|
+
},
|
|
15
|
+
class: {
|
|
16
|
+
type: [
|
|
17
|
+
Boolean,
|
|
18
|
+
null,
|
|
19
|
+
String,
|
|
20
|
+
Object,
|
|
21
|
+
Array
|
|
22
|
+
],
|
|
23
|
+
required: false,
|
|
24
|
+
skipCheck: true
|
|
25
|
+
},
|
|
26
|
+
style: {
|
|
27
|
+
type: [
|
|
28
|
+
Boolean,
|
|
29
|
+
null,
|
|
30
|
+
String,
|
|
31
|
+
Object,
|
|
32
|
+
Array
|
|
33
|
+
],
|
|
34
|
+
required: false,
|
|
35
|
+
skipCheck: true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(__props, { expose: __expose }) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const attrs = useAttrs();
|
|
41
|
+
const resolvedProps = useHuiProps("Table", props, attrs);
|
|
42
|
+
const recipe = computed(() => tableRecipe({ border: resolvedProps.value.border }));
|
|
43
|
+
const cls = useHuiClasses("Table", recipe, computed(() => ({ root: props.class })));
|
|
44
|
+
const sls = useHuiStyles("Table", computed(() => ({ root: props.style })));
|
|
45
|
+
const rootAttrs = useHuiAttrs(resolvedProps, [
|
|
46
|
+
"border",
|
|
47
|
+
"class",
|
|
48
|
+
"style"
|
|
49
|
+
]);
|
|
50
|
+
const rootRef = useTemplateRef("root");
|
|
51
|
+
__expose({ root: rootRef });
|
|
52
|
+
const __returned__ = {
|
|
53
|
+
props,
|
|
54
|
+
attrs,
|
|
55
|
+
resolvedProps,
|
|
56
|
+
recipe,
|
|
57
|
+
cls,
|
|
58
|
+
sls,
|
|
59
|
+
rootAttrs,
|
|
60
|
+
rootRef
|
|
61
|
+
};
|
|
62
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
63
|
+
enumerable: false,
|
|
64
|
+
value: true
|
|
65
|
+
});
|
|
66
|
+
return __returned__;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
70
|
+
return openBlock(), createElementBlock("table", mergeProps({ ref: "root" }, $setup.rootAttrs, {
|
|
71
|
+
class: $setup.cls.root,
|
|
72
|
+
style: $setup.sls.root
|
|
73
|
+
}), [renderSlot(_ctx.$slots, "default")], 16);
|
|
74
|
+
}
|
|
75
|
+
var table_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/Users/dawn/Desktop/dev/hebium-ui/packages/vue/src/components/table/table.vue"]]);
|
|
76
|
+
//#endregion
|
|
77
|
+
export { table_default as default };
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot"],"sources":["../../../src/components/table/table.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { tableRecipe } from \"@hebium-ui/core\";\nimport {\n type ClassValue,\n computed,\n type StyleValue,\n useAttrs,\n useTemplateRef,\n} from \"vue\";\nimport {\n useHuiAttrs,\n useHuiClasses,\n useHuiProps,\n useHuiStyles,\n} from \"~/provider\";\nimport type { HuiElementInstance, HuiElementPropsNoInfer } from \"~/types\";\nimport type { TableOwnProps } from \"./table.types\";\n\ndefineOptions({\n name: \"HuiTable\",\n inheritAttrs: false,\n});\n\ntype Props =\n & TableOwnProps\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"table\">,\n keyof TableOwnProps | \"class\" | \"style\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"Table\", props, attrs);\nconst recipe = computed(() =>\n tableRecipe({ border: resolvedProps.value.border })\n);\nconst cls = useHuiClasses(\n \"Table\",\n recipe,\n computed(() => ({ root: props.class })),\n);\nconst sls = useHuiStyles(\n \"Table\",\n computed(() => ({ root: props.style })),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps, [\"border\", \"class\", \"style\"]);\nconst rootRef = useTemplateRef<HuiElementInstance<\"table\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <table\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </table>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,SAAS,OAAO,KAAK;EACvD,MAAM,SAAS,eACb,YAAY,EAAE,QAAQ,cAAc,MAAM,OAAO,CAAC,CACpD;EACA,MAAM,MAAM,cACV,SACA,QACA,gBAAgB,EAAE,MAAM,MAAM,MAAM,EAAE,CACxC;EACA,MAAM,MAAM,aACV,SACA,gBAAgB,EAAE,MAAM,MAAM,MAAM,EAAE,CACxC;EACA,MAAM,YAAY,YAAY,eAAe;GAAC;GAAU;GAAS;EAAO,CAAC;EACzE,MAAM,UAAU,eAA4C,MAAM;EAElE,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,mBAOQ,SAPRC,WAOQ,EANN,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI;CAEZ,CAAA,GAAA,CAAAC,WAAQ,KAAA,QAAA,SAAA,CAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { HuiElementInstance, HuiElementProps } from "../../types/element.js";
|
|
2
|
+
import { HuiComponentProps } from "../../types/hui-component.js";
|
|
3
|
+
import "../../types/index.js";
|
|
4
|
+
import { CaptionSlots, CaptionVariants, TableSlots, TableVariants, TdSlots, ThSlots, TrSlots, TrVariants } from "@hebium-ui/core";
|
|
5
|
+
//#region src/components/table/table.types.d.ts
|
|
6
|
+
export interface TableOwnProps {
|
|
7
|
+
/**
|
|
8
|
+
* The border style of the table.
|
|
9
|
+
*/
|
|
10
|
+
border?: TableVariants["border"] | undefined;
|
|
11
|
+
}
|
|
12
|
+
export type TableProps = HuiComponentProps<Omit<HuiElementProps<"table">, "border"> & TableOwnProps, TableSlots>;
|
|
13
|
+
export interface TableExposed {
|
|
14
|
+
readonly root: HuiElementInstance<"table"> | null;
|
|
15
|
+
}
|
|
16
|
+
export interface TableCaptionOwnProps {
|
|
17
|
+
/**
|
|
18
|
+
* The side on which the caption is displayed.
|
|
19
|
+
*/
|
|
20
|
+
side?: CaptionVariants["side"] | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type TableCaptionProps = HuiComponentProps<HuiElementProps<"caption"> & TableCaptionOwnProps, CaptionSlots>;
|
|
23
|
+
export interface TableCaptionExposed {
|
|
24
|
+
readonly root: HuiElementInstance<"caption"> | null;
|
|
25
|
+
}
|
|
26
|
+
export type TableTheadProps = HuiComponentProps<HuiElementProps<"thead">, "root">;
|
|
27
|
+
export interface TableTheadExposed {
|
|
28
|
+
readonly root: HuiElementInstance<"thead"> | null;
|
|
29
|
+
}
|
|
30
|
+
export type TableTbodyProps = HuiComponentProps<HuiElementProps<"tbody">, "root">;
|
|
31
|
+
export interface TableTbodyExposed {
|
|
32
|
+
readonly root: HuiElementInstance<"tbody"> | null;
|
|
33
|
+
}
|
|
34
|
+
export type TableTfootProps = HuiComponentProps<HuiElementProps<"tfoot">, "root">;
|
|
35
|
+
export interface TableTfootExposed {
|
|
36
|
+
readonly root: HuiElementInstance<"tfoot"> | null;
|
|
37
|
+
}
|
|
38
|
+
export interface TableTrOwnProps {
|
|
39
|
+
/**
|
|
40
|
+
* The border style of the table row.
|
|
41
|
+
*
|
|
42
|
+
* @default "block-end"
|
|
43
|
+
*/
|
|
44
|
+
border?: TrVariants["border"] | undefined;
|
|
45
|
+
}
|
|
46
|
+
export type TableTrProps = HuiComponentProps<HuiElementProps<"tr"> & TableTrOwnProps, TrSlots>;
|
|
47
|
+
export interface TableTrExposed {
|
|
48
|
+
readonly root: HuiElementInstance<"tr"> | null;
|
|
49
|
+
}
|
|
50
|
+
export type TableThProps = HuiComponentProps<HuiElementProps<"th">, ThSlots>;
|
|
51
|
+
export interface TableThExposed {
|
|
52
|
+
readonly root: HuiElementInstance<"th"> | null;
|
|
53
|
+
}
|
|
54
|
+
export type TableTdProps = HuiComponentProps<HuiElementProps<"td">, TdSlots>;
|
|
55
|
+
export interface TableTdExposed {
|
|
56
|
+
readonly root: HuiElementInstance<"td"> | null;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//# sourceMappingURL=table.types.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HuiElementPropsNoInfer } from "../../types/element.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { TableOwnProps } from "./table.types.js";
|
|
4
|
+
import { ClassValue, StyleValue } from "vue";
|
|
5
|
+
//#region src/components/table/table.vue.d.ts
|
|
6
|
+
type Props = TableOwnProps & {
|
|
7
|
+
class?: ClassValue | undefined;
|
|
8
|
+
style?: StyleValue | undefined;
|
|
9
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"table">, keyof TableOwnProps | "class" | "style">;
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
default?: () => unknown;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
14
|
+
root: Readonly<import("vue").ShallowRef<HTMLTableElement | null>>;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { _default as default };
|
|
25
|
+
//# sourceMappingURL=table.vue.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import _default from "./tabs-list.vue.js";
|
|
2
|
+
import { ActivationMode, TabsExposed, TabsListExposed, TabsListProps, TabsPanelExposed, TabsPanelProps, TabsProps, TabsTabExposed, TabsTabProps } from "./tabs.types.js";
|
|
3
|
+
import _default$1 from "./tabs-panel.vue.js";
|
|
4
|
+
import _default$2 from "./tabs-tab.vue.js";
|
|
5
|
+
import _default$3 from "./tabs.vue.js";
|
|
6
|
+
export { type ActivationMode, _default$3 as Tabs, type TabsExposed, _default as TabsList, type TabsListExposed, type TabsListProps, _default$1 as TabsPanel, type TabsPanelExposed, type TabsPanelProps, type TabsProps, _default$2 as TabsTab, type TabsTabExposed, type TabsTabProps };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { useHuiAttrs, useHuiClasses, useHuiProps, useHuiStyles } from "../../provider/hui-provider.context.js";
|
|
2
|
+
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
|
|
3
|
+
import { useTabsContext } from "./tabs.context.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, toRaw, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
5
|
+
import { tablistRecipe, tabsControl } from "@hebium-ui/core";
|
|
6
|
+
//#region src/components/tabs/tabs-list.vue
|
|
7
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
8
|
+
name: "HuiTabsList",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
__name: "tabs-list",
|
|
11
|
+
props: {
|
|
12
|
+
as: {
|
|
13
|
+
type: null,
|
|
14
|
+
required: false
|
|
15
|
+
},
|
|
16
|
+
class: {
|
|
17
|
+
type: [
|
|
18
|
+
Boolean,
|
|
19
|
+
null,
|
|
20
|
+
String,
|
|
21
|
+
Object,
|
|
22
|
+
Array
|
|
23
|
+
],
|
|
24
|
+
required: false,
|
|
25
|
+
skipCheck: true
|
|
26
|
+
},
|
|
27
|
+
style: {
|
|
28
|
+
type: [
|
|
29
|
+
Boolean,
|
|
30
|
+
null,
|
|
31
|
+
String,
|
|
32
|
+
Object,
|
|
33
|
+
Array
|
|
34
|
+
],
|
|
35
|
+
required: false,
|
|
36
|
+
skipCheck: true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
setup(__props, { expose: __expose }) {
|
|
40
|
+
const props = __props;
|
|
41
|
+
const attrs = useAttrs();
|
|
42
|
+
const resolvedProps = useHuiProps("TabsList", props, attrs);
|
|
43
|
+
const component = computed(() => toRaw(resolvedProps.value.as ?? "div"));
|
|
44
|
+
const context = useTabsContext();
|
|
45
|
+
const recipe = computed(() => tablistRecipe({}));
|
|
46
|
+
const cls = useHuiClasses("TabsList", recipe, computed(() => ({ root: props.class })));
|
|
47
|
+
const sls = useHuiStyles("TabsList", computed(() => ({ root: props.style })));
|
|
48
|
+
const forwardedAttrs = useHuiAttrs(resolvedProps, [
|
|
49
|
+
"as",
|
|
50
|
+
"class",
|
|
51
|
+
"style"
|
|
52
|
+
]);
|
|
53
|
+
const rootAttrs = computed(() => ({
|
|
54
|
+
...tabsControl.getListAttributes({
|
|
55
|
+
rootId: context.rootId.value,
|
|
56
|
+
selectedValue: context.selectedValue.value
|
|
57
|
+
}, {
|
|
58
|
+
ariaLabel: resolvedProps.value["aria-label"],
|
|
59
|
+
ariaLabelledBy: resolvedProps.value["aria-labelledby"]
|
|
60
|
+
}),
|
|
61
|
+
...forwardedAttrs.value
|
|
62
|
+
}));
|
|
63
|
+
const rootRef = useTemplateRef("root");
|
|
64
|
+
__expose({ root: rootRef });
|
|
65
|
+
const __returned__ = {
|
|
66
|
+
props,
|
|
67
|
+
attrs,
|
|
68
|
+
resolvedProps,
|
|
69
|
+
component,
|
|
70
|
+
context,
|
|
71
|
+
recipe,
|
|
72
|
+
cls,
|
|
73
|
+
sls,
|
|
74
|
+
forwardedAttrs,
|
|
75
|
+
rootAttrs,
|
|
76
|
+
rootRef
|
|
77
|
+
};
|
|
78
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
79
|
+
enumerable: false,
|
|
80
|
+
value: true
|
|
81
|
+
});
|
|
82
|
+
return __returned__;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
86
|
+
return openBlock(), createBlock(resolveDynamicComponent($setup.component), mergeProps({ ref: "root" }, $setup.rootAttrs, {
|
|
87
|
+
class: $setup.cls.root,
|
|
88
|
+
style: $setup.sls.root
|
|
89
|
+
}), {
|
|
90
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 16, ["class", "style"]);
|
|
93
|
+
}
|
|
94
|
+
var tabs_list_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/Users/dawn/Desktop/dev/hebium-ui/packages/vue/src/components/tabs/tabs-list.vue"]]);
|
|
95
|
+
//#endregion
|
|
96
|
+
export { tabs_list_default as default };
|
|
97
|
+
|
|
98
|
+
//# sourceMappingURL=tabs-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-list.js","names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot"],"sources":["../../../src/components/tabs/tabs-list.vue"],"sourcesContent":["<script\n setup\n lang=\"ts\"\n generic=\"E extends ElementType = 'div'\"\n>\nimport { tablistRecipe, tabsControl } from \"@hebium-ui/core\";\nimport {\n type ClassValue,\n computed,\n type StyleValue,\n toRaw,\n useAttrs,\n useTemplateRef,\n} from \"vue\";\nimport {\n useHuiAttrs,\n useHuiClasses,\n useHuiProps,\n useHuiStyles,\n} from \"~/provider\";\nimport type {\n ElementType,\n HuiElementInstance,\n HuiElementPropsNoInfer,\n} from \"~/types\";\nimport { useTabsContext } from \"./tabs.context\";\n\ndefineOptions({\n name: \"HuiTabsList\",\n inheritAttrs: false,\n});\n\ntype Props =\n & { as?: E | undefined }\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<E>,\n \"as\" | \"class\" | \"style\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TabsList\", props, attrs);\nconst component = computed<E | \"div\">(() =>\n toRaw(resolvedProps.value.as ?? \"div\")\n);\nconst context = useTabsContext();\nconst recipe = computed(() => tablistRecipe({}));\nconst cls = useHuiClasses(\n \"TabsList\",\n recipe,\n computed(() => ({ root: props.class })),\n);\nconst sls = useHuiStyles(\n \"TabsList\",\n computed(() => ({ root: props.style })),\n);\nconst forwardedAttrs = useHuiAttrs(resolvedProps, [\n \"as\",\n \"class\",\n \"style\",\n]);\nconst rootAttrs = computed<Record<string, unknown>>(() => ({\n ...tabsControl.getListAttributes(\n {\n rootId: context.rootId.value,\n selectedValue: context.selectedValue.value,\n },\n {\n ariaLabel: resolvedProps.value[\"aria-label\"],\n ariaLabelledBy: resolvedProps.value[\"aria-labelledby\"],\n },\n ),\n ...forwardedAttrs.value,\n}));\nconst rootRef = useTemplateRef<HuiElementInstance<E>>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <component\n :is=\"component\"\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,YAAY,OAAO,KAAK;EAC1D,MAAM,YAAY,eAChB,MAAM,cAAc,MAAM,MAAM,KAAK,CACvC;EACA,MAAM,UAAU,eAAe;EAC/B,MAAM,SAAS,eAAe,cAAc,CAAC,CAAC,CAAC;EAC/C,MAAM,MAAM,cACV,YACA,QACA,gBAAgB,EAAE,MAAM,MAAM,MAAM,EAAE,CACxC;EACA,MAAM,MAAM,aACV,YACA,gBAAgB,EAAE,MAAM,MAAM,MAAM,EAAE,CACxC;EACA,MAAM,iBAAiB,YAAY,eAAe;GAChD;GACA;GACA;EACF,CAAC;EACD,MAAM,YAAY,gBAAyC;GACzD,GAAG,YAAY,kBACb;IACE,QAAQ,QAAQ,OAAO;IACvB,eAAe,QAAQ,cAAc;GACvC,GACA;IACE,WAAW,cAAc,MAAM;IAC/B,gBAAgB,cAAc,MAAM;GACtC,CACF;GACA,GAAG,eAAe;EACpB,EAAE;EACF,MAAM,UAAU,eAAsC,MAAM;EAE5D,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,YAQYC,wBAPL,OAAA,SAAS,GADhBC,WAQY,EANV,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI;;EAEZ,SAAAC,cAAQ,CAARC,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ElementType, HuiElementInstance, HuiElementPropsNoInfer } from "../../types/element.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { ClassValue, StyleValue } from "vue";
|
|
4
|
+
//#region src/components/tabs/tabs-list.vue.d.ts
|
|
5
|
+
declare const __VLS_export: <E extends ElementType = "div">(__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<{
|
|
6
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
7
|
+
as?: E | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
class?: ClassValue | undefined;
|
|
10
|
+
style?: StyleValue | undefined;
|
|
11
|
+
} & Omit<HuiElementPropsNoInfer<E>, "style" | "class" | "as">> & (typeof globalThis extends {
|
|
12
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
13
|
+
} ? P : {});
|
|
14
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
15
|
+
root: Readonly<import("vue").ShallowRef<HuiElementInstance<E> | null>>;
|
|
16
|
+
}>) => void;
|
|
17
|
+
attrs: any;
|
|
18
|
+
slots: {
|
|
19
|
+
default?: () => unknown;
|
|
20
|
+
};
|
|
21
|
+
emit: {};
|
|
22
|
+
}>) => import("vue").VNode & {
|
|
23
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _default as default };
|
|
29
|
+
//# sourceMappingURL=tabs-list.vue.d.ts.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { useHuiAttrs, useHuiClasses, useHuiProps, useHuiStyles } from "../../provider/hui-provider.context.js";
|
|
2
|
+
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
|
|
3
|
+
import { useTabsContext } from "./tabs.context.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, toRaw, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
5
|
+
import { tabpanelRecipe, tabsControl } from "@hebium-ui/core";
|
|
6
|
+
//#region src/components/tabs/tabs-panel.vue
|
|
7
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
8
|
+
name: "HuiTabsPanel",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
__name: "tabs-panel",
|
|
11
|
+
props: {
|
|
12
|
+
value: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
as: {
|
|
17
|
+
type: null,
|
|
18
|
+
required: false
|
|
19
|
+
},
|
|
20
|
+
class: {
|
|
21
|
+
type: [
|
|
22
|
+
Boolean,
|
|
23
|
+
null,
|
|
24
|
+
String,
|
|
25
|
+
Object,
|
|
26
|
+
Array
|
|
27
|
+
],
|
|
28
|
+
required: false,
|
|
29
|
+
skipCheck: true
|
|
30
|
+
},
|
|
31
|
+
style: {
|
|
32
|
+
type: [
|
|
33
|
+
Boolean,
|
|
34
|
+
null,
|
|
35
|
+
String,
|
|
36
|
+
Object,
|
|
37
|
+
Array
|
|
38
|
+
],
|
|
39
|
+
required: false,
|
|
40
|
+
skipCheck: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
setup(__props, { expose: __expose }) {
|
|
44
|
+
const props = __props;
|
|
45
|
+
const attrs = useAttrs();
|
|
46
|
+
const resolvedProps = useHuiProps("TabsPanel", props, attrs);
|
|
47
|
+
const component = computed(() => toRaw(resolvedProps.value.as ?? "div"));
|
|
48
|
+
const context = useTabsContext();
|
|
49
|
+
const recipe = computed(() => tabpanelRecipe({}));
|
|
50
|
+
const cls = useHuiClasses("TabsPanel", recipe, computed(() => ({ root: props.class })));
|
|
51
|
+
const sls = useHuiStyles("TabsPanel", computed(() => ({ root: props.style })));
|
|
52
|
+
const forwardedAttrs = useHuiAttrs(resolvedProps, [
|
|
53
|
+
"as",
|
|
54
|
+
"value",
|
|
55
|
+
"class",
|
|
56
|
+
"style"
|
|
57
|
+
]);
|
|
58
|
+
const rootAttrs = computed(() => ({
|
|
59
|
+
...tabsControl.getPanelAttributes({
|
|
60
|
+
rootId: context.rootId.value,
|
|
61
|
+
selectedValue: context.selectedValue.value
|
|
62
|
+
}, resolvedProps.value.value),
|
|
63
|
+
...forwardedAttrs.value
|
|
64
|
+
}));
|
|
65
|
+
const rootRef = useTemplateRef("root");
|
|
66
|
+
__expose({ root: rootRef });
|
|
67
|
+
const __returned__ = {
|
|
68
|
+
props,
|
|
69
|
+
attrs,
|
|
70
|
+
resolvedProps,
|
|
71
|
+
component,
|
|
72
|
+
context,
|
|
73
|
+
recipe,
|
|
74
|
+
cls,
|
|
75
|
+
sls,
|
|
76
|
+
forwardedAttrs,
|
|
77
|
+
rootAttrs,
|
|
78
|
+
rootRef
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
81
|
+
enumerable: false,
|
|
82
|
+
value: true
|
|
83
|
+
});
|
|
84
|
+
return __returned__;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
88
|
+
return openBlock(), createBlock(resolveDynamicComponent($setup.component), mergeProps({ ref: "root" }, $setup.rootAttrs, {
|
|
89
|
+
class: $setup.cls.root,
|
|
90
|
+
style: $setup.sls.root
|
|
91
|
+
}), {
|
|
92
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 16, ["class", "style"]);
|
|
95
|
+
}
|
|
96
|
+
var tabs_panel_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/Users/dawn/Desktop/dev/hebium-ui/packages/vue/src/components/tabs/tabs-panel.vue"]]);
|
|
97
|
+
//#endregion
|
|
98
|
+
export { tabs_panel_default as default };
|
|
99
|
+
|
|
100
|
+
//# sourceMappingURL=tabs-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-panel.js","names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot"],"sources":["../../../src/components/tabs/tabs-panel.vue"],"sourcesContent":["<script\n setup\n lang=\"ts\"\n generic=\"E extends ElementType = 'div'\"\n>\nimport { tabpanelRecipe, tabsControl } from \"@hebium-ui/core\";\nimport {\n type ClassValue,\n computed,\n type StyleValue,\n toRaw,\n useAttrs,\n useTemplateRef,\n} from \"vue\";\nimport {\n useHuiAttrs,\n useHuiClasses,\n useHuiProps,\n useHuiStyles,\n} from \"~/provider\";\nimport type {\n ElementType,\n HuiElementInstance,\n HuiElementPropsNoInfer,\n} from \"~/types\";\nimport { useTabsContext } from \"./tabs.context\";\nimport type { TabsPanelOwnProps } from \"./tabs.types\";\n\ndefineOptions({\n name: \"HuiTabsPanel\",\n inheritAttrs: false,\n});\n\ntype Props =\n & TabsPanelOwnProps\n & { as?: E | undefined }\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<E>,\n keyof TabsPanelOwnProps | \"as\" | \"class\" | \"style\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TabsPanel\", props, attrs);\nconst component = computed<E | \"div\">(() =>\n toRaw(resolvedProps.value.as ?? \"div\")\n);\nconst context = useTabsContext();\nconst recipe = computed(() => tabpanelRecipe({}));\nconst cls = useHuiClasses(\n \"TabsPanel\",\n recipe,\n computed(() => ({ root: props.class })),\n);\nconst sls = useHuiStyles(\n \"TabsPanel\",\n computed(() => ({ root: props.style })),\n);\nconst forwardedAttrs = useHuiAttrs(resolvedProps, [\n \"as\",\n \"value\",\n \"class\",\n \"style\",\n]);\nconst rootAttrs = computed<Record<string, unknown>>(() => ({\n ...tabsControl.getPanelAttributes(\n {\n rootId: context.rootId.value,\n selectedValue: context.selectedValue.value,\n },\n resolvedProps.value.value,\n ),\n ...forwardedAttrs.value,\n}));\nconst rootRef = useTemplateRef<HuiElementInstance<E>>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <component\n :is=\"component\"\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,aAAa,OAAO,KAAK;EAC3D,MAAM,YAAY,eAChB,MAAM,cAAc,MAAM,MAAM,KAAK,CACvC;EACA,MAAM,UAAU,eAAe;EAC/B,MAAM,SAAS,eAAe,eAAe,CAAC,CAAC,CAAC;EAChD,MAAM,MAAM,cACV,aACA,QACA,gBAAgB,EAAE,MAAM,MAAM,MAAM,EAAE,CACxC;EACA,MAAM,MAAM,aACV,aACA,gBAAgB,EAAE,MAAM,MAAM,MAAM,EAAE,CACxC;EACA,MAAM,iBAAiB,YAAY,eAAe;GAChD;GACA;GACA;GACA;EACF,CAAC;EACD,MAAM,YAAY,gBAAyC;GACzD,GAAG,YAAY,mBACb;IACE,QAAQ,QAAQ,OAAO;IACvB,eAAe,QAAQ,cAAc;GACvC,GACA,cAAc,MAAM,KACtB;GACA,GAAG,eAAe;EACpB,EAAE;EACF,MAAM,UAAU,eAAsC,MAAM;EAE5D,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,YAQYC,wBAPL,OAAA,SAAS,GADhBC,WAQY,EANV,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI;;EAEZ,SAAAC,cAAQ,CAARC,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementType, HuiElementInstance, HuiElementPropsNoInfer } from "../../types/element.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { TabsPanelOwnProps } from "./tabs.types.js";
|
|
4
|
+
import { ClassValue, StyleValue } from "vue";
|
|
5
|
+
//#region src/components/tabs/tabs-panel.vue.d.ts
|
|
6
|
+
declare const __VLS_export: <E extends ElementType = "div">(__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<{
|
|
7
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<TabsPanelOwnProps & {
|
|
8
|
+
as?: E | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
class?: ClassValue | undefined;
|
|
11
|
+
style?: StyleValue | undefined;
|
|
12
|
+
} & Omit<HuiElementPropsNoInfer<E>, "style" | "class" | "as" | "value">> & (typeof globalThis extends {
|
|
13
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
14
|
+
} ? P : {});
|
|
15
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
16
|
+
root: Readonly<import("vue").ShallowRef<HuiElementInstance<E> | null>>;
|
|
17
|
+
}>) => void;
|
|
18
|
+
attrs: any;
|
|
19
|
+
slots: {
|
|
20
|
+
default?: () => unknown;
|
|
21
|
+
};
|
|
22
|
+
emit: {};
|
|
23
|
+
}>) => import("vue").VNode & {
|
|
24
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { _default as default };
|
|
30
|
+
//# sourceMappingURL=tabs-panel.vue.d.ts.map
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { useHuiAttrs, useHuiClasses, useHuiProps, useHuiStyles } from "../../provider/hui-provider.context.js";
|
|
2
|
+
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
|
|
3
|
+
import { useTabsContext } from "./tabs.context.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, toRaw, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
5
|
+
import { tabRecipe, tabsControl } from "@hebium-ui/core";
|
|
6
|
+
//#region src/components/tabs/tabs-tab.vue
|
|
7
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
8
|
+
name: "HuiTabsTab",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
__name: "tabs-tab",
|
|
11
|
+
props: {
|
|
12
|
+
value: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
as: {
|
|
17
|
+
type: null,
|
|
18
|
+
required: false
|
|
19
|
+
},
|
|
20
|
+
class: {
|
|
21
|
+
type: [
|
|
22
|
+
Boolean,
|
|
23
|
+
null,
|
|
24
|
+
String,
|
|
25
|
+
Object,
|
|
26
|
+
Array
|
|
27
|
+
],
|
|
28
|
+
required: false,
|
|
29
|
+
skipCheck: true
|
|
30
|
+
},
|
|
31
|
+
style: {
|
|
32
|
+
type: [
|
|
33
|
+
Boolean,
|
|
34
|
+
null,
|
|
35
|
+
String,
|
|
36
|
+
Object,
|
|
37
|
+
Array
|
|
38
|
+
],
|
|
39
|
+
required: false,
|
|
40
|
+
skipCheck: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
setup(__props, { expose: __expose }) {
|
|
44
|
+
const props = __props;
|
|
45
|
+
const attrs = useAttrs();
|
|
46
|
+
const resolvedProps = useHuiProps("TabsTab", props, attrs);
|
|
47
|
+
const component = computed(() => toRaw(resolvedProps.value.as ?? "button"));
|
|
48
|
+
const context = useTabsContext();
|
|
49
|
+
const recipe = computed(() => tabRecipe({}));
|
|
50
|
+
const cls = useHuiClasses("TabsTab", recipe, computed(() => ({ root: props.class })));
|
|
51
|
+
const sls = useHuiStyles("TabsTab", computed(() => ({ root: props.style })));
|
|
52
|
+
const forwardedAttrs = useHuiAttrs(resolvedProps, [
|
|
53
|
+
"as",
|
|
54
|
+
"value",
|
|
55
|
+
"class",
|
|
56
|
+
"style",
|
|
57
|
+
"onClick",
|
|
58
|
+
"onKeydown",
|
|
59
|
+
"onFocus"
|
|
60
|
+
]);
|
|
61
|
+
const rootAttrs = computed(() => ({
|
|
62
|
+
...tabsControl.getTabAttributes({
|
|
63
|
+
rootId: context.rootId.value,
|
|
64
|
+
selectedValue: context.selectedValue.value
|
|
65
|
+
}, resolvedProps.value.value, { isButtonElement: resolvedProps.value.as === void 0 }),
|
|
66
|
+
...forwardedAttrs.value
|
|
67
|
+
}));
|
|
68
|
+
const rootRef = useTemplateRef("root");
|
|
69
|
+
function handleClick(event) {
|
|
70
|
+
const onClick = resolvedProps.value["onClick"];
|
|
71
|
+
if (typeof onClick === "function") onClick(event);
|
|
72
|
+
if (event.defaultPrevented) return;
|
|
73
|
+
context.onSelect(resolvedProps.value.value);
|
|
74
|
+
}
|
|
75
|
+
function handleKeydown(event) {
|
|
76
|
+
const onKeydown = resolvedProps.value["onKeydown"];
|
|
77
|
+
if (typeof onKeydown === "function") onKeydown(event);
|
|
78
|
+
if (event.defaultPrevented) return;
|
|
79
|
+
switch (tabsControl.handleTabKeydown(event)) {
|
|
80
|
+
case "activate":
|
|
81
|
+
context.onSelect(resolvedProps.value.value);
|
|
82
|
+
return;
|
|
83
|
+
case "focus-move":
|
|
84
|
+
tabsControl.moveFocus(event, context.rootId.value);
|
|
85
|
+
return;
|
|
86
|
+
case "none": return;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function handleFocus(event) {
|
|
90
|
+
const onFocus = resolvedProps.value["onFocus"];
|
|
91
|
+
if (typeof onFocus === "function") onFocus(event);
|
|
92
|
+
if (event.defaultPrevented) return;
|
|
93
|
+
if (context.activation.value === "auto") context.onSelect(resolvedProps.value.value);
|
|
94
|
+
}
|
|
95
|
+
__expose({ root: rootRef });
|
|
96
|
+
const __returned__ = {
|
|
97
|
+
props,
|
|
98
|
+
attrs,
|
|
99
|
+
resolvedProps,
|
|
100
|
+
component,
|
|
101
|
+
context,
|
|
102
|
+
recipe,
|
|
103
|
+
cls,
|
|
104
|
+
sls,
|
|
105
|
+
forwardedAttrs,
|
|
106
|
+
rootAttrs,
|
|
107
|
+
rootRef,
|
|
108
|
+
handleClick,
|
|
109
|
+
handleKeydown,
|
|
110
|
+
handleFocus
|
|
111
|
+
};
|
|
112
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
113
|
+
enumerable: false,
|
|
114
|
+
value: true
|
|
115
|
+
});
|
|
116
|
+
return __returned__;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
120
|
+
return openBlock(), createBlock(resolveDynamicComponent($setup.component), mergeProps({ ref: "root" }, $setup.rootAttrs, {
|
|
121
|
+
class: $setup.cls.root,
|
|
122
|
+
style: $setup.sls.root,
|
|
123
|
+
onClick: $setup.handleClick,
|
|
124
|
+
onKeydown: $setup.handleKeydown,
|
|
125
|
+
onFocus: $setup.handleFocus
|
|
126
|
+
}), {
|
|
127
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
128
|
+
_: 3
|
|
129
|
+
}, 16, ["class", "style"]);
|
|
130
|
+
}
|
|
131
|
+
var tabs_tab_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/Users/dawn/Desktop/dev/hebium-ui/packages/vue/src/components/tabs/tabs-tab.vue"]]);
|
|
132
|
+
//#endregion
|
|
133
|
+
export { tabs_tab_default as default };
|
|
134
|
+
|
|
135
|
+
//# sourceMappingURL=tabs-tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-tab.js","names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot"],"sources":["../../../src/components/tabs/tabs-tab.vue"],"sourcesContent":["<script\n setup\n lang=\"ts\"\n generic=\"E extends ElementType = 'button'\"\n>\nimport { tabRecipe, tabsControl } from \"@hebium-ui/core\";\nimport {\n type ClassValue,\n computed,\n type StyleValue,\n toRaw,\n useAttrs,\n useTemplateRef,\n} from \"vue\";\nimport {\n useHuiAttrs,\n useHuiClasses,\n useHuiProps,\n useHuiStyles,\n} from \"~/provider\";\nimport type {\n ElementType,\n HuiElementInstance,\n HuiElementPropsNoInfer,\n} from \"~/types\";\nimport { useTabsContext } from \"./tabs.context\";\nimport type { TabsTabOwnProps } from \"./tabs.types\";\n\ndefineOptions({\n name: \"HuiTabsTab\",\n inheritAttrs: false,\n});\n\ntype Props =\n & TabsTabOwnProps\n & { as?: E | undefined }\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<E>,\n keyof TabsTabOwnProps | \"as\" | \"class\" | \"style\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TabsTab\", props, attrs);\nconst component = computed<E | \"button\">(() =>\n toRaw(resolvedProps.value.as ?? \"button\")\n);\nconst context = useTabsContext();\nconst recipe = computed(() => tabRecipe({}));\nconst cls = useHuiClasses(\n \"TabsTab\",\n recipe,\n computed(() => ({ root: props.class })),\n);\nconst sls = useHuiStyles(\n \"TabsTab\",\n computed(() => ({ root: props.style })),\n);\nconst forwardedAttrs = useHuiAttrs(resolvedProps, [\n \"as\",\n \"value\",\n \"class\",\n \"style\",\n \"onClick\",\n \"onKeydown\",\n \"onFocus\",\n]);\nconst rootAttrs = computed<Record<string, unknown>>(() => ({\n ...tabsControl.getTabAttributes(\n {\n rootId: context.rootId.value,\n selectedValue: context.selectedValue.value,\n },\n resolvedProps.value.value,\n { isButtonElement: resolvedProps.value.as === undefined },\n ),\n ...forwardedAttrs.value,\n}));\nconst rootRef = useTemplateRef<HuiElementInstance<E>>(\"root\");\n\nfunction handleClick(event: MouseEvent): void {\n const onClick = resolvedProps.value[\"onClick\"];\n if (typeof onClick === \"function\") onClick(event);\n if (event.defaultPrevented) return;\n\n context.onSelect(resolvedProps.value.value);\n}\n\nfunction handleKeydown(event: KeyboardEvent): void {\n const onKeydown = resolvedProps.value[\"onKeydown\"];\n if (typeof onKeydown === \"function\") onKeydown(event);\n if (event.defaultPrevented) return;\n\n const action = tabsControl.handleTabKeydown(event);\n switch (action) {\n case \"activate\":\n context.onSelect(resolvedProps.value.value);\n return;\n case \"focus-move\":\n tabsControl.moveFocus(event, context.rootId.value);\n return;\n case \"none\":\n return;\n }\n}\n\nfunction handleFocus(event: FocusEvent): void {\n const onFocus = resolvedProps.value[\"onFocus\"];\n if (typeof onFocus === \"function\") onFocus(event);\n if (event.defaultPrevented) return;\n\n if (context.activation.value === \"auto\") {\n context.onSelect(resolvedProps.value.value);\n }\n}\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <component\n :is=\"component\"\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n @click=\"handleClick\"\n @keydown=\"handleKeydown\"\n @focus=\"handleFocus\"\n >\n <slot />\n </component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,WAAW,OAAO,KAAK;EACzD,MAAM,YAAY,eAChB,MAAM,cAAc,MAAM,MAAM,QAAQ,CAC1C;EACA,MAAM,UAAU,eAAe;EAC/B,MAAM,SAAS,eAAe,UAAU,CAAC,CAAC,CAAC;EAC3C,MAAM,MAAM,cACV,WACA,QACA,gBAAgB,EAAE,MAAM,MAAM,MAAM,EAAE,CACxC;EACA,MAAM,MAAM,aACV,WACA,gBAAgB,EAAE,MAAM,MAAM,MAAM,EAAE,CACxC;EACA,MAAM,iBAAiB,YAAY,eAAe;GAChD;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAAC;EACD,MAAM,YAAY,gBAAyC;GACzD,GAAG,YAAY,iBACb;IACE,QAAQ,QAAQ,OAAO;IACvB,eAAe,QAAQ,cAAc;GACvC,GACA,cAAc,MAAM,OACpB,EAAE,iBAAiB,cAAc,MAAM,OAAO,KAAA,EAAU,CAC1D;GACA,GAAG,eAAe;EACpB,EAAE;EACF,MAAM,UAAU,eAAsC,MAAM;EAE5D,SAAS,YAAY,OAAyB;GAC5C,MAAM,UAAU,cAAc,MAAM;GACpC,IAAI,OAAO,YAAY,YAAY,QAAQ,KAAK;GAChD,IAAI,MAAM,kBAAkB;GAE5B,QAAQ,SAAS,cAAc,MAAM,KAAK;EAC5C;EAEA,SAAS,cAAc,OAA4B;GACjD,MAAM,YAAY,cAAc,MAAM;GACtC,IAAI,OAAO,cAAc,YAAY,UAAU,KAAK;GACpD,IAAI,MAAM,kBAAkB;GAG5B,QADe,YAAY,iBAAiB,KACpC,GAAR;IACE,KAAK;KACH,QAAQ,SAAS,cAAc,MAAM,KAAK;KAC1C;IACF,KAAK;KACH,YAAY,UAAU,OAAO,QAAQ,OAAO,KAAK;KACjD;IACF,KAAK,QACH;GACJ;EACF;EAEA,SAAS,YAAY,OAAyB;GAC5C,MAAM,UAAU,cAAc,MAAM;GACpC,IAAI,OAAO,YAAY,YAAY,QAAQ,KAAK;GAChD,IAAI,MAAM,kBAAkB;GAE5B,IAAI,QAAQ,WAAW,UAAU,QAC/B,QAAQ,SAAS,cAAc,MAAM,KAAK;EAE9C;EAEA,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,YAWYC,wBAVL,OAAA,SAAS,GADhBC,WAWY,EATV,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI;EACX,SAAO,OAAA;EACP,WAAS,OAAA;EACT,SAAO,OAAA;;EAER,SAAAC,cAAQ,CAARC,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementType, HuiElementInstance, HuiElementPropsNoInfer } from "../../types/element.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { TabsTabOwnProps } from "./tabs.types.js";
|
|
4
|
+
import { ClassValue, StyleValue } from "vue";
|
|
5
|
+
//#region src/components/tabs/tabs-tab.vue.d.ts
|
|
6
|
+
declare const __VLS_export: <E extends ElementType = "button">(__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<{
|
|
7
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<TabsTabOwnProps & {
|
|
8
|
+
as?: E | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
class?: ClassValue | undefined;
|
|
11
|
+
style?: StyleValue | undefined;
|
|
12
|
+
} & Omit<HuiElementPropsNoInfer<E>, "style" | "class" | "as" | "value">> & (typeof globalThis extends {
|
|
13
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
14
|
+
} ? P : {});
|
|
15
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
16
|
+
root: Readonly<import("vue").ShallowRef<HuiElementInstance<E> | null>>;
|
|
17
|
+
}>) => void;
|
|
18
|
+
attrs: any;
|
|
19
|
+
slots: {
|
|
20
|
+
default?: () => unknown;
|
|
21
|
+
};
|
|
22
|
+
emit: {};
|
|
23
|
+
}>) => import("vue").VNode & {
|
|
24
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { _default as default };
|
|
30
|
+
//# sourceMappingURL=tabs-tab.vue.d.ts.map
|