@idealyst/components 1.0.96 → 1.0.98
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.0.
|
|
3
|
+
"version": "1.0.98",
|
|
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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publish:npm": "npm publish"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@idealyst/theme": "^1.0.
|
|
44
|
+
"@idealyst/theme": "^1.0.98",
|
|
45
45
|
"@mdi/js": ">=7.0.0",
|
|
46
46
|
"@mdi/react": ">=1.0.0",
|
|
47
47
|
"@react-native-vector-icons/common": ">=12.0.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@idealyst/theme": "^1.0.
|
|
94
|
+
"@idealyst/theme": "^1.0.98",
|
|
95
95
|
"@mdi/react": "^1.6.1",
|
|
96
96
|
"@types/react": "^19.1.0",
|
|
97
97
|
"react": "^19.1.0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
1
|
+
import React, { ComponentRef, forwardRef, isValidElement } from 'react';
|
|
2
|
+
import { Text, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
4
|
-
import { ButtonProps } from './types';
|
|
5
4
|
import { buttonStyles } from './Button.styles';
|
|
5
|
+
import { ButtonProps } from './types';
|
|
6
6
|
|
|
7
7
|
const Button = forwardRef<ComponentRef<typeof TouchableOpacity>, ButtonProps>((props, ref) => {
|
|
8
8
|
const {
|
|
@@ -20,9 +20,9 @@ const Button = forwardRef<ComponentRef<typeof TouchableOpacity>, ButtonProps>((p
|
|
|
20
20
|
} = props;
|
|
21
21
|
|
|
22
22
|
// Compute dynamic styles
|
|
23
|
-
const buttonStyle = buttonStyles.button
|
|
24
|
-
const textStyle = buttonStyles.text
|
|
25
|
-
const iconStyle = buttonStyles.icon
|
|
23
|
+
const buttonStyle = buttonStyles.button;
|
|
24
|
+
const textStyle = buttonStyles.text;
|
|
25
|
+
const iconStyle = buttonStyles.icon;
|
|
26
26
|
|
|
27
27
|
// Map button size to icon size
|
|
28
28
|
const iconSizeMap = {
|
|
@@ -118,7 +118,7 @@ const Input = React.forwardRef<TextInput, InputProps>(({
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
return (
|
|
121
|
-
<View style={[inputStyles.container
|
|
121
|
+
<View style={[inputStyles.container, style]} testID={testID}>
|
|
122
122
|
{/* Left Icon */}
|
|
123
123
|
{leftIcon && (
|
|
124
124
|
<View style={inputStyles.leftIconContainer}>
|