@cypress-design/react-statusicon 0.4.7 → 0.4.9

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.
@@ -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
- created ./dist/index.umd.js, ./dist/index.es.mjs in 28.3s
11
+ created ./dist/index.umd.js, ./dist/index.es.mjs in 33s
12
12
  $ tsc --project ./tsconfig.build.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @cypress-design/react-statusicon
2
2
 
3
+ ## 0.4.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`630ad4a`](https://github.com/cypress-io/cypress-design/commit/630ad4ae2e6ba65350951949767a4ebdc4c7eb0a), [`a3a323f`](https://github.com/cypress-io/cypress-design/commit/a3a323fde7acf5e5407b298b4faa0c90314c6139)]:
8
+ - @cypress-design/react-icon@0.24.0
9
+
10
+ ## 0.4.8
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`e390827`](https://github.com/cypress-io/cypress-design/commit/e3908270ece513886c64cebcb78cebe0cd0d8c3d)]:
15
+ - @cypress-design/react-icon@0.23.0
16
+
3
17
  ## 0.4.7
4
18
 
5
19
  ### Patch Changes
@@ -6,6 +6,7 @@ export declare const compileProps: ({ status, statuses, className, size, variant
6
6
  className: string | undefined;
7
7
  variantName: string;
8
8
  }) => {
9
+ suppressHydrationWarning?: boolean | undefined;
9
10
  className: string | undefined;
10
11
  color?: string | undefined;
11
12
  height: string | number;
@@ -25,8 +26,8 @@ export declare const compileProps: ({ status, statuses, className, size, variant
25
26
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
26
27
  accentHeight?: string | number | undefined;
27
28
  accumulate?: "none" | "sum" | undefined;
28
- additive?: "replace" | "sum" | undefined;
29
- alignmentBaseline?: "alphabetic" | "hanging" | "ideographic" | "mathematical" | "inherit" | "auto" | "baseline" | "middle" | "after-edge" | "before-edge" | "central" | "text-after-edge" | "text-before-edge" | undefined;
29
+ additive?: "sum" | "replace" | undefined;
30
+ alignmentBaseline?: "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "inherit" | undefined;
30
31
  allowReorder?: "no" | "yes" | undefined;
31
32
  alphabetic?: string | number | undefined;
32
33
  amplitude?: string | number | undefined;
@@ -34,7 +35,7 @@ export declare const compileProps: ({ status, statuses, className, size, variant
34
35
  ascent?: string | number | undefined;
35
36
  attributeName?: string | undefined;
36
37
  attributeType?: string | undefined;
37
- autoReverse?: boolean | "false" | "true" | undefined;
38
+ autoReverse?: boolean | "true" | "false" | undefined;
38
39
  azimuth?: string | number | undefined;
39
40
  baseFrequency?: string | number | undefined;
40
41
  baselineShift?: string | number | undefined;
@@ -50,7 +51,7 @@ export declare const compileProps: ({ status, statuses, className, size, variant
50
51
  clipPathUnits?: string | number | undefined;
51
52
  clipRule?: string | number | undefined;
52
53
  colorInterpolation?: string | number | undefined;
53
- colorInterpolationFilters?: "inherit" | "auto" | "linearRGB" | "sRGB" | undefined;
54
+ colorInterpolationFilters?: "auto" | "inherit" | "sRGB" | "linearRGB" | undefined;
54
55
  colorProfile?: string | number | undefined;
55
56
  colorRendering?: string | number | undefined;
56
57
  contentScriptType?: string | number | undefined;
@@ -74,16 +75,16 @@ export declare const compileProps: ({ status, statuses, className, size, variant
74
75
  enableBackground?: string | number | undefined;
75
76
  end?: string | number | undefined;
76
77
  exponent?: string | number | undefined;
77
- externalResourcesRequired?: boolean | "false" | "true" | undefined;
78
+ externalResourcesRequired?: boolean | "true" | "false" | undefined;
78
79
  fill: string;
79
80
  fillOpacity?: string | number | undefined;
80
- fillRule?: "inherit" | "evenodd" | "nonzero" | undefined;
81
+ fillRule?: "inherit" | "nonzero" | "evenodd" | undefined;
81
82
  filter?: string | undefined;
82
83
  filterRes?: string | number | undefined;
83
84
  filterUnits?: string | number | undefined;
84
85
  floodColor?: string | number | undefined;
85
86
  floodOpacity?: string | number | undefined;
86
- focusable?: boolean | "auto" | "false" | "true" | undefined;
87
+ focusable?: boolean | "auto" | "true" | "false" | undefined;
87
88
  fontFamily?: string | undefined;
88
89
  fontSize?: string | number | undefined;
89
90
  fontSizeAdjust?: string | number | undefined;
@@ -163,7 +164,7 @@ export declare const compileProps: ({ status, statuses, className, size, variant
163
164
  pointsAtX?: string | number | undefined;
164
165
  pointsAtY?: string | number | undefined;
165
166
  pointsAtZ?: string | number | undefined;
166
- preserveAlpha?: boolean | "false" | "true" | undefined;
167
+ preserveAlpha?: boolean | "true" | "false" | undefined;
167
168
  preserveAspectRatio?: string | undefined;
168
169
  primitiveUnits?: string | number | undefined;
169
170
  r?: string | number | undefined;
@@ -202,8 +203,8 @@ export declare const compileProps: ({ status, statuses, className, size, variant
202
203
  stroke?: string | undefined;
203
204
  strokeDasharray?: string | number | undefined;
204
205
  strokeDashoffset?: string | number | undefined;
205
- strokeLinecap?: "inherit" | "round" | "butt" | "square" | undefined;
206
- strokeLinejoin?: "inherit" | "round" | "bevel" | "miter" | undefined;
206
+ strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
207
+ strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
207
208
  strokeMiterlimit?: string | number | undefined;
208
209
  strokeOpacity?: string | number | undefined;
209
210
  strokeWidth?: string | number | undefined;
@@ -266,47 +267,52 @@ export declare const compileProps: ({ status, statuses, className, size, variant
266
267
  z?: string | number | undefined;
267
268
  zoomAndPan?: string | undefined;
268
269
  'aria-activedescendant'?: string | undefined;
269
- 'aria-atomic'?: boolean | "false" | "true" | undefined;
270
- 'aria-autocomplete'?: "both" | "none" | "inline" | "list" | undefined;
271
- 'aria-busy'?: boolean | "false" | "true" | undefined;
272
- 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
270
+ 'aria-atomic'?: boolean | "true" | "false" | undefined;
271
+ 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
272
+ 'aria-braillelabel'?: string | undefined;
273
+ 'aria-brailleroledescription'?: string | undefined;
274
+ 'aria-busy'?: boolean | "true" | "false" | undefined;
275
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
273
276
  'aria-colcount'?: number | undefined;
274
277
  'aria-colindex'?: number | undefined;
278
+ 'aria-colindextext'?: string | undefined;
275
279
  'aria-colspan'?: number | undefined;
276
280
  'aria-controls'?: string | undefined;
277
- 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
281
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
278
282
  'aria-describedby'?: string | undefined;
283
+ 'aria-description'?: string | undefined;
279
284
  'aria-details'?: string | undefined;
280
- 'aria-disabled'?: boolean | "false" | "true" | undefined;
281
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
285
+ 'aria-disabled'?: boolean | "true" | "false" | undefined;
286
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
282
287
  'aria-errormessage'?: string | undefined;
283
- 'aria-expanded'?: boolean | "false" | "true" | undefined;
288
+ 'aria-expanded'?: boolean | "true" | "false" | undefined;
284
289
  'aria-flowto'?: string | undefined;
285
- 'aria-grabbed'?: boolean | "false" | "true" | undefined;
286
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree" | undefined;
287
- 'aria-hidden'?: boolean | "false" | "true" | undefined;
288
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
290
+ 'aria-grabbed'?: boolean | "true" | "false" | undefined;
291
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
292
+ 'aria-hidden'?: boolean | "true" | "false" | undefined;
293
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
289
294
  'aria-keyshortcuts'?: string | undefined;
290
295
  'aria-label'?: string | undefined;
291
296
  'aria-labelledby'?: string | undefined;
292
297
  'aria-level'?: number | undefined;
293
298
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
294
- 'aria-modal'?: boolean | "false" | "true" | undefined;
295
- 'aria-multiline'?: boolean | "false" | "true" | undefined;
296
- 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
299
+ 'aria-modal'?: boolean | "true" | "false" | undefined;
300
+ 'aria-multiline'?: boolean | "true" | "false" | undefined;
301
+ 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
297
302
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
298
303
  'aria-owns'?: string | undefined;
299
304
  'aria-placeholder'?: string | undefined;
300
305
  'aria-posinset'?: number | undefined;
301
- 'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
302
- 'aria-readonly'?: boolean | "false" | "true" | undefined;
303
- 'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
304
- 'aria-required'?: boolean | "false" | "true" | undefined;
306
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
307
+ 'aria-readonly'?: boolean | "true" | "false" | undefined;
308
+ 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
309
+ 'aria-required'?: boolean | "true" | "false" | undefined;
305
310
  'aria-roledescription'?: string | undefined;
306
311
  'aria-rowcount'?: number | undefined;
307
312
  'aria-rowindex'?: number | undefined;
313
+ 'aria-rowindextext'?: string | undefined;
308
314
  'aria-rowspan'?: number | undefined;
309
- 'aria-selected'?: boolean | "false" | "true" | undefined;
315
+ 'aria-selected'?: boolean | "true" | "false" | undefined;
310
316
  'aria-setsize'?: number | undefined;
311
317
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
312
318
  'aria-valuemax'?: number | undefined;
@@ -1 +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;cAOb,OAAO,MAAM,EAAE,OAAO,CAAC;eACtB,MAAM,GAAG,SAAS;iBAChB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBpB,CAAA"}
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;cAOb,OAAO,MAAM,EAAE,OAAO,CAAC;eACtB,MAAM,GAAG,SAAS;iBAChB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBpB,CAAA"}
package/dist/index.es.mjs CHANGED
@@ -16,7 +16,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
16
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
18
  ***************************************************************************** */
19
- /* global Reflect, Promise */
19
+ /* global Reflect, Promise, SuppressedError, Symbol */
20
20
 
21
21
 
22
22
  var __assign$1 = function() {
@@ -50,7 +50,12 @@ function __spreadArray(to, from, pack) {
50
50
  }
51
51
  }
52
52
  return to.concat(ar || Array.prototype.slice.call(from));
53
- }
53
+ }
54
+
55
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
56
+ var e = new Error(message);
57
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
58
+ };
54
59
 
55
60
  /**
56
61
  * This "const" is used to create the list of statuses
@@ -416,7 +421,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
416
421
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
417
422
  PERFORMANCE OF THIS SOFTWARE.
418
423
  ***************************************************************************** */
419
- /* global Reflect, Promise */
424
+ /* global Reflect, Promise, SuppressedError, Symbol */
420
425
 
421
426
 
422
427
  var __assign = function() {
@@ -440,7 +445,12 @@ function __rest(s, e) {
440
445
  t[p[i]] = s[p[i]];
441
446
  }
442
447
  return t;
443
- }
448
+ }
449
+
450
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
451
+ var e = new Error(message);
452
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
453
+ };
444
454
 
445
455
  var compileReactIconProperties = function (_a) {
446
456
  var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name"]);
@@ -454,6 +464,7 @@ var compileReactIconProperties = function (_a) {
454
464
  }
455
465
  return newAttributes;
456
466
  }, {});
467
+ // eslint-disable-next-line react-hooks/rules-of-hooks
457
468
  React.useEffect(function () {
458
469
  var iconFileId = "".concat(name, "_").concat(size);
459
470
  if (defs) {
@@ -467,7 +478,7 @@ var compileReactIconProperties = function (_a) {
467
478
  svgElement.innerHTML = defs;
468
479
  document.body.appendChild(svgElement);
469
480
  }
470
- }, [defs]);
481
+ }, [defs, name, size]);
471
482
  var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
472
483
  __html: body,
473
484
  }, className: undefined }, filteredAttributes);
@@ -481,7 +492,7 @@ var compileReactIconProperties = function (_a) {
481
492
  };
482
493
 
483
494
 
484
- /* <wind-keep class="filter"> */
495
+ /* <wind-keep class="filter icon-light-secondary icon-dark-secondary"> */
485
496
 
486
497
  var compileProps = function (_a) {
487
498
  var status = _a.status, statuses = _a.statuses, className = _a.className, size = _a.size, variantName = _a.variantName;
@@ -550,4 +561,4 @@ var StatusIcon = function (_a) {
550
561
  export { OutlineStatusIcon, SimpleStatusIcon, SolidStatusIcon, StatusIcon as default };
551
562
  //# sourceMappingURL=index.es.mjs.map
552
563
 
553
- /* <wind-keep class="outline inline-block"> */
564
+ /* <wind-keep class="outline inline-block icon-dark-indigo-400 icon-light-gray-100 icon-dark-jade-400 icon-dark-red-400 icon-dark-gray-100 icon-dark-gray-300 icon-dark-orange-400 icon-dark-gray-400"> */