prizm-ui-vue 2.2.6 → 2.2.8

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,8 +1,8 @@
1
- import { ElButton, type ButtonEmits } from 'element-plus';
1
+ import { ElButton } from 'element-plus';
2
2
  import 'element-plus/es/components/button/style/css';
3
3
  type ElementProps = InstanceType<typeof ElButton>['$props'];
4
- type PickedProps = Pick<ElementProps, 'disabled' | 'type' | 'size' | 'icon' | 'link' | 'plain' | 'dark' | 'plain'>;
5
- type Props = {
4
+ type PickedProps = Pick<ElementProps, 'disabled' | 'type' | 'size' | 'icon' | 'link' | 'plain' | 'dark' | 'plain' | 'onClick'>;
5
+ export type ButtonProps = {
6
6
  type?: PickedProps['type'];
7
7
  disabled?: boolean;
8
8
  size?: PickedProps['size'];
@@ -10,7 +10,7 @@ type Props = {
10
10
  link?: PickedProps['link'];
11
11
  plain?: PickedProps['plain'];
12
12
  dark?: PickedProps['dark'];
13
- onClick?: ButtonEmits['click'];
13
+ onClick?: PickedProps['onClick'];
14
14
  };
15
15
  type Slots = {
16
16
  default: unknown;
@@ -18,7 +18,7 @@ type Slots = {
18
18
  icon?: unknown;
19
19
  };
20
20
  type __VLS_Slots = Slots;
21
- declare const __VLS_component: import("vue").DefineComponent<Props, {
21
+ declare const __VLS_component: import("vue").DefineComponent<ButtonProps, {
22
22
  baseButtonRef: Readonly<import("vue").ShallowRef<({
23
23
  $: import("vue").ComponentInternalInstance;
24
24
  $data: {};
@@ -208,7 +208,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
208
208
  default?(_: {}): any;
209
209
  };
210
210
  }) | null>>;
211
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
211
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
212
212
  size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>;
213
213
  type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>;
214
214
  plain: boolean;
@@ -66,8 +66,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
66
66
  readonly top?: string | undefined;
67
67
  readonly closeIcon?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown> | undefined;
68
68
  readonly beforeClose?: import("element-plus").DialogBeforeCloseFn | undefined;
69
- readonly modalClass?: string | undefined;
70
69
  readonly headerClass?: string | undefined;
70
+ readonly modalClass?: string | undefined;
71
71
  readonly bodyClass?: string | undefined;
72
72
  readonly footerClass?: string | undefined;
73
73
  readonly zIndex?: number | undefined;
@@ -2,8 +2,10 @@ import { type DrawerProps } from 'element-plus';
2
2
  import 'element-plus/es/components/drawer/style/css';
3
3
  type Slots = {
4
4
  default?: unknown;
5
+ header?: unknown;
6
+ footer?: unknown;
5
7
  };
6
- type PickedProps = Pick<DrawerProps, 'closeIcon' | 'appendToBody' | 'center' | 'width' | 'withHeader' | 'showClose' | 'fullscreen' | 'beforeClose' | 'title' | 'size' | 'destroyOnClose' | 'draggable' | 'alignCenter' | 'lockScroll'>;
8
+ type PickedProps = Pick<DrawerProps, 'closeIcon' | 'appendToBody' | 'center' | 'width' | 'withHeader' | 'showClose' | 'fullscreen' | 'beforeClose' | 'title' | 'size' | 'destroyOnClose' | 'draggable' | 'alignCenter' | 'lockScroll' | 'headerClass'>;
7
9
  type Props = {
8
10
  closeIcon?: PickedProps['closeIcon'];
9
11
  appendToBody?: PickedProps['appendToBody'];
@@ -19,6 +21,13 @@ type Props = {
19
21
  draggable?: PickedProps['draggable'];
20
22
  alignCenter?: PickedProps['alignCenter'];
21
23
  lockScroll?: PickedProps['lockScroll'];
24
+ headerClass?: PickedProps['headerClass'];
25
+ defaultFooter?: boolean;
26
+ confirmButtonText?: string;
27
+ cancelButtonText?: string;
28
+ confirmDisabled?: boolean;
29
+ onConfirmButton?: () => unknown;
30
+ onCancelButton?: () => unknown;
22
31
  onOpen?: () => boolean;
23
32
  onOpened?: () => boolean;
24
33
  onClose?: () => boolean;
@@ -89,8 +98,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
89
98
  readonly top?: string | undefined;
90
99
  readonly closeIcon?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown> | undefined;
91
100
  readonly beforeClose?: import("element-plus").DialogBeforeCloseFn | undefined;
92
- readonly modalClass?: string | undefined;
93
101
  readonly headerClass?: string | undefined;
102
+ readonly modalClass?: string | undefined;
94
103
  readonly bodyClass?: string | undefined;
95
104
  readonly footerClass?: string | undefined;
96
105
  readonly zIndex?: number | undefined;
@@ -352,7 +361,19 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
352
361
  "update:modelValue": (value: boolean) => any;
353
362
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
354
363
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
355
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
364
+ }>, {
365
+ title: PickedProps["title"];
366
+ appendToBody: PickedProps["appendToBody"];
367
+ withHeader: PickedProps["withHeader"];
368
+ showClose: PickedProps["showClose"];
369
+ lockScroll: PickedProps["lockScroll"];
370
+ defaultFooter: boolean;
371
+ confirmButtonText: string;
372
+ cancelButtonText: string;
373
+ confirmDisabled: boolean;
374
+ onConfirmButton: () => unknown;
375
+ onCancelButton: () => unknown;
376
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
356
377
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
357
378
  export default _default;
358
379
  type __VLS_WithSlots<T, S> = T & {
@@ -4,13 +4,16 @@ type Slots = {
4
4
  default: unknown;
5
5
  };
6
6
  type ElTagProps = InstanceType<typeof ElTag>['$props'];
7
- type PickedProps = Pick<ElTagProps, 'type' | 'size' | 'effect' | 'round' | 'closable'>;
7
+ type PickedProps = Pick<ElTagProps, 'type' | 'size' | 'effect' | 'round' | 'closable' | 'onClick' | 'onClose' | 'color'>;
8
8
  type Props = {
9
9
  type?: PickedProps['type'];
10
10
  size?: PickedProps['size'];
11
11
  effect?: PickedProps['effect'];
12
12
  round?: PickedProps['round'];
13
13
  closable?: PickedProps['closable'];
14
+ color?: PickedProps['color'];
15
+ onClick?: PickedProps['onClick'];
16
+ onClose?: PickedProps['onClose'];
14
17
  };
15
18
  type __VLS_Slots = Slots;
16
19
  declare const __VLS_component: import("vue").DefineComponent<Props, {
@@ -127,13 +130,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
127
130
  default?(_: {}): any;
128
131
  };
129
132
  }) | null>>;
130
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
131
- click: () => any;
132
- close: () => any;
133
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
134
- onClick?: (() => any) | undefined;
135
- onClose?: (() => any) | undefined;
136
- }>, {
133
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
137
134
  size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>;
138
135
  type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>;
139
136
  effect: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "plain" | "dark" | "light", unknown>;