@tamagui/form 1.89.0-1706483140977 → 1.89.1

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.
@@ -1,43 +1,22 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var Form_exports = {};
17
- __export(Form_exports, {
18
- Form: () => Form2,
19
- FormFrame: () => FormFrame,
20
- FormProvider: () => FormProvider,
21
- FormTrigger: () => FormTrigger,
22
- useFormContext: () => useFormContext
23
- });
24
- module.exports = __toCommonJS(Form_exports);
25
- var import_core = require("@tamagui/core"), import_create_context = require("@tamagui/create-context"), import_helpers = require("@tamagui/helpers"), import_jsx_runtime = require("react/jsx-runtime");
26
- const FORM_NAME = "Form", FormFrame = (0, import_core.styled)(import_core.Stack, {
1
+ import { Stack, View, styled } from "@tamagui/core";
2
+ import { createContextScope } from "@tamagui/create-context";
3
+ import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
4
+ import { jsx } from "react/jsx-runtime";
5
+ const FORM_NAME = "Form", FormFrame = styled(Stack, {
27
6
  name: FORM_NAME,
28
7
  tag: "form"
29
- }), [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = (0, import_core.styled)(import_core.View, {
8
+ }), [createFormContext] = createContextScope(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = styled(View, {
30
9
  name: TRIGGER_NAME
31
10
  }), FormTrigger = FormTriggerFrame.styleable(
32
11
  (props, forwardedRef) => {
33
12
  const { __scopeForm, children, onPress, ...triggerProps } = props, context = useFormContext(TRIGGER_NAME, __scopeForm);
34
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
13
+ return /* @__PURE__ */ jsx(
35
14
  FormTriggerFrame,
36
15
  {
37
16
  tag: "button",
38
17
  ...triggerProps,
39
18
  ref: forwardedRef,
40
- onPress: (0, import_helpers.composeEventHandlers)(onPress, context.onSubmit),
19
+ onPress: composeEventHandlers(onPress, context.onSubmit),
41
20
  children
42
21
  }
43
22
  );
@@ -46,16 +25,15 @@ const FORM_NAME = "Form", FormFrame = (0, import_core.styled)(import_core.Stack,
46
25
  onSubmit,
47
26
  ...props
48
27
  }) {
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormProvider, { scope: props.__scopeForm, onSubmit, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormFrame, { ...props, onSubmit: (e) => e.preventDefault() }) });
50
- }), Form2 = (0, import_helpers.withStaticProperties)(FormComponent, {
28
+ return /* @__PURE__ */ jsx(FormProvider, { scope: props.__scopeForm, onSubmit, children: /* @__PURE__ */ jsx(FormFrame, { ...props, onSubmit: (e) => e.preventDefault() }) });
29
+ }), Form2 = withStaticProperties(FormComponent, {
51
30
  Trigger: FormTrigger
52
31
  });
53
- // Annotate the CommonJS export names for ESM import in node:
54
- 0 && (module.exports = {
55
- Form,
32
+ export {
33
+ Form2 as Form,
56
34
  FormFrame,
57
35
  FormProvider,
58
36
  FormTrigger,
59
37
  useFormContext
60
- });
38
+ };
61
39
  //# sourceMappingURL=Form.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "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AM3C,CAAC,cAAc,cAAc,IACxC,kBAAoC,SAAS,GAUzC,eAAe,eAEf,mBAAmB,OAAO,MAAM;AAAA,EACpC,MAAM;AACR,CAAC,GAIY,cAAc,iBAAiB;AAAA,EAC1C,CAAC,OAAsC,iBAAiB;AACtD,UAAM,EAAE,aAAa,UAAU,SAAS,GAAG,aAAa,IAAI,OACtD,UAAU,eAAe,cAAc,WAAW;AAExD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAI;AAAA,QACH,GAAI;AAAA,QACL,KAAK;AAAA,QACL,SAAS,qBAAqB,SAAgB,QAAQ,QAAQ;AAAA,QAE7D;AAAA;AAAA,IACH;AAAA,EAEJ;AACF,GAMM,gBAAgB,UAAU,YAAY,SAAc;AAAA,EACxD;AAAA,EACA,GAAG;AACL,GAA2B;AACzB,SACE,oBAAC,gBAAa,OAAO,MAAM,aAAa,UACtC,8BAAC,aAAW,GAAI,OAAe,UAAU,CAAC,MAAW,EAAE,eAAe,GAAG,GAC3E;AAEJ,CAAC,GAEYA,QAAO,qBAAqB,eAAe;AAAA,EACtD,SAAS;AACX,CAAC;",
5
5
  "names": ["Form"]
6
6
  }
@@ -1,20 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
- var src_exports = {};
14
- module.exports = __toCommonJS(src_exports);
15
- __reExport(src_exports, require("./Form"), module.exports);
16
- // Annotate the CommonJS export names for ESM import in node:
17
- 0 && (module.exports = {
18
- ...require("./Form")
19
- });
1
+ export * from "./Form";
20
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,mBAAd;",
4
+ "mappings": "AAAA,cAAc;",
5
5
  "names": []
6
6
  }
@@ -1,43 +1,22 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var Form_exports = {};
17
- __export(Form_exports, {
18
- Form: () => Form2,
19
- FormFrame: () => FormFrame,
20
- FormProvider: () => FormProvider,
21
- FormTrigger: () => FormTrigger,
22
- useFormContext: () => useFormContext
23
- });
24
- module.exports = __toCommonJS(Form_exports);
25
- var import_core = require("@tamagui/core"), import_create_context = require("@tamagui/create-context"), import_helpers = require("@tamagui/helpers"), import_jsx_runtime = require("react/jsx-runtime");
26
- const FORM_NAME = "Form", FormFrame = (0, import_core.styled)(import_core.Stack, {
1
+ import { Stack, View, styled } from "@tamagui/core";
2
+ import { createContextScope } from "@tamagui/create-context";
3
+ import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
4
+ import { jsx } from "react/jsx-runtime";
5
+ const FORM_NAME = "Form", FormFrame = styled(Stack, {
27
6
  name: FORM_NAME,
28
7
  tag: "form"
29
- }), [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = (0, import_core.styled)(import_core.View, {
8
+ }), [createFormContext] = createContextScope(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = styled(View, {
30
9
  name: TRIGGER_NAME
31
10
  }), FormTrigger = FormTriggerFrame.styleable(
32
11
  (props, forwardedRef) => {
33
12
  const { __scopeForm, children, onPress, ...triggerProps } = props, context = useFormContext(TRIGGER_NAME, __scopeForm);
34
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
13
+ return /* @__PURE__ */ jsx(
35
14
  FormTriggerFrame,
36
15
  {
37
16
  tag: "button",
38
17
  ...triggerProps,
39
18
  ref: forwardedRef,
40
- onPress: (0, import_helpers.composeEventHandlers)(onPress, context.onSubmit),
19
+ onPress: composeEventHandlers(onPress, context.onSubmit),
41
20
  children
42
21
  }
43
22
  );
@@ -46,16 +25,15 @@ const FORM_NAME = "Form", FormFrame = (0, import_core.styled)(import_core.Stack,
46
25
  onSubmit,
47
26
  ...props
48
27
  }) {
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormProvider, { scope: props.__scopeForm, onSubmit, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormFrame, { ...props, onSubmit: (e) => e.preventDefault() }) });
50
- }), Form2 = (0, import_helpers.withStaticProperties)(FormComponent, {
28
+ return /* @__PURE__ */ jsx(FormProvider, { scope: props.__scopeForm, onSubmit, children: /* @__PURE__ */ jsx(FormFrame, { ...props, onSubmit: (e) => e.preventDefault() }) });
29
+ }), Form2 = withStaticProperties(FormComponent, {
51
30
  Trigger: FormTrigger
52
31
  });
53
- // Annotate the CommonJS export names for ESM import in node:
54
- 0 && (module.exports = {
55
- Form,
32
+ export {
33
+ Form2 as Form,
56
34
  FormFrame,
57
35
  FormProvider,
58
36
  FormTrigger,
59
37
  useFormContext
60
- });
38
+ };
61
39
  //# sourceMappingURL=Form.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Form.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,cAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAoC,0BAEpC,wBAAmC,oCACnC,iBAA2D,6BA6CrD;AA3CN,MAAM,YAAY,QAEL,gBAAY,oBAAO,mBAAO;AAAA,EACrC,MAAM;AAAA,EACN,KAAK;AACP,CAAC,GAOK,CAAC,iBAAiB,QAAI,0CAAmB,SAAS,GAM3C,CAAC,cAAc,cAAc,IACxC,kBAAoC,SAAS,GAUzC,eAAe,eAEf,uBAAmB,oBAAO,kBAAM;AAAA,EACpC,MAAM;AACR,CAAC,GAIY,cAAc,iBAAiB;AAAA,EAC1C,CAAC,OAAsC,iBAAiB;AACtD,UAAM,EAAE,aAAa,UAAU,SAAS,GAAG,aAAa,IAAI,OACtD,UAAU,eAAe,cAAc,WAAW;AAExD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAI;AAAA,QACH,GAAI;AAAA,QACL,KAAK;AAAA,QACL,aAAS,qCAAqB,SAAgB,QAAQ,QAAQ;AAAA,QAE7D;AAAA;AAAA,IACH;AAAA,EAEJ;AACF,GAMM,gBAAgB,UAAU,YAAY,SAAc;AAAA,EACxD;AAAA,EACA,GAAG;AACL,GAA2B;AACzB,SACE,4CAAC,gBAAa,OAAO,MAAM,aAAa,UACtC,sDAAC,aAAW,GAAI,OAAe,UAAU,CAAC,MAAW,EAAE,eAAe,GAAG,GAC3E;AAEJ,CAAC,GAEYA,YAAO,qCAAqB,eAAe;AAAA,EACtD,SAAS;AACX,CAAC;",
4
+ "mappings": "AACA,SAAS,OAAO,MAAM,cAAc;AAEpC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB,4BAA4B;AA6CrD;AA3CN,MAAM,YAAY,QAEL,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,KAAK;AACP,CAAC,GAOK,CAAC,iBAAiB,IAAI,mBAAmB,SAAS,GAM3C,CAAC,cAAc,cAAc,IACxC,kBAAoC,SAAS,GAUzC,eAAe,eAEf,mBAAmB,OAAO,MAAM;AAAA,EACpC,MAAM;AACR,CAAC,GAIY,cAAc,iBAAiB;AAAA,EAC1C,CAAC,OAAsC,iBAAiB;AACtD,UAAM,EAAE,aAAa,UAAU,SAAS,GAAG,aAAa,IAAI,OACtD,UAAU,eAAe,cAAc,WAAW;AAExD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAI;AAAA,QACH,GAAI;AAAA,QACL,KAAK;AAAA,QACL,SAAS,qBAAqB,SAAgB,QAAQ,QAAQ;AAAA,QAE7D;AAAA;AAAA,IACH;AAAA,EAEJ;AACF,GAMM,gBAAgB,UAAU,YAAY,SAAc;AAAA,EACxD;AAAA,EACA,GAAG;AACL,GAA2B;AACzB,SACE,oBAAC,gBAAa,OAAO,MAAM,aAAa,UACtC,8BAAC,aAAW,GAAI,OAAe,UAAU,CAAC,MAAW,EAAE,eAAe,GAAG,GAC3E;AAEJ,CAAC,GAEYA,QAAO,qBAAqB,eAAe;AAAA,EACtD,SAAS;AACX,CAAC;",
5
5
  "names": ["Form"]
6
6
  }
@@ -1,20 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
- var src_exports = {};
14
- module.exports = __toCommonJS(src_exports);
15
- __reExport(src_exports, require("./Form"), module.exports);
16
- // Annotate the CommonJS export names for ESM import in node:
17
- 0 && (module.exports = {
18
- ...require("./Form")
19
- });
1
+ export * from "./Form";
20
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,mBAAd;",
4
+ "mappings": "AAAA,cAAc;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/form",
3
- "version": "1.89.0-1706483140977",
3
+ "version": "1.89.1",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -32,20 +32,20 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@tamagui/compose-refs": "1.89.0-1706483140977",
36
- "@tamagui/core": "1.89.0-1706483140977",
37
- "@tamagui/create-context": "1.89.0-1706483140977",
38
- "@tamagui/focusable": "1.89.0-1706483140977",
39
- "@tamagui/get-button-sized": "1.89.0-1706483140977",
40
- "@tamagui/get-font-sized": "1.89.0-1706483140977",
41
- "@tamagui/helpers": "1.89.0-1706483140977",
42
- "@tamagui/text": "1.89.0-1706483140977"
35
+ "@tamagui/compose-refs": "1.89.1",
36
+ "@tamagui/core": "1.89.1",
37
+ "@tamagui/create-context": "1.89.1",
38
+ "@tamagui/focusable": "1.89.1",
39
+ "@tamagui/get-button-sized": "1.89.1",
40
+ "@tamagui/get-font-sized": "1.89.1",
41
+ "@tamagui/helpers": "1.89.1",
42
+ "@tamagui/text": "1.89.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": "*"
46
46
  },
47
47
  "devDependencies": {
48
- "@tamagui/build": "1.89.0-1706483140977",
48
+ "@tamagui/build": "1.89.1",
49
49
  "react": "^18.2.0"
50
50
  },
51
51
  "publishConfig": {