@idealyst/components 1.2.81 → 1.2.83
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.83",
|
|
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.83",
|
|
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.83",
|
|
111
|
+
"@idealyst/tooling": "^1.2.83",
|
|
112
112
|
"@mdi/react": "^1.6.1",
|
|
113
113
|
"@types/react": "^19.1.0",
|
|
114
114
|
"react": "^19.1.0",
|
|
@@ -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}>
|
|
@@ -236,7 +236,7 @@ const Slider = forwardRef<IdealystElement, SliderProps>(({
|
|
|
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
|
>
|