@pushwoosh/kit-icons 2.3.5 → 2.3.7
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/createIconComponent.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{icon.styles.js → styles.js} +3 -1
- /package/{icon.styles.d.ts → styles.d.ts} +0 -0
package/createIconComponent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { IconBox } from './
|
|
2
|
+
import { IconBox } from './styles';
|
|
3
3
|
export function createIconComponent(name, propNames, iconMap) {
|
|
4
4
|
// Props are typed via the generic `P` (FC<P>); eslint-plugin-react can't infer them through the generic, so its runtime prop-types check is a false positive here.
|
|
5
5
|
// eslint-disable-next-line react/prop-types
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './styles';
|
|
2
2
|
export * from './icons';
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './styles';
|
|
2
2
|
export * from './icons';
|
package/package.json
CHANGED
|
@@ -6,8 +6,10 @@ export const SizeInPxByIconSizeMap = {
|
|
|
6
6
|
large: IconSizeInPx.large
|
|
7
7
|
};
|
|
8
8
|
export const IconBox = styled.div.withConfig({
|
|
9
|
+
shouldForwardProp: prop => !['view'].includes(prop)
|
|
10
|
+
}).withConfig({
|
|
9
11
|
displayName: "IconBox",
|
|
10
|
-
componentId: "sc-
|
|
12
|
+
componentId: "sc-1qff9ud-0"
|
|
11
13
|
})(["width:", ";height:", ";color:", ";line-height:0;user-select:none;&:empty{background-color:", ";}"], ({
|
|
12
14
|
size
|
|
13
15
|
}) => SizeInPxByIconSizeMap[size], ({
|
|
File without changes
|