@cypress-design/vue-alert 0.1.1 → 0.2.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.
@@ -1,4 +1,4 @@
1
- import type { AlertType } from '../constants';
1
+ import { AlertSize, AlertType } from '../constants';
2
2
  declare const _default: {
3
3
  new (...args: any[]): {
4
4
  $: import("vue").ComponentInternalInstance;
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  $props: Partial<{
7
7
  type: AlertType;
8
8
  detailsTitle: string;
9
+ size: AlertSize;
9
10
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
11
  /**
11
12
  * Color scheme
@@ -31,12 +32,17 @@ declare const _default: {
31
32
  * Dismiss the alert after a delay (in ms)
32
33
  */
33
34
  duration?: number | undefined;
35
+ /**
36
+ * Size of the alert
37
+ */
38
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
34
39
  }>, {
35
- type: string;
40
+ type: AlertType;
36
41
  detailsTitle: string;
42
+ size: "xs" | "sm" | "md" | "lg";
37
43
  }>>> & {
38
44
  onDismiss?: (() => any) | undefined;
39
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "detailsTitle">;
45
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "detailsTitle" | "size">;
40
46
  $attrs: {
41
47
  [x: string]: unknown;
42
48
  };
@@ -75,9 +81,14 @@ declare const _default: {
75
81
  * Dismiss the alert after a delay (in ms)
76
82
  */
77
83
  duration?: number | undefined;
84
+ /**
85
+ * Size of the alert
86
+ */
87
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
78
88
  }>, {
79
- type: string;
89
+ type: AlertType;
80
90
  detailsTitle: string;
91
+ size: "xs" | "sm" | "md" | "lg";
81
92
  }>>> & {
82
93
  onDismiss?: (() => any) | undefined;
83
94
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -85,6 +96,7 @@ declare const _default: {
85
96
  }, string, {
86
97
  type: AlertType;
87
98
  detailsTitle: string;
99
+ size: AlertSize;
88
100
  }> & {
89
101
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
90
102
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -130,9 +142,14 @@ declare const _default: {
130
142
  * Dismiss the alert after a delay (in ms)
131
143
  */
132
144
  duration?: number | undefined;
145
+ /**
146
+ * Size of the alert
147
+ */
148
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
133
149
  }>, {
134
- type: string;
150
+ type: AlertType;
135
151
  detailsTitle: string;
152
+ size: "xs" | "sm" | "md" | "lg";
136
153
  }>>> & {
137
154
  onDismiss?: (() => any) | undefined;
138
155
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
@@ -164,9 +181,14 @@ declare const _default: {
164
181
  * Dismiss the alert after a delay (in ms)
165
182
  */
166
183
  duration?: number | undefined;
184
+ /**
185
+ * Size of the alert
186
+ */
187
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
167
188
  }>, {
168
- type: string;
189
+ type: AlertType;
169
190
  detailsTitle: string;
191
+ size: "xs" | "sm" | "md" | "lg";
170
192
  }>>> & {
171
193
  onDismiss?: (() => any) | undefined;
172
194
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -174,6 +196,7 @@ declare const _default: {
174
196
  }, string, {
175
197
  type: AlertType;
176
198
  detailsTitle: string;
199
+ size: AlertSize;
177
200
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
178
201
  $slots: {
179
202
  icon: (_: {
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.vue.d.ts","sourceRoot":"","sources":["../../Alert.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;;;;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AK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE3B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;QACzD,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,GAAG,CAAC,CAAC,CAAC,CAAC;CACR,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress-design/vue-alert",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "files": [
5
5
  "*"
6
6
  ],
@@ -11,6 +11,10 @@
11
11
  ".": {
12
12
  "import": "./dist/index.es.mjs",
13
13
  "require": "./dist/index.umd.js"
14
+ },
15
+ "./style": {
16
+ "import": "./dist/style.css",
17
+ "require": "./dist/style.css"
14
18
  }
15
19
  },
16
20
  "scripts": {
@@ -19,6 +23,7 @@
19
23
  "build:types": "yarn vue-tsc --project ./tsconfig.build.json"
20
24
  },
21
25
  "dependencies": {
26
+ "@cypress-design/details-animation": "*",
22
27
  "@cypress-design/vue-icon": "*"
23
28
  },
24
29
  "license": "MIT"
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- details[data-v-5e7e1d8e] summary::-webkit-details-marker{display:none}details summary .icon[data-v-5e7e1d8e]{transform:rotate(-90deg);transition:transform .2s}details[open] summary .icon[data-v-5e7e1d8e]{transform:rotate(0)}