@tamagui/switch-headless 3.0.0-beta.669.1 → 3.0.0-beta.719.1
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/index.cjs +0 -1
- package/dist/cjs/index.native.cjs +0 -1
- package/dist/cjs/index.native.js +0 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/useSwitch.cjs +0 -1
- package/dist/cjs/useSwitch.native.cjs +0 -1
- package/dist/cjs/useSwitch.native.js +0 -1
- package/dist/cjs/useSwitch.native.js.map +1 -1
- package/dist/esm/useSwitch.mjs.map +1 -1
- package/dist/jsx/index.native.cjs +0 -1
- package/dist/jsx/index.native.js +0 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/useSwitch.mjs.map +1 -1
- package/dist/jsx/useSwitch.native.cjs +0 -1
- package/dist/jsx/useSwitch.native.js +0 -1
- package/dist/jsx/useSwitch.native.js.map +1 -1
- package/package.json +8 -8
package/dist/cjs/index.cjs
CHANGED
package/dist/cjs/index.native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./useSwitch\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./useSwitch\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO"}
|
package/dist/cjs/useSwitch.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSwitch.native.js","names":[],"sources":["cjs/useSwitch.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useSwitch_exports = {};\n__export(useSwitch_exports, { useSwitch: () => useSwitch });\nmodule.exports = __toCommonJS(useSwitch_exports);\nrequire(\"react/jsx-runtime\");\nrequire(\"@tamagui/compose-refs\");\nrequire(\"@tamagui/constants\");\nrequire(\"@tamagui/helpers\");\nrequire(\"@tamagui/label\");\nrequire(\"@tamagui/use-previous\");\n__toESM(require(\"react\"), 1);\nfunction useSwitch(props, param, ref) {\n\tvar [checked, setChecked] = param;\n\treturn {\n\t\tswitchProps: { onPress() {\n\t\t\tsetChecked(function(prevChecked) {\n\t\t\t\treturn !prevChecked;\n\t\t\t});\n\t\t} },\n\t\tswitchRef: ref,\n\t\tbubbleInput: null\n\t};\n}\n//# sourceMappingURL=useSwitch.js.map\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSwitch.native.js","names":[],"sources":["cjs/useSwitch.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useSwitch_exports = {};\n__export(useSwitch_exports, { useSwitch: () => useSwitch });\nmodule.exports = __toCommonJS(useSwitch_exports);\nrequire(\"react/jsx-runtime\");\nrequire(\"@tamagui/compose-refs\");\nrequire(\"@tamagui/constants\");\nrequire(\"@tamagui/helpers\");\nrequire(\"@tamagui/label\");\nrequire(\"@tamagui/use-previous\");\n__toESM(require(\"react\"), 1);\nfunction useSwitch(props, param, ref) {\n\tvar [checked, setChecked] = param;\n\treturn {\n\t\tswitchProps: { onPress() {\n\t\t\tsetChecked(function(prevChecked) {\n\t\t\t\treturn !prevChecked;\n\t\t\t});\n\t\t} },\n\t\tswitchRef: ref,\n\t\tbubbleInput: null\n\t};\n}\n//# sourceMappingURL=useSwitch.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKpG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CACpE,OAAO;CACP,YAAY;AACb,CAAC,IAAI,QACL,GACD;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAAE,iBAAiB,UAAU,CAAC;AAC1D,OAAO,UAAU,aAAa,iBAAiB;AAC/C,QAAQ,mBAAmB;AAC3B,QAAQ,uBAAuB;AAC/B,QAAQ,oBAAoB;AAC5B,QAAQ,kBAAkB;AAC1B,QAAQ,gBAAgB;AACxB,QAAQ,uBAAuB;AAC/B,QAAQ,QAAQ,OAAO,GAAG,CAAC;AAC3B,SAAS,UAAU,OAAO,OAAO,KAAK;CACrC,IAAI,CAAC,SAAS,cAAc;CAC5B,OAAO;EACN,aAAa,EAAE,UAAU;GACxB,WAAW,SAAS,aAAa;IAChC,OAAO,CAAC;GACT,CAAC;EACF,EAAE;EACF,WAAW;EACX,aAAa;CACd;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSwitch.js","names":[],"sources":["esm/useSwitch.js"],"sourcesContent":["import { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { composeEventHandlers } from \"@tamagui/helpers\";\nimport { useLabelContext } from \"@tamagui/label\";\nimport { usePrevious } from \"@tamagui/use-previous\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nfunction getState(checked) {\n\treturn checked ? \"checked\" : \"unchecked\";\n}\nconst BubbleInput = (props) => {\n\tconst { control, checked, bubbles = true, ...inputProps } = props;\n\tconst ref = React.useRef(null);\n\tconst prevChecked = usePrevious(checked);\n\tReact.useEffect(() => {\n\t\tconst input = ref.current;\n\t\tconst inputProto = window.HTMLInputElement.prototype;\n\t\tconst setChecked = Object.getOwnPropertyDescriptor(inputProto, \"checked\").set;\n\t\tif (prevChecked !== checked && setChecked) {\n\t\t\tconst event = new Event(\"click\", { bubbles });\n\t\t\tsetChecked.call(input, checked);\n\t\t\tinput.dispatchEvent(event);\n\t\t}\n\t}, [\n\t\tprevChecked,\n\t\tchecked,\n\t\tbubbles\n\t]);\n\treturn /* @__PURE__ */ jsx(\"input\", {\n\t\ttype: \"checkbox\",\n\t\t\"aria-hidden\": true,\n\t\tdefaultChecked: checked,\n\t\t...inputProps,\n\t\ttabIndex: -1,\n\t\tref,\n\t\tstyle: {\n\t\t\t...props.style,\n\t\t\tposition: \"absolute\",\n\t\t\tpointerEvents: \"none\",\n\t\t\topacity: 0,\n\t\t\tmargin: 0\n\t\t}\n\t});\n};\nfunction useSwitch(props, [checked, setChecked], ref) {\n\t{\n\t\tconst { disabled, name, value, required } = props;\n\t\tconst hasConsumerStoppedPropagationRef = React.useRef(false);\n\t\tconst [button, setButton] = React.useState(null);\n\t\tconst composedRefs = useComposedRefs(ref, setButton);\n\t\tconst isFormControl = isWeb ? button ? Boolean(button.closest(\"form\")) : true : false;\n\t\tconst labelId = useLabelContext(button);\n\t\tconst ariaLabelledBy = props[\"aria-labelledby\"] || props.labeledBy || labelId;\n\t\treturn {\n\t\t\tswitchProps: {\n\t\t\t\trole: \"switch\",\n\t\t\t\t\"aria-checked\": checked,\n\t\t\t\t...isWeb ? {\n\t\t\t\t\ttabIndex: disabled ? void 0 : 0,\n\t\t\t\t\t\"data-state\": getState(checked),\n\t\t\t\t\t\"data-disabled\": disabled ? \"\" : void 0,\n\t\t\t\t\tdisabled\n\t\t\t\t} : {},\n\t\t\t\t\"aria-labelledby\": ariaLabelledBy,\n\t\t\t\tonPress: composeEventHandlers(props.onPress, (event) => {\n\t\t\t\t\tsetChecked((prevChecked) => !prevChecked);\n\t\t\t\t\tif (isWeb && isFormControl) {\n\t\t\t\t\t\thasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n\t\t\t\t\t\tif (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tswitchRef: composedRefs,\n\t\t\tbubbleInput: isWeb && isFormControl ? /* @__PURE__ */ jsx(BubbleInput, {\n\t\t\t\tcontrol: button,\n\t\t\t\tbubbles: !hasConsumerStoppedPropagationRef.current,\n\t\t\t\tname,\n\t\t\t\tvalue,\n\t\t\t\tchecked,\n\t\t\t\trequired,\n\t\t\t\tdisabled,\n\t\t\t\tstyle: { transform: \"translateX(-100%)\" }\n\t\t\t}) : null\n\t\t};\n\t}\n}\n\nexport { useSwitch };"],"mappings":";;;;;;;;;AAQA,SAAS,SAAS,SAAS;CAC1B,OAAO,UAAU,YAAY;AAC9B;AACA,MAAM,eAAe,UAAU;CAC9B,MAAM,EAAE,SAAS,SAAS,UAAU,MAAM,GAAG,eAAe;CAC5D,MAAM,MAAM,MAAM,OAAO,IAAI;CAC7B,MAAM,cAAc,YAAY,OAAO;CACvC,MAAM,gBAAgB;EACrB,MAAM,QAAQ,IAAI;EAClB,MAAM,aAAa,OAAO,iBAAiB;EAC3C,MAAM,aAAa,OAAO,yBAAyB,YAAY,SAAS,
|
|
1
|
+
{"version":3,"file":"useSwitch.js","names":[],"sources":["esm/useSwitch.js"],"sourcesContent":["import { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { composeEventHandlers } from \"@tamagui/helpers\";\nimport { useLabelContext } from \"@tamagui/label\";\nimport { usePrevious } from \"@tamagui/use-previous\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nfunction getState(checked) {\n\treturn checked ? \"checked\" : \"unchecked\";\n}\nconst BubbleInput = (props) => {\n\tconst { control, checked, bubbles = true, ...inputProps } = props;\n\tconst ref = React.useRef(null);\n\tconst prevChecked = usePrevious(checked);\n\tReact.useEffect(() => {\n\t\tconst input = ref.current;\n\t\tconst inputProto = window.HTMLInputElement.prototype;\n\t\tconst setChecked = Object.getOwnPropertyDescriptor(inputProto, \"checked\").set;\n\t\tif (prevChecked !== checked && setChecked) {\n\t\t\tconst event = new Event(\"click\", { bubbles });\n\t\t\tsetChecked.call(input, checked);\n\t\t\tinput.dispatchEvent(event);\n\t\t}\n\t}, [\n\t\tprevChecked,\n\t\tchecked,\n\t\tbubbles\n\t]);\n\treturn /* @__PURE__ */ jsx(\"input\", {\n\t\ttype: \"checkbox\",\n\t\t\"aria-hidden\": true,\n\t\tdefaultChecked: checked,\n\t\t...inputProps,\n\t\ttabIndex: -1,\n\t\tref,\n\t\tstyle: {\n\t\t\t...props.style,\n\t\t\tposition: \"absolute\",\n\t\t\tpointerEvents: \"none\",\n\t\t\topacity: 0,\n\t\t\tmargin: 0\n\t\t}\n\t});\n};\nfunction useSwitch(props, [checked, setChecked], ref) {\n\t{\n\t\tconst { disabled, name, value, required } = props;\n\t\tconst hasConsumerStoppedPropagationRef = React.useRef(false);\n\t\tconst [button, setButton] = React.useState(null);\n\t\tconst composedRefs = useComposedRefs(ref, setButton);\n\t\tconst isFormControl = isWeb ? button ? Boolean(button.closest(\"form\")) : true : false;\n\t\tconst labelId = useLabelContext(button);\n\t\tconst ariaLabelledBy = props[\"aria-labelledby\"] || props.labeledBy || labelId;\n\t\treturn {\n\t\t\tswitchProps: {\n\t\t\t\trole: \"switch\",\n\t\t\t\t\"aria-checked\": checked,\n\t\t\t\t...isWeb ? {\n\t\t\t\t\ttabIndex: disabled ? void 0 : 0,\n\t\t\t\t\t\"data-state\": getState(checked),\n\t\t\t\t\t\"data-disabled\": disabled ? \"\" : void 0,\n\t\t\t\t\tdisabled\n\t\t\t\t} : {},\n\t\t\t\t\"aria-labelledby\": ariaLabelledBy,\n\t\t\t\tonPress: composeEventHandlers(props.onPress, (event) => {\n\t\t\t\t\tsetChecked((prevChecked) => !prevChecked);\n\t\t\t\t\tif (isWeb && isFormControl) {\n\t\t\t\t\t\thasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n\t\t\t\t\t\tif (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tswitchRef: composedRefs,\n\t\t\tbubbleInput: isWeb && isFormControl ? /* @__PURE__ */ jsx(BubbleInput, {\n\t\t\t\tcontrol: button,\n\t\t\t\tbubbles: !hasConsumerStoppedPropagationRef.current,\n\t\t\t\tname,\n\t\t\t\tvalue,\n\t\t\t\tchecked,\n\t\t\t\trequired,\n\t\t\t\tdisabled,\n\t\t\t\tstyle: { transform: \"translateX(-100%)\" }\n\t\t\t}) : null\n\t\t};\n\t}\n}\n\nexport { useSwitch };"],"mappings":";;;;;;;;;AAQA,SAAS,SAAS,SAAS;CAC1B,OAAO,UAAU,YAAY;AAC9B;AACA,MAAM,eAAe,UAAU;CAC9B,MAAM,EAAE,SAAS,SAAS,UAAU,MAAM,GAAG,eAAe;CAC5D,MAAM,MAAM,MAAM,OAAO,IAAI;CAC7B,MAAM,cAAc,YAAY,OAAO;CACvC,MAAM,gBAAgB;EACrB,MAAM,QAAQ,IAAI;EAClB,MAAM,aAAa,OAAO,iBAAiB;EAC3C,MAAM,aAAa,OAAO,yBAAyB,YAAY,SAAS,CAAC,CAAC;EAC1E,IAAI,gBAAgB,WAAW,YAAY;GAC1C,MAAM,QAAQ,IAAI,MAAM,SAAS,EAAE,QAAQ,CAAC;GAC5C,WAAW,KAAK,OAAO,OAAO;GAC9B,MAAM,cAAc,KAAK;EAC1B;CACD,GAAG;EACF;EACA;EACA;CACD,CAAC;CACD,OAAuB,oBAAI,SAAS;EACnC,MAAM;EACN,eAAe;EACf,gBAAgB;EAChB,GAAG;EACH,UAAU,CAAC;EACX;EACA,OAAO;GACN,GAAG,MAAM;GACT,UAAU;GACV,eAAe;GACf,SAAS;GACT,QAAQ;EACT;CACD,CAAC;AACF;AACA,SAAS,UAAU,OAAO,CAAC,SAAS,aAAa,KAAK;CACrD;EACC,MAAM,EAAE,UAAU,MAAM,OAAO,aAAa;EAC5C,MAAM,mCAAmC,MAAM,OAAO,KAAK;EAC3D,MAAM,CAAC,QAAQ,aAAa,MAAM,SAAS,IAAI;EAC/C,MAAM,eAAe,gBAAgB,KAAK,SAAS;EACnD,MAAM,gBAAgB,QAAQ,SAAS,QAAQ,OAAO,QAAQ,MAAM,CAAC,IAAI,OAAO;EAChF,MAAM,UAAU,gBAAgB,MAAM;EACtC,MAAM,iBAAiB,MAAM,sBAAsB,MAAM,aAAa;EACtE,OAAO;GACN,aAAa;IACZ,MAAM;IACN,gBAAgB;IAChB,GAAG,QAAQ;KACV,UAAU,WAAW,KAAK,IAAI;KAC9B,cAAc,SAAS,OAAO;KAC9B,iBAAiB,WAAW,KAAK,KAAK;KACtC;IACD,IAAI,CAAC;IACL,mBAAmB;IACnB,SAAS,qBAAqB,MAAM,UAAU,UAAU;KACvD,YAAY,gBAAgB,CAAC,WAAW;KACxC,IAAI,SAAS,eAAe;MAC3B,iCAAiC,UAAU,MAAM,qBAAqB;MACtE,IAAI,CAAC,iCAAiC,SAAS,MAAM,gBAAgB;KACtE;IACD,CAAC;GACF;GACA,WAAW;GACX,aAAa,SAAS,gBAAgC,oBAAI,aAAa;IACtE,SAAS;IACT,SAAS,CAAC,iCAAiC;IAC3C;IACA;IACA;IACA;IACA;IACA,OAAO,EAAE,WAAW,oBAAoB;GACzC,CAAC,IAAI;EACN;CACD;AACD"}
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./useSwitch\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./useSwitch\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSwitch.js","names":[],"sources":["jsx/useSwitch.js"],"sourcesContent":["import { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { composeEventHandlers } from \"@tamagui/helpers\";\nimport { useLabelContext } from \"@tamagui/label\";\nimport { usePrevious } from \"@tamagui/use-previous\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nfunction getState(checked) {\n\treturn checked ? \"checked\" : \"unchecked\";\n}\nconst BubbleInput = (props) => {\n\tconst { control, checked, bubbles = true, ...inputProps } = props;\n\tconst ref = React.useRef(null);\n\tconst prevChecked = usePrevious(checked);\n\tReact.useEffect(() => {\n\t\tconst input = ref.current;\n\t\tconst inputProto = window.HTMLInputElement.prototype;\n\t\tconst setChecked = Object.getOwnPropertyDescriptor(inputProto, \"checked\").set;\n\t\tif (prevChecked !== checked && setChecked) {\n\t\t\tconst event = new Event(\"click\", { bubbles });\n\t\t\tsetChecked.call(input, checked);\n\t\t\tinput.dispatchEvent(event);\n\t\t}\n\t}, [\n\t\tprevChecked,\n\t\tchecked,\n\t\tbubbles\n\t]);\n\treturn /* @__PURE__ */ jsx(\"input\", {\n\t\ttype: \"checkbox\",\n\t\t\"aria-hidden\": true,\n\t\tdefaultChecked: checked,\n\t\t...inputProps,\n\t\ttabIndex: -1,\n\t\tref,\n\t\tstyle: {\n\t\t\t...props.style,\n\t\t\tposition: \"absolute\",\n\t\t\tpointerEvents: \"none\",\n\t\t\topacity: 0,\n\t\t\tmargin: 0\n\t\t}\n\t});\n};\nfunction useSwitch(props, [checked, setChecked], ref) {\n\t{\n\t\tconst { disabled, name, value, required } = props;\n\t\tconst hasConsumerStoppedPropagationRef = React.useRef(false);\n\t\tconst [button, setButton] = React.useState(null);\n\t\tconst composedRefs = useComposedRefs(ref, setButton);\n\t\tconst isFormControl = isWeb ? button ? Boolean(button.closest(\"form\")) : true : false;\n\t\tconst labelId = useLabelContext(button);\n\t\tconst ariaLabelledBy = props[\"aria-labelledby\"] || props.labeledBy || labelId;\n\t\treturn {\n\t\t\tswitchProps: {\n\t\t\t\trole: \"switch\",\n\t\t\t\t\"aria-checked\": checked,\n\t\t\t\t...isWeb ? {\n\t\t\t\t\ttabIndex: disabled ? void 0 : 0,\n\t\t\t\t\t\"data-state\": getState(checked),\n\t\t\t\t\t\"data-disabled\": disabled ? \"\" : void 0,\n\t\t\t\t\tdisabled\n\t\t\t\t} : {},\n\t\t\t\t\"aria-labelledby\": ariaLabelledBy,\n\t\t\t\tonPress: composeEventHandlers(props.onPress, (event) => {\n\t\t\t\t\tsetChecked((prevChecked) => !prevChecked);\n\t\t\t\t\tif (isWeb && isFormControl) {\n\t\t\t\t\t\thasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n\t\t\t\t\t\tif (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tswitchRef: composedRefs,\n\t\t\tbubbleInput: isWeb && isFormControl ? /* @__PURE__ */ jsx(BubbleInput, {\n\t\t\t\tcontrol: button,\n\t\t\t\tbubbles: !hasConsumerStoppedPropagationRef.current,\n\t\t\t\tname,\n\t\t\t\tvalue,\n\t\t\t\tchecked,\n\t\t\t\trequired,\n\t\t\t\tdisabled,\n\t\t\t\tstyle: { transform: \"translateX(-100%)\" }\n\t\t\t}) : null\n\t\t};\n\t}\n}\n\nexport { useSwitch };"],"mappings":";;;;;;;;;AAQA,SAAS,SAAS,SAAS;CAC1B,OAAO,UAAU,YAAY;AAC9B;AACA,MAAM,eAAe,UAAU;CAC9B,MAAM,EAAE,SAAS,SAAS,UAAU,MAAM,GAAG,eAAe;CAC5D,MAAM,MAAM,MAAM,OAAO,IAAI;CAC7B,MAAM,cAAc,YAAY,OAAO;CACvC,MAAM,gBAAgB;EACrB,MAAM,QAAQ,IAAI;EAClB,MAAM,aAAa,OAAO,iBAAiB;EAC3C,MAAM,aAAa,OAAO,yBAAyB,YAAY,SAAS,
|
|
1
|
+
{"version":3,"file":"useSwitch.js","names":[],"sources":["jsx/useSwitch.js"],"sourcesContent":["import { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb } from \"@tamagui/constants\";\nimport { composeEventHandlers } from \"@tamagui/helpers\";\nimport { useLabelContext } from \"@tamagui/label\";\nimport { usePrevious } from \"@tamagui/use-previous\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nfunction getState(checked) {\n\treturn checked ? \"checked\" : \"unchecked\";\n}\nconst BubbleInput = (props) => {\n\tconst { control, checked, bubbles = true, ...inputProps } = props;\n\tconst ref = React.useRef(null);\n\tconst prevChecked = usePrevious(checked);\n\tReact.useEffect(() => {\n\t\tconst input = ref.current;\n\t\tconst inputProto = window.HTMLInputElement.prototype;\n\t\tconst setChecked = Object.getOwnPropertyDescriptor(inputProto, \"checked\").set;\n\t\tif (prevChecked !== checked && setChecked) {\n\t\t\tconst event = new Event(\"click\", { bubbles });\n\t\t\tsetChecked.call(input, checked);\n\t\t\tinput.dispatchEvent(event);\n\t\t}\n\t}, [\n\t\tprevChecked,\n\t\tchecked,\n\t\tbubbles\n\t]);\n\treturn /* @__PURE__ */ jsx(\"input\", {\n\t\ttype: \"checkbox\",\n\t\t\"aria-hidden\": true,\n\t\tdefaultChecked: checked,\n\t\t...inputProps,\n\t\ttabIndex: -1,\n\t\tref,\n\t\tstyle: {\n\t\t\t...props.style,\n\t\t\tposition: \"absolute\",\n\t\t\tpointerEvents: \"none\",\n\t\t\topacity: 0,\n\t\t\tmargin: 0\n\t\t}\n\t});\n};\nfunction useSwitch(props, [checked, setChecked], ref) {\n\t{\n\t\tconst { disabled, name, value, required } = props;\n\t\tconst hasConsumerStoppedPropagationRef = React.useRef(false);\n\t\tconst [button, setButton] = React.useState(null);\n\t\tconst composedRefs = useComposedRefs(ref, setButton);\n\t\tconst isFormControl = isWeb ? button ? Boolean(button.closest(\"form\")) : true : false;\n\t\tconst labelId = useLabelContext(button);\n\t\tconst ariaLabelledBy = props[\"aria-labelledby\"] || props.labeledBy || labelId;\n\t\treturn {\n\t\t\tswitchProps: {\n\t\t\t\trole: \"switch\",\n\t\t\t\t\"aria-checked\": checked,\n\t\t\t\t...isWeb ? {\n\t\t\t\t\ttabIndex: disabled ? void 0 : 0,\n\t\t\t\t\t\"data-state\": getState(checked),\n\t\t\t\t\t\"data-disabled\": disabled ? \"\" : void 0,\n\t\t\t\t\tdisabled\n\t\t\t\t} : {},\n\t\t\t\t\"aria-labelledby\": ariaLabelledBy,\n\t\t\t\tonPress: composeEventHandlers(props.onPress, (event) => {\n\t\t\t\t\tsetChecked((prevChecked) => !prevChecked);\n\t\t\t\t\tif (isWeb && isFormControl) {\n\t\t\t\t\t\thasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n\t\t\t\t\t\tif (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tswitchRef: composedRefs,\n\t\t\tbubbleInput: isWeb && isFormControl ? /* @__PURE__ */ jsx(BubbleInput, {\n\t\t\t\tcontrol: button,\n\t\t\t\tbubbles: !hasConsumerStoppedPropagationRef.current,\n\t\t\t\tname,\n\t\t\t\tvalue,\n\t\t\t\tchecked,\n\t\t\t\trequired,\n\t\t\t\tdisabled,\n\t\t\t\tstyle: { transform: \"translateX(-100%)\" }\n\t\t\t}) : null\n\t\t};\n\t}\n}\n\nexport { useSwitch };"],"mappings":";;;;;;;;;AAQA,SAAS,SAAS,SAAS;CAC1B,OAAO,UAAU,YAAY;AAC9B;AACA,MAAM,eAAe,UAAU;CAC9B,MAAM,EAAE,SAAS,SAAS,UAAU,MAAM,GAAG,eAAe;CAC5D,MAAM,MAAM,MAAM,OAAO,IAAI;CAC7B,MAAM,cAAc,YAAY,OAAO;CACvC,MAAM,gBAAgB;EACrB,MAAM,QAAQ,IAAI;EAClB,MAAM,aAAa,OAAO,iBAAiB;EAC3C,MAAM,aAAa,OAAO,yBAAyB,YAAY,SAAS,CAAC,CAAC;EAC1E,IAAI,gBAAgB,WAAW,YAAY;GAC1C,MAAM,QAAQ,IAAI,MAAM,SAAS,EAAE,QAAQ,CAAC;GAC5C,WAAW,KAAK,OAAO,OAAO;GAC9B,MAAM,cAAc,KAAK;EAC1B;CACD,GAAG;EACF;EACA;EACA;CACD,CAAC;CACD,OAAuB,oBAAI,SAAS;EACnC,MAAM;EACN,eAAe;EACf,gBAAgB;EAChB,GAAG;EACH,UAAU,CAAC;EACX;EACA,OAAO;GACN,GAAG,MAAM;GACT,UAAU;GACV,eAAe;GACf,SAAS;GACT,QAAQ;EACT;CACD,CAAC;AACF;AACA,SAAS,UAAU,OAAO,CAAC,SAAS,aAAa,KAAK;CACrD;EACC,MAAM,EAAE,UAAU,MAAM,OAAO,aAAa;EAC5C,MAAM,mCAAmC,MAAM,OAAO,KAAK;EAC3D,MAAM,CAAC,QAAQ,aAAa,MAAM,SAAS,IAAI;EAC/C,MAAM,eAAe,gBAAgB,KAAK,SAAS;EACnD,MAAM,gBAAgB,QAAQ,SAAS,QAAQ,OAAO,QAAQ,MAAM,CAAC,IAAI,OAAO;EAChF,MAAM,UAAU,gBAAgB,MAAM;EACtC,MAAM,iBAAiB,MAAM,sBAAsB,MAAM,aAAa;EACtE,OAAO;GACN,aAAa;IACZ,MAAM;IACN,gBAAgB;IAChB,GAAG,QAAQ;KACV,UAAU,WAAW,KAAK,IAAI;KAC9B,cAAc,SAAS,OAAO;KAC9B,iBAAiB,WAAW,KAAK,KAAK;KACtC;IACD,IAAI,CAAC;IACL,mBAAmB;IACnB,SAAS,qBAAqB,MAAM,UAAU,UAAU;KACvD,YAAY,gBAAgB,CAAC,WAAW;KACxC,IAAI,SAAS,eAAe;MAC3B,iCAAiC,UAAU,MAAM,qBAAqB;MACtE,IAAI,CAAC,iCAAiC,SAAS,MAAM,gBAAgB;KACtE;IACD,CAAC;GACF;GACA,WAAW;GACX,aAAa,SAAS,gBAAgC,oBAAI,aAAa;IACtE,SAAS;IACT,SAAS,CAAC,iCAAiC;IAC3C;IACA;IACA;IACA;IACA;IACA,OAAO,EAAE,WAAW,oBAAoB;GACzC,CAAC,IAAI;EACN;CACD;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSwitch.native.js","names":[],"sources":["jsx/useSwitch.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useSwitch_exports = {};\n__export(useSwitch_exports, { useSwitch: () => useSwitch });\nmodule.exports = __toCommonJS(useSwitch_exports);\nrequire(\"react/jsx-runtime\");\nrequire(\"@tamagui/compose-refs\");\nrequire(\"@tamagui/constants\");\nrequire(\"@tamagui/helpers\");\nrequire(\"@tamagui/label\");\nrequire(\"@tamagui/use-previous\");\n__toESM(require(\"react\"), 1);\nfunction useSwitch(props, param, ref) {\n\tvar [checked, setChecked] = param;\n\treturn {\n\t\tswitchProps: { onPress() {\n\t\t\tsetChecked(function(prevChecked) {\n\t\t\t\treturn !prevChecked;\n\t\t\t});\n\t\t} },\n\t\tswitchRef: ref,\n\t\tbubbleInput: null\n\t};\n}\n//# sourceMappingURL=useSwitch.js.map\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSwitch.native.js","names":[],"sources":["jsx/useSwitch.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useSwitch_exports = {};\n__export(useSwitch_exports, { useSwitch: () => useSwitch });\nmodule.exports = __toCommonJS(useSwitch_exports);\nrequire(\"react/jsx-runtime\");\nrequire(\"@tamagui/compose-refs\");\nrequire(\"@tamagui/constants\");\nrequire(\"@tamagui/helpers\");\nrequire(\"@tamagui/label\");\nrequire(\"@tamagui/use-previous\");\n__toESM(require(\"react\"), 1);\nfunction useSwitch(props, param, ref) {\n\tvar [checked, setChecked] = param;\n\treturn {\n\t\tswitchProps: { onPress() {\n\t\t\tsetChecked(function(prevChecked) {\n\t\t\t\treturn !prevChecked;\n\t\t\t});\n\t\t} },\n\t\tswitchRef: ref,\n\t\tbubbleInput: null\n\t};\n}\n//# sourceMappingURL=useSwitch.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKpG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CACpE,OAAO;CACP,YAAY;AACb,CAAC,IAAI,QACL,GACD;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAAE,iBAAiB,UAAU,CAAC;AAC1D,OAAO,UAAU,aAAa,iBAAiB;AAC/C,QAAQ,mBAAmB;AAC3B,QAAQ,uBAAuB;AAC/B,QAAQ,oBAAoB;AAC5B,QAAQ,kBAAkB;AAC1B,QAAQ,gBAAgB;AACxB,QAAQ,uBAAuB;AAC/B,QAAQ,QAAQ,OAAO,GAAG,CAAC;AAC3B,SAAS,UAAU,OAAO,OAAO,KAAK;CACrC,IAAI,CAAC,SAAS,cAAc;CAC5B,OAAO;EACN,aAAa,EAAE,UAAU;GACxB,WAAW,SAAS,aAAa;IAChC,OAAO,CAAC;GACT,CAAC;EACF,EAAE;EACF,WAAW;EACX,aAAa;CACd;AACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/switch-headless",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.719.1",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"clean:build": "tamagui-build clean:build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@tamagui/compose-refs": "3.0.0-beta.
|
|
38
|
-
"@tamagui/constants": "3.0.0-beta.
|
|
39
|
-
"@tamagui/helpers": "3.0.0-beta.
|
|
40
|
-
"@tamagui/label": "3.0.0-beta.
|
|
41
|
-
"@tamagui/use-previous": "3.0.0-beta.
|
|
37
|
+
"@tamagui/compose-refs": "3.0.0-beta.719.1",
|
|
38
|
+
"@tamagui/constants": "3.0.0-beta.719.1",
|
|
39
|
+
"@tamagui/helpers": "3.0.0-beta.719.1",
|
|
40
|
+
"@tamagui/label": "3.0.0-beta.719.1",
|
|
41
|
+
"@tamagui/use-previous": "3.0.0-beta.719.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@tamagui/build": "3.0.0-beta.
|
|
45
|
-
"react": "
|
|
44
|
+
"@tamagui/build": "3.0.0-beta.719.1",
|
|
45
|
+
"react": "19.2.3",
|
|
46
46
|
"react-native": "0.86.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|