@rebilly/revel 6.30.31 → 6.30.32

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/CHANGELOG.md CHANGED
@@ -1,6 +1 @@
1
- ## [6.30.31](https://github.com/Rebilly/rebilly/compare/revel-v6.30.30...revel-v6.30.31) (2024-07-23)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **revel, recomm:** Update style class name ([#6725](https://github.com/Rebilly/rebilly/issues/6725)) ([04010e4](https://github.com/Rebilly/rebilly/commit/04010e45fab803332608951b3fe098466b200f51))
1
+ ## [6.30.32](https://github.com/Rebilly/rebilly/compare/revel-v6.30.31...revel-v6.30.32) (2024-07-23)
@@ -1,140 +1,85 @@
1
- import { type PropType, type Component } from 'vue';
2
- interface State {
3
- isVisible: boolean;
4
- timerHandle: Nullable<ReturnType<typeof setTimeout>>;
5
- parent: Nullable<HTMLElement>;
6
- }
7
- declare const _default: import("vue").DefineComponent<{
1
+ type ToastType = 'positive' | 'negative' | 'warning' | 'info';
2
+ interface Props {
8
3
  /**
9
4
  * Specify toast type according to your theme colors
10
5
  */
11
- type: {
12
- type: StringConstructor;
13
- default: string;
14
- };
6
+ type?: ToastType;
15
7
  /**
16
8
  * Change the toast title
17
9
  */
18
- title: {
19
- type: StringConstructor;
20
- default: string;
21
- };
10
+ title?: string;
22
11
  /**
23
12
  * Change the toast message
24
13
  */
25
- message: {
26
- type: (StringConstructor | FunctionConstructor)[];
27
- default: string;
28
- };
14
+ message?: string | (() => unknown);
29
15
  /**
30
16
  * Specify if the user is allowed to close the toast
31
17
  */
32
- allowClose: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
18
+ allowClose?: boolean;
36
19
  /**
37
20
  * Specify is the toast visible
38
21
  */
39
- visible: {
40
- type: BooleanConstructor;
41
- default: boolean;
42
- };
22
+ visible?: boolean;
43
23
  /**
44
24
  * Specify does the toast hide
45
25
  */
46
- autoHide: {
47
- type: BooleanConstructor;
48
- default: boolean;
49
- };
26
+ autoHide?: boolean;
50
27
  /**
51
28
  * Specify a hide delay time, ms
52
29
  */
53
- hideDelay: {
54
- type: NumberConstructor;
55
- default: number;
56
- };
57
- container: {
58
- type: PropType<Nullable<HTMLElement>>;
59
- default: null;
60
- };
61
- }, unknown, State, {
62
- classes(): {
63
- [x: string]: boolean;
64
- 'is-closable': boolean;
65
- 'is-visible': boolean;
66
- };
67
- markup(): Component | null;
68
- }, {
69
- setupContainer(): void;
70
- setupAutoHide(): void;
71
- disableAutoHide(): void;
72
- show(): void;
73
- hide(): void;
74
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "hide"[], "hide", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
75
- /**
76
- * Specify toast type according to your theme colors
77
- */
78
- type: {
79
- type: StringConstructor;
80
- default: string;
81
- };
82
- /**
83
- * Change the toast title
84
- */
85
- title: {
86
- type: StringConstructor;
87
- default: string;
88
- };
89
- /**
90
- * Change the toast message
91
- */
92
- message: {
93
- type: (StringConstructor | FunctionConstructor)[];
94
- default: string;
95
- };
96
- /**
97
- * Specify if the user is allowed to close the toast
98
- */
99
- allowClose: {
100
- type: BooleanConstructor;
101
- default: boolean;
102
- };
30
+ hideDelay?: number;
103
31
  /**
104
- * Specify is the toast visible
32
+ * Pass HTML element to append the toast to
105
33
  */
106
- visible: {
107
- type: BooleanConstructor;
108
- default: boolean;
109
- };
110
- /**
111
- * Specify does the toast hide
112
- */
113
- autoHide: {
114
- type: BooleanConstructor;
115
- default: boolean;
116
- };
117
- /**
118
- * Specify a hide delay time, ms
119
- */
120
- hideDelay: {
121
- type: NumberConstructor;
122
- default: number;
123
- };
124
- container: {
125
- type: PropType<Nullable<HTMLElement>>;
126
- default: null;
127
- };
128
- }>> & {
34
+ container?: Nullable<HTMLElement>;
35
+ }
36
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
37
+ type: string;
38
+ title: string;
39
+ message: string;
40
+ allowClose: boolean;
41
+ visible: boolean;
42
+ autoHide: boolean;
43
+ hideDelay: number;
44
+ container: null;
45
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
+ hide: (...args: any[]) => void;
47
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
48
+ type: string;
49
+ title: string;
50
+ message: string;
51
+ allowClose: boolean;
52
+ visible: boolean;
53
+ autoHide: boolean;
54
+ hideDelay: number;
55
+ container: null;
56
+ }>>> & {
129
57
  onHide?: ((...args: any[]) => any) | undefined;
130
58
  }, {
131
59
  title: string;
132
- type: string;
60
+ type: ToastType;
133
61
  autoHide: boolean;
134
62
  hideDelay: number;
135
63
  visible: boolean;
136
- message: string | Function;
64
+ message: string | (() => unknown);
137
65
  allowClose: boolean;
138
66
  container: Nullable<HTMLElement>;
139
67
  }>;
140
68
  export default _default;
69
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
+ type __VLS_TypePropsToRuntimeProps<T> = {
71
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
72
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
73
+ } : {
74
+ type: import('vue').PropType<T[K]>;
75
+ required: true;
76
+ };
77
+ };
78
+ type __VLS_WithDefaults<P, D> = {
79
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
80
+ default: D[K];
81
+ }> : P[K];
82
+ };
83
+ type __VLS_Prettify<T> = {
84
+ [K in keyof T]: T[K];
85
+ } & {};