@tamagui/form 1.26.0 → 1.27.0-1684163004699

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": "1.26.0",
3
+ "version": "1.27.0-1684163004699",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -31,19 +31,19 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@tamagui/compose-refs": "1.26.0",
35
- "@tamagui/core": "1.26.0",
36
- "@tamagui/create-context": "1.26.0",
37
- "@tamagui/focusable": "1.26.0",
38
- "@tamagui/get-button-sized": "1.26.0",
39
- "@tamagui/get-font-sized": "1.26.0",
40
- "@tamagui/text": "1.26.0"
34
+ "@tamagui/compose-refs": "1.27.0-1684163004699",
35
+ "@tamagui/core": "1.27.0-1684163004699",
36
+ "@tamagui/create-context": "1.27.0-1684163004699",
37
+ "@tamagui/focusable": "1.27.0-1684163004699",
38
+ "@tamagui/get-button-sized": "1.27.0-1684163004699",
39
+ "@tamagui/get-font-sized": "1.27.0-1684163004699",
40
+ "@tamagui/text": "1.27.0-1684163004699"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": "*"
44
44
  },
45
45
  "devDependencies": {
46
- "@tamagui/build": "1.26.0",
46
+ "@tamagui/build": "1.27.0-1684163004699",
47
47
  "react": "^18.2.0"
48
48
  },
49
49
  "publishConfig": {
package/dist/esm/Form.mjs DELETED
@@ -1,53 +0,0 @@
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 } 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.styleable(
22
- (props, forwardedRef) => {
23
- const { __scopeForm, children, ...triggerProps } = props;
24
- const context = useFormContext(TRIGGER_NAME, __scopeForm);
25
- return /* @__PURE__ */ jsx(
26
- FormTriggerFrame,
27
- {
28
- tag: "button",
29
- ...triggerProps,
30
- children: triggerProps.asChild ? cloneElement(children, { disabled: triggerProps.disabled }) : children,
31
- ref: forwardedRef,
32
- onPress: composeEventHandlers(props.onPress, context.onSubmit)
33
- }
34
- );
35
- }
36
- );
37
- function FormComponent({
38
- onSubmit,
39
- ...props
40
- }) {
41
- return /* @__PURE__ */ jsx(FormProvider, { scope: props.__scopeForm, onSubmit, children: /* @__PURE__ */ jsx(FormFrame, { ...props, onSubmit: (e) => e.preventDefault() }) });
42
- }
43
- const Form = withStaticProperties(FormFrame.extractable(FormComponent), {
44
- Trigger: FormTrigger
45
- });
46
- export {
47
- Form,
48
- FormFrame,
49
- FormProvider,
50
- FormTrigger,
51
- useFormContext
52
- };
53
- //# sourceMappingURL=Form.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Form.tsx"],
4
- "mappings": "AAyDM;AAzDN;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,0BAA0B;AAC1C,SAA4B,oBAAgC;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,CAAC,OAAsC,iBAAiB;AACtD,UAAM,EAAE,aAAa,UAAU,GAAG,aAAa,IAAI;AACnD,UAAM,UAAU,eAAe,cAAc,WAAW;AAExD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAI;AAAA,QACH,GAAG;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;AAAA,IACtE;AAAA,EAEJ;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;",
5
- "names": []
6
- }
@@ -1,2 +0,0 @@
1
- export * from "./Form";
2
- //# sourceMappingURL=index.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;",
5
- "names": []
6
- }