@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/.turbo/turbo-build.log
CHANGED
|
@@ -8,5 +8,5 @@ $ rollup -c ./rollup.config.mjs
|
|
|
8
8
|
index.ts
|
|
9
9
|
|
|
10
10
|
Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
11
|
-
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [
|
|
11
|
+
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [1m19.6s[22m[39m
|
|
12
12
|
$ tsc --project ./tsconfig.build.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @cypress-design/react-statusicon
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`63ea78a`](https://github.com/cypress-io/cypress-design/commit/63ea78af2062fd5e3fb8c61fa4bcf85fd95e803b) Thanks [@elevatebart](https://github.com/elevatebart)! - add constants package to dependencies
|
|
8
|
+
|
|
9
|
+
## 0.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#196](https://github.com/cypress-io/cypress-design/pull/196) [`fc6d9e4`](https://github.com/cypress-io/cypress-design/commit/fc6d9e4fedcc01fa8e01b868b0fa66d8895c37d0) Thanks [@elevatebart](https://github.com/elevatebart)! - refactor: avoid constants relative imports
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`fc6d9e4`](https://github.com/cypress-io/cypress-design/commit/fc6d9e4fedcc01fa8e01b868b0fa66d8895c37d0)]:
|
|
18
|
+
- @cypress-design/react-icon@0.20.0
|
|
19
|
+
|
|
3
20
|
## 0.3.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/StatusIcon.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { SVGProps } from 'react'
|
|
3
|
-
import type { Variant, Size } from '
|
|
4
|
-
import { statuses } from '
|
|
3
|
+
import type { Variant, Size } from '@cypress-design/constants-statusicon'
|
|
4
|
+
import { statuses } from '@cypress-design/constants-statusicon'
|
|
5
5
|
import OutlineStatusIcon from './_OutlineStatusIcon'
|
|
6
6
|
import SimpleStatusIcon from './_SimpleStatusIcon'
|
|
7
7
|
import SolidStatusIcon from './_SolidStatusIcon'
|
package/_OutlineStatusIcon.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { SVGProps } from 'react'
|
|
3
|
-
import {
|
|
4
|
-
import type { VariantStatusIconProps } from '
|
|
3
|
+
import { outline } from '@cypress-design/constants-statusicon'
|
|
4
|
+
import type { VariantStatusIconProps } from '@cypress-design/constants-statusicon'
|
|
5
5
|
import { compileProps } from './compileProps'
|
|
6
6
|
|
|
7
7
|
export const OutlineStatusIcon: React.FC<
|
|
@@ -11,7 +11,7 @@ export const OutlineStatusIcon: React.FC<
|
|
|
11
11
|
...rest,
|
|
12
12
|
...compileProps({
|
|
13
13
|
status,
|
|
14
|
-
statuses,
|
|
14
|
+
statuses: outline.statuses,
|
|
15
15
|
className: rest.className,
|
|
16
16
|
size,
|
|
17
17
|
}),
|
package/_SimpleStatusIcon.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { SVGProps } from 'react'
|
|
3
|
-
import {
|
|
4
|
-
import type { VariantStatusIconProps } from '
|
|
3
|
+
import { simple } from '@cypress-design/constants-statusicon'
|
|
4
|
+
import type { VariantStatusIconProps } from '@cypress-design/constants-statusicon'
|
|
5
5
|
import { compileProps } from './compileProps'
|
|
6
6
|
|
|
7
7
|
export const SimpleStatusIcon: React.FC<
|
|
@@ -11,7 +11,7 @@ export const SimpleStatusIcon: React.FC<
|
|
|
11
11
|
...rest,
|
|
12
12
|
...compileProps({
|
|
13
13
|
status,
|
|
14
|
-
statuses,
|
|
14
|
+
statuses: simple.statuses,
|
|
15
15
|
className: rest.className,
|
|
16
16
|
size,
|
|
17
17
|
}),
|
package/_SolidStatusIcon.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { SVGProps } from 'react'
|
|
3
|
-
import {
|
|
4
|
-
import type { VariantStatusIconProps } from '
|
|
3
|
+
import { solid } from '@cypress-design/constants-statusicon'
|
|
4
|
+
import type { VariantStatusIconProps } from '@cypress-design/constants-statusicon'
|
|
5
5
|
import { compileProps } from './compileProps'
|
|
6
6
|
|
|
7
7
|
export const SolidStatusIcon: React.FC<
|
|
@@ -11,7 +11,7 @@ export const SolidStatusIcon: React.FC<
|
|
|
11
11
|
...rest,
|
|
12
12
|
...compileProps({
|
|
13
13
|
status,
|
|
14
|
-
statuses,
|
|
14
|
+
statuses: solid.statuses,
|
|
15
15
|
className: rest.className,
|
|
16
16
|
size,
|
|
17
17
|
}),
|
package/compileProps.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
IconSet,
|
|
3
|
+
VariantStatusIconProps,
|
|
4
|
+
} from '@cypress-design/constants-statusicon'
|
|
5
|
+
import { statuses as StatusForColor } from '@cypress-design/constants-statusicon'
|
|
3
6
|
import { compileReactIconProperties } from '@cypress-design/react-icon'
|
|
4
7
|
import { getComponentAttributes } from '@cypress-design/icon-registry'
|
|
5
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SVGProps } from 'react';
|
|
3
|
-
import type { Variant, Size } from '
|
|
4
|
-
import { statuses } from '
|
|
3
|
+
import type { Variant, Size } from '@cypress-design/constants-statusicon';
|
|
4
|
+
import { statuses } from '@cypress-design/constants-statusicon';
|
|
5
5
|
export type StatusIconProps = {
|
|
6
6
|
/**
|
|
7
7
|
* The size of the icon's canvas, in pixels.
|
|
@@ -0,0 +1 @@
|
|
|
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,sCAAsC,CAAA;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAA;AAK/D,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,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SVGProps } from 'react';
|
|
3
|
-
import type { VariantStatusIconProps } from '
|
|
3
|
+
import type { VariantStatusIconProps } from '@cypress-design/constants-statusicon';
|
|
4
4
|
export declare const OutlineStatusIcon: React.FC<VariantStatusIconProps & SVGProps<SVGSVGElement>>;
|
|
5
5
|
export default OutlineStatusIcon;
|
|
6
6
|
//# sourceMappingURL=_OutlineStatusIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,sCAAsC,CAAA;AAGlF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CACtC,sBAAsB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAWjD,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SVGProps } from 'react';
|
|
3
|
-
import type { VariantStatusIconProps } from '
|
|
3
|
+
import type { VariantStatusIconProps } from '@cypress-design/constants-statusicon';
|
|
4
4
|
export declare const SimpleStatusIcon: React.FC<VariantStatusIconProps & SVGProps<SVGSVGElement>>;
|
|
5
5
|
export default SimpleStatusIcon;
|
|
6
6
|
//# sourceMappingURL=_SimpleStatusIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,sCAAsC,CAAA;AAGlF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CACrC,sBAAsB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAWjD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SVGProps } from 'react';
|
|
3
|
-
import type { VariantStatusIconProps } from '
|
|
3
|
+
import type { VariantStatusIconProps } from '@cypress-design/constants-statusicon';
|
|
4
4
|
export declare const SolidStatusIcon: React.FC<VariantStatusIconProps & SVGProps<SVGSVGElement>>;
|
|
5
5
|
export default SolidStatusIcon;
|
|
6
6
|
//# sourceMappingURL=_SolidStatusIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,sCAAsC,CAAA;AAGlF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CACpC,sBAAsB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAWjD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IconSet, VariantStatusIconProps } from '
|
|
1
|
+
import type { IconSet, VariantStatusIconProps } from '@cypress-design/constants-statusicon';
|
|
2
2
|
export declare const compileProps: ({ status, statuses, className, size, }: VariantStatusIconProps & {
|
|
3
3
|
statuses: Record<string, IconSet>;
|
|
4
4
|
className: string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compileProps.d.ts","sourceRoot":"./","sources":["compileProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,sBAAsB,EACvB,MAAM,sCAAsC,CAAA;AAK7C,eAAO,MAAM,YAAY;cAMb,OAAO,MAAM,EAAE,OAAO,CAAC;eACtB,MAAM,GAAG,SAAS;SAuB9B,CAAA"}
|
|
@@ -2,5 +2,5 @@ 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';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,sCAAsC,CAAA"}
|
package/dist/index.es.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { cyStatusRunningSimpleX4, cyStatusRunningSimpleX8, cyStatusRunningOutlineX12, cyStatusRunningOutlineX16, cyStatusRunningOutlineX24, cyStatusPassedSimpleX4, cyStatusPassedSimpleX8, cyStatusPassedSimpleX12, cyStatusPassedOutlineX16, cyStatusPassedOutlineX24, cyStatusFailedSimpleX4, cyStatusFailedSimpleX8, cyStatusFailedSimpleX12, cyStatusFailedOutlineX16, cyStatusFailedOutlineX24, cyStatusQueuedSimpleX4, cyStatusQueuedSimpleX8, cyStatusQueuedOutlineX12, cyStatusQueuedOutlineX16, cyStatusQueuedOutlineX24, cyStatusPlaceholderSimpleX4, cyStatusPlaceholderSimpleX8, cyStatusPlaceholderSolidX12, cyStatusPlaceholderSolidX16, cyStatusPlaceholderSolidX24, cyStatusCancelledSimpleX4, cyStatusCancelledSimpleX8, cyStatusCancelledSolidX12, cyStatusCancelledOutlineX16, cyStatusCancelledOutlineX24, cyStatusErroredSimpleX4, cyStatusErroredSimpleX8, cyStatusErroredSolidX12, cyStatusErroredOutlineX16, cyStatusErroredOutlineX24, cyStatusSkippedSimpleX4, cyStatusSkippedSimpleX8, cyStatusSkippedOutlineX12, cyStatusSkippedOutlineX16, cyStatusSkippedOutlineX24, cyStatusPendingSimpleX4, cyStatusPendingSimpleX8, cyStatusPendingOutlineX12, cyStatusPendingOutlineX16, cyStatusPendingOutlineX24,
|
|
2
|
+
import { cyStatusRunningSimpleX4, cyStatusRunningSimpleX8, cyStatusRunningOutlineX12, cyStatusRunningOutlineX16, cyStatusRunningOutlineX24, cyStatusPassedSimpleX4, cyStatusPassedSimpleX8, cyStatusPassedSimpleX12, cyStatusPassedOutlineX16, cyStatusPassedOutlineX24, cyStatusFailedSimpleX4, cyStatusFailedSimpleX8, cyStatusFailedSimpleX12, cyStatusFailedOutlineX16, cyStatusFailedOutlineX24, cyStatusQueuedSimpleX4, cyStatusQueuedSimpleX8, cyStatusQueuedOutlineX12, cyStatusQueuedOutlineX16, cyStatusQueuedOutlineX24, cyStatusPlaceholderSimpleX4, cyStatusPlaceholderSimpleX8, cyStatusPlaceholderSolidX12, cyStatusPlaceholderSolidX16, cyStatusPlaceholderSolidX24, cyStatusCancelledSimpleX4, cyStatusCancelledSimpleX8, cyStatusCancelledSolidX12, cyStatusCancelledOutlineX16, cyStatusCancelledOutlineX24, cyStatusErroredSimpleX4, cyStatusErroredSimpleX8, cyStatusErroredSolidX12, cyStatusErroredOutlineX16, cyStatusErroredOutlineX24, cyStatusSkippedSimpleX4, cyStatusSkippedSimpleX8, cyStatusSkippedOutlineX12, cyStatusSkippedOutlineX16, cyStatusSkippedOutlineX24, cyStatusPendingSimpleX4, cyStatusPendingSimpleX8, cyStatusPendingOutlineX12, cyStatusPendingOutlineX16, cyStatusPendingOutlineX24, cyStatusPassedSimpleX16, cyStatusPassedSimpleX24, cyStatusFailedSimpleX16, cyStatusFailedSimpleX24, cyStatusCancelledSolidX16, cyStatusCancelledSolidX24, cyStatusErroredSolidX16, cyStatusErroredSolidX24, cyStatusPassedSolidX16, cyStatusPassedSolidX24, cyStatusFailedSolidX16, cyStatusFailedSolidX24, ICON_COLOR_PROP_NAMES, getComponentAttributes } from '@cypress-design/icon-registry';
|
|
3
3
|
|
|
4
4
|
/******************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
@@ -49,97 +49,10 @@ function __spreadArray(to, from, pack) {
|
|
|
49
49
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
var statuses$3 = {
|
|
53
|
-
running: {
|
|
54
|
-
size4Icon: cyStatusRunningSimpleX4,
|
|
55
|
-
size8Icon: cyStatusRunningSimpleX8,
|
|
56
|
-
size12Icon: cyStatusRunningOutlineX12,
|
|
57
|
-
size16Icon: cyStatusRunningOutlineX16,
|
|
58
|
-
size24Icon: cyStatusRunningOutlineX24,
|
|
59
|
-
},
|
|
60
|
-
passed: {
|
|
61
|
-
size4Icon: cyStatusPassedSimpleX4,
|
|
62
|
-
size8Icon: cyStatusPassedSimpleX8,
|
|
63
|
-
size12Icon: cyStatusPassedSimpleX12,
|
|
64
|
-
size16Icon: cyStatusPassedOutlineX16,
|
|
65
|
-
size24Icon: cyStatusPassedOutlineX24,
|
|
66
|
-
},
|
|
67
|
-
failed: {
|
|
68
|
-
size4Icon: cyStatusFailedSimpleX4,
|
|
69
|
-
size8Icon: cyStatusFailedSimpleX8,
|
|
70
|
-
size12Icon: cyStatusFailedSimpleX12,
|
|
71
|
-
size16Icon: cyStatusFailedOutlineX16,
|
|
72
|
-
size24Icon: cyStatusFailedOutlineX24,
|
|
73
|
-
},
|
|
74
|
-
unclaimed: {
|
|
75
|
-
size4Icon: cyStatusQueuedSimpleX4,
|
|
76
|
-
size8Icon: cyStatusQueuedSimpleX8,
|
|
77
|
-
size12Icon: cyStatusQueuedOutlineX12,
|
|
78
|
-
size16Icon: cyStatusQueuedOutlineX16,
|
|
79
|
-
size24Icon: cyStatusQueuedOutlineX24,
|
|
80
|
-
},
|
|
81
|
-
placeholder: {
|
|
82
|
-
size4Icon: cyStatusPlaceholderSimpleX4,
|
|
83
|
-
size8Icon: cyStatusPlaceholderSimpleX8,
|
|
84
|
-
size12Icon: cyStatusPlaceholderSolidX12,
|
|
85
|
-
size16Icon: cyStatusPlaceholderSolidX16,
|
|
86
|
-
size24Icon: cyStatusPlaceholderSolidX24,
|
|
87
|
-
},
|
|
88
|
-
cancelled: {
|
|
89
|
-
size4Icon: cyStatusCancelledSimpleX4,
|
|
90
|
-
size8Icon: cyStatusCancelledSimpleX8,
|
|
91
|
-
size12Icon: cyStatusCancelledSolidX12,
|
|
92
|
-
size16Icon: cyStatusCancelledOutlineX16,
|
|
93
|
-
size24Icon: cyStatusCancelledOutlineX24,
|
|
94
|
-
},
|
|
95
|
-
noTests: {
|
|
96
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
97
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
98
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
99
|
-
size16Icon: cyStatusErroredOutlineX16,
|
|
100
|
-
size24Icon: cyStatusErroredOutlineX24,
|
|
101
|
-
},
|
|
102
|
-
errored: {
|
|
103
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
104
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
105
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
106
|
-
size16Icon: cyStatusErroredOutlineX16,
|
|
107
|
-
size24Icon: cyStatusErroredOutlineX24,
|
|
108
|
-
},
|
|
109
|
-
timedOut: {
|
|
110
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
111
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
112
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
113
|
-
size16Icon: cyStatusErroredOutlineX16,
|
|
114
|
-
size24Icon: cyStatusErroredOutlineX24,
|
|
115
|
-
},
|
|
116
|
-
overLimit: {
|
|
117
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
118
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
119
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
120
|
-
size16Icon: cyStatusErroredOutlineX16,
|
|
121
|
-
size24Icon: cyStatusErroredOutlineX24,
|
|
122
|
-
},
|
|
123
|
-
skipped: {
|
|
124
|
-
size4Icon: cyStatusSkippedSimpleX4,
|
|
125
|
-
size8Icon: cyStatusSkippedSimpleX8,
|
|
126
|
-
size12Icon: cyStatusSkippedOutlineX12,
|
|
127
|
-
size16Icon: cyStatusSkippedOutlineX16,
|
|
128
|
-
size24Icon: cyStatusSkippedOutlineX24,
|
|
129
|
-
},
|
|
130
|
-
pending: {
|
|
131
|
-
size4Icon: cyStatusPendingSimpleX4,
|
|
132
|
-
size8Icon: cyStatusPendingSimpleX8,
|
|
133
|
-
size12Icon: cyStatusPendingOutlineX12,
|
|
134
|
-
size16Icon: cyStatusPendingOutlineX16,
|
|
135
|
-
size24Icon: cyStatusPendingOutlineX24,
|
|
136
|
-
},
|
|
137
|
-
};
|
|
138
|
-
|
|
139
52
|
/**
|
|
140
53
|
* This "const" is used to create the list of statuses
|
|
141
54
|
*/
|
|
142
|
-
|
|
55
|
+
const constStatuses = {
|
|
143
56
|
running: {
|
|
144
57
|
// <tw-keep strokeColor="indigo-400" />
|
|
145
58
|
color: 'indigo-400',
|
|
@@ -223,101 +136,96 @@ var constStatuses = {
|
|
|
223
136
|
/**
|
|
224
137
|
* The status we have here, allow us to check the validity of the constant
|
|
225
138
|
*/
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/******************************************************************************
|
|
229
|
-
Copyright (c) Microsoft Corporation.
|
|
230
|
-
|
|
231
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
232
|
-
purpose with or without fee is hereby granted.
|
|
233
|
-
|
|
234
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
235
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
236
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
237
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
238
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
239
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
240
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
241
|
-
***************************************************************************** */
|
|
242
|
-
|
|
243
|
-
var __assign = function() {
|
|
244
|
-
__assign = Object.assign || function __assign(t) {
|
|
245
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
246
|
-
s = arguments[i];
|
|
247
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
248
|
-
}
|
|
249
|
-
return t;
|
|
250
|
-
};
|
|
251
|
-
return __assign.apply(this, arguments);
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
function __rest(s, e) {
|
|
255
|
-
var t = {};
|
|
256
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
257
|
-
t[p] = s[p];
|
|
258
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
259
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
260
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
261
|
-
t[p[i]] = s[p[i]];
|
|
262
|
-
}
|
|
263
|
-
return t;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
var compileReactIconProperties = function (_a) {
|
|
267
|
-
var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
|
|
268
|
-
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
269
|
-
if (!ICON_COLOR_PROP_NAMES.includes(attrName) && attrName !== 'name') {
|
|
270
|
-
newAttributes[attrName] =
|
|
271
|
-
attributes[attrName];
|
|
272
|
-
}
|
|
273
|
-
return newAttributes;
|
|
274
|
-
}, {});
|
|
275
|
-
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
276
|
-
__html: body,
|
|
277
|
-
} }, filteredAttributes);
|
|
278
|
-
if (attributes.className) {
|
|
279
|
-
compiledClasses.push(attributes.className);
|
|
280
|
-
}
|
|
281
|
-
if (compiledClasses.length) {
|
|
282
|
-
componentProps.className = compiledClasses.join(' ');
|
|
283
|
-
}
|
|
284
|
-
return componentProps;
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
/* <windicss-keep class=""> */
|
|
289
|
-
|
|
290
|
-
var compileProps = function (_a) {
|
|
291
|
-
var status = _a.status, statuses = _a.statuses, className = _a.className, size = _a.size;
|
|
292
|
-
var statusInfo = status ? statuses[status] : statuses.placeholder;
|
|
293
|
-
var iconInfo = status ? statuses$2[status] : statuses$2.placeholder;
|
|
294
|
-
var _b = statusInfo["size".concat(size, "Icon")], iconData = _b.data, name = _b.name;
|
|
295
|
-
var classes = "inline-block ".concat(className || '');
|
|
296
|
-
var compiledClasses = getComponentAttributes({
|
|
297
|
-
name: name,
|
|
298
|
-
strokeColor: iconInfo.color,
|
|
299
|
-
size: size,
|
|
300
|
-
availableSizes: [size],
|
|
301
|
-
fillColor: iconInfo.secondaryColor,
|
|
302
|
-
}).compiledClasses;
|
|
303
|
-
return compileReactIconProperties({
|
|
304
|
-
body: iconData,
|
|
305
|
-
compiledClasses: __spreadArray(__spreadArray([], compiledClasses, true), [classes], false),
|
|
306
|
-
size: size,
|
|
307
|
-
});
|
|
308
|
-
};
|
|
139
|
+
const statuses$3 = constStatuses;
|
|
309
140
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
141
|
+
const statuses$2 = {
|
|
142
|
+
running: {
|
|
143
|
+
size4Icon: cyStatusRunningSimpleX4,
|
|
144
|
+
size8Icon: cyStatusRunningSimpleX8,
|
|
145
|
+
size12Icon: cyStatusRunningOutlineX12,
|
|
146
|
+
size16Icon: cyStatusRunningOutlineX16,
|
|
147
|
+
size24Icon: cyStatusRunningOutlineX24,
|
|
148
|
+
},
|
|
149
|
+
passed: {
|
|
150
|
+
size4Icon: cyStatusPassedSimpleX4,
|
|
151
|
+
size8Icon: cyStatusPassedSimpleX8,
|
|
152
|
+
size12Icon: cyStatusPassedSimpleX12,
|
|
153
|
+
size16Icon: cyStatusPassedOutlineX16,
|
|
154
|
+
size24Icon: cyStatusPassedOutlineX24,
|
|
155
|
+
},
|
|
156
|
+
failed: {
|
|
157
|
+
size4Icon: cyStatusFailedSimpleX4,
|
|
158
|
+
size8Icon: cyStatusFailedSimpleX8,
|
|
159
|
+
size12Icon: cyStatusFailedSimpleX12,
|
|
160
|
+
size16Icon: cyStatusFailedOutlineX16,
|
|
161
|
+
size24Icon: cyStatusFailedOutlineX24,
|
|
162
|
+
},
|
|
163
|
+
unclaimed: {
|
|
164
|
+
size4Icon: cyStatusQueuedSimpleX4,
|
|
165
|
+
size8Icon: cyStatusQueuedSimpleX8,
|
|
166
|
+
size12Icon: cyStatusQueuedOutlineX12,
|
|
167
|
+
size16Icon: cyStatusQueuedOutlineX16,
|
|
168
|
+
size24Icon: cyStatusQueuedOutlineX24,
|
|
169
|
+
},
|
|
170
|
+
placeholder: {
|
|
171
|
+
size4Icon: cyStatusPlaceholderSimpleX4,
|
|
172
|
+
size8Icon: cyStatusPlaceholderSimpleX8,
|
|
173
|
+
size12Icon: cyStatusPlaceholderSolidX12,
|
|
174
|
+
size16Icon: cyStatusPlaceholderSolidX16,
|
|
175
|
+
size24Icon: cyStatusPlaceholderSolidX24,
|
|
176
|
+
},
|
|
177
|
+
cancelled: {
|
|
178
|
+
size4Icon: cyStatusCancelledSimpleX4,
|
|
179
|
+
size8Icon: cyStatusCancelledSimpleX8,
|
|
180
|
+
size12Icon: cyStatusCancelledSolidX12,
|
|
181
|
+
size16Icon: cyStatusCancelledOutlineX16,
|
|
182
|
+
size24Icon: cyStatusCancelledOutlineX24,
|
|
183
|
+
},
|
|
184
|
+
noTests: {
|
|
185
|
+
size4Icon: cyStatusErroredSimpleX4,
|
|
186
|
+
size8Icon: cyStatusErroredSimpleX8,
|
|
187
|
+
size12Icon: cyStatusErroredSolidX12,
|
|
188
|
+
size16Icon: cyStatusErroredOutlineX16,
|
|
189
|
+
size24Icon: cyStatusErroredOutlineX24,
|
|
190
|
+
},
|
|
191
|
+
errored: {
|
|
192
|
+
size4Icon: cyStatusErroredSimpleX4,
|
|
193
|
+
size8Icon: cyStatusErroredSimpleX8,
|
|
194
|
+
size12Icon: cyStatusErroredSolidX12,
|
|
195
|
+
size16Icon: cyStatusErroredOutlineX16,
|
|
196
|
+
size24Icon: cyStatusErroredOutlineX24,
|
|
197
|
+
},
|
|
198
|
+
timedOut: {
|
|
199
|
+
size4Icon: cyStatusErroredSimpleX4,
|
|
200
|
+
size8Icon: cyStatusErroredSimpleX8,
|
|
201
|
+
size12Icon: cyStatusErroredSolidX12,
|
|
202
|
+
size16Icon: cyStatusErroredOutlineX16,
|
|
203
|
+
size24Icon: cyStatusErroredOutlineX24,
|
|
204
|
+
},
|
|
205
|
+
overLimit: {
|
|
206
|
+
size4Icon: cyStatusErroredSimpleX4,
|
|
207
|
+
size8Icon: cyStatusErroredSimpleX8,
|
|
208
|
+
size12Icon: cyStatusErroredSolidX12,
|
|
209
|
+
size16Icon: cyStatusErroredOutlineX16,
|
|
210
|
+
size24Icon: cyStatusErroredOutlineX24,
|
|
211
|
+
},
|
|
212
|
+
skipped: {
|
|
213
|
+
size4Icon: cyStatusSkippedSimpleX4,
|
|
214
|
+
size8Icon: cyStatusSkippedSimpleX8,
|
|
215
|
+
size12Icon: cyStatusSkippedOutlineX12,
|
|
216
|
+
size16Icon: cyStatusSkippedOutlineX16,
|
|
217
|
+
size24Icon: cyStatusSkippedOutlineX24,
|
|
218
|
+
},
|
|
219
|
+
pending: {
|
|
220
|
+
size4Icon: cyStatusPendingSimpleX4,
|
|
221
|
+
size8Icon: cyStatusPendingSimpleX8,
|
|
222
|
+
size12Icon: cyStatusPendingOutlineX12,
|
|
223
|
+
size16Icon: cyStatusPendingOutlineX16,
|
|
224
|
+
size24Icon: cyStatusPendingOutlineX24,
|
|
225
|
+
},
|
|
318
226
|
};
|
|
319
227
|
|
|
320
|
-
|
|
228
|
+
const statuses$1 = {
|
|
321
229
|
running: {
|
|
322
230
|
size4Icon: cyStatusRunningSimpleX4,
|
|
323
231
|
size8Icon: cyStatusRunningSimpleX8,
|
|
@@ -404,17 +312,7 @@ var statuses$1 = {
|
|
|
404
312
|
},
|
|
405
313
|
};
|
|
406
314
|
|
|
407
|
-
|
|
408
|
-
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest$1(_a, ["size", "status"]);
|
|
409
|
-
return React.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
|
|
410
|
-
status: status,
|
|
411
|
-
statuses: statuses$1,
|
|
412
|
-
className: rest.className,
|
|
413
|
-
size: size,
|
|
414
|
-
})));
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
var statuses = {
|
|
315
|
+
const statuses = {
|
|
418
316
|
running: {
|
|
419
317
|
size4Icon: cyStatusRunningSimpleX4,
|
|
420
318
|
size8Icon: cyStatusRunningSimpleX8,
|
|
@@ -501,6 +399,108 @@ var statuses = {
|
|
|
501
399
|
},
|
|
502
400
|
};
|
|
503
401
|
|
|
402
|
+
/******************************************************************************
|
|
403
|
+
Copyright (c) Microsoft Corporation.
|
|
404
|
+
|
|
405
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
406
|
+
purpose with or without fee is hereby granted.
|
|
407
|
+
|
|
408
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
409
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
410
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
411
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
412
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
413
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
414
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
415
|
+
***************************************************************************** */
|
|
416
|
+
|
|
417
|
+
var __assign = function() {
|
|
418
|
+
__assign = Object.assign || function __assign(t) {
|
|
419
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
420
|
+
s = arguments[i];
|
|
421
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
422
|
+
}
|
|
423
|
+
return t;
|
|
424
|
+
};
|
|
425
|
+
return __assign.apply(this, arguments);
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
function __rest(s, e) {
|
|
429
|
+
var t = {};
|
|
430
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
431
|
+
t[p] = s[p];
|
|
432
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
433
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
434
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
435
|
+
t[p[i]] = s[p[i]];
|
|
436
|
+
}
|
|
437
|
+
return t;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
var compileReactIconProperties = function (_a) {
|
|
441
|
+
var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
|
|
442
|
+
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
443
|
+
if (!ICON_COLOR_PROP_NAMES.includes(attrName) && attrName !== 'name') {
|
|
444
|
+
newAttributes[attrName] =
|
|
445
|
+
attributes[attrName];
|
|
446
|
+
}
|
|
447
|
+
return newAttributes;
|
|
448
|
+
}, {});
|
|
449
|
+
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
450
|
+
__html: body,
|
|
451
|
+
} }, filteredAttributes);
|
|
452
|
+
if (attributes.className) {
|
|
453
|
+
compiledClasses.push(attributes.className);
|
|
454
|
+
}
|
|
455
|
+
if (compiledClasses.length) {
|
|
456
|
+
componentProps.className = compiledClasses.join(' ');
|
|
457
|
+
}
|
|
458
|
+
return componentProps;
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
/* <windicss-keep class=""> */
|
|
463
|
+
|
|
464
|
+
var compileProps = function (_a) {
|
|
465
|
+
var status = _a.status, statuses = _a.statuses, className = _a.className, size = _a.size;
|
|
466
|
+
var statusInfo = status ? statuses[status] : statuses.placeholder;
|
|
467
|
+
var iconInfo = status ? statuses$3[status] : statuses$3.placeholder;
|
|
468
|
+
var _b = statusInfo["size".concat(size, "Icon")], iconData = _b.data, name = _b.name;
|
|
469
|
+
var classes = "inline-block ".concat(className || '');
|
|
470
|
+
var compiledClasses = getComponentAttributes({
|
|
471
|
+
name: name,
|
|
472
|
+
strokeColor: iconInfo.color,
|
|
473
|
+
size: size,
|
|
474
|
+
availableSizes: [size],
|
|
475
|
+
fillColor: iconInfo.secondaryColor,
|
|
476
|
+
}).compiledClasses;
|
|
477
|
+
return compileReactIconProperties({
|
|
478
|
+
body: iconData,
|
|
479
|
+
compiledClasses: __spreadArray(__spreadArray([], compiledClasses, true), [classes], false),
|
|
480
|
+
size: size,
|
|
481
|
+
});
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
var OutlineStatusIcon = function (_a) {
|
|
485
|
+
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest$1(_a, ["size", "status"]);
|
|
486
|
+
return React.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
|
|
487
|
+
status: status,
|
|
488
|
+
statuses: statuses$2,
|
|
489
|
+
className: rest.className,
|
|
490
|
+
size: size,
|
|
491
|
+
})));
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
var SimpleStatusIcon = function (_a) {
|
|
495
|
+
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest$1(_a, ["size", "status"]);
|
|
496
|
+
return React.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
|
|
497
|
+
status: status,
|
|
498
|
+
statuses: statuses$1,
|
|
499
|
+
className: rest.className,
|
|
500
|
+
size: size,
|
|
501
|
+
})));
|
|
502
|
+
};
|
|
503
|
+
|
|
504
504
|
var SolidStatusIcon = function (_a) {
|
|
505
505
|
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest$1(_a, ["size", "status"]);
|
|
506
506
|
return React.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
|
|
@@ -525,4 +525,4 @@ var StatusIcon = function (_a) {
|
|
|
525
525
|
export { OutlineStatusIcon, SimpleStatusIcon, SolidStatusIcon, StatusIcon as default };
|
|
526
526
|
//# sourceMappingURL=index.es.mjs.map
|
|
527
527
|
|
|
528
|
-
/* <windicss-keep class="outline inline-block
|
|
528
|
+
/* <windicss-keep class="outline inline-block"> */
|