@cypress-design/vue-alert 0.4.0 → 0.5.1

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/package.json CHANGED
@@ -1,33 +1,35 @@
1
1
  {
2
- "name": "@cypress-design/vue-alert",
3
- "version": "0.4.0",
4
- "files": [
5
- "*"
6
- ],
7
- "typings": "./dist/vue/index.d.ts",
8
- "main": "./dist/index.umd.js",
9
- "module": "./dist/index.es.mjs",
10
- "exports": {
11
- ".": {
12
- "import": "./dist/index.es.mjs",
13
- "require": "./dist/index.umd.js"
14
- },
15
- "./style": {
16
- "import": "./dist/style.css",
17
- "require": "./dist/style.css"
18
- }
19
- },
20
- "scripts": {
21
- "build": "yarn build:module && yarn build:types",
22
- "build:module": "yarn vite build",
23
- "build:types": "yarn vue-tsc --project ./tsconfig.build.json"
24
- },
25
- "dependencies": {
26
- "@cypress-design/details-animation": "*",
27
- "@cypress-design/vue-icon": "*"
28
- },
29
- "devDependencies": {
30
- "@cypress-design/css": "*"
31
- },
32
- "license": "MIT"
2
+ "name": "@cypress-design/vue-alert",
3
+ "version": "0.5.1",
4
+ "files": [
5
+ "*"
6
+ ],
7
+ "typings": "./dist/index.d.ts",
8
+ "main": "./dist/index.umd.js",
9
+ "module": "./dist/index.es.mjs",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.es.mjs",
13
+ "require": "./dist/index.umd.js",
14
+ "types": "./dist/index.d.ts"
15
+ },
16
+ "./style": {
17
+ "import": "./dist/style.css",
18
+ "require": "./dist/style.css"
19
+ }
20
+ },
21
+ "scripts": {
22
+ "build": "yarn build:module && yarn build:types",
23
+ "build:module": "yarn vite build",
24
+ "build:types": "yarn vue-tsc --project ./tsconfig.build.json"
25
+ },
26
+ "dependencies": {
27
+ "@cypress-design/constants-alert": "*",
28
+ "@cypress-design/details-animation": "*",
29
+ "@cypress-design/vue-icon": "*"
30
+ },
31
+ "devDependencies": {
32
+ "@cypress-design/css": "*"
33
+ },
34
+ "license": "MIT"
33
35
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "extends": "../../../tsconfig.vue.json",
3
- "include": ["./*.vue", "./index.ts", "../constants.ts"],
3
+ "include": ["./*.vue", "./index.ts"],
4
4
  "compilerOptions": {
5
5
  "outDir": "dist",
6
- "rootDir": "../",
6
+ "rootDir": "./",
7
7
  "composite": false
8
8
  }
9
9
  }
package/tsconfig.json CHANGED
@@ -3,11 +3,5 @@
3
3
  "compilerOptions": {
4
4
  "rootDir": "../"
5
5
  },
6
- "include": [
7
- "*.vue",
8
- "*.ts",
9
- "*.tsx",
10
- "../constants.ts",
11
- "../../../cypress/support/*.ts"
12
- ]
6
+ "include": ["*.vue", "*.ts", "*.tsx", "../../../cypress/support/*.ts"]
13
7
  }
@@ -1,23 +0,0 @@
1
- import type { WindiColor } from '@cypress-design/icon-registry';
2
- export type AlertType = 'info' | 'success' | 'error' | 'warning' | 'neutral';
3
- export declare const alertSizesClasses: {
4
- readonly xs: "py-[4px] px-[8px] leading-[22px] text-[14px]";
5
- readonly sm: "py-[8px] px-[12px] leading-[22px] text-[14px]";
6
- readonly md: "py-[12px] px-[16px] leading-[24px] text-[16px]";
7
- readonly lg: "p-[16px] leading-[24px] text-[16px]";
8
- };
9
- export type AlertSize = keyof typeof alertSizesClasses;
10
- export declare const defaultAlertSize: AlertSize;
11
- export type AlertClasses = {
12
- headerClass: string;
13
- bodyClass: string;
14
- borderClass: string;
15
- detailsHeaderClass: string;
16
- iconCloseColor: WindiColor;
17
- iconColor?: WindiColor;
18
- iconChevronColor: WindiColor;
19
- };
20
- export declare const alertClasses: Record<AlertType, AlertClasses>;
21
- export declare const defaultAlertType: AlertType;
22
- export declare const defaultAlertTitle = "Additional details";
23
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+B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