@cypress-design/react-statusicon 0.3.0 → 0.4.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +17 -0
- package/StatusIcon.tsx +2 -2
- package/_OutlineStatusIcon.ts +3 -3
- package/_SimpleStatusIcon.ts +3 -3
- package/_SolidStatusIcon.ts +3 -3
- package/compileProps.ts +5 -2
- package/dist/{react/StatusIcon.d.ts → StatusIcon.d.ts} +2 -2
- package/dist/StatusIcon.d.ts.map +1 -0
- package/dist/{react/_OutlineStatusIcon.d.ts → _OutlineStatusIcon.d.ts} +1 -1
- package/dist/_OutlineStatusIcon.d.ts.map +1 -0
- package/dist/{react/_SimpleStatusIcon.d.ts → _SimpleStatusIcon.d.ts} +1 -1
- package/dist/_SimpleStatusIcon.d.ts.map +1 -0
- package/dist/{react/_SolidStatusIcon.d.ts → _SolidStatusIcon.d.ts} +1 -1
- package/dist/_SolidStatusIcon.d.ts.map +1 -0
- package/dist/{react/compileProps.d.ts → compileProps.d.ts} +1 -1
- package/dist/compileProps.d.ts.map +1 -0
- package/dist/{react/index.d.ts → index.d.ts} +1 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.mjs +193 -193
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +192 -192
- package/dist/index.umd.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +29 -28
- package/tsconfig.build.json +3 -3
- package/tsconfig.json +3 -7
- package/dist/constants.d.ts +0 -106
- package/dist/constants.d.ts.map +0 -1
- package/dist/outline-imports.d.ts +0 -3
- package/dist/outline-imports.d.ts.map +0 -1
- package/dist/react/StatusIcon.d.ts.map +0 -1
- package/dist/react/_OutlineStatusIcon.d.ts.map +0 -1
- package/dist/react/_SimpleStatusIcon.d.ts.map +0 -1
- package/dist/react/_SolidStatusIcon.d.ts.map +0 -1
- package/dist/react/compileProps.d.ts.map +0 -1
- package/dist/react/index.d.ts.map +0 -1
- package/dist/simple-imports.d.ts +0 -3
- package/dist/simple-imports.d.ts.map +0 -1
- package/dist/solid-imports.d.ts +0 -3
- package/dist/solid-imports.d.ts.map +0 -1
package/index.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { default } from './StatusIcon'
|
|
|
2
2
|
export { OutlineStatusIcon } from './_OutlineStatusIcon'
|
|
3
3
|
export { SimpleStatusIcon } from './_SimpleStatusIcon'
|
|
4
4
|
export { SolidStatusIcon } from './_SolidStatusIcon'
|
|
5
|
-
export type { statusTypes as StatusType } from '
|
|
5
|
+
export type { statusTypes as StatusType } from '@cypress-design/constants-statusicon'
|
package/package.json
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
"name": "@cypress-design/react-statusicon",
|
|
3
|
+
"version": "0.4.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
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "yarn build:module && yarn build:types",
|
|
19
|
+
"build:module": "rollup -c ./rollup.config.mjs",
|
|
20
|
+
"build:types": "tsc --project ./tsconfig.build.json"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@cypress-design/constants-statusicon": "*",
|
|
24
|
+
"@cypress-design/react-icon": "^0.20.0",
|
|
25
|
+
"clsx": "*"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@cypress-design/css": "*"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT"
|
|
30
31
|
}
|
package/tsconfig.build.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "../../../tsconfig.react.build.json",
|
|
3
|
-
"include": ["./StatusIcon.tsx", "./*.ts"
|
|
3
|
+
"include": ["./StatusIcon.tsx", "./*.ts"],
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"sourceRoot": "./",
|
|
6
|
+
"outDir": "dist"
|
|
7
7
|
}
|
|
8
8
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "../../../tsconfig.react.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"
|
|
4
|
+
"sourceRoot": "./",
|
|
5
|
+
"outDir": "dist"
|
|
5
6
|
},
|
|
6
|
-
"include": [
|
|
7
|
-
"*.tsx",
|
|
8
|
-
"*.ts",
|
|
9
|
-
"../constants.ts",
|
|
10
|
-
"../../../cypress/support/*.ts"
|
|
11
|
-
]
|
|
7
|
+
"include": ["*.tsx", "*.ts", "../../../cypress/support/*.ts"]
|
|
12
8
|
}
|
package/dist/constants.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import type { WindiColor } from '@cypress-design/icon-registry';
|
|
2
|
-
export type Variant = 'outline' | 'simple' | 'solid';
|
|
3
|
-
export type Size = '4' | '8' | '12' | '16' | '24';
|
|
4
|
-
type StatusInfo = {
|
|
5
|
-
color: WindiColor;
|
|
6
|
-
link?: string;
|
|
7
|
-
use: string;
|
|
8
|
-
variants: readonly Variant[];
|
|
9
|
-
secondaryColor?: WindiColor;
|
|
10
|
-
};
|
|
11
|
-
export type IconContents = {
|
|
12
|
-
name: string;
|
|
13
|
-
data: string;
|
|
14
|
-
};
|
|
15
|
-
export type IconSet = {
|
|
16
|
-
size4Icon: IconContents;
|
|
17
|
-
size8Icon: IconContents;
|
|
18
|
-
size12Icon: IconContents;
|
|
19
|
-
size16Icon: IconContents;
|
|
20
|
-
size24Icon: IconContents;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* This "const" is used to create the list of statuses
|
|
24
|
-
*/
|
|
25
|
-
declare const constStatuses: {
|
|
26
|
-
readonly running: {
|
|
27
|
-
readonly color: "indigo-400";
|
|
28
|
-
readonly use: "Runs, specs, groups, test results";
|
|
29
|
-
readonly variants: readonly ["outline"];
|
|
30
|
-
readonly secondaryColor: "gray-100";
|
|
31
|
-
};
|
|
32
|
-
readonly passed: {
|
|
33
|
-
readonly color: "jade-400";
|
|
34
|
-
readonly use: "Runs, specs, groups, test results";
|
|
35
|
-
readonly link: "https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Passed";
|
|
36
|
-
readonly variants: readonly ["outline", "simple", "solid"];
|
|
37
|
-
};
|
|
38
|
-
readonly failed: {
|
|
39
|
-
readonly color: "red-400";
|
|
40
|
-
readonly use: "Runs, specs, groups, test results";
|
|
41
|
-
readonly link: "https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Failed";
|
|
42
|
-
readonly variants: readonly ["outline", "simple", "solid"];
|
|
43
|
-
};
|
|
44
|
-
readonly unclaimed: {
|
|
45
|
-
readonly color: "gray-100";
|
|
46
|
-
readonly use: "Specs";
|
|
47
|
-
readonly variants: readonly ["outline"];
|
|
48
|
-
};
|
|
49
|
-
readonly placeholder: {
|
|
50
|
-
readonly color: "gray-300";
|
|
51
|
-
readonly use: "Placeholder";
|
|
52
|
-
readonly variants: readonly ["solid"];
|
|
53
|
-
};
|
|
54
|
-
readonly cancelled: {
|
|
55
|
-
readonly color: "gray-300";
|
|
56
|
-
readonly use: "Runs, specs, groups, test results";
|
|
57
|
-
readonly variants: readonly ["outline", "solid"];
|
|
58
|
-
};
|
|
59
|
-
readonly noTests: {
|
|
60
|
-
readonly color: "orange-400";
|
|
61
|
-
readonly use: "Runs, specs, groups";
|
|
62
|
-
readonly variants: readonly ["outline", "solid"];
|
|
63
|
-
};
|
|
64
|
-
readonly errored: {
|
|
65
|
-
readonly color: "orange-400";
|
|
66
|
-
readonly use: "Runs, specs, groups, test results";
|
|
67
|
-
readonly variants: readonly ["outline", "solid"];
|
|
68
|
-
};
|
|
69
|
-
readonly timedOut: {
|
|
70
|
-
readonly color: "orange-400";
|
|
71
|
-
readonly use: "Runs, specs, groups, test results";
|
|
72
|
-
readonly variants: readonly ["outline", "solid"];
|
|
73
|
-
};
|
|
74
|
-
readonly overLimit: {
|
|
75
|
-
readonly color: "orange-400";
|
|
76
|
-
readonly use: "Runs, specs, groups";
|
|
77
|
-
readonly link: "https://docs.cypress.io/faq/questions/dashboard-faq#What-happens-once-I-reach-the-test-results-limit";
|
|
78
|
-
readonly variants: readonly ["outline", "solid"];
|
|
79
|
-
};
|
|
80
|
-
readonly skipped: {
|
|
81
|
-
readonly color: "gray-400";
|
|
82
|
-
readonly use: "Test results";
|
|
83
|
-
readonly link: "https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Skipped";
|
|
84
|
-
readonly variants: readonly ["outline"];
|
|
85
|
-
};
|
|
86
|
-
readonly pending: {
|
|
87
|
-
readonly color: "gray-300";
|
|
88
|
-
readonly use: "Test results";
|
|
89
|
-
readonly link: "https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Pending";
|
|
90
|
-
readonly variants: readonly ["outline"];
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
export type statusTypes = keyof typeof constStatuses;
|
|
94
|
-
/**
|
|
95
|
-
* The status we have here, allow us to check the validity of the constant
|
|
96
|
-
*/
|
|
97
|
-
export declare const statuses: Record<statusTypes, StatusInfo>;
|
|
98
|
-
export type VariantStatusIconProps = {
|
|
99
|
-
size: Size;
|
|
100
|
-
/**
|
|
101
|
-
If there is no status provided, a placeholder icon will be shown
|
|
102
|
-
*/
|
|
103
|
-
status?: keyof typeof statuses | null | undefined;
|
|
104
|
-
};
|
|
105
|
-
export {};
|
|
106
|
-
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AACpD,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEjD,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IAC5B,cAAc,CAAC,EAAE,UAAU,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,YAAY,CAAA;IACvB,SAAS,EAAE,YAAY,CAAA;IACvB,UAAU,EAAE,YAAY,CAAA;IACxB,UAAU,EAAE,YAAY,CAAA;IACxB,UAAU,EAAE,YAAY,CAAA;CACzB,CAAA;AAED;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFT,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,aAAa,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,UAAU,CAAiB,CAAA;AAEtE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,IAAI,CAAA;IACV;;MAEE;IACF,MAAM,CAAC,EAAE,MAAM,OAAO,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAA;CAClD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline-imports.d.ts","sourceRoot":"","sources":["../../outline-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAkD1C,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAqF5C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../StatusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAKvC,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IACX;;MAEE;IACF,MAAM,CAAC,EAAE,MAAM,OAAO,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAC/B,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,CAW1C,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_OutlineStatusIcon.d.ts","sourceRoot":"","sources":["../../_OutlineStatusIcon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAG1D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CACtC,sBAAsB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAWjD,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_SimpleStatusIcon.d.ts","sourceRoot":"","sources":["../../_SimpleStatusIcon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAG1D,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CACrC,sBAAsB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAWjD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_SolidStatusIcon.d.ts","sourceRoot":"","sources":["../../_SolidStatusIcon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAG1D,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CACpC,sBAAsB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAWjD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compileProps.d.ts","sourceRoot":"","sources":["../../compileProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAKnE,eAAO,MAAM,YAAY;cAMb,OAAO,MAAM,EAAE,OAAO,CAAC;eACtB,MAAM,GAAG,SAAS;SAuB9B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,YAAY,EAAE,WAAW,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
package/dist/simple-imports.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-imports.d.ts","sourceRoot":"","sources":["../../simple-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAiD1C,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAqF5C,CAAA"}
|
package/dist/solid-imports.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solid-imports.d.ts","sourceRoot":"","sources":["../../solid-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAkD1C,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAqF5C,CAAA"}
|