@tamagui/select 1.45.8 → 1.45.9
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/BubbleSelect.js +2 -2
- package/dist/cjs/BubbleSelect.js.map +1 -1
- package/dist/esm/BubbleSelect.js +1 -1
- package/dist/esm/BubbleSelect.js.map +1 -1
- package/dist/jsx/BubbleSelect.js +1 -1
- package/dist/jsx/BubbleSelect.js.map +1 -1
- package/dist/jsx/BubbleSelect.mjs +1 -1
- package/dist/jsx/BubbleSelect.mjs.map +1 -1
- package/package.json +19 -19
- package/src/BubbleSelect.tsx +2 -2
package/dist/cjs/BubbleSelect.js
CHANGED
|
@@ -21,14 +21,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
22
|
mod
|
|
23
23
|
));
|
|
24
|
-
var import_react_use_previous = require("@radix-ui/react-use-previous");
|
|
25
24
|
var import_compose_refs = require("@tamagui/compose-refs");
|
|
25
|
+
var import_use_previous = require("@tamagui/use-previous");
|
|
26
26
|
var React = __toESM(require("react"));
|
|
27
27
|
const BubbleSelect = React.forwardRef((props, forwardedRef) => {
|
|
28
28
|
const { value, ...selectProps } = props;
|
|
29
29
|
const ref = React.useRef(null);
|
|
30
30
|
const composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);
|
|
31
|
-
const prevValue = (0,
|
|
31
|
+
const prevValue = (0, import_use_previous.usePrevious)(value);
|
|
32
32
|
React.useEffect(() => {
|
|
33
33
|
const select = ref.current;
|
|
34
34
|
const selectProto = window.HTMLSelectElement.prototype;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/BubbleSelect.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,0BAAgC;AAChC,0BAA4B;AAC5B,YAAuB;AAGvB,MAAM,eAAe,MAAM,WAGzB,CAAC,OAAO,iBAAiB;AACzB,QAAM,EAAE,OAAO,GAAG,YAAY,IAAI;AAClC,QAAM,MAAM,MAAM,OAA0B,IAAI;AAChD,QAAM,mBAAe,qCAAgB,cAAc,GAAG;AACtD,QAAM,gBAAY,iCAAY,KAAK;AAGnC,QAAM,UAAU,MAAM;AACpB,UAAM,SAAS,IAAI;AACnB,UAAM,cAAc,OAAO,kBAAkB;AAC7C,UAAM,aAAa,OAAO;AAAA,MACxB;AAAA,MACA;AAAA,IACF;AACA,UAAM,WAAW,WAAW;AAC5B,QAAI,cAAc,SAAS,UAAU;AACnC,YAAM,QAAQ,IAAI,MAAM,UAAU,EAAE,SAAS,KAAK,CAAC;AACnD,eAAS,KAAK,QAAQ,KAAK;AAC3B,aAAO,cAAc,KAAK;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC,WAAW,KAAK,CAAC;AAerB,SAAO;AAMT,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/BubbleSelect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { usePrevious } from "@radix-ui/react-use-previous";
|
|
2
1
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
2
|
+
import { usePrevious } from "@tamagui/use-previous";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
const BubbleSelect = React.forwardRef((props, forwardedRef) => {
|
|
5
5
|
const { value, ...selectProps } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/BubbleSelect.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,YAAY,WAAW;AAGvB,MAAM,eAAe,MAAM,WAGzB,CAAC,OAAO,iBAAiB;AACzB,QAAM,EAAE,OAAO,GAAG,YAAY,IAAI;AAClC,QAAM,MAAM,MAAM,OAA0B,IAAI;AAChD,QAAM,eAAe,gBAAgB,cAAc,GAAG;AACtD,QAAM,YAAY,YAAY,KAAK;AAGnC,QAAM,UAAU,MAAM;AACpB,UAAM,SAAS,IAAI;AACnB,UAAM,cAAc,OAAO,kBAAkB;AAC7C,UAAM,aAAa,OAAO;AAAA,MACxB;AAAA,MACA;AAAA,IACF;AACA,UAAM,WAAW,WAAW;AAC5B,QAAI,cAAc,SAAS,UAAU;AACnC,YAAM,QAAQ,IAAI,MAAM,UAAU,EAAE,SAAS,KAAK,CAAC;AACnD,eAAS,KAAK,QAAQ,KAAK;AAC3B,aAAO,cAAc,KAAK;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC,WAAW,KAAK,CAAC;AAerB,SAAO;AAMT,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/jsx/BubbleSelect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { usePrevious } from "@radix-ui/react-use-previous";
|
|
2
1
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
2
|
+
import { usePrevious } from "@tamagui/use-previous";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
const BubbleSelect = React.forwardRef((props, forwardedRef) => {
|
|
5
5
|
const { value, ...selectProps } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/BubbleSelect.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,YAAY,WAAW;AAGvB,MAAM,eAAe,MAAM,WAGzB,CAAC,OAAO,iBAAiB;AACzB,QAAM,EAAE,OAAO,GAAG,YAAY,IAAI;AAClC,QAAM,MAAM,MAAM,OAA0B,IAAI;AAChD,QAAM,eAAe,gBAAgB,cAAc,GAAG;AACtD,QAAM,YAAY,YAAY,KAAK;AAGnC,QAAM,UAAU,MAAM;AACpB,UAAM,SAAS,IAAI;AACnB,UAAM,cAAc,OAAO,kBAAkB;AAC7C,UAAM,aAAa,OAAO;AAAA,MACxB;AAAA,MACA;AAAA,IACF;AACA,UAAM,WAAW,WAAW;AAC5B,QAAI,cAAc,SAAS,UAAU;AACnC,YAAM,QAAQ,IAAI,MAAM,UAAU,EAAE,SAAS,KAAK,CAAC;AACnD,eAAS,KAAK,QAAQ,KAAK;AAC3B,aAAO,cAAc,KAAK;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC,WAAW,KAAK,CAAC;AAerB,SAAO;AAMT,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { usePrevious } from "@radix-ui/react-use-previous";
|
|
2
1
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
2
|
+
import { usePrevious } from "@tamagui/use-previous";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
const BubbleSelect = React.forwardRef((props, forwardedRef) => {
|
|
5
5
|
const { value, ...selectProps } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/BubbleSelect.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,YAAY,WAAW;AAGvB,MAAM,eAAe,MAAM,WAGzB,CAAC,OAAO,iBAAiB;AACzB,QAAM,EAAE,OAAO,GAAG,YAAY,IAAI;AAClC,QAAM,MAAM,MAAM,OAA0B,IAAI;AAChD,QAAM,eAAe,gBAAgB,cAAc,GAAG;AACtD,QAAM,YAAY,YAAY,KAAK;AAGnC,QAAM,UAAU,MAAM;AACpB,UAAM,SAAS,IAAI;AACnB,UAAM,cAAc,OAAO,kBAAkB;AAC7C,UAAM,aAAa,OAAO;AAAA,MACxB;AAAA,MACA;AAAA,IACF;AACA,UAAM,WAAW,WAAW;AAC5B,QAAI,cAAc,SAAS,UAAU;AACnC,YAAM,QAAQ,IAAI,MAAM,UAAU,EAAE,SAAS,KAAK,CAAC;AACnD,eAAS,KAAK,QAAQ,KAAK;AAC3B,aAAO,cAAc,KAAK;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC,WAAW,KAAK,CAAC;AAerB,SAAO;AAMT,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/select",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.9",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
"@floating-ui/react": "^0.24.7",
|
|
35
35
|
"@floating-ui/react-dom": "^2.0.1",
|
|
36
36
|
"@floating-ui/react-native": "^0.10.1",
|
|
37
|
-
"@
|
|
38
|
-
"@tamagui/
|
|
39
|
-
"@tamagui/
|
|
40
|
-
"@tamagui/
|
|
41
|
-
"@tamagui/
|
|
42
|
-
"@tamagui/
|
|
43
|
-
"@tamagui/
|
|
44
|
-
"@tamagui/
|
|
45
|
-
"@tamagui/
|
|
46
|
-
"@tamagui/
|
|
47
|
-
"@tamagui/
|
|
48
|
-
"@tamagui/
|
|
49
|
-
"@tamagui/
|
|
50
|
-
"@tamagui/
|
|
51
|
-
"@tamagui/
|
|
52
|
-
"@tamagui/use-
|
|
53
|
-
"@tamagui/use-
|
|
37
|
+
"@tamagui/adapt": "1.45.9",
|
|
38
|
+
"@tamagui/animate-presence": "1.45.9",
|
|
39
|
+
"@tamagui/compose-refs": "1.45.9",
|
|
40
|
+
"@tamagui/core": "1.45.9",
|
|
41
|
+
"@tamagui/create-context": "1.45.9",
|
|
42
|
+
"@tamagui/dismissable": "1.45.9",
|
|
43
|
+
"@tamagui/focus-scope": "1.45.9",
|
|
44
|
+
"@tamagui/get-token": "1.45.9",
|
|
45
|
+
"@tamagui/list-item": "1.45.9",
|
|
46
|
+
"@tamagui/portal": "1.45.9",
|
|
47
|
+
"@tamagui/separator": "1.45.9",
|
|
48
|
+
"@tamagui/sheet": "1.45.9",
|
|
49
|
+
"@tamagui/stacks": "1.45.9",
|
|
50
|
+
"@tamagui/text": "1.45.9",
|
|
51
|
+
"@tamagui/use-controllable-state": "1.45.9",
|
|
52
|
+
"@tamagui/use-event": "1.45.9",
|
|
53
|
+
"@tamagui/use-previous": "1.45.9"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "*",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react-native": "*"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@tamagui/build": "1.45.
|
|
61
|
+
"@tamagui/build": "1.45.9",
|
|
62
62
|
"react": "^18.2.0",
|
|
63
63
|
"react-dom": "^18.2.0",
|
|
64
64
|
"react-native": "^0.72.1"
|
package/src/BubbleSelect.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { usePrevious } from '@radix-ui/react-use-previous'
|
|
2
1
|
import { useComposedRefs } from '@tamagui/compose-refs'
|
|
2
|
+
import { usePrevious } from '@tamagui/use-previous'
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
|
|
5
5
|
/* -----------------------------------------------------------------------------------------------*/
|
|
@@ -18,7 +18,7 @@ const BubbleSelect = React.forwardRef<
|
|
|
18
18
|
const selectProto = window.HTMLSelectElement.prototype
|
|
19
19
|
const descriptor = Object.getOwnPropertyDescriptor(
|
|
20
20
|
selectProto,
|
|
21
|
-
'value'
|
|
21
|
+
'value'
|
|
22
22
|
) as PropertyDescriptor
|
|
23
23
|
const setValue = descriptor.set
|
|
24
24
|
if (prevValue !== value && setValue) {
|