@tamagui/slider 1.0.1-beta.100
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/dist/cjs/Slider.js +456 -0
- package/dist/cjs/Slider.js.map +7 -0
- package/dist/cjs/SliderImpl.js +163 -0
- package/dist/cjs/SliderImpl.js.map +7 -0
- package/dist/cjs/constants.js +62 -0
- package/dist/cjs/constants.js.map +7 -0
- package/dist/cjs/helpers.js +101 -0
- package/dist/cjs/helpers.js.map +7 -0
- package/dist/cjs/index.js +32 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/types.js +16 -0
- package/dist/cjs/types.js.map +7 -0
- package/dist/esm/Slider.js +448 -0
- package/dist/esm/Slider.js.map +7 -0
- package/dist/esm/SliderImpl.js +137 -0
- package/dist/esm/SliderImpl.js.map +7 -0
- package/dist/esm/constants.js +30 -0
- package/dist/esm/constants.js.map +7 -0
- package/dist/esm/helpers.js +70 -0
- package/dist/esm/helpers.js.map +7 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/types.js.map +7 -0
- package/dist/jsx/Slider.js +324 -0
- package/dist/jsx/Slider.js.map +7 -0
- package/dist/jsx/SliderImpl.js +84 -0
- package/dist/jsx/SliderImpl.js.map +7 -0
- package/dist/jsx/constants.js +30 -0
- package/dist/jsx/constants.js.map +7 -0
- package/dist/jsx/helpers.js +70 -0
- package/dist/jsx/helpers.js.map +7 -0
- package/dist/jsx/index.js +7 -0
- package/dist/jsx/index.js.map +7 -0
- package/dist/jsx/types.js +1 -0
- package/dist/jsx/types.js.map +7 -0
- package/package.json +46 -0
- package/src/Slider.tsx +592 -0
- package/src/SliderImpl.tsx +118 -0
- package/src/constants.tsx +32 -0
- package/src/helpers.tsx +100 -0
- package/src/index.ts +9 -0
- package/src/types.ts +75 -0
- package/types/Slider.d.ts +357 -0
- package/types/Slider.d.ts.map +1 -0
- package/types/SliderImpl.d.ts +55 -0
- package/types/SliderImpl.d.ts.map +1 -0
- package/types/constants.d.ts +52 -0
- package/types/constants.d.ts.map +1 -0
- package/types/helpers.d.ts +10 -0
- package/types/helpers.d.ts.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -0
- package/types/types.d.ts +68 -0
- package/types/types.d.ts.map +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SizeTokens } from '@tamagui/core'
|
|
2
|
+
import { createContextScope } from '@tamagui/create-context'
|
|
3
|
+
|
|
4
|
+
import { Direction, SliderContextValue } from './types'
|
|
5
|
+
|
|
6
|
+
export const SLIDER_NAME = 'Slider'
|
|
7
|
+
|
|
8
|
+
export const [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME)
|
|
9
|
+
|
|
10
|
+
export const [SliderProvider, useSliderContext] =
|
|
11
|
+
createSliderContext<SliderContextValue>(SLIDER_NAME)
|
|
12
|
+
|
|
13
|
+
export const [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext<{
|
|
14
|
+
startEdge: 'bottom' | 'left' | 'right'
|
|
15
|
+
endEdge: 'top' | 'right' | 'left'
|
|
16
|
+
sizeProp: 'width' | 'height'
|
|
17
|
+
size: number | SizeTokens
|
|
18
|
+
direction: number
|
|
19
|
+
}>(SLIDER_NAME, {
|
|
20
|
+
startEdge: 'left',
|
|
21
|
+
endEdge: 'right',
|
|
22
|
+
sizeProp: 'width',
|
|
23
|
+
size: 0,
|
|
24
|
+
direction: 1,
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
export const PAGE_KEYS = ['PageUp', 'PageDown']
|
|
28
|
+
export const ARROW_KEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight']
|
|
29
|
+
export const BACK_KEYS: Record<Direction, string[]> = {
|
|
30
|
+
ltr: ['ArrowDown', 'Home', 'ArrowLeft', 'PageDown'],
|
|
31
|
+
rtl: ['ArrowDown', 'Home', 'ArrowRight', 'PageDown'],
|
|
32
|
+
}
|
package/src/helpers.tsx
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export function getNextSortedValues(prevValues: number[] = [], nextValue: number, atIndex: number) {
|
|
2
|
+
const nextValues = [...prevValues]
|
|
3
|
+
nextValues[atIndex] = nextValue
|
|
4
|
+
return nextValues.sort((a, b) => a - b)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function convertValueToPercentage(value: number, min: number, max: number) {
|
|
8
|
+
const maxSteps = max - min
|
|
9
|
+
const percentPerStep = 100 / maxSteps
|
|
10
|
+
return percentPerStep * (value - min)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Returns a label for each thumb when there are two or more thumbs
|
|
15
|
+
*/
|
|
16
|
+
export function getLabel(index: number, totalValues: number) {
|
|
17
|
+
if (totalValues > 2) {
|
|
18
|
+
return `Value ${index + 1} of ${totalValues}`
|
|
19
|
+
} else if (totalValues === 2) {
|
|
20
|
+
return ['Minimum', 'Maximum'][index]
|
|
21
|
+
} else {
|
|
22
|
+
return undefined
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Given a `values` array and a `nextValue`, determine which value in
|
|
28
|
+
* the array is closest to `nextValue` and return its index.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* // returns 1
|
|
32
|
+
* getClosestValueIndex([10, 30], 25);
|
|
33
|
+
*/
|
|
34
|
+
export function getClosestValueIndex(values: number[], nextValue: number) {
|
|
35
|
+
if (values.length === 1) return 0
|
|
36
|
+
const distances = values.map((value) => Math.abs(value - nextValue))
|
|
37
|
+
const closestDistance = Math.min(...distances)
|
|
38
|
+
return distances.indexOf(closestDistance)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Offsets the thumb centre point while sliding to ensure it remains
|
|
43
|
+
* within the bounds of the slider when reaching the edges
|
|
44
|
+
*/
|
|
45
|
+
export function getThumbInBoundsOffset(width: number, left: number, direction: number) {
|
|
46
|
+
const halfWidth = width / 2
|
|
47
|
+
const halfPercent = 50
|
|
48
|
+
const offset = linearScale([0, halfPercent], [0, halfWidth])
|
|
49
|
+
return (halfWidth - offset(left) * direction) * direction
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Gets an array of steps between each value.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* // returns [1, 9]
|
|
57
|
+
* getStepsBetweenValues([10, 11, 20]);
|
|
58
|
+
*/
|
|
59
|
+
function getStepsBetweenValues(values: number[]) {
|
|
60
|
+
return values.slice(0, -1).map((value, index) => values[index + 1] - value)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Verifies the minimum steps between all values is greater than or equal
|
|
65
|
+
* to the expected minimum steps.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* // returns false
|
|
69
|
+
* hasMinStepsBetweenValues([1,2,3], 2);
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* // returns true
|
|
73
|
+
* hasMinStepsBetweenValues([1,2,3], 1);
|
|
74
|
+
*/
|
|
75
|
+
export function hasMinStepsBetweenValues(values: number[], minStepsBetweenValues: number) {
|
|
76
|
+
if (minStepsBetweenValues > 0) {
|
|
77
|
+
const stepsBetweenValues = getStepsBetweenValues(values)
|
|
78
|
+
const actualMinStepsBetweenValues = Math.min(...stepsBetweenValues)
|
|
79
|
+
return actualMinStepsBetweenValues >= minStepsBetweenValues
|
|
80
|
+
}
|
|
81
|
+
return true
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// https://github.com/tmcw-up-for-adoption/simple-linear-scale/blob/master/index.js
|
|
85
|
+
export function linearScale(input: readonly [number, number], output: readonly [number, number]) {
|
|
86
|
+
return (value: number) => {
|
|
87
|
+
if (input[0] === input[1] || output[0] === output[1]) return output[0]
|
|
88
|
+
const ratio = (output[1] - output[0]) / (input[1] - input[0])
|
|
89
|
+
return output[0] + ratio * (value - input[0])
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function getDecimalCount(value: number) {
|
|
94
|
+
return (String(value).split('.')[1] || '').length
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function roundValue(value: number, decimalCount: number) {
|
|
98
|
+
const rounder = Math.pow(10, decimalCount)
|
|
99
|
+
return Math.round(value * rounder) / rounder
|
|
100
|
+
}
|
package/src/index.ts
ADDED
package/src/types.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { GestureReponderEvent, SizeTokens } from '@tamagui/core'
|
|
2
|
+
import type { Scope } from '@tamagui/create-context'
|
|
3
|
+
import type { SizableStackProps } from '@tamagui/stacks'
|
|
4
|
+
|
|
5
|
+
export type ScopedProps<P> = P & { __scopeSlider?: Scope }
|
|
6
|
+
|
|
7
|
+
export type Direction = 'ltr' | 'rtl'
|
|
8
|
+
|
|
9
|
+
type SliderImplPrivateProps = {
|
|
10
|
+
onSlideStart(event: GestureReponderEvent, target: 'thumb' | 'track'): void
|
|
11
|
+
onSlideMove(event: GestureReponderEvent): void
|
|
12
|
+
onSlideEnd(event: GestureReponderEvent): void
|
|
13
|
+
onHomeKeyDown(event: React.KeyboardEvent): void
|
|
14
|
+
onEndKeyDown(event: React.KeyboardEvent): void
|
|
15
|
+
onStepKeyDown(event: React.KeyboardEvent): void
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SliderTrackProps extends SizableStackProps {}
|
|
19
|
+
|
|
20
|
+
export interface SliderImplProps extends SliderTrackProps, SliderImplPrivateProps {
|
|
21
|
+
dir?: Direction
|
|
22
|
+
orientation: 'horizontal' | 'vertical'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type SliderOrientationPrivateProps = {
|
|
26
|
+
min: number
|
|
27
|
+
max: number
|
|
28
|
+
onSlideStart?(value: number, target: 'thumb' | 'track'): void
|
|
29
|
+
onSlideMove?(value: number): void
|
|
30
|
+
onHomeKeyDown(event: React.KeyboardEvent): void
|
|
31
|
+
onEndKeyDown(event: React.KeyboardEvent): void
|
|
32
|
+
onStepKeyDown(step: { event: React.KeyboardEvent; direction: number }): void
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface SliderOrientationProps
|
|
36
|
+
extends Omit<SliderImplProps, keyof SliderImplPrivateProps | 'orientation'>,
|
|
37
|
+
SliderOrientationPrivateProps {}
|
|
38
|
+
|
|
39
|
+
export interface SliderHorizontalProps extends SliderOrientationProps {
|
|
40
|
+
dir?: Direction
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface SliderVerticalProps extends SliderOrientationProps {
|
|
44
|
+
dir?: Direction
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface SliderProps
|
|
48
|
+
extends Omit<
|
|
49
|
+
SliderHorizontalProps | SliderVerticalProps,
|
|
50
|
+
keyof SliderOrientationPrivateProps | 'defaultValue'
|
|
51
|
+
> {
|
|
52
|
+
size?: SizeTokens
|
|
53
|
+
name?: string
|
|
54
|
+
disabled?: boolean
|
|
55
|
+
orientation?: React.AriaAttributes['aria-orientation']
|
|
56
|
+
dir?: Direction
|
|
57
|
+
min?: number
|
|
58
|
+
max?: number
|
|
59
|
+
step?: number
|
|
60
|
+
minStepsBetweenThumbs?: number
|
|
61
|
+
value?: number[]
|
|
62
|
+
defaultValue?: number[]
|
|
63
|
+
onValueChange?(value: number[]): void
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type SliderContextValue = {
|
|
67
|
+
size?: SizeTokens | number | null
|
|
68
|
+
disabled?: boolean
|
|
69
|
+
min: number
|
|
70
|
+
max: number
|
|
71
|
+
values: number[]
|
|
72
|
+
valueIndexToChangeRef: React.MutableRefObject<number>
|
|
73
|
+
thumbs: Set<any>
|
|
74
|
+
orientation: SliderProps['orientation']
|
|
75
|
+
}
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { GetProps, SizeTokens } from '@tamagui/core';
|
|
2
|
+
import { SizableStackProps } from '@tamagui/stacks';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { SliderProps, SliderTrackProps } from './types';
|
|
6
|
+
declare type SliderTrackElement = HTMLElement | View;
|
|
7
|
+
export declare const SliderTrackFrame: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
8
|
+
readonly fullscreen?: boolean | undefined;
|
|
9
|
+
readonly elevation?: SizeTokens | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
12
|
+
}, "size"> & {
|
|
13
|
+
size?: any;
|
|
14
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
15
|
+
readonly fullscreen?: boolean | undefined;
|
|
16
|
+
readonly elevation?: SizeTokens | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
19
|
+
}, "size"> & {
|
|
20
|
+
size?: any;
|
|
21
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
22
|
+
readonly fullscreen?: boolean | undefined;
|
|
23
|
+
readonly elevation?: SizeTokens | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
26
|
+
}, "size"> & {
|
|
27
|
+
size?: any;
|
|
28
|
+
}>>) | (Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
29
|
+
readonly fullscreen?: boolean | undefined;
|
|
30
|
+
readonly elevation?: SizeTokens | undefined;
|
|
31
|
+
} & {
|
|
32
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
size?: any;
|
|
35
|
+
}, string | number> & {
|
|
36
|
+
[x: string]: undefined;
|
|
37
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
38
|
+
readonly fullscreen?: boolean | undefined;
|
|
39
|
+
readonly elevation?: SizeTokens | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
size?: any;
|
|
44
|
+
}, string | number> & {
|
|
45
|
+
[x: string]: undefined;
|
|
46
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
47
|
+
readonly fullscreen?: boolean | undefined;
|
|
48
|
+
readonly elevation?: SizeTokens | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
size?: any;
|
|
53
|
+
}, string | number> & {
|
|
54
|
+
[x: string]: undefined;
|
|
55
|
+
}>>), any, import("@tamagui/core").StackPropsBase, {
|
|
56
|
+
readonly fullscreen?: boolean | undefined;
|
|
57
|
+
readonly elevation?: SizeTokens | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
60
|
+
} & {
|
|
61
|
+
size?: any;
|
|
62
|
+
} & ({} | {
|
|
63
|
+
[x: string]: undefined;
|
|
64
|
+
})>;
|
|
65
|
+
declare const SliderTrack: React.ForwardRefExoticComponent<SliderTrackProps & React.RefAttributes<SliderTrackElement>>;
|
|
66
|
+
export declare const SliderTrackActiveFrame: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
67
|
+
readonly fullscreen?: boolean | undefined;
|
|
68
|
+
readonly elevation?: SizeTokens | undefined;
|
|
69
|
+
} & {
|
|
70
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
71
|
+
}, "size"> & {
|
|
72
|
+
size?: any;
|
|
73
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
74
|
+
readonly fullscreen?: boolean | undefined;
|
|
75
|
+
readonly elevation?: SizeTokens | undefined;
|
|
76
|
+
} & {
|
|
77
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
78
|
+
}, "size"> & {
|
|
79
|
+
size?: any;
|
|
80
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
81
|
+
readonly fullscreen?: boolean | undefined;
|
|
82
|
+
readonly elevation?: SizeTokens | undefined;
|
|
83
|
+
} & {
|
|
84
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
85
|
+
}, "size"> & {
|
|
86
|
+
size?: any;
|
|
87
|
+
}>>) | (Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
88
|
+
readonly fullscreen?: boolean | undefined;
|
|
89
|
+
readonly elevation?: SizeTokens | undefined;
|
|
90
|
+
} & {
|
|
91
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
92
|
+
} & {
|
|
93
|
+
size?: any;
|
|
94
|
+
}, string | number> & {
|
|
95
|
+
[x: string]: undefined;
|
|
96
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
97
|
+
readonly fullscreen?: boolean | undefined;
|
|
98
|
+
readonly elevation?: SizeTokens | undefined;
|
|
99
|
+
} & {
|
|
100
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
101
|
+
} & {
|
|
102
|
+
size?: any;
|
|
103
|
+
}, string | number> & {
|
|
104
|
+
[x: string]: undefined;
|
|
105
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
106
|
+
readonly fullscreen?: boolean | undefined;
|
|
107
|
+
readonly elevation?: SizeTokens | undefined;
|
|
108
|
+
} & {
|
|
109
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
110
|
+
} & {
|
|
111
|
+
size?: any;
|
|
112
|
+
}, string | number> & {
|
|
113
|
+
[x: string]: undefined;
|
|
114
|
+
}>>), any, import("@tamagui/core").StackPropsBase, {
|
|
115
|
+
readonly fullscreen?: boolean | undefined;
|
|
116
|
+
readonly elevation?: SizeTokens | undefined;
|
|
117
|
+
} & {
|
|
118
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
119
|
+
} & {
|
|
120
|
+
size?: any;
|
|
121
|
+
} & ({} | {
|
|
122
|
+
[x: string]: undefined;
|
|
123
|
+
})>;
|
|
124
|
+
declare type SliderTrackActiveProps = GetProps<typeof SliderTrackActiveFrame>;
|
|
125
|
+
declare const SliderTrackActive: React.ForwardRefExoticComponent<((Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
126
|
+
readonly fullscreen?: boolean | undefined;
|
|
127
|
+
readonly elevation?: SizeTokens | undefined;
|
|
128
|
+
} & {
|
|
129
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
130
|
+
}, "size"> & {
|
|
131
|
+
size?: any;
|
|
132
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
133
|
+
readonly fullscreen?: boolean | undefined;
|
|
134
|
+
readonly elevation?: SizeTokens | undefined;
|
|
135
|
+
} & {
|
|
136
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
137
|
+
}, "size"> & {
|
|
138
|
+
size?: any;
|
|
139
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
140
|
+
readonly fullscreen?: boolean | undefined;
|
|
141
|
+
readonly elevation?: SizeTokens | undefined;
|
|
142
|
+
} & {
|
|
143
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
144
|
+
}, "size"> & {
|
|
145
|
+
size?: any;
|
|
146
|
+
}>>) | Pick<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
147
|
+
readonly fullscreen?: boolean | undefined;
|
|
148
|
+
readonly elevation?: SizeTokens | undefined;
|
|
149
|
+
} & {
|
|
150
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
151
|
+
} & {
|
|
152
|
+
size?: any;
|
|
153
|
+
}, string | number> & {
|
|
154
|
+
[x: string]: undefined;
|
|
155
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
156
|
+
readonly fullscreen?: boolean | undefined;
|
|
157
|
+
readonly elevation?: SizeTokens | undefined;
|
|
158
|
+
} & {
|
|
159
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
160
|
+
} & {
|
|
161
|
+
size?: any;
|
|
162
|
+
}, string | number> & {
|
|
163
|
+
[x: string]: undefined;
|
|
164
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
165
|
+
readonly fullscreen?: boolean | undefined;
|
|
166
|
+
readonly elevation?: SizeTokens | undefined;
|
|
167
|
+
} & {
|
|
168
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
169
|
+
} & {
|
|
170
|
+
size?: any;
|
|
171
|
+
}, string | number> & {
|
|
172
|
+
[x: string]: undefined;
|
|
173
|
+
}>>, string | number>) & React.RefAttributes<View>>;
|
|
174
|
+
export declare const SliderThumbFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
175
|
+
readonly fullscreen?: boolean | undefined;
|
|
176
|
+
readonly elevation?: SizeTokens | undefined;
|
|
177
|
+
} & {
|
|
178
|
+
fontFamily?: unknown;
|
|
179
|
+
backgrounded?: boolean | undefined;
|
|
180
|
+
radiused?: boolean | undefined;
|
|
181
|
+
hoverTheme?: boolean | undefined;
|
|
182
|
+
pressTheme?: boolean | undefined;
|
|
183
|
+
focusTheme?: boolean | undefined;
|
|
184
|
+
circular?: boolean | undefined;
|
|
185
|
+
padded?: boolean | undefined;
|
|
186
|
+
elevate?: boolean | undefined;
|
|
187
|
+
bordered?: number | boolean | undefined;
|
|
188
|
+
transparent?: boolean | undefined;
|
|
189
|
+
chromeless?: boolean | undefined;
|
|
190
|
+
}, "size"> & {
|
|
191
|
+
size?: SizeTokens | undefined;
|
|
192
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
193
|
+
readonly fullscreen?: boolean | undefined;
|
|
194
|
+
readonly elevation?: SizeTokens | undefined;
|
|
195
|
+
} & {
|
|
196
|
+
fontFamily?: unknown;
|
|
197
|
+
backgrounded?: boolean | undefined;
|
|
198
|
+
radiused?: boolean | undefined;
|
|
199
|
+
hoverTheme?: boolean | undefined;
|
|
200
|
+
pressTheme?: boolean | undefined;
|
|
201
|
+
focusTheme?: boolean | undefined;
|
|
202
|
+
circular?: boolean | undefined;
|
|
203
|
+
padded?: boolean | undefined;
|
|
204
|
+
elevate?: boolean | undefined;
|
|
205
|
+
bordered?: number | boolean | undefined;
|
|
206
|
+
transparent?: boolean | undefined;
|
|
207
|
+
chromeless?: boolean | undefined;
|
|
208
|
+
}, "size"> & {
|
|
209
|
+
size?: SizeTokens | undefined;
|
|
210
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
211
|
+
readonly fullscreen?: boolean | undefined;
|
|
212
|
+
readonly elevation?: SizeTokens | undefined;
|
|
213
|
+
} & {
|
|
214
|
+
fontFamily?: unknown;
|
|
215
|
+
backgrounded?: boolean | undefined;
|
|
216
|
+
radiused?: boolean | undefined;
|
|
217
|
+
hoverTheme?: boolean | undefined;
|
|
218
|
+
pressTheme?: boolean | undefined;
|
|
219
|
+
focusTheme?: boolean | undefined;
|
|
220
|
+
circular?: boolean | undefined;
|
|
221
|
+
padded?: boolean | undefined;
|
|
222
|
+
elevate?: boolean | undefined;
|
|
223
|
+
bordered?: number | boolean | undefined;
|
|
224
|
+
transparent?: boolean | undefined;
|
|
225
|
+
chromeless?: boolean | undefined;
|
|
226
|
+
}, "size"> & {
|
|
227
|
+
size?: SizeTokens | undefined;
|
|
228
|
+
}>>, any, import("@tamagui/core").StackPropsBase, {
|
|
229
|
+
readonly fullscreen?: boolean | undefined;
|
|
230
|
+
readonly elevation?: SizeTokens | undefined;
|
|
231
|
+
} & {
|
|
232
|
+
fontFamily?: unknown;
|
|
233
|
+
backgrounded?: boolean | undefined;
|
|
234
|
+
radiused?: boolean | undefined;
|
|
235
|
+
hoverTheme?: boolean | undefined;
|
|
236
|
+
pressTheme?: boolean | undefined;
|
|
237
|
+
focusTheme?: boolean | undefined;
|
|
238
|
+
circular?: boolean | undefined;
|
|
239
|
+
padded?: boolean | undefined;
|
|
240
|
+
elevate?: boolean | undefined;
|
|
241
|
+
bordered?: number | boolean | undefined;
|
|
242
|
+
transparent?: boolean | undefined;
|
|
243
|
+
chromeless?: boolean | undefined;
|
|
244
|
+
} & {
|
|
245
|
+
size?: SizeTokens | undefined;
|
|
246
|
+
}>;
|
|
247
|
+
interface SliderThumbProps extends SizableStackProps {
|
|
248
|
+
index: number;
|
|
249
|
+
}
|
|
250
|
+
declare const SliderThumb: React.ForwardRefExoticComponent<SliderThumbProps & React.RefAttributes<View>>;
|
|
251
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<View>> & {
|
|
252
|
+
Track: React.ForwardRefExoticComponent<SliderTrackProps & React.RefAttributes<SliderTrackElement>>;
|
|
253
|
+
TrackActive: React.ForwardRefExoticComponent<((Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
254
|
+
readonly fullscreen?: boolean | undefined;
|
|
255
|
+
readonly elevation?: SizeTokens | undefined;
|
|
256
|
+
} & {
|
|
257
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
258
|
+
}, "size"> & {
|
|
259
|
+
size?: any;
|
|
260
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
261
|
+
readonly fullscreen?: boolean | undefined;
|
|
262
|
+
readonly elevation?: SizeTokens | undefined;
|
|
263
|
+
} & {
|
|
264
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
265
|
+
}, "size"> & {
|
|
266
|
+
size?: any;
|
|
267
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
268
|
+
readonly fullscreen?: boolean | undefined;
|
|
269
|
+
readonly elevation?: SizeTokens | undefined;
|
|
270
|
+
} & {
|
|
271
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
272
|
+
}, "size"> & {
|
|
273
|
+
size?: any;
|
|
274
|
+
}>>) | Pick<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
275
|
+
readonly fullscreen?: boolean | undefined;
|
|
276
|
+
readonly elevation?: SizeTokens | undefined;
|
|
277
|
+
} & {
|
|
278
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
279
|
+
} & {
|
|
280
|
+
size?: any;
|
|
281
|
+
}, string | number> & {
|
|
282
|
+
[x: string]: undefined;
|
|
283
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
284
|
+
readonly fullscreen?: boolean | undefined;
|
|
285
|
+
readonly elevation?: SizeTokens | undefined;
|
|
286
|
+
} & {
|
|
287
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
288
|
+
} & {
|
|
289
|
+
size?: any;
|
|
290
|
+
}, string | number> & {
|
|
291
|
+
[x: string]: undefined;
|
|
292
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
293
|
+
readonly fullscreen?: boolean | undefined;
|
|
294
|
+
readonly elevation?: SizeTokens | undefined;
|
|
295
|
+
} & {
|
|
296
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
297
|
+
} & {
|
|
298
|
+
size?: any;
|
|
299
|
+
}, string | number> & {
|
|
300
|
+
[x: string]: undefined;
|
|
301
|
+
}>>, string | number>) & React.RefAttributes<View>>;
|
|
302
|
+
Thumb: React.ForwardRefExoticComponent<SliderThumbProps & React.RefAttributes<View>>;
|
|
303
|
+
};
|
|
304
|
+
declare const Track: React.ForwardRefExoticComponent<SliderTrackProps & React.RefAttributes<SliderTrackElement>>;
|
|
305
|
+
declare const Range: React.ForwardRefExoticComponent<((Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
306
|
+
readonly fullscreen?: boolean | undefined;
|
|
307
|
+
readonly elevation?: SizeTokens | undefined;
|
|
308
|
+
} & {
|
|
309
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
310
|
+
}, "size"> & {
|
|
311
|
+
size?: any;
|
|
312
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
313
|
+
readonly fullscreen?: boolean | undefined;
|
|
314
|
+
readonly elevation?: SizeTokens | undefined;
|
|
315
|
+
} & {
|
|
316
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
317
|
+
}, "size"> & {
|
|
318
|
+
size?: any;
|
|
319
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
320
|
+
readonly fullscreen?: boolean | undefined;
|
|
321
|
+
readonly elevation?: SizeTokens | undefined;
|
|
322
|
+
} & {
|
|
323
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
324
|
+
}, "size"> & {
|
|
325
|
+
size?: any;
|
|
326
|
+
}>>) | Pick<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
327
|
+
readonly fullscreen?: boolean | undefined;
|
|
328
|
+
readonly elevation?: SizeTokens | undefined;
|
|
329
|
+
} & {
|
|
330
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
331
|
+
} & {
|
|
332
|
+
size?: any;
|
|
333
|
+
}, string | number> & {
|
|
334
|
+
[x: string]: undefined;
|
|
335
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
336
|
+
readonly fullscreen?: boolean | undefined;
|
|
337
|
+
readonly elevation?: SizeTokens | undefined;
|
|
338
|
+
} & {
|
|
339
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
340
|
+
} & {
|
|
341
|
+
size?: any;
|
|
342
|
+
}, string | number> & {
|
|
343
|
+
[x: string]: undefined;
|
|
344
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
345
|
+
readonly fullscreen?: boolean | undefined;
|
|
346
|
+
readonly elevation?: SizeTokens | undefined;
|
|
347
|
+
} & {
|
|
348
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
349
|
+
} & {
|
|
350
|
+
size?: any;
|
|
351
|
+
}, string | number> & {
|
|
352
|
+
[x: string]: undefined;
|
|
353
|
+
}>>, string | number>) & React.RefAttributes<View>>;
|
|
354
|
+
declare const Thumb: React.ForwardRefExoticComponent<SliderThumbProps & React.RefAttributes<View>>;
|
|
355
|
+
export { Slider, SliderTrack, SliderTrackActive, SliderThumb, Track, Range, Thumb, };
|
|
356
|
+
export type { SliderProps, SliderTrackProps, SliderTrackActiveProps, SliderThumbProps };
|
|
357
|
+
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../src/Slider.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,UAAU,EAMX,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,iBAAiB,EAAkB,MAAM,iBAAiB,CAAA;AAGnE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAwBnC,OAAO,EAIL,WAAW,EACX,gBAAgB,EAEjB,MAAM,SAAS,CAAA;AAqIhB,aAAK,kBAAkB,GAAG,WAAW,GAAG,IAAI,CAAA;AAE5C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQ3B,CAAA;AAEF,QAAA,MAAM,WAAW,6FAehB,CAAA;AAUD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIjC,CAAA;AAEF,aAAK,sBAAsB,GAAG,QAAQ,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAqCtB,CAAA;AAsBD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB3B,CAAA;AAEF,UAAU,gBAAiB,SAAQ,iBAAiB;IAClD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,QAAA,MAAM,WAAW,+EAsFhB,CAAA;AAQD,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuIX,CAAA;AAuCD,QAAA,MAAM,KAAK,6FAAc,CAAA;AACzB,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAoB,CAAA;AAC/B,QAAA,MAAM,KAAK,+EAAc,CAAA;AAEzB,OAAO,EACL,MAAM,EACN,WAAW,EACX,iBAAiB,EACjB,WAAW,EAEX,KAAK,EACL,KAAK,EACL,KAAK,GACN,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { SliderImplProps } from './types';
|
|
4
|
+
export declare const DirectionalYStack: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
5
|
+
readonly fullscreen?: boolean | undefined;
|
|
6
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
7
|
+
}, "orientation"> & {
|
|
8
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
9
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
10
|
+
readonly fullscreen?: boolean | undefined;
|
|
11
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
12
|
+
}, "orientation"> & {
|
|
13
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
14
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
15
|
+
readonly fullscreen?: boolean | undefined;
|
|
16
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
17
|
+
}, "orientation"> & {
|
|
18
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
19
|
+
}>>, any, import("@tamagui/core").StackPropsBase, {
|
|
20
|
+
readonly fullscreen?: boolean | undefined;
|
|
21
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const SliderFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
26
|
+
readonly fullscreen?: boolean | undefined;
|
|
27
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
30
|
+
}, "size"> & {
|
|
31
|
+
size?: any;
|
|
32
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
33
|
+
readonly fullscreen?: boolean | undefined;
|
|
34
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
37
|
+
}, "size"> & {
|
|
38
|
+
size?: any;
|
|
39
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
40
|
+
readonly fullscreen?: boolean | undefined;
|
|
41
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
44
|
+
}, "size"> & {
|
|
45
|
+
size?: any;
|
|
46
|
+
}>>, any, import("@tamagui/core").StackPropsBase, {
|
|
47
|
+
readonly fullscreen?: boolean | undefined;
|
|
48
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
size?: any;
|
|
53
|
+
}>;
|
|
54
|
+
export declare const SliderImpl: React.ForwardRefExoticComponent<SliderImplProps & React.RefAttributes<View>>;
|
|
55
|
+
//# sourceMappingURL=SliderImpl.d.ts.map
|