@tamagui/react-native-web-lite 1.129.16 → 1.129.18
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/ScrollView/index.cjs +1 -1
- package/dist/cjs/ScrollView/index.js +1 -1
- package/dist/cjs/ScrollView/index.js.map +1 -1
- package/dist/cjs/ScrollView/index.native.js +2 -2
- package/dist/cjs/ScrollView/index.native.js.map +1 -1
- package/dist/cjs/TextInput/index.cjs +3 -12
- package/dist/cjs/TextInput/index.js +3 -12
- package/dist/cjs/TextInput/index.js.map +1 -1
- package/dist/cjs/TextInput/index.native.js +1 -8
- package/dist/cjs/TextInput/index.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +5 -5
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +5 -5
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +1 -1
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +10 -8
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +1 -1
- package/dist/esm/ScrollView/index.js +1 -1
- package/dist/esm/ScrollView/index.js.map +1 -1
- package/dist/esm/ScrollView/index.mjs +1 -1
- package/dist/esm/ScrollView/index.mjs.map +1 -1
- package/dist/esm/ScrollView/index.native.js +7 -5
- package/dist/esm/ScrollView/index.native.js.map +1 -1
- package/dist/esm/TextInput/index.js +3 -12
- package/dist/esm/TextInput/index.js.map +1 -1
- package/dist/esm/TextInput/index.mjs +3 -12
- package/dist/esm/TextInput/index.mjs.map +1 -1
- package/dist/esm/TextInput/index.native.js +1 -8
- package/dist/esm/TextInput/index.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +5 -5
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +5 -5
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +25 -17
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +1 -1
- package/package.json +6 -6
- package/src/ScrollView/index.tsx +1 -1
- package/src/TextInput/index.tsx +4 -12
- package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.jsx +5 -6
package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["jsx","_jsx","jsxs","_jsxs","View","StyleSheet","invariant","VirtualizedListCellContextProvider","React","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","value","o","setPrototypeOf","getPrototypeOf","o2","__proto__","_inherits","subClass","superClass","create","_set_prototype_of","call","_type_of","p","p2","Symbol","result","Boolean","valueOf","CellRenderer","_React_Component","CellRenderer2","arguments","separatorProps","highlighted","leadingItem","item","highlight","cellKey","prevCellKey","onUpdateSeparators","unhighlight","updateProps","select","newProps","nativeEvent","onCellLayout","index","setState","state","
|
|
1
|
+
{"version":3,"names":["jsx","_jsx","jsxs","_jsxs","View","StyleSheet","invariant","VirtualizedListCellContextProvider","React","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","value","o","setPrototypeOf","getPrototypeOf","o2","__proto__","_inherits","subClass","superClass","create","_set_prototype_of","call","_type_of","p","p2","Symbol","result","Boolean","valueOf","CellRenderer","_React_Component","CellRenderer2","arguments","separatorProps","highlighted","leadingItem","item","highlight","_this_props_onUpdateSeparators","_this_props","cellKey","prevCellKey","onUpdateSeparators","unhighlight","updateProps","select","newProps","nativeEvent","_this_props_onCellLayout","onCellLayout","index","setState","state","_this_props_onUnmount"],"sources":["../../../../../src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.jsx"],"sourcesContent":[null],"mappings":"AAWA,SAAOA,GAAA,IAAAC,IAAU,EAAAC,IAAA,IAAAC,KAAA;AACjB,OAAAC,IAAS,qBAAY;AACrB,SAASC,UAAA,EAAAC,SAAA,6CAA0C;AACnD,SAAAC,kCAAuB;AAqHb,YAAAC,KAUJ,aAVI;AAnHV,SAAOC,wBAAyCA,CAAAC,IAAA;EAC9C,IAAAA,IAAQ,aACN,UAAAC,cAAgB;EAAA,OACdD,IAAA;AAAa;AACW,SAC1BE,YAAAC,KAAA,EAAAC,OAAA,EAAAC,IAAA;EACF,OAAAD,OAAA,GAAAE,iBAAA,CAAAF,OAAA,GAAAG,4BAAA,CAAAJ,KAAA,EAAAK,4BAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,OAAA,EAAAC,IAAA,QAAAC,iBAAA,CAAAH,KAAA,EAAAQ,WAAA,IAAAP,OAAA,CAAAQ,KAAA,CAAAT,KAAA,EAAAE,IAAA;AAAA;AAGE,SAAAQ,iBAAOA,CAAAC,QAAA,EAAAC,WAAA;EAAA,IACL,EAAAD,QAAA,YAAgBC,WAAA,SACd,IAAGC,SAAU;AAAA;AACM,SACrBC,kBAAAC,MAAA,EAAAC,KAAA;EAAA,KACF,IAAAC,CAAA,MAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA;IACF,IAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA;IAAAE,UAAA,CAAAC,UAAA,GAAAD,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,IAE/CxE,KAAA;EAAA;EAAA,OAAA0B,aACA,CAAA2B,aAAA;IAAA5B,GAAA;IACHO,KAAA,WAAAA,CAAAoC,QAAA;MAeF,IACE,CAAAK,QAAA,WAACC,KAAA;QAIL;UACFnB,cAAA;YAEM,GAASmB,KAAA,CAAAnB,cAAkB;YAC1B,GAAAa;UACH;QACF;MACA;IACE;EACF,GACA;IACE3C,GAAA,wBAAe;IACjBO,KAAA,WAAAA,CAAA;MACD,IAAA2C,qBAAA,EAAAd,WAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/react-native-web-lite",
|
|
3
|
-
"version": "1.129.
|
|
3
|
+
"version": "1.129.18",
|
|
4
4
|
"description": "React Native for Web",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"./dist/*": "./dist/cjs/*/index.mjs"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@tamagui/normalize-css-color": "1.129.
|
|
45
|
-
"@tamagui/react-native-use-pressable": "1.129.
|
|
46
|
-
"@tamagui/react-native-use-responder-events": "1.129.
|
|
47
|
-
"@tamagui/react-native-web-internals": "1.129.
|
|
44
|
+
"@tamagui/normalize-css-color": "1.129.18",
|
|
45
|
+
"@tamagui/react-native-use-pressable": "1.129.18",
|
|
46
|
+
"@tamagui/react-native-use-responder-events": "1.129.18",
|
|
47
|
+
"@tamagui/react-native-web-internals": "1.129.18",
|
|
48
48
|
"invariant": "^2.2.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@tamagui/build": "1.129.
|
|
51
|
+
"@tamagui/build": "1.129.18",
|
|
52
52
|
"react": "*"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
package/src/ScrollView/index.tsx
CHANGED
|
@@ -250,7 +250,7 @@ class ScrollView extends React.Component<any> {
|
|
|
250
250
|
|
|
251
251
|
_handleContentOnLayout(e: any) {
|
|
252
252
|
const { width, height } = e.nativeEvent.layout
|
|
253
|
-
this.props.onContentSizeChange(width, height)
|
|
253
|
+
this.props.onContentSizeChange?.(width, height)
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
_handleScroll(e: Object) {
|
package/src/TextInput/index.tsx
CHANGED
|
@@ -229,14 +229,13 @@ const TextInput = React.forwardRef<HTMLElement & PlatformMethods, TextInputProps
|
|
|
229
229
|
// added by `usePlatformMethods`. This is temporarily until an API like
|
|
230
230
|
// `TextInput.clear(hostRef)` is added to React Native.
|
|
231
231
|
if (hostNode != null) {
|
|
232
|
-
hostNode.clear =
|
|
232
|
+
hostNode.clear = () => {
|
|
233
233
|
if (hostNode != null) {
|
|
234
234
|
hostNode.value = ''
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
hostNode.isFocused =
|
|
238
|
-
|
|
239
|
-
}
|
|
237
|
+
hostNode.isFocused = () =>
|
|
238
|
+
hostNode != null && TextInputState.currentlyFocusedField() === hostNode
|
|
240
239
|
handleContentSizeChange(hostNode)
|
|
241
240
|
}
|
|
242
241
|
},
|
|
@@ -440,14 +439,7 @@ const styles = StyleSheet.create({
|
|
|
440
439
|
textinput$raw: {
|
|
441
440
|
MozAppearance: 'textfield',
|
|
442
441
|
WebkitAppearance: 'none',
|
|
443
|
-
|
|
444
|
-
border: '0 solid black',
|
|
445
|
-
borderRadius: 0,
|
|
446
|
-
boxSizing: 'border-box',
|
|
447
|
-
font: '14px System',
|
|
448
|
-
margin: 0,
|
|
449
|
-
padding: 0,
|
|
450
|
-
resize: 'none',
|
|
442
|
+
appearance: 'none',
|
|
451
443
|
},
|
|
452
444
|
placeholder: {
|
|
453
445
|
placeholderTextColor: 'var(--placeholderTextColor)',
|
|
@@ -37,19 +37,19 @@ export default class CellRenderer extends React.Component {
|
|
|
37
37
|
_separators = {
|
|
38
38
|
highlight: () => {
|
|
39
39
|
const { cellKey, prevCellKey } = this.props
|
|
40
|
-
this.props.onUpdateSeparators([cellKey, prevCellKey], {
|
|
40
|
+
this.props.onUpdateSeparators?.([cellKey, prevCellKey], {
|
|
41
41
|
highlighted: true,
|
|
42
42
|
})
|
|
43
43
|
},
|
|
44
44
|
unhighlight: () => {
|
|
45
45
|
const { cellKey, prevCellKey } = this.props
|
|
46
|
-
this.props.onUpdateSeparators([cellKey, prevCellKey], {
|
|
46
|
+
this.props.onUpdateSeparators?.([cellKey, prevCellKey], {
|
|
47
47
|
highlighted: false,
|
|
48
48
|
})
|
|
49
49
|
},
|
|
50
50
|
updateProps: (select, newProps) => {
|
|
51
51
|
const { cellKey, prevCellKey } = this.props
|
|
52
|
-
this.props.onUpdateSeparators(
|
|
52
|
+
this.props.onUpdateSeparators?.(
|
|
53
53
|
[select === 'leading' ? prevCellKey : cellKey],
|
|
54
54
|
newProps
|
|
55
55
|
)
|
|
@@ -63,12 +63,11 @@ export default class CellRenderer extends React.Component {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
componentWillUnmount() {
|
|
66
|
-
this.props.onUnmount(this.props.cellKey)
|
|
66
|
+
this.props.onUnmount?.(this.props.cellKey)
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_onLayout = (nativeEvent) => {
|
|
70
|
-
this.props.onCellLayout
|
|
71
|
-
this.props.onCellLayout(nativeEvent, this.props.cellKey, this.props.index)
|
|
70
|
+
this.props.onCellLayout?.(nativeEvent, this.props.cellKey, this.props.index)
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
_renderElement(renderItem, ListItemComponent, item, index) {
|