@tamagui/demos 3.0.0-beta.1313.1 → 3.0.0-beta.1341.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/AnimationsDelayDemo.cjs +1 -1
- package/dist/cjs/AnimationsDelayDemo.native.cjs +1 -1
- package/dist/cjs/AnimationsDelayDemo.native.js +1 -1
- package/dist/cjs/AnimationsDelayDemo.native.js.map +1 -1
- package/dist/cjs/AnimationsDemo.cjs +1 -1
- package/dist/cjs/AnimationsDemo.native.cjs +1 -1
- package/dist/cjs/AnimationsDemo.native.js +1 -1
- package/dist/cjs/AnimationsDemo.native.js.map +1 -1
- package/dist/cjs/AnimationsEnterDemo.cjs +1 -1
- package/dist/cjs/AnimationsEnterDemo.native.cjs +1 -1
- package/dist/cjs/AnimationsEnterDemo.native.js +1 -1
- package/dist/cjs/AnimationsEnterDemo.native.js.map +1 -1
- package/dist/cjs/AnimationsPresenceDemo.cjs +2 -2
- package/dist/cjs/AnimationsPresenceDemo.native.cjs +2 -2
- package/dist/cjs/AnimationsPresenceDemo.native.js +2 -2
- package/dist/cjs/AnimationsPresenceDemo.native.js.map +1 -1
- package/dist/cjs/BuildAButtonDemo.cjs +6 -6
- package/dist/cjs/BuildAButtonDemo.native.cjs +6 -6
- package/dist/cjs/BuildAButtonDemo.native.js +6 -6
- package/dist/cjs/BuildAButtonDemo.native.js.map +1 -1
- package/dist/cjs/ButtonDemo.cjs +7 -7
- package/dist/cjs/ButtonDemo.native.cjs +7 -7
- package/dist/cjs/ButtonDemo.native.js +7 -7
- package/dist/cjs/ButtonDemo.native.js.map +1 -1
- package/dist/cjs/CardDemo.cjs +3 -3
- package/dist/cjs/CardDemo.native.cjs +3 -3
- package/dist/cjs/CardDemo.native.js +3 -3
- package/dist/cjs/CardDemo.native.js.map +1 -1
- package/dist/cjs/CheckboxDemo.cjs +13 -6
- package/dist/cjs/CheckboxDemo.native.cjs +13 -6
- package/dist/cjs/CheckboxDemo.native.js +13 -6
- package/dist/cjs/CheckboxDemo.native.js.map +1 -1
- package/dist/cjs/DialogDemo.cjs +4 -4
- package/dist/cjs/DialogDemo.native.cjs +4 -4
- package/dist/cjs/DialogDemo.native.js +4 -4
- package/dist/cjs/DialogDemo.native.js.map +1 -1
- package/dist/cjs/GroupDemo.cjs +2 -2
- package/dist/cjs/GroupDemo.native.cjs +2 -2
- package/dist/cjs/GroupDemo.native.js +2 -2
- package/dist/cjs/GroupDemo.native.js.map +1 -1
- package/dist/cjs/InputsDemo.cjs +3 -3
- package/dist/cjs/InputsDemo.native.cjs +3 -3
- package/dist/cjs/InputsDemo.native.js +3 -3
- package/dist/cjs/InputsDemo.native.js.map +1 -1
- package/dist/cjs/ListItemDemo.cjs +1 -3
- package/dist/cjs/ListItemDemo.native.cjs +1 -3
- package/dist/cjs/ListItemDemo.native.js +1 -3
- package/dist/cjs/ListItemDemo.native.js.map +1 -1
- package/dist/cjs/MenuDemo.cjs +1 -1
- package/dist/cjs/MenuDemo.native.cjs +1 -1
- package/dist/cjs/MenuDemo.native.js +1 -1
- package/dist/cjs/MenuDemo.native.js.map +1 -1
- package/dist/cjs/NewInputsDemo.cjs +3 -3
- package/dist/cjs/NewInputsDemo.native.cjs +3 -3
- package/dist/cjs/NewInputsDemo.native.js +3 -3
- package/dist/cjs/NewInputsDemo.native.js.map +1 -1
- package/dist/cjs/PopoverDemo.cjs +2 -3
- package/dist/cjs/PopoverDemo.native.cjs +2 -3
- package/dist/cjs/PopoverDemo.native.js +2 -3
- package/dist/cjs/PopoverDemo.native.js.map +1 -1
- package/dist/cjs/ProgressDemo.cjs +2 -2
- package/dist/cjs/ProgressDemo.native.cjs +2 -2
- package/dist/cjs/ProgressDemo.native.js +2 -2
- package/dist/cjs/ProgressDemo.native.js.map +1 -1
- package/dist/cjs/RadioGroupDemo.cjs +11 -4
- package/dist/cjs/RadioGroupDemo.native.cjs +11 -4
- package/dist/cjs/RadioGroupDemo.native.js +11 -4
- package/dist/cjs/RadioGroupDemo.native.js.map +1 -1
- package/dist/cjs/SelectDemo.cjs +10 -1
- package/dist/cjs/SelectDemo.native.cjs +13 -2
- package/dist/cjs/SelectDemo.native.js +13 -2
- package/dist/cjs/SelectDemo.native.js.map +1 -1
- package/dist/cjs/SheetDemo.cjs +3 -3
- package/dist/cjs/SheetDemo.native.cjs +3 -3
- package/dist/cjs/SheetDemo.native.js +3 -3
- package/dist/cjs/SheetDemo.native.js.map +1 -1
- package/dist/cjs/SliderDemo.cjs +2 -1
- package/dist/cjs/SliderDemo.native.cjs +2 -1
- package/dist/cjs/SliderDemo.native.js +2 -1
- package/dist/cjs/SliderDemo.native.js.map +1 -1
- package/dist/cjs/SwitchDemo.cjs +14 -7
- package/dist/cjs/SwitchDemo.native.cjs +14 -7
- package/dist/cjs/SwitchDemo.native.js +14 -7
- package/dist/cjs/SwitchDemo.native.js.map +1 -1
- package/dist/cjs/TabsAdvancedDemo.cjs +1 -3
- package/dist/cjs/TabsAdvancedDemo.native.cjs +1 -3
- package/dist/cjs/TabsAdvancedDemo.native.js +1 -3
- package/dist/cjs/TabsAdvancedDemo.native.js.map +1 -1
- package/dist/cjs/TabsCustomDemo.cjs +5 -5
- package/dist/cjs/TabsCustomDemo.native.cjs +5 -5
- package/dist/cjs/TabsCustomDemo.native.js +5 -5
- package/dist/cjs/TabsCustomDemo.native.js.map +1 -1
- package/dist/cjs/TabsDemo.cjs +1 -1
- package/dist/cjs/TabsDemo.native.cjs +1 -1
- package/dist/cjs/TabsDemo.native.js +1 -1
- package/dist/cjs/TabsDemo.native.js.map +1 -1
- package/dist/cjs/ToastDemo.cjs +1 -1
- package/dist/cjs/ToastDemo.native.cjs +1 -1
- package/dist/cjs/ToastDemo.native.js +1 -1
- package/dist/cjs/ToastDemo.native.js.map +1 -1
- package/dist/cjs/TokensDemo.cjs +1 -1
- package/dist/cjs/TokensDemo.native.cjs +1 -1
- package/dist/cjs/TokensDemo.native.js +1 -1
- package/dist/cjs/TokensDemo.native.js.map +1 -1
- package/dist/esm/AnimationsDelayDemo.mjs +1 -1
- package/dist/esm/AnimationsDelayDemo.mjs.map +1 -1
- package/dist/esm/AnimationsDelayDemo.native.js +1 -1
- package/dist/esm/AnimationsDelayDemo.native.js.map +1 -1
- package/dist/esm/AnimationsDemo.mjs +1 -1
- package/dist/esm/AnimationsDemo.mjs.map +1 -1
- package/dist/esm/AnimationsDemo.native.js +1 -1
- package/dist/esm/AnimationsDemo.native.js.map +1 -1
- package/dist/esm/AnimationsEnterDemo.mjs +1 -1
- package/dist/esm/AnimationsEnterDemo.mjs.map +1 -1
- package/dist/esm/AnimationsEnterDemo.native.js +1 -1
- package/dist/esm/AnimationsEnterDemo.native.js.map +1 -1
- package/dist/esm/AnimationsPresenceDemo.mjs +2 -2
- package/dist/esm/AnimationsPresenceDemo.mjs.map +1 -1
- package/dist/esm/AnimationsPresenceDemo.native.js +2 -2
- package/dist/esm/AnimationsPresenceDemo.native.js.map +1 -1
- package/dist/esm/BuildAButtonDemo.mjs +6 -6
- package/dist/esm/BuildAButtonDemo.mjs.map +1 -1
- package/dist/esm/BuildAButtonDemo.native.js +6 -6
- package/dist/esm/BuildAButtonDemo.native.js.map +1 -1
- package/dist/esm/ButtonDemo.mjs +7 -7
- package/dist/esm/ButtonDemo.mjs.map +1 -1
- package/dist/esm/ButtonDemo.native.js +7 -7
- package/dist/esm/ButtonDemo.native.js.map +1 -1
- package/dist/esm/CardDemo.mjs +3 -3
- package/dist/esm/CardDemo.mjs.map +1 -1
- package/dist/esm/CardDemo.native.js +3 -3
- package/dist/esm/CardDemo.native.js.map +1 -1
- package/dist/esm/CheckboxDemo.mjs +13 -6
- package/dist/esm/CheckboxDemo.mjs.map +1 -1
- package/dist/esm/CheckboxDemo.native.js +13 -6
- package/dist/esm/CheckboxDemo.native.js.map +1 -1
- package/dist/esm/DialogDemo.mjs +4 -4
- package/dist/esm/DialogDemo.mjs.map +1 -1
- package/dist/esm/DialogDemo.native.js +4 -4
- package/dist/esm/DialogDemo.native.js.map +1 -1
- package/dist/esm/GroupDemo.mjs +2 -2
- package/dist/esm/GroupDemo.mjs.map +1 -1
- package/dist/esm/GroupDemo.native.js +2 -2
- package/dist/esm/GroupDemo.native.js.map +1 -1
- package/dist/esm/InputsDemo.mjs +3 -3
- package/dist/esm/InputsDemo.mjs.map +1 -1
- package/dist/esm/InputsDemo.native.js +3 -3
- package/dist/esm/InputsDemo.native.js.map +1 -1
- package/dist/esm/ListItemDemo.mjs +1 -3
- package/dist/esm/ListItemDemo.mjs.map +1 -1
- package/dist/esm/ListItemDemo.native.js +1 -3
- package/dist/esm/ListItemDemo.native.js.map +1 -1
- package/dist/esm/MenuDemo.mjs +1 -1
- package/dist/esm/MenuDemo.mjs.map +1 -1
- package/dist/esm/MenuDemo.native.js +1 -1
- package/dist/esm/MenuDemo.native.js.map +1 -1
- package/dist/esm/NewInputsDemo.mjs +3 -3
- package/dist/esm/NewInputsDemo.mjs.map +1 -1
- package/dist/esm/NewInputsDemo.native.js +3 -3
- package/dist/esm/NewInputsDemo.native.js.map +1 -1
- package/dist/esm/PopoverDemo.mjs +2 -3
- package/dist/esm/PopoverDemo.mjs.map +1 -1
- package/dist/esm/PopoverDemo.native.js +2 -3
- package/dist/esm/PopoverDemo.native.js.map +1 -1
- package/dist/esm/ProgressDemo.mjs +2 -2
- package/dist/esm/ProgressDemo.mjs.map +1 -1
- package/dist/esm/ProgressDemo.native.js +2 -2
- package/dist/esm/ProgressDemo.native.js.map +1 -1
- package/dist/esm/RadioGroupDemo.mjs +11 -4
- package/dist/esm/RadioGroupDemo.mjs.map +1 -1
- package/dist/esm/RadioGroupDemo.native.js +11 -4
- package/dist/esm/RadioGroupDemo.native.js.map +1 -1
- package/dist/esm/SelectDemo.mjs +10 -1
- package/dist/esm/SelectDemo.mjs.map +1 -1
- package/dist/esm/SelectDemo.native.js +13 -2
- package/dist/esm/SelectDemo.native.js.map +1 -1
- package/dist/esm/SheetDemo.mjs +3 -3
- package/dist/esm/SheetDemo.mjs.map +1 -1
- package/dist/esm/SheetDemo.native.js +3 -3
- package/dist/esm/SheetDemo.native.js.map +1 -1
- package/dist/esm/SliderDemo.mjs +2 -1
- package/dist/esm/SliderDemo.mjs.map +1 -1
- package/dist/esm/SliderDemo.native.js +2 -1
- package/dist/esm/SliderDemo.native.js.map +1 -1
- package/dist/esm/SwitchDemo.mjs +14 -7
- package/dist/esm/SwitchDemo.mjs.map +1 -1
- package/dist/esm/SwitchDemo.native.js +14 -7
- package/dist/esm/SwitchDemo.native.js.map +1 -1
- package/dist/esm/TabsAdvancedDemo.mjs +1 -3
- package/dist/esm/TabsAdvancedDemo.mjs.map +1 -1
- package/dist/esm/TabsAdvancedDemo.native.js +1 -3
- package/dist/esm/TabsAdvancedDemo.native.js.map +1 -1
- package/dist/esm/TabsCustomDemo.mjs +6 -6
- package/dist/esm/TabsCustomDemo.mjs.map +1 -1
- package/dist/esm/TabsCustomDemo.native.js +6 -6
- package/dist/esm/TabsCustomDemo.native.js.map +1 -1
- package/dist/esm/TabsDemo.mjs +1 -1
- package/dist/esm/TabsDemo.mjs.map +1 -1
- package/dist/esm/TabsDemo.native.js +1 -1
- package/dist/esm/TabsDemo.native.js.map +1 -1
- package/dist/esm/ToastDemo.mjs +1 -1
- package/dist/esm/ToastDemo.mjs.map +1 -1
- package/dist/esm/ToastDemo.native.js +1 -1
- package/dist/esm/ToastDemo.native.js.map +1 -1
- package/dist/esm/TokensDemo.mjs +1 -1
- package/dist/esm/TokensDemo.mjs.map +1 -1
- package/dist/esm/TokensDemo.native.js +1 -1
- package/dist/esm/TokensDemo.native.js.map +1 -1
- package/package.json +33 -33
- package/src/AnimationsDelayDemo.tsx +1 -1
- package/src/AnimationsDemo.tsx +1 -1
- package/src/AnimationsEnterDemo.tsx +1 -1
- package/src/AnimationsPresenceDemo.tsx +2 -2
- package/src/BuildAButtonDemo.tsx +6 -6
- package/src/ButtonDemo.tsx +7 -7
- package/src/CardDemo.tsx +3 -3
- package/src/CheckboxDemo.tsx +26 -8
- package/src/DialogDemo.tsx +4 -4
- package/src/GroupDemo.tsx +2 -2
- package/src/InputsDemo.tsx +5 -5
- package/src/ListItemDemo.tsx +1 -3
- package/src/MenuDemo.tsx +1 -1
- package/src/NewInputsDemo.tsx +5 -5
- package/src/PopoverDemo.tsx +3 -3
- package/src/ProgressDemo.tsx +2 -2
- package/src/RadioGroupDemo.tsx +18 -6
- package/src/SelectDemo.tsx +15 -2
- package/src/SheetDemo.tsx +3 -3
- package/src/SliderDemo.tsx +1 -1
- package/src/SwitchDemo.tsx +24 -9
- package/src/TabsAdvancedDemo.tsx +1 -3
- package/src/TabsCustomDemo.tsx +5 -8
- package/src/TabsDemo.tsx +1 -1
- package/src/ToastDemo.tsx +1 -1
- package/src/TokensDemo.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationsDelayDemo.native.js","names":[],"sources":["cjs/AnimationsDelayDemo.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 for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AnimationsDelayDemo_exports = {};\n__export(AnimationsDelayDemo_exports, {\n AnimationsDelayDemo: () => AnimationsDelayDemo\n});\nmodule.exports = __toCommonJS(AnimationsDelayDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_tamagui = require(\"tamagui\");\nvar import_useOnIntersecting = require(\"./useOnIntersecting\");\nvar colors = [\n \"color-8\",\n \"color-9\",\n \"color-10\",\n \"color-11\"\n];\nfunction AnimationsDelayDemo() {\n var ref = import_react.default.useRef(null);\n var hasIntersected = (0, import_useOnIntersecting.useIsIntersecting)(ref, {\n once: true\n });\n var [show, setShow] = import_react.default.useState(true);\n if (import_tamagui.isWeb && !hasIntersected) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n ref,\n height: 150\n });\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n gap: \"4\",\n items: \"center\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, {\n gap: \"3\",\n height: 100,\n items: \"center\",\n justify: \"center\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, {\n children: show && colors.map(function(color, i) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, {\n transition: {\n duration: 200,\n delay: i * 100\n },\n opacity: \"enter:0 exit:0\",\n scale: \"enter:0.5 exit:0\",\n y: \"enter:20px exit:20px\",\n bg: color,\n rounded: \"4\",\n size: 60\n }, color);\n })\n })\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n size: \"
|
|
1
|
+
{"version":3,"file":"AnimationsDelayDemo.native.js","names":[],"sources":["cjs/AnimationsDelayDemo.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 for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AnimationsDelayDemo_exports = {};\n__export(AnimationsDelayDemo_exports, {\n AnimationsDelayDemo: () => AnimationsDelayDemo\n});\nmodule.exports = __toCommonJS(AnimationsDelayDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_tamagui = require(\"tamagui\");\nvar import_useOnIntersecting = require(\"./useOnIntersecting\");\nvar colors = [\n \"color-8\",\n \"color-9\",\n \"color-10\",\n \"color-11\"\n];\nfunction AnimationsDelayDemo() {\n var ref = import_react.default.useRef(null);\n var hasIntersected = (0, import_useOnIntersecting.useIsIntersecting)(ref, {\n once: true\n });\n var [show, setShow] = import_react.default.useState(true);\n if (import_tamagui.isWeb && !hasIntersected) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n ref,\n height: 150\n });\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n gap: \"4\",\n items: \"center\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, {\n gap: \"3\",\n height: 100,\n items: \"center\",\n justify: \"center\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, {\n children: show && colors.map(function(color, i) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, {\n transition: {\n duration: 200,\n delay: i * 100\n },\n opacity: \"enter:0 exit:0\",\n scale: \"enter:0.5 exit:0\",\n y: \"enter:20px exit:20px\",\n bg: color,\n rounded: \"4\",\n size: 60\n }, color);\n })\n })\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n size: \"sm\",\n onPress: function() {\n return setShow(!show);\n },\n children: show ? \"Hide\" : \"Show\"\n })\n ]\n });\n}\n//# sourceMappingURL=AnimationsDelayDemo.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;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,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,KAA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;GACP,SAAS;GACT,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,iBAAiB,EACpF,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO,GAAG;IAC9C,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;KACxE,YAAY;MACV,UAAU;MACV,OAAO,IAAI;KACb;KACA,SAAS;KACT,OAAO;KACP,GAAG;KACH,IAAI;KACJ,SAAS;KACT,MAAM;IACR,GAAG,KAAK;GACV,CAAC,EACH,CAAC;EACH,CAAC,GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;GACjE,MAAM;GACN,SAAS,WAAW;IAClB,OAAO,QAAQ,CAAC,IAAI;GACtB;GACA,UAAU,OAAO,SAAS;EAC5B,CAAC,CACH;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationsDemo.native.js","names":[],"sources":["cjs/AnimationsDemo.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AnimationsDemo_exports = {};\n__export(AnimationsDemo_exports, {\n AnimationsDemo: () => AnimationsDemo,\n positions: () => positions\n});\nmodule.exports = __toCommonJS(AnimationsDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_logo = require(\"@tamagui/logo\");\nvar import_lucide_icons_2 = require(\"@tamagui/lucide-icons-2\");\nvar import_tamagui = require(\"tamagui\");\nfunction AnimationsDemo(props) {\n var [positionI, setPositionI] = (0, import_tamagui.useControllableState)({\n strategy: \"most-recent-wins\",\n prop: props.position,\n defaultProp: 0\n });\n var position = positions[positionI];\n var onPress = (0, import_tamagui.useEvent)(function() {\n setPositionI(function(x) {\n return (x + 1) % positions.length;\n });\n });\n var _props_animation, _props_tint;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, {\n transition: {\n preset: (_props_animation = props.animation) !== null && _props_animation !== void 0 ? _props_animation : \"bouncy\",\n properties: \"transform\"\n },\n borderColor: \"border-color\",\n borderWidth: 1,\n rounded: \"9\",\n bg: \"color-9\",\n ...position,\n onPress,\n size: 104,\n children: import_tamagui.isWeb && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.LogoIcon, {\n downscale: 0.75\n })\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n position: \"absolute\",\n b: 20,\n l: 20,\n icon: import_lucide_icons_2.Play,\n theme: (_props_tint = props.tint) !== null && _props_tint !== void 0 ? _props_tint : \"level3\",\n size: \"
|
|
1
|
+
{"version":3,"file":"AnimationsDemo.native.js","names":[],"sources":["cjs/AnimationsDemo.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AnimationsDemo_exports = {};\n__export(AnimationsDemo_exports, {\n AnimationsDemo: () => AnimationsDemo,\n positions: () => positions\n});\nmodule.exports = __toCommonJS(AnimationsDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_logo = require(\"@tamagui/logo\");\nvar import_lucide_icons_2 = require(\"@tamagui/lucide-icons-2\");\nvar import_tamagui = require(\"tamagui\");\nfunction AnimationsDemo(props) {\n var [positionI, setPositionI] = (0, import_tamagui.useControllableState)({\n strategy: \"most-recent-wins\",\n prop: props.position,\n defaultProp: 0\n });\n var position = positions[positionI];\n var onPress = (0, import_tamagui.useEvent)(function() {\n setPositionI(function(x) {\n return (x + 1) % positions.length;\n });\n });\n var _props_animation, _props_tint;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, {\n transition: {\n preset: (_props_animation = props.animation) !== null && _props_animation !== void 0 ? _props_animation : \"bouncy\",\n properties: \"transform\"\n },\n borderColor: \"border-color\",\n borderWidth: 1,\n rounded: \"9\",\n bg: \"color-9\",\n ...position,\n onPress,\n size: 104,\n children: import_tamagui.isWeb && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.LogoIcon, {\n downscale: 0.75\n })\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n position: \"absolute\",\n b: 20,\n l: 20,\n icon: import_lucide_icons_2.Play,\n theme: (_props_tint = props.tint) !== null && _props_tint !== void 0 ? _props_tint : \"level3\",\n size: \"lg\",\n circular: true,\n onPress\n })\n ]\n });\n}\nvar positions = [\n {\n x: 0,\n y: 0,\n scale: \"1 hover:1.01 press:0.9\",\n rotate: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,aAAa;CACf,CAAC;CACD,IAAI,WAAW,UAAU;CACzB,IAAI,WAAW,GAAG,eAAe,SAAQ,CAAE,WAAW;EACpD,aAAa,SAAS,GAAG;GACvB,QAAQ,IAAI,KAAK,UAAU;EAC7B,CAAC;CACH,CAAC;CACD,IAAI,kBAAkB;CACtB,OAAuB,iBAAC,GAAG,mBAAmB,KAAI,CAAE,mBAAmB,UAAU,EAC/E,UAAU,CACQ,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;EACjE,YAAY;GACV,SAAS,mBAAmB,MAAM,eAAe,QAAQ,qBAAqB,KAAK,IAAI,mBAAmB;GAC1G,YAAY;EACd;EACA,aAAa;EACb,aAAa;EACb,SAAS;EACT,IAAI;EACJ,GAAG;EACH;EACA,MAAM;EACN,UAAU,eAAe,SAAyB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,YAAY,UAAU,EAClG,WAAW,IACb,CAAC;CACH,CAAC,GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;EACjE,UAAU;EACV,GAAG;EACH,GAAG;EACH,MAAM,sBAAsB;EAC5B,QAAQ,cAAc,MAAM,UAAU,QAAQ,gBAAgB,KAAK,IAAI,cAAc;EACrF,MAAM;EACN,UAAU;EACV;CACF,CAAC,CACH,EACF,CAAC;AACH;AACA,IAAI,YAAY;CACd;EACE,GAAG;EACH,GAAG;EACH,OAAO;EACP,QAAQ;CACV;CACA;EACE,GAAG,CAAC;EACJ,GAAG,CAAC;EACJ,OAAO;EACP,QAAQ;CACV;CACA;EACE,GAAG;EACH,GAAG;EACH,OAAO;EACP,QAAQ;CACV;AACF"}
|
|
@@ -50,7 +50,7 @@ function AnimationsEnterDemo(props) {
|
|
|
50
50
|
size: 110,
|
|
51
51
|
children: props.children ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.LogoIcon, { downscale: .75 })
|
|
52
52
|
}, key), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
53
|
-
size: "
|
|
53
|
+
size: "sm",
|
|
54
54
|
mt: "4",
|
|
55
55
|
onPress: () => setKey(Math.random()),
|
|
56
56
|
children: "Re-mount"
|
|
@@ -53,7 +53,7 @@ function AnimationsEnterDemo(props) {
|
|
|
53
53
|
size: 110,
|
|
54
54
|
children: (_props_children = props.children) !== null && _props_children !== void 0 ? _props_children : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.LogoIcon, { downscale: .75 })
|
|
55
55
|
}, key), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
56
|
-
size: "
|
|
56
|
+
size: "sm",
|
|
57
57
|
mt: "4",
|
|
58
58
|
onPress: function() {
|
|
59
59
|
return setKey(Math.random());
|
|
@@ -53,7 +53,7 @@ function AnimationsEnterDemo(props) {
|
|
|
53
53
|
size: 110,
|
|
54
54
|
children: (_props_children = props.children) !== null && _props_children !== void 0 ? _props_children : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.LogoIcon, { downscale: .75 })
|
|
55
55
|
}, key), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
56
|
-
size: "
|
|
56
|
+
size: "sm",
|
|
57
57
|
mt: "4",
|
|
58
58
|
onPress: function() {
|
|
59
59
|
return setKey(Math.random());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationsEnterDemo.native.js","names":[],"sources":["cjs/AnimationsEnterDemo.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 for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AnimationsEnterDemo_exports = {};\n__export(AnimationsEnterDemo_exports, {\n AnimationsEnterDemo: () => AnimationsEnterDemo\n});\nmodule.exports = __toCommonJS(AnimationsEnterDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_logo = require(\"@tamagui/logo\");\nvar import_tamagui = require(\"tamagui\");\nvar import_useOnIntersecting = require(\"./useOnIntersecting\");\nfunction AnimationsEnterDemo(props) {\n var ref = import_react.default.useRef(null);\n var [key, setKey] = import_react.default.useState(0);\n var hasIntersected = (0, import_useOnIntersecting.useIsIntersecting)(ref, {\n once: true\n });\n if (import_tamagui.isWeb && !hasIntersected) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n ref\n });\n }\n var _props_children;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, {\n opacity: \"1 enter:0\",\n scale: \"1 enter:1.5\",\n y: \"0 enter:-10px\",\n transition: \"bouncy\",\n bg: \"color-9\",\n rounded: \"9\",\n boxShadow: \"0 4px 12px shadow-color\",\n size: 110,\n children: (_props_children = props.children) !== null && _props_children !== void 0 ? _props_children : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.LogoIcon, {\n downscale: 0.75\n })\n }, key),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n size: \"
|
|
1
|
+
{"version":3,"file":"AnimationsEnterDemo.native.js","names":[],"sources":["cjs/AnimationsEnterDemo.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 for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AnimationsEnterDemo_exports = {};\n__export(AnimationsEnterDemo_exports, {\n AnimationsEnterDemo: () => AnimationsEnterDemo\n});\nmodule.exports = __toCommonJS(AnimationsEnterDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_logo = require(\"@tamagui/logo\");\nvar import_tamagui = require(\"tamagui\");\nvar import_useOnIntersecting = require(\"./useOnIntersecting\");\nfunction AnimationsEnterDemo(props) {\n var ref = import_react.default.useRef(null);\n var [key, setKey] = import_react.default.useState(0);\n var hasIntersected = (0, import_useOnIntersecting.useIsIntersecting)(ref, {\n once: true\n });\n if (import_tamagui.isWeb && !hasIntersected) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n ref\n });\n }\n var _props_children;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, {\n opacity: \"1 enter:0\",\n scale: \"1 enter:1.5\",\n y: \"0 enter:-10px\",\n transition: \"bouncy\",\n bg: \"color-9\",\n rounded: \"9\",\n boxShadow: \"0 4px 12px shadow-color\",\n size: 110,\n children: (_props_children = props.children) !== null && _props_children !== void 0 ? _props_children : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.LogoIcon, {\n downscale: 0.75\n })\n }, key),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n size: \"sm\",\n mt: \"4\",\n onPress: function() {\n return setKey(Math.random());\n },\n children: \"Re-mount\"\n })\n ]\n });\n}\n//# sourceMappingURL=AnimationsEnterDemo.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;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;E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AU,CACQ,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;EACjE,SAAS;EACT,OAAO;EACP,GAAG;EACH,YAAY;EACZ,IAAI;EACJ,SAAS;EACT,WAAW;EACX,MAAM;EACN,WAAW,kBAAkB,MAAM,cAAc,QAAQ,oBAAoB,KAAK,IAAI,kBAAkC,iBAAC,GAAG,mBAAmB,IAAG,CAAE,YAAY,UAAU,EACxK,WAAW,IACb,CAAC;CACH,GAAG,GAAG,GACU,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;EACjE,MAAM;EACN,IAAI;EACJ,SAAS,WAAW;GAClB,OAAO,OAAO,KAAK,OAAO,CAAC;EAC7B;EACA,UAAU;CACZ,CAAC,CACH,EACF,CAAC;AACH"}
|
|
@@ -90,7 +90,7 @@ function AnimationsPresenceDemo() {
|
|
|
90
90
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
91
91
|
"aria-label": "Carousel left",
|
|
92
92
|
icon: import_lucide_icons_2.ArrowLeft,
|
|
93
|
-
size: "
|
|
93
|
+
size: "lg",
|
|
94
94
|
position: "absolute",
|
|
95
95
|
l: "4",
|
|
96
96
|
boxShadow: "0 0 10px rgba(0,0,0,0.5)",
|
|
@@ -101,7 +101,7 @@ function AnimationsPresenceDemo() {
|
|
|
101
101
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
102
102
|
"aria-label": "Carousel right",
|
|
103
103
|
icon: import_lucide_icons_2.ArrowRight,
|
|
104
|
-
size: "
|
|
104
|
+
size: "lg",
|
|
105
105
|
position: "absolute",
|
|
106
106
|
r: "4",
|
|
107
107
|
boxShadow: "0 0 10px rgba(0,0,0,0.5)",
|
|
@@ -96,7 +96,7 @@ function AnimationsPresenceDemo() {
|
|
|
96
96
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
97
97
|
"aria-label": "Carousel left",
|
|
98
98
|
icon: import_lucide_icons_2.ArrowLeft,
|
|
99
|
-
size: "
|
|
99
|
+
size: "lg",
|
|
100
100
|
position: "absolute",
|
|
101
101
|
l: "4",
|
|
102
102
|
boxShadow: "0 0 10px rgba(0,0,0,0.5)",
|
|
@@ -109,7 +109,7 @@ function AnimationsPresenceDemo() {
|
|
|
109
109
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
110
110
|
"aria-label": "Carousel right",
|
|
111
111
|
icon: import_lucide_icons_2.ArrowRight,
|
|
112
|
-
size: "
|
|
112
|
+
size: "lg",
|
|
113
113
|
position: "absolute",
|
|
114
114
|
r: "4",
|
|
115
115
|
boxShadow: "0 0 10px rgba(0,0,0,0.5)",
|
|
@@ -96,7 +96,7 @@ function AnimationsPresenceDemo() {
|
|
|
96
96
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
97
97
|
"aria-label": "Carousel left",
|
|
98
98
|
icon: import_lucide_icons_2.ArrowLeft,
|
|
99
|
-
size: "
|
|
99
|
+
size: "lg",
|
|
100
100
|
position: "absolute",
|
|
101
101
|
l: "4",
|
|
102
102
|
boxShadow: "0 0 10px rgba(0,0,0,0.5)",
|
|
@@ -109,7 +109,7 @@ function AnimationsPresenceDemo() {
|
|
|
109
109
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
110
110
|
"aria-label": "Carousel right",
|
|
111
111
|
icon: import_lucide_icons_2.ArrowRight,
|
|
112
|
-
size: "
|
|
112
|
+
size: "lg",
|
|
113
113
|
position: "absolute",
|
|
114
114
|
r: "4",
|
|
115
115
|
boxShadow: "0 0 10px rgba(0,0,0,0.5)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationsPresenceDemo.native.js","names":[],"sources":["cjs/AnimationsPresenceDemo.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 for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AnimationsPresenceDemo_exports = {};\n__export(AnimationsPresenceDemo_exports, {\n AnimationsPresenceDemo: () => AnimationsPresenceDemo,\n images: () => images\n});\nmodule.exports = __toCommonJS(AnimationsPresenceDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_animate_presence = require(\"@tamagui/animate-presence\");\nvar import_lucide_icons_2 = require(\"@tamagui/lucide-icons-2\");\nvar import_tamagui = require(\"tamagui\");\nvar import_photo1 = __toESM(require(\"@tamagui/demos/photo/photo1\"), 1);\nvar import_photo2 = __toESM(require(\"@tamagui/demos/photo/photo2\"), 1);\nvar import_photo3 = __toESM(require(\"@tamagui/demos/photo/photo3\"), 1);\nvar images = [\n import_photo1.default,\n import_photo2.default,\n import_photo3.default\n].map(function(x) {\n return x.src || x;\n});\nvar GalleryItem = (0, import_tamagui.styled)(import_tamagui.YStack, {\n z: 1,\n x: 0,\n opacity: 1,\n position: \"absolute\",\n inset: 0,\n variants: {\n // 1 = right, 0 = nowhere, -1 = left\n going: import_tamagui.styled.dynamic(function(going) {\n return {\n x: `enter:${going > 0 ? 1e3 : -1e3}px exit:${going < 0 ? 1e3 : -1e3}px`,\n opacity: \"enter:0 exit:0\",\n zIndex: \"exit:0\"\n };\n })\n }\n});\nvar wrap = function(min, max, v) {\n var rangeSize = max - min;\n return ((v - min) % rangeSize + rangeSize) % rangeSize + min;\n};\nfunction AnimationsPresenceDemo() {\n var [[page, going], setPage] = import_react.default.useState([\n 0,\n 0\n ]);\n var imageIndex = wrap(0, images.length, page);\n var paginate = function(going2) {\n setPage([\n page + going2,\n going2\n ]);\n };\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {\n overflow: \"hidden\",\n bg: \"#000\",\n position: \"relative\",\n height: 300,\n width: \"100%\",\n items: \"center\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {\n initial: false,\n custom: {\n going\n },\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GalleryItem, {\n transition: \"slow\",\n going,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Image, {\n src: images[imageIndex],\n width: 820,\n height: 300,\n objectFit: \"cover\"\n })\n }, page)\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n \"aria-label\": \"Carousel left\",\n icon: import_lucide_icons_2.ArrowLeft,\n size: \"
|
|
1
|
+
{"version":3,"file":"AnimationsPresenceDemo.native.js","names":[],"sources":["cjs/AnimationsPresenceDemo.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 for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AnimationsPresenceDemo_exports = {};\n__export(AnimationsPresenceDemo_exports, {\n AnimationsPresenceDemo: () => AnimationsPresenceDemo,\n images: () => images\n});\nmodule.exports = __toCommonJS(AnimationsPresenceDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_animate_presence = require(\"@tamagui/animate-presence\");\nvar import_lucide_icons_2 = require(\"@tamagui/lucide-icons-2\");\nvar import_tamagui = require(\"tamagui\");\nvar import_photo1 = __toESM(require(\"@tamagui/demos/photo/photo1\"), 1);\nvar import_photo2 = __toESM(require(\"@tamagui/demos/photo/photo2\"), 1);\nvar import_photo3 = __toESM(require(\"@tamagui/demos/photo/photo3\"), 1);\nvar images = [\n import_photo1.default,\n import_photo2.default,\n import_photo3.default\n].map(function(x) {\n return x.src || x;\n});\nvar GalleryItem = (0, import_tamagui.styled)(import_tamagui.YStack, {\n z: 1,\n x: 0,\n opacity: 1,\n position: \"absolute\",\n inset: 0,\n variants: {\n // 1 = right, 0 = nowhere, -1 = left\n going: import_tamagui.styled.dynamic(function(going) {\n return {\n x: `enter:${going > 0 ? 1e3 : -1e3}px exit:${going < 0 ? 1e3 : -1e3}px`,\n opacity: \"enter:0 exit:0\",\n zIndex: \"exit:0\"\n };\n })\n }\n});\nvar wrap = function(min, max, v) {\n var rangeSize = max - min;\n return ((v - min) % rangeSize + rangeSize) % rangeSize + min;\n};\nfunction AnimationsPresenceDemo() {\n var [[page, going], setPage] = import_react.default.useState([\n 0,\n 0\n ]);\n var imageIndex = wrap(0, images.length, page);\n var paginate = function(going2) {\n setPage([\n page + going2,\n going2\n ]);\n };\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {\n overflow: \"hidden\",\n bg: \"#000\",\n position: \"relative\",\n height: 300,\n width: \"100%\",\n items: \"center\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {\n initial: false,\n custom: {\n going\n },\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GalleryItem, {\n transition: \"slow\",\n going,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Image, {\n src: images[imageIndex],\n width: 820,\n height: 300,\n objectFit: \"cover\"\n })\n }, page)\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n \"aria-label\": \"Carousel left\",\n icon: import_lucide_icons_2.ArrowLeft,\n size: \"lg\",\n position: \"absolute\",\n l: \"4\",\n boxShadow: \"0 0 10px rgba(0,0,0,0.5)\",\n z: 100,\n circular: true,\n onPress: function() {\n return paginate(-1);\n }\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n \"aria-label\": \"Carousel right\",\n icon: import_lucide_icons_2.ArrowRight,\n size: \"lg\",\n position: \"absolute\",\n r: \"4\",\n boxShadow: \"0 0 10px rgba(0,0,0,0.5)\",\n z: 100,\n circular: true,\n onPress: function() {\n return paginate(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QAAQ,EACN,MACF;IACA,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,aAAa;KACjE,YAAY;KACZ;KACA,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,OAAO;MAC1E,KAAK,OAAO;MACZ,OAAO;MACP,QAAQ;MACR,WAAW;KACb,CAAC;IACH,GAAG,IAAI;GACT,CAAC;GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;IACjE,cAAc;IACd,MAAM,sBAAsB;IAC5B,MAAM;IACN,UAAU;IACV,GAAG;IACH,WAAW;IACX,GAAG;IACH,UAAU;IACV,SAAS,WAAW;KAClB,OAAO,SAAS,CAAC,CAAC;IACpB;GACF,CAAC;GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;IACjE,cAAc;IACd,MAAM,sBAAsB;IAC5B,MAAM;IACN,UAAU;IACV,GAAG;IACH,WAAW;IACX,GAAG;IACH,UAAU;IACV,SAAS,WAAW;KAClB,OAAO,SAAS,CAAC;IACnB;GACF,CAAC;EACH;CACF,CAAC;AACH"}
|
|
@@ -43,7 +43,7 @@ function BuildAButtonDemo() {
|
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
45
45
|
y: 35,
|
|
46
|
-
size: "
|
|
46
|
+
size: "xs",
|
|
47
47
|
...outlined,
|
|
48
48
|
subTheme: "level2",
|
|
49
49
|
borderWidth: 1
|
|
@@ -58,26 +58,26 @@ function BuildAButtonDemo() {
|
|
|
58
58
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Hand, {})
|
|
59
59
|
}),
|
|
60
60
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
61
|
-
size: "
|
|
61
|
+
size: "xl",
|
|
62
62
|
subTheme: "level3"
|
|
63
63
|
}),
|
|
64
64
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
65
|
-
size: "
|
|
65
|
+
size: "xl",
|
|
66
66
|
subTheme: "level3",
|
|
67
67
|
...outlined
|
|
68
68
|
}),
|
|
69
69
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
70
|
-
size: "
|
|
70
|
+
size: "xl",
|
|
71
71
|
subTheme: "level3",
|
|
72
72
|
iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Drumstick, {}),
|
|
73
73
|
...outlined
|
|
74
74
|
}),
|
|
75
75
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
76
|
-
size: "
|
|
76
|
+
size: "xl",
|
|
77
77
|
subTheme: "level2"
|
|
78
78
|
}),
|
|
79
79
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
80
|
-
size: "
|
|
80
|
+
size: "xl",
|
|
81
81
|
subTheme: "level3",
|
|
82
82
|
...outlined,
|
|
83
83
|
rounded: 0
|
|
@@ -45,7 +45,7 @@ function BuildAButtonDemo() {
|
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
47
47
|
y: 35,
|
|
48
|
-
size: "
|
|
48
|
+
size: "xs",
|
|
49
49
|
...outlined,
|
|
50
50
|
subTheme: "level2",
|
|
51
51
|
borderWidth: 1
|
|
@@ -60,26 +60,26 @@ function BuildAButtonDemo() {
|
|
|
60
60
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Hand, {})
|
|
61
61
|
}),
|
|
62
62
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
63
|
-
size: "
|
|
63
|
+
size: "xl",
|
|
64
64
|
subTheme: "level3"
|
|
65
65
|
}),
|
|
66
66
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
67
|
-
size: "
|
|
67
|
+
size: "xl",
|
|
68
68
|
subTheme: "level3",
|
|
69
69
|
...outlined
|
|
70
70
|
}),
|
|
71
71
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
72
|
-
size: "
|
|
72
|
+
size: "xl",
|
|
73
73
|
subTheme: "level3",
|
|
74
74
|
iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Drumstick, {}),
|
|
75
75
|
...outlined
|
|
76
76
|
}),
|
|
77
77
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
78
|
-
size: "
|
|
78
|
+
size: "xl",
|
|
79
79
|
subTheme: "level2"
|
|
80
80
|
}),
|
|
81
81
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
82
|
-
size: "
|
|
82
|
+
size: "xl",
|
|
83
83
|
subTheme: "level3",
|
|
84
84
|
...outlined,
|
|
85
85
|
rounded: 0
|
|
@@ -45,7 +45,7 @@ function BuildAButtonDemo() {
|
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
47
47
|
y: 35,
|
|
48
|
-
size: "
|
|
48
|
+
size: "xs",
|
|
49
49
|
...outlined,
|
|
50
50
|
subTheme: "level2",
|
|
51
51
|
borderWidth: 1
|
|
@@ -60,26 +60,26 @@ function BuildAButtonDemo() {
|
|
|
60
60
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Hand, {})
|
|
61
61
|
}),
|
|
62
62
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
63
|
-
size: "
|
|
63
|
+
size: "xl",
|
|
64
64
|
subTheme: "level3"
|
|
65
65
|
}),
|
|
66
66
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
67
|
-
size: "
|
|
67
|
+
size: "xl",
|
|
68
68
|
subTheme: "level3",
|
|
69
69
|
...outlined
|
|
70
70
|
}),
|
|
71
71
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
72
|
-
size: "
|
|
72
|
+
size: "xl",
|
|
73
73
|
subTheme: "level3",
|
|
74
74
|
iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Drumstick, {}),
|
|
75
75
|
...outlined
|
|
76
76
|
}),
|
|
77
77
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
78
|
-
size: "
|
|
78
|
+
size: "xl",
|
|
79
79
|
subTheme: "level2"
|
|
80
80
|
}),
|
|
81
81
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {
|
|
82
|
-
size: "
|
|
82
|
+
size: "xl",
|
|
83
83
|
subTheme: "level3",
|
|
84
84
|
...outlined,
|
|
85
85
|
rounded: 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildAButtonDemo.native.js","names":[],"sources":["cjs/BuildAButtonDemo.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar BuildAButtonDemo_exports = {};\n__export(BuildAButtonDemo_exports, {\n BuildAButtonDemo: () => BuildAButtonDemo\n});\nmodule.exports = __toCommonJS(BuildAButtonDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_lucide_icons_2 = require(\"@tamagui/lucide-icons-2\");\nvar import_tamagui = require(\"tamagui\");\nvar outlined = {\n bg: \"transparent hover:transparent\",\n borderWidth: 2,\n borderColor: \"background hover:background-press\",\n rounded: \"10\"\n};\nfunction BuildAButtonDemo() {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {\n maxH: 200,\n y: -100,\n x: -40,\n rotate: \"-10deg\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n y: 35,\n size: \"
|
|
1
|
+
{"version":3,"file":"BuildAButtonDemo.native.js","names":[],"sources":["cjs/BuildAButtonDemo.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar BuildAButtonDemo_exports = {};\n__export(BuildAButtonDemo_exports, {\n BuildAButtonDemo: () => BuildAButtonDemo\n});\nmodule.exports = __toCommonJS(BuildAButtonDemo_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_lucide_icons_2 = require(\"@tamagui/lucide-icons-2\");\nvar import_tamagui = require(\"tamagui\");\nvar outlined = {\n bg: \"transparent hover:transparent\",\n borderWidth: 2,\n borderColor: \"background hover:background-press\",\n rounded: \"10\"\n};\nfunction BuildAButtonDemo() {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {\n maxH: 200,\n y: -100,\n x: -40,\n rotate: \"-10deg\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n y: 35,\n size: \"xs\",\n ...outlined,\n subTheme: \"level2\",\n borderWidth: 1\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n y: 30\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n y: -50,\n ...outlined\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n ...outlined,\n icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Hand, {})\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n size: \"xl\",\n subTheme: \"level3\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n size: \"xl\",\n subTheme: \"level3\",\n ...outlined\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n size: \"xl\",\n subTheme: \"level3\",\n iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Drumstick, {}),\n ...outlined\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n size: \"xl\",\n subTheme: \"level2\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, {\n size: \"xl\",\n subTheme: \"level3\",\n ...outlined,\n rounded: 0\n })\n ]\n })\n });\n}\nfunction ButtonCol(props) {\n var { subTheme, ...buttonProps } = props;\n var subThemeSuffix = subTheme ? `_${subTheme}` : \"\";\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n p: \"2\",\n gap: \"3\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n theme: subTheme,\n ...buttonProps,\n children: \"Hello\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n theme: \"orange\" + subThemeSuffix,\n ...buttonProps,\n children: \"Hello\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n theme: \"yellow\" + subThemeSuffix,\n ...buttonProps,\n children: \"Hello\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n theme: \"green\" + subThemeSuffix,\n ...buttonProps,\n children: \"Hello\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n theme: \"blue\" + subThemeSuffix,\n ...buttonProps,\n children: \"Hello\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n theme: \"purple\" + subThemeSuffix,\n ...buttonProps,\n children: \"Hello\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n theme: \"pink\" + subThemeSuffix,\n ...buttonProps,\n children: \"Hello\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {\n theme: \"red\" + subThemeSuffix,\n ...buttonProps,\n children: \"Hello\"\n })\n ]\n });\n}\n//# sourceMappingURL=BuildAButtonDemo.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI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G;IACH,UAAU;GACZ,CAAC;GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;IACjE,OAAO,SAAS;IAChB,GAAG;IACH,UAAU;GACZ,CAAC;GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;IACjE,OAAO,WAAW;IAClB,GAAG;IACH,UAAU;GACZ,CAAC;GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;IACjE,OAAO,SAAS;IAChB,GAAG;IACH,UAAU;GACZ,CAAC;GACe,iBAAC,GAAG,mBAAmB,IAAG,CAAE,eAAe,QAAQ;IACjE,OAAO,QAAQ;IACf,GAAG;IACH,UAAU;GACZ,CAAC;EACH;CACF,CAAC;AACH"}
|
package/dist/cjs/ButtonDemo.cjs
CHANGED
|
@@ -33,18 +33,18 @@ function ButtonDemo() {
|
|
|
33
33
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
34
34
|
self: "center",
|
|
35
35
|
icon: import_lucide_icons_2.Airplay,
|
|
36
|
-
size: "
|
|
36
|
+
size: "xl",
|
|
37
37
|
children: "Large"
|
|
38
38
|
}),
|
|
39
39
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
40
40
|
gap: "2",
|
|
41
41
|
justify: "center",
|
|
42
42
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
43
|
-
size: "
|
|
43
|
+
size: "sm",
|
|
44
44
|
theme: "accent",
|
|
45
45
|
children: "Active"
|
|
46
46
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
47
|
-
size: "
|
|
47
|
+
size: "sm",
|
|
48
48
|
variant: "outlined",
|
|
49
49
|
children: "Outlined"
|
|
50
50
|
})]
|
|
@@ -55,7 +55,7 @@ function ButtonDemo() {
|
|
|
55
55
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
56
56
|
name: "accent",
|
|
57
57
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Button, {
|
|
58
|
-
size: "
|
|
58
|
+
size: "sm",
|
|
59
59
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button.Icon, {
|
|
60
60
|
size: 14,
|
|
61
61
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Activity, {})
|
|
@@ -66,19 +66,19 @@ function ButtonDemo() {
|
|
|
66
66
|
})
|
|
67
67
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
68
68
|
iconAfter: import_lucide_icons_2.Activity,
|
|
69
|
-
size: "
|
|
69
|
+
size: "sm",
|
|
70
70
|
children: "iconAfter"
|
|
71
71
|
})]
|
|
72
72
|
}),
|
|
73
73
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
74
74
|
width: "50%",
|
|
75
|
-
size: "
|
|
75
|
+
size: "xs",
|
|
76
76
|
disabled: true,
|
|
77
77
|
opacity: .5,
|
|
78
78
|
children: "disabled"
|
|
79
79
|
}) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
80
80
|
width: "50%",
|
|
81
|
-
size: "
|
|
81
|
+
size: "xs",
|
|
82
82
|
children: "plain"
|
|
83
83
|
}) })] })
|
|
84
84
|
]
|
|
@@ -35,18 +35,18 @@ function ButtonDemo() {
|
|
|
35
35
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
36
36
|
self: "center",
|
|
37
37
|
icon: import_lucide_icons_2.Airplay,
|
|
38
|
-
size: "
|
|
38
|
+
size: "xl",
|
|
39
39
|
children: "Large"
|
|
40
40
|
}),
|
|
41
41
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
42
42
|
gap: "2",
|
|
43
43
|
justify: "center",
|
|
44
44
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
45
|
-
size: "
|
|
45
|
+
size: "sm",
|
|
46
46
|
theme: "accent",
|
|
47
47
|
children: "Active"
|
|
48
48
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
49
|
-
size: "
|
|
49
|
+
size: "sm",
|
|
50
50
|
variant: "outlined",
|
|
51
51
|
children: "Outlined"
|
|
52
52
|
})]
|
|
@@ -57,7 +57,7 @@ function ButtonDemo() {
|
|
|
57
57
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
58
58
|
name: "accent",
|
|
59
59
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Button, {
|
|
60
|
-
size: "
|
|
60
|
+
size: "sm",
|
|
61
61
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button.Icon, {
|
|
62
62
|
size: 14,
|
|
63
63
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Activity, {})
|
|
@@ -68,19 +68,19 @@ function ButtonDemo() {
|
|
|
68
68
|
})
|
|
69
69
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
70
70
|
iconAfter: import_lucide_icons_2.Activity,
|
|
71
|
-
size: "
|
|
71
|
+
size: "sm",
|
|
72
72
|
children: "iconAfter"
|
|
73
73
|
})]
|
|
74
74
|
}),
|
|
75
75
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
76
76
|
width: "50%",
|
|
77
|
-
size: "
|
|
77
|
+
size: "xs",
|
|
78
78
|
disabled: true,
|
|
79
79
|
opacity: .5,
|
|
80
80
|
children: "disabled"
|
|
81
81
|
}) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
82
82
|
width: "50%",
|
|
83
|
-
size: "
|
|
83
|
+
size: "xs",
|
|
84
84
|
children: "plain"
|
|
85
85
|
}) })] })
|
|
86
86
|
]
|
|
@@ -35,18 +35,18 @@ function ButtonDemo() {
|
|
|
35
35
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
36
36
|
self: "center",
|
|
37
37
|
icon: import_lucide_icons_2.Airplay,
|
|
38
|
-
size: "
|
|
38
|
+
size: "xl",
|
|
39
39
|
children: "Large"
|
|
40
40
|
}),
|
|
41
41
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
42
42
|
gap: "2",
|
|
43
43
|
justify: "center",
|
|
44
44
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
45
|
-
size: "
|
|
45
|
+
size: "sm",
|
|
46
46
|
theme: "accent",
|
|
47
47
|
children: "Active"
|
|
48
48
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
49
|
-
size: "
|
|
49
|
+
size: "sm",
|
|
50
50
|
variant: "outlined",
|
|
51
51
|
children: "Outlined"
|
|
52
52
|
})]
|
|
@@ -57,7 +57,7 @@ function ButtonDemo() {
|
|
|
57
57
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
58
58
|
name: "accent",
|
|
59
59
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Button, {
|
|
60
|
-
size: "
|
|
60
|
+
size: "sm",
|
|
61
61
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button.Icon, {
|
|
62
62
|
size: 14,
|
|
63
63
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons_2.Activity, {})
|
|
@@ -68,19 +68,19 @@ function ButtonDemo() {
|
|
|
68
68
|
})
|
|
69
69
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
70
70
|
iconAfter: import_lucide_icons_2.Activity,
|
|
71
|
-
size: "
|
|
71
|
+
size: "sm",
|
|
72
72
|
children: "iconAfter"
|
|
73
73
|
})]
|
|
74
74
|
}),
|
|
75
75
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
76
76
|
width: "50%",
|
|
77
|
-
size: "
|
|
77
|
+
size: "xs",
|
|
78
78
|
disabled: true,
|
|
79
79
|
opacity: .5,
|
|
80
80
|
children: "disabled"
|
|
81
81
|
}) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
|
|
82
82
|
width: "50%",
|
|
83
|
-
size: "
|
|
83
|
+
size: "xs",
|
|
84
84
|
children: "plain"
|
|
85
85
|
}) })] })
|
|
86
86
|
]
|