@cypress-design/react-statusicon 0.4.16 → 0.4.17
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 +7 -0
- package/ReadMe.md +5 -3
- package/dist/index.es.mjs +7 -3
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +7 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
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 [1m14.5s[22m[39m
|
|
12
12
|
$ tsc --project ./tsconfig.build.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @cypress-design/react-statusicon
|
|
2
2
|
|
|
3
|
+
## 0.4.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`7f9ebbb`](https://github.com/cypress-io/cypress-design/commit/7f9ebbb83744d4109498f921f7de5539ccc3b479), [`2f984a0`](https://github.com/cypress-io/cypress-design/commit/2f984a02807f344a878ac65ac9fab62bc0c9442d)]:
|
|
8
|
+
- @cypress-design/react-icon@0.32.0
|
|
9
|
+
|
|
3
10
|
## 0.4.16
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/ReadMe.md
CHANGED
|
@@ -20,15 +20,17 @@ import StatusIcon from '@cypress-design/react-statusicon'
|
|
|
20
20
|
|
|
21
21
|
The simple way of using the StatusIcon component
|
|
22
22
|
|
|
23
|
-
```tsx
|
|
23
|
+
```tsx live
|
|
24
24
|
import StatusIcon from '@cypress-design/react-statusicon'
|
|
25
25
|
|
|
26
|
-
export default () =>
|
|
26
|
+
export default () => {
|
|
27
|
+
return <StatusIcon size="16" status="failed" variant="solid" />
|
|
28
|
+
}
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
The tree-shakable way (more optimized)
|
|
30
32
|
|
|
31
|
-
```tsx
|
|
33
|
+
```tsx live
|
|
32
34
|
import { SolidStatusIcon } from '@cypress-design/react-statusicon'
|
|
33
35
|
|
|
34
36
|
export default () => <SolidStatusIcon size="16" status="failed" />
|
package/dist/index.es.mjs
CHANGED
|
@@ -482,7 +482,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
482
482
|
};
|
|
483
483
|
|
|
484
484
|
var compileReactIconProperties = function (_a) {
|
|
485
|
-
var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name"]);
|
|
485
|
+
var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, alt = _a.alt, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name", "alt"]);
|
|
486
486
|
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
487
487
|
if (!ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
488
488
|
attrName !== 'name') {
|
|
@@ -509,7 +509,11 @@ var compileReactIconProperties = function (_a) {
|
|
|
509
509
|
}
|
|
510
510
|
}, [defs, name, size]);
|
|
511
511
|
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
512
|
-
__html:
|
|
512
|
+
__html: alt
|
|
513
|
+
? "<title>".concat(alt.replace(/[><]/g, function (s) {
|
|
514
|
+
return s === '>' ? '>' : '<';
|
|
515
|
+
}), "</title>").concat(body)
|
|
516
|
+
: body,
|
|
513
517
|
}, className: undefined }, filteredAttributes);
|
|
514
518
|
if (attributes.className) {
|
|
515
519
|
compiledClasses.push(attributes.className);
|
|
@@ -521,7 +525,7 @@ var compileReactIconProperties = function (_a) {
|
|
|
521
525
|
};
|
|
522
526
|
|
|
523
527
|
|
|
524
|
-
/* <wind-keep class="filter icon-light-secondary icon-dark-secondary"> */
|
|
528
|
+
/* <wind-keep class="filter icon-light-secondary icon-dark-secondary h-1 h-2"> */
|
|
525
529
|
|
|
526
530
|
var compileProps = function (_a) {
|
|
527
531
|
var status = _a.status, statuses = _a.statuses, className = _a.className, size = _a.size, variantName = _a.variantName;
|