@tamagui/form 1.14.0 → 1.14.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/cjs/Form.js +77 -1
- package/dist/cjs/Form.js.map +2 -2
- package/dist/cjs/index.js +18 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/Form.js +54 -1
- package/dist/esm/Form.js.map +2 -2
- package/dist/esm/Form.mjs +54 -1
- package/dist/esm/Form.mjs.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/jsx/Form.js +50 -1
- package/dist/jsx/Form.js.map +2 -2
- package/dist/jsx/Form.mjs +50 -1
- package/dist/jsx/Form.mjs.map +2 -2
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/cjs/Form.js
CHANGED
|
@@ -1,2 +1,78 @@
|
|
|
1
|
-
"use strict";
|
|
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: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Form_exports = {};
|
|
20
|
+
__export(Form_exports, {
|
|
21
|
+
Form: () => Form,
|
|
22
|
+
FormFrame: () => FormFrame,
|
|
23
|
+
FormProvider: () => FormProvider,
|
|
24
|
+
FormTrigger: () => FormTrigger,
|
|
25
|
+
useFormContext: () => useFormContext
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Form_exports);
|
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
+
var import_core = require("@tamagui/core");
|
|
30
|
+
var import_create_context = require("@tamagui/create-context");
|
|
31
|
+
var import_react = require("react");
|
|
32
|
+
const FORM_NAME = "Form";
|
|
33
|
+
const FormFrame = (0, import_core.styled)(import_core.Stack, {
|
|
34
|
+
name: FORM_NAME,
|
|
35
|
+
tag: "form"
|
|
36
|
+
});
|
|
37
|
+
const [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME);
|
|
38
|
+
const [FormProvider, useFormContext] = createFormContext(FORM_NAME);
|
|
39
|
+
const TRIGGER_NAME = "FormTrigger";
|
|
40
|
+
const FormTriggerFrame = (0, import_core.styled)(import_core.Stack, {
|
|
41
|
+
name: TRIGGER_NAME
|
|
42
|
+
});
|
|
43
|
+
const FormTrigger = FormTriggerFrame.extractable(
|
|
44
|
+
(0, import_react.forwardRef)(
|
|
45
|
+
(props, forwardedRef) => {
|
|
46
|
+
const { __scopeForm, children, ...triggerProps } = props;
|
|
47
|
+
const context = useFormContext(TRIGGER_NAME, __scopeForm);
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
49
|
+
FormTriggerFrame,
|
|
50
|
+
{
|
|
51
|
+
tag: "button",
|
|
52
|
+
...triggerProps,
|
|
53
|
+
children: triggerProps.asChild ? (0, import_react.cloneElement)(children, { disabled: triggerProps.disabled }) : children,
|
|
54
|
+
ref: forwardedRef,
|
|
55
|
+
onPress: (0, import_core.composeEventHandlers)(props.onPress, context.onSubmit)
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
);
|
|
61
|
+
function FormComponent({
|
|
62
|
+
onSubmit,
|
|
63
|
+
...props
|
|
64
|
+
}) {
|
|
65
|
+
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() }) });
|
|
66
|
+
}
|
|
67
|
+
const Form = (0, import_core.withStaticProperties)(FormFrame.extractable(FormComponent), {
|
|
68
|
+
Trigger: FormTrigger
|
|
69
|
+
});
|
|
70
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
+
0 && (module.exports = {
|
|
72
|
+
Form,
|
|
73
|
+
FormFrame,
|
|
74
|
+
FormProvider,
|
|
75
|
+
FormTrigger,
|
|
76
|
+
useFormContext
|
|
77
|
+
});
|
|
2
78
|
//# sourceMappingURL=Form.js.map
|
package/dist/cjs/Form.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Form.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n Stack,\n StackProps,\n TamaguiElement,\n composeEventHandlers,\n styled,\n withStaticProperties,\n} from '@tamagui/core'\nimport { Scope, createContextScope } from '@tamagui/create-context'\nimport { PropsWithChildren, cloneElement, forwardRef } from 'react'\n\nconst FORM_NAME = 'Form'\n\nexport const FormFrame = styled(Stack, {\n name: FORM_NAME,\n tag: 'form',\n})\n\nexport type FormFrameProps = GetProps<typeof FormFrame> & {\n onSubmit: () => void\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Context\n * -----------------------------------------------------------------------------------------------*/\n\ntype ScopedProps<P> = P & { __scopeForm?: Scope }\nconst [createFormContext] = createContextScope(FORM_NAME)\n\ntype FormContextValue = {\n onSubmit: () => unknown\n}\n\nexport const [FormProvider, useFormContext] =\n createFormContext<FormContextValue>(FORM_NAME)\n\nexport type FormProps = FormFrameProps\n\n/* -------------------------------------------------------------------------------------------------\n * FormTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'FormTrigger'\n\nconst FormTriggerFrame = styled(Stack, {\n name: TRIGGER_NAME,\n})\n\nexport interface FormTriggerProps extends StackProps {}\n\nexport const FormTrigger = FormTriggerFrame.extractable(\n forwardRef<TamaguiElement, FormTriggerProps>(\n (props: ScopedProps<FormTriggerProps>, forwardedRef) => {\n const { __scopeForm, children, ...triggerProps } = props\n const context = useFormContext(TRIGGER_NAME, __scopeForm)\n\n return (\n <FormTriggerFrame\n tag=\"button\"\n {...triggerProps}\n children={\n triggerProps.asChild\n ? cloneElement(children, { disabled: triggerProps.disabled })\n : children\n }\n ref={forwardedRef}\n onPress={composeEventHandlers(props.onPress as any, context.onSubmit)}\n />\n )\n }\n )\n)\n\n/* -------------------------------------------------------------------------------------------------\n * Form\n * -----------------------------------------------------------------------------------------------*/\n\nfunction FormComponent({\n onSubmit,\n ...props\n}: PropsWithChildren<ScopedProps<FormProps>>) {\n return (\n <FormProvider scope={props.__scopeForm} onSubmit={onSubmit}>\n <FormFrame {...props} onSubmit={((e: any) => e.preventDefault()) as any} />\n </FormProvider>\n )\n}\n\nexport const Form = withStaticProperties(FormFrame.extractable(FormComponent), {\n Trigger: FormTrigger,\n})\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0DQ;AA1DR,kBAQO;AACP,4BAA0C;AAC1C,mBAA4D;AAE5D,MAAM,YAAY;AAEX,MAAM,gBAAY,oBAAO,mBAAO;AAAA,EACrC,MAAM;AAAA,EACN,KAAK;AACP,CAAC;AAWD,MAAM,CAAC,iBAAiB,QAAI,0CAAmB,SAAS;AAMjD,MAAM,CAAC,cAAc,cAAc,IACxC,kBAAoC,SAAS;AAQ/C,MAAM,eAAe;AAErB,MAAM,uBAAmB,oBAAO,mBAAO;AAAA,EACrC,MAAM;AACR,CAAC;AAIM,MAAM,cAAc,iBAAiB;AAAA,MAC1C;AAAA,IACE,CAAC,OAAsC,iBAAiB;AACtD,YAAM,EAAE,aAAa,UAAU,GAAG,aAAa,IAAI;AACnD,YAAM,UAAU,eAAe,cAAc,WAAW;AAExD,aACE;AAAA,QAAC;AAAA;AAAA,UACC,KAAI;AAAA,UACH,GAAG;AAAA,UACJ,UACE,aAAa,cACT,2BAAa,UAAU,EAAE,UAAU,aAAa,SAAS,CAAC,IAC1D;AAAA,UAEN,KAAK;AAAA,UACL,aAAS,kCAAqB,MAAM,SAAgB,QAAQ,QAAQ;AAAA;AAAA,MACtE;AAAA,IAEJ;AAAA,EACF;AACF;AAMA,SAAS,cAAc;AAAA,EACrB;AAAA,EACA,GAAG;AACL,GAA8C;AAC5C,SACE,4CAAC,gBAAa,OAAO,MAAM,aAAa,UACtC,sDAAC,aAAW,GAAG,OAAO,UAAW,CAAC,MAAW,EAAE,eAAe,GAAW,GAC3E;AAEJ;AAEO,MAAM,WAAO,kCAAqB,UAAU,YAAY,aAAa,GAAG;AAAA,EAC7E,SAAS;AACX,CAAC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var src_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(src_exports);
|
|
18
|
+
__reExport(src_exports, require("./Form"), module.exports);
|
|
2
19
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["export * from './Form'\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,mBAAd;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/Form.js
CHANGED
|
@@ -1,2 +1,55 @@
|
|
|
1
|
-
import{jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
Stack,
|
|
4
|
+
composeEventHandlers,
|
|
5
|
+
styled,
|
|
6
|
+
withStaticProperties
|
|
7
|
+
} from "@tamagui/core";
|
|
8
|
+
import { createContextScope } from "@tamagui/create-context";
|
|
9
|
+
import { cloneElement, forwardRef } from "react";
|
|
10
|
+
const FORM_NAME = "Form";
|
|
11
|
+
const FormFrame = styled(Stack, {
|
|
12
|
+
name: FORM_NAME,
|
|
13
|
+
tag: "form"
|
|
14
|
+
});
|
|
15
|
+
const [createFormContext] = createContextScope(FORM_NAME);
|
|
16
|
+
const [FormProvider, useFormContext] = createFormContext(FORM_NAME);
|
|
17
|
+
const TRIGGER_NAME = "FormTrigger";
|
|
18
|
+
const FormTriggerFrame = styled(Stack, {
|
|
19
|
+
name: TRIGGER_NAME
|
|
20
|
+
});
|
|
21
|
+
const FormTrigger = FormTriggerFrame.extractable(
|
|
22
|
+
forwardRef(
|
|
23
|
+
(props, forwardedRef) => {
|
|
24
|
+
const { __scopeForm, children, ...triggerProps } = props;
|
|
25
|
+
const context = useFormContext(TRIGGER_NAME, __scopeForm);
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
FormTriggerFrame,
|
|
28
|
+
{
|
|
29
|
+
tag: "button",
|
|
30
|
+
...triggerProps,
|
|
31
|
+
children: triggerProps.asChild ? cloneElement(children, { disabled: triggerProps.disabled }) : children,
|
|
32
|
+
ref: forwardedRef,
|
|
33
|
+
onPress: composeEventHandlers(props.onPress, context.onSubmit)
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
function FormComponent({
|
|
40
|
+
onSubmit,
|
|
41
|
+
...props
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ jsx(FormProvider, { scope: props.__scopeForm, onSubmit, children: /* @__PURE__ */ jsx(FormFrame, { ...props, onSubmit: (e) => e.preventDefault() }) });
|
|
44
|
+
}
|
|
45
|
+
const Form = withStaticProperties(FormFrame.extractable(FormComponent), {
|
|
46
|
+
Trigger: FormTrigger
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
Form,
|
|
50
|
+
FormFrame,
|
|
51
|
+
FormProvider,
|
|
52
|
+
FormTrigger,
|
|
53
|
+
useFormContext
|
|
54
|
+
};
|
|
2
55
|
//# sourceMappingURL=Form.js.map
|
package/dist/esm/Form.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Form.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n Stack,\n StackProps,\n TamaguiElement,\n composeEventHandlers,\n styled,\n withStaticProperties,\n} from '@tamagui/core'\nimport { Scope, createContextScope } from '@tamagui/create-context'\nimport { PropsWithChildren, cloneElement, forwardRef } from 'react'\n\nconst FORM_NAME = 'Form'\n\nexport const FormFrame = styled(Stack, {\n name: FORM_NAME,\n tag: 'form',\n})\n\nexport type FormFrameProps = GetProps<typeof FormFrame> & {\n onSubmit: () => void\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Context\n * -----------------------------------------------------------------------------------------------*/\n\ntype ScopedProps<P> = P & { __scopeForm?: Scope }\nconst [createFormContext] = createContextScope(FORM_NAME)\n\ntype FormContextValue = {\n onSubmit: () => unknown\n}\n\nexport const [FormProvider, useFormContext] =\n createFormContext<FormContextValue>(FORM_NAME)\n\nexport type FormProps = FormFrameProps\n\n/* -------------------------------------------------------------------------------------------------\n * FormTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'FormTrigger'\n\nconst FormTriggerFrame = styled(Stack, {\n name: TRIGGER_NAME,\n})\n\nexport interface FormTriggerProps extends StackProps {}\n\nexport const FormTrigger = FormTriggerFrame.extractable(\n forwardRef<TamaguiElement, FormTriggerProps>(\n (props: ScopedProps<FormTriggerProps>, forwardedRef) => {\n const { __scopeForm, children, ...triggerProps } = props\n const context = useFormContext(TRIGGER_NAME, __scopeForm)\n\n return (\n <FormTriggerFrame\n tag=\"button\"\n {...triggerProps}\n children={\n triggerProps.asChild\n ? cloneElement(children, { disabled: triggerProps.disabled })\n : children\n }\n ref={forwardedRef}\n onPress={composeEventHandlers(props.onPress as any, context.onSubmit)}\n />\n )\n }\n )\n)\n\n/* -------------------------------------------------------------------------------------------------\n * Form\n * -----------------------------------------------------------------------------------------------*/\n\nfunction FormComponent({\n onSubmit,\n ...props\n}: PropsWithChildren<ScopedProps<FormProps>>) {\n return (\n <FormProvider scope={props.__scopeForm} onSubmit={onSubmit}>\n <FormFrame {...props} onSubmit={((e: any) => e.preventDefault()) as any} />\n </FormProvider>\n )\n}\n\nexport const Form = withStaticProperties(FormFrame.extractable(FormComponent), {\n Trigger: FormTrigger,\n})\n"],
|
|
5
|
-
"mappings": "AA0DQ,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AA0DQ;AA1DR;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,0BAA0B;AAC1C,SAA4B,cAAc,kBAAkB;AAE5D,MAAM,YAAY;AAEX,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,KAAK;AACP,CAAC;AAWD,MAAM,CAAC,iBAAiB,IAAI,mBAAmB,SAAS;AAMjD,MAAM,CAAC,cAAc,cAAc,IACxC,kBAAoC,SAAS;AAQ/C,MAAM,eAAe;AAErB,MAAM,mBAAmB,OAAO,OAAO;AAAA,EACrC,MAAM;AACR,CAAC;AAIM,MAAM,cAAc,iBAAiB;AAAA,EAC1C;AAAA,IACE,CAAC,OAAsC,iBAAiB;AACtD,YAAM,EAAE,aAAa,UAAU,GAAG,aAAa,IAAI;AACnD,YAAM,UAAU,eAAe,cAAc,WAAW;AAExD,aACE;AAAA,QAAC;AAAA;AAAA,UACC,KAAI;AAAA,UACH,GAAG;AAAA,UACJ,UACE,aAAa,UACT,aAAa,UAAU,EAAE,UAAU,aAAa,SAAS,CAAC,IAC1D;AAAA,UAEN,KAAK;AAAA,UACL,SAAS,qBAAqB,MAAM,SAAgB,QAAQ,QAAQ;AAAA;AAAA,MACtE;AAAA,IAEJ;AAAA,EACF;AACF;AAMA,SAAS,cAAc;AAAA,EACrB;AAAA,EACA,GAAG;AACL,GAA8C;AAC5C,SACE,oBAAC,gBAAa,OAAO,MAAM,aAAa,UACtC,8BAAC,aAAW,GAAG,OAAO,UAAW,CAAC,MAAW,EAAE,eAAe,GAAW,GAC3E;AAEJ;AAEO,MAAM,OAAO,qBAAqB,UAAU,YAAY,aAAa,GAAG;AAAA,EAC7E,SAAS;AACX,CAAC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/Form.mjs
CHANGED
|
@@ -1,2 +1,55 @@
|
|
|
1
|
-
import{jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
Stack,
|
|
4
|
+
composeEventHandlers,
|
|
5
|
+
styled,
|
|
6
|
+
withStaticProperties
|
|
7
|
+
} from "@tamagui/core";
|
|
8
|
+
import { createContextScope } from "@tamagui/create-context";
|
|
9
|
+
import { cloneElement, forwardRef } from "react";
|
|
10
|
+
const FORM_NAME = "Form";
|
|
11
|
+
const FormFrame = styled(Stack, {
|
|
12
|
+
name: FORM_NAME,
|
|
13
|
+
tag: "form"
|
|
14
|
+
});
|
|
15
|
+
const [createFormContext] = createContextScope(FORM_NAME);
|
|
16
|
+
const [FormProvider, useFormContext] = createFormContext(FORM_NAME);
|
|
17
|
+
const TRIGGER_NAME = "FormTrigger";
|
|
18
|
+
const FormTriggerFrame = styled(Stack, {
|
|
19
|
+
name: TRIGGER_NAME
|
|
20
|
+
});
|
|
21
|
+
const FormTrigger = FormTriggerFrame.extractable(
|
|
22
|
+
forwardRef(
|
|
23
|
+
(props, forwardedRef) => {
|
|
24
|
+
const { __scopeForm, children, ...triggerProps } = props;
|
|
25
|
+
const context = useFormContext(TRIGGER_NAME, __scopeForm);
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
FormTriggerFrame,
|
|
28
|
+
{
|
|
29
|
+
tag: "button",
|
|
30
|
+
...triggerProps,
|
|
31
|
+
children: triggerProps.asChild ? cloneElement(children, { disabled: triggerProps.disabled }) : children,
|
|
32
|
+
ref: forwardedRef,
|
|
33
|
+
onPress: composeEventHandlers(props.onPress, context.onSubmit)
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
function FormComponent({
|
|
40
|
+
onSubmit,
|
|
41
|
+
...props
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ jsx(FormProvider, { scope: props.__scopeForm, onSubmit, children: /* @__PURE__ */ jsx(FormFrame, { ...props, onSubmit: (e) => e.preventDefault() }) });
|
|
44
|
+
}
|
|
45
|
+
const Form = withStaticProperties(FormFrame.extractable(FormComponent), {
|
|
46
|
+
Trigger: FormTrigger
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
Form,
|
|
50
|
+
FormFrame,
|
|
51
|
+
FormProvider,
|
|
52
|
+
FormTrigger,
|
|
53
|
+
useFormContext
|
|
54
|
+
};
|
|
2
55
|
//# sourceMappingURL=Form.mjs.map
|
package/dist/esm/Form.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Form.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n Stack,\n StackProps,\n TamaguiElement,\n composeEventHandlers,\n styled,\n withStaticProperties,\n} from '@tamagui/core'\nimport { Scope, createContextScope } from '@tamagui/create-context'\nimport { PropsWithChildren, cloneElement, forwardRef } from 'react'\n\nconst FORM_NAME = 'Form'\n\nexport const FormFrame = styled(Stack, {\n name: FORM_NAME,\n tag: 'form',\n})\n\nexport type FormFrameProps = GetProps<typeof FormFrame> & {\n onSubmit: () => void\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Context\n * -----------------------------------------------------------------------------------------------*/\n\ntype ScopedProps<P> = P & { __scopeForm?: Scope }\nconst [createFormContext] = createContextScope(FORM_NAME)\n\ntype FormContextValue = {\n onSubmit: () => unknown\n}\n\nexport const [FormProvider, useFormContext] =\n createFormContext<FormContextValue>(FORM_NAME)\n\nexport type FormProps = FormFrameProps\n\n/* -------------------------------------------------------------------------------------------------\n * FormTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'FormTrigger'\n\nconst FormTriggerFrame = styled(Stack, {\n name: TRIGGER_NAME,\n})\n\nexport interface FormTriggerProps extends StackProps {}\n\nexport const FormTrigger = FormTriggerFrame.extractable(\n forwardRef<TamaguiElement, FormTriggerProps>(\n (props: ScopedProps<FormTriggerProps>, forwardedRef) => {\n const { __scopeForm, children, ...triggerProps } = props\n const context = useFormContext(TRIGGER_NAME, __scopeForm)\n\n return (\n <FormTriggerFrame\n tag=\"button\"\n {...triggerProps}\n children={\n triggerProps.asChild\n ? cloneElement(children, { disabled: triggerProps.disabled })\n : children\n }\n ref={forwardedRef}\n onPress={composeEventHandlers(props.onPress as any, context.onSubmit)}\n />\n )\n }\n )\n)\n\n/* -------------------------------------------------------------------------------------------------\n * Form\n * -----------------------------------------------------------------------------------------------*/\n\nfunction FormComponent({\n onSubmit,\n ...props\n}: PropsWithChildren<ScopedProps<FormProps>>) {\n return (\n <FormProvider scope={props.__scopeForm} onSubmit={onSubmit}>\n <FormFrame {...props} onSubmit={((e: any) => e.preventDefault()) as any} />\n </FormProvider>\n )\n}\n\nexport const Form = withStaticProperties(FormFrame.extractable(FormComponent), {\n Trigger: FormTrigger,\n})\n"],
|
|
5
|
-
"mappings": "AA0DQ,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AA0DQ;AA1DR;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,0BAA0B;AAC1C,SAA4B,cAAc,kBAAkB;AAE5D,MAAM,YAAY;AAEX,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,KAAK;AACP,CAAC;AAWD,MAAM,CAAC,iBAAiB,IAAI,mBAAmB,SAAS;AAMjD,MAAM,CAAC,cAAc,cAAc,IACxC,kBAAoC,SAAS;AAQ/C,MAAM,eAAe;AAErB,MAAM,mBAAmB,OAAO,OAAO;AAAA,EACrC,MAAM;AACR,CAAC;AAIM,MAAM,cAAc,iBAAiB;AAAA,EAC1C;AAAA,IACE,CAAC,OAAsC,iBAAiB;AACtD,YAAM,EAAE,aAAa,UAAU,GAAG,aAAa,IAAI;AACnD,YAAM,UAAU,eAAe,cAAc,WAAW;AAExD,aACE;AAAA,QAAC;AAAA;AAAA,UACC,KAAI;AAAA,UACH,GAAG;AAAA,UACJ,UACE,aAAa,UACT,aAAa,UAAU,EAAE,UAAU,aAAa,SAAS,CAAC,IAC1D;AAAA,UAEN,KAAK;AAAA,UACL,SAAS,qBAAqB,MAAM,SAAgB,QAAQ,QAAQ;AAAA;AAAA,MACtE;AAAA,IAEJ;AAAA,EACF;AACF;AAMA,SAAS,cAAc;AAAA,EACrB;AAAA,EACA,GAAG;AACL,GAA8C;AAC5C,SACE,oBAAC,gBAAa,OAAO,MAAM,aAAa,UACtC,8BAAC,aAAW,GAAG,OAAO,UAAW,CAAC,MAAW,EAAE,eAAe,GAAW,GAC3E;AAEJ;AAEO,MAAM,OAAO,qBAAqB,UAAU,YAAY,aAAa,GAAG;AAAA,EAC7E,SAAS;AACX,CAAC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./Form";
|
|
1
|
+
export * from "./Form";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./Form";
|
|
1
|
+
export * from "./Form";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
package/dist/jsx/Form.js
CHANGED
|
@@ -1,2 +1,51 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
Stack,
|
|
3
|
+
composeEventHandlers,
|
|
4
|
+
styled,
|
|
5
|
+
withStaticProperties
|
|
6
|
+
} from "@tamagui/core";
|
|
7
|
+
import { createContextScope } from "@tamagui/create-context";
|
|
8
|
+
import { cloneElement, forwardRef } from "react";
|
|
9
|
+
const FORM_NAME = "Form";
|
|
10
|
+
const FormFrame = styled(Stack, {
|
|
11
|
+
name: FORM_NAME,
|
|
12
|
+
tag: "form"
|
|
13
|
+
});
|
|
14
|
+
const [createFormContext] = createContextScope(FORM_NAME);
|
|
15
|
+
const [FormProvider, useFormContext] = createFormContext(FORM_NAME);
|
|
16
|
+
const TRIGGER_NAME = "FormTrigger";
|
|
17
|
+
const FormTriggerFrame = styled(Stack, {
|
|
18
|
+
name: TRIGGER_NAME
|
|
19
|
+
});
|
|
20
|
+
const FormTrigger = FormTriggerFrame.extractable(
|
|
21
|
+
forwardRef(
|
|
22
|
+
(props, forwardedRef) => {
|
|
23
|
+
const { __scopeForm, children, ...triggerProps } = props;
|
|
24
|
+
const context = useFormContext(TRIGGER_NAME, __scopeForm);
|
|
25
|
+
return <FormTriggerFrame
|
|
26
|
+
tag="button"
|
|
27
|
+
{...triggerProps}
|
|
28
|
+
children={triggerProps.asChild ? cloneElement(children, { disabled: triggerProps.disabled }) : children}
|
|
29
|
+
ref={forwardedRef}
|
|
30
|
+
onPress={composeEventHandlers(props.onPress, context.onSubmit)}
|
|
31
|
+
/>;
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
function FormComponent({
|
|
36
|
+
onSubmit,
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
39
|
+
return <FormProvider scope={props.__scopeForm} onSubmit={onSubmit}><FormFrame {...props} onSubmit={(e) => e.preventDefault()} /></FormProvider>;
|
|
40
|
+
}
|
|
41
|
+
const Form = withStaticProperties(FormFrame.extractable(FormComponent), {
|
|
42
|
+
Trigger: FormTrigger
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
Form,
|
|
46
|
+
FormFrame,
|
|
47
|
+
FormProvider,
|
|
48
|
+
FormTrigger,
|
|
49
|
+
useFormContext
|
|
50
|
+
};
|
|
2
51
|
//# sourceMappingURL=Form.js.map
|
package/dist/jsx/Form.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Form.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n Stack,\n StackProps,\n TamaguiElement,\n composeEventHandlers,\n styled,\n withStaticProperties,\n} from '@tamagui/core'\nimport { Scope, createContextScope } from '@tamagui/create-context'\nimport { PropsWithChildren, cloneElement, forwardRef } from 'react'\n\nconst FORM_NAME = 'Form'\n\nexport const FormFrame = styled(Stack, {\n name: FORM_NAME,\n tag: 'form',\n})\n\nexport type FormFrameProps = GetProps<typeof FormFrame> & {\n onSubmit: () => void\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Context\n * -----------------------------------------------------------------------------------------------*/\n\ntype ScopedProps<P> = P & { __scopeForm?: Scope }\nconst [createFormContext] = createContextScope(FORM_NAME)\n\ntype FormContextValue = {\n onSubmit: () => unknown\n}\n\nexport const [FormProvider, useFormContext] =\n createFormContext<FormContextValue>(FORM_NAME)\n\nexport type FormProps = FormFrameProps\n\n/* -------------------------------------------------------------------------------------------------\n * FormTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'FormTrigger'\n\nconst FormTriggerFrame = styled(Stack, {\n name: TRIGGER_NAME,\n})\n\nexport interface FormTriggerProps extends StackProps {}\n\nexport const FormTrigger = FormTriggerFrame.extractable(\n forwardRef<TamaguiElement, FormTriggerProps>(\n (props: ScopedProps<FormTriggerProps>, forwardedRef) => {\n const { __scopeForm, children, ...triggerProps } = props\n const context = useFormContext(TRIGGER_NAME, __scopeForm)\n\n return (\n <FormTriggerFrame\n tag=\"button\"\n {...triggerProps}\n children={\n triggerProps.asChild\n ? cloneElement(children, { disabled: triggerProps.disabled })\n : children\n }\n ref={forwardedRef}\n onPress={composeEventHandlers(props.onPress as any, context.onSubmit)}\n />\n )\n }\n )\n)\n\n/* -------------------------------------------------------------------------------------------------\n * Form\n * -----------------------------------------------------------------------------------------------*/\n\nfunction FormComponent({\n onSubmit,\n ...props\n}: PropsWithChildren<ScopedProps<FormProps>>) {\n return (\n <FormProvider scope={props.__scopeForm} onSubmit={onSubmit}>\n <FormFrame {...props} onSubmit={((e: any) => e.preventDefault()) as any} />\n </FormProvider>\n )\n}\n\nexport const Form = withStaticProperties(FormFrame.extractable(FormComponent), {\n Trigger: FormTrigger,\n})\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,0BAA0B;AAC1C,SAA4B,cAAc,kBAAkB;AAE5D,MAAM,YAAY;AAEX,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,KAAK;AACP,CAAC;AAWD,MAAM,CAAC,iBAAiB,IAAI,mBAAmB,SAAS;AAMjD,MAAM,CAAC,cAAc,cAAc,IACxC,kBAAoC,SAAS;AAQ/C,MAAM,eAAe;AAErB,MAAM,mBAAmB,OAAO,OAAO;AAAA,EACrC,MAAM;AACR,CAAC;AAIM,MAAM,cAAc,iBAAiB;AAAA,EAC1C;AAAA,IACE,CAAC,OAAsC,iBAAiB;AACtD,YAAM,EAAE,aAAa,UAAU,GAAG,aAAa,IAAI;AACnD,YAAM,UAAU,eAAe,cAAc,WAAW;AAExD,aACE,CAAC;AAAA,QACC,IAAI;AAAA,YACA;AAAA,QACJ,UACE,aAAa,UACT,aAAa,UAAU,EAAE,UAAU,aAAa,SAAS,CAAC,IAC1D;AAAA,QAEN,KAAK;AAAA,QACL,SAAS,qBAAqB,MAAM,SAAgB,QAAQ,QAAQ;AAAA,MACtE;AAAA,IAEJ;AAAA,EACF;AACF;AAMA,SAAS,cAAc;AAAA,EACrB;AAAA,EACA,GAAG;AACL,GAA8C;AAC5C,SACE,CAAC,aAAa,OAAO,MAAM,aAAa,UAAU,UAChD,CAAC,cAAc,OAAO,UAAW,CAAC,MAAW,EAAE,eAAe,GAAW,EAC3E,EAFC;AAIL;AAEO,MAAM,OAAO,qBAAqB,UAAU,YAAY,aAAa,GAAG;AAAA,EAC7E,SAAS;AACX,CAAC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/jsx/Form.mjs
CHANGED
|
@@ -1,2 +1,51 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
Stack,
|
|
3
|
+
composeEventHandlers,
|
|
4
|
+
styled,
|
|
5
|
+
withStaticProperties
|
|
6
|
+
} from "@tamagui/core";
|
|
7
|
+
import { createContextScope } from "@tamagui/create-context";
|
|
8
|
+
import { cloneElement, forwardRef } from "react";
|
|
9
|
+
const FORM_NAME = "Form";
|
|
10
|
+
const FormFrame = styled(Stack, {
|
|
11
|
+
name: FORM_NAME,
|
|
12
|
+
tag: "form"
|
|
13
|
+
});
|
|
14
|
+
const [createFormContext] = createContextScope(FORM_NAME);
|
|
15
|
+
const [FormProvider, useFormContext] = createFormContext(FORM_NAME);
|
|
16
|
+
const TRIGGER_NAME = "FormTrigger";
|
|
17
|
+
const FormTriggerFrame = styled(Stack, {
|
|
18
|
+
name: TRIGGER_NAME
|
|
19
|
+
});
|
|
20
|
+
const FormTrigger = FormTriggerFrame.extractable(
|
|
21
|
+
forwardRef(
|
|
22
|
+
(props, forwardedRef) => {
|
|
23
|
+
const { __scopeForm, children, ...triggerProps } = props;
|
|
24
|
+
const context = useFormContext(TRIGGER_NAME, __scopeForm);
|
|
25
|
+
return <FormTriggerFrame
|
|
26
|
+
tag="button"
|
|
27
|
+
{...triggerProps}
|
|
28
|
+
children={triggerProps.asChild ? cloneElement(children, { disabled: triggerProps.disabled }) : children}
|
|
29
|
+
ref={forwardedRef}
|
|
30
|
+
onPress={composeEventHandlers(props.onPress, context.onSubmit)}
|
|
31
|
+
/>;
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
function FormComponent({
|
|
36
|
+
onSubmit,
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
39
|
+
return <FormProvider scope={props.__scopeForm} onSubmit={onSubmit}><FormFrame {...props} onSubmit={(e) => e.preventDefault()} /></FormProvider>;
|
|
40
|
+
}
|
|
41
|
+
const Form = withStaticProperties(FormFrame.extractable(FormComponent), {
|
|
42
|
+
Trigger: FormTrigger
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
Form,
|
|
46
|
+
FormFrame,
|
|
47
|
+
FormProvider,
|
|
48
|
+
FormTrigger,
|
|
49
|
+
useFormContext
|
|
50
|
+
};
|
|
2
51
|
//# sourceMappingURL=Form.mjs.map
|
package/dist/jsx/Form.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Form.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n Stack,\n StackProps,\n TamaguiElement,\n composeEventHandlers,\n styled,\n withStaticProperties,\n} from '@tamagui/core'\nimport { Scope, createContextScope } from '@tamagui/create-context'\nimport { PropsWithChildren, cloneElement, forwardRef } from 'react'\n\nconst FORM_NAME = 'Form'\n\nexport const FormFrame = styled(Stack, {\n name: FORM_NAME,\n tag: 'form',\n})\n\nexport type FormFrameProps = GetProps<typeof FormFrame> & {\n onSubmit: () => void\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Context\n * -----------------------------------------------------------------------------------------------*/\n\ntype ScopedProps<P> = P & { __scopeForm?: Scope }\nconst [createFormContext] = createContextScope(FORM_NAME)\n\ntype FormContextValue = {\n onSubmit: () => unknown\n}\n\nexport const [FormProvider, useFormContext] =\n createFormContext<FormContextValue>(FORM_NAME)\n\nexport type FormProps = FormFrameProps\n\n/* -------------------------------------------------------------------------------------------------\n * FormTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'FormTrigger'\n\nconst FormTriggerFrame = styled(Stack, {\n name: TRIGGER_NAME,\n})\n\nexport interface FormTriggerProps extends StackProps {}\n\nexport const FormTrigger = FormTriggerFrame.extractable(\n forwardRef<TamaguiElement, FormTriggerProps>(\n (props: ScopedProps<FormTriggerProps>, forwardedRef) => {\n const { __scopeForm, children, ...triggerProps } = props\n const context = useFormContext(TRIGGER_NAME, __scopeForm)\n\n return (\n <FormTriggerFrame\n tag=\"button\"\n {...triggerProps}\n children={\n triggerProps.asChild\n ? cloneElement(children, { disabled: triggerProps.disabled })\n : children\n }\n ref={forwardedRef}\n onPress={composeEventHandlers(props.onPress as any, context.onSubmit)}\n />\n )\n }\n )\n)\n\n/* -------------------------------------------------------------------------------------------------\n * Form\n * -----------------------------------------------------------------------------------------------*/\n\nfunction FormComponent({\n onSubmit,\n ...props\n}: PropsWithChildren<ScopedProps<FormProps>>) {\n return (\n <FormProvider scope={props.__scopeForm} onSubmit={onSubmit}>\n <FormFrame {...props} onSubmit={((e: any) => e.preventDefault()) as any} />\n </FormProvider>\n )\n}\n\nexport const Form = withStaticProperties(FormFrame.extractable(FormComponent), {\n Trigger: FormTrigger,\n})\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,0BAA0B;AAC1C,SAA4B,cAAc,kBAAkB;AAE5D,MAAM,YAAY;AAEX,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,KAAK;AACP,CAAC;AAWD,MAAM,CAAC,iBAAiB,IAAI,mBAAmB,SAAS;AAMjD,MAAM,CAAC,cAAc,cAAc,IACxC,kBAAoC,SAAS;AAQ/C,MAAM,eAAe;AAErB,MAAM,mBAAmB,OAAO,OAAO;AAAA,EACrC,MAAM;AACR,CAAC;AAIM,MAAM,cAAc,iBAAiB;AAAA,EAC1C;AAAA,IACE,CAAC,OAAsC,iBAAiB;AACtD,YAAM,EAAE,aAAa,UAAU,GAAG,aAAa,IAAI;AACnD,YAAM,UAAU,eAAe,cAAc,WAAW;AAExD,aACE,CAAC;AAAA,QACC,IAAI;AAAA,YACA;AAAA,QACJ,UACE,aAAa,UACT,aAAa,UAAU,EAAE,UAAU,aAAa,SAAS,CAAC,IAC1D;AAAA,QAEN,KAAK;AAAA,QACL,SAAS,qBAAqB,MAAM,SAAgB,QAAQ,QAAQ;AAAA,MACtE;AAAA,IAEJ;AAAA,EACF;AACF;AAMA,SAAS,cAAc;AAAA,EACrB;AAAA,EACA,GAAG;AACL,GAA8C;AAC5C,SACE,CAAC,aAAa,OAAO,MAAM,aAAa,UAAU,UAChD,CAAC,cAAc,OAAO,UAAW,CAAC,MAAW,EAAE,eAAe,GAAW,EAC3E,EAFC;AAIL;AAEO,MAAM,OAAO,qBAAqB,UAAU,YAAY,aAAa,GAAG;AAAA,EAC7E,SAAS;AACX,CAAC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./Form";
|
|
1
|
+
export * from "./Form";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./Form";
|
|
1
|
+
export * from "./Form";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/jsx/index.mjs.map
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/form",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/compose-refs": "1.14.
|
|
35
|
-
"@tamagui/core": "1.14.
|
|
36
|
-
"@tamagui/create-context": "1.14.
|
|
37
|
-
"@tamagui/focusable": "1.14.
|
|
38
|
-
"@tamagui/get-button-sized": "1.14.
|
|
39
|
-
"@tamagui/get-font-sized": "1.14.
|
|
40
|
-
"@tamagui/text": "1.14.
|
|
34
|
+
"@tamagui/compose-refs": "1.14.2",
|
|
35
|
+
"@tamagui/core": "1.14.2",
|
|
36
|
+
"@tamagui/create-context": "1.14.2",
|
|
37
|
+
"@tamagui/focusable": "1.14.2",
|
|
38
|
+
"@tamagui/get-button-sized": "1.14.2",
|
|
39
|
+
"@tamagui/get-font-sized": "1.14.2",
|
|
40
|
+
"@tamagui/text": "1.14.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "*"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@tamagui/build": "1.14.
|
|
46
|
+
"@tamagui/build": "1.14.2",
|
|
47
47
|
"react": "^18.2.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|