@tamagui/select 1.0.1-beta.74 → 1.0.1-beta.75

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 (2) hide show
  1. package/package.json +10 -10
  2. package/src/Select.tsx +0 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/select",
3
- "version": "1.0.1-beta.74",
3
+ "version": "1.0.1-beta.75",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -26,14 +26,14 @@
26
26
  "@floating-ui/react-native": "^0.7.0",
27
27
  "@radix-ui/react-use-callback-ref": "^0.1.0",
28
28
  "@radix-ui/react-use-previous": "^0.1.1",
29
- "@tamagui/compose-refs": "^1.0.1-beta.74",
30
- "@tamagui/core": "^1.0.1-beta.74",
31
- "@tamagui/create-context": "^1.0.1-beta.74",
32
- "@tamagui/list-item": "^1.0.1-beta.74",
33
- "@tamagui/separator": "^1.0.1-beta.74",
34
- "@tamagui/stacks": "^1.0.1-beta.74",
35
- "@tamagui/text": "^1.0.1-beta.74",
36
- "@tamagui/use-controllable-state": "^1.0.1-beta.74"
29
+ "@tamagui/compose-refs": "^1.0.1-beta.75",
30
+ "@tamagui/core": "^1.0.1-beta.75",
31
+ "@tamagui/create-context": "^1.0.1-beta.75",
32
+ "@tamagui/list-item": "^1.0.1-beta.75",
33
+ "@tamagui/separator": "^1.0.1-beta.75",
34
+ "@tamagui/stacks": "^1.0.1-beta.75",
35
+ "@tamagui/text": "^1.0.1-beta.75",
36
+ "@tamagui/use-controllable-state": "^1.0.1-beta.75"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "*",
@@ -41,7 +41,7 @@
41
41
  "react-native": "*"
42
42
  },
43
43
  "devDependencies": {
44
- "@tamagui/build": "^1.0.1-beta.74",
44
+ "@tamagui/build": "^1.0.1-beta.75",
45
45
  "@types/react-native": "^0.67.3",
46
46
  "react": "*",
47
47
  "react-dom": "*",
package/src/Select.tsx CHANGED
@@ -70,14 +70,6 @@ function getVisualOffsetTop() {
70
70
  return !/^((?!chrome|android).)*safari/i.test(userAgent) ? visualViewport.offsetTop : 0
71
71
  }
72
72
 
73
- const getSelectItemSize = (val: SizeTokens, { tokens }: VariantSpreadExtras<any>) => {
74
- const padding = getVariableValue(tokens.size[val])
75
- return {
76
- paddingHorizontal: padding / 2,
77
- paddingVertical: padding / 4,
78
- }
79
- }
80
-
81
73
  /* -------------------------------------------------------------------------------------------------
82
74
  * SelectContext
83
75
  * -----------------------------------------------------------------------------------------------*/
@@ -132,9 +124,6 @@ type GenericElement = HTMLElement | View
132
124
 
133
125
  type Direction = 'ltr' | 'rtl'
134
126
 
135
- const OPEN_KEYS = [' ', 'Enter', 'ArrowUp', 'ArrowDown']
136
- const SELECTION_KEYS = [' ', 'Enter']
137
-
138
127
  /* -------------------------------------------------------------------------------------------------
139
128
  * SelectTrigger
140
129
  * -----------------------------------------------------------------------------------------------*/