@tamagui/slider 1.88.21 → 1.88.23
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/esm/Slider.native.js +81 -87
- package/dist/esm/Slider.native.js.map +2 -2
- package/dist/esm/SliderImpl.native.js +20 -43
- package/dist/esm/SliderImpl.native.js.map +2 -2
- package/dist/esm/constants.native.js +4 -34
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/helpers.native.js +2 -31
- package/dist/esm/helpers.native.js.map +1 -1
- package/dist/esm/index.native.js +5 -27
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/types.native.js +0 -14
- package/dist/esm/types.native.js.map +2 -2
- package/dist/jsx/Slider.native.js +81 -87
- package/dist/jsx/Slider.native.js.map +2 -2
- package/dist/jsx/SliderImpl.native.js +20 -43
- package/dist/jsx/SliderImpl.native.js.map +2 -2
- package/dist/jsx/constants.native.js +4 -34
- package/dist/jsx/constants.native.js.map +1 -1
- package/dist/jsx/helpers.native.js +2 -31
- package/dist/jsx/helpers.native.js.map +1 -1
- package/dist/jsx/index.native.js +5 -27
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/types.native.js +0 -14
- package/dist/jsx/types.native.js.map +2 -2
- package/package.json +11 -11
|
@@ -1,34 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var SliderImpl_exports = {};
|
|
25
|
-
__export(SliderImpl_exports, {
|
|
26
|
-
SliderFrame: () => SliderFrame,
|
|
27
|
-
SliderImpl: () => SliderImpl
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(SliderImpl_exports);
|
|
30
|
-
var import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_get_token = require("@tamagui/get-token"), import_helpers = require("@tamagui/helpers"), import_stacks = require("@tamagui/stacks"), React = __toESM(require("react")), import_constants2 = require("./constants"), import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
const SliderFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
1
|
+
import { isWeb } from "@tamagui/constants";
|
|
2
|
+
import { getVariableValue, styled } from "@tamagui/core";
|
|
3
|
+
import { getSize } from "@tamagui/get-token";
|
|
4
|
+
import { composeEventHandlers } from "@tamagui/helpers";
|
|
5
|
+
import { YStack } from "@tamagui/stacks";
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { ARROW_KEYS, PAGE_KEYS, SLIDER_NAME, useSliderContext } from "./constants";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
const SliderFrame = styled(YStack, {
|
|
32
10
|
position: "relative",
|
|
33
11
|
variants: {
|
|
34
12
|
orientation: {
|
|
@@ -38,7 +16,7 @@ const SliderFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
|
38
16
|
size: (val, extras) => {
|
|
39
17
|
if (!val)
|
|
40
18
|
return;
|
|
41
|
-
const orientation = extras.props.orientation, size = Math.round(
|
|
19
|
+
const orientation = extras.props.orientation, size = Math.round(getVariableValue(getSize(val)) / 6);
|
|
42
20
|
return orientation === "horizontal" ? {
|
|
43
21
|
height: size,
|
|
44
22
|
borderRadius: size,
|
|
@@ -61,17 +39,17 @@ const SliderFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
|
61
39
|
onEndKeyDown,
|
|
62
40
|
onStepKeyDown,
|
|
63
41
|
...sliderProps
|
|
64
|
-
} = props, context =
|
|
65
|
-
return /* @__PURE__ */
|
|
42
|
+
} = props, context = useSliderContext(SLIDER_NAME, __scopeSlider);
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
66
44
|
SliderFrame,
|
|
67
45
|
{
|
|
68
46
|
size: "$4",
|
|
69
47
|
...sliderProps,
|
|
70
48
|
"data-orientation": sliderProps.orientation,
|
|
71
49
|
ref: forwardedRef,
|
|
72
|
-
...
|
|
50
|
+
...isWeb && {
|
|
73
51
|
onKeyDown: (event) => {
|
|
74
|
-
event.key === "Home" ? (onHomeKeyDown(event), event.preventDefault()) : event.key === "End" ? (onEndKeyDown(event), event.preventDefault()) :
|
|
52
|
+
event.key === "Home" ? (onHomeKeyDown(event), event.preventDefault()) : event.key === "End" ? (onEndKeyDown(event), event.preventDefault()) : PAGE_KEYS.concat(ARROW_KEYS).includes(event.key) && (onStepKeyDown(event), event.preventDefault());
|
|
75
53
|
}
|
|
76
54
|
},
|
|
77
55
|
onMoveShouldSetResponderCapture: () => !0,
|
|
@@ -80,23 +58,22 @@ const SliderFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
|
80
58
|
onMoveShouldSetResponder: () => !0,
|
|
81
59
|
onStartShouldSetResponder: () => !0,
|
|
82
60
|
onResponderTerminationRequest: () => !1,
|
|
83
|
-
onResponderGrant:
|
|
61
|
+
onResponderGrant: composeEventHandlers(props.onResponderGrant, (event) => {
|
|
84
62
|
const target = event.target, thumbIndex = context.thumbs.get(target), isStartingOnThumb = thumbIndex !== void 0;
|
|
85
|
-
|
|
63
|
+
isWeb && target instanceof HTMLElement && context.thumbs.has(target) && target.focus(), !isWeb && isStartingOnThumb && (context.valueIndexToChangeRef.current = thumbIndex), onSlideStart(event, isStartingOnThumb ? "thumb" : "track");
|
|
86
64
|
}),
|
|
87
|
-
onResponderMove:
|
|
65
|
+
onResponderMove: composeEventHandlers(props.onResponderMove, (event) => {
|
|
88
66
|
event.stopPropagation(), onSlideMove(event);
|
|
89
67
|
}),
|
|
90
|
-
onResponderRelease:
|
|
68
|
+
onResponderRelease: composeEventHandlers(props.onResponderRelease, (event) => {
|
|
91
69
|
onSlideEnd(event);
|
|
92
70
|
})
|
|
93
71
|
}
|
|
94
72
|
);
|
|
95
73
|
}
|
|
96
74
|
);
|
|
97
|
-
|
|
98
|
-
0 && (module.exports = {
|
|
75
|
+
export {
|
|
99
76
|
SliderFrame,
|
|
100
77
|
SliderImpl
|
|
101
|
-
}
|
|
78
|
+
};
|
|
102
79
|
//# sourceMappingURL=SliderImpl.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SliderImpl.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AAIA,SAAS,aAAa;AAEtB,SAAS,kBAAkB,cAAc;AACzC,SAAS,eAAe;AACxB,SAAS,4BAA4B;AACrC,SAAS,cAAc;AACvB,YAAY,WAAW;AAGvB,SAAS,YAAY,WAAW,aAAa,wBAAwB;AAwE/D;AArEC,MAAM,cAAc,OAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,EAEV,UAAU;AAAA,IACR,aAAa;AAAA,MACX,YAAY,CAAC;AAAA,MACb,UAAU,CAAC;AAAA,IACb;AAAA,IAEA,MAAM,CAAC,KAAK,WAAW;AACrB,UAAI,CAAC;AACH;AAEF,YAAM,cAAc,OAAO,MA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AM,GAMb,CAAC,SAAS,sBACZ,QAAQ,sBAAsB,UAAU,aAG1C,aAAa,OAAO,oBAAoB,UAAU,OAAO;AAAA,QAC3D,CAAC;AAAA,QACD,iBAAiB,qBAAqB,MAAM,iBAAiB,CAAC,UAAU;AACtE,gBAAM,gBAAgB,GAEtB,YAAY,KAAK;AAAA,QACnB,CAAC;AAAA,QACD,oBAAoB,qBAAqB,MAAM,oBAAoB,CAAC,UAAU;AAE5E,qBAAW,KAAK;AAAA,QAClB,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var constants_exports = {};
|
|
17
|
-
__export(constants_exports, {
|
|
18
|
-
ARROW_KEYS: () => ARROW_KEYS,
|
|
19
|
-
BACK_KEYS: () => BACK_KEYS,
|
|
20
|
-
PAGE_KEYS: () => PAGE_KEYS,
|
|
21
|
-
SLIDER_NAME: () => SLIDER_NAME,
|
|
22
|
-
SliderOrientationProvider: () => SliderOrientationProvider,
|
|
23
|
-
SliderProvider: () => SliderProvider,
|
|
24
|
-
createSliderContext: () => createSliderContext,
|
|
25
|
-
createSliderScope: () => createSliderScope,
|
|
26
|
-
useSliderContext: () => useSliderContext,
|
|
27
|
-
useSliderOrientationContext: () => useSliderOrientationContext
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(constants_exports);
|
|
30
|
-
var import_create_context = require("@tamagui/create-context");
|
|
31
|
-
const SLIDER_NAME = "Slider", [createSliderContext, createSliderScope] = (0, import_create_context.createContextScope)(SLIDER_NAME), [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME), [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext(SLIDER_NAME, {
|
|
1
|
+
import { createContextScope } from "@tamagui/create-context";
|
|
2
|
+
const SLIDER_NAME = "Slider", [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME), [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME), [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext(SLIDER_NAME, {
|
|
32
3
|
startEdge: "left",
|
|
33
4
|
endEdge: "right",
|
|
34
5
|
sizeProp: "width",
|
|
@@ -38,8 +9,7 @@ const SLIDER_NAME = "Slider", [createSliderContext, createSliderScope] = (0, imp
|
|
|
38
9
|
ltr: ["ArrowDown", "Home", "ArrowLeft", "PageDown"],
|
|
39
10
|
rtl: ["ArrowDown", "Home", "ArrowRight", "PageDown"]
|
|
40
11
|
};
|
|
41
|
-
|
|
42
|
-
0 && (module.exports = {
|
|
12
|
+
export {
|
|
43
13
|
ARROW_KEYS,
|
|
44
14
|
BACK_KEYS,
|
|
45
15
|
PAGE_KEYS,
|
|
@@ -50,5 +20,5 @@ const SLIDER_NAME = "Slider", [createSliderContext, createSliderScope] = (0, imp
|
|
|
50
20
|
createSliderScope,
|
|
51
21
|
useSliderContext,
|
|
52
22
|
useSliderOrientationContext
|
|
53
|
-
}
|
|
23
|
+
};
|
|
54
24
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AACA,SAAS,0BAA0B;AAI5B,MAAM,cAAc,UAEd,CAAC,qBAAqB,iBAAiB,IAAI,mBAAmB,WAAW,GAEzE,CAAC,gBAAgB,gBAAgB,IAC5C,oBAAwC,WAAW,GAExC,CAAC,2BAA2B,2BAA2B,IAClE,oBAMG,aAAa;AAAA,EACd,WAAW;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AAAA,EACV,MAAM;AAAA,EACN,WAAW;AACb,CAAC,GAEU,YAAY,CAAC,UAAU,UAAU,GACjC,aAAa,CAAC,WAAW,aAAa,aAAa,YAAY,GAC/D,YAAyC;AAAA,EACpD,KAAK,CAAC,aAAa,QAAQ,aAAa,UAAU;AAAA,EAClD,KAAK,CAAC,aAAa,QAAQ,cAAc,UAAU;AACrD;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var helpers_exports = {};
|
|
17
|
-
__export(helpers_exports, {
|
|
18
|
-
convertValueToPercentage: () => convertValueToPercentage,
|
|
19
|
-
getClosestValueIndex: () => getClosestValueIndex,
|
|
20
|
-
getDecimalCount: () => getDecimalCount,
|
|
21
|
-
getLabel: () => getLabel,
|
|
22
|
-
getNextSortedValues: () => getNextSortedValues,
|
|
23
|
-
getThumbInBoundsOffset: () => getThumbInBoundsOffset,
|
|
24
|
-
hasMinStepsBetweenValues: () => hasMinStepsBetweenValues,
|
|
25
|
-
linearScale: () => linearScale,
|
|
26
|
-
roundValue: () => roundValue
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(helpers_exports);
|
|
29
1
|
function getNextSortedValues(prevValues = [], nextValue, atIndex) {
|
|
30
2
|
const nextValues = [...prevValues];
|
|
31
3
|
return nextValues[atIndex] = nextValue, nextValues.sort((a, b) => a - b);
|
|
@@ -74,8 +46,7 @@ function roundValue(value, decimalCount) {
|
|
|
74
46
|
const rounder = 10 ** decimalCount;
|
|
75
47
|
return Math.round(value * rounder) / rounder;
|
|
76
48
|
}
|
|
77
|
-
|
|
78
|
-
0 && (module.exports = {
|
|
49
|
+
export {
|
|
79
50
|
convertValueToPercentage,
|
|
80
51
|
getClosestValueIndex,
|
|
81
52
|
getDecimalCount,
|
|
@@ -85,5 +56,5 @@ function roundValue(value, decimalCount) {
|
|
|
85
56
|
hasMinStepsBetweenValues,
|
|
86
57
|
linearScale,
|
|
87
58
|
roundValue
|
|
88
|
-
}
|
|
59
|
+
};
|
|
89
60
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/helpers.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAO,SAAS,oBACd,aAAuB,CAAC,GACxB,WACA,SACA;AACA,QAAM,aAAa,CAAC,GAAG,UAAU;AACjC,oBAAW,O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IAAI,MAAM,CAAC;AAC3D,WAAO,OAAO,CAAC,IAAI,SAAS,QAAQ,MAAM,CAAC;AAAA,EAC7C;AACF;AAEO,SAAS,gBAAgB,OAAe;AAC7C,UAAQ,OAAO,KAAK,EAAE,MAAM,GAAG,EAAE,CAAC,KAAK,IAAI;AAC7C;AAEO,SAAS,WAAW,OAAe,cAAsB;AAC9D,QAAM,UAAU,MAAM;AACtB,SAAO,KAAK,MAAM,QAAQ,OAAO,IAAI;AACvC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
__export(src_exports, {
|
|
18
|
-
SliderFrame: () => import_SliderImpl.SliderFrame
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(src_exports);
|
|
21
|
-
__reExport(src_exports, require("./Slider"), module.exports);
|
|
22
|
-
var import_SliderImpl = require("./SliderImpl");
|
|
23
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
-
0 && (module.exports = {
|
|
25
|
-
SliderFrame,
|
|
26
|
-
...require("./Slider")
|
|
27
|
-
});
|
|
1
|
+
export * from "./Slider";
|
|
2
|
+
import { SliderFrame } from "./SliderImpl";
|
|
3
|
+
export {
|
|
4
|
+
SliderFrame
|
|
5
|
+
};
|
|
28
6
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/types.native.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var types_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(types_exports);
|
|
15
1
|
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/slider",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.23",
|
|
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.23",
|
|
36
|
+
"@tamagui/constants": "1.88.23",
|
|
37
|
+
"@tamagui/core": "1.88.23",
|
|
38
|
+
"@tamagui/create-context": "1.88.23",
|
|
39
|
+
"@tamagui/get-token": "1.88.23",
|
|
40
|
+
"@tamagui/helpers": "1.88.23",
|
|
41
|
+
"@tamagui/stacks": "1.88.23",
|
|
42
|
+
"@tamagui/use-controllable-state": "1.88.23",
|
|
43
|
+
"@tamagui/use-direction": "1.88.23"
|
|
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.23",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-native": "^0.72.6"
|
|
53
53
|
},
|