@tamagui/demos 1.15.24 → 1.15.25

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.
Files changed (100) hide show
  1. package/package.json +18 -18
  2. package/dist/cjs/AccordionDemo.js +0 -42
  3. package/dist/cjs/AccordionDemo.js.map +0 -7
  4. package/dist/cjs/DrawerDemo.js +0 -79
  5. package/dist/cjs/DrawerDemo.js.map +0 -7
  6. package/dist/cjs/FeatherIconsDemo.js +0 -67
  7. package/dist/cjs/FeatherIconsDemo.js.map +0 -7
  8. package/dist/cjs/MenuDemo.js +0 -62
  9. package/dist/cjs/MenuDemo.js.map +0 -7
  10. package/dist/cjs/PopperDemo.js +0 -111
  11. package/dist/cjs/PopperDemo.js.map +0 -7
  12. package/dist/cjs/TabsAnimatedDemo.js +0 -167
  13. package/dist/cjs/TabsAnimatedDemo.js.map +0 -7
  14. package/dist/cjs/TabsHighlightedDemo.js +0 -184
  15. package/dist/cjs/TabsHighlightedDemo.js.map +0 -7
  16. package/dist/cjs/TabsUnderlinedDemo.js +0 -176
  17. package/dist/cjs/TabsUnderlinedDemo.js.map +0 -7
  18. package/dist/cjs/TamaguiLogo.js +0 -127
  19. package/dist/cjs/TamaguiLogo.js.map +0 -7
  20. package/dist/cjs/fixtures/zstack.js +0 -2
  21. package/dist/cjs/fixtures/zstack.js.map +0 -7
  22. package/dist/cjs/snapshots/zstack.js +0 -48
  23. package/dist/cjs/snapshots/zstack.js.map +0 -7
  24. package/dist/cjs/tests/zstack.js +0 -48
  25. package/dist/cjs/tests/zstack.js.map +0 -7
  26. package/dist/esm/AccordionDemo.js +0 -18
  27. package/dist/esm/AccordionDemo.js.map +0 -7
  28. package/dist/esm/AccordionDemo.mjs +0 -18
  29. package/dist/esm/AccordionDemo.mjs.map +0 -7
  30. package/dist/esm/DrawerDemo.js +0 -55
  31. package/dist/esm/DrawerDemo.js.map +0 -7
  32. package/dist/esm/FeatherIconsDemo.js +0 -33
  33. package/dist/esm/FeatherIconsDemo.js.map +0 -7
  34. package/dist/esm/FeatherIconsDemo.mjs +0 -33
  35. package/dist/esm/FeatherIconsDemo.mjs.map +0 -7
  36. package/dist/esm/MenuDemo.js +0 -38
  37. package/dist/esm/MenuDemo.js.map +0 -7
  38. package/dist/esm/PopperDemo.js +0 -97
  39. package/dist/esm/PopperDemo.js.map +0 -7
  40. package/dist/esm/TabsAnimatedDemo.js +0 -143
  41. package/dist/esm/TabsAnimatedDemo.js.map +0 -7
  42. package/dist/esm/TabsAnimatedDemo.mjs +0 -143
  43. package/dist/esm/TabsAnimatedDemo.mjs.map +0 -7
  44. package/dist/esm/TabsHighlightedDemo.js +0 -168
  45. package/dist/esm/TabsHighlightedDemo.js.map +0 -7
  46. package/dist/esm/TabsHighlightedDemo.mjs +0 -168
  47. package/dist/esm/TabsHighlightedDemo.mjs.map +0 -7
  48. package/dist/esm/TabsUnderlinedDemo.js +0 -160
  49. package/dist/esm/TabsUnderlinedDemo.js.map +0 -7
  50. package/dist/esm/TabsUnderlinedDemo.mjs +0 -160
  51. package/dist/esm/TabsUnderlinedDemo.mjs.map +0 -7
  52. package/dist/esm/TamaguiLogo.js +0 -96
  53. package/dist/esm/TamaguiLogo.js.map +0 -7
  54. package/dist/esm/fixtures/zstack.js +0 -1
  55. package/dist/esm/fixtures/zstack.js.map +0 -7
  56. package/dist/esm/snapshots/zstack.js +0 -24
  57. package/dist/esm/snapshots/zstack.js.map +0 -7
  58. package/dist/esm/tests/zstack.js +0 -24
  59. package/dist/esm/tests/zstack.js.map +0 -7
  60. package/dist/jsx/AccordionDemo.js +0 -17
  61. package/dist/jsx/AccordionDemo.js.map +0 -7
  62. package/dist/jsx/AccordionDemo.mjs +0 -17
  63. package/dist/jsx/AccordionDemo.mjs.map +0 -7
  64. package/dist/jsx/DrawerDemo.js +0 -18
  65. package/dist/jsx/DrawerDemo.js.map +0 -7
  66. package/dist/jsx/FeatherIconsDemo.js +0 -32
  67. package/dist/jsx/FeatherIconsDemo.js.map +0 -7
  68. package/dist/jsx/FeatherIconsDemo.mjs +0 -32
  69. package/dist/jsx/FeatherIconsDemo.mjs.map +0 -7
  70. package/dist/jsx/MenuDemo.js +0 -15
  71. package/dist/jsx/MenuDemo.js.map +0 -7
  72. package/dist/jsx/PopperDemo.js +0 -41
  73. package/dist/jsx/PopperDemo.js.map +0 -7
  74. package/dist/jsx/TabsAnimatedDemo.js +0 -114
  75. package/dist/jsx/TabsAnimatedDemo.js.map +0 -7
  76. package/dist/jsx/TabsAnimatedDemo.mjs +0 -114
  77. package/dist/jsx/TabsAnimatedDemo.mjs.map +0 -7
  78. package/dist/jsx/TabsHighlightedDemo.js +0 -137
  79. package/dist/jsx/TabsHighlightedDemo.js.map +0 -7
  80. package/dist/jsx/TabsHighlightedDemo.mjs +0 -137
  81. package/dist/jsx/TabsHighlightedDemo.mjs.map +0 -7
  82. package/dist/jsx/TabsUnderlinedDemo.js +0 -133
  83. package/dist/jsx/TabsUnderlinedDemo.js.map +0 -7
  84. package/dist/jsx/TabsUnderlinedDemo.mjs +0 -133
  85. package/dist/jsx/TabsUnderlinedDemo.mjs.map +0 -7
  86. package/dist/jsx/TamaguiLogo.js +0 -42
  87. package/dist/jsx/TamaguiLogo.js.map +0 -7
  88. package/dist/jsx/fixtures/zstack.js +0 -1
  89. package/dist/jsx/fixtures/zstack.js.map +0 -7
  90. package/dist/jsx/snapshots/zstack.js +0 -11
  91. package/dist/jsx/snapshots/zstack.js.map +0 -7
  92. package/dist/jsx/tests/zstack.js +0 -11
  93. package/dist/jsx/tests/zstack.js.map +0 -7
  94. package/types/AccordionDemo.d.ts.map +0 -1
  95. package/types/DrawerDemo.d.ts.map +0 -1
  96. package/types/FeatherIconsDemo.d.ts.map +0 -1
  97. package/types/MenuDemo.d.ts.map +0 -1
  98. package/types/PopperDemo.d.ts.map +0 -1
  99. package/types/TabsHighlightedDemo.d.ts.map +0 -1
  100. package/types/TabsUnderlinedDemo.d.ts.map +0 -1
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/TabsAnimatedDemo.tsx"],
4
- "sourcesContent": ["import { useState } from 'react'\nimport { AnimatePresence, H5, Tabs, XStack, YStack } from 'tamagui'\n\nexport function TabsAnimatedDemo() {\n return (\n <XStack maxHeight=\"100%\" maxWidth=\"100%\" justifyContent=\"flex-start\">\n <XStack space=\"$3\" px=\"$8\">\n <UnderlineTabs />\n <HighlightTabs />\n </XStack>\n </XStack>\n )\n}\n\nconst UnderlineTabs = () => {\n const [currentTab, setCurrentTab] = useState('tab1')\n const [direction, setDirection] = useState<-1 | 0 | 1>(0)\n\n return (\n <Tabs\n value={currentTab}\n onValueChange={setCurrentTab}\n onDirectionChange={setDirection}\n orientation=\"vertical\"\n width={300}\n br=\"$4\"\n ai=\"center\"\n >\n <YStack borderColor=\"$color3\" borderRightWidth=\"$0.5\" mr=\"$2\">\n <YStack>\n <Tabs.RovingIndicator\n highlightMode=\"hoverOrFocus\"\n width=\"$0.5\"\n right={0}\n animation=\"100ms\"\n />\n <Tabs.RovingIndicator\n highlightMode=\"select\"\n width=\"$0.5\"\n right={0}\n animation=\"100ms\"\n />\n <Tabs.List aria-label=\"Manage your account\" flexDirection=\"column\">\n <Tabs.Trigger unstyled color=\"$color12\" value=\"tab1\">\n Profile\n </Tabs.Trigger>\n <Tabs.Trigger unstyled color=\"$color12\" value=\"tab2\">\n Connections\n </Tabs.Trigger>\n <Tabs.Trigger unstyled color=\"$color12\" value=\"tab3\">\n Notifications\n </Tabs.Trigger>\n </Tabs.List>\n </YStack>\n </YStack>\n <AnimatePresence exitBeforeEnter>\n <Tabs.Content\n value={currentTab}\n key={currentTab}\n forceMount\n p=\"$2\"\n animation=\"100ms\"\n o={1}\n y={0}\n f={1}\n enterStyle={{\n ...(direction === -1 ? { y: -25 } : {}),\n ...(direction === 1 ? { y: 25 } : {}),\n opacity: 0,\n }}\n exitStyle={{\n ...(direction === -1 ? { y: 25 } : {}),\n ...(direction === 1 ? { y: -25 } : {}),\n opacity: 0,\n }}\n >\n <H5 ta=\"center\">{currentTab}</H5>\n </Tabs.Content>\n </AnimatePresence>\n </Tabs>\n )\n}\n\nconst HighlightTabs = () => {\n const [currentTab, setCurrentTab] = useState('tab1')\n const [direction, setDirection] = useState<-1 | 0 | 1>(0)\n\n return (\n <Tabs\n value={currentTab}\n onValueChange={setCurrentTab}\n onDirectionChange={setDirection}\n orientation=\"horizontal\"\n br=\"$4\"\n flexDirection=\"column\"\n >\n <YStack>\n <Tabs.RovingIndicator\n highlightMode=\"hoverOrFocus\"\n borderRadius=\"$4\"\n animation=\"100ms\"\n />\n <Tabs.RovingIndicator\n highlightMode=\"select\"\n borderRadius=\"$4\"\n animation=\"100ms\"\n />\n <Tabs.List aria-label=\"Manage your account\">\n <Tabs.Trigger unstyled color=\"$color12\" value=\"tab1\">\n Profile\n </Tabs.Trigger>\n <Tabs.Trigger unstyled color=\"$color12\" value=\"tab2\">\n Connections\n </Tabs.Trigger>\n <Tabs.Trigger unstyled color=\"$color12\" value=\"tab3\">\n Notifications\n </Tabs.Trigger>\n </Tabs.List>\n </YStack>\n <AnimatePresence exitBeforeEnter>\n <Tabs.Content\n value={currentTab}\n key={currentTab}\n forceMount\n p=\"$2\"\n animation=\"100ms\"\n o={1}\n x={0}\n enterStyle={{\n ...(direction === -1 ? { x: -25 } : {}),\n ...(direction === 1 ? { x: 25 } : {}),\n opacity: 0,\n }}\n exitStyle={{\n ...(direction === -1 ? { x: 25 } : {}),\n ...(direction === 1 ? { x: -25 } : {}),\n opacity: 0,\n }}\n >\n <H5 ta=\"center\">{currentTab}</H5>\n </Tabs.Content>\n </AnimatePresence>\n </Tabs>\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMM;AANN,mBAAyB;AACzB,qBAA0D;AAEnD,SAAS,mBAAmB;AACjC,SACE,4CAAC,yBAAO,WAAU,QAAO,UAAS,QAAO,gBAAe,cACtD,uDAAC,yBAAO,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AO,2BAErD;AAAA,aACF;AAAA,WACF;AAAA,QACA,4CAAC,kCAAgB,iBAAe,MAC9B;AAAA,UAAC,oBAAK;AAAA,UAAL;AAAA,YACC,OAAO;AAAA,YAEP,YAAU;AAAA,YACV,GAAE;AAAA,YACF,WAAU;AAAA,YACV,GAAG;AAAA,YACH,GAAG;AAAA,YACH,YAAY;AAAA,cACV,GAAI,cAAc,KAAK,EAAE,GAAG,IAAI,IAAI,CAAC;AAAA,cACrC,GAAI,cAAc,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;AAAA,cACnC,SAAS;AAAA,YACX;AAAA,YACA,WAAW;AAAA,cACT,GAAI,cAAc,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;AAAA,cACpC,GAAI,cAAc,IAAI,EAAE,GAAG,IAAI,IAAI,CAAC;AAAA,cACpC,SAAS;AAAA,YACX;AAAA,YAEA,sDAAC,qBAAG,IAAG,UAAU,sBAAW;AAAA;AAAA,UAjBvB;AAAA,QAkBP,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;",
6
- "names": []
7
- }
@@ -1,184 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var TabsHighlightedDemo_exports = {};
20
- __export(TabsHighlightedDemo_exports, {
21
- TabsHighlightedDemo: () => TabsHighlightedDemo
22
- });
23
- module.exports = __toCommonJS(TabsHighlightedDemo_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_react = require("react");
26
- var import_tamagui = require("tamagui");
27
- function TabsHighlightedDemo() {
28
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, { maxHeight: "100%", maxWidth: "100%", justifyContent: "flex-start", px: "$4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HighlightTabs, {}) });
29
- }
30
- const TabsRovingIndicator = (0, import_tamagui.styled)(import_tamagui.Stack, {
31
- name: "TabsRovingIndicator",
32
- variants: {
33
- active: {
34
- true: {
35
- backgroundColor: "$color8"
36
- }
37
- },
38
- variants: {
39
- active: {
40
- true: {
41
- backgroundColor: "$color8"
42
- }
43
- },
44
- enter: {
45
- true: {
46
- opacity: 0
47
- }
48
- },
49
- exit: {
50
- true: {
51
- opacity: 0
52
- }
53
- }
54
- }
55
- },
56
- defaultVariants: {
57
- position: "absolute",
58
- backgroundColor: "$color5",
59
- opacity: 1,
60
- animation: "100ms",
61
- borderRadius: "$4"
62
- }
63
- });
64
- const AnimatedYStack = (0, import_tamagui.styled)(import_tamagui.YStack, {
65
- variants: {
66
- isLeft: { true: { x: -25, opacity: 0 } },
67
- isRight: { true: { x: 25, opacity: 0 } }
68
- }
69
- });
70
- const HighlightTabs = () => {
71
- const [currentTab, setCurrentTab] = (0, import_react.useState)("tab1");
72
- const [focusIndicatorLayout, setFocusIndicatorLayout] = (0, import_react.useState)(null);
73
- const [hoverIndicatorLayout, setHoverIndicatorLayout] = (0, import_react.useState)(null);
74
- const [selectionIndicatorLayout, setSelectionIndicatorLayout] = (0, import_react.useState)(null);
75
- const prevSelectionIndicatorLayout = (0, import_react.useRef)(null);
76
- const handleUpdateSelectionIndicator = (newSize) => {
77
- prevSelectionIndicatorLayout.current = selectionIndicatorLayout;
78
- setSelectionIndicatorLayout(newSize);
79
- };
80
- const intentIndicatorLayout = hoverIndicatorLayout || focusIndicatorLayout;
81
- const direction = (0, import_react.useMemo)(() => {
82
- if (!selectionIndicatorLayout || !prevSelectionIndicatorLayout.current || selectionIndicatorLayout.x === prevSelectionIndicatorLayout.current.x) {
83
- return 0;
84
- }
85
- return selectionIndicatorLayout.x > prevSelectionIndicatorLayout.current.x ? 1 : -1;
86
- }, [selectionIndicatorLayout]);
87
- const enterVariant = direction === 1 ? "isLeft" : direction === -1 ? "isRight" : void 0;
88
- const exitVariant = direction === 1 ? "isRight" : direction === -1 ? "isLeft" : void 0;
89
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
90
- import_tamagui.Tabs,
91
- {
92
- value: currentTab,
93
- onValueChange: setCurrentTab,
94
- orientation: "horizontal",
95
- br: "$4",
96
- height: 150,
97
- flexDirection: "column",
98
- activationMode: "manual",
99
- children: [
100
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
101
- import_tamagui.Tabs.List,
102
- {
103
- scrollable: true,
104
- loop: false,
105
- "aria-label": "Manage your account",
106
- disablePassBorderRadius: true,
107
- children: [
108
- intentIndicatorLayout && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
109
- TabsRovingIndicator,
110
- {
111
- width: intentIndicatorLayout.width,
112
- height: intentIndicatorLayout.height,
113
- x: intentIndicatorLayout.x,
114
- y: intentIndicatorLayout.y
115
- }
116
- ),
117
- selectionIndicatorLayout && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
118
- TabsRovingIndicator,
119
- {
120
- theme: "active",
121
- active: true,
122
- width: selectionIndicatorLayout.width,
123
- height: selectionIndicatorLayout.height,
124
- x: selectionIndicatorLayout.x,
125
- y: selectionIndicatorLayout.y
126
- }
127
- ),
128
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
129
- import_tamagui.Tabs.Trigger,
130
- {
131
- unstyled: true,
132
- color: "$color12",
133
- value: "tab1",
134
- onSelectedLayoutChange: handleUpdateSelectionIndicator,
135
- onHoveredLayoutChange: setHoverIndicatorLayout,
136
- onFocusedLayoutChange: setFocusIndicatorLayout,
137
- children: "Profile"
138
- }
139
- ),
140
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
141
- import_tamagui.Tabs.Trigger,
142
- {
143
- unstyled: true,
144
- color: "$color12",
145
- value: "tab2",
146
- onSelectedLayoutChange: handleUpdateSelectionIndicator,
147
- onHoveredLayoutChange: setHoverIndicatorLayout,
148
- onFocusedLayoutChange: setFocusIndicatorLayout,
149
- children: "Connections"
150
- }
151
- ),
152
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
153
- import_tamagui.Tabs.Trigger,
154
- {
155
- unstyled: true,
156
- color: "$color12",
157
- value: "tab3",
158
- onSelectedLayoutChange: handleUpdateSelectionIndicator,
159
- onHoveredLayoutChange: setHoverIndicatorLayout,
160
- onFocusedLayoutChange: setFocusIndicatorLayout,
161
- children: "Notifications"
162
- }
163
- )
164
- ]
165
- }
166
- ),
167
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
168
- import_tamagui.AnimatePresence,
169
- {
170
- exitBeforeEnter: true,
171
- enterVariant,
172
- exitVariant,
173
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AnimatedYStack, { animation: "100ms", x: 0, o: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Content, { value: currentTab, forceMount: true, p: "$2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { ta: "center", children: currentTab }) }) }, currentTab)
174
- }
175
- )
176
- ]
177
- }
178
- );
179
- };
180
- // Annotate the CommonJS export names for ESM import in node:
181
- 0 && (module.exports = {
182
- TabsHighlightedDemo
183
- });
184
- //# sourceMappingURL=TabsHighlightedDemo.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/TabsHighlightedDemo.tsx"],
4
- "sourcesContent": ["import { useMemo, useRef, useState } from 'react'\nimport {\n AnimatePresence,\n H5,\n Stack,\n TabTriggerLayout,\n Tabs,\n XStack,\n YStack,\n styled,\n} from 'tamagui'\n\nexport function TabsHighlightedDemo() {\n return (\n <XStack maxHeight=\"100%\" maxWidth=\"100%\" justifyContent=\"flex-start\" px=\"$4\">\n <HighlightTabs />\n </XStack>\n )\n}\n\nconst TabsRovingIndicator = styled(Stack, {\n name: 'TabsRovingIndicator',\n variants: {\n active: {\n true: {\n backgroundColor: '$color8',\n },\n },\n variants: {\n active: {\n true: {\n backgroundColor: '$color8',\n },\n },\n enter: {\n true: {\n opacity: 0,\n },\n },\n exit: {\n true: {\n opacity: 0,\n },\n },\n },\n },\n defaultVariants: {\n position: 'absolute',\n backgroundColor: '$color5',\n opacity: 1,\n animation: '100ms',\n borderRadius: '$4',\n },\n})\n\nconst AnimatedYStack = styled(YStack, {\n variants: {\n isLeft: { true: { x: -25, opacity: 0 } },\n isRight: { true: { x: 25, opacity: 0 } },\n } as const,\n})\n\nconst HighlightTabs = () => {\n const [currentTab, setCurrentTab] = useState('tab1')\n const [focusIndicatorLayout, setFocusIndicatorLayout] =\n useState<TabTriggerLayout | null>(null)\n const [hoverIndicatorLayout, setHoverIndicatorLayout] =\n useState<TabTriggerLayout | null>(null)\n const [selectionIndicatorLayout, setSelectionIndicatorLayout] =\n useState<TabTriggerLayout | null>(null)\n const prevSelectionIndicatorLayout = useRef<TabTriggerLayout | null>(null)\n const handleUpdateSelectionIndicator = (newSize: TabTriggerLayout | null) => {\n prevSelectionIndicatorLayout.current = selectionIndicatorLayout\n setSelectionIndicatorLayout(newSize)\n }\n\n const intentIndicatorLayout = hoverIndicatorLayout || focusIndicatorLayout\n\n /**\n * -1: from left\n * 0: n/a\n * 1: from right\n */\n const direction = useMemo(() => {\n if (\n !selectionIndicatorLayout ||\n !prevSelectionIndicatorLayout.current ||\n selectionIndicatorLayout.x === prevSelectionIndicatorLayout.current.x\n ) {\n return 0\n }\n return selectionIndicatorLayout.x > prevSelectionIndicatorLayout.current.x ? 1 : -1\n }, [selectionIndicatorLayout])\n\n const enterVariant =\n direction === 1 ? 'isLeft' : direction === -1 ? 'isRight' : undefined\n const exitVariant =\n direction === 1 ? 'isRight' : direction === -1 ? 'isLeft' : undefined\n\n return (\n <Tabs\n value={currentTab}\n onValueChange={setCurrentTab}\n orientation=\"horizontal\"\n br=\"$4\"\n height={150}\n flexDirection=\"column\"\n activationMode=\"manual\"\n >\n <Tabs.List\n scrollable\n loop={false}\n aria-label=\"Manage your account\"\n disablePassBorderRadius\n >\n {intentIndicatorLayout && (\n <TabsRovingIndicator\n width={intentIndicatorLayout.width}\n height={intentIndicatorLayout.height}\n x={intentIndicatorLayout.x}\n y={intentIndicatorLayout.y}\n />\n )}\n {selectionIndicatorLayout && (\n <TabsRovingIndicator\n theme=\"active\"\n active\n width={selectionIndicatorLayout.width}\n height={selectionIndicatorLayout.height}\n x={selectionIndicatorLayout.x}\n y={selectionIndicatorLayout.y}\n />\n )}\n <Tabs.Trigger\n unstyled\n color=\"$color12\"\n value=\"tab1\"\n onSelectedLayoutChange={handleUpdateSelectionIndicator}\n onHoveredLayoutChange={setHoverIndicatorLayout}\n onFocusedLayoutChange={setFocusIndicatorLayout}\n >\n Profile\n </Tabs.Trigger>\n <Tabs.Trigger\n unstyled\n color=\"$color12\"\n value=\"tab2\"\n onSelectedLayoutChange={handleUpdateSelectionIndicator}\n onHoveredLayoutChange={setHoverIndicatorLayout}\n onFocusedLayoutChange={setFocusIndicatorLayout}\n >\n Connections\n </Tabs.Trigger>\n <Tabs.Trigger\n unstyled\n color=\"$color12\"\n value=\"tab3\"\n onSelectedLayoutChange={handleUpdateSelectionIndicator}\n onHoveredLayoutChange={setHoverIndicatorLayout}\n onFocusedLayoutChange={setFocusIndicatorLayout}\n >\n Notifications\n </Tabs.Trigger>\n </Tabs.List>\n\n <AnimatePresence\n exitBeforeEnter\n enterVariant={enterVariant}\n exitVariant={exitVariant}\n >\n <AnimatedYStack key={currentTab} animation=\"100ms\" x={0} o={1}>\n <Tabs.Content value={currentTab} forceMount p=\"$2\">\n <H5 ta=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BAAK;AAAA,gBAAL;AAAA,kBACC,UAAQ;AAAA,kBACR,OAAM;AAAA,kBACN,OAAM;AAAA,kBACN,wBAAwB;AAAA,kBACxB,uBAAuB;AAAA,kBACvB,uBAAuB;AAAA,kBACxB;AAAA;AAAA,cAED;AAAA,cACA;AAAA,gBAAC,oBAAK;AAAA,gBAAL;AAAA,kBACC,UAAQ;AAAA,kBACR,OAAM;AAAA,kBACN,OAAM;AAAA,kBACN,wBAAwB;AAAA,kBACxB,uBAAuB;AAAA,kBACvB,uBAAuB;AAAA,kBACxB;AAAA;AAAA,cAED;AAAA,cACA;AAAA,gBAAC,oBAAK;AAAA,gBAAL;AAAA,kBACC,UAAQ;AAAA,kBACR,OAAM;AAAA,kBACN,OAAM;AAAA,kBACN,wBAAwB;AAAA,kBACxB,uBAAuB;AAAA,kBACvB,uBAAuB;AAAA,kBACxB;AAAA;AAAA,cAED;AAAA;AAAA;AAAA,QACF;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,iBAAe;AAAA,YACf;AAAA,YACA;AAAA,YAEA,sDAAC,kBAAgC,WAAU,SAAQ,GAAG,GAAG,GAAG,GAC1D,sDAAC,oBAAK,SAAL,EAAa,OAAO,YAAY,YAAU,MAAC,GAAE,MAC5C,sDAAC,qBAAG,IAAG,UAAU,sBAAW,GAC9B,KAHmB,UAIrB;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;",
6
- "names": []
7
- }
@@ -1,176 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var TabsUnderlinedDemo_exports = {};
20
- __export(TabsUnderlinedDemo_exports, {
21
- TabsUnderlinedDemo: () => TabsUnderlinedDemo
22
- });
23
- module.exports = __toCommonJS(TabsUnderlinedDemo_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_react = require("react");
26
- var import_tamagui = require("tamagui");
27
- function TabsUnderlinedDemo() {
28
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, { maxHeight: "100%", maxWidth: "100%", justifyContent: "flex-start", px: "$4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnderlineTabs, {}) });
29
- }
30
- const TabsRovingIndicator = (0, import_tamagui.styled)(import_tamagui.Stack, {
31
- name: "TabsRovingIndicator",
32
- variants: {
33
- active: {
34
- true: {
35
- backgroundColor: "$color8"
36
- }
37
- },
38
- variants: {
39
- active: {
40
- true: {
41
- backgroundColor: "$color8"
42
- }
43
- },
44
- enter: {
45
- true: {
46
- opacity: 0
47
- }
48
- },
49
- exit: {
50
- true: {
51
- opacity: 0
52
- }
53
- }
54
- }
55
- },
56
- defaultVariants: {
57
- position: "absolute",
58
- backgroundColor: "$color5",
59
- opacity: 1,
60
- animation: "100ms"
61
- }
62
- });
63
- const AnimatedYStack = (0, import_tamagui.styled)(import_tamagui.YStack, {
64
- variants: {
65
- isTop: { true: { y: -25, opacity: 0 } },
66
- isBottom: { true: { y: 25, opacity: 0 } }
67
- }
68
- });
69
- const UnderlineTabs = () => {
70
- const [currentTab, setCurrentTab] = (0, import_react.useState)("tab1");
71
- const [focusIndicatorLayout, setFocusIndicatorLayout] = (0, import_react.useState)(null);
72
- const [hoverIndicatorLayout, setHoverIndicatorLayout] = (0, import_react.useState)(null);
73
- const [selectionIndicatorLayout, setSelectionIndicatorLayout] = (0, import_react.useState)(null);
74
- const prevSelectionIndicatorLayout = (0, import_react.useRef)(null);
75
- const handleUpdateSelectionIndicator = (newSize) => {
76
- prevSelectionIndicatorLayout.current = selectionIndicatorLayout;
77
- setSelectionIndicatorLayout(newSize);
78
- };
79
- const intentIndicatorLayout = hoverIndicatorLayout || focusIndicatorLayout;
80
- const direction = (0, import_react.useMemo)(() => {
81
- if (!selectionIndicatorLayout || !prevSelectionIndicatorLayout.current || selectionIndicatorLayout.y === prevSelectionIndicatorLayout.current.y) {
82
- return 0;
83
- }
84
- return selectionIndicatorLayout.y > prevSelectionIndicatorLayout.current.y ? 1 : -1;
85
- }, [selectionIndicatorLayout]);
86
- const enterVariant = direction === 1 ? "isTop" : direction === -1 ? "isBottom" : void 0;
87
- const exitVariant = direction === 1 ? "isBottom" : direction === -1 ? "isTop" : void 0;
88
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
89
- import_tamagui.Tabs,
90
- {
91
- value: currentTab,
92
- onValueChange: setCurrentTab,
93
- orientation: "vertical",
94
- width: 300,
95
- br: "$4",
96
- ai: "center",
97
- activationMode: "manual",
98
- children: [
99
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { borderColor: "$color3", borderRightWidth: "$0.5", mr: "$2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Tabs.List, { loop: false, "aria-label": "Manage your account", disablePassBorderRadius: true, children: [
100
- intentIndicatorLayout && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
101
- TabsRovingIndicator,
102
- {
103
- width: "$0.5",
104
- height: intentIndicatorLayout.height,
105
- x: intentIndicatorLayout.x,
106
- y: intentIndicatorLayout.y,
107
- right: 0
108
- }
109
- ),
110
- selectionIndicatorLayout && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
111
- TabsRovingIndicator,
112
- {
113
- theme: "active",
114
- active: true,
115
- width: "$0.5",
116
- height: selectionIndicatorLayout.height,
117
- x: selectionIndicatorLayout.x,
118
- y: selectionIndicatorLayout.y,
119
- right: 0
120
- }
121
- ),
122
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
123
- import_tamagui.Tabs.Trigger,
124
- {
125
- unstyled: true,
126
- color: "$color12",
127
- value: "tab1",
128
- onSelectedLayoutChange: handleUpdateSelectionIndicator,
129
- onHoveredLayoutChange: setHoverIndicatorLayout,
130
- onFocusedLayoutChange: setFocusIndicatorLayout,
131
- children: "Profile"
132
- }
133
- ),
134
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
135
- import_tamagui.Tabs.Trigger,
136
- {
137
- unstyled: true,
138
- color: "$color12",
139
- value: "tab2",
140
- onSelectedLayoutChange: handleUpdateSelectionIndicator,
141
- onHoveredLayoutChange: setHoverIndicatorLayout,
142
- onFocusedLayoutChange: setFocusIndicatorLayout,
143
- children: "Connections"
144
- }
145
- ),
146
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
147
- import_tamagui.Tabs.Trigger,
148
- {
149
- unstyled: true,
150
- color: "$color12",
151
- value: "tab3",
152
- onSelectedLayoutChange: handleUpdateSelectionIndicator,
153
- onHoveredLayoutChange: setHoverIndicatorLayout,
154
- onFocusedLayoutChange: setFocusIndicatorLayout,
155
- children: "Notifications"
156
- }
157
- )
158
- ] }) }),
159
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
160
- import_tamagui.AnimatePresence,
161
- {
162
- exitBeforeEnter: true,
163
- enterVariant,
164
- exitVariant,
165
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AnimatedYStack, { animation: "100ms", y: 0, o: 1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Content, { value: currentTab, forceMount: true, p: "$2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { ta: "center", children: currentTab }) }) }, currentTab)
166
- }
167
- )
168
- ]
169
- }
170
- );
171
- };
172
- // Annotate the CommonJS export names for ESM import in node:
173
- 0 && (module.exports = {
174
- TabsUnderlinedDemo
175
- });
176
- //# sourceMappingURL=TabsUnderlinedDemo.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/TabsUnderlinedDemo.tsx"],
4
- "sourcesContent": ["import { useMemo, useRef, useState } from 'react'\nimport {\n AnimatePresence,\n H5,\n Stack,\n TabTriggerLayout,\n Tabs,\n XStack,\n YStack,\n styled,\n} from 'tamagui'\n\nexport function TabsUnderlinedDemo() {\n return (\n <XStack maxHeight=\"100%\" maxWidth=\"100%\" justifyContent=\"flex-start\" px=\"$4\">\n <UnderlineTabs />\n </XStack>\n )\n}\n\nconst TabsRovingIndicator = styled(Stack, {\n name: 'TabsRovingIndicator',\n variants: {\n active: {\n true: {\n backgroundColor: '$color8',\n },\n },\n variants: {\n active: {\n true: {\n backgroundColor: '$color8',\n },\n },\n enter: {\n true: {\n opacity: 0,\n },\n },\n exit: {\n true: {\n opacity: 0,\n },\n },\n },\n },\n defaultVariants: {\n position: 'absolute',\n backgroundColor: '$color5',\n opacity: 1,\n animation: '100ms',\n },\n})\n\nconst AnimatedYStack = styled(YStack, {\n variants: {\n isTop: { true: { y: -25, opacity: 0 } },\n isBottom: { true: { y: 25, opacity: 0 } },\n } as const,\n})\n\nconst UnderlineTabs = () => {\n const [currentTab, setCurrentTab] = useState('tab1')\n const [focusIndicatorLayout, setFocusIndicatorLayout] =\n useState<TabTriggerLayout | null>(null)\n const [hoverIndicatorLayout, setHoverIndicatorLayout] =\n useState<TabTriggerLayout | null>(null)\n const [selectionIndicatorLayout, setSelectionIndicatorLayout] =\n useState<TabTriggerLayout | null>(null)\n const prevSelectionIndicatorLayout = useRef<TabTriggerLayout | null>(null)\n const handleUpdateSelectionIndicator = (newSize: TabTriggerLayout | null) => {\n prevSelectionIndicatorLayout.current = selectionIndicatorLayout\n setSelectionIndicatorLayout(newSize)\n }\n\n const intentIndicatorLayout = hoverIndicatorLayout || focusIndicatorLayout\n\n /**\n * -1: from top\n * 0: n/a\n * 1: from bottom\n */\n const direction = useMemo(() => {\n if (\n !selectionIndicatorLayout ||\n !prevSelectionIndicatorLayout.current ||\n selectionIndicatorLayout.y === prevSelectionIndicatorLayout.current.y\n ) {\n return 0\n }\n return selectionIndicatorLayout.y > prevSelectionIndicatorLayout.current.y ? 1 : -1\n }, [selectionIndicatorLayout])\n\n const enterVariant =\n direction === 1 ? 'isTop' : direction === -1 ? 'isBottom' : undefined\n const exitVariant =\n direction === 1 ? 'isBottom' : direction === -1 ? 'isTop' : undefined\n\n return (\n <Tabs\n value={currentTab}\n onValueChange={setCurrentTab}\n orientation=\"vertical\"\n width={300}\n br=\"$4\"\n ai=\"center\"\n activationMode=\"manual\"\n >\n <YStack borderColor=\"$color3\" borderRightWidth=\"$0.5\" mr=\"$2\">\n <Tabs.List loop={false} aria-label=\"Manage your account\" disablePassBorderRadius>\n {intentIndicatorLayout && (\n <TabsRovingIndicator\n width=\"$0.5\"\n height={intentIndicatorLayout.height}\n x={intentIndicatorLayout.x}\n y={intentIndicatorLayout.y}\n right={0}\n />\n )}\n {selectionIndicatorLayout && (\n <TabsRovingIndicator\n theme=\"active\"\n active\n width=\"$0.5\"\n height={selectionIndicatorLayout.height}\n x={selectionIndicatorLayout.x}\n y={selectionIndicatorLayout.y}\n right={0}\n />\n )}\n <Tabs.Trigger\n unstyled\n color=\"$color12\"\n value=\"tab1\"\n onSelectedLayoutChange={handleUpdateSelectionIndicator}\n onHoveredLayoutChange={setHoverIndicatorLayout}\n onFocusedLayoutChange={setFocusIndicatorLayout}\n >\n Profile\n </Tabs.Trigger>\n <Tabs.Trigger\n unstyled\n color=\"$color12\"\n value=\"tab2\"\n onSelectedLayoutChange={handleUpdateSelectionIndicator}\n onHoveredLayoutChange={setHoverIndicatorLayout}\n onFocusedLayoutChange={setFocusIndicatorLayout}\n >\n Connections\n </Tabs.Trigger>\n <Tabs.Trigger\n unstyled\n color=\"$color12\"\n value=\"tab3\"\n onSelectedLayoutChange={handleUpdateSelectionIndicator}\n onHoveredLayoutChange={setHoverIndicatorLayout}\n onFocusedLayoutChange={setFocusIndicatorLayout}\n >\n Notifications\n </Tabs.Trigger>\n </Tabs.List>\n </YStack>\n <AnimatePresence\n exitBeforeEnter\n enterVariant={enterVariant}\n exitVariant={exitVariant}\n >\n <AnimatedYStack key={currentTab} animation=\"100ms\" y={0} o={1}>\n <Tabs.Content value={currentTab} forceMount p=\"$2\">\n <H5 ta=\"center\">{currentTab}</H5>\n </Tabs.Content>\n </AnimatedYStack>\n </AnimatePresence>\n </Tabs>\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeM;AAfN,mBAA0C;AAC1C,qBASO;AAEA,SAAS,qBAAqB;AACnC,SACE,4CAAC,yBAAO,WAAU,QAAO,UAAS,QAAO,gBAAe,cAAa,IAAG,MACtE,sDAAC,iBAAc,GACjB;AAEJ;AAEA,MAAM,0BAAsB,uBAAO,sBAAO;AAAA,EACxC,MAAM;AAAA,EACN,UAAU;AAAA,IACR,QAAQ;AAAA,MACN,MAAM;AAAA,QACJ,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR,QAAQ;AAAA,QACN,MAAM;AAAA,UACJ,iBAAiB;AAAA,QACnB;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACL,MAAM;AAAA,UACJ,SAAS;AAAA,QACX;AAAA,MACF;AAAA,MACA,MAAM;AAAA,QACJ,MAAM;AAAA,UACJ,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,UAAU;AAAA,IACV,iBAAiB;AAAA,IACjB,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AACF,CAAC;AAED,MAAM,qBAAiB,uBAAO,uBAAQ;AAAA,EACpC,UAAU;AAAA,IACR,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,SAAS,EAAE,EA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GAAG,sBAAsB;AAAA,cACzB,OAAO;AAAA;AAAA,UACT;AAAA,UAED,4BACC;AAAA,YAAC;AAAA;AAAA,cACC,OAAM;AAAA,cACN,QAAM;AAAA,cACN,OAAM;AAAA,cACN,QAAQ,yBAAyB;AAAA,cACjC,GAAG,yBAAyB;AAAA,cAC5B,GAAG,yBAAyB;AAAA,cAC5B,OAAO;AAAA;AAAA,UACT;AAAA,UAEF;AAAA,YAAC,oBAAK;AAAA,YAAL;AAAA,cACC,UAAQ;AAAA,cACR,OAAM;AAAA,cACN,OAAM;AAAA,cACN,wBAAwB;AAAA,cACxB,uBAAuB;AAAA,cACvB,uBAAuB;AAAA,cACxB;AAAA;AAAA,UAED;AAAA,UACA;AAAA,YAAC,oBAAK;AAAA,YAAL;AAAA,cACC,UAAQ;AAAA,cACR,OAAM;AAAA,cACN,OAAM;AAAA,cACN,wBAAwB;AAAA,cACxB,uBAAuB;AAAA,cACvB,uBAAuB;AAAA,cACxB;AAAA;AAAA,UAED;AAAA,UACA;AAAA,YAAC,oBAAK;AAAA,YAAL;AAAA,cACC,UAAQ;AAAA,cACR,OAAM;AAAA,cACN,OAAM;AAAA,cACN,wBAAwB;AAAA,cACxB,uBAAuB;AAAA,cACvB,uBAAuB;AAAA,cACxB;AAAA;AAAA,UAED;AAAA,WACF,GACF;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,iBAAe;AAAA,YACf;AAAA,YACA;AAAA,YAEA,sDAAC,kBAAgC,WAAU,SAAQ,GAAG,GAAG,GAAG,GAC1D,sDAAC,oBAAK,SAAL,EAAa,OAAO,YAAY,YAAU,MAAC,GAAE,MAC5C,sDAAC,qBAAG,IAAG,UAAU,sBAAW,GAC9B,KAHmB,UAIrB;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;",
6
- "names": []
7
- }
@@ -1,127 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
21
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
- var TamaguiLogo_exports = {};
23
- __export(TamaguiLogo_exports, {
24
- LogoIcon: () => LogoIcon,
25
- LogoWords: () => LogoWords,
26
- TamaguiLogo: () => TamaguiLogo,
27
- logoColors: () => logoColors,
28
- tints: () => tints
29
- });
30
- module.exports = __toCommonJS(TamaguiLogo_exports);
31
- var import_react = __toESM(require("react"));
32
- var import_tamagui = require("tamagui");
33
- const tints = ["red", "orange", "yellow", "green", "blue", "purple", "pink"];
34
- const logoColors = tints.map((t) => `var(--${t}9)`);
35
- const TamaguiLogo = (0, import_react.forwardRef)(({
36
- showWords,
37
- color,
38
- downscale,
39
- onHoverLetter,
40
- ...props
41
- }, ref) => /* @__PURE__ */ import_react.default.createElement(import_tamagui.XStack, {
42
- ref,
43
- ai: "center",
44
- jc: "center",
45
- space: "$5",
46
- ...props
47
- }, /* @__PURE__ */ import_react.default.createElement(LogoIcon, {
48
- downscale: (downscale ?? 1) * (showWords ? 2 : 1.5),
49
- color
50
- }), showWords && /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, {
51
- mb: -4
52
- }, /* @__PURE__ */ import_react.default.createElement(LogoWords, {
53
- onHoverLetter,
54
- downscale: downscale ?? 2,
55
- color
56
- }))));
57
- const LogoWords = ({
58
- color,
59
- downscale = 1,
60
- onHoverLetter
61
- }) => {
62
- return /* @__PURE__ */ import_react.default.createElement("svg", {
63
- width: 373 * (1 / downscale) * 0.333333334,
64
- height: 41 * (1 / downscale) * 0.333333334,
65
- viewBox: "0 0 373 41"
66
- }, /* @__PURE__ */ import_react.default.createElement("polygon", {
67
- shapeRendering: "crispEdges",
68
- fill: color || logoColors[0],
69
- points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903",
70
- onMouseEnter: onHoverLetter ? () => onHoverLetter(0) : void 0
71
- }), /* @__PURE__ */ import_react.default.createElement("path", {
72
- shapeRendering: "crispEdges",
73
- fill: color || logoColors[1],
74
- d: "M87.3548387,0.806451613 L87.3548387,8.67741935 L95.2258065,8.67741935 L95.2258065,40.1612903 L79.483871,40.1612903 L79.483871,24.4193548 L71.6129032,24.4193548 L71.6129032,40.1612903 L55.8709677,40.1612903 L55.8709677,8.67741935 L63.7419355,8.67741935 L63.7419355,0.806451613 L87.3548387,0.806451613 Z M79.483871,8.67741935 L71.6129032,8.67741935 L71.6129032,16.5483871 L79.483871,16.5483871 L79.483871,8.67741935 Z",
75
- fillRule: "nonzero",
76
- onMouseEnter: onHoverLetter ? () => onHoverLetter(1) : void 0
77
- }), /* @__PURE__ */ import_react.default.createElement("polygon", {
78
- shapeRendering: "crispEdges",
79
- fill: color || logoColors[2],
80
- points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903",
81
- onMouseEnter: onHoverLetter ? () => onHoverLetter(2) : void 0
82
- }), /* @__PURE__ */ import_react.default.createElement("path", {
83
- fill: color || logoColors[3],
84
- d: "M205.419355,0.806451613 L205.419355,8.67741935 L213.290323,8.67741935 L213.290323,40.1612903 L197.548387,40.1612903 L197.548387,24.4193548 L189.677419,24.4193548 L189.677419,40.1612903 L173.935484,40.1612903 L173.935484,8.67741935 L181.806452,8.67741935 L181.806452,0.806451613 L205.419355,0.806451613 Z M197.548387,8.67741935 L189.677419,8.67741935 L189.677419,16.5483871 L197.548387,16.5483871 L197.548387,8.67741935 Z",
85
- fillRule: "nonzero",
86
- onMouseEnter: onHoverLetter ? () => onHoverLetter(3) : void 0
87
- }), /* @__PURE__ */ import_react.default.createElement("polygon", {
88
- shapeRendering: "crispEdges",
89
- fill: color || logoColors[4],
90
- points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903",
91
- onMouseEnter: onHoverLetter ? () => onHoverLetter(4) : void 0
92
- }), /* @__PURE__ */ import_react.default.createElement("polygon", {
93
- shapeRendering: "crispEdges",
94
- fill: color || logoColors[5],
95
- points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903",
96
- onMouseEnter: onHoverLetter ? () => onHoverLetter(5) : void 0
97
- }), /* @__PURE__ */ import_react.default.createElement("polygon", {
98
- shapeRendering: "crispEdges",
99
- fill: color || logoColors[6],
100
- points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903",
101
- onMouseEnter: onHoverLetter ? () => onHoverLetter(6) : void 0
102
- }));
103
- };
104
- const LogoIcon = ({ downscale = 2 }) => {
105
- return /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, {
106
- className: "unselectable",
107
- als: "center",
108
- marginVertical: -10,
109
- pressStyle: {
110
- opacity: 0.7
111
- }
112
- }, /* @__PURE__ */ import_react.default.createElement("img", {
113
- className: "tamagui-icon",
114
- width: 450 / 8 / downscale,
115
- height: 420 / 8 / downscale,
116
- src: "/tamagui-icon.svg"
117
- }));
118
- };
119
- // Annotate the CommonJS export names for ESM import in node:
120
- 0 && (module.exports = {
121
- LogoIcon,
122
- LogoWords,
123
- TamaguiLogo,
124
- logoColors,
125
- tints
126
- });
127
- //# sourceMappingURL=TamaguiLogo.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/TamaguiLogo.tsx"],
4
- "sourcesContent": ["import React, { forwardRef } from 'react'\nimport { ThemeName, XStack, XStackProps, YStack } from 'tamagui'\n\nexport const tints: ThemeName[] = ['red', 'orange', 'yellow', 'green', 'blue', 'purple', 'pink']\n\nexport const logoColors = tints.map((t) => `var(--${t}9)`)\n\nexport const TamaguiLogo = forwardRef(\n (\n {\n showWords,\n color,\n downscale,\n onHoverLetter,\n ...props\n }: {\n onHoverLetter?: (i: number) => void\n showWords?: boolean\n color?: string\n downscale?: number\n } & XStackProps,\n ref\n ) => (\n <XStack ref={ref} ai=\"center\" jc=\"center\" space=\"$5\" {...props}>\n <LogoIcon downscale={(downscale ?? 1) * (showWords ? 2 : 1.5)} color={color} />\n {showWords && (\n <YStack mb={-4}>\n <LogoWords onHoverLetter={onHoverLetter} downscale={downscale ?? 2} color={color} />\n </YStack>\n )}\n </XStack>\n )\n)\n\nexport const LogoWords = ({\n color,\n downscale = 1,\n onHoverLetter,\n}: {\n color?: string\n downscale?: number\n onHoverLetter?: any\n}) => {\n return (\n <svg\n width={373 * (1 / downscale) * 0.333333334}\n height={41 * (1 / downscale) * 0.333333334}\n viewBox=\"0 0 373 41\"\n >\n <polygon\n shapeRendering=\"crispEdges\"\n fill={color || logoColors[0]}\n points=\"24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903\"\n onMouseEnter={onHoverLetter ? () => onHoverLetter(0) : undefined}\n />\n <path\n shapeRendering=\"crispEdges\"\n fill={color || logoColors[1]}\n d=\"M87.3548387,0.806451613 L87.3548387,8.67741935 L95.2258065,8.67741935 L95.2258065,40.1612903 L79.483871,40.1612903 L79.483871,24.4193548 L71.6129032,24.4193548 L71.6129032,40.1612903 L55.8709677,40.1612903 L55.8709677,8.67741935 L63.7419355,8.67741935 L63.7419355,0.806451613 L87.3548387,0.806451613 Z M79.483871,8.67741935 L71.6129032,8.67741935 L71.6129032,16.5483871 L79.483871,16.5483871 L79.483871,8.67741935 Z\"\n fillRule=\"nonzero\"\n onMouseEnter={onHoverLetter ? () => onHoverLetter(1) : undefined}\n />\n <polygon\n shapeRendering=\"crispEdges\"\n fill={color || logoColors[2]}\n points=\"130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903\"\n onMouseEnter={onHoverLetter ? () => onHoverLetter(2) : undefined}\n />\n <path\n fill={color || logoColors[3]}\n d=\"M205.419355,0.806451613 L205.419355,8.67741935 L213.290323,8.67741935 L213.290323,40.1612903 L197.548387,40.1612903 L197.548387,24.4193548 L189.677419,24.4193548 L189.677419,40.1612903 L173.935484,40.1612903 L173.935484,8.67741935 L181.806452,8.67741935 L181.806452,0.806451613 L205.419355,0.806451613 Z M197.548387,8.67741935 L189.677419,8.67741935 L189.677419,16.5483871 L197.548387,16.5483871 L197.548387,8.67741935 Z\"\n fillRule=\"nonzero\"\n onMouseEnter={onHoverLetter ? () => onHoverLetter(3) : undefined}\n />\n <polygon\n shapeRendering=\"crispEdges\"\n fill={color || logoColors[4]}\n points=\"264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903\"\n onMouseEnter={onHoverLetter ? () => onHoverLetter(4) : undefined}\n />\n <polygon\n shapeRendering=\"crispEdges\"\n fill={color || logoColors[5]}\n points=\"323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903\"\n onMouseEnter={onHoverLetter ? () => onHoverLetter(5) : undefined}\n />\n <polygon\n shapeRendering=\"crispEdges\"\n fill={color || logoColors[6]}\n points=\"372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903\"\n onMouseEnter={onHoverLetter ? () => onHoverLetter(6) : undefined}\n />\n </svg>\n )\n}\n\nexport const LogoIcon = ({ downscale = 2 }: any) => {\n return (\n <YStack\n className=\"unselectable\"\n als=\"center\"\n marginVertical={-10}\n pressStyle={{\n opacity: 0.7,\n }}\n >\n <img\n className=\"tamagui-icon\"\n width={450 / 8 / downscale}\n height={420 / 8 / downscale}\n src=\"/tamagui-icon.svg\"\n />\n </YStack>\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkC;AAClC,qBAAuD;AAEhD,MAAM,QAAqB,CAAC,OAAO,UAAU,UAAU,SAAS,QAAQ,UAAU,MAAM;AAExF,MAAM,aAAa,MAAM,IAAI,CAAC,MAAM,SAAS,KAAK;AAElD,MAAM,cAAc,6BACzB,CACE;AAAA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A,IACP,cAAc,gBAAgB,MAAM,cAAc,CAAC,IAAI;AAAA,GACzD,GACA,mDAAC;AAAA,IACC,gBAAe;AAAA,IACf,MAAM,SAAS,WAAW;AAAA,IAC1B,QAAO;AAAA,IACP,cAAc,gBAAgB,MAAM,cAAc,CAAC,IAAI;AAAA,GACzD,GACA,mDAAC;AAAA,IACC,gBAAe;AAAA,IACf,MAAM,SAAS,WAAW;AAAA,IAC1B,QAAO;AAAA,IACP,cAAc,gBAAgB,MAAM,cAAc,CAAC,IAAI;AAAA,GACzD,CACF;AAEJ;AAEO,MAAM,WAAW,CAAC,EAAE,YAAY,QAAa;AAClD,SACE,mDAAC;AAAA,IACC,WAAU;AAAA,IACV,KAAI;AAAA,IACJ,gBAAgB;AAAA,IAChB,YAAY;AAAA,MACV,SAAS;AAAA,IACX;AAAA,KAEA,mDAAC;AAAA,IACC,WAAU;AAAA,IACV,OAAO,MAAM,IAAI;AAAA,IACjB,QAAQ,MAAM,IAAI;AAAA,IAClB,KAAI;AAAA,GACN,CACF;AAEJ;",
6
- "names": []
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=zstack.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var zstack_exports = {};
20
- __export(zstack_exports, {
21
- Crosshairs: () => Crosshairs
22
- });
23
- module.exports = __toCommonJS(zstack_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_tamagui = require("tamagui");
26
- const Crosshairs = () => {
27
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.ZStack, {
28
- ai: "center",
29
- jc: "center",
30
- bc: "green",
31
- fullscreen: true,
32
- zi: 1e11,
33
- children: [
34
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, {
35
- borderColor: "red"
36
- }),
37
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, {
38
- vertical: true,
39
- borderColor: "red"
40
- })
41
- ]
42
- });
43
- };
44
- // Annotate the CommonJS export names for ESM import in node:
45
- 0 && (module.exports = {
46
- Crosshairs
47
- });
48
- //# sourceMappingURL=zstack.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/snapshots/zstack.tsx"],
4
- "sourcesContent": ["import { Separator, ZStack } from 'tamagui'\n\nexport const Crosshairs = () => {\n return (\n <ZStack ai=\"center\" jc=\"center\" bc=\"green\" fullscreen zi={100000000000}>\n <Separator borderColor=\"red\" />\n <Separator vertical borderColor=\"red\" />\n </ZStack>\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAII;AAJJ,qBAAkC;AAE3B,MAAM,aAAa,MAAM;AAC9B,SACE,6CAAC;AAAA,IAAO,IAAG;AAAA,IAAS,IAAG;AAAA,IAAS,IAAG;AAAA,IAAQ,YAAU;AAAA,IAAC,IAAI;AAAA,IACxD;AAAA,kDAAC;AAAA,QAAU,aAAY;AAAA,OAAM;AAAA,MAC7B,4CAAC;AAAA,QAAU,UAAQ;AAAA,QAAC,aAAY;AAAA,OAAM;AAAA;AAAA,GACxC;AAEJ;",
6
- "names": []
7
- }