@hebium-ui/vue 0.1.0-alpha.2 → 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/_virtual/_/plugin-vue/export-helper.js +1 -2
- package/dist/components/alert/alert.types.d.ts +1 -4
- package/dist/components/alert/alert.vue.d.ts +4 -5
- package/dist/components/alert/{alert.js → alert.vue.js} +36 -18
- package/dist/components/alert/alert.vue.js.map +1 -0
- package/dist/components/anchor/anchor.types.d.ts +1 -4
- package/dist/components/anchor/anchor.vue.d.ts +4 -5
- package/dist/components/anchor/{anchor.js → anchor.vue.js} +13 -8
- package/dist/components/anchor/anchor.vue.js.map +1 -0
- package/dist/components/avatar/avatar.types.d.ts +1 -4
- package/dist/components/avatar/avatar.vue.d.ts +4 -5
- package/dist/components/avatar/{avatar.js → avatar.vue.js} +27 -10
- package/dist/components/avatar/avatar.vue.js.map +1 -0
- package/dist/components/blockquote/blockquote.types.d.ts +1 -4
- package/dist/components/blockquote/blockquote.vue.d.ts +4 -5
- package/dist/components/blockquote/{blockquote.js → blockquote.vue.js} +27 -13
- package/dist/components/blockquote/blockquote.vue.js.map +1 -0
- package/dist/components/button/button.types.d.ts +12 -4
- package/dist/components/button/button.vue.d.ts +5 -5
- 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 +2 -5
- package/dist/components/checkbox/checkbox.vue.d.ts +4 -5
- package/dist/components/checkbox/{checkbox.js → checkbox.vue.js} +44 -19
- package/dist/components/checkbox/checkbox.vue.js.map +1 -0
- package/dist/components/code/code.types.d.ts +1 -4
- package/dist/components/code/code.vue.d.ts +4 -5
- package/dist/components/code/{code.js → code.vue.js} +13 -10
- package/dist/components/code/code.vue.js.map +1 -0
- package/dist/components/details/details.types.d.ts +1 -4
- package/dist/components/details/details.vue.d.ts +4 -5
- package/dist/components/details/{details.js → details.vue.js} +27 -12
- package/dist/components/details/details.vue.js.map +1 -0
- package/dist/components/dialog/dialog-close.vue.d.ts +5 -5
- package/dist/components/dialog/{dialog-close.js → dialog-close.vue.js} +32 -11
- package/dist/components/dialog/dialog-close.vue.js.map +1 -0
- package/dist/components/dialog/dialog-content.vue.d.ts +3 -4
- package/dist/components/dialog/{dialog-content.js → dialog-content.vue.js} +31 -14
- package/dist/components/dialog/dialog-content.vue.js.map +1 -0
- package/dist/components/dialog/dialog-trigger.vue.d.ts +6 -6
- package/dist/components/dialog/{dialog-trigger.js → dialog-trigger.vue.js} +30 -20
- package/dist/components/dialog/dialog-trigger.vue.js.map +1 -0
- package/dist/components/dialog/dialog.context.js +1 -2
- package/dist/components/dialog/dialog.types.d.ts +6 -9
- package/dist/components/dialog/dialog.vue.d.ts +1 -4
- package/dist/components/dialog/{dialog.js → dialog.vue.js} +3 -4
- 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 -5
- package/dist/components/dl/{dl-dd.js → dl-dd.vue.js} +13 -6
- package/dist/components/dl/dl-dd.vue.js.map +1 -0
- package/dist/components/dl/dl-dt.vue.d.ts +4 -5
- package/dist/components/dl/{dl-dt.js → dl-dt.vue.js} +13 -6
- package/dist/components/dl/dl-dt.vue.js.map +1 -0
- package/dist/components/dl/dl.types.d.ts +1 -4
- package/dist/components/dl/dl.vue.d.ts +4 -5
- package/dist/components/dl/{dl.js → dl.vue.js} +13 -6
- package/dist/components/dl/dl.vue.js.map +1 -0
- package/dist/components/drawer/drawer-close.vue.d.ts +5 -5
- package/dist/components/drawer/{drawer-close.js → drawer-close.vue.js} +32 -11
- package/dist/components/drawer/drawer-close.vue.js.map +1 -0
- package/dist/components/drawer/drawer-content.vue.d.ts +3 -4
- package/dist/components/drawer/{drawer-content.js → drawer-content.vue.js} +31 -14
- package/dist/components/drawer/drawer-content.vue.js.map +1 -0
- package/dist/components/drawer/drawer-trigger.vue.d.ts +6 -6
- package/dist/components/drawer/{drawer-trigger.js → drawer-trigger.vue.js} +30 -18
- package/dist/components/drawer/drawer-trigger.vue.js.map +1 -0
- package/dist/components/drawer/drawer.context.js +1 -2
- package/dist/components/drawer/drawer.types.d.ts +6 -9
- package/dist/components/drawer/drawer.vue.d.ts +1 -4
- package/dist/components/drawer/{drawer.js → drawer.vue.js} +3 -4
- 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 -4
- package/dist/components/fieldset/fieldset.vue.d.ts +4 -5
- package/dist/components/fieldset/{fieldset.js → fieldset.vue.js} +13 -6
- package/dist/components/fieldset/fieldset.vue.js.map +1 -0
- package/dist/components/heading/heading.types.d.ts +1 -4
- package/dist/components/heading/heading.vue.d.ts +4 -5
- package/dist/components/heading/{heading.js → heading.vue.js} +13 -11
- package/dist/components/heading/heading.vue.js.map +1 -0
- package/dist/components/hr/hr.types.d.ts +1 -4
- package/dist/components/hr/hr.vue.d.ts +4 -5
- package/dist/components/hr/{hr.js → hr.vue.js} +13 -10
- package/dist/components/hr/hr.vue.js.map +1 -0
- package/dist/components/index.d.ts +29 -25
- package/dist/components/input/input.types.d.ts +1 -4
- package/dist/components/input/input.vue.d.ts +4 -5
- package/dist/components/input/{input.js → input.vue.js} +37 -19
- package/dist/components/input/input.vue.js.map +1 -0
- package/dist/components/label/label.types.d.ts +1 -4
- package/dist/components/label/label.vue.d.ts +4 -5
- package/dist/components/label/{label.js → label.vue.js} +30 -13
- 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 -5
- package/dist/components/menu/{menu-content.js → menu-content.vue.js} +13 -8
- package/dist/components/menu/menu-content.vue.js.map +1 -0
- package/dist/components/menu/menu-item.vue.d.ts +4 -5
- package/dist/components/menu/{menu-item.js → menu-item.vue.js} +13 -8
- package/dist/components/menu/menu-item.vue.js.map +1 -0
- package/dist/components/menu/menu-trigger.vue.d.ts +6 -6
- package/dist/components/menu/{menu-trigger.js → menu-trigger.vue.js} +30 -20
- package/dist/components/menu/menu-trigger.vue.js.map +1 -0
- package/dist/components/menu/menu.context.js +1 -2
- package/dist/components/menu/menu.types.d.ts +5 -8
- package/dist/components/menu/menu.vue.d.ts +1 -4
- package/dist/components/menu/{menu.js → menu.vue.js} +3 -4
- package/dist/components/menu/menu.vue.js.map +1 -0
- package/dist/components/paragraph/paragraph.types.d.ts +1 -4
- package/dist/components/paragraph/paragraph.vue.d.ts +4 -5
- package/dist/components/paragraph/{paragraph.js → paragraph.vue.js} +13 -8
- 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 -5
- package/dist/components/popover/{popover-content.js → popover-content.vue.js} +14 -9
- package/dist/components/popover/popover-content.vue.js.map +1 -0
- package/dist/components/popover/popover-trigger.vue.d.ts +6 -6
- package/dist/components/popover/{popover-trigger.js → popover-trigger.vue.js} +30 -18
- package/dist/components/popover/popover-trigger.vue.js.map +1 -0
- package/dist/components/popover/popover.context.js +1 -2
- package/dist/components/popover/popover.types.d.ts +5 -8
- package/dist/components/popover/popover.vue.d.ts +1 -4
- package/dist/components/popover/{popover.js → popover.vue.js} +3 -4
- package/dist/components/popover/popover.vue.js.map +1 -0
- package/dist/components/progress/progress.types.d.ts +1 -4
- package/dist/components/progress/progress.vue.d.ts +4 -5
- package/dist/components/progress/{progress.js → progress.vue.js} +28 -10
- package/dist/components/progress/progress.vue.js.map +1 -0
- package/dist/components/radio/radio.types.d.ts +1 -4
- package/dist/components/radio/radio.vue.d.ts +4 -5
- package/dist/components/radio/{radio.js → radio.vue.js} +30 -15
- package/dist/components/radio/radio.vue.js.map +1 -0
- package/dist/components/radiogroup/radiogroup.types.d.ts +1 -4
- package/dist/components/radiogroup/radiogroup.vue.d.ts +4 -5
- package/dist/components/radiogroup/{radiogroup.js → radiogroup.vue.js} +38 -14
- package/dist/components/radiogroup/radiogroup.vue.js.map +1 -0
- package/dist/components/section/section.types.d.ts +1 -4
- package/dist/components/section/section.vue.d.ts +4 -5
- package/dist/components/section/{section.js → section.vue.js} +13 -8
- 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 -5
- package/dist/components/segmented-control/{segmented-control-item.js → segmented-control-item.vue.js} +13 -8
- package/dist/components/segmented-control/segmented-control-item.vue.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.context.js +1 -2
- package/dist/components/segmented-control/segmented-control.types.d.ts +2 -5
- package/dist/components/segmented-control/segmented-control.vue.d.ts +4 -5
- package/dist/components/segmented-control/{segmented-control.js → segmented-control.vue.js} +15 -9
- package/dist/components/segmented-control/segmented-control.vue.js.map +1 -0
- package/dist/components/select/select.types.d.ts +1 -4
- package/dist/components/select/select.vue.d.ts +4 -5
- package/dist/components/select/{select.js → select.vue.js} +38 -17
- package/dist/components/select/select.vue.js.map +1 -0
- package/dist/components/skip-link/index.d.ts +3 -0
- package/dist/components/skip-link/skip-link.types.d.ts +9 -0
- package/dist/components/skip-link/skip-link.vue.d.ts +29 -0
- package/dist/components/skip-link/skip-link.vue.js +87 -0
- 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 -5
- package/dist/components/table/{table-caption.js → table-caption.vue.js} +13 -10
- package/dist/components/table/table-caption.vue.js.map +1 -0
- package/dist/components/table/table-tbody.vue.d.ts +4 -5
- package/dist/components/table/{table-tbody.js → table-tbody.vue.js} +13 -6
- package/dist/components/table/table-tbody.vue.js.map +1 -0
- package/dist/components/table/table-td.vue.d.ts +4 -5
- package/dist/components/table/{table-td.js → table-td.vue.js} +13 -6
- package/dist/components/table/table-td.vue.js.map +1 -0
- package/dist/components/table/table-tfoot.vue.d.ts +4 -5
- package/dist/components/table/{table-tfoot.js → table-tfoot.vue.js} +13 -6
- package/dist/components/table/table-tfoot.vue.js.map +1 -0
- package/dist/components/table/table-th.vue.d.ts +4 -5
- package/dist/components/table/{table-th.js → table-th.vue.js} +13 -6
- package/dist/components/table/table-th.vue.js.map +1 -0
- package/dist/components/table/table-thead.vue.d.ts +4 -5
- package/dist/components/table/{table-thead.js → table-thead.vue.js} +13 -6
- package/dist/components/table/table-thead.vue.js.map +1 -0
- package/dist/components/table/table-tr.vue.d.ts +4 -5
- package/dist/components/table/{table-tr.js → table-tr.vue.js} +13 -10
- package/dist/components/table/table-tr.vue.js.map +1 -0
- package/dist/components/table/table.types.d.ts +1 -4
- package/dist/components/table/table.vue.d.ts +4 -5
- package/dist/components/table/{table.js → table.vue.js} +13 -10
- 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 -5
- package/dist/components/tabs/{tabs-list.js → tabs-list.vue.js} +14 -11
- package/dist/components/tabs/tabs-list.vue.js.map +1 -0
- package/dist/components/tabs/tabs-panel.vue.d.ts +4 -5
- package/dist/components/tabs/{tabs-panel.js → tabs-panel.vue.js} +14 -12
- package/dist/components/tabs/tabs-panel.vue.js.map +1 -0
- package/dist/components/tabs/tabs-tab.vue.d.ts +4 -5
- package/dist/components/tabs/{tabs-tab.js → tabs-tab.vue.js} +13 -8
- package/dist/components/tabs/tabs-tab.vue.js.map +1 -0
- package/dist/components/tabs/tabs.context.js +1 -2
- package/dist/components/tabs/tabs.types.d.ts +2 -5
- package/dist/components/tabs/tabs.vue.d.ts +4 -5
- package/dist/components/tabs/{tabs.js → tabs.vue.js} +14 -9
- package/dist/components/tabs/tabs.vue.js.map +1 -0
- package/dist/components/text/index.d.ts +3 -0
- package/dist/components/text/text.types.d.ts +23 -0
- package/dist/components/text/text.vue.d.ts +29 -0
- package/dist/components/text/text.vue.js +104 -0
- package/dist/components/text/text.vue.js.map +1 -0
- package/dist/components/textarea/textarea.types.d.ts +1 -4
- package/dist/components/textarea/textarea.vue.d.ts +4 -5
- package/dist/components/textarea/{textarea.js → textarea.vue.js} +37 -19
- 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 -5
- package/dist/components/tooltip/{tooltip-content.js → tooltip-content.vue.js} +13 -8
- package/dist/components/tooltip/tooltip-content.vue.js.map +1 -0
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +6 -6
- package/dist/components/tooltip/{tooltip-trigger.js → tooltip-trigger.vue.js} +28 -13
- package/dist/components/tooltip/tooltip-trigger.vue.js.map +1 -0
- package/dist/components/tooltip/tooltip.context.js +1 -2
- package/dist/components/tooltip/tooltip.types.d.ts +5 -8
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -4
- package/dist/components/tooltip/{tooltip.js → tooltip.vue.js} +3 -4
- package/dist/components/tooltip/tooltip.vue.js.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.types.d.ts +1 -4
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -5
- package/dist/components/visually-hidden/{visually-hidden.js → visually-hidden.vue.js} +13 -10
- package/dist/components/visually-hidden/visually-hidden.vue.js.map +1 -0
- package/dist/index.d.ts +27 -26
- package/dist/index.js +61 -63
- package/dist/plugin.d.ts +43 -40
- package/dist/plugin.js +64 -59
- package/dist/plugin.js.map +1 -1
- package/dist/provider/hui-provider.context.d.ts +20 -11
- package/dist/provider/hui-provider.context.js +41 -34
- package/dist/provider/hui-provider.context.js.map +1 -1
- package/dist/provider/hui-provider.vue.d.ts +1 -4
- package/dist/provider/{hui-provider.js → hui-provider.vue.js} +2 -3
- package/dist/provider/hui-provider.vue.js.map +1 -0
- package/dist/types/element.d.ts +1 -4
- package/dist/types/hui-component.d.ts +8 -8
- package/dist/types/index.d.ts +2 -2
- package/dist/types/polymorphic.d.ts +3 -16
- package/dist/utils/attr-to-bool.js +1 -2
- package/dist/utils/use-slot-presence.js +13 -0
- package/dist/utils/use-slot-presence.js.map +1 -0
- 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 -106
- 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 -5
- 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 -5
- 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 -5
- 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 -5
- 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/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/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 -5
- 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
|
@@ -2,7 +2,7 @@ import { useHuiAttrs, useHuiClasses, useHuiProps, useHuiStyles } from "../../pro
|
|
|
2
2
|
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, useAttrs, useTemplateRef } from "vue";
|
|
4
4
|
import { fieldsetRecipe } from "@hebium-ui/core";
|
|
5
|
-
|
|
5
|
+
// src/components/fieldset/fieldset.vue
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
7
|
name: "HuiFieldset",
|
|
8
8
|
inheritAttrs: false,
|
|
@@ -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,9 +44,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
36
44
|
const attrs = useAttrs();
|
|
37
45
|
const resolvedProps = useHuiProps("Fieldset", props, attrs);
|
|
38
46
|
const recipe = computed(() => fieldsetRecipe({}));
|
|
39
|
-
const cls = useHuiClasses("Fieldset", recipe, computed(() =>
|
|
40
|
-
const sls = useHuiStyles("Fieldset", computed(() =>
|
|
41
|
-
const rootAttrs = useHuiAttrs(resolvedProps
|
|
47
|
+
const cls = useHuiClasses("Fieldset", recipe, computed(() => props));
|
|
48
|
+
const sls = useHuiStyles("Fieldset", computed(() => props));
|
|
49
|
+
const rootAttrs = useHuiAttrs(resolvedProps);
|
|
42
50
|
const rootRef = useTemplateRef("root");
|
|
43
51
|
__expose({ root: rootRef });
|
|
44
52
|
const __returned__ = {
|
|
@@ -65,7 +73,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65
73
|
}), [renderSlot(_ctx.$slots, "default")], 16);
|
|
66
74
|
}
|
|
67
75
|
var fieldset_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/fieldset/fieldset.vue"]]);
|
|
68
|
-
//#endregion
|
|
69
76
|
export { fieldset_default as default };
|
|
70
77
|
|
|
71
|
-
//# sourceMappingURL=fieldset.js.map
|
|
78
|
+
//# sourceMappingURL=fieldset.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldset.vue.js","names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot"],"sources":["../../../src/components/fieldset/fieldset.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { fieldsetRecipe } 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: \"HuiFieldset\",\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<\"fieldset\">,\n \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"Fieldset\", props, attrs);\nconst recipe = computed(() => fieldsetRecipe({}));\nconst cls = useHuiClasses(\n \"Fieldset\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"Fieldset\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps);\nconst rootRef = useTemplateRef<HuiElementInstance<\"fieldset\">>(\"root\");\n\ndefineExpose({\n root: rootRef,\n});\n</script>\n\n<template>\n <fieldset\n ref=\"root\"\n v-bind=\"rootAttrs\"\n :class=\"cls.root\"\n :style=\"sls.root\"\n >\n <slot />\n </fieldset>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,YAAY,OAAO,KAAK;EAC1D,MAAM,SAAS,eAAe,eAAe,CAAC,CAAC,CAAC;EAChD,MAAM,MAAM,cACV,YACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,YACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,aAAa;EAC3C,MAAM,UAAU,eAA+C,MAAM;EAErE,SAAa,EACX,MAAM,QACR,CAAC;;;;;;;;;;;;;;;;;;;CAIC,OAAAA,UAAA,GAAAC,mBAOW,YAPXC,WAOW,EANT,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI;C,KAEZC,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -2,7 +2,6 @@ import { HuiElementInstance, HuiElementProps } from "../../types/element.js";
|
|
|
2
2
|
import { HuiComponentProps } from "../../types/hui-component.js";
|
|
3
3
|
import "../../types/index.js";
|
|
4
4
|
import { HeadingSlots, HeadingVariants } from "@hebium-ui/core";
|
|
5
|
-
//#region src/components/heading/heading.types.d.ts
|
|
6
5
|
export interface HeadingOwnProps {
|
|
7
6
|
/**
|
|
8
7
|
* The heading level used to choose the rendered heading element.
|
|
@@ -20,6 +19,4 @@ export interface HeadingOwnProps {
|
|
|
20
19
|
export type HeadingProps = HuiComponentProps<HuiElementProps<"h2"> & HeadingOwnProps, HeadingSlots>;
|
|
21
20
|
export interface HeadingExposed {
|
|
22
21
|
readonly root: HuiElementInstance<"h2"> | null;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//# sourceMappingURL=heading.types.d.ts.map
|
|
22
|
+
}
|
|
@@ -2,11 +2,12 @@ import { HuiElementPropsNoInfer } from "../../types/element.js";
|
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { HeadingOwnProps } from "./heading.types.js";
|
|
4
4
|
import { ClassValue, StyleValue } from "vue";
|
|
5
|
-
//#region src/components/heading/heading.vue.d.ts
|
|
6
5
|
type Props = HeadingOwnProps & {
|
|
7
6
|
class?: ClassValue | undefined;
|
|
8
7
|
style?: StyleValue | undefined;
|
|
9
|
-
|
|
8
|
+
classes?: Partial<Record<"root", ClassValue | undefined>> | undefined;
|
|
9
|
+
styles?: Partial<Record<"root", StyleValue | undefined>> | undefined;
|
|
10
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"h2">, keyof HeadingOwnProps | "class" | "style" | "classes" | "styles">;
|
|
10
11
|
type __VLS_Slots = {
|
|
11
12
|
default?: () => unknown;
|
|
12
13
|
};
|
|
@@ -20,6 +21,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
20
21
|
$slots: S;
|
|
21
22
|
};
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
-
export { _default as default };
|
|
25
|
-
//# sourceMappingURL=heading.vue.d.ts.map
|
|
24
|
+
export { _default as default };
|
|
@@ -2,7 +2,7 @@ import { useHuiAttrs, useHuiClasses, useHuiProps, useHuiStyles } from "../../pro
|
|
|
2
2
|
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
|
|
3
3
|
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
4
4
|
import { headingRecipe } from "@hebium-ui/core";
|
|
5
|
-
|
|
5
|
+
// src/components/heading/heading.vue
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
7
|
name: "HuiHeading",
|
|
8
8
|
inheritAttrs: false,
|
|
@@ -37,6 +37,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
37
37
|
],
|
|
38
38
|
required: false,
|
|
39
39
|
skipCheck: true
|
|
40
|
+
},
|
|
41
|
+
classes: {
|
|
42
|
+
type: null,
|
|
43
|
+
required: false
|
|
44
|
+
},
|
|
45
|
+
styles: {
|
|
46
|
+
type: null,
|
|
47
|
+
required: false
|
|
40
48
|
}
|
|
41
49
|
},
|
|
42
50
|
setup(__props, { expose: __expose }) {
|
|
@@ -51,14 +59,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
51
59
|
margin: resolved.margin
|
|
52
60
|
});
|
|
53
61
|
});
|
|
54
|
-
const cls = useHuiClasses("Heading", recipe, computed(() =>
|
|
55
|
-
const sls = useHuiStyles("Heading", computed(() =>
|
|
56
|
-
const rootAttrs = useHuiAttrs(resolvedProps, [
|
|
57
|
-
"level",
|
|
58
|
-
"margin",
|
|
59
|
-
"class",
|
|
60
|
-
"style"
|
|
61
|
-
]);
|
|
62
|
+
const cls = useHuiClasses("Heading", recipe, computed(() => props));
|
|
63
|
+
const sls = useHuiStyles("Heading", computed(() => props));
|
|
64
|
+
const rootAttrs = useHuiAttrs(resolvedProps, ["level", "margin"]);
|
|
62
65
|
const rootRef = useTemplateRef("root");
|
|
63
66
|
__expose({ root: rootRef });
|
|
64
67
|
const __returned__ = {
|
|
@@ -89,7 +92,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
92
|
}, 16, ["class", "style"]);
|
|
90
93
|
}
|
|
91
94
|
var heading_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/heading/heading.vue"]]);
|
|
92
|
-
//#endregion
|
|
93
95
|
export { heading_default as default };
|
|
94
96
|
|
|
95
|
-
//# sourceMappingURL=heading.js.map
|
|
97
|
+
//# sourceMappingURL=heading.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.vue.js","names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot"],"sources":["../../../src/components/heading/heading.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { headingRecipe } 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 { HeadingOwnProps } from \"./heading.types\";\n\ndefineOptions({\n name: \"HuiHeading\",\n inheritAttrs: false,\n});\n\ntype Props =\n & HeadingOwnProps\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<\"h2\">,\n keyof HeadingOwnProps | \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\ndefineSlots<{\n default?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"Heading\", props, attrs);\nconst component = computed(() => `h${resolvedProps.value.level ?? 2}` as const);\nconst recipe = computed(() => {\n const resolved = resolvedProps.value;\n\n return headingRecipe({\n level: `${resolved.level ?? 2}`,\n margin: resolved.margin,\n });\n});\nconst cls = useHuiClasses(\n \"Heading\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"Heading\",\n computed(() => props),\n);\nconst rootAttrs = useHuiAttrs(resolvedProps, [\n \"level\",\n \"margin\",\n]);\nconst rootRef = useTemplateRef<HuiElementInstance<\"h2\">>(\"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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCA,MAAM,QAAQ;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,WAAW,OAAO,KAAK;EACzD,MAAM,YAAY,eAAe,IAAI,cAAc,MAAM,SAAS,GAAY;EAC9E,MAAM,SAAS,eAAe;GAC5B,MAAM,WAAW,cAAc;GAE/B,OAAO,cAAc;IACnB,OAAO,GAAG,SAAS,SAAS;IAC5B,QAAQ,SAAS;GACnB,CAAC;EACH,CAAC;EACD,MAAM,MAAM,cACV,WACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,WACA,eAAe,KAAK,CACtB;EACA,MAAM,YAAY,YAAY,eAAe,CAC3C,SACA,QACF,CAAC;EACD,MAAM,UAAU,eAAyC,MAAM;EAE/D,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"}
|
|
@@ -2,11 +2,8 @@ import { ElementType, HuiElementInstance } from "../../types/element.js";
|
|
|
2
2
|
import { HuiPolymorphicProps } from "../../types/polymorphic.js";
|
|
3
3
|
import "../../types/index.js";
|
|
4
4
|
import { HrSlots } from "@hebium-ui/core";
|
|
5
|
-
//#region src/components/hr/hr.types.d.ts
|
|
6
5
|
export interface HrOwnProps {}
|
|
7
6
|
export type HrProps<E extends ElementType = "hr"> = HuiPolymorphicProps<E, HrOwnProps, HrSlots>;
|
|
8
7
|
export interface HrExposed<E extends ElementType = "hr"> {
|
|
9
8
|
readonly root: HuiElementInstance<E> | null;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
//# sourceMappingURL=hr.types.d.ts.map
|
|
9
|
+
}
|
|
@@ -2,14 +2,15 @@ import { ElementType, HuiElementInstance, HuiElementPropsNoInfer } from "../../t
|
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { HrOwnProps } from "./hr.types.js";
|
|
4
4
|
import { ClassValue, StyleValue } from "vue";
|
|
5
|
-
//#region src/components/hr/hr.vue.d.ts
|
|
6
5
|
declare const __VLS_export: <E extends ElementType = "hr">(__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
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<HrOwnProps & {
|
|
8
7
|
as?: E | undefined;
|
|
9
8
|
} & {
|
|
10
9
|
class?: ClassValue | undefined;
|
|
11
10
|
style?: StyleValue | undefined;
|
|
12
|
-
|
|
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 {
|
|
13
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
14
15
|
} ? P : {});
|
|
15
16
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
@@ -23,6 +24,4 @@ declare const __VLS_export: <E extends ElementType = "hr">(__VLS_props: NonNulla
|
|
|
23
24
|
};
|
|
24
25
|
declare const _default: typeof __VLS_export;
|
|
25
26
|
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
26
|
-
|
|
27
|
-
export { _default as default };
|
|
28
|
-
//# sourceMappingURL=hr.vue.d.ts.map
|
|
27
|
+
export { _default as default };
|
|
@@ -2,7 +2,7 @@ import { useHuiAttrs, useHuiClasses, useHuiProps, useHuiStyles } from "../../pro
|
|
|
2
2
|
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
|
|
3
3
|
import { computed, createBlock, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRaw, useAttrs, useTemplateRef } from "vue";
|
|
4
4
|
import { hrRecipe } from "@hebium-ui/core";
|
|
5
|
-
|
|
5
|
+
// src/components/hr/hr.vue
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
7
|
name: "HuiHr",
|
|
8
8
|
inheritAttrs: false,
|
|
@@ -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,13 +49,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
41
49
|
const resolvedProps = useHuiProps("Hr", props, attrs);
|
|
42
50
|
const component = computed(() => toRaw(resolvedProps.value.as ?? "hr"));
|
|
43
51
|
const recipe = computed(() => hrRecipe());
|
|
44
|
-
const cls = useHuiClasses("Hr", recipe, computed(() =>
|
|
45
|
-
const sls = useHuiStyles("Hr", computed(() =>
|
|
46
|
-
const rootAttrs = useHuiAttrs(resolvedProps, [
|
|
47
|
-
"as",
|
|
48
|
-
"class",
|
|
49
|
-
"style"
|
|
50
|
-
]);
|
|
52
|
+
const cls = useHuiClasses("Hr", recipe, computed(() => props));
|
|
53
|
+
const sls = useHuiStyles("Hr", computed(() => props));
|
|
54
|
+
const rootAttrs = useHuiAttrs(resolvedProps, ["as"]);
|
|
51
55
|
const rootRef = useTemplateRef("root");
|
|
52
56
|
__expose({ root: rootRef });
|
|
53
57
|
const __returned__ = {
|
|
@@ -75,7 +79,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
79
|
}), null, 16, ["class", "style"]);
|
|
76
80
|
}
|
|
77
81
|
var hr_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/hr/hr.vue"]]);
|
|
78
|
-
//#endregion
|
|
79
82
|
export { hr_default as default };
|
|
80
83
|
|
|
81
|
-
//# sourceMappingURL=hr.js.map
|
|
84
|
+
//# sourceMappingURL=hr.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hr.vue.js","names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps"],"sources":["../../../src/components/hr/hr.vue"],"sourcesContent":["<script\n setup\n lang=\"ts\"\n generic=\"E extends ElementType = 'hr'\"\n>\nimport { hrRecipe } 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 { HrOwnProps } from \"./hr.types\";\n\ndefineOptions({\n name: \"HuiHr\",\n inheritAttrs: false,\n});\n\ntype Props =\n & HrOwnProps\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 HrOwnProps | \"as\" | \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"Hr\", props, attrs);\nconst component = computed<E | \"hr\">(() =>\n toRaw(resolvedProps.value.as ?? \"hr\")\n);\nconst recipe = computed(() => hrRecipe());\nconst cls = useHuiClasses(\n \"Hr\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"Hr\",\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</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CA,MAAM,QAAQ;EAEd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,MAAM,OAAO,KAAK;EACpD,MAAM,YAAY,eAChB,MAAM,cAAc,MAAM,MAAM,IAAI,CACtC;EACA,MAAM,SAAS,eAAe,SAAS,CAAC;EACxC,MAAM,MAAM,cACV,MACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,MACA,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,YAMEC,wBALK,OAAA,SAAS,GADhBC,WAME,EAJA,KAAI,OAAM,GACF,OAAA,WAAS;EAChB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI"}
|
|
@@ -26,7 +26,6 @@ import { DialogCloseExposed, DialogCloseProps, DialogContentExposed, DialogConte
|
|
|
26
26
|
import _default$8 from "./dialog/dialog-close.vue.js";
|
|
27
27
|
import _default$9 from "./dialog/dialog-content.vue.js";
|
|
28
28
|
import _default$10 from "./dialog/dialog-trigger.vue.js";
|
|
29
|
-
import { useDialogId } from "./dialog/dialog.context.js";
|
|
30
29
|
import _default$11 from "./dialog/dialog.vue.js";
|
|
31
30
|
import "./dialog/index.js";
|
|
32
31
|
import _default$12 from "./dl/dl-dd.vue.js";
|
|
@@ -38,7 +37,6 @@ import { DrawerCloseExposed, DrawerCloseProps, DrawerContentExposed, DrawerConte
|
|
|
38
37
|
import _default$15 from "./drawer/drawer-close.vue.js";
|
|
39
38
|
import _default$16 from "./drawer/drawer-content.vue.js";
|
|
40
39
|
import _default$17 from "./drawer/drawer-trigger.vue.js";
|
|
41
|
-
import { useDrawerId } from "./drawer/drawer.context.js";
|
|
42
40
|
import _default$18 from "./drawer/drawer.vue.js";
|
|
43
41
|
import "./drawer/index.js";
|
|
44
42
|
import { FieldsetExposed, FieldsetProps } from "./fieldset/fieldset.types.js";
|
|
@@ -52,15 +50,14 @@ import _default$21 from "./hr/hr.vue.js";
|
|
|
52
50
|
import "./hr/index.js";
|
|
53
51
|
import { LabelExposed, LabelProps } from "./label/label.types.js";
|
|
54
52
|
import _default$22 from "./label/label.vue.js";
|
|
55
|
-
import "./
|
|
53
|
+
import "./input/index.js";
|
|
56
54
|
import { InputExposed, InputProps } from "./input/input.types.js";
|
|
57
55
|
import _default$23 from "./input/input.vue.js";
|
|
58
|
-
import "./
|
|
56
|
+
import "./label/index.js";
|
|
59
57
|
import { MenuContentExposed, MenuContentProps, MenuItemExposed, MenuItemProps, MenuProps, MenuTriggerExposed, MenuTriggerProps } from "./menu/menu.types.js";
|
|
60
58
|
import _default$24 from "./menu/menu-content.vue.js";
|
|
61
59
|
import _default$25 from "./menu/menu-item.vue.js";
|
|
62
60
|
import _default$26 from "./menu/menu-trigger.vue.js";
|
|
63
|
-
import { useMenuId } from "./menu/menu.context.js";
|
|
64
61
|
import _default$27 from "./menu/menu.vue.js";
|
|
65
62
|
import "./menu/index.js";
|
|
66
63
|
import { ParagraphExposed, ParagraphProps } from "./paragraph/paragraph.types.js";
|
|
@@ -69,7 +66,6 @@ import "./paragraph/index.js";
|
|
|
69
66
|
import { PopoverContentExposed, PopoverContentProps, PopoverProps, PopoverTriggerExposed, PopoverTriggerProps } from "./popover/popover.types.js";
|
|
70
67
|
import _default$29 from "./popover/popover-content.vue.js";
|
|
71
68
|
import _default$30 from "./popover/popover-trigger.vue.js";
|
|
72
|
-
import { usePopoverId } from "./popover/popover.context.js";
|
|
73
69
|
import _default$31 from "./popover/popover.vue.js";
|
|
74
70
|
import "./popover/index.js";
|
|
75
71
|
import { ProgressExposed, ProgressProps } from "./progress/progress.types.js";
|
|
@@ -91,32 +87,40 @@ import "./segmented-control/index.js";
|
|
|
91
87
|
import { SelectExposed, SelectProps } from "./select/select.types.js";
|
|
92
88
|
import _default$38 from "./select/select.vue.js";
|
|
93
89
|
import "./select/index.js";
|
|
90
|
+
import { SkipLinkExposed, SkipLinkProps } from "./skip-link/skip-link.types.js";
|
|
91
|
+
import _default$39 from "./skip-link/skip-link.vue.js";
|
|
92
|
+
import "./skip-link/index.js";
|
|
93
|
+
import { StatusIconExposed, StatusIconProps } from "./status-icon/status-icon.types.js";
|
|
94
|
+
import _default$40 from "./status-icon/status-icon.vue.js";
|
|
95
|
+
import "./status-icon/index.js";
|
|
94
96
|
import { TableCaptionExposed, TableCaptionOwnProps, TableCaptionProps, TableExposed, TableOwnProps, TableProps, TableTbodyExposed, TableTbodyProps, TableTdExposed, TableTdProps, TableTfootExposed, TableTfootProps, TableThExposed, TableThProps, TableTheadExposed, TableTheadProps, TableTrExposed, TableTrOwnProps, TableTrProps } from "./table/table.types.js";
|
|
95
|
-
import _default$
|
|
96
|
-
import _default$
|
|
97
|
-
import _default$
|
|
98
|
-
import _default$
|
|
99
|
-
import _default$
|
|
100
|
-
import _default$
|
|
101
|
-
import _default$
|
|
102
|
-
import _default$
|
|
97
|
+
import _default$41 from "./table/table-caption.vue.js";
|
|
98
|
+
import _default$42 from "./table/table-tbody.vue.js";
|
|
99
|
+
import _default$43 from "./table/table-td.vue.js";
|
|
100
|
+
import _default$44 from "./table/table-tfoot.vue.js";
|
|
101
|
+
import _default$45 from "./table/table-th.vue.js";
|
|
102
|
+
import _default$46 from "./table/table-thead.vue.js";
|
|
103
|
+
import _default$47 from "./table/table-tr.vue.js";
|
|
104
|
+
import _default$48 from "./table/table.vue.js";
|
|
103
105
|
import "./table/index.js";
|
|
104
|
-
import _default$
|
|
106
|
+
import _default$49 from "./tabs/tabs-list.vue.js";
|
|
105
107
|
import { ActivationMode, TabsExposed, TabsListExposed, TabsListProps, TabsPanelExposed, TabsPanelProps, TabsProps, TabsTabExposed, TabsTabProps } from "./tabs/tabs.types.js";
|
|
106
|
-
import _default$
|
|
107
|
-
import _default$
|
|
108
|
-
import _default$
|
|
108
|
+
import _default$50 from "./tabs/tabs-panel.vue.js";
|
|
109
|
+
import _default$51 from "./tabs/tabs-tab.vue.js";
|
|
110
|
+
import _default$52 from "./tabs/tabs.vue.js";
|
|
109
111
|
import "./tabs/index.js";
|
|
112
|
+
import { TextExposed, TextProps } from "./text/text.types.js";
|
|
113
|
+
import _default$53 from "./text/text.vue.js";
|
|
114
|
+
import "./text/index.js";
|
|
110
115
|
import { TextareaExposed, TextareaProps } from "./textarea/textarea.types.js";
|
|
111
|
-
import _default$
|
|
116
|
+
import _default$54 from "./textarea/textarea.vue.js";
|
|
112
117
|
import "./textarea/index.js";
|
|
113
118
|
import { TooltipContentExposed, TooltipContentProps, TooltipProps, TooltipTriggerExposed, TooltipTriggerProps } from "./tooltip/tooltip.types.js";
|
|
114
|
-
import _default$
|
|
115
|
-
import _default$
|
|
116
|
-
import
|
|
117
|
-
import _default$54 from "./tooltip/tooltip.vue.js";
|
|
119
|
+
import _default$55 from "./tooltip/tooltip-content.vue.js";
|
|
120
|
+
import _default$56 from "./tooltip/tooltip-trigger.vue.js";
|
|
121
|
+
import _default$57 from "./tooltip/tooltip.vue.js";
|
|
118
122
|
import "./tooltip/index.js";
|
|
119
123
|
import { VisuallyHiddenExposed, VisuallyHiddenProps } from "./visually-hidden/visually-hidden.types.js";
|
|
120
|
-
import _default$
|
|
124
|
+
import _default$58 from "./visually-hidden/visually-hidden.vue.js";
|
|
121
125
|
import "./visually-hidden/index.js";
|
|
122
|
-
export { type ActivationMode, _default as Alert, type AlertExposed, type AlertProps, _default$1 as Anchor, type AnchorExposed, type AnchorProps, _default$2 as Avatar, type AvatarExposed, type AvatarProps, _default$3 as Blockquote, type BlockquoteExposed, type BlockquoteProps, _default$4 as Button, type ButtonExposed, type ButtonProps, _default$5 as Checkbox, type CheckboxExposed, type CheckboxProps, _default$6 as Code, type CodeExposed, type CodeProps, _default$7 as Details, type DetailsExposed, type DetailsProps, _default$11 as Dialog, _default$8 as DialogClose, type DialogCloseExposed, type DialogCloseProps, _default$9 as DialogContent, type DialogContentExposed, type DialogContentProps, type DialogHeadingOptions, type DialogProps, _default$10 as DialogTrigger, type DialogTriggerExposed, type DialogTriggerProps, _default$14 as Dl, _default$12 as DlDd, type DlDdExposed, type DlDdProps, _default$13 as DlDt, type DlDtExposed, type DlDtProps, type DlExposed, type DlProps, _default$18 as Drawer, _default$15 as DrawerClose, type DrawerCloseExposed, type DrawerCloseProps, _default$16 as DrawerContent, type DrawerContentExposed, type DrawerContentProps, type DrawerHeadingOptions, type DrawerProps, _default$17 as DrawerTrigger, type DrawerTriggerExposed, type DrawerTriggerProps, _default$19 as Fieldset, type FieldsetExposed, type FieldsetProps, _default$20 as Heading, type HeadingExposed, type HeadingProps, _default$21 as Hr, type HrExposed, type HrProps, _default$23 as Input, type InputExposed, type InputProps, _default$22 as Label, type LabelExposed, type LabelProps, _default$27 as Menu, _default$24 as MenuContent, type MenuContentExposed, type MenuContentProps, _default$25 as MenuItem, type MenuItemExposed, type MenuItemProps, type MenuProps, _default$26 as MenuTrigger, type MenuTriggerExposed, type MenuTriggerProps, _default$28 as Paragraph, type ParagraphExposed, type ParagraphProps, _default$31 as Popover, _default$29 as PopoverContent, type PopoverContentExposed, type PopoverContentProps, type PopoverProps, _default$30 as PopoverTrigger, type PopoverTriggerExposed, type PopoverTriggerProps, _default$32 as Progress, type ProgressExposed, type ProgressProps, _default$33 as Radio, type RadioExposed, type RadioProps, _default$34 as Radiogroup, type RadiogroupExposed, type RadiogroupProps, _default$35 as Section, type SectionExposed, type SectionProps, _default$37 as SegmentedControl, type SegmentedControlExposed, _default$36 as SegmentedControlItem, type SegmentedControlItemExposed, type SegmentedControlItemProps, type SegmentedControlProps, _default$38 as Select, type SelectExposed, type SelectProps, _default$
|
|
126
|
+
export { type ActivationMode, _default as Alert, type AlertExposed, type AlertProps, _default$1 as Anchor, type AnchorExposed, type AnchorProps, _default$2 as Avatar, type AvatarExposed, type AvatarProps, _default$3 as Blockquote, type BlockquoteExposed, type BlockquoteProps, _default$4 as Button, type ButtonExposed, type ButtonProps, _default$5 as Checkbox, type CheckboxExposed, type CheckboxProps, _default$6 as Code, type CodeExposed, type CodeProps, _default$7 as Details, type DetailsExposed, type DetailsProps, _default$11 as Dialog, _default$8 as DialogClose, type DialogCloseExposed, type DialogCloseProps, _default$9 as DialogContent, type DialogContentExposed, type DialogContentProps, type DialogHeadingOptions, type DialogProps, _default$10 as DialogTrigger, type DialogTriggerExposed, type DialogTriggerProps, _default$14 as Dl, _default$12 as DlDd, type DlDdExposed, type DlDdProps, _default$13 as DlDt, type DlDtExposed, type DlDtProps, type DlExposed, type DlProps, _default$18 as Drawer, _default$15 as DrawerClose, type DrawerCloseExposed, type DrawerCloseProps, _default$16 as DrawerContent, type DrawerContentExposed, type DrawerContentProps, type DrawerHeadingOptions, type DrawerProps, _default$17 as DrawerTrigger, type DrawerTriggerExposed, type DrawerTriggerProps, _default$19 as Fieldset, type FieldsetExposed, type FieldsetProps, _default$20 as Heading, type HeadingExposed, type HeadingProps, _default$21 as Hr, type HrExposed, type HrProps, _default$23 as Input, type InputExposed, type InputProps, _default$22 as Label, type LabelExposed, type LabelProps, _default$27 as Menu, _default$24 as MenuContent, type MenuContentExposed, type MenuContentProps, _default$25 as MenuItem, type MenuItemExposed, type MenuItemProps, type MenuProps, _default$26 as MenuTrigger, type MenuTriggerExposed, type MenuTriggerProps, _default$28 as Paragraph, type ParagraphExposed, type ParagraphProps, _default$31 as Popover, _default$29 as PopoverContent, type PopoverContentExposed, type PopoverContentProps, type PopoverProps, _default$30 as PopoverTrigger, type PopoverTriggerExposed, type PopoverTriggerProps, _default$32 as Progress, type ProgressExposed, type ProgressProps, _default$33 as Radio, type RadioExposed, type RadioProps, _default$34 as Radiogroup, type RadiogroupExposed, type RadiogroupProps, _default$35 as Section, type SectionExposed, type SectionProps, _default$37 as SegmentedControl, type SegmentedControlExposed, _default$36 as SegmentedControlItem, type SegmentedControlItemExposed, type SegmentedControlItemProps, type SegmentedControlProps, _default$38 as Select, type SelectExposed, type SelectProps, _default$39 as SkipLink, type SkipLinkExposed, type SkipLinkProps, _default$40 as StatusIcon, type StatusIconExposed, type StatusIconProps, _default$48 as Table, _default$41 as TableCaption, type TableCaptionExposed, type TableCaptionOwnProps, type TableCaptionProps, type TableExposed, type TableOwnProps, type TableProps, _default$42 as TableTbody, type TableTbodyExposed, type TableTbodyProps, _default$43 as TableTd, type TableTdExposed, type TableTdProps, _default$44 as TableTfoot, type TableTfootExposed, type TableTfootProps, _default$45 as TableTh, type TableThExposed, type TableThProps, _default$46 as TableThead, type TableTheadExposed, type TableTheadProps, _default$47 as TableTr, type TableTrExposed, type TableTrOwnProps, type TableTrProps, _default$52 as Tabs, type TabsExposed, _default$49 as TabsList, type TabsListExposed, type TabsListProps, _default$50 as TabsPanel, type TabsPanelExposed, type TabsPanelProps, type TabsProps, _default$51 as TabsTab, type TabsTabExposed, type TabsTabProps, _default$53 as Text, type TextExposed, type TextProps, _default$54 as Textarea, type TextareaExposed, type TextareaProps, _default$57 as Tooltip, _default$55 as TooltipContent, type TooltipContentExposed, type TooltipContentProps, type TooltipProps, _default$56 as TooltipTrigger, type TooltipTriggerExposed, type TooltipTriggerProps, _default$58 as VisuallyHidden, type VisuallyHiddenExposed, type VisuallyHiddenProps };
|
|
@@ -4,7 +4,6 @@ import "../../types/index.js";
|
|
|
4
4
|
import { LabelProps } from "../label/label.types.js";
|
|
5
5
|
import "../label/index.js";
|
|
6
6
|
import { InputSlots, InputVariants } from "@hebium-ui/core";
|
|
7
|
-
//#region src/components/input/input.types.d.ts
|
|
8
7
|
type HtmlInputProps = Omit<HuiElementProps<"input">, "children" | "color">;
|
|
9
8
|
export interface InputOwnProps {
|
|
10
9
|
/**
|
|
@@ -22,6 +21,4 @@ export type InputProps = HuiComponentProps<HtmlInputProps & InputOwnProps, Input
|
|
|
22
21
|
export interface InputExposed {
|
|
23
22
|
readonly input: HuiElementInstance<"input"> | null;
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=input.types.d.ts.map
|
|
24
|
+
export {};
|
|
@@ -3,11 +3,12 @@ import "../../types/index.js";
|
|
|
3
3
|
import { InputOwnProps } from "./input.types.js";
|
|
4
4
|
import { ClassValue, StyleValue } from "vue";
|
|
5
5
|
import { InputSlots } from "@hebium-ui/core";
|
|
6
|
-
//#region src/components/input/input.vue.d.ts
|
|
7
6
|
type Props = InputOwnProps & {
|
|
7
|
+
class?: ClassValue | undefined;
|
|
8
|
+
style?: StyleValue | undefined;
|
|
8
9
|
classes?: Partial<Record<InputSlots, ClassValue | undefined>> | undefined;
|
|
9
10
|
styles?: Partial<Record<InputSlots, StyleValue | undefined>> | undefined;
|
|
10
|
-
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"input">, keyof InputOwnProps | "children" | "class" | "style">;
|
|
11
|
+
} & /* @vue-ignore */ Omit<HuiElementPropsNoInfer<"input">, keyof InputOwnProps | "children" | "class" | "style" | "classes" | "styles">;
|
|
11
12
|
type __VLS_Slots = {
|
|
12
13
|
label?: () => unknown;
|
|
13
14
|
description?: () => unknown;
|
|
@@ -23,6 +24,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
23
24
|
$slots: S;
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
-
export { _default as default };
|
|
28
|
-
//# sourceMappingURL=input.vue.d.ts.map
|
|
27
|
+
export { _default as default };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
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
2
|
import { attrToBool } from "../../utils/attr-to-bool.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { useSlotPresence } from "../../utils/use-slot-presence.js";
|
|
4
|
+
import label_default from "../label/label.vue.js";
|
|
5
|
+
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.js";
|
|
6
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, mergeProps, normalizeClass, normalizeProps, normalizeStyle, openBlock, renderSlot, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
6
7
|
import { inputControl, inputRecipe, toStrbool } from "@hebium-ui/core";
|
|
7
|
-
|
|
8
|
+
// src/components/input/input.vue
|
|
8
9
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
9
10
|
name: "HuiInput",
|
|
10
11
|
inheritAttrs: false,
|
|
@@ -18,6 +19,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
18
19
|
type: null,
|
|
19
20
|
required: false
|
|
20
21
|
},
|
|
22
|
+
class: {
|
|
23
|
+
type: [
|
|
24
|
+
Boolean,
|
|
25
|
+
null,
|
|
26
|
+
String,
|
|
27
|
+
Object,
|
|
28
|
+
Array
|
|
29
|
+
],
|
|
30
|
+
required: false,
|
|
31
|
+
skipCheck: true
|
|
32
|
+
},
|
|
33
|
+
style: {
|
|
34
|
+
type: [
|
|
35
|
+
Boolean,
|
|
36
|
+
null,
|
|
37
|
+
String,
|
|
38
|
+
Object,
|
|
39
|
+
Array
|
|
40
|
+
],
|
|
41
|
+
required: false,
|
|
42
|
+
skipCheck: true
|
|
43
|
+
},
|
|
21
44
|
classes: {
|
|
22
45
|
type: null,
|
|
23
46
|
required: false
|
|
@@ -33,12 +56,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
33
56
|
const attrs = useAttrs();
|
|
34
57
|
const resolvedProps = useHuiProps("Input", props, attrs);
|
|
35
58
|
const generatedId = useId();
|
|
36
|
-
const hasLabel =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
59
|
+
const hasLabel = useSlotPresence(slots, [
|
|
60
|
+
"label",
|
|
61
|
+
"description",
|
|
62
|
+
"error"
|
|
63
|
+
]);
|
|
64
|
+
const hasError = useSlotPresence(slots, ["error"]);
|
|
42
65
|
const inputState = computed(() => {
|
|
43
66
|
const resolved = resolvedProps.value;
|
|
44
67
|
return {
|
|
@@ -56,16 +79,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
56
79
|
error: toStrbool(state.invalid)
|
|
57
80
|
});
|
|
58
81
|
});
|
|
59
|
-
const cls = useHuiClasses("Input", recipe, computed(() => props
|
|
60
|
-
const sls = useHuiStyles("Input", computed(() => props
|
|
82
|
+
const cls = useHuiClasses("Input", recipe, computed(() => props));
|
|
83
|
+
const sls = useHuiStyles("Input", computed(() => props));
|
|
61
84
|
const forwardedAttrs = useHuiAttrs(resolvedProps, [
|
|
62
85
|
"id",
|
|
63
86
|
"color",
|
|
64
|
-
"labelProps"
|
|
65
|
-
"classes",
|
|
66
|
-
"styles",
|
|
67
|
-
"class",
|
|
68
|
-
"style"
|
|
87
|
+
"labelProps"
|
|
69
88
|
]);
|
|
70
89
|
const inputAttrs = computed(() => ({
|
|
71
90
|
...inputControl.getControlAttributes(inputState.value),
|
|
@@ -130,7 +149,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
130
149
|
}), null, 16)], 6);
|
|
131
150
|
}
|
|
132
151
|
var input_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/hebium-ui/hebium-ui/packages/vue/src/components/input/input.vue"]]);
|
|
133
|
-
//#endregion
|
|
134
152
|
export { input_default as default };
|
|
135
153
|
|
|
136
|
-
//# sourceMappingURL=input.js.map
|
|
154
|
+
//# sourceMappingURL=input.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.vue.js","names":["_useSlots","_openBlock","_createElementBlock","_normalizeClass","_normalizeStyle","_createBlock","_normalizeProps","_mergeProps","_createSlots","_withCtx","_renderSlot","_createElementVNode"],"sources":["../../../src/components/input/input.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n inputControl,\n inputRecipe,\n type InputSlots as InputRecipeSlots,\n toStrbool,\n} from \"@hebium-ui/core\";\nimport {\n type ClassValue,\n computed,\n type StyleValue,\n useAttrs,\n useId,\n useTemplateRef,\n} from \"vue\";\nimport {\n useHuiAttrs,\n useHuiClasses,\n useHuiProps,\n useHuiStyles,\n} from \"~/provider\";\nimport type { HuiElementInstance, HuiElementPropsNoInfer } from \"~/types\";\nimport { attrToBool, useSlotPresence } from \"~/utils\";\nimport { Label } from \"../label\";\nimport type { InputOwnProps } from \"./input.types\";\n\ndefineOptions({\n name: \"HuiInput\",\n inheritAttrs: false,\n});\n\ntype Props =\n & InputOwnProps\n & {\n class?: ClassValue | undefined;\n style?: StyleValue | undefined;\n classes?:\n | Partial<Record<InputRecipeSlots, ClassValue | undefined>>\n | undefined;\n styles?:\n | Partial<Record<InputRecipeSlots, StyleValue | undefined>>\n | undefined;\n }\n & /* @vue-ignore */ Omit<\n HuiElementPropsNoInfer<\"input\">,\n keyof InputOwnProps | \"children\" | \"class\" | \"style\" | \"classes\" | \"styles\"\n >;\n\nconst props = defineProps<Props>();\n\nconst slots = defineSlots<{\n label?: () => unknown;\n description?: () => unknown;\n error?: () => unknown;\n}>();\n\nconst attrs = useAttrs();\nconst resolvedProps = useHuiProps(\"Input\", props, attrs);\nconst generatedId = useId();\nconst hasLabel = useSlotPresence(slots, [\"label\", \"description\", \"error\"]);\nconst hasError = useSlotPresence(slots, [\"error\"]);\n\nconst inputState = computed(() => {\n const resolved = resolvedProps.value;\n\n return {\n id: resolved.id || generatedId,\n invalid: hasError.value,\n required: attrToBool(resolved.required ?? resolved[\"aria-required\"]),\n disabled: attrToBool(resolved.disabled)\n || attrToBool(resolved[\"aria-disabled\"]),\n readOnly: attrToBool(resolved.readonly)\n || attrToBool(resolved[\"aria-readonly\"]),\n };\n});\nconst recipe = computed(() => {\n const state = inputState.value;\n\n return inputRecipe({\n color: resolvedProps.value.color,\n error: toStrbool(state.invalid),\n });\n});\nconst cls = useHuiClasses(\n \"Input\",\n recipe,\n computed(() => props),\n);\nconst sls = useHuiStyles(\n \"Input\",\n computed(() => props),\n);\nconst forwardedAttrs = useHuiAttrs(resolvedProps, [\n \"id\",\n \"color\",\n \"labelProps\",\n]);\nconst inputAttrs = computed<Record<string, unknown>>(() => ({\n ...inputControl.getControlAttributes(inputState.value),\n ...forwardedAttrs.value,\n}));\nconst labelAttrs = computed<Record<string, unknown>>(() => ({\n ...inputControl.getLabelAttributes(inputState.value),\n ...resolvedProps.value.labelProps,\n}));\nconst inputRef = useTemplateRef<HuiElementInstance<\"input\">>(\"input\");\n\ndefineExpose({\n input: inputRef,\n});\n</script>\n\n<template>\n <div :class=\"cls.root\" :style=\"sls.root\">\n <Label v-if=\"hasLabel\" v-bind=\"labelAttrs\">\n <template v-if=\"slots.label\" #default>\n <slot name=\"label\" />\n </template>\n <template v-if=\"slots.description\" #description>\n <slot name=\"description\" />\n </template>\n <template v-if=\"slots.error\" #error>\n <slot name=\"error\" />\n </template>\n </Label>\n <input\n ref=\"input\"\n v-bind=\"inputAttrs\"\n :class=\"cls.input\"\n :style=\"sls.input\"\n />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDA,MAAM,QAAQ;EAEd,MAAM,QAAQA,SAAA;EAMd,MAAM,QAAQ,SAAS;EACvB,MAAM,gBAAgB,YAAY,SAAS,OAAO,KAAK;EACvD,MAAM,cAAc,MAAM;EAC1B,MAAM,WAAW,gBAAgB,OAAO;GAAC;GAAS;GAAe;EAAO,CAAC;EACzE,MAAM,WAAW,gBAAgB,OAAO,CAAC,OAAO,CAAC;EAEjD,MAAM,aAAa,eAAe;GAChC,MAAM,WAAW,cAAc;GAE/B,OAAO;IACL,IAAI,SAAS,MAAM;IACnB,SAAS,SAAS;IAClB,UAAU,WAAW,SAAS,YAAY,SAAS,gBAAgB;IACnE,UAAU,WAAW,SAAS,QAAQ,KACjC,WAAW,SAAS,gBAAgB;IACzC,UAAU,WAAW,SAAS,QAAQ,KACjC,WAAW,SAAS,gBAAgB;GAC3C;EACF,CAAC;EACD,MAAM,SAAS,eAAe;GAC5B,MAAM,QAAQ,WAAW;GAEzB,OAAO,YAAY;IACjB,OAAO,cAAc,MAAM;IAC3B,OAAO,UAAU,MAAM,OAAO;GAChC,CAAC;EACH,CAAC;EACD,MAAM,MAAM,cACV,SACA,QACA,eAAe,KAAK,CACtB;EACA,MAAM,MAAM,aACV,SACA,eAAe,KAAK,CACtB;EACA,MAAM,iBAAiB,YAAY,eAAe;GAChD;GACA;GACA;EACF,CAAC;EACD,MAAM,aAAa,gBAAyC;GAC1D,GAAG,aAAa,qBAAqB,WAAW,KAAK;GACrD,GAAG,eAAe;EACpB,EAAE;EACF,MAAM,aAAa,gBAAyC;GAC1D,GAAG,aAAa,mBAAmB,WAAW,KAAK;GACnD,GAAG,cAAc,MAAM;EACzB,EAAE;EACF,MAAM,WAAW,eAA4C,OAAO;EAEpE,SAAa,EACX,OAAO,SACT,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIC,OAAAC,UAAA,GAAAC,mBAkBM,OAAA;EAlBA,OAAKC,eAAE,OAAA,IAAI,IAAI;EAAG,OAAKC,eAAE,OAAA,IAAI,IAAI;C,IACxB,OAAA,YAAbH,UAAA,GAAAI,YAUQ,OAAA,UAAAC,eAAAC,WAAA,EAAA,KAAA,EAAA,GAVuB,OAAA,UAAU,CAAA,GAAAC,YAAA,EAAA,GAAA,EAAA,GAAA;EACvB,OAAA,MAAM,Q;GAAQ,MAAA;GAC5B,IAAAC,cAAqB,CAArBC,WAAqB,KAAA,QAAA,OAAA,C;;;EAEP,OAAA,MAAM,c;GAAc,MAAA;GAClC,IAAAD,cAA2B,CAA3BC,WAA2B,KAAA,QAAA,aAAA,C;;;EAEb,OAAA,MAAM,Q;GAAQ,MAAA;GAC5B,IAAAD,cAAqB,CAArBC,WAAqB,KAAA,QAAA,OAAA,C;;;C,+CAGzBC,mBAKE,SALFJ,WAKE,EAJA,KAAI,QAAO,GACH,OAAA,YAAU;EACjB,OAAO,OAAA,IAAI;EACX,OAAO,OAAA,IAAI"}
|
|
@@ -3,7 +3,6 @@ import { HuiPolymorphicProps } from "../../types/polymorphic.js";
|
|
|
3
3
|
import "../../types/index.js";
|
|
4
4
|
import { VNodeChild } from "vue";
|
|
5
5
|
import { LabelMarker, LabelSlots, LabelVariants } from "@hebium-ui/core";
|
|
6
|
-
//#region src/components/label/label.types.d.ts
|
|
7
6
|
export interface LabelOwnProps {
|
|
8
7
|
/**
|
|
9
8
|
* The visual state of the label.
|
|
@@ -21,6 +20,4 @@ export interface LabelOwnProps {
|
|
|
21
20
|
export type LabelProps<E extends ElementType = "label"> = HuiPolymorphicProps<E, LabelOwnProps, LabelSlots>;
|
|
22
21
|
export interface LabelExposed<E extends ElementType = "label"> {
|
|
23
22
|
readonly root: HuiElementInstance<E> | null;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//# sourceMappingURL=label.types.d.ts.map
|
|
23
|
+
}
|
|
@@ -3,14 +3,15 @@ import "../../types/index.js";
|
|
|
3
3
|
import { LabelOwnProps } from "./label.types.js";
|
|
4
4
|
import { ClassValue, StyleValue } from "vue";
|
|
5
5
|
import { LabelSlots } from "@hebium-ui/core";
|
|
6
|
-
//#region src/components/label/label.vue.d.ts
|
|
7
6
|
declare const __VLS_export: <E extends ElementType = "label">(__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<{
|
|
8
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<LabelOwnProps & {
|
|
9
8
|
as?: E | undefined;
|
|
10
9
|
} & {
|
|
10
|
+
class?: ClassValue | undefined;
|
|
11
|
+
style?: StyleValue | undefined;
|
|
11
12
|
classes?: Partial<Record<LabelSlots, ClassValue | undefined>> | undefined;
|
|
12
13
|
styles?: Partial<Record<LabelSlots, StyleValue | undefined>> | undefined;
|
|
13
|
-
} & Omit<HuiElementPropsNoInfer<E>, "
|
|
14
|
+
} & Omit<HuiElementPropsNoInfer<E>, "class" | "style" | "classes" | "styles" | "as" | keyof LabelOwnProps>> & (typeof globalThis extends {
|
|
14
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
15
16
|
} ? P : {});
|
|
16
17
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
@@ -28,6 +29,4 @@ declare const __VLS_export: <E extends ElementType = "label">(__VLS_props: NonNu
|
|
|
28
29
|
};
|
|
29
30
|
declare const _default: typeof __VLS_export;
|
|
30
31
|
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
31
|
-
|
|
32
|
-
export { _default as default };
|
|
33
|
-
//# sourceMappingURL=label.vue.d.ts.map
|
|
32
|
+
export { _default as default };
|