@vinicunca/taman-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -0
- package/dist/_virtual/_/plugin-vue/export-helper.mjs +8 -0
- package/dist/components/auth/index.d.ts +2 -0
- package/dist/components/auth/index.mjs +2 -0
- package/dist/components/auth/taman-auth-form.mjs +67 -0
- package/dist/components/auth/taman-auth-form.vue.d.ts +31 -0
- package/dist/components/back-to-top/index.mjs +2 -0
- package/dist/components/back-to-top/taman-back-to-top.mjs +70 -0
- package/dist/components/back-to-top/taman-back-to-top.vue.d.ts +18 -0
- package/dist/components/button/check-group-selection.mjs +17 -0
- package/dist/components/button/index.d.ts +4 -0
- package/dist/components/button/index.mjs +3 -0
- package/dist/components/button/taman-button-check-group.mjs +132 -0
- package/dist/components/button/taman-button-check-group.types.d.ts +22 -0
- package/dist/components/button/taman-button-check-group.vue.d.ts +41 -0
- package/dist/components/button/taman-button-icon.mjs +105 -0
- package/dist/components/button/taman-button-icon.vue.d.ts +17 -0
- package/dist/components/descriptions/index.d.ts +4 -0
- package/dist/components/descriptions/index.mjs +3 -0
- package/dist/components/descriptions/taman-description-cell.mjs +116 -0
- package/dist/components/descriptions/taman-description-item.mjs +10 -0
- package/dist/components/descriptions/taman-description-item.vue.d.ts +5 -0
- package/dist/components/descriptions/taman-description-row.mjs +131 -0
- package/dist/components/descriptions/taman-description.mjs +78 -0
- package/dist/components/descriptions/taman-description.types.d.ts +51 -0
- package/dist/components/descriptions/taman-description.vue.d.ts +23 -0
- package/dist/components/descriptions/use-taman-description.mjs +161 -0
- package/dist/components/file-upload/index.d.ts +3 -0
- package/dist/components/file-upload/index.mjs +2 -0
- package/dist/components/file-upload/taman-file-upload.mjs +88 -0
- package/dist/components/file-upload/taman-file-upload.types.d.ts +10 -0
- package/dist/components/file-upload/taman-file-upload.vue.d.ts +21 -0
- package/dist/components/full-screen/full-screen.mjs +27 -0
- package/dist/components/full-screen/full-screen.vue.d.ts +8 -0
- package/dist/components/full-screen/index.mjs +2 -0
- package/dist/components/icon/icon.mjs +27 -0
- package/dist/components/icon/icon.vue.d.ts +9 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.mjs +2 -0
- package/dist/components/index.d.ts +34 -0
- package/dist/components/index.mjs +31 -0
- package/dist/components/input/index.d.ts +5 -0
- package/dist/components/input/index.mjs +4 -0
- package/dist/components/input/password-strength.d.ts +7 -0
- package/dist/components/input/password-strength.mjs +21 -0
- package/dist/components/input/taman-input-currency.mjs +76 -0
- package/dist/components/input/taman-input-currency.types.d.ts +8 -0
- package/dist/components/input/taman-input-currency.vue.d.ts +15 -0
- package/dist/components/input/taman-input-password.mjs +99 -0
- package/dist/components/input/taman-input-password.vue.d.ts +17 -0
- package/dist/components/input-date/format-calendar-input-value.mjs +26 -0
- package/dist/components/input-date/index.d.ts +3 -0
- package/dist/components/input-date/index.mjs +2 -0
- package/dist/components/input-date/taman-input-date.mjs +116 -0
- package/dist/components/input-date/taman-input-date.types.d.ts +14 -0
- package/dist/components/input-date/taman-input-date.vue.d.ts +21 -0
- package/dist/components/loading/index.d.ts +3 -0
- package/dist/components/loading/index.mjs +2 -0
- package/dist/components/loading/taman-loading.mjs +64 -0
- package/dist/components/loading/taman-loading.vue.d.ts +25 -0
- package/dist/components/loading/types.d.ts +13 -0
- package/dist/components/logo/index.mjs +2 -0
- package/dist/components/logo/taman-logo.mjs +60 -0
- package/dist/components/logo/taman-logo.vue.d.ts +32 -0
- package/dist/components/render-content/index.d.ts +2 -0
- package/dist/components/render-content/index.mjs +2 -0
- package/dist/components/render-content/render-content.mjs +42 -0
- package/dist/components/render-content/render-content.vue.d.ts +31 -0
- package/dist/components/scrollbar/index.d.ts +2 -0
- package/dist/components/scrollbar/index.mjs +2 -0
- package/dist/components/scrollbar/scrollbar.mjs +136 -0
- package/dist/components/scrollbar/scrollbar.vue.d.ts +50 -0
- package/dist/form/components/form-actions.mjs +151 -0
- package/dist/form/components/form-field-array.mjs +154 -0
- package/dist/form/components/form-field-array.types.d.ts +18 -0
- package/dist/form/form-render/form-render-field-collapsible.mjs +32 -0
- package/dist/form/form-render/form-render-field-control.mjs +44 -0
- package/dist/form/form-render/form-render-form-field.mjs +408 -0
- package/dist/form/form-render/form-render-form-label.mjs +46 -0
- package/dist/form/form-render/form-render-form.mjs +163 -0
- package/dist/form/form-render/form-render-group.mjs +89 -0
- package/dist/form/form-render/form-render.context.mjs +10 -0
- package/dist/form/form-render/form-render.dependencies.mjs +101 -0
- package/dist/form/form-render/form-render.helper.mjs +31 -0
- package/dist/form/form-render/form-render.schema.mjs +209 -0
- package/dist/form/form-render/index.mjs +4 -0
- package/dist/form/form.api.d.ts +54 -0
- package/dist/form/form.api.mjs +324 -0
- package/dist/form/form.built-ins.d.ts +36 -0
- package/dist/form/form.built-ins.mjs +48 -0
- package/dist/form/form.codec.d.ts +17 -0
- package/dist/form/form.codec.mjs +45 -0
- package/dist/form/form.config.d.ts +6 -0
- package/dist/form/form.config.mjs +43 -0
- package/dist/form/form.empty-value.d.ts +4 -0
- package/dist/form/form.empty-value.mjs +20 -0
- package/dist/form/form.field-name.mjs +25 -0
- package/dist/form/form.rule-registry.mjs +10 -0
- package/dist/form/form.runtime-field.mjs +56 -0
- package/dist/form/form.runtime.mjs +235 -0
- package/dist/form/form.schema-defaults.mjs +36 -0
- package/dist/form/form.types.d.ts +315 -0
- package/dist/form/form.use-delayed-flag.mjs +35 -0
- package/dist/form/form.use-form-context.mjs +44 -0
- package/dist/form/form.use-taman-form.d.ts +7 -0
- package/dist/form/form.use-taman-form.mjs +36 -0
- package/dist/form/index.d.ts +8 -0
- package/dist/form/index.mjs +6 -0
- package/dist/form/taman-use-form.mjs +146 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.mjs +56 -0
- package/dist/layout/components/index.mjs +6 -0
- package/dist/layout/components/taman-core-button-collapse.mjs +38 -0
- package/dist/layout/components/taman-core-button-fixed.mjs +29 -0
- package/dist/layout/components/taman-core-layout-content.mjs +50 -0
- package/dist/layout/components/taman-core-layout-footer.mjs +38 -0
- package/dist/layout/components/taman-core-layout-header.mjs +48 -0
- package/dist/layout/components/taman-core-layout-sidebar.mjs +319 -0
- package/dist/layout/components/taman-core-layout-tabbar.mjs +21 -0
- package/dist/layout/composables/use-layout.mjs +31 -0
- package/dist/layout/composables/use-sidebar-drag.mjs +103 -0
- package/dist/layout/header-scroll-state.mjs +9 -0
- package/dist/layout/index.d.ts +3 -0
- package/dist/layout/index.mjs +2 -0
- package/dist/layout/taman-core-layout.d.ts +41 -0
- package/dist/layout/taman-core-layout.mjs +603 -0
- package/dist/layout/taman-core-layout.vue.d.ts +99 -0
- package/dist/menu/components/collapse-transition.mjs +82 -0
- package/dist/menu/components/index.mjs +5 -0
- package/dist/menu/components/normal-menu/index.d.ts +3 -0
- package/dist/menu/components/normal-menu/index.mjs +2 -0
- package/dist/menu/components/normal-menu/normal-menu.d.ts +11 -0
- package/dist/menu/components/normal-menu/normal-menu.mjs +50 -0
- package/dist/menu/components/normal-menu/normal-menu.vue.d.ts +19 -0
- package/dist/menu/components/taman-menu-badge-dot.mjs +23 -0
- package/dist/menu/components/taman-menu-badge.mjs +49 -0
- package/dist/menu/components/taman-menu-badge.vue.d.ts +9 -0
- package/dist/menu/components/taman-menu-item.mjs +124 -0
- package/dist/menu/components/taman-menu-root.mjs +250 -0
- package/dist/menu/components/taman-menu-sub-menu-content.mjs +83 -0
- package/dist/menu/components/taman-menu-sub-menu.mjs +216 -0
- package/dist/menu/composables/index.mjs +3 -0
- package/dist/menu/composables/use-menu-context.mjs +36 -0
- package/dist/menu/composables/use-menu-scroll.mjs +23 -0
- package/dist/menu/composables/use-menu.mjs +33 -0
- package/dist/menu/index.d.ts +7 -0
- package/dist/menu/index.mjs +5 -0
- package/dist/menu/menu.constants.mjs +5 -0
- package/dist/menu/menu.types.d.ts +63 -0
- package/dist/menu/menu.utils.mjs +27 -0
- package/dist/menu/taman-menu.mjs +41 -0
- package/dist/menu/taman-menu.vue.d.ts +12 -0
- package/dist/menu/taman-sub-menu.mjs +75 -0
- package/dist/popup/alert/alert-builder.d.ts +8 -0
- package/dist/popup/alert/alert-builder.mjs +98 -0
- package/dist/popup/alert/alert-overlay.mjs +55 -0
- package/dist/popup/alert/alert.d.ts +43 -0
- package/dist/popup/alert/alert.mjs +10 -0
- package/dist/popup/alert/alert.vue.d.ts +26 -0
- package/dist/popup/alert/alert2.mjs +238 -0
- package/dist/popup/alert/index.d.ts +4 -0
- package/dist/popup/alert/index.mjs +4 -0
- package/dist/popup/dialog/dialog.api.d.ts +23 -0
- package/dist/popup/dialog/dialog.api.mjs +133 -0
- package/dist/popup/dialog/dialog.mjs +336 -0
- package/dist/popup/dialog/dialog.types.d.ts +60 -0
- package/dist/popup/dialog/dialog.vue.d.ts +46 -0
- package/dist/popup/dialog/index.d.ts +4 -0
- package/dist/popup/dialog/index.mjs +3 -0
- package/dist/popup/dialog/use-dialog-draggable.mjs +93 -0
- package/dist/popup/dialog/use-taman-dialog.d.ts +13 -0
- package/dist/popup/dialog/use-taman-dialog.mjs +106 -0
- package/dist/popup/drawer/drawer.api.d.ts +23 -0
- package/dist/popup/drawer/drawer.api.mjs +124 -0
- package/dist/popup/drawer/drawer.mjs +277 -0
- package/dist/popup/drawer/drawer.types.d.ts +56 -0
- package/dist/popup/drawer/drawer.vue.d.ts +47 -0
- package/dist/popup/drawer/index.d.ts +4 -0
- package/dist/popup/drawer/index.mjs +3 -0
- package/dist/popup/drawer/use-taman-drawer.d.ts +13 -0
- package/dist/popup/drawer/use-taman-drawer.mjs +109 -0
- package/dist/popup/index.d.ts +13 -0
- package/dist/popup/index.mjs +11 -0
- package/dist/tabs/components/index.mjs +2 -0
- package/dist/tabs/components/taman-tabs.mjs +158 -0
- package/dist/tabs/components/widgets/index.d.ts +4 -0
- package/dist/tabs/components/widgets/index.mjs +4 -0
- package/dist/tabs/components/widgets/tool-more.mjs +45 -0
- package/dist/tabs/components/widgets/tool-more.vue.d.ts +7 -0
- package/dist/tabs/components/widgets/tool-refresh.mjs +25 -0
- package/dist/tabs/components/widgets/tool-refresh.vue.d.ts +9 -0
- package/dist/tabs/components/widgets/tool-screen.mjs +29 -0
- package/dist/tabs/components/widgets/tool-screen.vue.d.ts +12 -0
- package/dist/tabs/index.d.ts +8 -0
- package/dist/tabs/index.mjs +6 -0
- package/dist/tabs/strict-context-menu.d.ts +10 -0
- package/dist/tabs/tabs.types.d.ts +30 -0
- package/dist/tabs/taman-tabs-view.mjs +101 -0
- package/dist/tabs/taman-tabs-view.vue.d.ts +18 -0
- package/dist/tabs/use-tabs-drag.mjs +69 -0
- package/dist/tabs/use-tabs-view-scroll.mjs +114 -0
- package/dist/ui/alert-dialog/alert-dialog-action.mjs +21 -0
- package/dist/ui/alert-dialog/alert-dialog-action.vue.d.ts +16 -0
- package/dist/ui/alert-dialog/alert-dialog-cancel.mjs +21 -0
- package/dist/ui/alert-dialog/alert-dialog-cancel.vue.d.ts +16 -0
- package/dist/ui/alert-dialog/alert-dialog-content.mjs +111 -0
- package/dist/ui/alert-dialog/alert-dialog-content.vue.d.ts +49 -0
- package/dist/ui/alert-dialog/alert-dialog-description.mjs +30 -0
- package/dist/ui/alert-dialog/alert-dialog-description.vue.d.ts +20 -0
- package/dist/ui/alert-dialog/alert-dialog-footer.mjs +14 -0
- package/dist/ui/alert-dialog/alert-dialog-footer.vue.d.ts +15 -0
- package/dist/ui/alert-dialog/alert-dialog-header.mjs +14 -0
- package/dist/ui/alert-dialog/alert-dialog-header.vue.d.ts +15 -0
- package/dist/ui/alert-dialog/alert-dialog-overlay.mjs +29 -0
- package/dist/ui/alert-dialog/alert-dialog-root.mjs +23 -0
- package/dist/ui/alert-dialog/alert-dialog-root.vue.d.ts +23 -0
- package/dist/ui/alert-dialog/alert-dialog-title.mjs +30 -0
- package/dist/ui/alert-dialog/alert-dialog-title.vue.d.ts +20 -0
- package/dist/ui/alert-dialog/alert-dialog-trigger.mjs +21 -0
- package/dist/ui/alert-dialog/alert-dialog-trigger.vue.d.ts +16 -0
- package/dist/ui/alert-dialog/index.d.ts +10 -0
- package/dist/ui/alert-dialog/index.mjs +10 -0
- package/dist/ui/dialog/dialog-close.mjs +21 -0
- package/dist/ui/dialog/dialog-close.vue.d.ts +16 -0
- package/dist/ui/dialog/dialog-content.mjs +111 -0
- package/dist/ui/dialog/dialog-content.vue.d.ts +51 -0
- package/dist/ui/dialog/dialog-description.mjs +31 -0
- package/dist/ui/dialog/dialog-description.vue.d.ts +20 -0
- package/dist/ui/dialog/dialog-footer.mjs +14 -0
- package/dist/ui/dialog/dialog-footer.vue.d.ts +15 -0
- package/dist/ui/dialog/dialog-header.mjs +14 -0
- package/dist/ui/dialog/dialog-header.vue.d.ts +15 -0
- package/dist/ui/dialog/dialog-overlay.mjs +34 -0
- package/dist/ui/dialog/dialog-overlay.vue.d.ts +14 -0
- package/dist/ui/dialog/dialog-root.mjs +24 -0
- package/dist/ui/dialog/dialog-root.vue.d.ts +23 -0
- package/dist/ui/dialog/dialog-title.mjs +31 -0
- package/dist/ui/dialog/dialog-title.vue.d.ts +20 -0
- package/dist/ui/dialog/dialog-trigger.mjs +21 -0
- package/dist/ui/dialog/dialog-trigger.vue.d.ts +16 -0
- package/dist/ui/dialog/index.d.ts +10 -0
- package/dist/ui/dialog/index.mjs +10 -0
- package/dist/ui/dialog/use-dialog-state-events.mjs +60 -0
- package/dist/ui/form/form-control.mjs +27 -0
- package/dist/ui/form/form-control.vue.d.ts +15 -0
- package/dist/ui/form/form-description.mjs +27 -0
- package/dist/ui/form/form-description.vue.d.ts +19 -0
- package/dist/ui/form/form-field.mjs +37 -0
- package/dist/ui/form/form-field.vue.d.ts +27 -0
- package/dist/ui/form/form-item.mjs +27 -0
- package/dist/ui/form/form-item.vue.d.ts +19 -0
- package/dist/ui/form/form-label.mjs +41 -0
- package/dist/ui/form/form-label.vue.d.ts +20 -0
- package/dist/ui/form/form-message.mjs +28 -0
- package/dist/ui/form/form-message.vue.d.ts +9 -0
- package/dist/ui/form/index.d.ts +8 -0
- package/dist/ui/form/index.mjs +8 -0
- package/dist/ui/form/injection-keys.d.ts +13 -0
- package/dist/ui/form/injection-keys.mjs +5 -0
- package/dist/ui/form/use-form-field.mjs +27 -0
- package/dist/ui/index.d.ts +42 -0
- package/dist/ui/index.mjs +42 -0
- package/dist/ui/label/index.d.ts +2 -0
- package/dist/ui/label/index.mjs +2 -0
- package/dist/ui/label/label.mjs +31 -0
- package/dist/ui/label/label.vue.d.ts +20 -0
- package/dist/ui/scroll-area/index.d.ts +3 -0
- package/dist/ui/scroll-area/index.mjs +3 -0
- package/dist/ui/scroll-area/scroll-area.mjs +47 -0
- package/dist/ui/scroll-area/scroll-area.vue.d.ts +21 -0
- package/dist/ui/scroll-area/scroll-bar.mjs +38 -0
- package/dist/ui/scroll-area/scroll-bar.vue.d.ts +12 -0
- package/dist/ui/sheet/index.d.ts +8 -0
- package/dist/ui/sheet/index.mjs +8 -0
- package/dist/ui/sheet/sheet-close.mjs +21 -0
- package/dist/ui/sheet/sheet-close.vue.d.ts +16 -0
- package/dist/ui/sheet/sheet-content.mjs +105 -0
- package/dist/ui/sheet/sheet-content.vue.d.ts +48 -0
- package/dist/ui/sheet/sheet-description.mjs +30 -0
- package/dist/ui/sheet/sheet-description.vue.d.ts +20 -0
- package/dist/ui/sheet/sheet-footer.mjs +14 -0
- package/dist/ui/sheet/sheet-footer.vue.d.ts +15 -0
- package/dist/ui/sheet/sheet-header.mjs +14 -0
- package/dist/ui/sheet/sheet-header.vue.d.ts +15 -0
- package/dist/ui/sheet/sheet-overlay.mjs +32 -0
- package/dist/ui/sheet/sheet-root.mjs +24 -0
- package/dist/ui/sheet/sheet-root.vue.d.ts +23 -0
- package/dist/ui/sheet/sheet-title.mjs +31 -0
- package/dist/ui/sheet/sheet-title.vue.d.ts +20 -0
- package/dist/ui/sheet/sheet.variants.d.ts +27 -0
- package/dist/ui/sheet/sheet.variants.mjs +12 -0
- package/dist/unocss/content.d.ts +4 -0
- package/dist/unocss/content.mjs +9 -0
- package/dist/unocss/index.d.ts +2 -0
- package/dist/unocss/index.mjs +2 -0
- package/package.json +78 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useFormField } from "./use-form-field.mjs";
|
|
2
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
3
|
+
//#region src/ui/form/form-description.vue
|
|
4
|
+
const _hoisted_1 = ["id"];
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "form-description",
|
|
7
|
+
props: { class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } },
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const { formDescriptionId } = useFormField();
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return openBlock(), createElementBlock("p", {
|
|
19
|
+
id: unref(formDescriptionId),
|
|
20
|
+
"data-slot": "form-description",
|
|
21
|
+
class: normalizeClass(["text-sm color-text-muted", [props.class]])
|
|
22
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
//#region src/ui/form/form-description.vue.d.ts
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { _default as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FORM_FIELD_INJECTION_KEY } from "./injection-keys.mjs";
|
|
2
|
+
import { defineComponent, provide, renderSlot, toRefs } from "vue";
|
|
3
|
+
//#region src/ui/form/form-field.vue
|
|
4
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "form-field",
|
|
6
|
+
props: {
|
|
7
|
+
dirty: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: false
|
|
10
|
+
},
|
|
11
|
+
error: { default: void 0 },
|
|
12
|
+
name: {},
|
|
13
|
+
touched: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
},
|
|
17
|
+
valid: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const { dirty, error, name, touched, valid } = toRefs(__props);
|
|
24
|
+
provide(FORM_FIELD_INJECTION_KEY, {
|
|
25
|
+
dirty,
|
|
26
|
+
error,
|
|
27
|
+
name,
|
|
28
|
+
touched,
|
|
29
|
+
valid
|
|
30
|
+
});
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return renderSlot(_ctx.$slots, "default");
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/ui/form/form-field.vue.d.ts
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
dirty?: boolean;
|
|
4
|
+
error?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
touched?: boolean;
|
|
7
|
+
valid?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
error: string;
|
|
15
|
+
dirty: boolean;
|
|
16
|
+
touched: boolean;
|
|
17
|
+
valid: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { _default as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FORM_ITEM_INJECTION_KEY } from "./injection-keys.mjs";
|
|
2
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, provide, renderSlot } from "vue";
|
|
3
|
+
import { useId as useId$1 } from "akar";
|
|
4
|
+
//#region src/ui/form/form-item.vue
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "form-item",
|
|
7
|
+
props: { class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } },
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const id = useId$1();
|
|
17
|
+
provide(FORM_ITEM_INJECTION_KEY, id);
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", {
|
|
20
|
+
"data-slot": "form-item",
|
|
21
|
+
class: normalizeClass([props.class])
|
|
22
|
+
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
//#region src/ui/form/form-item.vue.d.ts
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { _default as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useFormField } from "./use-form-field.mjs";
|
|
2
|
+
import _sfc_main$1 from "../label/label.mjs";
|
|
3
|
+
import "../label/index.mjs";
|
|
4
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#region src/ui/form/form-label.vue
|
|
6
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
|
+
__name: "form-label",
|
|
8
|
+
props: {
|
|
9
|
+
for: {},
|
|
10
|
+
asChild: { type: Boolean },
|
|
11
|
+
as: {},
|
|
12
|
+
class: { type: [
|
|
13
|
+
Boolean,
|
|
14
|
+
null,
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Array
|
|
18
|
+
] }
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const { error, formItemId } = useFormField();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(_sfc_main$1), {
|
|
25
|
+
"data-slot": "form-label",
|
|
26
|
+
"data-error": !!unref(error),
|
|
27
|
+
class: normalizeClass([props.class]),
|
|
28
|
+
for: unref(formItemId)
|
|
29
|
+
}, {
|
|
30
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
31
|
+
_: 3
|
|
32
|
+
}, 8, [
|
|
33
|
+
"data-error",
|
|
34
|
+
"class",
|
|
35
|
+
"for"
|
|
36
|
+
]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
import { LabelProps } from "akar";
|
|
3
|
+
//#region src/ui/form/form-label.vue.d.ts
|
|
4
|
+
type __VLS_Props = LabelProps & {
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_8: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { _default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useFormField } from "./use-form-field.mjs";
|
|
2
|
+
import { createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
3
|
+
//#region src/ui/form/form-message.vue
|
|
4
|
+
const _hoisted_1 = ["id"];
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "form-message",
|
|
7
|
+
props: { class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } },
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const { error, formMessageId } = useFormField();
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return unref(error) ? (openBlock(), createElementBlock("p", {
|
|
19
|
+
key: 0,
|
|
20
|
+
id: unref(formMessageId),
|
|
21
|
+
"data-slot": "form-message",
|
|
22
|
+
class: normalizeClass(["text-sm color-error", [props.class]])
|
|
23
|
+
}, toDisplayString(unref(error)), 11, _hoisted_1)) : createCommentVNode("v-if", true);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
//#region src/ui/form/form-message.vue.d.ts
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { _default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _default from "./form-control.vue.js";
|
|
2
|
+
import _default$1 from "./form-description.vue.js";
|
|
3
|
+
import _default$2 from "./form-field.vue.js";
|
|
4
|
+
import _default$3 from "./form-item.vue.js";
|
|
5
|
+
import _default$4 from "./form-label.vue.js";
|
|
6
|
+
import _default$5 from "./form-message.vue.js";
|
|
7
|
+
import { FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY } from "./injection-keys.js";
|
|
8
|
+
export { FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY, _default as FormControl, _default$1 as FormDescription, _default$2 as FormField, _default$3 as FormItem, _default$4 as FormLabel, _default$5 as FormMessage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY } from "./injection-keys.mjs";
|
|
2
|
+
import _sfc_main from "./form-control.mjs";
|
|
3
|
+
import _sfc_main$1 from "./form-description.mjs";
|
|
4
|
+
import _sfc_main$2 from "./form-field.mjs";
|
|
5
|
+
import _sfc_main$3 from "./form-item.mjs";
|
|
6
|
+
import _sfc_main$4 from "./form-label.mjs";
|
|
7
|
+
import _sfc_main$5 from "./form-message.mjs";
|
|
8
|
+
export { FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY, _sfc_main as FormControl, _sfc_main$1 as FormDescription, _sfc_main$2 as FormField, _sfc_main$3 as FormItem, _sfc_main$4 as FormLabel, _sfc_main$5 as FormMessage };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from "vue";
|
|
2
|
+
//#region src/ui/form/injection-keys.d.ts
|
|
3
|
+
interface FormFieldContext {
|
|
4
|
+
dirty: Readonly<Ref<boolean>>;
|
|
5
|
+
error: Readonly<Ref<string | undefined>>;
|
|
6
|
+
name: Readonly<Ref<string>>;
|
|
7
|
+
touched: Readonly<Ref<boolean>>;
|
|
8
|
+
valid: Readonly<Ref<boolean>>;
|
|
9
|
+
}
|
|
10
|
+
declare const FORM_ITEM_INJECTION_KEY: InjectionKey<string>;
|
|
11
|
+
declare const FORM_FIELD_INJECTION_KEY: InjectionKey<FormFieldContext>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY, FormFieldContext };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY } from "./injection-keys.mjs";
|
|
2
|
+
import { computed, inject } from "vue";
|
|
3
|
+
//#region src/ui/form/use-form-field.ts
|
|
4
|
+
function useFormField() {
|
|
5
|
+
const fieldContext = inject(FORM_FIELD_INJECTION_KEY);
|
|
6
|
+
const fieldItemContext = inject(FORM_ITEM_INJECTION_KEY);
|
|
7
|
+
if (!fieldContext) throw new Error("useFormField should be used within <FormField>");
|
|
8
|
+
if (!fieldItemContext) throw new Error("useFormField should be used within <FormItem>");
|
|
9
|
+
const { dirty, error, name, touched, valid } = fieldContext;
|
|
10
|
+
const id = fieldItemContext;
|
|
11
|
+
const fieldState = {
|
|
12
|
+
valid: computed(() => valid.value),
|
|
13
|
+
isDirty: computed(() => dirty.value),
|
|
14
|
+
isTouched: computed(() => touched.value),
|
|
15
|
+
error
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
id,
|
|
19
|
+
name,
|
|
20
|
+
formItemId: `${id}-form-item`,
|
|
21
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
22
|
+
formMessageId: `${id}-form-item-message`,
|
|
23
|
+
...fieldState
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { useFormField };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _default from "./alert-dialog/alert-dialog-action.vue.js";
|
|
2
|
+
import _default$1 from "./alert-dialog/alert-dialog-cancel.vue.js";
|
|
3
|
+
import _default$2 from "./alert-dialog/alert-dialog-content.vue.js";
|
|
4
|
+
import _default$3 from "./alert-dialog/alert-dialog-description.vue.js";
|
|
5
|
+
import _default$4 from "./alert-dialog/alert-dialog-footer.vue.js";
|
|
6
|
+
import _default$5 from "./alert-dialog/alert-dialog-header.vue.js";
|
|
7
|
+
import _default$6 from "./alert-dialog/alert-dialog-root.vue.js";
|
|
8
|
+
import _default$7 from "./alert-dialog/alert-dialog-title.vue.js";
|
|
9
|
+
import _default$8 from "./alert-dialog/alert-dialog-trigger.vue.js";
|
|
10
|
+
import "./alert-dialog/index.js";
|
|
11
|
+
import _default$9 from "./dialog/dialog-close.vue.js";
|
|
12
|
+
import _default$10 from "./dialog/dialog-content.vue.js";
|
|
13
|
+
import _default$11 from "./dialog/dialog-description.vue.js";
|
|
14
|
+
import _default$12 from "./dialog/dialog-footer.vue.js";
|
|
15
|
+
import _default$13 from "./dialog/dialog-header.vue.js";
|
|
16
|
+
import _default$14 from "./dialog/dialog-overlay.vue.js";
|
|
17
|
+
import _default$15 from "./dialog/dialog-root.vue.js";
|
|
18
|
+
import _default$16 from "./dialog/dialog-title.vue.js";
|
|
19
|
+
import _default$17 from "./dialog/dialog-trigger.vue.js";
|
|
20
|
+
import "./dialog/index.js";
|
|
21
|
+
import _default$18 from "./form/form-control.vue.js";
|
|
22
|
+
import _default$19 from "./form/form-description.vue.js";
|
|
23
|
+
import _default$20 from "./form/form-field.vue.js";
|
|
24
|
+
import _default$21 from "./form/form-item.vue.js";
|
|
25
|
+
import _default$22 from "./form/form-label.vue.js";
|
|
26
|
+
import _default$23 from "./form/form-message.vue.js";
|
|
27
|
+
import { FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY } from "./form/injection-keys.js";
|
|
28
|
+
import "./form/index.js";
|
|
29
|
+
import _default$24 from "./label/label.vue.js";
|
|
30
|
+
import "./label/index.js";
|
|
31
|
+
import _default$25 from "./scroll-area/scroll-area.vue.js";
|
|
32
|
+
import _default$26 from "./scroll-area/scroll-bar.vue.js";
|
|
33
|
+
import "./scroll-area/index.js";
|
|
34
|
+
import _default$27 from "./sheet/sheet-close.vue.js";
|
|
35
|
+
import _default$28 from "./sheet/sheet-content.vue.js";
|
|
36
|
+
import _default$29 from "./sheet/sheet-description.vue.js";
|
|
37
|
+
import _default$30 from "./sheet/sheet-footer.vue.js";
|
|
38
|
+
import _default$31 from "./sheet/sheet-header.vue.js";
|
|
39
|
+
import _default$32 from "./sheet/sheet-root.vue.js";
|
|
40
|
+
import _default$33 from "./sheet/sheet-title.vue.js";
|
|
41
|
+
import "./sheet/index.js";
|
|
42
|
+
export { _default$25 as AScrollArea, _default$26 as AScrollBar, _default$6 as AlertDialog, _default as AlertDialogAction, _default$1 as AlertDialogCancel, _default$2 as AlertDialogContent, _default$3 as AlertDialogDescription, _default$4 as AlertDialogFooter, _default$5 as AlertDialogHeader, _default$7 as AlertDialogTitle, _default$8 as AlertDialogTrigger, _default$9 as DialogClose, _default$10 as DialogContent, _default$11 as DialogDescription, _default$12 as DialogFooter, _default$13 as DialogHeader, _default$14 as DialogOverlay, _default$15 as DialogRoot, _default$16 as DialogTitle, _default$17 as DialogTrigger, FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY, _default$18 as FormControl, _default$19 as FormDescription, _default$20 as FormField, _default$21 as FormItem, _default$22 as FormLabel, _default$23 as FormMessage, _default$24 as Label, _default$27 as SheetClose, _default$28 as SheetContent, _default$29 as SheetDescription, _default$30 as SheetFooter, _default$31 as SheetHeader, _default$32 as SheetRoot, _default$33 as SheetTitle };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _sfc_main from "./alert-dialog/alert-dialog-action.mjs";
|
|
2
|
+
import _sfc_main$1 from "./alert-dialog/alert-dialog-cancel.mjs";
|
|
3
|
+
import _sfc_main$2 from "./alert-dialog/alert-dialog-content.mjs";
|
|
4
|
+
import _sfc_main$3 from "./alert-dialog/alert-dialog-description.mjs";
|
|
5
|
+
import alert_dialog_footer_default from "./alert-dialog/alert-dialog-footer.mjs";
|
|
6
|
+
import alert_dialog_header_default from "./alert-dialog/alert-dialog-header.mjs";
|
|
7
|
+
import _sfc_main$4 from "./alert-dialog/alert-dialog-root.mjs";
|
|
8
|
+
import _sfc_main$5 from "./alert-dialog/alert-dialog-title.mjs";
|
|
9
|
+
import _sfc_main$6 from "./alert-dialog/alert-dialog-trigger.mjs";
|
|
10
|
+
import "./alert-dialog/index.mjs";
|
|
11
|
+
import _sfc_main$7 from "./dialog/dialog-close.mjs";
|
|
12
|
+
import _sfc_main$8 from "./dialog/dialog-overlay.mjs";
|
|
13
|
+
import _sfc_main$9 from "./dialog/dialog-content.mjs";
|
|
14
|
+
import _sfc_main$10 from "./dialog/dialog-description.mjs";
|
|
15
|
+
import dialog_footer_default from "./dialog/dialog-footer.mjs";
|
|
16
|
+
import dialog_header_default from "./dialog/dialog-header.mjs";
|
|
17
|
+
import _sfc_main$11 from "./dialog/dialog-root.mjs";
|
|
18
|
+
import _sfc_main$12 from "./dialog/dialog-title.mjs";
|
|
19
|
+
import _sfc_main$13 from "./dialog/dialog-trigger.mjs";
|
|
20
|
+
import "./dialog/index.mjs";
|
|
21
|
+
import { FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY } from "./form/injection-keys.mjs";
|
|
22
|
+
import _sfc_main$14 from "./form/form-control.mjs";
|
|
23
|
+
import _sfc_main$15 from "./form/form-description.mjs";
|
|
24
|
+
import _sfc_main$16 from "./form/form-field.mjs";
|
|
25
|
+
import _sfc_main$17 from "./form/form-item.mjs";
|
|
26
|
+
import _sfc_main$18 from "./label/label.mjs";
|
|
27
|
+
import "./label/index.mjs";
|
|
28
|
+
import _sfc_main$19 from "./form/form-label.mjs";
|
|
29
|
+
import _sfc_main$20 from "./form/form-message.mjs";
|
|
30
|
+
import "./form/index.mjs";
|
|
31
|
+
import _sfc_main$21 from "./scroll-area/scroll-bar.mjs";
|
|
32
|
+
import _sfc_main$22 from "./scroll-area/scroll-area.mjs";
|
|
33
|
+
import "./scroll-area/index.mjs";
|
|
34
|
+
import _sfc_main$23 from "./sheet/sheet-close.mjs";
|
|
35
|
+
import _sfc_main$24 from "./sheet/sheet-content.mjs";
|
|
36
|
+
import _sfc_main$25 from "./sheet/sheet-description.mjs";
|
|
37
|
+
import sheet_footer_default from "./sheet/sheet-footer.mjs";
|
|
38
|
+
import sheet_header_default from "./sheet/sheet-header.mjs";
|
|
39
|
+
import _sfc_main$26 from "./sheet/sheet-root.mjs";
|
|
40
|
+
import _sfc_main$27 from "./sheet/sheet-title.mjs";
|
|
41
|
+
import "./sheet/index.mjs";
|
|
42
|
+
export { _sfc_main$22 as AScrollArea, _sfc_main$21 as AScrollBar, _sfc_main$4 as AlertDialog, _sfc_main as AlertDialogAction, _sfc_main$1 as AlertDialogCancel, _sfc_main$2 as AlertDialogContent, _sfc_main$3 as AlertDialogDescription, alert_dialog_footer_default as AlertDialogFooter, alert_dialog_header_default as AlertDialogHeader, _sfc_main$5 as AlertDialogTitle, _sfc_main$6 as AlertDialogTrigger, _sfc_main$7 as DialogClose, _sfc_main$9 as DialogContent, _sfc_main$10 as DialogDescription, dialog_footer_default as DialogFooter, dialog_header_default as DialogHeader, _sfc_main$8 as DialogOverlay, _sfc_main$11 as DialogRoot, _sfc_main$12 as DialogTitle, _sfc_main$13 as DialogTrigger, FORM_FIELD_INJECTION_KEY, FORM_ITEM_INJECTION_KEY, _sfc_main$14 as FormControl, _sfc_main$15 as FormDescription, _sfc_main$16 as FormField, _sfc_main$17 as FormItem, _sfc_main$19 as FormLabel, _sfc_main$20 as FormMessage, _sfc_main$18 as Label, _sfc_main$23 as SheetClose, _sfc_main$24 as SheetContent, _sfc_main$25 as SheetDescription, sheet_footer_default as SheetFooter, sheet_header_default as SheetHeader, _sfc_main$26 as SheetRoot, _sfc_main$27 as SheetTitle };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { Label } from "akar";
|
|
4
|
+
//#region src/ui/label/label.vue
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "label",
|
|
7
|
+
props: {
|
|
8
|
+
for: {},
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(Label), mergeProps({ "data-slot": "label" }, unref(delegatedProps), { class: ["text-sm leading-none font-500 flex gap-0.5 select-none items-center group-data-[disabled=true]:(opacity-50 pointer-events-none) peer-disabled:(opacity-50 cursor-not-allowed)", [props.class]] }), {
|
|
24
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
import { LabelProps } from "akar";
|
|
3
|
+
//#region src/ui/label/label.vue.d.ts
|
|
4
|
+
type __VLS_Props = LabelProps & {
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_8: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { _default as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import _sfc_main$1 from "./scroll-bar.mjs";
|
|
2
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { ScrollAreaCorner, ScrollAreaRoot, ScrollAreaViewport } from "akar";
|
|
5
|
+
//#region src/ui/scroll-area/scroll-area.vue
|
|
6
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
|
+
__name: "scroll-area",
|
|
8
|
+
props: {
|
|
9
|
+
type: {},
|
|
10
|
+
dir: {},
|
|
11
|
+
scrollHideDelay: {},
|
|
12
|
+
asChild: { type: Boolean },
|
|
13
|
+
as: {},
|
|
14
|
+
class: { type: [
|
|
15
|
+
Boolean,
|
|
16
|
+
null,
|
|
17
|
+
String,
|
|
18
|
+
Object,
|
|
19
|
+
Array
|
|
20
|
+
] },
|
|
21
|
+
onScroll: { type: Function }
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const delegatedProps = reactiveOmit(props, "class", "onScroll");
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createBlock(unref(ScrollAreaRoot), mergeProps({ "data-slot": "scroll-area" }, unref(delegatedProps), { class: ["relative overflow-hidden", props.class] }), {
|
|
28
|
+
default: withCtx(() => [
|
|
29
|
+
createVNode(unref(ScrollAreaViewport), {
|
|
30
|
+
"as-child": "",
|
|
31
|
+
"data-slot": "scroll-area-viewport",
|
|
32
|
+
class: "rounded-inherit size-full focus:outline-hidden",
|
|
33
|
+
onScroll: props.onScroll
|
|
34
|
+
}, {
|
|
35
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 8, ["onScroll"]),
|
|
38
|
+
createVNode(_sfc_main$1),
|
|
39
|
+
createVNode(unref(ScrollAreaCorner))
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
}, 16, ["class"]);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
import { ScrollAreaRootProps } from "akar";
|
|
3
|
+
//#region src/ui/scroll-area/scroll-area.vue.d.ts
|
|
4
|
+
type __VLS_Props = ScrollAreaRootProps & {
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
onScroll?: (event: Event) => void;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_16: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_16) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _default as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, unref, withCtx } from "vue";
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { ScrollAreaScrollbar, ScrollAreaThumb } from "akar";
|
|
4
|
+
//#region src/ui/scroll-area/scroll-bar.vue
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "scroll-bar",
|
|
7
|
+
props: {
|
|
8
|
+
orientation: { default: "vertical" },
|
|
9
|
+
forceMount: { type: Boolean },
|
|
10
|
+
asChild: { type: Boolean },
|
|
11
|
+
as: {},
|
|
12
|
+
class: { type: [
|
|
13
|
+
Boolean,
|
|
14
|
+
null,
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Array
|
|
18
|
+
] }
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(ScrollAreaScrollbar), mergeProps({ "data-slot": "scroll-area-scrollbar" }, unref(delegatedProps), { class: ["p-px flex select-none transition-colors touch-none", [{
|
|
25
|
+
"h-full w-2.5 border-l border-l-transparent": __props.orientation === "vertical",
|
|
26
|
+
"h-2.5 flex-col border-t border-t-transparent": __props.orientation === "horizontal"
|
|
27
|
+
}, props.class]] }), {
|
|
28
|
+
default: withCtx(() => [createVNode(unref(ScrollAreaThumb), {
|
|
29
|
+
"data-slot": "scroll-area-thumb",
|
|
30
|
+
class: "rounded-full bg-border flex-1 relative"
|
|
31
|
+
})]),
|
|
32
|
+
_: 1
|
|
33
|
+
}, 16, ["class"]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
import { ScrollAreaScrollbarProps } from "akar";
|
|
3
|
+
//#region src/ui/scroll-area/scroll-bar.vue.d.ts
|
|
4
|
+
type __VLS_Props = ScrollAreaScrollbarProps & {
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
orientation: "vertical" | "horizontal";
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { _default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _default from "./sheet-close.vue.js";
|
|
2
|
+
import _default$1 from "./sheet-content.vue.js";
|
|
3
|
+
import _default$2 from "./sheet-description.vue.js";
|
|
4
|
+
import _default$3 from "./sheet-footer.vue.js";
|
|
5
|
+
import _default$4 from "./sheet-header.vue.js";
|
|
6
|
+
import _default$5 from "./sheet-root.vue.js";
|
|
7
|
+
import _default$6 from "./sheet-title.vue.js";
|
|
8
|
+
export { _default as SheetClose, _default$1 as SheetContent, _default$2 as SheetDescription, _default$3 as SheetFooter, _default$4 as SheetHeader, _default$5 as SheetRoot, _default$6 as SheetTitle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./sheet-close.mjs";
|
|
2
|
+
import _sfc_main$1 from "./sheet-content.mjs";
|
|
3
|
+
import _sfc_main$2 from "./sheet-description.mjs";
|
|
4
|
+
import sheet_footer_default from "./sheet-footer.mjs";
|
|
5
|
+
import sheet_header_default from "./sheet-header.mjs";
|
|
6
|
+
import _sfc_main$3 from "./sheet-root.mjs";
|
|
7
|
+
import _sfc_main$4 from "./sheet-title.mjs";
|
|
8
|
+
export { _sfc_main as SheetClose, _sfc_main$1 as SheetContent, _sfc_main$2 as SheetDescription, sheet_footer_default as SheetFooter, sheet_header_default as SheetHeader, _sfc_main$3 as SheetRoot, _sfc_main$4 as SheetTitle };
|