@ant-design/icons 5.6.0 → 5.6.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/es/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { AbstractNode, IconDefinition } from '@ant-design/icons-svg/lib/types';
2
- import React from 'react';
3
2
  import type { CSSProperties, MouseEventHandler, MutableRefObject, ReactNode } from 'react';
3
+ import React from 'react';
4
4
  export declare function warning(valid: boolean, message: string): void;
5
5
  export declare function isIconDefinition(target: any): target is IconDefinition;
6
6
  export declare function normalizeAttrs(attrs?: Attrs): Attrs;
package/es/utils.js CHANGED
@@ -84,7 +84,7 @@ export var useInsertStyles = function useInsertStyles(eleRef) {
84
84
  var ele = eleRef.current;
85
85
  var shadowRoot = getShadowRoot(ele);
86
86
  updateCSS(mergedStyleStr, '@ant-design-icons', {
87
- prepend: true,
87
+ prepend: !layer,
88
88
  csp: csp,
89
89
  attachTo: shadowRoot
90
90
  });
package/lib/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { AbstractNode, IconDefinition } from '@ant-design/icons-svg/lib/types';
2
- import React from 'react';
3
2
  import type { CSSProperties, MouseEventHandler, MutableRefObject, ReactNode } from 'react';
3
+ import React from 'react';
4
4
  export declare function warning(valid: boolean, message: string): void;
5
5
  export declare function isIconDefinition(target: any): target is IconDefinition;
6
6
  export declare function normalizeAttrs(attrs?: Attrs): Attrs;
package/lib/utils.js CHANGED
@@ -99,7 +99,7 @@ var useInsertStyles = exports.useInsertStyles = function useInsertStyles(eleRef)
99
99
  var ele = eleRef.current;
100
100
  var shadowRoot = (0, _shadow.getShadowRoot)(ele);
101
101
  (0, _dynamicCSS.updateCSS)(mergedStyleStr, '@ant-design-icons', {
102
- prepend: true,
102
+ prepend: !layer,
103
103
  csp: csp,
104
104
  attachTo: shadowRoot
105
105
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ant-design/icons",
3
- "version": "5.6.0",
3
+ "version": "5.6.1",
4
4
  "repository": "https://github.com/ant-design/ant-design-icons/tree/master/packages/icons-react",
5
5
  "license": "MIT",
6
6
  "contributors": [