@idealyst/components 1.2.147 → 1.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
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.
|
|
59
|
+
"@idealyst/theme": "^1.3.1",
|
|
60
60
|
"@mdi/js": ">=7.0.0",
|
|
61
61
|
"@mdi/react": ">=1.0.0",
|
|
62
62
|
"@react-native-vector-icons/common": ">=12.0.0",
|
|
@@ -111,8 +111,8 @@
|
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@idealyst/blur": "^1.2.40",
|
|
114
|
-
"@idealyst/theme": "^1.
|
|
115
|
-
"@idealyst/tooling": "^1.
|
|
114
|
+
"@idealyst/theme": "^1.3.1",
|
|
115
|
+
"@idealyst/tooling": "^1.3.1",
|
|
116
116
|
"@mdi/react": "^1.6.1",
|
|
117
117
|
"@types/react": "^19.1.0",
|
|
118
118
|
"react": "^19.1.0",
|
|
@@ -49,7 +49,7 @@ export const buttonStyles = defineStyle('Button', (theme: Theme) => ({
|
|
|
49
49
|
alignItems: 'center',
|
|
50
50
|
justifyContent: 'center',
|
|
51
51
|
borderRadius: 8,
|
|
52
|
-
fontWeight: '
|
|
52
|
+
fontWeight: '500',
|
|
53
53
|
textAlign: 'center',
|
|
54
54
|
// Inline theme accesses so Unistyles can trace them
|
|
55
55
|
backgroundColor: type === 'contained'
|
|
@@ -99,7 +99,7 @@ export const buttonStyles = defineStyle('Button', (theme: Theme) => ({
|
|
|
99
99
|
},
|
|
100
100
|
}),
|
|
101
101
|
text: ({ intent = 'primary', type = 'contained' }: ButtonDynamicProps) => ({
|
|
102
|
-
fontWeight: '
|
|
102
|
+
fontWeight: '500',
|
|
103
103
|
textAlign: 'center',
|
|
104
104
|
// Inline: contained uses contrast, others use primary
|
|
105
105
|
color: type === 'contained'
|
|
@@ -135,7 +135,7 @@ export const buttonStyles = defineStyle('Button', (theme: Theme) => ({
|
|
|
135
135
|
flexDirection: 'row' as const,
|
|
136
136
|
alignItems: 'center' as const,
|
|
137
137
|
justifyContent: 'center' as const,
|
|
138
|
-
gap:
|
|
138
|
+
gap: 10,
|
|
139
139
|
}),
|
|
140
140
|
spinner: ({ intent = 'primary', type = 'contained' }: ButtonDynamicProps) => ({
|
|
141
141
|
display: 'flex',
|
|
@@ -74,7 +74,7 @@ export const selectStyles = defineStyle('Select', (theme: Theme) => ({
|
|
|
74
74
|
borderWidth: 1,
|
|
75
75
|
borderStyle: 'solid' as const,
|
|
76
76
|
borderColor,
|
|
77
|
-
borderRadius:
|
|
77
|
+
borderRadius: theme.radii.md,
|
|
78
78
|
opacity: disabled ? 0.6 : 1,
|
|
79
79
|
backgroundColor: type === 'filled' ? theme.colors.surface.secondary : theme.colors.surface.primary,
|
|
80
80
|
variants: {
|
|
@@ -84,6 +84,7 @@ export const selectStyles = defineStyle('Select', (theme: Theme) => ({
|
|
|
84
84
|
display: 'flex',
|
|
85
85
|
width: '100%',
|
|
86
86
|
boxSizing: 'border-box',
|
|
87
|
+
textAlign: 'left',
|
|
87
88
|
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
88
89
|
border: `1px solid ${borderColor}`,
|
|
89
90
|
boxShadow: focused && !hasError ? `0 0 0 2px ${theme.intents[intent]?.primary ?? theme.intents.primary.primary}33` : 'none',
|
|
@@ -166,7 +167,7 @@ export const selectStyles = defineStyle('Select', (theme: Theme) => ({
|
|
|
166
167
|
left: 0,
|
|
167
168
|
right: 0,
|
|
168
169
|
backgroundColor: theme.colors.surface.primary,
|
|
169
|
-
borderRadius:
|
|
170
|
+
borderRadius: theme.radii.md,
|
|
170
171
|
borderWidth: 1,
|
|
171
172
|
borderStyle: 'solid' as const,
|
|
172
173
|
borderColor: theme.colors.border.primary,
|