mhz-ui 1.1.22 → 1.1.24

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.
Files changed (45) hide show
  1. package/dist/UiBreadcrumbs/UiBreadcrumbs.d.ts +1 -1
  2. package/dist/UiBreadcrumbs/UiBreadcrumbs.stories.d.ts +6 -0
  3. package/dist/UiButton/UiButton.d.ts +10 -68
  4. package/dist/UiButton/UiButton.stories.d.ts +7 -0
  5. package/dist/UiCalendar/UiCalendar.d.ts +1 -1
  6. package/dist/UiCalendar/UiCalendar.stories.d.ts +6 -0
  7. package/dist/UiChart/UiChart.d.ts +1 -1
  8. package/dist/UiChart/UiChart.stories.d.ts +6 -0
  9. package/dist/UiCheckbox/UiCheckbox.d.ts +3 -1
  10. package/dist/UiCheckbox/UiCheckbox.stories.d.ts +6 -0
  11. package/dist/UiChip/UiChip.d.ts +10 -54
  12. package/dist/UiChip/UiChip.stories.d.ts +6 -0
  13. package/dist/UiClose/UiClose.d.ts +1 -1
  14. package/dist/UiClose/UiClose.stories.d.ts +6 -0
  15. package/dist/UiEditor/UiEditor.d.ts +1 -1
  16. package/dist/UiEditor/UiEditor.js +477 -473
  17. package/dist/UiEditor/UiEditor.stories.d.ts +6 -0
  18. package/dist/UiField/UiField.d.ts +10 -58
  19. package/dist/UiField/UiField.stories.d.ts +6 -0
  20. package/dist/UiFlex/UiFlex.d.ts +9 -95
  21. package/dist/UiFlex/UiFlex.stories.d.ts +6 -0
  22. package/dist/UiInput/UiInput.d.ts +3 -1
  23. package/dist/UiInput/UiInput.stories.d.ts +6 -0
  24. package/dist/UiModal/UiModal.d.ts +9 -98
  25. package/dist/UiModal/UiModal.stories.d.ts +6 -0
  26. package/dist/UiPagination/UiPagination.d.ts +1 -1
  27. package/dist/UiPagination/UiPagination.stories.d.ts +6 -0
  28. package/dist/UiRange/UiRange.d.ts +1 -1
  29. package/dist/UiRange/UiRange.stories.d.ts +6 -0
  30. package/dist/UiSearch/UiSearch.d.ts +3 -1
  31. package/dist/UiSearch/UiSearch.stories.d.ts +6 -0
  32. package/dist/UiSelect/UiSelect.d.ts +8 -3
  33. package/dist/UiSelect/UiSelect.js +21 -21
  34. package/dist/UiSelect/UiSelect.stories.d.ts +7 -0
  35. package/dist/UiSlider/UiSlider.d.ts +1 -1
  36. package/dist/UiSlider/UiSlider.stories.d.ts +6 -0
  37. package/dist/UiSpoiler/UiSpoiler.d.ts +10 -77
  38. package/dist/UiSpoiler/UiSpoiler.stories.d.ts +6 -0
  39. package/dist/UiTable/UiTable.d.ts +15 -95
  40. package/dist/UiTable/UiTable.stories.d.ts +6 -0
  41. package/dist/UiUpload/UiUpload.d.ts +3 -1
  42. package/dist/UiUpload/UiUpload.stories.d.ts +7 -0
  43. package/dist/toast/ToastStory.d.ts +1 -1
  44. package/dist/toast/toast.stories.d.ts +2 -12
  45. package/package.json +21 -21
@@ -8,5 +8,5 @@ interface IProps {
8
8
  }
9
9
  declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
10
10
  color: "white" | "default";
11
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
12
  export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { UiBreadcrumbs } from '..';
3
+ declare const meta: Meta<typeof UiBreadcrumbs>;
4
+ type Story = StoryObj<typeof UiBreadcrumbs>;
5
+ export default meta;
6
+ export declare const Primary: Story;
@@ -8,81 +8,23 @@ interface IProps {
8
8
  isWrap?: boolean;
9
9
  icon?: FunctionalComponent;
10
10
  }
11
- declare const __VLS_ctx: {
12
- $style: Record<string, string> & __VLS_PrettifyGlobal<{} & {
13
- "button": string;
14
- }>;
15
- $: import('vue').ComponentInternalInstance;
16
- $data: {};
17
- $props: {
18
- readonly layout?: "primary" | "secondary" | "plain" | "accent" | "gradient" | undefined;
19
- readonly type?: "submit" | "button" | undefined;
20
- readonly isDisabled?: boolean | undefined;
21
- readonly isNarrow?: boolean | undefined;
22
- readonly isTall?: boolean | undefined;
23
- readonly isWrap?: boolean | undefined;
24
- readonly icon?: FunctionalComponent | undefined;
25
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
26
- $attrs: {
27
- [x: string]: unknown;
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
28
15
  };
29
- $refs: {
30
- [x: string]: unknown;
31
- };
32
- $slots: Readonly<{
33
- [name: string]: import('vue').Slot<any> | undefined;
34
- }>;
35
- $root: import('vue').ComponentPublicInstance | null;
36
- $parent: import('vue').ComponentPublicInstance | null;
37
- $host: Element | null;
38
- $emit: (event: string, ...args: any[]) => void;
39
- $el: any;
40
- $options: import('vue').ComponentOptionsBase<Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
41
- type: "submit" | "button";
42
- layout: "primary" | "secondary" | "plain" | "accent" | "gradient";
43
- icon: FunctionalComponent;
44
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
45
- beforeCreate?: (() => void) | (() => void)[];
46
- created?: (() => void) | (() => void)[];
47
- beforeMount?: (() => void) | (() => void)[];
48
- mounted?: (() => void) | (() => void)[];
49
- beforeUpdate?: (() => void) | (() => void)[];
50
- updated?: (() => void) | (() => void)[];
51
- activated?: (() => void) | (() => void)[];
52
- deactivated?: (() => void) | (() => void)[];
53
- beforeDestroy?: (() => void) | (() => void)[];
54
- beforeUnmount?: (() => void) | (() => void)[];
55
- destroyed?: (() => void) | (() => void)[];
56
- unmounted?: (() => void) | (() => void)[];
57
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
58
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
59
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
60
- };
61
- $forceUpdate: () => void;
62
- $nextTick: typeof import('vue').nextTick;
63
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
64
- type: "submit" | "button";
65
- layout: "primary" | "secondary" | "plain" | "accent" | "gradient";
66
- icon: FunctionalComponent;
67
- isDisabled?: boolean;
68
- isNarrow?: boolean;
69
- isTall?: boolean;
70
- isWrap?: boolean;
71
- $route: import('vue-router').TypesConfig extends Record<"$route", infer T> ? T : import('vue-router').RouteLocationNormalizedLoaded;
72
- $router: import('vue-router').TypesConfig extends Record<"$router", infer T> ? T : import('vue-router').Router;
16
+ refs: {};
17
+ rootEl: HTMLButtonElement;
73
18
  };
74
- declare var __VLS_5: {};
75
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
76
- default?: (props: typeof __VLS_5) => any;
77
- }>;
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
78
20
  declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
79
21
  type: "submit" | "button";
80
22
  layout: "primary" | "secondary" | "plain" | "accent" | "gradient";
81
23
  icon: FunctionalComponent;
82
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
83
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
84
26
  export default _default;
85
- type __VLS_WithSlots<T, S> = T & {
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
86
28
  new (): {
87
29
  $slots: S;
88
30
  };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { UiButton } from '..';
3
+ declare const meta: Meta<typeof UiButton>;
4
+ type Story = StoryObj<typeof UiButton>;
5
+ export default meta;
6
+ export declare const Primary: Story;
7
+ export declare const Icon: Story;
@@ -14,5 +14,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
14
14
  onUpdate?: ((dates: ICalendarUpdate) => any) | undefined;
15
15
  onEventClick?: ((event: ICalendarEvent<unknown>) => any) | undefined;
16
16
  onChooseDate?: ((date: Date) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
18
  export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { UiCalendar } from '..';
3
+ declare const meta: Meta<typeof UiCalendar>;
4
+ type Story = StoryObj<typeof UiCalendar>;
5
+ export default meta;
6
+ export declare const Primary: Story;
@@ -14,5 +14,5 @@ interface IProps {
14
14
  declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
15
15
  title: string;
16
16
  type: "Bar" | "Pie" | "Line";
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
18
  export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { UiChart } from '..';
3
+ declare const meta: Meta<typeof UiChart>;
4
+ type Story = StoryObj<typeof UiChart>;
5
+ export default meta;
6
+ export declare const Primary: Story;
@@ -21,5 +21,7 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
21
21
  modelValue: TInitialValue;
22
22
  labelSub: string;
23
23
  labelSwitcher: string;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
+ checkbox: HTMLInputElement;
26
+ }, HTMLLabelElement>;
25
27
  export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { UiCheckbox } from '..';
3
+ declare const meta: Meta<typeof UiCheckbox>;
4
+ type Story = StoryObj<typeof UiCheckbox>;
5
+ export default meta;
6
+ export declare const Primary: Story;
@@ -1,65 +1,21 @@
1
1
  interface IProps {
2
2
  type?: 'default' | 'success' | 'error';
3
3
  }
4
- declare const __VLS_ctx: {
5
- $style: Record<string, string> & __VLS_PrettifyGlobal<{} & {
6
- "chip": string;
7
- }>;
8
- $: import('vue').ComponentInternalInstance;
9
- $data: {};
10
- $props: {
11
- readonly type?: "default" | "success" | "error" | undefined;
12
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
13
- $attrs: {
14
- [x: string]: unknown;
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
15
8
  };
16
- $refs: {
17
- [x: string]: unknown;
18
- };
19
- $slots: Readonly<{
20
- [name: string]: import('vue').Slot<any> | undefined;
21
- }>;
22
- $root: import('vue').ComponentPublicInstance | null;
23
- $parent: import('vue').ComponentPublicInstance | null;
24
- $host: Element | null;
25
- $emit: (event: string, ...args: any[]) => void;
26
- $el: any;
27
- $options: import('vue').ComponentOptionsBase<Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
28
- type: "default" | "success" | "error";
29
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
30
- beforeCreate?: (() => void) | (() => void)[];
31
- created?: (() => void) | (() => void)[];
32
- beforeMount?: (() => void) | (() => void)[];
33
- mounted?: (() => void) | (() => void)[];
34
- beforeUpdate?: (() => void) | (() => void)[];
35
- updated?: (() => void) | (() => void)[];
36
- activated?: (() => void) | (() => void)[];
37
- deactivated?: (() => void) | (() => void)[];
38
- beforeDestroy?: (() => void) | (() => void)[];
39
- beforeUnmount?: (() => void) | (() => void)[];
40
- destroyed?: (() => void) | (() => void)[];
41
- unmounted?: (() => void) | (() => void)[];
42
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
43
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
44
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
45
- };
46
- $forceUpdate: () => void;
47
- $nextTick: typeof import('vue').nextTick;
48
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
49
- type: "default" | "success" | "error";
50
- $route: import('vue-router').TypesConfig extends Record<"$route", infer T> ? T : import('vue-router').RouteLocationNormalizedLoaded;
51
- $router: import('vue-router').TypesConfig extends Record<"$router", infer T> ? T : import('vue-router').Router;
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
52
11
  };
53
- declare var __VLS_1: {};
54
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
55
- default?: (props: typeof __VLS_1) => any;
56
- }>;
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
57
13
  declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
58
14
  type: "default" | "success" | "error";
59
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
60
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
61
17
  export default _default;
62
- type __VLS_WithSlots<T, S> = T & {
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
63
19
  new (): {
64
20
  $slots: S;
65
21
  };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { UiChip } from '..';
3
+ declare const meta: Meta<typeof UiChip>;
4
+ type Story = StoryObj<typeof UiChip>;
5
+ export default meta;
6
+ export declare const Primary: Story;
@@ -2,5 +2,5 @@ interface IProps {
2
2
  isSmall?: boolean;
3
3
  isDelete?: boolean;
4
4
  }
5
- declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
6
6
  export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { UiClose } from '..';
3
+ declare const meta: Meta<typeof UiClose>;
4
+ type Story = StoryObj<typeof UiClose>;
5
+ export default meta;
6
+ export declare const Primary: Story;
@@ -5,5 +5,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
5
5
  "update:modelValue": (value?: string | undefined) => any;
6
6
  }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
7
7
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
9
9
  export default _default;