@tamagui/slider 1.88.12 → 1.88.14
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/LICENSE +21 -0
- package/dist/cjs/Slider.js.map +1 -1
- package/dist/cjs/Slider.native.js.map +1 -1
- package/dist/cjs/SliderImpl.js.map +1 -1
- package/dist/cjs/SliderImpl.native.js.map +1 -1
- package/dist/esm/Slider.js +1 -6
- package/dist/esm/Slider.js.map +1 -1
- package/dist/esm/Slider.mjs +439 -0
- package/dist/esm/Slider.native.js.map +1 -1
- package/dist/esm/SliderImpl.js.map +1 -1
- package/dist/esm/SliderImpl.mjs +74 -0
- package/dist/esm/SliderImpl.native.js.map +1 -1
- package/dist/esm/constants.mjs +18 -0
- package/dist/esm/helpers.mjs +47 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/types.mjs +0 -0
- package/dist/jsx/Slider.js +1 -6
- package/dist/jsx/Slider.js.map +1 -1
- package/dist/jsx/Slider.mjs +439 -0
- package/dist/jsx/Slider.native.js.map +1 -1
- package/dist/jsx/SliderImpl.js.map +1 -1
- package/dist/jsx/SliderImpl.mjs +74 -0
- package/dist/jsx/SliderImpl.native.js.map +1 -1
- package/dist/jsx/constants.mjs +18 -0
- package/dist/jsx/helpers.mjs +47 -0
- package/dist/jsx/index.mjs +3 -0
- package/dist/jsx/types.mjs +0 -0
- package/package.json +11 -11
- package/src/Slider.tsx +6 -8
- package/src/SliderImpl.tsx +4 -3
- package/src/constants.tsx +2 -2
- package/types/Slider.d.ts +4 -4
- package/types/Slider.d.ts.map +1 -1
- package/types/SliderImpl.d.ts +3 -3
- package/types/SliderImpl.d.ts.map +1 -1
- package/types/constants.d.ts +2 -2
- package/types/constants.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/slider",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.14",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tamagui/compose-refs": "1.88.
|
|
36
|
-
"@tamagui/constants": "1.88.
|
|
37
|
-
"@tamagui/core": "1.88.
|
|
38
|
-
"@tamagui/create-context": "1.88.
|
|
39
|
-
"@tamagui/get-token": "1.88.
|
|
40
|
-
"@tamagui/helpers": "1.88.
|
|
41
|
-
"@tamagui/stacks": "1.88.
|
|
42
|
-
"@tamagui/use-controllable-state": "1.88.
|
|
43
|
-
"@tamagui/use-direction": "1.88.
|
|
35
|
+
"@tamagui/compose-refs": "1.88.14",
|
|
36
|
+
"@tamagui/constants": "1.88.14",
|
|
37
|
+
"@tamagui/core": "1.88.14",
|
|
38
|
+
"@tamagui/create-context": "1.88.14",
|
|
39
|
+
"@tamagui/get-token": "1.88.14",
|
|
40
|
+
"@tamagui/helpers": "1.88.14",
|
|
41
|
+
"@tamagui/stacks": "1.88.14",
|
|
42
|
+
"@tamagui/use-controllable-state": "1.88.14",
|
|
43
|
+
"@tamagui/use-direction": "1.88.14"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "*",
|
|
47
47
|
"react-native": "*"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@tamagui/build": "1.88.
|
|
50
|
+
"@tamagui/build": "1.88.14",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-native": "^0.72.6"
|
|
53
53
|
},
|
package/src/Slider.tsx
CHANGED
|
@@ -2,24 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import { composeRefs, useComposedRefs } from '@tamagui/compose-refs'
|
|
4
4
|
import { isClient, isWeb } from '@tamagui/constants'
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
6
|
GestureReponderEvent,
|
|
7
7
|
GetProps,
|
|
8
8
|
SizeTokens,
|
|
9
9
|
TamaguiElement,
|
|
10
|
-
createShallowSetState,
|
|
11
|
-
getTokens,
|
|
12
|
-
getVariableValue,
|
|
13
|
-
styled,
|
|
14
10
|
} from '@tamagui/core'
|
|
11
|
+
import { createShallowSetState, getTokens, getVariableValue, styled } from '@tamagui/core'
|
|
15
12
|
import { getSize } from '@tamagui/get-token'
|
|
16
13
|
import { withStaticProperties } from '@tamagui/helpers'
|
|
17
14
|
import { clamp, composeEventHandlers } from '@tamagui/helpers'
|
|
18
|
-
import { SizableStackProps
|
|
15
|
+
import type { SizableStackProps } from '@tamagui/stacks'
|
|
16
|
+
import { ThemeableStack } from '@tamagui/stacks'
|
|
19
17
|
import { useControllableState } from '@tamagui/use-controllable-state'
|
|
20
18
|
import { useDirection } from '@tamagui/use-direction'
|
|
21
19
|
import * as React from 'react'
|
|
22
|
-
import { View } from 'react-native'
|
|
20
|
+
import type { View } from 'react-native'
|
|
23
21
|
|
|
24
22
|
import {
|
|
25
23
|
ARROW_KEYS,
|
|
@@ -43,7 +41,7 @@ import {
|
|
|
43
41
|
roundValue,
|
|
44
42
|
} from './helpers'
|
|
45
43
|
import { SliderFrame, SliderImpl } from './SliderImpl'
|
|
46
|
-
import {
|
|
44
|
+
import type {
|
|
47
45
|
ScopedProps,
|
|
48
46
|
SliderContextValue,
|
|
49
47
|
SliderHorizontalProps,
|
package/src/SliderImpl.tsx
CHANGED
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
* -----------------------------------------------------------------------------------------------*/
|
|
4
4
|
|
|
5
5
|
import { isWeb } from '@tamagui/constants'
|
|
6
|
-
import { TamaguiElement
|
|
6
|
+
import type { TamaguiElement } from '@tamagui/core'
|
|
7
|
+
import { getVariableValue, styled } from '@tamagui/core'
|
|
7
8
|
import { getSize } from '@tamagui/get-token'
|
|
8
9
|
import { composeEventHandlers } from '@tamagui/helpers'
|
|
9
10
|
import { YStack } from '@tamagui/stacks'
|
|
10
11
|
import * as React from 'react'
|
|
11
|
-
import { View } from 'react-native'
|
|
12
|
+
import type { View } from 'react-native'
|
|
12
13
|
|
|
13
14
|
import { ARROW_KEYS, PAGE_KEYS, SLIDER_NAME, useSliderContext } from './constants'
|
|
14
|
-
import { ScopedProps, SliderImplProps } from './types'
|
|
15
|
+
import type { ScopedProps, SliderImplProps } from './types'
|
|
15
16
|
|
|
16
17
|
export const SliderFrame = styled(YStack, {
|
|
17
18
|
position: 'relative',
|
package/src/constants.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SizeTokens } from '@tamagui/core'
|
|
1
|
+
import type { SizeTokens } from '@tamagui/core'
|
|
2
2
|
import { createContextScope } from '@tamagui/create-context'
|
|
3
3
|
|
|
4
|
-
import { Direction, SliderContextValue } from './types'
|
|
4
|
+
import type { Direction, SliderContextValue } from './types'
|
|
5
5
|
|
|
6
6
|
export const SLIDER_NAME = 'Slider'
|
|
7
7
|
|
package/types/Slider.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { GetProps, SizeTokens, TamaguiElement } from '@tamagui/core';
|
|
2
|
-
import { SizableStackProps } from '@tamagui/stacks';
|
|
1
|
+
import type { GetProps, SizeTokens, TamaguiElement } from '@tamagui/core';
|
|
2
|
+
import type { SizableStackProps } from '@tamagui/stacks';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { SliderProps, SliderTrackProps } from './types';
|
|
4
|
+
import type { View } from 'react-native';
|
|
5
|
+
import type { SliderProps, SliderTrackProps } from './types';
|
|
6
6
|
type SliderTrackElement = HTMLElement | View;
|
|
7
7
|
export declare const SliderTrackFrame: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
8
8
|
elevation?: number | SizeTokens | undefined;
|
package/types/Slider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAAc,CAAA;AACzB,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;gCAAoB,CAAA;AAC/B,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAAc,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,CAAA"}
|
package/types/SliderImpl.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TamaguiElement } from '@tamagui/core';
|
|
1
|
+
import type { TamaguiElement } from '@tamagui/core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { View } from 'react-native';
|
|
4
|
-
import { SliderImplProps } from './types';
|
|
3
|
+
import type { View } from 'react-native';
|
|
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;
|
|
7
7
|
size?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderImpl.d.ts","sourceRoot":"","sources":["../src/SliderImpl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,
|
|
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"}
|
package/types/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SizeTokens } from '@tamagui/core';
|
|
3
|
-
import { Direction, SliderContextValue } from './types';
|
|
2
|
+
import type { SizeTokens } from '@tamagui/core';
|
|
3
|
+
import type { Direction, SliderContextValue } from './types';
|
|
4
4
|
export declare const SLIDER_NAME = "Slider";
|
|
5
5
|
export declare const createSliderContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined) => readonly [{
|
|
6
6
|
(props: ContextValueType & {
|
package/types/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG/C,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5D,eAAO,MAAM,WAAW,WAAW,CAAA;AAEnC,eAAO,MAAO,mBAAmB;;;;;;;;;qCAAE,iBAAiB,+CAAmC,CAAA;AAEvF,eAAO,MAAO,cAAc;;;;;;GAAE,gBAAgB;;;oCACQ,CAAA;AAEtD,eAAO,MAAO,yBAAyB;;mBAExB,QAAQ,GAAG,MAAM,GAAG,OAAO;iBAC7B,KAAK,GAAG,OAAO,GAAG,MAAM;kBACvB,OAAO,GAAG,QAAQ;cACtB,MAAM,GAAG,UAAU;mBACd,MAAM;;;uBAJN,QAAQ,GAAG,MAAM,GAAG,OAAO;qBAC7B,KAAK,GAAG,O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