@profitliga/ui 1.2.0 → 1.2.2

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.
@@ -1,9 +1,11 @@
1
- import { DrawerContent } from '.';
1
+ import { Drawer } from '.';
2
2
  import { Meta, StoryObj } from '@storybook/vue3-vite';
3
- declare const meta: Meta<typeof DrawerContent>;
3
+ declare const meta: Meta<typeof Drawer>;
4
4
  export default meta;
5
- type Story = StoryObj<typeof DrawerContent>;
5
+ type Story = StoryObj<typeof Drawer>;
6
6
  export declare const Default: Story;
7
7
  export declare const LeftPosition: Story;
8
8
  export declare const BottomPosition: Story;
9
9
  export declare const TopPosition: Story;
10
+ export declare const WithLongContent: Story;
11
+ export declare const ProgrammaticOpen: Story;
@@ -0,0 +1,41 @@
1
+ import { IDrawerCloseProps } from './DrawerContent.vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ export interface DrawerProps {
4
+ position?: 'right' | 'left' | 'top' | 'bottom';
5
+ width?: number;
6
+ closeButton?: IDrawerCloseProps;
7
+ zIndex?: number;
8
+ }
9
+ type __VLS_Props = DrawerProps;
10
+ type __VLS_PublicProps = {
11
+ 'open'?: boolean;
12
+ } & __VLS_Props;
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ trigger?(_: {}): any;
17
+ trigger?(_: {}): any;
18
+ default?(_: {}): any;
19
+ default?(_: {}): any;
20
+ };
21
+ refs: {};
22
+ rootEl: any;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
26
+ "update:open": (value: boolean) => any;
27
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
29
+ }>, {
30
+ width: number;
31
+ closeButton: IDrawerCloseProps;
32
+ position: "right" | "left" | "top" | "bottom";
33
+ zIndex: number;
34
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -1,6 +1,8 @@
1
+ import { default as Drawer } from './Drawer.vue';
1
2
  import { default as DrawerContent } from './DrawerContent.vue';
2
3
  import { default as DrawerOverlay } from './DrawerOverlay.vue';
3
4
  import { default as DrawerPortal } from './DrawerPortal.vue';
4
5
  import { default as DrawerRoot } from './DrawerRoot.vue';
5
6
  import { default as DrawerTrigger } from './DrawerTrigger.vue';
6
- export { DrawerRoot, DrawerContent, DrawerOverlay, DrawerPortal, DrawerTrigger };
7
+ export type { DrawerProps } from './Drawer.vue';
8
+ export { Drawer, DrawerRoot, DrawerContent, DrawerOverlay, DrawerPortal, DrawerTrigger };