@tamagui/slider 2.0.0-1769546410712 → 2.0.0-1769573246601

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.
Files changed (41) hide show
  1. package/dist/cjs/Slider.cjs +19 -22
  2. package/dist/cjs/Slider.js +39 -44
  3. package/dist/cjs/Slider.js.map +1 -1
  4. package/dist/cjs/Slider.native.js +18 -21
  5. package/dist/cjs/Slider.native.js.map +1 -1
  6. package/dist/cjs/SliderImpl.cjs +40 -26
  7. package/dist/cjs/SliderImpl.js +50 -31
  8. package/dist/cjs/SliderImpl.js.map +1 -1
  9. package/dist/cjs/SliderImpl.native.js +51 -39
  10. package/dist/cjs/SliderImpl.native.js.map +1 -1
  11. package/dist/esm/Slider.js +39 -44
  12. package/dist/esm/Slider.js.map +1 -1
  13. package/dist/esm/Slider.mjs +18 -21
  14. package/dist/esm/Slider.mjs.map +1 -1
  15. package/dist/esm/Slider.native.js +17 -20
  16. package/dist/esm/Slider.native.js.map +1 -1
  17. package/dist/esm/SliderImpl.js +50 -31
  18. package/dist/esm/SliderImpl.js.map +1 -1
  19. package/dist/esm/SliderImpl.mjs +40 -26
  20. package/dist/esm/SliderImpl.mjs.map +1 -1
  21. package/dist/esm/SliderImpl.native.js +51 -39
  22. package/dist/esm/SliderImpl.native.js.map +1 -1
  23. package/dist/jsx/Slider.js +39 -44
  24. package/dist/jsx/Slider.js.map +1 -1
  25. package/dist/jsx/Slider.mjs +18 -21
  26. package/dist/jsx/Slider.mjs.map +1 -1
  27. package/dist/jsx/Slider.native.js +18 -21
  28. package/dist/jsx/Slider.native.js.map +1 -1
  29. package/dist/jsx/SliderImpl.js +50 -31
  30. package/dist/jsx/SliderImpl.js.map +1 -1
  31. package/dist/jsx/SliderImpl.mjs +40 -26
  32. package/dist/jsx/SliderImpl.mjs.map +1 -1
  33. package/dist/jsx/SliderImpl.native.js +51 -39
  34. package/dist/jsx/SliderImpl.native.js.map +1 -1
  35. package/package.json +12 -12
  36. package/src/Slider.tsx +57 -63
  37. package/src/SliderImpl.tsx +64 -68
  38. package/types/Slider.d.ts +5 -5
  39. package/types/Slider.d.ts.map +1 -1
  40. package/types/SliderImpl.d.ts +1 -1
  41. package/types/SliderImpl.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/slider",
3
- "version": "2.0.0-1769546410712",
3
+ "version": "2.0.0-1769573246601",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -39,23 +39,23 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@tamagui/compose-refs": "2.0.0-1769546410712",
43
- "@tamagui/constants": "2.0.0-1769546410712",
44
- "@tamagui/core": "2.0.0-1769546410712",
45
- "@tamagui/create-context": "2.0.0-1769546410712",
46
- "@tamagui/get-token": "2.0.0-1769546410712",
47
- "@tamagui/helpers": "2.0.0-1769546410712",
48
- "@tamagui/stacks": "2.0.0-1769546410712",
49
- "@tamagui/use-controllable-state": "2.0.0-1769546410712",
50
- "@tamagui/use-debounce": "2.0.0-1769546410712",
51
- "@tamagui/use-direction": "2.0.0-1769546410712"
42
+ "@tamagui/compose-refs": "2.0.0-1769573246601",
43
+ "@tamagui/constants": "2.0.0-1769573246601",
44
+ "@tamagui/core": "2.0.0-1769573246601",
45
+ "@tamagui/create-context": "2.0.0-1769573246601",
46
+ "@tamagui/get-token": "2.0.0-1769573246601",
47
+ "@tamagui/helpers": "2.0.0-1769573246601",
48
+ "@tamagui/stacks": "2.0.0-1769573246601",
49
+ "@tamagui/use-controllable-state": "2.0.0-1769573246601",
50
+ "@tamagui/use-debounce": "2.0.0-1769573246601",
51
+ "@tamagui/use-direction": "2.0.0-1769573246601"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "*",
55
55
  "react-native": "*"
56
56
  },
57
57
  "devDependencies": {
58
- "@tamagui/build": "2.0.0-1769546410712",
58
+ "@tamagui/build": "2.0.0-1769573246601",
59
59
  "react": "*",
60
60
  "react-native": "0.81.5"
61
61
  },
package/src/Slider.tsx CHANGED
@@ -299,12 +299,10 @@ const SliderVertical = React.forwardRef<View, SliderVerticalProps>(
299
299
  * SliderTrack
300
300
  * -----------------------------------------------------------------------------------------------*/
301
301
 
302
- const TRACK_NAME = 'SliderTrack'
303
-
304
302
  type SliderTrackElement = TamaguiElement
305
303
 
306
304
  export const SliderTrackFrame = styled(SliderFrame, {
307
- name: 'SliderTrack',
305
+ name: 'Slider',
308
306
 
309
307
  variants: {
310
308
  unstyled: {
@@ -325,7 +323,7 @@ export const SliderTrackFrame = styled(SliderFrame, {
325
323
  })
326
324
 
327
325
  const SliderTrack = React.forwardRef<SliderTrackElement, SliderTrackProps>(
328
- (props: ScopedProps<SliderTrackProps>, forwardedRef) => {
326
+ function SliderTrack(props: ScopedProps<SliderTrackProps>, forwardedRef) {
329
327
  const { __scopeSlider, ...trackProps } = props
330
328
  const context = useSliderContext(__scopeSlider)
331
329
  return (
@@ -341,23 +339,19 @@ const SliderTrack = React.forwardRef<SliderTrackElement, SliderTrackProps>(
341
339
  }
342
340
  )
343
341
 
344
- SliderTrack.displayName = TRACK_NAME
345
-
346
342
  /* -------------------------------------------------------------------------------------------------
347
- * SliderTrackActive
343
+ * SliderActive
348
344
  * -----------------------------------------------------------------------------------------------*/
349
345
 
350
- const RANGE_NAME = 'SliderTrackActive'
351
-
352
- export const SliderTrackActiveFrame = styled(SliderFrame, {
353
- name: 'SliderTrackActive',
346
+ export const SliderActiveFrame = styled(SliderFrame, {
347
+ name: 'SliderActive',
354
348
  position: 'absolute',
355
349
  pointerEvents: 'box-none',
356
350
 
357
351
  variants: {
358
352
  unstyled: {
359
353
  false: {
360
- backgroundColor: '$backgroundActive',
354
+ backgroundColor: '$background',
361
355
  borderRadius: 100_000,
362
356
  },
363
357
  },
@@ -368,49 +362,48 @@ export const SliderTrackActiveFrame = styled(SliderFrame, {
368
362
  },
369
363
  })
370
364
 
371
- type SliderTrackActiveProps = GetProps<typeof SliderTrackActiveFrame>
372
-
373
- const SliderTrackActive = React.forwardRef<View, SliderTrackActiveProps>(
374
- (props: ScopedProps<SliderTrackActiveProps>, forwardedRef) => {
375
- const { __scopeSlider, ...rangeProps } = props
376
- const context = useSliderContext(__scopeSlider)
377
- const orientation = useSliderOrientationContext(__scopeSlider)
378
- const ref = React.useRef<View>(null)
379
- const composedRefs = useComposedRefs(forwardedRef, ref)
380
- const valuesCount = context.values.length
381
- const percentages = context.values.map((value) =>
382
- convertValueToPercentage(value, context.min, context.max)
383
- )
384
- const offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0
385
- const offsetEnd = 100 - Math.max(...percentages)
386
-
387
- return (
388
- <SliderTrackActiveFrame
389
- orientation={context.orientation}
390
- data-orientation={context.orientation}
391
- data-disabled={context.disabled ? '' : undefined}
392
- size={context.size}
393
- animateOnly={['left', 'top', 'right', 'bottom']}
394
- {...rangeProps}
395
- ref={composedRefs}
396
- {...{
397
- [orientation.startEdge]: `${offsetStart}%`,
398
- [orientation.endEdge]: `${offsetEnd}%`,
399
- }}
400
- {...(orientation.sizeProp === 'width'
401
- ? {
402
- height: '100%',
403
- }
404
- : {
405
- left: 0,
406
- right: 0,
407
- })}
408
- />
409
- )
410
- }
411
- )
412
-
413
- SliderTrackActive.displayName = RANGE_NAME
365
+ type SliderActiveProps = GetProps<typeof SliderActiveFrame>
366
+
367
+ const SliderActive = React.forwardRef<View, SliderActiveProps>(function SliderActive(
368
+ props: ScopedProps<SliderActiveProps>,
369
+ forwardedRef
370
+ ) {
371
+ const { __scopeSlider, ...rangeProps } = props
372
+ const context = useSliderContext(__scopeSlider)
373
+ const orientation = useSliderOrientationContext(__scopeSlider)
374
+ const ref = React.useRef<View>(null)
375
+ const composedRefs = useComposedRefs(forwardedRef, ref)
376
+ const valuesCount = context.values.length
377
+ const percentages = context.values.map((value) =>
378
+ convertValueToPercentage(value, context.min, context.max)
379
+ )
380
+ const offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0
381
+ const offsetEnd = 100 - Math.max(...percentages)
382
+
383
+ return (
384
+ <SliderActiveFrame
385
+ orientation={context.orientation}
386
+ data-orientation={context.orientation}
387
+ data-disabled={context.disabled ? '' : undefined}
388
+ size={context.size}
389
+ animateOnly={['left', 'top', 'right', 'bottom']}
390
+ {...rangeProps}
391
+ ref={composedRefs}
392
+ {...{
393
+ [orientation.startEdge]: `${offsetStart}%`,
394
+ [orientation.endEdge]: `${offsetEnd}%`,
395
+ }}
396
+ {...(orientation.sizeProp === 'width'
397
+ ? {
398
+ height: '100%',
399
+ }
400
+ : {
401
+ left: 0,
402
+ right: 0,
403
+ })}
404
+ />
405
+ )
406
+ })
414
407
 
415
408
  /* -------------------------------------------------------------------------------------------------
416
409
  * SliderThumb
@@ -453,14 +446,15 @@ export const SliderThumbFrame = styled(ThemeableStack, {
453
446
  backgroundColor: '$backgroundPress',
454
447
  borderColor: '$borderColorPress',
455
448
  },
456
- focusStyle: {
457
- backgroundColor: '$backgroundFocus',
458
- borderColor: '$borderColorFocus',
459
- },
460
449
  hoverStyle: {
461
450
  backgroundColor: '$backgroundHover',
462
451
  borderColor: '$borderColorHover',
463
452
  },
453
+ focusVisibleStyle: {
454
+ outlineStyle: 'solid',
455
+ outlineWidth: 2,
456
+ outlineColor: '$outlineColor',
457
+ },
464
458
  },
465
459
  },
466
460
  } as const,
@@ -730,7 +724,7 @@ const SliderComponent = React.forwardRef(
730
724
 
731
725
  const Slider = withStaticProperties(SliderComponent, {
732
726
  Track: SliderTrack,
733
- TrackActive: SliderTrackActive,
727
+ TrackActive: SliderActive,
734
728
  Thumb: SliderThumb,
735
729
  })
736
730
 
@@ -772,7 +766,7 @@ Slider.displayName = SLIDER_NAME
772
766
  /* -----------------------------------------------------------------------------------------------*/
773
767
 
774
768
  const Track = SliderTrack
775
- const Range = SliderTrackActive
769
+ const Range = SliderActive
776
770
  const Thumb = SliderThumb
777
771
 
778
772
  export {
@@ -780,10 +774,10 @@ export {
780
774
  Slider,
781
775
  SliderThumb,
782
776
  SliderTrack,
783
- SliderTrackActive,
777
+ SliderActive,
784
778
  Thumb,
785
779
  //
786
780
  Track,
787
781
  }
788
782
 
789
- export type { SliderProps, SliderTrackActiveProps, SliderTrackProps }
783
+ export type { SliderProps, SliderActiveProps, SliderTrackProps }
@@ -6,10 +6,9 @@ import { isWeb } from '@tamagui/constants'
6
6
  import type { TamaguiElement } from '@tamagui/core'
7
7
  import { getVariableValue, styled } from '@tamagui/core'
8
8
  import { getSize } from '@tamagui/get-token'
9
- import { composeEventHandlers } from '@tamagui/helpers'
10
9
  import { YStack } from '@tamagui/stacks'
11
10
  import * as React from 'react'
12
- import type { View } from 'react-native'
11
+ import { View } from 'react-native'
13
12
 
14
13
  import { ARROW_KEYS, PAGE_KEYS, SLIDER_NAME, useSliderContext } from './constants'
15
14
  import type { ScopedProps, SliderImplProps } from './types'
@@ -45,30 +44,6 @@ export const SliderFrame = styled(YStack, {
45
44
  } as const,
46
45
  })
47
46
 
48
- // export const SliderTrackFrame = styled(SliderFrame, {
49
- // // name: 'SliderTrack',
50
-
51
- // variants: {
52
- // unstyled: {
53
- // false: {
54
- // height: '100%',
55
- // width: '100%',
56
- // backgroundColor: '$background',
57
- // position: 'relative',
58
- // borderRadius: 100_000,
59
- // overflow: 'hidden',
60
- // },
61
- // },
62
- // } as const,
63
-
64
- // // defaultVariants: {
65
- // // unstyled: process.env.TAMAGUI_HEADLESS === '1' ? true : false,
66
- // // },
67
- // })
68
-
69
- // const XXXX = <SliderFrame margin={10} />
70
- // const XX = <SliderTrackFrame />
71
-
72
47
  export const SliderImpl = React.forwardRef<View, SliderImplProps>(
73
48
  (props: ScopedProps<SliderImplProps>, forwardedRef) => {
74
49
  const {
@@ -79,15 +54,63 @@ export const SliderImpl = React.forwardRef<View, SliderImplProps>(
79
54
  onHomeKeyDown,
80
55
  onEndKeyDown,
81
56
  onStepKeyDown,
57
+ children,
82
58
  ...sliderProps
83
59
  } = props
84
60
  const context = useSliderContext(__scopeSlider)
61
+
62
+ const handleResponderGrant = React.useCallback(
63
+ (event: any) => {
64
+ props.onResponderGrant?.(event)
65
+ const target = event.target as unknown as TamaguiElement | number
66
+ const thumbIndex = context.thumbs.get(target as TamaguiElement)
67
+ const isStartingOnThumb = thumbIndex !== undefined
68
+
69
+ // Prevent browser focus behaviour because we focus a thumb manually when values change.
70
+ // Touch devices have a delay before focusing so won't focus if touch immediately moves
71
+ // away from target (sliding). We want thumb to focus regardless.
72
+ if (isWeb && target instanceof HTMLElement) {
73
+ if (context.thumbs.has(target)) {
74
+ target.focus()
75
+ }
76
+ }
77
+
78
+ // Thumbs won't receive focus events on native, so we have to manually
79
+ // set the value index to change when sliding starts on a thumb.
80
+ if (!isWeb && isStartingOnThumb) {
81
+ context.valueIndexToChangeRef.current = thumbIndex
82
+ }
83
+
84
+ onSlideStart(event, isStartingOnThumb ? 'thumb' : 'track')
85
+ },
86
+ [context, onSlideStart, props.onResponderGrant]
87
+ )
88
+
89
+ const handleResponderMove = React.useCallback(
90
+ (event: any) => {
91
+ props.onResponderMove?.(event)
92
+ event.stopPropagation()
93
+ onSlideMove(event)
94
+ },
95
+ [onSlideMove, props.onResponderMove]
96
+ )
97
+
98
+ const handleResponderRelease = React.useCallback(
99
+ (event: any) => {
100
+ props.onResponderRelease?.(event)
101
+ onSlideEnd(event)
102
+ },
103
+ [onSlideEnd, props.onResponderRelease]
104
+ )
105
+
85
106
  return (
107
+ // wrap with plain RN View for responder events - tamagui views no longer handle responder events on web
108
+
86
109
  <SliderFrame
87
110
  size="$4"
111
+ ref={forwardedRef as any}
88
112
  {...sliderProps}
89
113
  data-orientation={sliderProps.orientation}
90
- ref={forwardedRef}
91
114
  {...(isWeb && {
92
115
  onKeyDown: (event) => {
93
116
  if (event.key === 'Home') {
@@ -105,47 +128,20 @@ export const SliderImpl = React.forwardRef<View, SliderImplProps>(
105
128
  }
106
129
  },
107
130
  })}
108
- onMoveShouldSetResponderCapture={() => true}
109
- onScrollShouldSetResponder={() => true}
110
- onScrollShouldSetResponderCapture={() => true}
111
- onMoveShouldSetResponder={() => true}
112
- onStartShouldSetResponder={() => true}
113
- // onStartShouldSetResponderCapture={() => true}
114
- onResponderTerminationRequest={() => {
115
- return false
116
- }}
117
- onResponderGrant={composeEventHandlers(props.onResponderGrant, (event) => {
118
- const target = event.target as unknown as TamaguiElement | number
119
- const thumbIndex = context.thumbs.get(target as TamaguiElement)
120
- const isStartingOnThumb = thumbIndex !== undefined
121
-
122
- // Prevent browser focus behaviour because we focus a thumb manually when values change.
123
- // Touch devices have a delay before focusing so won't focus if touch immediately moves
124
- // away from target (sliding). We want thumb to focus regardless.
125
- if (isWeb && target instanceof HTMLElement) {
126
- if (context.thumbs.has(target)) {
127
- target.focus()
128
- }
129
- }
130
-
131
- // Thumbs won't receive focus events on native, so we have to manually
132
- // set the value index to change when sliding starts on a thumb.
133
- if (!isWeb && isStartingOnThumb) {
134
- context.valueIndexToChangeRef.current = thumbIndex
135
- }
136
-
137
- onSlideStart(event, isStartingOnThumb ? 'thumb' : 'track')
138
- })}
139
- onResponderMove={composeEventHandlers(props.onResponderMove, (event) => {
140
- event.stopPropagation()
141
- // const target = event.target as HTMLElement
142
- onSlideMove(event)
143
- })}
144
- onResponderRelease={composeEventHandlers(props.onResponderRelease, (event) => {
145
- // const target = event.target as HTMLElement
146
- onSlideEnd(event)
147
- })}
148
- />
131
+ >
132
+ <View
133
+ onMoveShouldSetResponderCapture={() => true}
134
+ onMoveShouldSetResponder={() => true}
135
+ onStartShouldSetResponder={() => true}
136
+ onResponderTerminationRequest={() => false}
137
+ onResponderGrant={handleResponderGrant}
138
+ onResponderMove={handleResponderMove}
139
+ onResponderRelease={handleResponderRelease}
140
+ style={{ inset: 0, position: 'absolute' }}
141
+ >
142
+ {children}
143
+ </View>
144
+ </SliderFrame>
149
145
  )
150
146
  }
151
147
  )
package/types/Slider.d.ts CHANGED
@@ -41,15 +41,15 @@ declare const SliderTrack: React.ForwardRefExoticComponent<Omit<import("@tamagui
41
41
  chromeless?: boolean | "all" | undefined;
42
42
  unstyled?: boolean | undefined;
43
43
  }>> & React.RefAttributes<TamaguiElement>>;
44
- export declare const SliderTrackActiveFrame: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
44
+ export declare const SliderActiveFrame: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
45
45
  elevation?: number | SizeTokens | undefined;
46
46
  size?: any;
47
47
  fullscreen?: boolean | undefined;
48
48
  unstyled?: boolean | undefined;
49
49
  orientation?: "horizontal" | "vertical" | undefined;
50
50
  }, import("@tamagui/core").StaticConfigPublic>;
51
- type SliderTrackActiveProps = GetProps<typeof SliderTrackActiveFrame>;
52
- declare const SliderTrackActive: React.ForwardRefExoticComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase | "size" | "fullscreen" | "unstyled" | "orientation"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
51
+ type SliderActiveProps = GetProps<typeof SliderActiveFrame>;
52
+ declare const SliderActive: React.ForwardRefExoticComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase | "size" | "fullscreen" | "unstyled" | "orientation"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
53
53
  elevation?: number | SizeTokens | undefined;
54
54
  size?: any;
55
55
  fullscreen?: boolean | undefined;
@@ -251,6 +251,6 @@ declare const Thumb: import("@tamagui/core").TamaguiComponent<Omit<import("@tama
251
251
  chromeless?: boolean | "all" | undefined;
252
252
  unstyled?: boolean | undefined;
253
253
  }, import("@tamagui/core").StaticConfigPublic>;
254
- export { Range, Slider, SliderThumb, SliderTrack, SliderTrackActive, Thumb, Track, };
255
- export type { SliderProps, SliderTrackActiveProps, SliderTrackProps };
254
+ export { Range, Slider, SliderThumb, SliderTrack, SliderActive, Thumb, Track, };
255
+ export type { SliderProps, SliderActiveProps, SliderTrackProps };
256
256
  //# sourceMappingURL=Slider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../src/Slider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,QAAQ,EACR,UAAU,EACV,cAAc,EACf,MAAM,eAAe,CAAA;AAUtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAIxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAwBxC,OAAO,KAAK,EAIV,WAAW,EACX,gBAAgB,EAEjB,MAAM,SAAS,CAAA;AA0PhB,eAAO,MAAM,gBAAgB;;;;;;8CAmB3B,CAAA;AAEF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAehB,CAAA;AAUD,eAAO,MAAM,sBAAsB;;;;;;8CAiBjC,CAAA;AAEF,KAAK,sBAAsB,GAAG,QAAQ,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;gCAsCtB,CAAA;AA0BD,eAAO,MAAM,gBAAgB;;;;;;;;;;8CAkC3B,CAAA;AAEF,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB,EAAE,qBAAqB;CAAG;AAErF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;8CA+FhB,CAAA;AA6JD,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIV,CAAA;AAuCF,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAAc,CAAA;AACzB,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;gCAAoB,CAAA;AAC/B,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;8CAAc,CAAA;AAEzB,OAAO,EACL,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,KAAK,EAEL,KAAK,GACN,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,CAAA"}
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../src/Slider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,QAAQ,EACR,UAAU,EACV,cAAc,EACf,MAAM,eAAe,CAAA;AAUtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAIxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAwBxC,OAAO,KAAK,EAIV,WAAW,EACX,gBAAgB,EAEjB,MAAM,SAAS,CAAA;AAwPhB,eAAO,MAAM,gBAAgB;;;;;;8CAmB3B,CAAA;AAEF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAehB,CAAA;AAMD,eAAO,MAAM,iBAAiB;;;;;;8CAiB5B,CAAA;AAEF,KAAK,iBAAiB,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;gCAuChB,CAAA;AAwBF,eAAO,MAAM,gBAAgB;;;;;;;;;;8CAmC3B,CAAA;AAEF,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB,EAAE,qBAAqB;CAAG;AAErF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;8CA+FhB,CAAA;AA6JD,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIV,CAAA;AAuCF,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAAc,CAAA;AACzB,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;gCAAe,CAAA;AAC1B,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;8CAAc,CAAA;AAEzB,OAAO,EACL,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,YAAY,EACZ,KAAK,EAEL,KAAK,GACN,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { TamaguiElement } from '@tamagui/core';
2
2
  import * as React from 'react';
3
- import type { View } from 'react-native';
3
+ import { View } from 'react-native';
4
4
  import type { SliderImplProps } from './types';
5
5
  export declare const SliderFrame: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
6
6
  elevation?: number | import("@tamagui/core").SizeTokens | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"SliderImpl.d.ts","sourceRoot":"","sources":["../src/SliderImpl.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAKnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAGxC,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,SAAS,CAAA;AAE3D,eAAO,MAAM,WAAW;;;;;8CA6BtB,CAAA;AA0BF,eAAO,MAAM,UAAU,8EA+EtB,CAAA"}
1
+ {"version":3,"file":"SliderImpl.d.ts","sourceRoot":"","sources":["../src/SliderImpl.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAInD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAGnC,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,SAAS,CAAA;AAE3D,eAAO,MAAM,WAAW;;;;;8CA6BtB,CAAA;AAEF,eAAO,MAAM,UAAU,8EAoGtB,CAAA"}