tamagui 1.35.7 → 1.35.11

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.
@@ -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
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextAreaFrame, { rows: propsIn.unstyled ? void 0 : 4, ...props });
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;AAoCS;AApCT,kBAAuB;AAEvB,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,SAAO,4CAAC,iBAAc,MAAM,QAAQ,WAAW,SAAY,GAAI,GAAG,OAAO;AAC3E,CAAC;",
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
- return /* @__PURE__ */ jsx(TextAreaFrame, { rows: propsIn.unstyled ? void 0 : 4, ...props });
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": "AAoCS;AApCT,SAAS,cAAc;AAEvB,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,SAAO,oBAAC,iBAAc,MAAM,QAAQ,WAAW,SAAY,GAAI,GAAG,OAAO;AAC3E,CAAC;",
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
- return <TextAreaFrame rows={propsIn.unstyled ? void 0 : 4} {...props} />;
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;AAEvB,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,SAAO,CAAC,cAAc,MAAM,QAAQ,WAAW,SAAY,OAAO,OAAO;AAC3E,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
- return <TextAreaFrame rows={propsIn.unstyled ? void 0 : 4} {...props} />;
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 +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CAAC;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamagui",
3
- "version": "1.35.7",
3
+ "version": "1.35.11",
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.7",
44
- "@tamagui/alert-dialog": "1.35.7",
45
- "@tamagui/animate-presence": "1.35.7",
46
- "@tamagui/avatar": "1.35.7",
47
- "@tamagui/button": "1.35.7",
48
- "@tamagui/card": "1.35.7",
49
- "@tamagui/checkbox": "1.35.7",
50
- "@tamagui/compose-refs": "1.35.7",
51
- "@tamagui/core": "1.35.7",
52
- "@tamagui/create-context": "1.35.7",
53
- "@tamagui/dialog": "1.35.7",
54
- "@tamagui/fake-react-native": "1.35.7",
55
- "@tamagui/focusable": "1.35.7",
56
- "@tamagui/font-size": "1.35.7",
57
- "@tamagui/form": "1.35.7",
58
- "@tamagui/get-button-sized": "1.35.7",
59
- "@tamagui/get-font-sized": "1.35.7",
60
- "@tamagui/get-token": "1.35.7",
61
- "@tamagui/helpers": "1.35.7",
62
- "@tamagui/helpers-tamagui": "1.35.7",
63
- "@tamagui/image": "1.35.7",
64
- "@tamagui/label": "1.35.7",
65
- "@tamagui/linear-gradient": "1.35.7",
66
- "@tamagui/list-item": "1.35.7",
67
- "@tamagui/popover": "1.35.7",
68
- "@tamagui/popper": "1.35.7",
69
- "@tamagui/portal": "1.35.7",
70
- "@tamagui/progress": "1.35.7",
71
- "@tamagui/radio-group": "1.35.7",
72
- "@tamagui/react-native-media-driver": "1.35.7",
73
- "@tamagui/scroll-view": "1.35.7",
74
- "@tamagui/select": "1.35.7",
75
- "@tamagui/separator": "1.35.7",
76
- "@tamagui/shapes": "1.35.7",
77
- "@tamagui/sheet": "1.35.7",
78
- "@tamagui/slider": "1.35.7",
79
- "@tamagui/stacks": "1.35.7",
80
- "@tamagui/switch": "1.35.7",
81
- "@tamagui/tabs": "1.35.7",
82
- "@tamagui/text": "1.35.7",
83
- "@tamagui/theme": "1.35.7",
84
- "@tamagui/toggle-group": "1.35.7",
85
- "@tamagui/tooltip": "1.35.7",
86
- "@tamagui/use-controllable-state": "1.35.7",
87
- "@tamagui/use-debounce": "1.35.7",
88
- "@tamagui/use-event": "1.35.7",
89
- "@tamagui/use-force-update": "1.35.7",
90
- "@tamagui/use-window-dimensions": "1.35.7",
91
- "@tamagui/visually-hidden": "1.35.7",
43
+ "@tamagui/adapt": "1.35.11",
44
+ "@tamagui/alert-dialog": "1.35.11",
45
+ "@tamagui/animate-presence": "1.35.11",
46
+ "@tamagui/avatar": "1.35.11",
47
+ "@tamagui/button": "1.35.11",
48
+ "@tamagui/card": "1.35.11",
49
+ "@tamagui/checkbox": "1.35.11",
50
+ "@tamagui/compose-refs": "1.35.11",
51
+ "@tamagui/core": "1.35.11",
52
+ "@tamagui/create-context": "1.35.11",
53
+ "@tamagui/dialog": "1.35.11",
54
+ "@tamagui/fake-react-native": "1.35.11",
55
+ "@tamagui/focusable": "1.35.11",
56
+ "@tamagui/font-size": "1.35.11",
57
+ "@tamagui/form": "1.35.11",
58
+ "@tamagui/get-button-sized": "1.35.11",
59
+ "@tamagui/get-font-sized": "1.35.11",
60
+ "@tamagui/get-token": "1.35.11",
61
+ "@tamagui/helpers": "1.35.11",
62
+ "@tamagui/helpers-tamagui": "1.35.11",
63
+ "@tamagui/image": "1.35.11",
64
+ "@tamagui/label": "1.35.11",
65
+ "@tamagui/linear-gradient": "1.35.11",
66
+ "@tamagui/list-item": "1.35.11",
67
+ "@tamagui/popover": "1.35.11",
68
+ "@tamagui/popper": "1.35.11",
69
+ "@tamagui/portal": "1.35.11",
70
+ "@tamagui/progress": "1.35.11",
71
+ "@tamagui/radio-group": "1.35.11",
72
+ "@tamagui/react-native-media-driver": "1.35.11",
73
+ "@tamagui/scroll-view": "1.35.11",
74
+ "@tamagui/select": "1.35.11",
75
+ "@tamagui/separator": "1.35.11",
76
+ "@tamagui/shapes": "1.35.11",
77
+ "@tamagui/sheet": "1.35.11",
78
+ "@tamagui/slider": "1.35.11",
79
+ "@tamagui/stacks": "1.35.11",
80
+ "@tamagui/switch": "1.35.11",
81
+ "@tamagui/tabs": "1.35.11",
82
+ "@tamagui/text": "1.35.11",
83
+ "@tamagui/theme": "1.35.11",
84
+ "@tamagui/toggle-group": "1.35.11",
85
+ "@tamagui/tooltip": "1.35.11",
86
+ "@tamagui/use-controllable-state": "1.35.11",
87
+ "@tamagui/use-debounce": "1.35.11",
88
+ "@tamagui/use-event": "1.35.11",
89
+ "@tamagui/use-force-update": "1.35.11",
90
+ "@tamagui/use-window-dimensions": "1.35.11",
91
+ "@tamagui/visually-hidden": "1.35.11",
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.7",
99
+ "@tamagui/build": "1.35.11",
100
100
  "react": "^18.2.0",
101
101
  "react-native-web": "^0.19.4"
102
102
  },
@@ -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
- return <TextAreaFrame rows={propsIn.unstyled ? undefined : 4} {...props} />
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInB,CAAA"}
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"}