@idealyst/components 1.2.8 → 1.2.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "Shared component library for React and React Native",
|
|
5
5
|
"documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/components#readme",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"publish:npm": "npm publish"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@idealyst/theme": "^1.2.
|
|
59
|
+
"@idealyst/theme": "^1.2.9",
|
|
60
60
|
"@mdi/js": ">=7.0.0",
|
|
61
61
|
"@mdi/react": ">=1.0.0",
|
|
62
62
|
"@react-native-vector-icons/common": ">=12.0.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@idealyst/theme": "^1.2.
|
|
109
|
+
"@idealyst/theme": "^1.2.9",
|
|
110
110
|
"@idealyst/tooling": "^1.2.4",
|
|
111
111
|
"@mdi/react": "^1.6.1",
|
|
112
112
|
"@types/react": "^19.1.0",
|
package/src/Icon/Icon.styles.tsx
CHANGED
|
@@ -45,8 +45,8 @@ export const iconStyles = defineStyle('Icon', (theme: Theme) => ({
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
// Get color - priority: intent > color > textColor > default
|
|
49
|
-
// color
|
|
48
|
+
// Get color - priority: intent > color > textColor > default (textColor="primary")
|
|
49
|
+
// When no color prop is specified, defaults to theme's primary text color
|
|
50
50
|
const iconColor = intent
|
|
51
51
|
? theme.intents[intent]?.primary
|
|
52
52
|
: color
|
package/src/Icon/types.ts
CHANGED
|
@@ -65,6 +65,9 @@ interface IconWithTextColor extends IconBaseProps {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Icon component props - accepts either `color` (palette) or `textColor` (text colors), but not both
|
|
68
|
+
* Icon component props - accepts either `color` (palette) or `textColor` (text colors), but not both.
|
|
69
|
+
*
|
|
70
|
+
* Color priority: intent > color > textColor > default (textColor="primary")
|
|
71
|
+
* When no color prop is specified, the icon defaults to the theme's primary text color.
|
|
69
72
|
*/
|
|
70
73
|
export type IconProps = IconWithColor | IconWithTextColor;
|