@idealyst/components 1.2.82 → 1.2.85
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.85",
|
|
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.85",
|
|
60
60
|
"@mdi/js": ">=7.0.0",
|
|
61
61
|
"@mdi/react": ">=1.0.0",
|
|
62
62
|
"@react-native-vector-icons/common": ">=12.0.0",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@idealyst/blur": "^1.2.40",
|
|
110
|
-
"@idealyst/theme": "^1.2.
|
|
111
|
-
"@idealyst/tooling": "^1.2.
|
|
110
|
+
"@idealyst/theme": "^1.2.85",
|
|
111
|
+
"@idealyst/tooling": "^1.2.85",
|
|
112
112
|
"@mdi/react": "^1.6.1",
|
|
113
113
|
"@types/react": "^19.1.0",
|
|
114
114
|
"react": "^19.1.0",
|
|
@@ -194,7 +194,7 @@ const Slider = forwardRef<IdealystElement, SliderProps>(({
|
|
|
194
194
|
if (!icon) return null;
|
|
195
195
|
|
|
196
196
|
if (typeof icon === 'string' && isIconName(icon)) {
|
|
197
|
-
const iconStyle = (sliderStyles.thumbIcon as any)
|
|
197
|
+
const iconStyle = (sliderStyles.thumbIcon as any);
|
|
198
198
|
return (
|
|
199
199
|
<MaterialDesignIcons
|
|
200
200
|
name={icon}
|
|
@@ -208,8 +208,8 @@ const Slider = forwardRef<IdealystElement, SliderProps>(({
|
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
// Get dynamic styles
|
|
211
|
-
const containerStyle = (sliderStyles.container as any)
|
|
212
|
-
const trackStyle = (sliderStyles.track as any)
|
|
211
|
+
const containerStyle = (sliderStyles.container as any);
|
|
212
|
+
const trackStyle = (sliderStyles.track as any);
|
|
213
213
|
|
|
214
214
|
return (
|
|
215
215
|
<View ref={ref as any} nativeID={id} style={[containerStyle, style]} testID={testID} {...nativeA11yProps}>
|
|
@@ -231,12 +231,12 @@ const Slider = forwardRef<IdealystElement, SliderProps>(({
|
|
|
231
231
|
>
|
|
232
232
|
{/* Filled track */}
|
|
233
233
|
<Animated.View
|
|
234
|
-
style={[(sliderStyles.filledTrack as any)
|
|
234
|
+
style={[(sliderStyles.filledTrack as any), filledTrackAnimatedStyle]}
|
|
235
235
|
/>
|
|
236
236
|
|
|
237
237
|
{/* Marks */}
|
|
238
238
|
{marks.length > 0 && trackWidthState > 0 && (
|
|
239
|
-
<View style={sliderStyles.marks}>
|
|
239
|
+
<View style={sliderStyles.marks as any}>
|
|
240
240
|
{marks.map((mark) => {
|
|
241
241
|
const markPercentage = ((mark.value - min) / (max - min)) * 100;
|
|
242
242
|
const markPosition = (markPercentage / 100) * trackWidthState;
|
|
@@ -244,14 +244,14 @@ const Slider = forwardRef<IdealystElement, SliderProps>(({
|
|
|
244
244
|
<View key={mark.value}>
|
|
245
245
|
<View
|
|
246
246
|
style={[
|
|
247
|
-
sliderStyles.mark,
|
|
247
|
+
sliderStyles.mark as any,
|
|
248
248
|
{ left: markPosition },
|
|
249
249
|
]}
|
|
250
250
|
/>
|
|
251
251
|
{mark.label && (
|
|
252
252
|
<View
|
|
253
253
|
style={[
|
|
254
|
-
sliderStyles.markLabel,
|
|
254
|
+
sliderStyles.markLabel as any,
|
|
255
255
|
{ left: markPosition },
|
|
256
256
|
]}
|
|
257
257
|
>
|
|
@@ -267,7 +267,7 @@ const Slider = forwardRef<IdealystElement, SliderProps>(({
|
|
|
267
267
|
{/* Thumb */}
|
|
268
268
|
<Animated.View
|
|
269
269
|
style={[
|
|
270
|
-
(sliderStyles.thumb as any)
|
|
270
|
+
(sliderStyles.thumb as any),
|
|
271
271
|
{
|
|
272
272
|
// Manual positioning/sizing for native layout
|
|
273
273
|
position: 'absolute',
|