@hebium-ui/vue 0.1.0-alpha.3 → 0.1.0-alpha.4
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/components/alert/alert.types.d.ts +1 -2
- package/dist/components/alert/alert.vue.d.ts +4 -3
- package/dist/components/alert/{alert.js → alert.vue.js} +34 -13
- package/dist/components/alert/alert.vue.js.map +1 -0
- package/dist/components/anchor/anchor.types.d.ts +1 -2
- package/dist/components/anchor/anchor.vue.d.ts +4 -3
- package/dist/components/anchor/{anchor.js → anchor.vue.js} +11 -3
- package/dist/components/anchor/anchor.vue.js.map +1 -0
- package/dist/components/avatar/avatar.types.d.ts +1 -2
- package/dist/components/avatar/avatar.vue.d.ts +4 -3
- package/dist/components/avatar/{avatar.js → avatar.vue.js} +25 -3
- package/dist/components/avatar/avatar.vue.js.map +1 -0
- package/dist/components/blockquote/blockquote.types.d.ts +1 -2
- package/dist/components/blockquote/blockquote.vue.d.ts +4 -3
- package/dist/components/blockquote/{blockquote.js → blockquote.vue.js} +25 -3
- package/dist/components/blockquote/blockquote.vue.js.map +1 -0
- package/dist/components/button/button.types.d.ts +12 -2
- package/dist/components/button/button.vue.d.ts +5 -3
- package/dist/components/button/button.vue.js +149 -0
- package/dist/components/button/button.vue.js.map +1 -0
- package/dist/components/checkbox/checkbox.types.d.ts +1 -2
- package/dist/components/checkbox/checkbox.vue.d.ts +4 -3
- package/dist/components/checkbox/{checkbox.js → checkbox.vue.js} +26 -4
- package/dist/components/checkbox/checkbox.vue.js.map +1 -0
- package/dist/components/code/code.types.d.ts +1 -2
- package/dist/components/code/code.vue.d.ts +4 -3
- package/dist/components/code/{code.js → code.vue.js} +11 -3
- package/dist/components/code/code.vue.js.map +1 -0
- package/dist/components/details/details.types.d.ts +1 -2
- package/dist/components/details/details.vue.d.ts +4 -3
- package/dist/components/details/{details.js → details.vue.js} +25 -3
- package/dist/components/details/details.vue.js.map +1 -0
- package/dist/components/dialog/dialog-close.vue.d.ts +5 -3
- package/dist/components/dialog/{dialog-close.js → dialog-close.vue.js} +30 -8
- package/dist/components/dialog/dialog-close.vue.js.map +1 -0
- package/dist/components/dialog/dialog-content.vue.d.ts +3 -2
- package/dist/components/dialog/{dialog-content.js → dialog-content.vue.js} +30 -8
- package/dist/components/dialog/dialog-content.vue.js.map +1 -0
- package/dist/components/dialog/dialog-trigger.vue.d.ts +6 -4
- package/dist/components/dialog/{dialog-trigger.js → dialog-trigger.vue.js} +28 -12
- package/dist/components/dialog/dialog-trigger.vue.js.map +1 -0
- package/dist/components/dialog/dialog.types.d.ts +6 -7
- package/dist/components/dialog/dialog.vue.d.ts +1 -2
- package/dist/components/dialog/{dialog.js → dialog.vue.js} +2 -2
- package/dist/components/dialog/dialog.vue.js.map +1 -0
- package/dist/components/dialog/index.d.ts +2 -3
- package/dist/components/dl/dl-dd.vue.d.ts +4 -3
- package/dist/components/dl/{dl-dd.js → dl-dd.vue.js} +11 -3
- package/dist/components/dl/dl-dd.vue.js.map +1 -0
- package/dist/components/dl/dl-dt.vue.d.ts +4 -3
- package/dist/components/dl/{dl-dt.js → dl-dt.vue.js} +11 -3
- package/dist/components/dl/dl-dt.vue.js.map +1 -0
- package/dist/components/dl/dl.types.d.ts +1 -2
- package/dist/components/dl/dl.vue.d.ts +4 -3
- package/dist/components/dl/{dl.js → dl.vue.js} +11 -3
- package/dist/components/dl/dl.vue.js.map +1 -0
- package/dist/components/drawer/drawer-close.vue.d.ts +5 -3
- package/dist/components/drawer/{drawer-close.js → drawer-close.vue.js} +30 -8
- package/dist/components/drawer/drawer-close.vue.js.map +1 -0
- package/dist/components/drawer/drawer-content.vue.d.ts +3 -2
- package/dist/components/drawer/{drawer-content.js → drawer-content.vue.js} +30 -8
- package/dist/components/drawer/drawer-content.vue.js.map +1 -0
- package/dist/components/drawer/drawer-trigger.vue.d.ts +6 -4
- package/dist/components/drawer/{drawer-trigger.js → drawer-trigger.vue.js} +28 -11
- package/dist/components/drawer/drawer-trigger.vue.js.map +1 -0
- package/dist/components/drawer/drawer.types.d.ts +6 -7
- package/dist/components/drawer/drawer.vue.d.ts +1 -2
- package/dist/components/drawer/{drawer.js → drawer.vue.js} +2 -2
- package/dist/components/drawer/drawer.vue.js.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -3
- package/dist/components/fieldset/fieldset.types.d.ts +1 -2
- package/dist/components/fieldset/fieldset.vue.d.ts +4 -3
- package/dist/components/fieldset/{fieldset.js → fieldset.vue.js} +11 -3
- package/dist/components/fieldset/fieldset.vue.js.map +1 -0
- package/dist/components/heading/heading.types.d.ts +1 -2
- package/dist/components/heading/heading.vue.d.ts +4 -3
- package/dist/components/heading/{heading.js → heading.vue.js} +11 -3
- package/dist/components/heading/heading.vue.js.map +1 -0
- package/dist/components/hr/hr.types.d.ts +1 -2
- package/dist/components/hr/hr.vue.d.ts +4 -3
- package/dist/components/hr/{hr.js → hr.vue.js} +11 -3
- package/dist/components/hr/hr.vue.js.map +1 -0
- package/dist/components/index.d.ts +24 -26
- package/dist/components/input/input.types.d.ts +1 -2
- package/dist/components/input/input.vue.d.ts +4 -3
- package/dist/components/input/{input.js → input.vue.js} +27 -5
- package/dist/components/input/input.vue.js.map +1 -0
- package/dist/components/label/label.types.d.ts +1 -2
- package/dist/components/label/label.vue.d.ts +3 -2
- package/dist/components/label/{label.js → label.vue.js} +28 -6
- package/dist/components/label/label.vue.js.map +1 -0
- package/dist/components/menu/index.d.ts +2 -3
- package/dist/components/menu/menu-content.vue.d.ts +4 -3
- package/dist/components/menu/{menu-content.js → menu-content.vue.js} +12 -4
- package/dist/components/menu/menu-content.vue.js.map +1 -0
- package/dist/components/menu/menu-item.vue.d.ts +4 -3
- package/dist/components/menu/{menu-item.js → menu-item.vue.js} +12 -4
- package/dist/components/menu/menu-item.vue.js.map +1 -0
- package/dist/components/menu/menu-trigger.vue.d.ts +6 -4
- package/dist/components/menu/{menu-trigger.js → menu-trigger.vue.js} +28 -12
- package/dist/components/menu/menu-trigger.vue.js.map +1 -0
- package/dist/components/menu/menu.types.d.ts +5 -6
- package/dist/components/menu/menu.vue.d.ts +1 -2
- package/dist/components/menu/{menu.js → menu.vue.js} +2 -2
- package/dist/components/menu/menu.vue.js.map +1 -0
- package/dist/components/paragraph/paragraph.types.d.ts +1 -2
- package/dist/components/paragraph/paragraph.vue.d.ts +4 -3
- package/dist/components/paragraph/{paragraph.js → paragraph.vue.js} +11 -3
- package/dist/components/paragraph/paragraph.vue.js.map +1 -0
- package/dist/components/popover/index.d.ts +2 -3
- package/dist/components/popover/popover-content.vue.d.ts +4 -3
- package/dist/components/popover/{popover-content.js → popover-content.vue.js} +12 -4
- package/dist/components/popover/popover-content.vue.js.map +1 -0
- package/dist/components/popover/popover-trigger.vue.d.ts +6 -4
- package/dist/components/popover/{popover-trigger.js → popover-trigger.vue.js} +28 -11
- package/dist/components/popover/popover-trigger.vue.js.map +1 -0
- package/dist/components/popover/popover.types.d.ts +5 -6
- package/dist/components/popover/popover.vue.d.ts +1 -2
- package/dist/components/popover/{popover.js → popover.vue.js} +2 -2
- package/dist/components/popover/popover.vue.js.map +1 -0
- package/dist/components/progress/progress.types.d.ts +1 -2
- package/dist/components/progress/progress.vue.d.ts +4 -3
- package/dist/components/progress/{progress.js → progress.vue.js} +26 -4
- package/dist/components/progress/progress.vue.js.map +1 -0
- package/dist/components/radio/radio.types.d.ts +1 -2
- package/dist/components/radio/radio.vue.d.ts +4 -3
- package/dist/components/radio/{radio.js → radio.vue.js} +26 -4
- package/dist/components/radio/radio.vue.js.map +1 -0
- package/dist/components/radiogroup/radiogroup.types.d.ts +1 -2
- package/dist/components/radiogroup/radiogroup.vue.d.ts +3 -2
- package/dist/components/radiogroup/{radiogroup.js → radiogroup.vue.js} +27 -5
- package/dist/components/radiogroup/radiogroup.vue.js.map +1 -0
- package/dist/components/section/section.types.d.ts +1 -2
- package/dist/components/section/section.vue.d.ts +4 -3
- package/dist/components/section/{section.js → section.vue.js} +11 -3
- package/dist/components/section/section.vue.js.map +1 -0
- package/dist/components/segmented-control/index.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control-item.vue.d.ts +4 -3
- package/dist/components/segmented-control/{segmented-control-item.js → segmented-control-item.vue.js} +12 -4
- package/dist/components/segmented-control/segmented-control-item.vue.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.types.d.ts +1 -2
- package/dist/components/segmented-control/segmented-control.vue.d.ts +4 -3
- package/dist/components/segmented-control/{segmented-control.js → segmented-control.vue.js} +13 -4
- package/dist/components/segmented-control/segmented-control.vue.js.map +1 -0
- package/dist/components/select/select.types.d.ts +1 -2
- package/dist/components/select/select.vue.d.ts +4 -3
- package/dist/components/select/{select.js → select.vue.js} +27 -5
- package/dist/components/select/select.vue.js.map +1 -0
- package/dist/components/skip-link/skip-link.types.d.ts +1 -2
- package/dist/components/skip-link/skip-link.vue.d.ts +4 -3
- package/dist/components/skip-link/{skip-link.js → skip-link.vue.js} +11 -3
- package/dist/components/skip-link/skip-link.vue.js.map +1 -0
- package/dist/components/status-icon/index.d.ts +3 -0
- package/dist/components/status-icon/status-icon.types.d.ts +20 -0
- package/dist/components/status-icon/status-icon.vue.d.ts +23 -0
- package/dist/components/status-icon/status-icon.vue.js +97 -0
- package/dist/components/status-icon/status-icon.vue.js.map +1 -0
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/table-caption.vue.d.ts +4 -3
- package/dist/components/table/{table-caption.js → table-caption.vue.js} +11 -3
- package/dist/components/table/table-caption.vue.js.map +1 -0
- package/dist/components/table/table-tbody.vue.d.ts +4 -3
- package/dist/components/table/{table-tbody.js → table-tbody.vue.js} +11 -3
- package/dist/components/table/table-tbody.vue.js.map +1 -0
- package/dist/components/table/table-td.vue.d.ts +4 -3
- package/dist/components/table/{table-td.js → table-td.vue.js} +11 -3
- package/dist/components/table/table-td.vue.js.map +1 -0
- package/dist/components/table/table-tfoot.vue.d.ts +4 -3
- package/dist/components/table/{table-tfoot.js → table-tfoot.vue.js} +11 -3
- package/dist/components/table/table-tfoot.vue.js.map +1 -0
- package/dist/components/table/table-th.vue.d.ts +4 -3
- package/dist/components/table/{table-th.js → table-th.vue.js} +11 -3
- package/dist/components/table/table-th.vue.js.map +1 -0
- package/dist/components/table/table-thead.vue.d.ts +4 -3
- package/dist/components/table/{table-thead.js → table-thead.vue.js} +11 -3
- package/dist/components/table/table-thead.vue.js.map +1 -0
- package/dist/components/table/table-tr.vue.d.ts +4 -3
- package/dist/components/table/{table-tr.js → table-tr.vue.js} +11 -3
- package/dist/components/table/table-tr.vue.js.map +1 -0
- package/dist/components/table/table.types.d.ts +1 -2
- package/dist/components/table/table.vue.d.ts +4 -3
- package/dist/components/table/{table.js → table.vue.js} +11 -3
- package/dist/components/table/table.vue.js.map +1 -0
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/tabs-list.vue.d.ts +4 -3
- package/dist/components/tabs/{tabs-list.js → tabs-list.vue.js} +12 -4
- package/dist/components/tabs/tabs-list.vue.js.map +1 -0
- package/dist/components/tabs/tabs-panel.vue.d.ts +4 -3
- package/dist/components/tabs/{tabs-panel.js → tabs-panel.vue.js} +12 -4
- package/dist/components/tabs/tabs-panel.vue.js.map +1 -0
- package/dist/components/tabs/tabs-tab.vue.d.ts +4 -3
- package/dist/components/tabs/{tabs-tab.js → tabs-tab.vue.js} +12 -4
- package/dist/components/tabs/tabs-tab.vue.js.map +1 -0
- package/dist/components/tabs/tabs.types.d.ts +1 -2
- package/dist/components/tabs/tabs.vue.d.ts +4 -3
- package/dist/components/tabs/{tabs.js → tabs.vue.js} +12 -4
- package/dist/components/tabs/tabs.vue.js.map +1 -0
- package/dist/components/text/text.types.d.ts +1 -2
- package/dist/components/text/text.vue.d.ts +4 -3
- package/dist/components/text/{text.js → text.vue.js} +11 -3
- package/dist/components/text/text.vue.js.map +1 -0
- package/dist/components/textarea/textarea.types.d.ts +1 -2
- package/dist/components/textarea/textarea.vue.d.ts +4 -3
- package/dist/components/textarea/{textarea.js → textarea.vue.js} +27 -5
- package/dist/components/textarea/textarea.vue.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -3
- package/dist/components/tooltip/tooltip-content.vue.d.ts +4 -3
- package/dist/components/tooltip/{tooltip-content.js → tooltip-content.vue.js} +12 -4
- package/dist/components/tooltip/tooltip-content.vue.js.map +1 -0
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +6 -4
- package/dist/components/tooltip/{tooltip-trigger.js → tooltip-trigger.vue.js} +27 -9
- package/dist/components/tooltip/tooltip-trigger.vue.js.map +1 -0
- package/dist/components/tooltip/tooltip.types.d.ts +5 -6
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -2
- package/dist/components/tooltip/{tooltip.js → tooltip.vue.js} +2 -2
- package/dist/components/tooltip/tooltip.vue.js.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.types.d.ts +1 -2
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -3
- package/dist/components/visually-hidden/{visually-hidden.js → visually-hidden.vue.js} +11 -3
- package/dist/components/visually-hidden/visually-hidden.vue.js.map +1 -0
- package/dist/index.d.ts +24 -27
- package/dist/index.js +61 -65
- package/dist/plugin.d.ts +41 -40
- package/dist/plugin.js +61 -59
- package/dist/plugin.js.map +1 -1
- package/dist/provider/hui-provider.context.d.ts +12 -7
- package/dist/provider/hui-provider.context.js +32 -31
- package/dist/provider/hui-provider.context.js.map +1 -1
- package/dist/provider/hui-provider.vue.d.ts +1 -2
- package/dist/provider/{hui-provider.js → hui-provider.vue.js} +1 -1
- package/dist/provider/hui-provider.vue.js.map +1 -0
- package/dist/types/element.d.ts +1 -2
- package/dist/types/hui-component.d.ts +8 -6
- package/dist/types/index.d.ts +2 -2
- package/dist/types/polymorphic.d.ts +3 -14
- package/package.json +13 -13
- package/dist/components/alert/alert.js.map +0 -1
- package/dist/components/anchor/anchor.js.map +0 -1
- package/dist/components/avatar/avatar.js.map +0 -1
- package/dist/components/blockquote/blockquote.js.map +0 -1
- package/dist/components/button/button.js +0 -103
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/code/code.js.map +0 -1
- package/dist/components/details/details.js.map +0 -1
- package/dist/components/dialog/dialog-close.js.map +0 -1
- package/dist/components/dialog/dialog-content.js.map +0 -1
- package/dist/components/dialog/dialog-trigger.js.map +0 -1
- package/dist/components/dialog/dialog.context.d.ts +0 -3
- package/dist/components/dialog/dialog.js.map +0 -1
- package/dist/components/dl/dl-dd.js.map +0 -1
- package/dist/components/dl/dl-dt.js.map +0 -1
- package/dist/components/dl/dl.js.map +0 -1
- package/dist/components/drawer/drawer-close.js.map +0 -1
- package/dist/components/drawer/drawer-content.js.map +0 -1
- package/dist/components/drawer/drawer-trigger.js.map +0 -1
- package/dist/components/drawer/drawer.context.d.ts +0 -3
- package/dist/components/drawer/drawer.js.map +0 -1
- package/dist/components/fieldset/fieldset.js.map +0 -1
- package/dist/components/heading/heading.js.map +0 -1
- package/dist/components/hr/hr.js.map +0 -1
- package/dist/components/input/input.js.map +0 -1
- package/dist/components/label/label.js.map +0 -1
- package/dist/components/menu/menu-content.js.map +0 -1
- package/dist/components/menu/menu-item.js.map +0 -1
- package/dist/components/menu/menu-trigger.js.map +0 -1
- package/dist/components/menu/menu.context.d.ts +0 -3
- package/dist/components/menu/menu.js.map +0 -1
- package/dist/components/paragraph/paragraph.js.map +0 -1
- package/dist/components/popover/popover-content.js.map +0 -1
- package/dist/components/popover/popover-trigger.js.map +0 -1
- package/dist/components/popover/popover.context.d.ts +0 -3
- package/dist/components/popover/popover.js.map +0 -1
- package/dist/components/progress/progress.js.map +0 -1
- package/dist/components/radio/radio.js.map +0 -1
- package/dist/components/radiogroup/radiogroup.js.map +0 -1
- package/dist/components/section/section.js.map +0 -1
- package/dist/components/segmented-control/segmented-control-item.js.map +0 -1
- package/dist/components/segmented-control/segmented-control.js.map +0 -1
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/skip-link/skip-link.js.map +0 -1
- package/dist/components/table/table-caption.js.map +0 -1
- package/dist/components/table/table-tbody.js.map +0 -1
- package/dist/components/table/table-td.js.map +0 -1
- package/dist/components/table/table-tfoot.js.map +0 -1
- package/dist/components/table/table-th.js.map +0 -1
- package/dist/components/table/table-thead.js.map +0 -1
- package/dist/components/table/table-tr.js.map +0 -1
- package/dist/components/table/table.js.map +0 -1
- package/dist/components/tabs/tabs-list.js.map +0 -1
- package/dist/components/tabs/tabs-panel.js.map +0 -1
- package/dist/components/tabs/tabs-tab.js.map +0 -1
- package/dist/components/tabs/tabs.js.map +0 -1
- package/dist/components/text/text.js.map +0 -1
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/tooltip/tooltip-content.js.map +0 -1
- package/dist/components/tooltip/tooltip-trigger.js.map +0 -1
- package/dist/components/tooltip/tooltip.context.d.ts +0 -3
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/visually-hidden/visually-hidden.js.map +0 -1
- package/dist/provider/hui-provider.js.map +0 -1
|
@@ -8,7 +8,9 @@ declare const __VLS_export: <E extends ElementType = "div">(__VLS_props: NonNull
|
|
|
8
8
|
} & {
|
|
9
9
|
class?: ClassValue | undefined;
|
|
10
10
|
style?: StyleValue | undefined;
|
|
11
|
-
|
|
11
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
12
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
13
|
+
} & Omit<HuiElementPropsNoInfer<E>, "class" | "style" | "classes" | "styles" | "as">> & (typeof globalThis extends {
|
|
12
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
13
15
|
} ? P : {});
|
|
14
16
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
@@ -24,5 +26,4 @@ declare const __VLS_export: <E extends ElementType = "div">(__VLS_props: NonNull
|
|
|
24
26
|
};
|
|
25
27
|
declare const _default: typeof __VLS_export;
|
|
26
28
|
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
27
|
-
export { _default as default };
|
|
28
|
-
//# sourceMappingURL=skip-link.vue.d.ts.map
|
|
29
|
+
export { _default as default };
|
|
@@ -33,6 +33,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
33
33
|
],
|
|
34
34
|
required: false,
|
|
35
35
|
skipCheck: true
|
|
36
|
+
},
|
|
37
|
+
classes: {
|
|
38
|
+
type: null,
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
styles: {
|
|
42
|
+
type: null,
|
|
43
|
+
required: false
|
|
36
44
|
}
|
|
37
45
|
},
|
|
38
46
|
setup(__props, { expose: __expose }) {
|
|
@@ -41,8 +49,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
41
49
|
const resolvedProps = useHuiProps("SkipLink", props, attrs);
|
|
42
50
|
const component = computed(() => toRaw(resolvedProps.value.as ?? "div"));
|
|
43
51
|
const recipe = computed(() => skipLinkRecipe());
|
|
44
|
-
const cls = useHuiClasses("SkipLink", recipe, computed(() =>
|
|
45
|
-
const sls = useHuiStyles("SkipLink", computed(() =>
|
|
52
|
+
const cls = useHuiClasses("SkipLink", recipe, computed(() => props));
|
|
53
|
+
const sls = useHuiStyles("SkipLink", computed(() => props));
|
|
46
54
|
const rootAttrs = useHuiAttrs(resolvedProps, ["as"]);
|
|
47
55
|
const rootRef = useTemplateRef("root");
|
|
48
56
|
__expose({ root: rootRef });
|
|
@@ -76,4 +84,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76
84
|
var skip_link_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/skip-link/skip-link.vue"]]);
|
|
77
85
|
export { skip_link_default as default };
|
|
78
86
|
|
|
79
|
-
//# sourceMappingURL=skip-link.js.map
|
|
87
|
+
//# sourceMappingURL=skip-link.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skip-link.vue.js","names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot"],"sources":["../../../src/components/skip-link/skip-link.vue"],"sourcesContent":["<script\n setup\n lang=\"ts\"\n generic=\"E extends ElementType = 'div'\"\n>\nimport { skipLinkRecipe } 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 type { SkipLinkOwnProps } from \"./skip-link.types\";\n\ndefineOptions({\n name: \"HuiSkipLink\",\n inheritAttrs: false,\n});\n\ntype Props =\n & SkipLinkOwnProps\n & { as?: E | undefined }\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?: Partial<Record<\"root\", ClassValue | undefined>> | undefined;\n styles?: Partial<Record<\"root\", StyleValue | undefined>> | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<E>,\n keyof SkipLinkOwnProps | \"as\" | \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"SkipLink\", props, attrs);\nconst component = computed<E | \"div\">(() =>\n toRaw(resolvedProps.value.as ?? \"div\")\n);\nconst recipe = computed(() => skipLinkRecipe());\nconst cls = useHuiClasses(\n \"SkipLink\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"SkipLink\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps, [\"as\"]);\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CA,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,SAAS,eAAe,eAAe,CAAC;EAC9C,MAAM,MAAM,cACV,YACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,YACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,eAAe,CAAC,IAAI,CAAC;EACnD,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,C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HuiElementInstance, HuiElementProps } from "../../types/element.js";
|
|
2
|
+
import { HuiComponentProps } from "../../types/hui-component.js";
|
|
3
|
+
import "../../types/index.js";
|
|
4
|
+
import { StatusIconSlots, StatusIconVariants } from "@hebium-ui/core";
|
|
5
|
+
export interface StatusIconOwnProps {
|
|
6
|
+
/**
|
|
7
|
+
* Status to display.
|
|
8
|
+
*/
|
|
9
|
+
status: NonNullable<StatusIconVariants["status"]>;
|
|
10
|
+
/**
|
|
11
|
+
* Icon color.
|
|
12
|
+
*
|
|
13
|
+
* @default "inherit"
|
|
14
|
+
*/
|
|
15
|
+
color?: StatusIconVariants["color"] | undefined;
|
|
16
|
+
}
|
|
17
|
+
export type StatusIconProps = HuiComponentProps<Omit<HuiElementProps<"span">, "children" | "color"> & StatusIconOwnProps, StatusIconSlots>;
|
|
18
|
+
export interface StatusIconExposed {
|
|
19
|
+
readonly root: HuiElementInstance<"span"> | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HuiElementPropsNoInfer } from "../../types/element.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { StatusIconOwnProps } from "./status-icon.types.js";
|
|
4
|
+
import { ClassValue, StyleValue } from "vue";
|
|
5
|
+
import { StatusIconSlots } from "@hebium-ui/core";
|
|
6
|
+
type Props = StatusIconOwnProps & {
|
|
7
|
+
class?: ClassValue | undefined;
|
|
8
|
+
style?: StyleValue | undefined;
|
|
9
|
+
classes?: Partial<Record<StatusIconSlots, ClassValue | undefined>> | undefined;
|
|
10
|
+
styles?: Partial<Record<StatusIconSlots, StyleValue | undefined>> | undefined;
|
|
11
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"span">, keyof StatusIconOwnProps | "children" | "class" | "style" | "classes" | "styles">;
|
|
12
|
+
type __VLS_Slots = {};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
14
|
+
root: Readonly<import("vue").ShallowRef<HTMLSpanElement | 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
|
+
export { _default as default };
|
|
@@ -0,0 +1,97 @@
|
|
|
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, useAttrs, useTemplateRef } from "vue";
|
|
4
|
+
import { statusIconRecipe } from "@hebium-ui/core";
|
|
5
|
+
// src/components/status-icon/status-icon.vue
|
|
6
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
|
+
name: "HuiStatusIcon",
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "status-icon",
|
|
10
|
+
props: {
|
|
11
|
+
status: {
|
|
12
|
+
type: null,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
color: {
|
|
16
|
+
type: null,
|
|
17
|
+
required: false
|
|
18
|
+
},
|
|
19
|
+
class: {
|
|
20
|
+
type: [
|
|
21
|
+
Boolean,
|
|
22
|
+
null,
|
|
23
|
+
String,
|
|
24
|
+
Object,
|
|
25
|
+
Array
|
|
26
|
+
],
|
|
27
|
+
required: false,
|
|
28
|
+
skipCheck: true
|
|
29
|
+
},
|
|
30
|
+
style: {
|
|
31
|
+
type: [
|
|
32
|
+
Boolean,
|
|
33
|
+
null,
|
|
34
|
+
String,
|
|
35
|
+
Object,
|
|
36
|
+
Array
|
|
37
|
+
],
|
|
38
|
+
required: false,
|
|
39
|
+
skipCheck: true
|
|
40
|
+
},
|
|
41
|
+
classes: {
|
|
42
|
+
type: null,
|
|
43
|
+
required: false
|
|
44
|
+
},
|
|
45
|
+
styles: {
|
|
46
|
+
type: null,
|
|
47
|
+
required: false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
setup(__props, { expose: __expose }) {
|
|
51
|
+
const props = __props;
|
|
52
|
+
const attrs = useAttrs();
|
|
53
|
+
const resolvedProps = useHuiProps("StatusIcon", props, attrs);
|
|
54
|
+
const recipe = computed(() => {
|
|
55
|
+
const resolved = resolvedProps.value;
|
|
56
|
+
return statusIconRecipe({
|
|
57
|
+
status: resolved.status,
|
|
58
|
+
color: resolved.color
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
const cls = useHuiClasses("StatusIcon", recipe, computed(() => props));
|
|
62
|
+
const sls = useHuiStyles("StatusIcon", computed(() => props));
|
|
63
|
+
const forwardedAttrs = useHuiAttrs(resolvedProps, ["status", "color"]);
|
|
64
|
+
const rootAttrs = computed(() => ({
|
|
65
|
+
"aria-hidden": true,
|
|
66
|
+
...forwardedAttrs.value
|
|
67
|
+
}));
|
|
68
|
+
const rootRef = useTemplateRef("root");
|
|
69
|
+
__expose({ root: rootRef });
|
|
70
|
+
const __returned__ = {
|
|
71
|
+
props,
|
|
72
|
+
attrs,
|
|
73
|
+
resolvedProps,
|
|
74
|
+
recipe,
|
|
75
|
+
cls,
|
|
76
|
+
sls,
|
|
77
|
+
forwardedAttrs,
|
|
78
|
+
rootAttrs,
|
|
79
|
+
rootRef
|
|
80
|
+
};
|
|
81
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
82
|
+
enumerable: false,
|
|
83
|
+
value: true
|
|
84
|
+
});
|
|
85
|
+
return __returned__;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
89
|
+
return openBlock(), createElementBlock("span", mergeProps({ ref: "root" }, $setup.rootAttrs, {
|
|
90
|
+
class: $setup.cls.root,
|
|
91
|
+
style: $setup.sls.root
|
|
92
|
+
}), null, 16);
|
|
93
|
+
}
|
|
94
|
+
var status_icon_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/status-icon/status-icon.vue"]]);
|
|
95
|
+
export { status_icon_default as default };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=status-icon.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-icon.vue.js","names":["_openBlock","_createElementBlock","_mergeProps"],"sources":["../../../src/components/status-icon/status-icon.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n statusIconRecipe,\n type StatusIconSlots as StatusIconRecipeSlots,\n} 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 { StatusIconOwnProps } from \"./status-icon.types\";\n\ndefineOptions({\n name: \"HuiStatusIcon\",\n inheritAttrs: false,\n});\n\ntype Props =\n & StatusIconOwnProps\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?:\n | Partial<Record<StatusIconRecipeSlots, ClassValue | undefined>>\n | undefined;\n styles?:\n | Partial<Record<StatusIconRecipeSlots, StyleValue | undefined>>\n | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"span\">,\n | keyof StatusIconOwnProps\n | \"children\"\n | \"class\"\n | \"style\"\n | \"classes\"\n | \"styles\"\n >;\n\nconst props = defineProps<Props>();\ndefineSlots<{}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"StatusIcon\", props, attrs);\nconst recipe = computed(() => {\n const resolved = resolvedProps.value;\n return statusIconRecipe({\n status: resolved.status,\n color: resolved.color,\n });\n});\n\nconst cls = useHuiClasses(\"StatusIcon\", recipe, computed(() => props));\nconst sls = useHuiStyles(\"StatusIcon\", computed(() => props));\nconst forwardedAttrs = useHuiAttrs(resolvedProps, [\n \"status\",\n \"color\",\n]);\nconst rootAttrs = computed<Record<string, unknown>>(() => ({\n \"aria-hidden\": true,\n ...forwardedAttrs.value,\n}));\nconst rootRef = useTemplateRef<HuiElementInstance<\"span\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <span\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDA,MAAM,QAAQ;EAGd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,cAAc,OAAO,KAAK;EAC5D,MAAM,SAAS,eAAe;GAC5B,MAAM,WAAW,cAAc;GAC/B,OAAO,iBAAiB;IACtB,QAAQ,SAAS;IACjB,OAAO,SAAS;GAClB,CAAC;EACH,CAAC;EAED,MAAM,MAAM,cAAc,cAAc,QAAQ,eAAe,KAAK,CAAC;EACrE,MAAM,MAAM,aAAa,cAAc,eAAe,KAAK,CAAC;EAC5D,MAAM,iBAAiB,YAAY,eAAe,CAChD,UACA,OACF,CAAC;EACD,MAAM,YAAY,gBAAyC;GACzD,eAAe;GACf,GAAG,eAAe;EACpB,EAAE;EACF,MAAM,UAAU,eAA2C,MAAM;EAEjE,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,mBAKE,QALFC,WAKE,EAJA,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TableCaptionExposed, TableCaptionOwnProps, TableCaptionProps, TableExposed, TableOwnProps, TableProps, TableTbodyExposed, TableTbodyProps, TableTdExposed, TableTdProps, TableTfootExposed, TableTfootProps, TableThExposed, TableThProps, TableTheadExposed, TableTheadProps, TableTrExposed, TableTrOwnProps, TableTrProps } from "./table.types.js";
|
|
2
1
|
import _default from "./table-caption.vue.js";
|
|
3
2
|
import _default$1 from "./table-tbody.vue.js";
|
|
4
3
|
import _default$2 from "./table-td.vue.js";
|
|
@@ -6,5 +5,6 @@ import _default$3 from "./table-tfoot.vue.js";
|
|
|
6
5
|
import _default$4 from "./table-th.vue.js";
|
|
7
6
|
import _default$5 from "./table-thead.vue.js";
|
|
8
7
|
import _default$6 from "./table-tr.vue.js";
|
|
8
|
+
import { TableCaptionExposed, TableCaptionOwnProps, TableCaptionProps, TableExposed, TableOwnProps, TableProps, TableTbodyExposed, TableTbodyProps, TableTdExposed, TableTdProps, TableTfootExposed, TableTfootProps, TableThExposed, TableThProps, TableTheadExposed, TableTheadProps, TableTrExposed, TableTrOwnProps, TableTrProps } from "./table.types.js";
|
|
9
9
|
import _default$7 from "./table.vue.js";
|
|
10
10
|
export { _default$7 as Table, _default as TableCaption, type TableCaptionExposed, type TableCaptionOwnProps, type TableCaptionProps, type TableExposed, type TableOwnProps, type TableProps, _default$1 as TableTbody, type TableTbodyExposed, type TableTbodyProps, _default$2 as TableTd, type TableTdExposed, type TableTdProps, _default$3 as TableTfoot, type TableTfootExposed, type TableTfootProps, _default$4 as TableTh, type TableThExposed, type TableThProps, _default$5 as TableThead, type TableTheadExposed, type TableTheadProps, _default$6 as TableTr, type TableTrExposed, type TableTrOwnProps, type TableTrProps };
|
|
@@ -5,7 +5,9 @@ import { ClassValue, StyleValue } from "vue";
|
|
|
5
5
|
type Props = TableCaptionOwnProps & {
|
|
6
6
|
class?: ClassValue | undefined;
|
|
7
7
|
style?: StyleValue | undefined;
|
|
8
|
-
|
|
8
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
9
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
10
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"caption">, keyof TableCaptionOwnProps | "class" | "style" | "classes" | "styles">;
|
|
9
11
|
type __VLS_Slots = {
|
|
10
12
|
default?: () => unknown;
|
|
11
13
|
};
|
|
@@ -19,5 +21,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
19
21
|
$slots: S;
|
|
20
22
|
};
|
|
21
23
|
};
|
|
22
|
-
export { _default as default };
|
|
23
|
-
//# sourceMappingURL=table-caption.vue.d.ts.map
|
|
24
|
+
export { _default as default };
|
|
@@ -33,6 +33,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
33
33
|
],
|
|
34
34
|
required: false,
|
|
35
35
|
skipCheck: true
|
|
36
|
+
},
|
|
37
|
+
classes: {
|
|
38
|
+
type: null,
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
styles: {
|
|
42
|
+
type: null,
|
|
43
|
+
required: false
|
|
36
44
|
}
|
|
37
45
|
},
|
|
38
46
|
setup(__props, { expose: __expose }) {
|
|
@@ -40,8 +48,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
40
48
|
const attrs = useAttrs();
|
|
41
49
|
const resolvedProps = useHuiProps("TableCaption", props, attrs);
|
|
42
50
|
const recipe = computed(() => captionRecipe({ side: resolvedProps.value.side }));
|
|
43
|
-
const cls = useHuiClasses("TableCaption", recipe, computed(() =>
|
|
44
|
-
const sls = useHuiStyles("TableCaption", computed(() =>
|
|
51
|
+
const cls = useHuiClasses("TableCaption", recipe, computed(() => props));
|
|
52
|
+
const sls = useHuiStyles("TableCaption", computed(() => props));
|
|
45
53
|
const rootAttrs = useHuiAttrs(resolvedProps, ["side"]);
|
|
46
54
|
const rootRef = useTemplateRef("root");
|
|
47
55
|
__expose({ root: rootRef });
|
|
@@ -71,4 +79,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
71
79
|
var table_caption_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/table/table-caption.vue"]]);
|
|
72
80
|
export { table_caption_default as default };
|
|
73
81
|
|
|
74
|
-
//# sourceMappingURL=table-caption.js.map
|
|
82
|
+
//# sourceMappingURL=table-caption.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-caption.vue.js","names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot"],"sources":["../../../src/components/table/table-caption.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { captionRecipe } 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 { TableCaptionOwnProps } from \"./table.types\";\n\ndefineOptions({\n name: \"HuiTableCaption\",\n inheritAttrs: false,\n});\n\ntype Props =\n & TableCaptionOwnProps\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?: Partial<Record<\"root\", ClassValue | undefined>> | undefined;\n styles?: Partial<Record<\"root\", StyleValue | undefined>> | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"caption\">,\n keyof TableCaptionOwnProps | \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TableCaption\", props, attrs);\nconst recipe = computed(() =>\n captionRecipe({ side: resolvedProps.value.side })\n);\nconst cls = useHuiClasses(\n \"TableCaption\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"TableCaption\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps, [\"side\"]);\nconst rootRef = useTemplateRef<HuiElementInstance<\"caption\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <caption\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </caption>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,gBAAgB,OAAO,KAAK;EAC9D,MAAM,SAAS,eACb,cAAc,EAAE,MAAM,cAAc,MAAM,KAAK,CAAC,CAClD;EACA,MAAM,MAAM,cACV,gBACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,gBACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,eAAe,CAAC,MAAM,CAAC;EACrD,MAAM,UAAU,eAA8C,MAAM;EAEpE,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,mBAOU,WAPVC,WAOU,EANR,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI;C,KAEZC,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -4,7 +4,9 @@ import { ClassValue, StyleValue } from "vue";
|
|
|
4
4
|
type Props = {
|
|
5
5
|
class?: ClassValue | undefined;
|
|
6
6
|
style?: StyleValue | undefined;
|
|
7
|
-
|
|
7
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
8
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
9
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"tbody">, "class" | "style" | "classes" | "styles">;
|
|
8
10
|
type __VLS_Slots = {
|
|
9
11
|
default?: () => unknown;
|
|
10
12
|
};
|
|
@@ -18,5 +20,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
18
20
|
$slots: S;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
|
-
export { _default as default };
|
|
22
|
-
//# sourceMappingURL=table-tbody.vue.d.ts.map
|
|
23
|
+
export { _default as default };
|
|
@@ -28,6 +28,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
28
28
|
],
|
|
29
29
|
required: false,
|
|
30
30
|
skipCheck: true
|
|
31
|
+
},
|
|
32
|
+
classes: {
|
|
33
|
+
type: null,
|
|
34
|
+
required: false
|
|
35
|
+
},
|
|
36
|
+
styles: {
|
|
37
|
+
type: null,
|
|
38
|
+
required: false
|
|
31
39
|
}
|
|
32
40
|
},
|
|
33
41
|
setup(__props, { expose: __expose }) {
|
|
@@ -35,8 +43,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
35
43
|
const attrs = useAttrs();
|
|
36
44
|
const resolvedProps = useHuiProps("TableTbody", props, attrs);
|
|
37
45
|
const recipe = computed(() => ({ root: "" }));
|
|
38
|
-
const cls = useHuiClasses("TableTbody", recipe, computed(() =>
|
|
39
|
-
const sls = useHuiStyles("TableTbody", computed(() =>
|
|
46
|
+
const cls = useHuiClasses("TableTbody", recipe, computed(() => props));
|
|
47
|
+
const sls = useHuiStyles("TableTbody", computed(() => props));
|
|
40
48
|
const rootAttrs = useHuiAttrs(resolvedProps);
|
|
41
49
|
const rootRef = useTemplateRef("root");
|
|
42
50
|
__expose({ root: rootRef });
|
|
@@ -66,4 +74,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66
74
|
var table_tbody_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/table/table-tbody.vue"]]);
|
|
67
75
|
export { table_tbody_default as default };
|
|
68
76
|
|
|
69
|
-
//# sourceMappingURL=table-tbody.js.map
|
|
77
|
+
//# sourceMappingURL=table-tbody.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-tbody.vue.js","names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot"],"sources":["../../../src/components/table/table-tbody.vue"],"sourcesContent":["<script setup lang=\"ts\">\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\";\n\ndefineOptions({\n name: \"HuiTableTbody\",\n inheritAttrs: false,\n});\n\ntype Props =\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?: Partial<Record<\"root\", ClassValue | undefined>> | undefined;\n styles?: Partial<Record<\"root\", StyleValue | undefined>> | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"tbody\">,\n \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TableTbody\", props, attrs);\nconst recipe = computed(() => ({ root: \"\" }));\nconst cls = useHuiClasses(\n \"TableTbody\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"TableTbody\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps);\nconst rootRef = useTemplateRef<HuiElementInstance<\"tbody\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <tbody\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </tbody>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,cAAc,OAAO,KAAK;EAC5D,MAAM,SAAS,gBAAgB,EAAE,MAAM,GAAG,EAAE;EAC5C,MAAM,MAAM,cACV,cACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,cACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,aAAa;EAC3C,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;C,KAEZC,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -4,7 +4,9 @@ import { ClassValue, StyleValue } from "vue";
|
|
|
4
4
|
type Props = {
|
|
5
5
|
class?: ClassValue | undefined;
|
|
6
6
|
style?: StyleValue | undefined;
|
|
7
|
-
|
|
7
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
8
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
9
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"td">, "class" | "style" | "classes" | "styles">;
|
|
8
10
|
type __VLS_Slots = {
|
|
9
11
|
default?: () => unknown;
|
|
10
12
|
};
|
|
@@ -18,5 +20,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
18
20
|
$slots: S;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
|
-
export { _default as default };
|
|
22
|
-
//# sourceMappingURL=table-td.vue.d.ts.map
|
|
23
|
+
export { _default as default };
|
|
@@ -29,6 +29,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
29
29
|
],
|
|
30
30
|
required: false,
|
|
31
31
|
skipCheck: true
|
|
32
|
+
},
|
|
33
|
+
classes: {
|
|
34
|
+
type: null,
|
|
35
|
+
required: false
|
|
36
|
+
},
|
|
37
|
+
styles: {
|
|
38
|
+
type: null,
|
|
39
|
+
required: false
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
setup(__props, { expose: __expose }) {
|
|
@@ -36,8 +44,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
36
44
|
const attrs = useAttrs();
|
|
37
45
|
const resolvedProps = useHuiProps("TableTd", props, attrs);
|
|
38
46
|
const recipe = computed(() => tdRecipe({}));
|
|
39
|
-
const cls = useHuiClasses("TableTd", recipe, computed(() =>
|
|
40
|
-
const sls = useHuiStyles("TableTd", computed(() =>
|
|
47
|
+
const cls = useHuiClasses("TableTd", recipe, computed(() => props));
|
|
48
|
+
const sls = useHuiStyles("TableTd", computed(() => props));
|
|
41
49
|
const rootAttrs = useHuiAttrs(resolvedProps);
|
|
42
50
|
const rootRef = useTemplateRef("root");
|
|
43
51
|
__expose({ root: rootRef });
|
|
@@ -67,4 +75,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
67
75
|
var table_td_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/table/table-td.vue"]]);
|
|
68
76
|
export { table_td_default as default };
|
|
69
77
|
|
|
70
|
-
//# sourceMappingURL=table-td.js.map
|
|
78
|
+
//# sourceMappingURL=table-td.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-td.vue.js","names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot"],"sources":["../../../src/components/table/table-td.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { tdRecipe } 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\";\n\ndefineOptions({\n name: \"HuiTableTd\",\n inheritAttrs: false,\n});\n\ntype Props =\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?: Partial<Record<\"root\", ClassValue | undefined>> | undefined;\n styles?: Partial<Record<\"root\", StyleValue | undefined>> | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"td\">,\n \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TableTd\", props, attrs);\nconst recipe = computed(() => tdRecipe({}));\nconst cls = useHuiClasses(\n \"TableTd\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"TableTd\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps);\nconst rootRef = useTemplateRef<HuiElementInstance<\"td\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <td\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </td>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,WAAW,OAAO,KAAK;EACzD,MAAM,SAAS,eAAe,SAAS,CAAC,CAAC,CAAC;EAC1C,MAAM,MAAM,cACV,WACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,WACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,aAAa;EAC3C,MAAM,UAAU,eAAyC,MAAM;EAE/D,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,mBAOK,MAPLC,WAOK,EANH,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI;C,KAEZC,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -4,7 +4,9 @@ import { ClassValue, StyleValue } from "vue";
|
|
|
4
4
|
type Props = {
|
|
5
5
|
class?: ClassValue | undefined;
|
|
6
6
|
style?: StyleValue | undefined;
|
|
7
|
-
|
|
7
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
8
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
9
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"tfoot">, "class" | "style" | "classes" | "styles">;
|
|
8
10
|
type __VLS_Slots = {
|
|
9
11
|
default?: () => unknown;
|
|
10
12
|
};
|
|
@@ -18,5 +20,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
18
20
|
$slots: S;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
|
-
export { _default as default };
|
|
22
|
-
//# sourceMappingURL=table-tfoot.vue.d.ts.map
|
|
23
|
+
export { _default as default };
|
|
@@ -28,6 +28,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
28
28
|
],
|
|
29
29
|
required: false,
|
|
30
30
|
skipCheck: true
|
|
31
|
+
},
|
|
32
|
+
classes: {
|
|
33
|
+
type: null,
|
|
34
|
+
required: false
|
|
35
|
+
},
|
|
36
|
+
styles: {
|
|
37
|
+
type: null,
|
|
38
|
+
required: false
|
|
31
39
|
}
|
|
32
40
|
},
|
|
33
41
|
setup(__props, { expose: __expose }) {
|
|
@@ -35,8 +43,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
35
43
|
const attrs = useAttrs();
|
|
36
44
|
const resolvedProps = useHuiProps("TableTfoot", props, attrs);
|
|
37
45
|
const recipe = computed(() => ({ root: "" }));
|
|
38
|
-
const cls = useHuiClasses("TableTfoot", recipe, computed(() =>
|
|
39
|
-
const sls = useHuiStyles("TableTfoot", computed(() =>
|
|
46
|
+
const cls = useHuiClasses("TableTfoot", recipe, computed(() => props));
|
|
47
|
+
const sls = useHuiStyles("TableTfoot", computed(() => props));
|
|
40
48
|
const rootAttrs = useHuiAttrs(resolvedProps);
|
|
41
49
|
const rootRef = useTemplateRef("root");
|
|
42
50
|
__expose({ root: rootRef });
|
|
@@ -66,4 +74,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66
74
|
var table_tfoot_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/table/table-tfoot.vue"]]);
|
|
67
75
|
export { table_tfoot_default as default };
|
|
68
76
|
|
|
69
|
-
//# sourceMappingURL=table-tfoot.js.map
|
|
77
|
+
//# sourceMappingURL=table-tfoot.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-tfoot.vue.js","names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot"],"sources":["../../../src/components/table/table-tfoot.vue"],"sourcesContent":["<script setup lang=\"ts\">\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\";\n\ndefineOptions({\n name: \"HuiTableTfoot\",\n inheritAttrs: false,\n});\n\ntype Props =\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?: Partial<Record<\"root\", ClassValue | undefined>> | undefined;\n styles?: Partial<Record<\"root\", StyleValue | undefined>> | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"tfoot\">,\n \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TableTfoot\", props, attrs);\nconst recipe = computed(() => ({ root: \"\" }));\nconst cls = useHuiClasses(\n \"TableTfoot\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"TableTfoot\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps);\nconst rootRef = useTemplateRef<HuiElementInstance<\"tfoot\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <tfoot\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </tfoot>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,cAAc,OAAO,KAAK;EAC5D,MAAM,SAAS,gBAAgB,EAAE,MAAM,GAAG,EAAE;EAC5C,MAAM,MAAM,cACV,cACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,cACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,aAAa;EAC3C,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;C,KAEZC,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -4,7 +4,9 @@ import { ClassValue, StyleValue } from "vue";
|
|
|
4
4
|
type Props = {
|
|
5
5
|
class?: ClassValue | undefined;
|
|
6
6
|
style?: StyleValue | undefined;
|
|
7
|
-
|
|
7
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
8
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
9
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"th">, "class" | "style" | "classes" | "styles">;
|
|
8
10
|
type __VLS_Slots = {
|
|
9
11
|
default?: () => unknown;
|
|
10
12
|
};
|
|
@@ -18,5 +20,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
18
20
|
$slots: S;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
|
-
export { _default as default };
|
|
22
|
-
//# sourceMappingURL=table-th.vue.d.ts.map
|
|
23
|
+
export { _default as default };
|
|
@@ -29,6 +29,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
29
29
|
],
|
|
30
30
|
required: false,
|
|
31
31
|
skipCheck: true
|
|
32
|
+
},
|
|
33
|
+
classes: {
|
|
34
|
+
type: null,
|
|
35
|
+
required: false
|
|
36
|
+
},
|
|
37
|
+
styles: {
|
|
38
|
+
type: null,
|
|
39
|
+
required: false
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
setup(__props, { expose: __expose }) {
|
|
@@ -36,8 +44,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
36
44
|
const attrs = useAttrs();
|
|
37
45
|
const resolvedProps = useHuiProps("TableTh", props, attrs);
|
|
38
46
|
const recipe = computed(() => thRecipe({}));
|
|
39
|
-
const cls = useHuiClasses("TableTh", recipe, computed(() =>
|
|
40
|
-
const sls = useHuiStyles("TableTh", computed(() =>
|
|
47
|
+
const cls = useHuiClasses("TableTh", recipe, computed(() => props));
|
|
48
|
+
const sls = useHuiStyles("TableTh", computed(() => props));
|
|
41
49
|
const rootAttrs = useHuiAttrs(resolvedProps);
|
|
42
50
|
const rootRef = useTemplateRef("root");
|
|
43
51
|
__expose({ root: rootRef });
|
|
@@ -67,4 +75,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
67
75
|
var table_th_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/table/table-th.vue"]]);
|
|
68
76
|
export { table_th_default as default };
|
|
69
77
|
|
|
70
|
-
//# sourceMappingURL=table-th.js.map
|
|
78
|
+
//# sourceMappingURL=table-th.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-th.vue.js","names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot"],"sources":["../../../src/components/table/table-th.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { thRecipe } 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\";\n\ndefineOptions({\n name: \"HuiTableTh\",\n inheritAttrs: false,\n});\n\ntype Props =\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?: Partial<Record<\"root\", ClassValue | undefined>> | undefined;\n styles?: Partial<Record<\"root\", StyleValue | undefined>> | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"th\">,\n \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TableTh\", props, attrs);\nconst recipe = computed(() => thRecipe({}));\nconst cls = useHuiClasses(\n \"TableTh\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"TableTh\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps);\nconst rootRef = useTemplateRef<HuiElementInstance<\"th\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <th\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </th>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,WAAW,OAAO,KAAK;EACzD,MAAM,SAAS,eAAe,SAAS,CAAC,CAAC,CAAC;EAC1C,MAAM,MAAM,cACV,WACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,WACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,aAAa;EAC3C,MAAM,UAAU,eAAyC,MAAM;EAE/D,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,mBAOK,MAPLC,WAOK,EANH,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI;C,KAEZC,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -4,7 +4,9 @@ import { ClassValue, StyleValue } from "vue";
|
|
|
4
4
|
type Props = {
|
|
5
5
|
class?: ClassValue | undefined;
|
|
6
6
|
style?: StyleValue | undefined;
|
|
7
|
-
|
|
7
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
8
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
9
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"thead">, "class" | "style" | "classes" | "styles">;
|
|
8
10
|
type __VLS_Slots = {
|
|
9
11
|
default?: () => unknown;
|
|
10
12
|
};
|
|
@@ -18,5 +20,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
18
20
|
$slots: S;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
|
-
export { _default as default };
|
|
22
|
-
//# sourceMappingURL=table-thead.vue.d.ts.map
|
|
23
|
+
export { _default as default };
|
|
@@ -28,6 +28,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
28
28
|
],
|
|
29
29
|
required: false,
|
|
30
30
|
skipCheck: true
|
|
31
|
+
},
|
|
32
|
+
classes: {
|
|
33
|
+
type: null,
|
|
34
|
+
required: false
|
|
35
|
+
},
|
|
36
|
+
styles: {
|
|
37
|
+
type: null,
|
|
38
|
+
required: false
|
|
31
39
|
}
|
|
32
40
|
},
|
|
33
41
|
setup(__props, { expose: __expose }) {
|
|
@@ -35,8 +43,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
35
43
|
const attrs = useAttrs();
|
|
36
44
|
const resolvedProps = useHuiProps("TableThead", props, attrs);
|
|
37
45
|
const recipe = computed(() => ({ root: "" }));
|
|
38
|
-
const cls = useHuiClasses("TableThead", recipe, computed(() =>
|
|
39
|
-
const sls = useHuiStyles("TableThead", computed(() =>
|
|
46
|
+
const cls = useHuiClasses("TableThead", recipe, computed(() => props));
|
|
47
|
+
const sls = useHuiStyles("TableThead", computed(() => props));
|
|
40
48
|
const rootAttrs = useHuiAttrs(resolvedProps);
|
|
41
49
|
const rootRef = useTemplateRef("root");
|
|
42
50
|
__expose({ root: rootRef });
|
|
@@ -66,4 +74,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66
74
|
var table_thead_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/table/table-thead.vue"]]);
|
|
67
75
|
export { table_thead_default as default };
|
|
68
76
|
|
|
69
|
-
//# sourceMappingURL=table-thead.js.map
|
|
77
|
+
//# sourceMappingURL=table-thead.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-thead.vue.js","names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot"],"sources":["../../../src/components/table/table-thead.vue"],"sourcesContent":["<script setup lang=\"ts\">\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\";\n\ndefineOptions({\n name: \"HuiTableThead\",\n inheritAttrs: false,\n});\n\ntype Props =\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?: Partial<Record<\"root\", ClassValue | undefined>> | undefined;\n styles?: Partial<Record<\"root\", StyleValue | undefined>> | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"thead\">,\n \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"TableThead\", props, attrs);\nconst recipe = computed(() => ({ root: \"\" }));\nconst cls = useHuiClasses(\n \"TableThead\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"TableThead\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps);\nconst rootRef = useTemplateRef<HuiElementInstance<\"thead\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <thead\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </thead>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,cAAc,OAAO,KAAK;EAC5D,MAAM,SAAS,gBAAgB,EAAE,MAAM,GAAG,EAAE;EAC5C,MAAM,MAAM,cACV,cACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,cACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,aAAa;EAC3C,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;C,KAEZC,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -5,7 +5,9 @@ import { ClassValue, StyleValue } from "vue";
|
|
|
5
5
|
type Props = TableTrOwnProps & {
|
|
6
6
|
class?: ClassValue | undefined;
|
|
7
7
|
style?: StyleValue | undefined;
|
|
8
|
-
|
|
8
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
9
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
10
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"tr">, keyof TableTrOwnProps | "class" | "style" | "classes" | "styles">;
|
|
9
11
|
type __VLS_Slots = {
|
|
10
12
|
default?: () => unknown;
|
|
11
13
|
};
|
|
@@ -19,5 +21,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
19
21
|
$slots: S;
|
|
20
22
|
};
|
|
21
23
|
};
|
|
22
|
-
export { _default as default };
|
|
23
|
-
//# sourceMappingURL=table-tr.vue.d.ts.map
|
|
24
|
+
export { _default as default };
|