@tamagui/form 2.0.0-rc.26 → 2.0.0-rc.26-1773452370596

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/form",
3
- "version": "2.0.0-rc.26",
3
+ "version": "2.0.0-rc.26-1773452370596",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -36,11 +36,11 @@
36
36
  "clean:build": "tamagui-build clean:build"
37
37
  },
38
38
  "dependencies": {
39
- "@tamagui/core": "2.0.0-rc.26",
40
- "@tamagui/helpers": "2.0.0-rc.26"
39
+ "@tamagui/core": "2.0.0-rc.26-1773452370596",
40
+ "@tamagui/helpers": "2.0.0-rc.26-1773452370596"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "2.0.0-rc.26",
43
+ "@tamagui/build": "2.0.0-rc.26-1773452370596",
44
44
  "react": ">=19"
45
45
  },
46
46
  "peerDependencies": {
package/dist/cjs/Form.js DELETED
@@ -1,61 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var Form_exports = {};
16
- __export(Form_exports, {
17
- Form: () => Form2,
18
- FormContext: () => FormContext,
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_helpers = require("@tamagui/helpers"), import_jsx_runtime = require("react/jsx-runtime");
26
- const FORM_NAME = "Form", FormFrame = (0, import_core.styled)(import_core.View, {
27
- name: FORM_NAME,
28
- render: "form"
29
- }), FormContext = (0, import_core.createStyledContext)({
30
- onSubmit: void 0
31
- }), { useStyledContext: useFormContext, Provider: FormProvider } = FormContext, FormTriggerFrame = (0, import_core.styled)(import_core.View, {
32
- name: "FormTrigger"
33
- }), FormTrigger = FormTriggerFrame.styleable(
34
- (props, forwardedRef) => {
35
- const { scope, children, onPress, ...triggerProps } = props, context = useFormContext(scope);
36
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
37
- FormTriggerFrame,
38
- {
39
- role: "button",
40
- ...triggerProps,
41
- ref: forwardedRef,
42
- onPress: (0, import_helpers.composeEventHandlers)(onPress, context.onSubmit),
43
- children
44
- }
45
- );
46
- }
47
- ), FormComponent = FormFrame.styleable(function({ scope, onSubmit, ...props }, ref) {
48
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormProvider, { scope, onSubmit, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
49
- FormFrame,
50
- {
51
- ref,
52
- ...props,
53
- onSubmit: (e) => {
54
- e.preventDefault(), onSubmit?.();
55
- }
56
- }
57
- ) });
58
- }), Form2 = (0, import_helpers.withStaticProperties)(FormComponent, {
59
- Trigger: FormTrigger
60
- });
61
- //# sourceMappingURL=Form.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Form.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,cAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAkD,0BAClD,iBAA2D,6BA+CrD;AA7CN,MAAM,YAAY,QAEL,gBAAY,oBAAO,kBAAM;AAAA,EACpC,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAUY,kBAAc,iCAAsC;AAAA,EAC/D,UAAU;AACZ,CAAqB,GAER,EAAE,kBAAkB,gBAAgB,UAAU,aAAa,IAAI,aAYtE,uBAAmB,oBAAO,kBAAM;AAAA,EACpC,MAAM;AACR,CAAC,GAMY,cAAc,iBAAiB;AAAA,EAC1C,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,OAAO,UAAU,SAAS,GAAG,aAAa,IAAI,OAChD,UAAU,eAAe,KAAK;AAEpC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACJ,GAAG;AAAA,QACJ,KAAK;AAAA,QACL,aAAS,qCAAqB,SAAS,QAAQ,QAAQ;AAAA,QAEtD;AAAA;AAAA,IACH;AAAA,EAEJ;AACF,GAMM,gBAAgB,UAAU,UAA0B,SACxD,EAAE,OAAO,UAAU,GAAG,MAAM,GAC5B,KACA;AACA,SACE,4CAAC,gBAAa,OAAc,UAC1B;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACC,GAAI;AAAA,MACL,UAAU,CAAC,MAAW;AACpB,UAAE,eAAe,GACjB,WAAW;AAAA,MACb;AAAA;AAAA,EACF,GACF;AAEJ,CAAC,GAEYA,YAAO,qCAAqB,eAAe;AAAA,EACtD,SAAS;AACX,CAAC;",
5
- "names": ["Form"]
6
- }
package/dist/esm/Form.js DELETED
@@ -1,47 +0,0 @@
1
- import { View, createStyledContext, styled } from "@tamagui/core";
2
- import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
3
- import { jsx } from "react/jsx-runtime";
4
- const FORM_NAME = "Form", FormFrame = styled(View, {
5
- name: FORM_NAME,
6
- render: "form"
7
- }), FormContext = createStyledContext({
8
- onSubmit: void 0
9
- }), { useStyledContext: useFormContext, Provider: FormProvider } = FormContext, FormTriggerFrame = styled(View, {
10
- name: "FormTrigger"
11
- }), FormTrigger = FormTriggerFrame.styleable(
12
- (props, forwardedRef) => {
13
- const { scope, children, onPress, ...triggerProps } = props, context = useFormContext(scope);
14
- return /* @__PURE__ */ jsx(
15
- FormTriggerFrame,
16
- {
17
- role: "button",
18
- ...triggerProps,
19
- ref: forwardedRef,
20
- onPress: composeEventHandlers(onPress, context.onSubmit),
21
- children
22
- }
23
- );
24
- }
25
- ), FormComponent = FormFrame.styleable(function({ scope, onSubmit, ...props }, ref) {
26
- return /* @__PURE__ */ jsx(FormProvider, { scope, onSubmit, children: /* @__PURE__ */ jsx(
27
- FormFrame,
28
- {
29
- ref,
30
- ...props,
31
- onSubmit: (e) => {
32
- e.preventDefault(), onSubmit?.();
33
- }
34
- }
35
- ) });
36
- }), Form2 = withStaticProperties(FormComponent, {
37
- Trigger: FormTrigger
38
- });
39
- export {
40
- Form2 as Form,
41
- FormContext,
42
- FormFrame,
43
- FormProvider,
44
- FormTrigger,
45
- useFormContext
46
- };
47
- //# sourceMappingURL=Form.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Form.tsx"],
4
- "mappings": "AACA,SAAS,MAAM,qBAAqB,cAAc;AAClD,SAAS,sBAAsB,4BAA4B;AA+CrD;AA7CN,MAAM,YAAY,QAEL,YAAY,OAAO,MAAM;AAAA,EACpC,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAUY,cAAc,oBAAsC;AAAA,EAC/D,UAAU;AACZ,CAAqB,GAER,EAAE,kBAAkB,gBAAgB,UAAU,aAAa,IAAI,aAYtE,mBAAmB,OAAO,MAAM;AAAA,EACpC,MAAM;AACR,CAAC,GAMY,cAAc,iBAAiB;AAAA,EAC1C,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,OAAO,UAAU,SAAS,GAAG,aAAa,IAAI,OAChD,UAAU,eAAe,KAAK;AAEpC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACJ,GAAG;AAAA,QACJ,KAAK;AAAA,QACL,SAAS,qBAAqB,SAAS,QAAQ,QAAQ;AAAA,QAEtD;AAAA;AAAA,IACH;AAAA,EAEJ;AACF,GAMM,gBAAgB,UAAU,UAA0B,SACxD,EAAE,OAAO,UAAU,GAAG,MAAM,GAC5B,KACA;AACA,SACE,oBAAC,gBAAa,OAAc,UAC1B;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACC,GAAI;AAAA,MACL,UAAU,CAAC,MAAW;AACpB,UAAE,eAAe,GACjB,WAAW;AAAA,MACb;AAAA;AAAA,EACF,GACF;AAEJ,CAAC,GAEYA,QAAO,qBAAqB,eAAe;AAAA,EACtD,SAAS;AACX,CAAC;",
5
- "names": ["Form"]
6
- }
package/dist/jsx/Form.js DELETED
@@ -1,47 +0,0 @@
1
- import { View, createStyledContext, styled } from "@tamagui/core";
2
- import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
3
- import { jsx } from "react/jsx-runtime";
4
- const FORM_NAME = "Form", FormFrame = styled(View, {
5
- name: FORM_NAME,
6
- render: "form"
7
- }), FormContext = createStyledContext({
8
- onSubmit: void 0
9
- }), { useStyledContext: useFormContext, Provider: FormProvider } = FormContext, FormTriggerFrame = styled(View, {
10
- name: "FormTrigger"
11
- }), FormTrigger = FormTriggerFrame.styleable(
12
- (props, forwardedRef) => {
13
- const { scope, children, onPress, ...triggerProps } = props, context = useFormContext(scope);
14
- return /* @__PURE__ */ jsx(
15
- FormTriggerFrame,
16
- {
17
- role: "button",
18
- ...triggerProps,
19
- ref: forwardedRef,
20
- onPress: composeEventHandlers(onPress, context.onSubmit),
21
- children
22
- }
23
- );
24
- }
25
- ), FormComponent = FormFrame.styleable(function({ scope, onSubmit, ...props }, ref) {
26
- return /* @__PURE__ */ jsx(FormProvider, { scope, onSubmit, children: /* @__PURE__ */ jsx(
27
- FormFrame,
28
- {
29
- ref,
30
- ...props,
31
- onSubmit: (e) => {
32
- e.preventDefault(), onSubmit?.();
33
- }
34
- }
35
- ) });
36
- }), Form2 = withStaticProperties(FormComponent, {
37
- Trigger: FormTrigger
38
- });
39
- export {
40
- Form2 as Form,
41
- FormContext,
42
- FormFrame,
43
- FormProvider,
44
- FormTrigger,
45
- useFormContext
46
- };
47
- //# sourceMappingURL=Form.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Form.tsx"],
4
- "mappings": "AACA,SAAS,MAAM,qBAAqB,cAAc;AAClD,SAAS,sBAAsB,4BAA4B;AA+CrD;AA7CN,MAAM,YAAY,QAEL,YAAY,OAAO,MAAM;AAAA,EACpC,MAAM;AAAA,EACN,QAAQ;AACV,CAAC,GAUY,cAAc,oBAAsC;AAAA,EAC/D,UAAU;AACZ,CAAqB,GAER,EAAE,kBAAkB,gBAAgB,UAAU,aAAa,IAAI,aAYtE,mBAAmB,OAAO,MAAM;AAAA,EACpC,MAAM;AACR,CAAC,GAMY,cAAc,iBAAiB;AAAA,EAC1C,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,OAAO,UAAU,SAAS,GAAG,aAAa,IAAI,OAChD,UAAU,eAAe,KAAK;AAEpC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACJ,GAAG;AAAA,QACJ,KAAK;AAAA,QACL,SAAS,qBAAqB,SAAS,QAAQ,QAAQ;AAAA,QAEtD;AAAA;AAAA,IACH;AAAA,EAEJ;AACF,GAMM,gBAAgB,UAAU,UAA0B,SACxD,EAAE,OAAO,UAAU,GAAG,MAAM,GAC5B,KACA;AACA,SACE,oBAAC,gBAAa,OAAc,UAC1B;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACC,GAAI;AAAA,MACL,UAAU,CAAC,MAAW;AACpB,UAAE,eAAe,GACjB,WAAW;AAAA,MACb;AAAA;AAAA,EACF,GACF;AAEJ,CAAC,GAEYA,QAAO,qBAAqB,eAAe;AAAA,EACtD,SAAS;AACX,CAAC;",
5
- "names": ["Form"]
6
- }