tamagui 1.35.7 → 1.35.8
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/views/TextArea.js +5 -1
- package/dist/cjs/views/TextArea.js.map +1 -1
- package/dist/esm/views/TextArea.js +6 -2
- package/dist/esm/views/TextArea.js.map +1 -1
- package/dist/jsx/views/TextArea.js +6 -2
- package/dist/jsx/views/TextArea.js.map +1 -1
- package/dist/jsx/views/TextArea.mjs +6 -2
- package/dist/jsx/views/TextArea.mjs.map +1 -1
- package/package.json +51 -51
- package/src/views/TextArea.tsx +6 -2
- package/types/views/TextArea.d.ts.map +1 -1
|
@@ -46,7 +46,11 @@ const TextAreaFrame = (0, import_core.styled)(import_Input.InputFrame, {
|
|
|
46
46
|
});
|
|
47
47
|
const TextArea = TextAreaFrame.styleable((propsIn, ref) => {
|
|
48
48
|
const props = (0, import_Input.useInputProps)(propsIn, ref);
|
|
49
|
-
|
|
49
|
+
const linesProp = {
|
|
50
|
+
// web uses rows now, but native not caught up :/
|
|
51
|
+
[import_core.isWeb ? "rows" : "numberOfLines"]: propsIn.unstyled ? void 0 : 4
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextAreaFrame, { ...linesProp, ...props });
|
|
50
54
|
});
|
|
51
55
|
// Annotate the CommonJS export names for ESM import in node:
|
|
52
56
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/TextArea.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwCS;AAxCT,kBAA8B;AAE9B,0BAAoC;AACpC,mBAAqE;AAM9D,MAAM,oBAAgB,oBAAO,yBAAY;AAAA,EAC9C,MAAM;AAAA,EACN,WAAW;AAAA,EAEX,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU;AAAA,EACZ;AACF,CAAC;AAIM,MAAM,WAAW,cAAc,UAAsB,CAAC,SAAS,QAAQ;AAC5E,QAAM,YAAQ,4BAAc,SAAS,GAAG;AAExC,QAAM,YAAY;AAAA;AAAA,IAEhB,CAAC,oBAAQ,SAAS,eAAe,GAAG,QAAQ,WAAW,SAAY;AAAA,EACrE;AACA,SAAO,4CAAC,iBAAe,GAAG,WAAY,GAAG,OAAO;AAClD,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { styled } from "@tamagui/core";
|
|
2
|
+
import { isWeb, styled } from "@tamagui/core";
|
|
3
3
|
import { textAreaSizeVariant } from "../helpers/inputHelpers";
|
|
4
4
|
import { InputFrame, defaultStyles, useInputProps } from "./Input";
|
|
5
5
|
const TextAreaFrame = styled(InputFrame, {
|
|
@@ -22,7 +22,11 @@ const TextAreaFrame = styled(InputFrame, {
|
|
|
22
22
|
});
|
|
23
23
|
const TextArea = TextAreaFrame.styleable((propsIn, ref) => {
|
|
24
24
|
const props = useInputProps(propsIn, ref);
|
|
25
|
-
|
|
25
|
+
const linesProp = {
|
|
26
|
+
// web uses rows now, but native not caught up :/
|
|
27
|
+
[isWeb ? "rows" : "numberOfLines"]: propsIn.unstyled ? void 0 : 4
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ jsx(TextAreaFrame, { ...linesProp, ...props });
|
|
26
30
|
});
|
|
27
31
|
export {
|
|
28
32
|
TextArea,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/TextArea.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAwCS;AAxCT,SAAS,OAAO,cAAc;AAE9B,SAAS,2BAA2B;AACpC,SAAS,YAAwB,eAAe,qBAAqB;AAM9D,MAAM,gBAAgB,OAAO,YAAY;AAAA,EAC9C,MAAM;AAAA,EACN,WAAW;AAAA,EAEX,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU;AAAA,EACZ;AACF,CAAC;AAIM,MAAM,WAAW,cAAc,UAAsB,CAAC,SAAS,QAAQ;AAC5E,QAAM,QAAQ,cAAc,SAAS,GAAG;AAExC,QAAM,YAAY;AAAA;AAAA,IAEhB,CAAC,QAAQ,SAAS,eAAe,GAAG,QAAQ,WAAW,SAAY;AAAA,EACrE;AACA,SAAO,oBAAC,iBAAe,GAAG,WAAY,GAAG,OAAO;AAClD,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { styled } from "@tamagui/core";
|
|
1
|
+
import { isWeb, styled } from "@tamagui/core";
|
|
2
2
|
import { textAreaSizeVariant } from "../helpers/inputHelpers";
|
|
3
3
|
import { InputFrame, defaultStyles, useInputProps } from "./Input";
|
|
4
4
|
const TextAreaFrame = styled(InputFrame, {
|
|
@@ -21,7 +21,11 @@ const TextAreaFrame = styled(InputFrame, {
|
|
|
21
21
|
});
|
|
22
22
|
const TextArea = TextAreaFrame.styleable((propsIn, ref) => {
|
|
23
23
|
const props = useInputProps(propsIn, ref);
|
|
24
|
-
|
|
24
|
+
const linesProp = {
|
|
25
|
+
// web uses rows now, but native not caught up :/
|
|
26
|
+
[isWeb ? "rows" : "numberOfLines"]: propsIn.unstyled ? void 0 : 4
|
|
27
|
+
};
|
|
28
|
+
return <TextAreaFrame {...linesProp} {...props} />;
|
|
25
29
|
});
|
|
26
30
|
export {
|
|
27
31
|
TextArea,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/TextArea.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,cAAc;
|
|
4
|
+
"mappings": "AAAA,SAAS,OAAO,cAAc;AAE9B,SAAS,2BAA2B;AACpC,SAAS,YAAwB,eAAe,qBAAqB;AAM9D,MAAM,gBAAgB,OAAO,YAAY;AAAA,EAC9C,MAAM;AAAA,EACN,WAAW;AAAA,EAEX,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU;AAAA,EACZ;AACF,CAAC;AAIM,MAAM,WAAW,cAAc,UAAsB,CAAC,SAAS,QAAQ;AAC5E,QAAM,QAAQ,cAAc,SAAS,GAAG;AAExC,QAAM,YAAY;AAAA;AAAA,IAEhB,CAAC,QAAQ,SAAS,eAAe,GAAG,QAAQ,WAAW,SAAY;AAAA,EACrE;AACA,SAAO,CAAC,kBAAkB,eAAe,OAAO;AAClD,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { styled } from "@tamagui/core";
|
|
1
|
+
import { isWeb, styled } from "@tamagui/core";
|
|
2
2
|
import { textAreaSizeVariant } from "../helpers/inputHelpers";
|
|
3
3
|
import { InputFrame, defaultStyles, useInputProps } from "./Input";
|
|
4
4
|
const TextAreaFrame = styled(InputFrame, {
|
|
@@ -21,7 +21,11 @@ const TextAreaFrame = styled(InputFrame, {
|
|
|
21
21
|
});
|
|
22
22
|
const TextArea = TextAreaFrame.styleable((propsIn, ref) => {
|
|
23
23
|
const props = useInputProps(propsIn, ref);
|
|
24
|
-
|
|
24
|
+
const linesProp = {
|
|
25
|
+
// web uses rows now, but native not caught up :/
|
|
26
|
+
[isWeb ? "rows" : "numberOfLines"]: propsIn.unstyled ? void 0 : 4
|
|
27
|
+
};
|
|
28
|
+
return <TextAreaFrame {...linesProp} {...props} />;
|
|
25
29
|
});
|
|
26
30
|
export {
|
|
27
31
|
TextArea,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/TextArea.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,cAAc;
|
|
4
|
+
"mappings": "AAAA,SAAS,OAAO,cAAc;AAE9B,SAAS,2BAA2B;AACpC,SAAS,YAAwB,eAAe,qBAAqB;AAM9D,MAAM,gBAAgB,OAAO,YAAY;AAAA,EAC9C,MAAM;AAAA,EACN,WAAW;AAAA,EAEX,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,GAAG;AAAA,QACH,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU;AAAA,EACZ;AACF,CAAC;AAIM,MAAM,WAAW,cAAc,UAAsB,CAAC,SAAS,QAAQ;AAC5E,QAAM,QAAQ,cAAc,SAAS,GAAG;AAExC,QAAM,YAAY;AAAA;AAAA,IAEhB,CAAC,QAAQ,SAAS,eAAe,GAAG,QAAQ,WAAW,SAAY;AAAA,EACrE;AACA,SAAO,CAAC,kBAAkB,eAAe,OAAO;AAClD,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.8",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css",
|
|
6
6
|
"setup.js"
|
|
@@ -40,55 +40,55 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@tamagui/adapt": "1.35.
|
|
44
|
-
"@tamagui/alert-dialog": "1.35.
|
|
45
|
-
"@tamagui/animate-presence": "1.35.
|
|
46
|
-
"@tamagui/avatar": "1.35.
|
|
47
|
-
"@tamagui/button": "1.35.
|
|
48
|
-
"@tamagui/card": "1.35.
|
|
49
|
-
"@tamagui/checkbox": "1.35.
|
|
50
|
-
"@tamagui/compose-refs": "1.35.
|
|
51
|
-
"@tamagui/core": "1.35.
|
|
52
|
-
"@tamagui/create-context": "1.35.
|
|
53
|
-
"@tamagui/dialog": "1.35.
|
|
54
|
-
"@tamagui/fake-react-native": "1.35.
|
|
55
|
-
"@tamagui/focusable": "1.35.
|
|
56
|
-
"@tamagui/font-size": "1.35.
|
|
57
|
-
"@tamagui/form": "1.35.
|
|
58
|
-
"@tamagui/get-button-sized": "1.35.
|
|
59
|
-
"@tamagui/get-font-sized": "1.35.
|
|
60
|
-
"@tamagui/get-token": "1.35.
|
|
61
|
-
"@tamagui/helpers": "1.35.
|
|
62
|
-
"@tamagui/helpers-tamagui": "1.35.
|
|
63
|
-
"@tamagui/image": "1.35.
|
|
64
|
-
"@tamagui/label": "1.35.
|
|
65
|
-
"@tamagui/linear-gradient": "1.35.
|
|
66
|
-
"@tamagui/list-item": "1.35.
|
|
67
|
-
"@tamagui/popover": "1.35.
|
|
68
|
-
"@tamagui/popper": "1.35.
|
|
69
|
-
"@tamagui/portal": "1.35.
|
|
70
|
-
"@tamagui/progress": "1.35.
|
|
71
|
-
"@tamagui/radio-group": "1.35.
|
|
72
|
-
"@tamagui/react-native-media-driver": "1.35.
|
|
73
|
-
"@tamagui/scroll-view": "1.35.
|
|
74
|
-
"@tamagui/select": "1.35.
|
|
75
|
-
"@tamagui/separator": "1.35.
|
|
76
|
-
"@tamagui/shapes": "1.35.
|
|
77
|
-
"@tamagui/sheet": "1.35.
|
|
78
|
-
"@tamagui/slider": "1.35.
|
|
79
|
-
"@tamagui/stacks": "1.35.
|
|
80
|
-
"@tamagui/switch": "1.35.
|
|
81
|
-
"@tamagui/tabs": "1.35.
|
|
82
|
-
"@tamagui/text": "1.35.
|
|
83
|
-
"@tamagui/theme": "1.35.
|
|
84
|
-
"@tamagui/toggle-group": "1.35.
|
|
85
|
-
"@tamagui/tooltip": "1.35.
|
|
86
|
-
"@tamagui/use-controllable-state": "1.35.
|
|
87
|
-
"@tamagui/use-debounce": "1.35.
|
|
88
|
-
"@tamagui/use-event": "1.35.
|
|
89
|
-
"@tamagui/use-force-update": "1.35.
|
|
90
|
-
"@tamagui/use-window-dimensions": "1.35.
|
|
91
|
-
"@tamagui/visually-hidden": "1.35.
|
|
43
|
+
"@tamagui/adapt": "1.35.8",
|
|
44
|
+
"@tamagui/alert-dialog": "1.35.8",
|
|
45
|
+
"@tamagui/animate-presence": "1.35.8",
|
|
46
|
+
"@tamagui/avatar": "1.35.8",
|
|
47
|
+
"@tamagui/button": "1.35.8",
|
|
48
|
+
"@tamagui/card": "1.35.8",
|
|
49
|
+
"@tamagui/checkbox": "1.35.8",
|
|
50
|
+
"@tamagui/compose-refs": "1.35.8",
|
|
51
|
+
"@tamagui/core": "1.35.8",
|
|
52
|
+
"@tamagui/create-context": "1.35.8",
|
|
53
|
+
"@tamagui/dialog": "1.35.8",
|
|
54
|
+
"@tamagui/fake-react-native": "1.35.8",
|
|
55
|
+
"@tamagui/focusable": "1.35.8",
|
|
56
|
+
"@tamagui/font-size": "1.35.8",
|
|
57
|
+
"@tamagui/form": "1.35.8",
|
|
58
|
+
"@tamagui/get-button-sized": "1.35.8",
|
|
59
|
+
"@tamagui/get-font-sized": "1.35.8",
|
|
60
|
+
"@tamagui/get-token": "1.35.8",
|
|
61
|
+
"@tamagui/helpers": "1.35.8",
|
|
62
|
+
"@tamagui/helpers-tamagui": "1.35.8",
|
|
63
|
+
"@tamagui/image": "1.35.8",
|
|
64
|
+
"@tamagui/label": "1.35.8",
|
|
65
|
+
"@tamagui/linear-gradient": "1.35.8",
|
|
66
|
+
"@tamagui/list-item": "1.35.8",
|
|
67
|
+
"@tamagui/popover": "1.35.8",
|
|
68
|
+
"@tamagui/popper": "1.35.8",
|
|
69
|
+
"@tamagui/portal": "1.35.8",
|
|
70
|
+
"@tamagui/progress": "1.35.8",
|
|
71
|
+
"@tamagui/radio-group": "1.35.8",
|
|
72
|
+
"@tamagui/react-native-media-driver": "1.35.8",
|
|
73
|
+
"@tamagui/scroll-view": "1.35.8",
|
|
74
|
+
"@tamagui/select": "1.35.8",
|
|
75
|
+
"@tamagui/separator": "1.35.8",
|
|
76
|
+
"@tamagui/shapes": "1.35.8",
|
|
77
|
+
"@tamagui/sheet": "1.35.8",
|
|
78
|
+
"@tamagui/slider": "1.35.8",
|
|
79
|
+
"@tamagui/stacks": "1.35.8",
|
|
80
|
+
"@tamagui/switch": "1.35.8",
|
|
81
|
+
"@tamagui/tabs": "1.35.8",
|
|
82
|
+
"@tamagui/text": "1.35.8",
|
|
83
|
+
"@tamagui/theme": "1.35.8",
|
|
84
|
+
"@tamagui/toggle-group": "1.35.8",
|
|
85
|
+
"@tamagui/tooltip": "1.35.8",
|
|
86
|
+
"@tamagui/use-controllable-state": "1.35.8",
|
|
87
|
+
"@tamagui/use-debounce": "1.35.8",
|
|
88
|
+
"@tamagui/use-event": "1.35.8",
|
|
89
|
+
"@tamagui/use-force-update": "1.35.8",
|
|
90
|
+
"@tamagui/use-window-dimensions": "1.35.8",
|
|
91
|
+
"@tamagui/visually-hidden": "1.35.8",
|
|
92
92
|
"reforest": "^0.12.1"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"react-native-web": "*"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@tamagui/build": "1.35.
|
|
99
|
+
"@tamagui/build": "1.35.8",
|
|
100
100
|
"react": "^18.2.0",
|
|
101
101
|
"react-native-web": "^0.19.4"
|
|
102
102
|
},
|
package/src/views/TextArea.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { styled } from '@tamagui/core'
|
|
1
|
+
import { isWeb, styled } from '@tamagui/core'
|
|
2
2
|
|
|
3
3
|
import { textAreaSizeVariant } from '../helpers/inputHelpers'
|
|
4
4
|
import { InputFrame, InputProps, defaultStyles, useInputProps } from './Input'
|
|
@@ -34,5 +34,9 @@ export type TextAreaProps = InputProps
|
|
|
34
34
|
export const TextArea = TextAreaFrame.styleable<InputProps>((propsIn, ref) => {
|
|
35
35
|
const props = useInputProps(propsIn, ref)
|
|
36
36
|
// defaults to 4 rows
|
|
37
|
-
|
|
37
|
+
const linesProp = {
|
|
38
|
+
// web uses rows now, but native not caught up :/
|
|
39
|
+
[isWeb ? 'rows' : 'numberOfLines']: propsIn.unstyled ? undefined : 4,
|
|
40
|
+
}
|
|
41
|
+
return <TextAreaFrame {...linesProp} {...props} />
|
|
38
42
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../src/views/TextArea.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAc,UAAU,EAAgC,MAAM,SAAS,CAAA;AAE9E;;GAEG;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,UAAU,CAAA;AAEtC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../src/views/TextArea.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAc,UAAU,EAAgC,MAAM,SAAS,CAAA;AAE9E;;GAEG;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,UAAU,CAAA;AAEtC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnB,CAAA"}
|