@tamagui/form 1.113.1 → 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.
package/dist/esm/Form.native.js
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
52
|
-
|
|
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
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/form/src/Form.tsx"],
|
|
4
|
+
"mappings": ";AACA,SAASA,OAAOC,MAAMC,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
|
+
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Form
|
|
2
|
-
//# sourceMappingURL=index.
|
|
1
|
+
export * from "./Form";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/form",
|
|
3
|
-
"version": "1.113.
|
|
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.
|
|
37
|
-
"@tamagui/core": "1.113.
|
|
38
|
-
"@tamagui/create-context": "1.113.
|
|
39
|
-
"@tamagui/focusable": "1.113.
|
|
40
|
-
"@tamagui/get-button-sized": "1.113.
|
|
41
|
-
"@tamagui/get-font-sized": "1.113.
|
|
42
|
-
"@tamagui/helpers": "1.113.
|
|
43
|
-
"@tamagui/text": "1.113.
|
|
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.
|
|
46
|
+
"@tamagui/build": "1.113.2",
|
|
47
47
|
"react": "^18.2.0 || ^19.0.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|