@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,21 @@
|
|
|
1
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DialogClose } from "akar";
|
|
3
|
+
//#region src/ui/sheet/sheet-close.vue
|
|
4
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "sheet-close",
|
|
6
|
+
props: {
|
|
7
|
+
asChild: { type: Boolean },
|
|
8
|
+
as: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(unref(DialogClose), mergeProps({ "data-slot": "sheet-close" }, props), {
|
|
14
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
15
|
+
_: 3
|
|
16
|
+
}, 16);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DialogCloseProps } from "akar";
|
|
2
|
+
//#region src/ui/sheet/sheet-close.vue.d.ts
|
|
3
|
+
declare var __VLS_8: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_8) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogCloseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogCloseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { _default as default };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { useDialogStateEvents } from "../dialog/use-dialog-state-events.mjs";
|
|
2
|
+
import _sfc_main$1 from "./sheet-overlay.mjs";
|
|
3
|
+
import { sheetVariants } from "./sheet.variants.mjs";
|
|
4
|
+
import { Transition, computed, createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import { DialogContent, DialogPortal, useForwardPropsEmits } from "akar";
|
|
6
|
+
//#region src/ui/sheet/sheet-content.vue
|
|
7
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "sheet-content",
|
|
10
|
+
props: {
|
|
11
|
+
forceMount: { type: Boolean },
|
|
12
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: {},
|
|
15
|
+
appendTo: { default: "body" },
|
|
16
|
+
class: {},
|
|
17
|
+
modal: { type: Boolean },
|
|
18
|
+
open: { type: Boolean },
|
|
19
|
+
overlayBlur: {},
|
|
20
|
+
side: {},
|
|
21
|
+
zIndex: {}
|
|
22
|
+
},
|
|
23
|
+
emits: [
|
|
24
|
+
"escapeKeyDown",
|
|
25
|
+
"pointerDownOutside",
|
|
26
|
+
"focusOutside",
|
|
27
|
+
"interactOutside",
|
|
28
|
+
"openAutoFocus",
|
|
29
|
+
"closeAutoFocus",
|
|
30
|
+
"close",
|
|
31
|
+
"closed",
|
|
32
|
+
"opened"
|
|
33
|
+
],
|
|
34
|
+
setup(__props, { emit: __emit }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const emits = __emit;
|
|
37
|
+
const delegatedProps = computed(() => {
|
|
38
|
+
const { class: _, modal: _modal, open: _open, side: _side, ...delegated } = props;
|
|
39
|
+
return delegated;
|
|
40
|
+
});
|
|
41
|
+
function isAppendToBody() {
|
|
42
|
+
return props.appendTo === "body" || props.appendTo === document.body || !props.appendTo;
|
|
43
|
+
}
|
|
44
|
+
const position = computed(() => {
|
|
45
|
+
return isAppendToBody() ? "fixed" : "absolute";
|
|
46
|
+
});
|
|
47
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
48
|
+
const contentRef = ref(null);
|
|
49
|
+
const { handleAnimationEvent } = useDialogStateEvents({
|
|
50
|
+
contentRef,
|
|
51
|
+
isOpen: () => props.open,
|
|
52
|
+
onClosed: () => emits("closed"),
|
|
53
|
+
onOpened: () => emits("opened")
|
|
54
|
+
});
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return openBlock(), createBlock(unref(DialogPortal), { to: __props.appendTo }, {
|
|
57
|
+
default: withCtx(() => [createVNode(Transition, {
|
|
58
|
+
"enter-active-class": "transition-opacity-300",
|
|
59
|
+
"leave-active-class": "transition-opacity-300",
|
|
60
|
+
"enter-from-class": "opacity-0",
|
|
61
|
+
"leave-to-class": "opacity-0"
|
|
62
|
+
}, {
|
|
63
|
+
default: withCtx(() => [__props.open && __props.modal ? (openBlock(), createBlock(_sfc_main$1, {
|
|
64
|
+
key: 0,
|
|
65
|
+
"overlay-blur": __props.overlayBlur,
|
|
66
|
+
position: position.value,
|
|
67
|
+
"z-index": __props.zIndex,
|
|
68
|
+
onClick: _cache[0] || (_cache[0] = () => emits("close"))
|
|
69
|
+
}, null, 8, [
|
|
70
|
+
"overlay-blur",
|
|
71
|
+
"position",
|
|
72
|
+
"z-index"
|
|
73
|
+
])) : createCommentVNode("v-if", true)]),
|
|
74
|
+
_: 1
|
|
75
|
+
}), createVNode(unref(DialogContent), mergeProps({
|
|
76
|
+
ref_key: "contentRef",
|
|
77
|
+
ref: contentRef,
|
|
78
|
+
style: {
|
|
79
|
+
...__props.zIndex ? { zIndex: __props.zIndex } : {},
|
|
80
|
+
position: position.value
|
|
81
|
+
},
|
|
82
|
+
"data-slot": "sheet-content",
|
|
83
|
+
class: ["border-border bg-background shadow-lg transition ease-in-out z-popup data-[state=closed]:(animate-out animate-duration-300) data-[state=open]:(animate-in animate-duration-500)", [unref(sheetVariants)({ side: __props.side }), props.class]]
|
|
84
|
+
}, {
|
|
85
|
+
...unref(forwarded),
|
|
86
|
+
..._ctx.$attrs
|
|
87
|
+
}, {
|
|
88
|
+
onAnimationend: unref(handleAnimationEvent),
|
|
89
|
+
onAnimationcancel: unref(handleAnimationEvent)
|
|
90
|
+
}), {
|
|
91
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 16, [
|
|
94
|
+
"style",
|
|
95
|
+
"class",
|
|
96
|
+
"onAnimationend",
|
|
97
|
+
"onAnimationcancel"
|
|
98
|
+
])]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 8, ["to"]);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
//#endregion
|
|
105
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { SheetVariants } from "./sheet.variants.js";
|
|
2
|
+
import { DialogContentProps } from "akar";
|
|
3
|
+
//#region src/ui/sheet/sheet-content.vue.d.ts
|
|
4
|
+
type __VLS_Props = DialogContentProps & {
|
|
5
|
+
appendTo?: HTMLElement | string;
|
|
6
|
+
class?: any;
|
|
7
|
+
modal?: boolean;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
overlayBlur?: number;
|
|
10
|
+
side?: SheetVariants['side'];
|
|
11
|
+
zIndex?: number;
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_32: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_32) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
close: () => any;
|
|
19
|
+
openAutoFocus: (event: Event) => any;
|
|
20
|
+
closed: () => any;
|
|
21
|
+
opened: () => any;
|
|
22
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
23
|
+
pointerDownOutside: (event: import("akar").PointerDownOutsideEvent) => any;
|
|
24
|
+
focusOutside: (event: import("akar").FocusOutsideEvent) => any;
|
|
25
|
+
interactOutside: (event: import("akar").PointerDownOutsideEvent | import("akar").FocusOutsideEvent) => any;
|
|
26
|
+
closeAutoFocus: (event: Event) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onClose?: (() => any) | undefined;
|
|
29
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
30
|
+
onClosed?: (() => any) | undefined;
|
|
31
|
+
onOpened?: (() => any) | undefined;
|
|
32
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
33
|
+
onPointerDownOutside?: ((event: import("akar").PointerDownOutsideEvent) => any) | undefined;
|
|
34
|
+
onFocusOutside?: ((event: import("akar").FocusOutsideEvent) => any) | undefined;
|
|
35
|
+
onInteractOutside?: ((event: import("akar").PointerDownOutsideEvent | import("akar").FocusOutsideEvent) => any) | undefined;
|
|
36
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
appendTo: HTMLElement | string;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
export { _default as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { DialogDescription } from "akar";
|
|
4
|
+
//#region src/ui/sheet/sheet-description.vue
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "sheet-description",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {},
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(unref(DialogDescription), mergeProps({ "data-slot": "sheet-description" }, unref(delegatedProps), { class: ["text-sm color-text-muted", props.class] }), {
|
|
23
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 16, ["class"]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes } from "vue";
|
|
2
|
+
import { DialogDescriptionProps } from "akar";
|
|
3
|
+
//#region src/ui/sheet/sheet-description.vue.d.ts
|
|
4
|
+
type __VLS_Props = DialogDescriptionProps & {
|
|
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,14 @@
|
|
|
1
|
+
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.mjs";
|
|
2
|
+
import { createElementBlock, openBlock, renderSlot } from "vue";
|
|
3
|
+
//#region src/ui/sheet/sheet-footer.vue
|
|
4
|
+
const _sfc_main = {};
|
|
5
|
+
const _hoisted_1 = {
|
|
6
|
+
"data-slot": "sheet-footer",
|
|
7
|
+
class: "flex flex-row gap-x-2 justify-end"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]);
|
|
11
|
+
}
|
|
12
|
+
var sheet_footer_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
//#endregion
|
|
14
|
+
export { sheet_footer_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/ui/sheet/sheet-footer.vue.d.ts
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.mjs";
|
|
2
|
+
import { createElementBlock, openBlock, renderSlot } from "vue";
|
|
3
|
+
//#region src/ui/sheet/sheet-header.vue
|
|
4
|
+
const _sfc_main = {};
|
|
5
|
+
const _hoisted_1 = {
|
|
6
|
+
"data-slot": "sheet-header",
|
|
7
|
+
class: "px-4 py-3 flex gap-1.5"
|
|
8
|
+
};
|
|
9
|
+
function _sfc_render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]);
|
|
11
|
+
}
|
|
12
|
+
var sheet_header_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
13
|
+
//#endregion
|
|
14
|
+
export { sheet_header_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/ui/sheet/sheet-header.vue.d.ts
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _default as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createElementBlock, defineComponent, inject, normalizeStyle, openBlock, unref } from "vue";
|
|
2
|
+
import { useScrollLock } from "@vinicunca/taman-core/composables";
|
|
3
|
+
import { DISMISSABLE_DRAWER_ID } from "@vinicunca/taman-core/constants";
|
|
4
|
+
//#region src/ui/sheet/sheet-overlay.vue
|
|
5
|
+
const _hoisted_1 = ["data-dismissable-drawer"];
|
|
6
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
|
+
__name: "sheet-overlay",
|
|
8
|
+
props: {
|
|
9
|
+
class: {},
|
|
10
|
+
overlayBlur: {},
|
|
11
|
+
position: { default: "fixed" },
|
|
12
|
+
zIndex: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
useScrollLock();
|
|
17
|
+
const dismissableDrawerId = inject(DISMISSABLE_DRAWER_ID, void 0);
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", {
|
|
20
|
+
"data-dismissable-drawer": unref(dismissableDrawerId),
|
|
21
|
+
style: normalizeStyle({
|
|
22
|
+
...__props.zIndex ? { zIndex: __props.zIndex } : {},
|
|
23
|
+
position: props.position,
|
|
24
|
+
backdropFilter: props.overlayBlur && props.overlayBlur > 0 ? `blur(${props.overlayBlur}px)` : "none"
|
|
25
|
+
}),
|
|
26
|
+
class: "bg-background-elevated/75 inset-0 fixed z-popup isolate"
|
|
27
|
+
}, null, 12, _hoisted_1);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DialogRoot, useForwardPropsEmits } from "akar";
|
|
3
|
+
//#region src/ui/sheet/sheet-root.vue
|
|
4
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "sheet-root",
|
|
6
|
+
props: {
|
|
7
|
+
open: { type: Boolean },
|
|
8
|
+
defaultOpen: { type: Boolean },
|
|
9
|
+
modal: { type: Boolean },
|
|
10
|
+
unmountOnHide: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:open"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createBlock(unref(DialogRoot), mergeProps({ "data-slot": "sheet" }, unref(forwarded)), {
|
|
17
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
18
|
+
_: 3
|
|
19
|
+
}, 16);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DialogRootProps } from "akar";
|
|
2
|
+
//#region src/ui/sheet/sheet-root.vue.d.ts
|
|
3
|
+
declare var __VLS_8: {
|
|
4
|
+
open: boolean;
|
|
5
|
+
close: () => void;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<DialogRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:open": (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<DialogRootProps> & Readonly<{
|
|
13
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { _default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { DialogTitle, useForwardProps } from "akar";
|
|
4
|
+
//#region src/ui/sheet/sheet-title.vue
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "sheet-title",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {},
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
21
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(DialogTitle), mergeProps({ "data-slot": "dialog-title" }, unref(forwardedProps), { class: ["text-lg font-600", 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 { DialogTitleProps } from "akar";
|
|
3
|
+
//#region src/ui/sheet/sheet-title.vue.d.ts
|
|
4
|
+
type __VLS_Props = DialogTitleProps & {
|
|
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,27 @@
|
|
|
1
|
+
import { VariantProps } from "unocss-variants";
|
|
2
|
+
//#region src/ui/sheet/sheet.variants.d.ts
|
|
3
|
+
declare const sheetVariants: import("unocss-variants").UvReturnType<{
|
|
4
|
+
side: {
|
|
5
|
+
top: string;
|
|
6
|
+
right: string;
|
|
7
|
+
bottom: string;
|
|
8
|
+
left: string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, undefined, {
|
|
11
|
+
side: {
|
|
12
|
+
top: string;
|
|
13
|
+
right: string;
|
|
14
|
+
bottom: string;
|
|
15
|
+
left: string;
|
|
16
|
+
};
|
|
17
|
+
}, undefined, import("unocss-variants").UvReturnType<{
|
|
18
|
+
side: {
|
|
19
|
+
top: string;
|
|
20
|
+
right: string;
|
|
21
|
+
bottom: string;
|
|
22
|
+
left: string;
|
|
23
|
+
};
|
|
24
|
+
}, undefined, undefined, unknown, unknown, undefined>>;
|
|
25
|
+
type SheetVariants = VariantProps<typeof sheetVariants>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SheetVariants, sheetVariants };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createUv } from "unocss-variants";
|
|
2
|
+
const sheetVariants = createUv()({
|
|
3
|
+
variants: { side: {
|
|
4
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
5
|
+
right: "inset-y-0 right-0 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",
|
|
6
|
+
bottom: "inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
7
|
+
left: "inset-y-0 left-0 h-full border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left"
|
|
8
|
+
} },
|
|
9
|
+
defaultVariants: { side: "right" }
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { sheetVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/unocss/content.ts
|
|
2
|
+
/**
|
|
3
|
+
* Matches taman-ui's compiled components in `node_modules`. UnoCSS only
|
|
4
|
+
* extracts classes from `.vue`-style files by default, so add this to
|
|
5
|
+
* `content.pipeline.include` or the components' own classes are not generated.
|
|
6
|
+
*/
|
|
7
|
+
const TAMAN_UI_CONTENT = /@vinicunca[\\/]taman-ui[\\/]dist[\\/].*\.mjs$/;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { TAMAN_UI_CONTENT };
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vinicunca/taman-ui",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Unstyled Taman Vue components on pohon-ui: base components, popups, layout, menu, tabs and forms.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/vinicunca/taman.git",
|
|
10
|
+
"directory": "packages/taman-ui"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.mjs"
|
|
19
|
+
},
|
|
20
|
+
"./popup": {
|
|
21
|
+
"types": "./dist/popup/index.d.ts",
|
|
22
|
+
"default": "./dist/popup/index.mjs"
|
|
23
|
+
},
|
|
24
|
+
"./layout": {
|
|
25
|
+
"types": "./dist/layout/index.d.ts",
|
|
26
|
+
"default": "./dist/layout/index.mjs"
|
|
27
|
+
},
|
|
28
|
+
"./menu": {
|
|
29
|
+
"types": "./dist/menu/index.d.ts",
|
|
30
|
+
"default": "./dist/menu/index.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./tabs": {
|
|
33
|
+
"types": "./dist/tabs/index.d.ts",
|
|
34
|
+
"default": "./dist/tabs/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./form": {
|
|
37
|
+
"types": "./dist/form/index.d.ts",
|
|
38
|
+
"default": "./dist/form/index.mjs"
|
|
39
|
+
},
|
|
40
|
+
"./unocss": {
|
|
41
|
+
"types": "./dist/unocss/index.d.ts",
|
|
42
|
+
"default": "./dist/unocss/index.mjs"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@internationalized/date": "^3.0.0",
|
|
50
|
+
"@internationalized/number": "^3.0.0",
|
|
51
|
+
"pohon-ui": "^2.0.0-rc7.9",
|
|
52
|
+
"vue": "^3.5.0"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@tanstack/store": "^0.11.1",
|
|
56
|
+
"@tanstack/vue-form": "^1.33.5",
|
|
57
|
+
"@vinicunca/taman-core": "^0.1.0",
|
|
58
|
+
"@vueuse/core": "^15.0.0",
|
|
59
|
+
"akar": "2.0.18",
|
|
60
|
+
"qs": "^6.16.0",
|
|
61
|
+
"unocss-variants": "1.5.0",
|
|
62
|
+
"zod": "4.6.5",
|
|
63
|
+
"zod-defaults": "0.2.3"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@internationalized/date": "^3.12.4",
|
|
67
|
+
"@internationalized/number": "^3.6.8",
|
|
68
|
+
"@types/qs": "^6.15.1",
|
|
69
|
+
"@vue/test-utils": "^2.5.1",
|
|
70
|
+
"pohon-ui": "2.0.0-rc7.9",
|
|
71
|
+
"unplugin-vue": "^8.0.0",
|
|
72
|
+
"vue": "^3.5.43"
|
|
73
|
+
},
|
|
74
|
+
"scripts": {
|
|
75
|
+
"build": "tsdown",
|
|
76
|
+
"stub": "pnpm build"
|
|
77
|
+
}
|
|
78
|
+
}
|