@tamagui/form 1.113.0 → 1.113.2

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.
@@ -2,51 +2,40 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Stack, View, styled } from "@tamagui/core";
3
3
  import { createContextScope } from "@tamagui/create-context";
4
4
  import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
5
- var FORM_NAME = "Form",
6
- FormFrame = styled(Stack, {
7
- name: FORM_NAME,
8
- tag: "form"
9
- }),
10
- [createFormContext] = createContextScope(FORM_NAME),
11
- [FormProvider, useFormContext] = createFormContext(FORM_NAME),
12
- TRIGGER_NAME = "FormTrigger",
13
- FormTriggerFrame = styled(View, {
14
- name: TRIGGER_NAME
15
- }),
16
- FormTrigger = FormTriggerFrame.styleable(function (props, forwardedRef) {
17
- var {
18
- __scopeForm,
19
- children,
20
- onPress,
21
- ...triggerProps
22
- } = props,
23
- context = useFormContext(TRIGGER_NAME, __scopeForm);
24
- return /* @__PURE__ */_jsx(FormTriggerFrame, {
25
- tag: "button",
26
- ...triggerProps,
27
- ref: forwardedRef,
28
- onPress: composeEventHandlers(onPress, context.onSubmit),
29
- children
30
- });
31
- }),
32
- FormComponent = FormFrame.extractable(function (param) {
33
- var {
34
- onSubmit,
35
- ...props
36
- } = param;
37
- return /* @__PURE__ */_jsx(FormProvider, {
38
- scope: props.__scopeForm,
39
- onSubmit,
40
- children: /* @__PURE__ */_jsx(FormFrame, {
41
- ...props,
42
- onSubmit: function (e) {
43
- return e.preventDefault();
44
- }
45
- })
46
- });
47
- }),
48
- Form2 = withStaticProperties(FormComponent, {
49
- Trigger: FormTrigger
5
+ var FORM_NAME = "Form", FormFrame = styled(Stack, {
6
+ name: FORM_NAME,
7
+ tag: "form"
8
+ }), [createFormContext] = createContextScope(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = styled(View, {
9
+ name: TRIGGER_NAME
10
+ }), FormTrigger = FormTriggerFrame.styleable(function(props, forwardedRef) {
11
+ var { __scopeForm, children, onPress, ...triggerProps } = props, context = useFormContext(TRIGGER_NAME, __scopeForm);
12
+ return /* @__PURE__ */ _jsx(FormTriggerFrame, {
13
+ tag: "button",
14
+ ...triggerProps,
15
+ ref: forwardedRef,
16
+ onPress: composeEventHandlers(onPress, context.onSubmit),
17
+ children
50
18
  });
51
- export { Form2 as Form, FormFrame, FormProvider, FormTrigger, useFormContext };
52
- //# sourceMappingURL=Form.native.js.map
19
+ }), FormComponent = FormFrame.extractable(function(param) {
20
+ var { onSubmit, ...props } = param;
21
+ return /* @__PURE__ */ _jsx(FormProvider, {
22
+ scope: props.__scopeForm,
23
+ onSubmit,
24
+ children: /* @__PURE__ */ _jsx(FormFrame, {
25
+ ...props,
26
+ onSubmit: function(e) {
27
+ return e.preventDefault();
28
+ }
29
+ })
30
+ });
31
+ }), Form2 = withStaticProperties(FormComponent, {
32
+ Trigger: FormTrigger
33
+ });
34
+ export {
35
+ Form2 as Form,
36
+ FormFrame,
37
+ FormProvider,
38
+ FormTrigger,
39
+ useFormContext
40
+ };
41
+ //# sourceMappingURL=Form.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["jsx","_jsx","Stack","View","styled","createContextScope","composeEventHandlers","withStaticProperties","FORM_NAME","FormFrame","name","tag","createFormContext","FormProvider","useFormContext","TRIGGER_NAME","FormTriggerFrame","FormTrigger","styleable","props","forwardedRef","__scopeForm","children","onPress","triggerProps","context","ref","onSubmit","FormComponent","extractable","param","scope","e","preventDefault","Form2"],"sources":["../../src/Form.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,GAAA,IAAOC,IAAA,QAAM,mBAAc;AAEpC,SAASC,KAAA,EAAAC,IAAA,EAAAC,MAAA,QAA0B;AACnC,SAASC,kBAAA,QAAsB,yBAA4B;AA6CrD,SAAAC,oBAAA,EAAAC,oBAAA;AA3CN,IAAAC,SAAM,SAAY;EAA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MC,cAAc;AAEpC,SAASC,0BAA0B;AACnC,SAASC,sBAAsBC,4BAA4B;AAE3D,IAAMC,YAAY,QAELC,YAAYL,OAAOF,OAAO;EACrCQ,MAAMF;EACNG,KAAK;AACP,CAAA,GAOM,CAACC,iBAAAA,IAAqBP,mBAAmBG,SAAAA,GAMlC,CAACK,cAAcC,cAAAA,IAC1BF,kBAAoCJ,SAAAA,GAUhCO,eAAe,eAEfC,mBAAmBZ,OAAOD,MAAM;EACpCO,MAAMK;AACR,CAAA,GAIaE,cAAcD,iBAAiBE,UAC1C,SAACC,OAAsCC,cAAAA;AACrC,MAAM,EAAEC,aAAaC,UAAUC,SAAS,GAAGC,aAAAA,IAAiBL,OACtDM,UAAUX,eAAeC,cAAcM,WAAAA;AAE7C,SACE,qBAACL,kBAAAA;IACCL,KAAI;IACH,GAAIa;IACLE,KAAKN;IACLG,SAASjB,qBAAqBiB,SAAgBE,QAAQE,QAAQ;;;AAKpE,CAAA,GAOIC,gBAAgBnB,UAAUoB,YAAY,SAAc,OAGjC;MAHiC,EACxDF,UACA,GAAGR,MAAAA,IAFqD;AAIxD,SACE,qBAACN,cAAAA;IAAaiB,OAAOX,MAAME;IAAaM;cACtC,qBAAClB,WAAAA;MAAW,GAAIU;MAAeQ,UAAU,SAACI,GAAAA;eAAWA,EAAEC,eAAc;;;;AAG3E,CAAA,GAEaC,QAAO1B,qBAAqBqB,eAAe;EACtDM,SAASjB;AACX,CAAA;",
5
+ "names": ["Stack", "View", "styled", "createContextScope", "composeEventHandlers", "withStaticProperties", "FORM_NAME", "FormFrame", "name", "tag", "createFormContext", "FormProvider", "useFormContext", "TRIGGER_NAME", "FormTriggerFrame", "FormTrigger", "styleable", "props", "forwardedRef", "__scopeForm", "children", "onPress", "triggerProps", "context", "ref", "onSubmit", "FormComponent", "extractable", "scope", "e", "preventDefault", "Form", "Trigger"]
6
+ }
@@ -1,2 +1,2 @@
1
- export * from "./Form.native.js";
2
- //# sourceMappingURL=index.native.js.map
1
+ export * from "./Form";
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/ui/form/src/index.ts"],
4
+ "mappings": "AAAA,cAAc;",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/form",
3
- "version": "1.113.0",
3
+ "version": "1.113.2",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -33,17 +33,17 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@tamagui/compose-refs": "1.113.0",
37
- "@tamagui/core": "1.113.0",
38
- "@tamagui/create-context": "1.113.0",
39
- "@tamagui/focusable": "1.113.0",
40
- "@tamagui/get-button-sized": "1.113.0",
41
- "@tamagui/get-font-sized": "1.113.0",
42
- "@tamagui/helpers": "1.113.0",
43
- "@tamagui/text": "1.113.0"
36
+ "@tamagui/compose-refs": "1.113.2",
37
+ "@tamagui/core": "1.113.2",
38
+ "@tamagui/create-context": "1.113.2",
39
+ "@tamagui/focusable": "1.113.2",
40
+ "@tamagui/get-button-sized": "1.113.2",
41
+ "@tamagui/get-font-sized": "1.113.2",
42
+ "@tamagui/helpers": "1.113.2",
43
+ "@tamagui/text": "1.113.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@tamagui/build": "1.113.0",
46
+ "@tamagui/build": "1.113.2",
47
47
  "react": "^18.2.0 || ^19.0.0"
48
48
  },
49
49
  "publishConfig": {