tamagui 1.13.2 → 1.13.4
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/createTamagui.js +9 -66
- package/dist/cjs/createTamagui.js.map +2 -2
- package/dist/cjs/helpers/inputHelpers.js +1 -64
- package/dist/cjs/helpers/inputHelpers.js.map +2 -2
- package/dist/cjs/index.js +1 -194
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/lib/linear-gradient.native.js +1 -18
- package/dist/cjs/lib/linear-gradient.native.js.map +2 -2
- package/dist/cjs/linear-gradient.js +1 -18
- package/dist/cjs/linear-gradient.js.map +2 -2
- package/dist/cjs/setup.js +1 -57
- package/dist/cjs/setup.js.map +2 -2
- package/dist/cjs/viewTypes.js +1 -16
- package/dist/cjs/viewTypes.js.map +2 -2
- package/dist/cjs/views/Anchor.js +1 -60
- package/dist/cjs/views/Anchor.js.map +2 -2
- package/dist/cjs/views/EnsureFlexed.js +1 -41
- package/dist/cjs/views/EnsureFlexed.js.map +2 -2
- package/dist/cjs/views/Fieldset.js +1 -41
- package/dist/cjs/views/Fieldset.js.map +2 -2
- package/dist/cjs/views/Grid.js +1 -76
- package/dist/cjs/views/Grid.js.map +2 -2
- package/dist/cjs/views/Input.js +1 -81
- package/dist/cjs/views/Input.js.map +2 -2
- package/dist/cjs/views/Layouts.js +1 -80
- package/dist/cjs/views/Layouts.js.map +2 -2
- package/dist/cjs/views/Skeleton.js +1 -64
- package/dist/cjs/views/Skeleton.js.map +2 -2
- package/dist/cjs/views/Spinner.js +1 -58
- package/dist/cjs/views/Spinner.js.map +2 -2
- package/dist/cjs/views/TamaguiProvider.js +1 -33
- package/dist/cjs/views/TamaguiProvider.js.map +2 -2
- package/dist/cjs/views/TamaguiProvider.server.js +1 -29
- package/dist/cjs/views/TamaguiProvider.server.js.map +2 -2
- package/dist/cjs/views/TextArea.js +1 -53
- package/dist/cjs/views/TextArea.js.map +2 -2
- package/dist/cjs/views/VisuallyHidden.js +1 -60
- package/dist/cjs/views/VisuallyHidden.js.map +2 -2
- package/dist/esm/createTamagui.js +14 -47
- package/dist/esm/createTamagui.js.map +2 -2
- package/dist/esm/createTamagui.mjs +14 -47
- package/dist/esm/createTamagui.mjs.map +2 -2
- package/dist/esm/helpers/inputHelpers.js +1 -39
- package/dist/esm/helpers/inputHelpers.js.map +2 -2
- package/dist/esm/helpers/inputHelpers.mjs +1 -39
- package/dist/esm/helpers/inputHelpers.mjs.map +2 -2
- package/dist/esm/index.js +1 -170
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/index.mjs +1 -170
- package/dist/esm/index.mjs.map +2 -2
- package/dist/esm/lib/linear-gradient.native.js +1 -1
- package/dist/esm/lib/linear-gradient.native.js.map +1 -1
- package/dist/esm/lib/linear-gradient.native.mjs +1 -1
- package/dist/esm/lib/linear-gradient.native.mjs.map +1 -1
- package/dist/esm/linear-gradient.js +1 -1
- package/dist/esm/linear-gradient.js.map +1 -1
- package/dist/esm/linear-gradient.mjs +1 -1
- package/dist/esm/linear-gradient.mjs.map +1 -1
- package/dist/esm/setup.js +1 -23
- package/dist/esm/setup.js.map +2 -2
- package/dist/esm/setup.mjs +1 -23
- package/dist/esm/setup.mjs.map +2 -2
- package/dist/esm/views/Anchor.js +1 -36
- package/dist/esm/views/Anchor.js.map +2 -2
- package/dist/esm/views/Anchor.mjs +1 -36
- package/dist/esm/views/Anchor.mjs.map +2 -2
- package/dist/esm/views/EnsureFlexed.js +1 -17
- package/dist/esm/views/EnsureFlexed.js.map +2 -2
- package/dist/esm/views/EnsureFlexed.mjs +1 -17
- package/dist/esm/views/EnsureFlexed.mjs.map +2 -2
- package/dist/esm/views/Fieldset.js +1 -17
- package/dist/esm/views/Fieldset.js.map +2 -2
- package/dist/esm/views/Fieldset.mjs +1 -17
- package/dist/esm/views/Fieldset.mjs.map +2 -2
- package/dist/esm/views/Grid.js +1 -42
- package/dist/esm/views/Grid.js.map +2 -2
- package/dist/esm/views/Grid.mjs +1 -42
- package/dist/esm/views/Grid.mjs.map +2 -2
- package/dist/esm/views/Input.js +1 -55
- package/dist/esm/views/Input.js.map +2 -2
- package/dist/esm/views/Input.mjs +1 -55
- package/dist/esm/views/Input.mjs.map +2 -2
- package/dist/esm/views/Layouts.js +1 -50
- package/dist/esm/views/Layouts.js.map +2 -2
- package/dist/esm/views/Layouts.mjs +1 -50
- package/dist/esm/views/Layouts.mjs.map +2 -2
- package/dist/esm/views/Skeleton.js +1 -38
- package/dist/esm/views/Skeleton.js.map +2 -2
- package/dist/esm/views/Skeleton.mjs +1 -38
- package/dist/esm/views/Skeleton.mjs.map +2 -2
- package/dist/esm/views/Spinner.js +1 -28
- package/dist/esm/views/Spinner.js.map +2 -2
- package/dist/esm/views/Spinner.mjs +1 -28
- package/dist/esm/views/Spinner.mjs.map +2 -2
- package/dist/esm/views/TamaguiProvider.js +1 -9
- package/dist/esm/views/TamaguiProvider.js.map +2 -2
- package/dist/esm/views/TamaguiProvider.mjs +1 -9
- package/dist/esm/views/TamaguiProvider.mjs.map +2 -2
- package/dist/esm/views/TamaguiProvider.server.js +1 -5
- package/dist/esm/views/TamaguiProvider.server.js.map +2 -2
- package/dist/esm/views/TamaguiProvider.server.mjs +1 -5
- package/dist/esm/views/TamaguiProvider.server.mjs.map +2 -2
- package/dist/esm/views/TextArea.js +1 -28
- package/dist/esm/views/TextArea.js.map +2 -2
- package/dist/esm/views/TextArea.mjs +1 -28
- package/dist/esm/views/TextArea.mjs.map +2 -2
- package/dist/esm/views/VisuallyHidden.js +1 -36
- package/dist/esm/views/VisuallyHidden.js.map +2 -2
- package/dist/esm/views/VisuallyHidden.mjs +1 -36
- package/dist/esm/views/VisuallyHidden.mjs.map +2 -2
- package/dist/jsx/createTamagui.js +14 -47
- package/dist/jsx/createTamagui.js.map +2 -2
- package/dist/jsx/createTamagui.mjs +14 -47
- package/dist/jsx/createTamagui.mjs.map +2 -2
- package/dist/jsx/helpers/inputHelpers.js +1 -39
- package/dist/jsx/helpers/inputHelpers.js.map +2 -2
- package/dist/jsx/helpers/inputHelpers.mjs +1 -39
- package/dist/jsx/helpers/inputHelpers.mjs.map +2 -2
- package/dist/jsx/index.js +1 -170
- package/dist/jsx/index.js.map +2 -2
- package/dist/jsx/index.mjs +1 -170
- package/dist/jsx/index.mjs.map +2 -2
- package/dist/jsx/lib/linear-gradient.native.js +1 -1
- package/dist/jsx/lib/linear-gradient.native.js.map +1 -1
- package/dist/jsx/lib/linear-gradient.native.mjs +1 -1
- package/dist/jsx/lib/linear-gradient.native.mjs.map +1 -1
- package/dist/jsx/linear-gradient.js +1 -1
- package/dist/jsx/linear-gradient.js.map +1 -1
- package/dist/jsx/linear-gradient.mjs +1 -1
- package/dist/jsx/linear-gradient.mjs.map +1 -1
- package/dist/jsx/setup.js +1 -23
- package/dist/jsx/setup.js.map +2 -2
- package/dist/jsx/setup.mjs +1 -23
- package/dist/jsx/setup.mjs.map +2 -2
- package/dist/jsx/views/Anchor.js +1 -31
- package/dist/jsx/views/Anchor.js.map +2 -2
- package/dist/jsx/views/Anchor.mjs +1 -31
- package/dist/jsx/views/Anchor.mjs.map +2 -2
- package/dist/jsx/views/EnsureFlexed.js +1 -17
- package/dist/jsx/views/EnsureFlexed.js.map +2 -2
- package/dist/jsx/views/EnsureFlexed.mjs +1 -17
- package/dist/jsx/views/EnsureFlexed.mjs.map +2 -2
- package/dist/jsx/views/Fieldset.js +1 -17
- package/dist/jsx/views/Fieldset.js.map +2 -2
- package/dist/jsx/views/Fieldset.mjs +1 -17
- package/dist/jsx/views/Fieldset.mjs.map +2 -2
- package/dist/jsx/views/Grid.js +1 -33
- package/dist/jsx/views/Grid.js.map +2 -2
- package/dist/jsx/views/Grid.mjs +1 -33
- package/dist/jsx/views/Grid.mjs.map +2 -2
- package/dist/jsx/views/Input.js +1 -55
- package/dist/jsx/views/Input.js.map +2 -2
- package/dist/jsx/views/Input.mjs +1 -55
- package/dist/jsx/views/Input.mjs.map +2 -2
- package/dist/jsx/views/Layouts.js +1 -50
- package/dist/jsx/views/Layouts.js.map +2 -2
- package/dist/jsx/views/Layouts.mjs +1 -50
- package/dist/jsx/views/Layouts.mjs.map +2 -2
- package/dist/jsx/views/Skeleton.js +1 -34
- package/dist/jsx/views/Skeleton.js.map +2 -2
- package/dist/jsx/views/Skeleton.mjs +1 -34
- package/dist/jsx/views/Skeleton.mjs.map +2 -2
- package/dist/jsx/views/Spinner.js +1 -27
- package/dist/jsx/views/Spinner.js.map +2 -2
- package/dist/jsx/views/Spinner.mjs +1 -27
- package/dist/jsx/views/Spinner.mjs.map +2 -2
- package/dist/jsx/views/TamaguiProvider.js +1 -8
- package/dist/jsx/views/TamaguiProvider.js.map +2 -2
- package/dist/jsx/views/TamaguiProvider.mjs +1 -8
- package/dist/jsx/views/TamaguiProvider.mjs.map +2 -2
- package/dist/jsx/views/TamaguiProvider.server.js +1 -5
- package/dist/jsx/views/TamaguiProvider.server.js.map +2 -2
- package/dist/jsx/views/TamaguiProvider.server.mjs +1 -5
- package/dist/jsx/views/TamaguiProvider.server.mjs.map +2 -2
- package/dist/jsx/views/TextArea.js +1 -28
- package/dist/jsx/views/TextArea.js.map +2 -2
- package/dist/jsx/views/TextArea.mjs +1 -28
- package/dist/jsx/views/TextArea.mjs.map +2 -2
- package/dist/jsx/views/VisuallyHidden.js +1 -36
- package/dist/jsx/views/VisuallyHidden.js.map +2 -2
- package/dist/jsx/views/VisuallyHidden.mjs +1 -36
- package/dist/jsx/views/VisuallyHidden.mjs.map +2 -2
- package/package.json +50 -50
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/inputHelpers.tsx"],
|
|
4
4
|
"sourcesContent": ["import { SizeVariantSpreadFunction, getVariableValue, isWeb } from '@tamagui/core'\nimport { getButtonSized } from '@tamagui/get-button-sized'\nimport { getFontSized } from '@tamagui/get-font-sized'\nimport { stepTokenUpOrDown } from '@tamagui/get-size'\n\nexport const inputSizeVariant: SizeVariantSpreadFunction<any> = (\n val = '$true',\n extras\n) => {\n if (extras.props.multiline || extras.props.numberOfLines > 1) {\n return textAreaSizeVariant(val, extras)\n }\n const buttonStyles = getButtonSized(val, extras)\n const paddingHorizontal = stepTokenUpOrDown('space', val, -1, [2])\n const fontStyle = getFontSized(val, extras)\n // lineHeight messes up input on native\n if (!isWeb && fontStyle) {\n delete fontStyle['lineHeight']\n }\n return {\n ...fontStyle,\n ...buttonStyles,\n paddingHorizontal,\n }\n}\n\nexport const textAreaSizeVariant: SizeVariantSpreadFunction<any> = (\n val = '$true',\n extras\n) => {\n const { props } = extras\n const buttonStyles = getButtonSized(val, extras)\n const fontStyle = getFontSized(val, extras)!\n const height = props.numberOfLines\n ? (props.numberOfLines || 1) * getVariableValue(fontStyle.lineHeight)\n : 'auto'\n const paddingVertical = stepTokenUpOrDown('space', val, -2, [2])\n const paddingHorizontal = stepTokenUpOrDown('space', val, -1, [2])\n return {\n ...buttonStyles,\n ...fontStyle,\n paddingVertical,\n paddingHorizontal,\n height,\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAoC,oBAAAA,EAAkB,SAAAC,MAAa,gBACnE,OAAS,kBAAAC,MAAsB,4BAC/B,OAAS,gBAAAC,MAAoB,0BAC7B,OAAS,qBAAAC,MAAyB,oBAE3B,MAAMC,EAAmD,CAC9DC,EAAM,QACNC,IACG,CACH,GAAIA,EAAO,MAAM,WAAaA,EAAO,MAAM,cAAgB,EACzD,OAAOC,EAAoBF,EAAKC,CAAM,EAExC,MAAME,EAAeP,EAAeI,EAAKC,CAAM,EACzCG,EAAoBN,EAAkB,QAASE,EAAK,GAAI,CAAC,CAAC,CAAC,EAC3DK,EAAYR,EAAaG,EAAKC,CAAM,EAE1C,MAAI,CAACN,GAASU,GACZ,OAAOA,EAAU,WAEZ,CACL,GAAGA,EACH,GAAGF,EACH,kBAAAC,CACF,CACF,EAEaF,EAAsD,CACjEF,EAAM,QACNC,IACG,CACH,KAAM,CAAE,MAAAK,CAAM,EAAIL,EACZE,EAAeP,EAAeI,EAAKC,CAAM,EACzCI,EAAYR,EAAaG,EAAKC,CAAM,EACpCM,EAASD,EAAM,eAChBA,EAAM,eAAiB,GAAKZ,EAAiBW,EAAU,UAAU,EAClE,OACEG,EAAkBV,EAAkB,QAASE,EAAK,GAAI,CAAC,CAAC,CAAC,EACzDI,EAAoBN,EAAkB,QAASE,EAAK,GAAI,CAAC,CAAC,CAAC,EACjE,MAAO,CACL,GAAGG,EACH,GAAGE,EACH,gBAAAG,EACA,kBAAAJ,EACA,OAAAG,CACF,CACF",
|
|
6
|
+
"names": ["getVariableValue", "isWeb", "getButtonSized", "getFontSized", "stepTokenUpOrDown", "inputSizeVariant", "val", "extras", "textAreaSizeVariant", "buttonStyles", "paddingHorizontal", "fontStyle", "props", "height", "paddingVertical"]
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,171 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "@tamagui/adapt";
|
|
3
|
-
export * from "@tamagui/alert-dialog";
|
|
4
|
-
export * from "@tamagui/animate-presence";
|
|
5
|
-
export * from "@tamagui/avatar";
|
|
6
|
-
export * from "@tamagui/button";
|
|
7
|
-
export * from "@tamagui/card";
|
|
8
|
-
export * from "@tamagui/compose-refs";
|
|
9
|
-
export * from "@tamagui/create-context";
|
|
10
|
-
export * from "@tamagui/dialog";
|
|
11
|
-
export * from "@tamagui/font-size";
|
|
12
|
-
export * from "@tamagui/form";
|
|
13
|
-
export * from "@tamagui/group";
|
|
14
|
-
export * from "@tamagui/helpers-tamagui";
|
|
15
|
-
export * from "@tamagui/image";
|
|
16
|
-
export * from "@tamagui/label";
|
|
17
|
-
export * from "@tamagui/list-item";
|
|
18
|
-
export * from "@tamagui/popover";
|
|
19
|
-
export * from "@tamagui/popper";
|
|
20
|
-
export * from "@tamagui/portal";
|
|
21
|
-
export * from "@tamagui/progress";
|
|
22
|
-
export * from "@tamagui/radio-group";
|
|
23
|
-
export * from "@tamagui/scroll-view";
|
|
24
|
-
export * from "@tamagui/select";
|
|
25
|
-
export * from "@tamagui/separator";
|
|
26
|
-
export * from "@tamagui/shapes";
|
|
27
|
-
export * from "@tamagui/sheet";
|
|
28
|
-
export * from "@tamagui/slider";
|
|
29
|
-
export * from "@tamagui/stacks";
|
|
30
|
-
export * from "@tamagui/switch";
|
|
31
|
-
export * from "@tamagui/toggle-group";
|
|
32
|
-
export * from "@tamagui/text";
|
|
33
|
-
export * from "@tamagui/tabs";
|
|
34
|
-
export * from "@tamagui/tooltip";
|
|
35
|
-
export * from "@tamagui/use-controllable-state";
|
|
36
|
-
export * from "@tamagui/use-debounce";
|
|
37
|
-
export * from "@tamagui/use-force-update";
|
|
38
|
-
export * from "@tamagui/use-window-dimensions";
|
|
39
|
-
export * from "@tamagui/visually-hidden";
|
|
40
|
-
export * from "@tamagui/checkbox";
|
|
41
|
-
export * from "./createTamagui";
|
|
42
|
-
export * from "./views/TamaguiProvider";
|
|
43
|
-
export * from "./viewTypes";
|
|
44
|
-
export * from "./views/Anchor";
|
|
45
|
-
export * from "./views/EnsureFlexed";
|
|
46
|
-
export * from "./views/Fieldset";
|
|
47
|
-
export * from "./views/Grid";
|
|
48
|
-
export * from "./views/Input";
|
|
49
|
-
export * from "./views/Layouts";
|
|
50
|
-
export * from "./views/Spinner";
|
|
51
|
-
export * from "./views/TextArea";
|
|
52
|
-
import {
|
|
53
|
-
Spacer,
|
|
54
|
-
Stack,
|
|
55
|
-
Text,
|
|
56
|
-
Theme,
|
|
57
|
-
FontLanguage,
|
|
58
|
-
Unspaced,
|
|
59
|
-
TextAncestorContext,
|
|
60
|
-
AnimationDriverProvider,
|
|
61
|
-
isChrome,
|
|
62
|
-
isClient,
|
|
63
|
-
isServer,
|
|
64
|
-
isTouchable,
|
|
65
|
-
isWeb,
|
|
66
|
-
isWebTouchable,
|
|
67
|
-
mediaQueryConfig,
|
|
68
|
-
createComponent,
|
|
69
|
-
createFont,
|
|
70
|
-
createShorthands,
|
|
71
|
-
createTheme,
|
|
72
|
-
addTheme,
|
|
73
|
-
updateTheme,
|
|
74
|
-
createTokens,
|
|
75
|
-
createVariable,
|
|
76
|
-
getConfig,
|
|
77
|
-
getAnimationDriver,
|
|
78
|
-
getMedia,
|
|
79
|
-
getStylesAtomic,
|
|
80
|
-
getThemes,
|
|
81
|
-
getTokens,
|
|
82
|
-
getVariable,
|
|
83
|
-
variableToString,
|
|
84
|
-
getVariableValue,
|
|
85
|
-
getVariableName,
|
|
86
|
-
insertFont,
|
|
87
|
-
isTamaguiElement,
|
|
88
|
-
isTamaguiComponent,
|
|
89
|
-
isVariable,
|
|
90
|
-
matchMedia,
|
|
91
|
-
mediaObjectToString,
|
|
92
|
-
mediaState,
|
|
93
|
-
spacedChildren,
|
|
94
|
-
styled,
|
|
95
|
-
themeable,
|
|
96
|
-
useStyle,
|
|
97
|
-
withStaticProperties,
|
|
98
|
-
useGet,
|
|
99
|
-
useEvent,
|
|
100
|
-
useDidFinishSSR,
|
|
101
|
-
useIsomorphicLayoutEffect,
|
|
102
|
-
useIsTouchDevice,
|
|
103
|
-
useMedia,
|
|
104
|
-
useTheme,
|
|
105
|
-
useThemeName,
|
|
106
|
-
useSafeRef
|
|
107
|
-
} from "@tamagui/core";
|
|
108
|
-
function LinearGradient(props) {
|
|
109
|
-
if (process.env.NODE_ENV === "development") {
|
|
110
|
-
console.warn(`LinearGradient has been moved to tamagui/linear-gradient as of 1.1`);
|
|
111
|
-
}
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
export {
|
|
115
|
-
AnimationDriverProvider,
|
|
116
|
-
FontLanguage,
|
|
117
|
-
LinearGradient,
|
|
118
|
-
Spacer,
|
|
119
|
-
Stack,
|
|
120
|
-
Text,
|
|
121
|
-
TextAncestorContext,
|
|
122
|
-
Theme,
|
|
123
|
-
Unspaced,
|
|
124
|
-
addTheme,
|
|
125
|
-
createComponent,
|
|
126
|
-
createFont,
|
|
127
|
-
createShorthands,
|
|
128
|
-
createTheme,
|
|
129
|
-
createTokens,
|
|
130
|
-
createVariable,
|
|
131
|
-
getAnimationDriver,
|
|
132
|
-
getConfig,
|
|
133
|
-
getMedia,
|
|
134
|
-
getStylesAtomic,
|
|
135
|
-
getThemes,
|
|
136
|
-
getTokens,
|
|
137
|
-
getVariable,
|
|
138
|
-
getVariableName,
|
|
139
|
-
getVariableValue,
|
|
140
|
-
insertFont,
|
|
141
|
-
isChrome,
|
|
142
|
-
isClient,
|
|
143
|
-
isServer,
|
|
144
|
-
isTamaguiComponent,
|
|
145
|
-
isTamaguiElement,
|
|
146
|
-
isTouchable,
|
|
147
|
-
isVariable,
|
|
148
|
-
isWeb,
|
|
149
|
-
isWebTouchable,
|
|
150
|
-
matchMedia,
|
|
151
|
-
mediaObjectToString,
|
|
152
|
-
mediaQueryConfig,
|
|
153
|
-
mediaState,
|
|
154
|
-
spacedChildren,
|
|
155
|
-
styled,
|
|
156
|
-
themeable,
|
|
157
|
-
updateTheme,
|
|
158
|
-
useDidFinishSSR,
|
|
159
|
-
useEvent,
|
|
160
|
-
useGet,
|
|
161
|
-
useIsTouchDevice,
|
|
162
|
-
useIsomorphicLayoutEffect,
|
|
163
|
-
useMedia,
|
|
164
|
-
useSafeRef,
|
|
165
|
-
useStyle,
|
|
166
|
-
useTheme,
|
|
167
|
-
useThemeName,
|
|
168
|
-
variableToString,
|
|
169
|
-
withStaticProperties
|
|
170
|
-
};
|
|
1
|
+
export*from"./setup";export*from"@tamagui/adapt";export*from"@tamagui/alert-dialog";export*from"@tamagui/animate-presence";export*from"@tamagui/avatar";export*from"@tamagui/button";export*from"@tamagui/card";export*from"@tamagui/compose-refs";export*from"@tamagui/create-context";export*from"@tamagui/dialog";export*from"@tamagui/font-size";export*from"@tamagui/form";export*from"@tamagui/group";export*from"@tamagui/helpers-tamagui";export*from"@tamagui/image";export*from"@tamagui/label";export*from"@tamagui/list-item";export*from"@tamagui/popover";export*from"@tamagui/popper";export*from"@tamagui/portal";export*from"@tamagui/progress";export*from"@tamagui/radio-group";export*from"@tamagui/scroll-view";export*from"@tamagui/select";export*from"@tamagui/separator";export*from"@tamagui/shapes";export*from"@tamagui/sheet";export*from"@tamagui/slider";export*from"@tamagui/stacks";export*from"@tamagui/switch";export*from"@tamagui/toggle-group";export*from"@tamagui/text";export*from"@tamagui/tabs";export*from"@tamagui/tooltip";export*from"@tamagui/use-controllable-state";export*from"@tamagui/use-debounce";export*from"@tamagui/use-force-update";export*from"@tamagui/use-window-dimensions";export*from"@tamagui/visually-hidden";export*from"@tamagui/checkbox";export*from"./createTamagui";export*from"./views/TamaguiProvider";export*from"./viewTypes";export*from"./views/Anchor";export*from"./views/EnsureFlexed";export*from"./views/Fieldset";export*from"./views/Grid";export*from"./views/Input";export*from"./views/Layouts";export*from"./views/Spinner";export*from"./views/TextArea";import{Spacer as oe,Stack as re,Text as te,Theme as ae,FontLanguage as me,Unspaced as ne,TextAncestorContext as ie,AnimationDriverProvider as pe,isChrome as se,isClient as fe,isServer as xe,isTouchable as Te,isWeb as ge,isWebTouchable as ue,mediaQueryConfig as ce,createComponent as de,createFont as le,createShorthands as he,createTheme as Se,addTheme as Ce,updateTheme as ke,createTokens as Pe,createVariable as Fe,getConfig as ye,getAnimationDriver as be,getMedia as Ve,getStylesAtomic as ve,getThemes as Ge,getTokens as Ee,getVariable as Le,variableToString as Me,getVariableValue as Ne,getVariableName as Ae,insertFont as De,isTamaguiElement as Be,isTamaguiComponent as Ie,isVariable as Ke,matchMedia as Qe,mediaObjectToString as We,mediaState as we,spacedChildren as ze,styled as Oe,themeable as Re,useStyle as je,withStaticProperties as He,useGet as Ue,useEvent as Ze,useDidFinishSSR as _e,useIsomorphicLayoutEffect as qe,useIsTouchDevice as Je,useMedia as Xe,useTheme as Ye,useThemeName as $e,useSafeRef as eo}from"@tamagui/core";function o(e){return process.env.NODE_ENV==="development"&&console.warn("LinearGradient has been moved to tamagui/linear-gradient as of 1.1"),null}export{pe as AnimationDriverProvider,me as FontLanguage,o as LinearGradient,oe as Spacer,re as Stack,te as Text,ie as TextAncestorContext,ae as Theme,ne as Unspaced,Ce as addTheme,de as createComponent,le as createFont,he as createShorthands,Se as createTheme,Pe as createTokens,Fe as createVariable,be as getAnimationDriver,ye as getConfig,Ve as getMedia,ve as getStylesAtomic,Ge as getThemes,Ee as getTokens,Le as getVariable,Ae as getVariableName,Ne as getVariableValue,De as insertFont,se as isChrome,fe as isClient,xe as isServer,Ie as isTamaguiComponent,Be as isTamaguiElement,Te as isTouchable,Ke as isVariable,ge as isWeb,ue as isWebTouchable,Qe as matchMedia,We as mediaObjectToString,ce as mediaQueryConfig,we as mediaState,ze as spacedChildren,Oe as styled,Re as themeable,ke as updateTheme,_e as useDidFinishSSR,Ze as useEvent,Ue as useGet,Je as useIsTouchDevice,qe as useIsomorphicLayoutEffect,Xe as useMedia,eo as useSafeRef,je as useStyle,Ye as useTheme,$e as useThemeName,Me as variableToString,He as withStaticProperties};
|
|
171
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["export * from './setup'\n\nexport * from '@tamagui/adapt'\nexport * from '@tamagui/alert-dialog'\nexport * from '@tamagui/animate-presence'\nexport * from '@tamagui/avatar'\nexport * from '@tamagui/button'\nexport * from '@tamagui/card'\nexport * from '@tamagui/compose-refs'\nexport * from '@tamagui/create-context'\nexport * from '@tamagui/dialog'\nexport * from '@tamagui/font-size'\nexport * from '@tamagui/form'\nexport * from '@tamagui/group'\nexport * from '@tamagui/helpers-tamagui'\nexport * from '@tamagui/image'\nexport * from '@tamagui/label'\nexport * from '@tamagui/list-item'\nexport * from '@tamagui/popover'\nexport * from '@tamagui/popper'\nexport * from '@tamagui/portal'\nexport * from '@tamagui/progress'\nexport * from '@tamagui/radio-group'\nexport * from '@tamagui/scroll-view'\nexport * from '@tamagui/select'\nexport * from '@tamagui/separator'\nexport * from '@tamagui/shapes'\nexport * from '@tamagui/sheet'\nexport * from '@tamagui/slider'\nexport * from '@tamagui/stacks'\nexport * from '@tamagui/switch'\nexport * from '@tamagui/toggle-group'\nexport * from '@tamagui/text'\nexport * from '@tamagui/tabs'\nexport * from '@tamagui/tooltip'\nexport * from '@tamagui/use-controllable-state'\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\nexport * from '@tamagui/use-window-dimensions'\nexport * from '@tamagui/visually-hidden'\nexport * from '@tamagui/checkbox'\n\nexport * from './createTamagui'\n\nexport * from './views/TamaguiProvider'\nexport * from './viewTypes'\n\nexport * from './views/Anchor'\nexport * from './views/EnsureFlexed'\nexport * from './views/Fieldset'\nexport * from './views/Grid'\nexport * from './views/Input'\nexport * from './views/Layouts'\n// export * from './views/Skeleton'\nexport * from './views/Spinner'\nexport * from './views/TextArea'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport type {\n AnimationKeys,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontColorTokens,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontStyleTokens,\n FontTokens,\n FontTransformTokens,\n FontWeightTokens,\n GenericFont,\n GenericTamaguiConfig,\n GetAnimationKeys,\n GetProps,\n GetVariantProps,\n GenericTextVariants,\n GenericStackVariants,\n Media,\n MediaPropKeys,\n MediaQueries,\n MediaQueryState,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n SpacerProps,\n StackPropsBase,\n TamaguiElement,\n StackNonStyleProps,\n StaticConfig,\n StaticConfigParsed,\n TamaguiBaseTheme,\n TamaguiComponent,\n TamaguiComponentPropsBase,\n TamaguiConfig,\n FontLanguages,\n TamaguiCustomConfig,\n TamaguiInternalConfig,\n TamaguiProviderProps,\n TextProps,\n TextPropsBase,\n TextNonStyleProps,\n ThemeKeys,\n ThemeName,\n ThemeParsed,\n ThemeProps,\n Themes,\n ThemeValueFallback,\n Tokens,\n TransformStyleProps,\n VariantSpreadExtras,\n VariantSpreadFunction,\n ZIndexTokens,\n} from '@tamagui/core'\n\nexport {\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n FontLanguage,\n Unspaced,\n // context,\n TextAncestorContext,\n AnimationDriverProvider,\n // constants\n isChrome,\n isClient,\n isServer,\n isTouchable,\n isWeb,\n isWebTouchable,\n mediaQueryConfig,\n createComponent,\n createFont,\n createShorthands,\n createTheme,\n addTheme,\n updateTheme,\n createTokens,\n createVariable,\n getConfig,\n getAnimationDriver,\n getMedia,\n getStylesAtomic,\n getThemes,\n getTokens,\n getVariable,\n variableToString,\n getVariableValue,\n getVariableName,\n insertFont,\n isTamaguiElement,\n isTamaguiComponent,\n isVariable,\n matchMedia,\n mediaObjectToString,\n mediaState,\n spacedChildren,\n styled,\n themeable,\n useStyle,\n withStaticProperties,\n // hooks\n useGet,\n useEvent,\n useDidFinishSSR,\n useIsomorphicLayoutEffect,\n useIsTouchDevice,\n useMedia,\n useTheme,\n useThemeName,\n useSafeRef,\n} from '@tamagui/core'\n\nexport function LinearGradient(props: never) {\n if (process.env.NODE_ENV === 'development') {\n console.warn(`LinearGradient has been moved to tamagui/linear-gradient as of 1.1`)\n }\n return null\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,WAAc,UAEd,WAAc,iBACd,WAAc,wBACd,WAAc,4BACd,WAAc,kBACd,WAAc,kBACd,WAAc,gBACd,WAAc,wBACd,WAAc,0BACd,WAAc,kBACd,WAAc,qBACd,WAAc,gBACd,WAAc,iBACd,WAAc,2BACd,WAAc,iBACd,WAAc,iBACd,WAAc,qBACd,WAAc,mBACd,WAAc,kBACd,WAAc,kBACd,WAAc,oBACd,WAAc,uBACd,WAAc,uBACd,WAAc,kBACd,WAAc,qBACd,WAAc,kBACd,WAAc,iBACd,WAAc,kBACd,WAAc,kBACd,WAAc,kBACd,WAAc,wBACd,WAAc,gBACd,WAAc,gBACd,WAAc,mBACd,WAAc,kCACd,WAAc,wBACd,WAAc,4BACd,WAAc,iCACd,WAAc,2BACd,WAAc,oBAEd,WAAc,kBAEd,WAAc,0BACd,WAAc,cAEd,WAAc,iBACd,WAAc,uBACd,WAAc,mBACd,WAAc,eACd,WAAc,gBACd,WAAc,kBAEd,WAAc,kBACd,WAAc,mBA6Dd,OAEE,UAAAA,GACA,SAAAC,GACA,QAAAC,GACA,SAAAC,GACA,gBAAAC,GACA,YAAAC,GAEA,uBAAAC,GACA,2BAAAC,GAEA,YAAAC,GACA,YAAAC,GACA,YAAAC,GACA,eAAAC,GACA,SAAAC,GACA,kBAAAC,GACA,oBAAAC,GACA,mBAAAC,GACA,cAAAC,GACA,oBAAAC,GACA,eAAAC,GACA,YAAAC,GACA,eAAAC,GACA,gBAAAC,GACA,kBAAAC,GACA,aAAAC,GACA,sBAAAC,GACA,YAAAC,GACA,mBAAAC,GACA,aAAAC,GACA,aAAAC,GACA,eAAAC,GACA,oBAAAC,GACA,oBAAAC,GACA,mBAAAC,GACA,cAAAC,GACA,oBAAAC,GACA,sBAAAC,GACA,cAAAC,GACA,cAAAC,GACA,uBAAAC,GACA,cAAAC,GACA,kBAAAC,GACA,UAAAC,GACA,aAAAC,GACA,YAAAC,GACA,wBAAAC,GAEA,UAAAC,GACA,YAAAC,GACA,mBAAAC,GACA,6BAAAC,GACA,oBAAAC,GACA,YAAAC,GACA,YAAAC,GACA,gBAAAC,GACA,cAAAC,OACK,gBAEA,SAASC,EAAeC,EAAc,CAC3C,OAAI,QAAQ,IAAI,WAAa,eAC3B,QAAQ,KAAK,oEAAoE,EAE5E,IACT",
|
|
6
|
+
"names": ["Spacer", "Stack", "Text", "Theme", "FontLanguage", "Unspaced", "TextAncestorContext", "AnimationDriverProvider", "isChrome", "isClient", "isServer", "isTouchable", "isWeb", "isWebTouchable", "mediaQueryConfig", "createComponent", "createFont", "createShorthands", "createTheme", "addTheme", "updateTheme", "createTokens", "createVariable", "getConfig", "getAnimationDriver", "getMedia", "getStylesAtomic", "getThemes", "getTokens", "getVariable", "variableToString", "getVariableValue", "getVariableName", "insertFont", "isTamaguiElement", "isTamaguiComponent", "isVariable", "matchMedia", "mediaObjectToString", "mediaState", "spacedChildren", "styled", "themeable", "useStyle", "withStaticProperties", "useGet", "useEvent", "useDidFinishSSR", "useIsomorphicLayoutEffect", "useIsTouchDevice", "useMedia", "useTheme", "useThemeName", "useSafeRef", "LinearGradient", "props"]
|
|
7
7
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,171 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "@tamagui/adapt";
|
|
3
|
-
export * from "@tamagui/alert-dialog";
|
|
4
|
-
export * from "@tamagui/animate-presence";
|
|
5
|
-
export * from "@tamagui/avatar";
|
|
6
|
-
export * from "@tamagui/button";
|
|
7
|
-
export * from "@tamagui/card";
|
|
8
|
-
export * from "@tamagui/compose-refs";
|
|
9
|
-
export * from "@tamagui/create-context";
|
|
10
|
-
export * from "@tamagui/dialog";
|
|
11
|
-
export * from "@tamagui/font-size";
|
|
12
|
-
export * from "@tamagui/form";
|
|
13
|
-
export * from "@tamagui/group";
|
|
14
|
-
export * from "@tamagui/helpers-tamagui";
|
|
15
|
-
export * from "@tamagui/image";
|
|
16
|
-
export * from "@tamagui/label";
|
|
17
|
-
export * from "@tamagui/list-item";
|
|
18
|
-
export * from "@tamagui/popover";
|
|
19
|
-
export * from "@tamagui/popper";
|
|
20
|
-
export * from "@tamagui/portal";
|
|
21
|
-
export * from "@tamagui/progress";
|
|
22
|
-
export * from "@tamagui/radio-group";
|
|
23
|
-
export * from "@tamagui/scroll-view";
|
|
24
|
-
export * from "@tamagui/select";
|
|
25
|
-
export * from "@tamagui/separator";
|
|
26
|
-
export * from "@tamagui/shapes";
|
|
27
|
-
export * from "@tamagui/sheet";
|
|
28
|
-
export * from "@tamagui/slider";
|
|
29
|
-
export * from "@tamagui/stacks";
|
|
30
|
-
export * from "@tamagui/switch";
|
|
31
|
-
export * from "@tamagui/toggle-group";
|
|
32
|
-
export * from "@tamagui/text";
|
|
33
|
-
export * from "@tamagui/tabs";
|
|
34
|
-
export * from "@tamagui/tooltip";
|
|
35
|
-
export * from "@tamagui/use-controllable-state";
|
|
36
|
-
export * from "@tamagui/use-debounce";
|
|
37
|
-
export * from "@tamagui/use-force-update";
|
|
38
|
-
export * from "@tamagui/use-window-dimensions";
|
|
39
|
-
export * from "@tamagui/visually-hidden";
|
|
40
|
-
export * from "@tamagui/checkbox";
|
|
41
|
-
export * from "./createTamagui";
|
|
42
|
-
export * from "./views/TamaguiProvider";
|
|
43
|
-
export * from "./viewTypes";
|
|
44
|
-
export * from "./views/Anchor";
|
|
45
|
-
export * from "./views/EnsureFlexed";
|
|
46
|
-
export * from "./views/Fieldset";
|
|
47
|
-
export * from "./views/Grid";
|
|
48
|
-
export * from "./views/Input";
|
|
49
|
-
export * from "./views/Layouts";
|
|
50
|
-
export * from "./views/Spinner";
|
|
51
|
-
export * from "./views/TextArea";
|
|
52
|
-
import {
|
|
53
|
-
Spacer,
|
|
54
|
-
Stack,
|
|
55
|
-
Text,
|
|
56
|
-
Theme,
|
|
57
|
-
FontLanguage,
|
|
58
|
-
Unspaced,
|
|
59
|
-
TextAncestorContext,
|
|
60
|
-
AnimationDriverProvider,
|
|
61
|
-
isChrome,
|
|
62
|
-
isClient,
|
|
63
|
-
isServer,
|
|
64
|
-
isTouchable,
|
|
65
|
-
isWeb,
|
|
66
|
-
isWebTouchable,
|
|
67
|
-
mediaQueryConfig,
|
|
68
|
-
createComponent,
|
|
69
|
-
createFont,
|
|
70
|
-
createShorthands,
|
|
71
|
-
createTheme,
|
|
72
|
-
addTheme,
|
|
73
|
-
updateTheme,
|
|
74
|
-
createTokens,
|
|
75
|
-
createVariable,
|
|
76
|
-
getConfig,
|
|
77
|
-
getAnimationDriver,
|
|
78
|
-
getMedia,
|
|
79
|
-
getStylesAtomic,
|
|
80
|
-
getThemes,
|
|
81
|
-
getTokens,
|
|
82
|
-
getVariable,
|
|
83
|
-
variableToString,
|
|
84
|
-
getVariableValue,
|
|
85
|
-
getVariableName,
|
|
86
|
-
insertFont,
|
|
87
|
-
isTamaguiElement,
|
|
88
|
-
isTamaguiComponent,
|
|
89
|
-
isVariable,
|
|
90
|
-
matchMedia,
|
|
91
|
-
mediaObjectToString,
|
|
92
|
-
mediaState,
|
|
93
|
-
spacedChildren,
|
|
94
|
-
styled,
|
|
95
|
-
themeable,
|
|
96
|
-
useStyle,
|
|
97
|
-
withStaticProperties,
|
|
98
|
-
useGet,
|
|
99
|
-
useEvent,
|
|
100
|
-
useDidFinishSSR,
|
|
101
|
-
useIsomorphicLayoutEffect,
|
|
102
|
-
useIsTouchDevice,
|
|
103
|
-
useMedia,
|
|
104
|
-
useTheme,
|
|
105
|
-
useThemeName,
|
|
106
|
-
useSafeRef
|
|
107
|
-
} from "@tamagui/core";
|
|
108
|
-
function LinearGradient(props) {
|
|
109
|
-
if (process.env.NODE_ENV === "development") {
|
|
110
|
-
console.warn(`LinearGradient has been moved to tamagui/linear-gradient as of 1.1`);
|
|
111
|
-
}
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
export {
|
|
115
|
-
AnimationDriverProvider,
|
|
116
|
-
FontLanguage,
|
|
117
|
-
LinearGradient,
|
|
118
|
-
Spacer,
|
|
119
|
-
Stack,
|
|
120
|
-
Text,
|
|
121
|
-
TextAncestorContext,
|
|
122
|
-
Theme,
|
|
123
|
-
Unspaced,
|
|
124
|
-
addTheme,
|
|
125
|
-
createComponent,
|
|
126
|
-
createFont,
|
|
127
|
-
createShorthands,
|
|
128
|
-
createTheme,
|
|
129
|
-
createTokens,
|
|
130
|
-
createVariable,
|
|
131
|
-
getAnimationDriver,
|
|
132
|
-
getConfig,
|
|
133
|
-
getMedia,
|
|
134
|
-
getStylesAtomic,
|
|
135
|
-
getThemes,
|
|
136
|
-
getTokens,
|
|
137
|
-
getVariable,
|
|
138
|
-
getVariableName,
|
|
139
|
-
getVariableValue,
|
|
140
|
-
insertFont,
|
|
141
|
-
isChrome,
|
|
142
|
-
isClient,
|
|
143
|
-
isServer,
|
|
144
|
-
isTamaguiComponent,
|
|
145
|
-
isTamaguiElement,
|
|
146
|
-
isTouchable,
|
|
147
|
-
isVariable,
|
|
148
|
-
isWeb,
|
|
149
|
-
isWebTouchable,
|
|
150
|
-
matchMedia,
|
|
151
|
-
mediaObjectToString,
|
|
152
|
-
mediaQueryConfig,
|
|
153
|
-
mediaState,
|
|
154
|
-
spacedChildren,
|
|
155
|
-
styled,
|
|
156
|
-
themeable,
|
|
157
|
-
updateTheme,
|
|
158
|
-
useDidFinishSSR,
|
|
159
|
-
useEvent,
|
|
160
|
-
useGet,
|
|
161
|
-
useIsTouchDevice,
|
|
162
|
-
useIsomorphicLayoutEffect,
|
|
163
|
-
useMedia,
|
|
164
|
-
useSafeRef,
|
|
165
|
-
useStyle,
|
|
166
|
-
useTheme,
|
|
167
|
-
useThemeName,
|
|
168
|
-
variableToString,
|
|
169
|
-
withStaticProperties
|
|
170
|
-
};
|
|
1
|
+
export*from"./setup";export*from"@tamagui/adapt";export*from"@tamagui/alert-dialog";export*from"@tamagui/animate-presence";export*from"@tamagui/avatar";export*from"@tamagui/button";export*from"@tamagui/card";export*from"@tamagui/compose-refs";export*from"@tamagui/create-context";export*from"@tamagui/dialog";export*from"@tamagui/font-size";export*from"@tamagui/form";export*from"@tamagui/group";export*from"@tamagui/helpers-tamagui";export*from"@tamagui/image";export*from"@tamagui/label";export*from"@tamagui/list-item";export*from"@tamagui/popover";export*from"@tamagui/popper";export*from"@tamagui/portal";export*from"@tamagui/progress";export*from"@tamagui/radio-group";export*from"@tamagui/scroll-view";export*from"@tamagui/select";export*from"@tamagui/separator";export*from"@tamagui/shapes";export*from"@tamagui/sheet";export*from"@tamagui/slider";export*from"@tamagui/stacks";export*from"@tamagui/switch";export*from"@tamagui/toggle-group";export*from"@tamagui/text";export*from"@tamagui/tabs";export*from"@tamagui/tooltip";export*from"@tamagui/use-controllable-state";export*from"@tamagui/use-debounce";export*from"@tamagui/use-force-update";export*from"@tamagui/use-window-dimensions";export*from"@tamagui/visually-hidden";export*from"@tamagui/checkbox";export*from"./createTamagui";export*from"./views/TamaguiProvider";export*from"./viewTypes";export*from"./views/Anchor";export*from"./views/EnsureFlexed";export*from"./views/Fieldset";export*from"./views/Grid";export*from"./views/Input";export*from"./views/Layouts";export*from"./views/Spinner";export*from"./views/TextArea";import{Spacer as oe,Stack as re,Text as te,Theme as ae,FontLanguage as me,Unspaced as ne,TextAncestorContext as ie,AnimationDriverProvider as pe,isChrome as se,isClient as fe,isServer as xe,isTouchable as Te,isWeb as ge,isWebTouchable as ue,mediaQueryConfig as ce,createComponent as de,createFont as le,createShorthands as he,createTheme as Se,addTheme as Ce,updateTheme as ke,createTokens as Pe,createVariable as Fe,getConfig as ye,getAnimationDriver as be,getMedia as Ve,getStylesAtomic as ve,getThemes as Ge,getTokens as Ee,getVariable as Le,variableToString as Me,getVariableValue as Ne,getVariableName as Ae,insertFont as De,isTamaguiElement as Be,isTamaguiComponent as Ie,isVariable as Ke,matchMedia as Qe,mediaObjectToString as We,mediaState as we,spacedChildren as ze,styled as Oe,themeable as Re,useStyle as je,withStaticProperties as He,useGet as Ue,useEvent as Ze,useDidFinishSSR as _e,useIsomorphicLayoutEffect as qe,useIsTouchDevice as Je,useMedia as Xe,useTheme as Ye,useThemeName as $e,useSafeRef as eo}from"@tamagui/core";function o(e){return process.env.NODE_ENV==="development"&&console.warn("LinearGradient has been moved to tamagui/linear-gradient as of 1.1"),null}export{pe as AnimationDriverProvider,me as FontLanguage,o as LinearGradient,oe as Spacer,re as Stack,te as Text,ie as TextAncestorContext,ae as Theme,ne as Unspaced,Ce as addTheme,de as createComponent,le as createFont,he as createShorthands,Se as createTheme,Pe as createTokens,Fe as createVariable,be as getAnimationDriver,ye as getConfig,Ve as getMedia,ve as getStylesAtomic,Ge as getThemes,Ee as getTokens,Le as getVariable,Ae as getVariableName,Ne as getVariableValue,De as insertFont,se as isChrome,fe as isClient,xe as isServer,Ie as isTamaguiComponent,Be as isTamaguiElement,Te as isTouchable,Ke as isVariable,ge as isWeb,ue as isWebTouchable,Qe as matchMedia,We as mediaObjectToString,ce as mediaQueryConfig,we as mediaState,ze as spacedChildren,Oe as styled,Re as themeable,ke as updateTheme,_e as useDidFinishSSR,Ze as useEvent,Ue as useGet,Je as useIsTouchDevice,qe as useIsomorphicLayoutEffect,Xe as useMedia,eo as useSafeRef,je as useStyle,Ye as useTheme,$e as useThemeName,Me as variableToString,He as withStaticProperties};
|
|
171
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["export * from './setup'\n\nexport * from '@tamagui/adapt'\nexport * from '@tamagui/alert-dialog'\nexport * from '@tamagui/animate-presence'\nexport * from '@tamagui/avatar'\nexport * from '@tamagui/button'\nexport * from '@tamagui/card'\nexport * from '@tamagui/compose-refs'\nexport * from '@tamagui/create-context'\nexport * from '@tamagui/dialog'\nexport * from '@tamagui/font-size'\nexport * from '@tamagui/form'\nexport * from '@tamagui/group'\nexport * from '@tamagui/helpers-tamagui'\nexport * from '@tamagui/image'\nexport * from '@tamagui/label'\nexport * from '@tamagui/list-item'\nexport * from '@tamagui/popover'\nexport * from '@tamagui/popper'\nexport * from '@tamagui/portal'\nexport * from '@tamagui/progress'\nexport * from '@tamagui/radio-group'\nexport * from '@tamagui/scroll-view'\nexport * from '@tamagui/select'\nexport * from '@tamagui/separator'\nexport * from '@tamagui/shapes'\nexport * from '@tamagui/sheet'\nexport * from '@tamagui/slider'\nexport * from '@tamagui/stacks'\nexport * from '@tamagui/switch'\nexport * from '@tamagui/toggle-group'\nexport * from '@tamagui/text'\nexport * from '@tamagui/tabs'\nexport * from '@tamagui/tooltip'\nexport * from '@tamagui/use-controllable-state'\nexport * from '@tamagui/use-debounce'\nexport * from '@tamagui/use-force-update'\nexport * from '@tamagui/use-window-dimensions'\nexport * from '@tamagui/visually-hidden'\nexport * from '@tamagui/checkbox'\n\nexport * from './createTamagui'\n\nexport * from './views/TamaguiProvider'\nexport * from './viewTypes'\n\nexport * from './views/Anchor'\nexport * from './views/EnsureFlexed'\nexport * from './views/Fieldset'\nexport * from './views/Grid'\nexport * from './views/Input'\nexport * from './views/Layouts'\n// export * from './views/Skeleton'\nexport * from './views/Spinner'\nexport * from './views/TextArea'\n\n// since we overlap with StackProps and potentially others\n// lets be explicit on what gets exported\nexport type {\n AnimationKeys,\n ColorTokens,\n CreateTamaguiConfig,\n CreateTamaguiProps,\n FontColorTokens,\n FontLetterSpacingTokens,\n FontLineHeightTokens,\n FontSizeTokens,\n FontStyleTokens,\n FontTokens,\n FontTransformTokens,\n FontWeightTokens,\n GenericFont,\n GenericTamaguiConfig,\n GetAnimationKeys,\n GetProps,\n GetVariantProps,\n GenericTextVariants,\n GenericStackVariants,\n Media,\n MediaPropKeys,\n MediaQueries,\n MediaQueryState,\n Shorthands,\n SizeTokens,\n SpaceTokens,\n SpacerProps,\n StackPropsBase,\n TamaguiElement,\n StackNonStyleProps,\n StaticConfig,\n StaticConfigParsed,\n TamaguiBaseTheme,\n TamaguiComponent,\n TamaguiComponentPropsBase,\n TamaguiConfig,\n FontLanguages,\n TamaguiCustomConfig,\n TamaguiInternalConfig,\n TamaguiProviderProps,\n TextProps,\n TextPropsBase,\n TextNonStyleProps,\n ThemeKeys,\n ThemeName,\n ThemeParsed,\n ThemeProps,\n Themes,\n ThemeValueFallback,\n Tokens,\n TransformStyleProps,\n VariantSpreadExtras,\n VariantSpreadFunction,\n ZIndexTokens,\n} from '@tamagui/core'\n\nexport {\n // components\n Spacer,\n Stack,\n Text,\n Theme,\n FontLanguage,\n Unspaced,\n // context,\n TextAncestorContext,\n AnimationDriverProvider,\n // constants\n isChrome,\n isClient,\n isServer,\n isTouchable,\n isWeb,\n isWebTouchable,\n mediaQueryConfig,\n createComponent,\n createFont,\n createShorthands,\n createTheme,\n addTheme,\n updateTheme,\n createTokens,\n createVariable,\n getConfig,\n getAnimationDriver,\n getMedia,\n getStylesAtomic,\n getThemes,\n getTokens,\n getVariable,\n variableToString,\n getVariableValue,\n getVariableName,\n insertFont,\n isTamaguiElement,\n isTamaguiComponent,\n isVariable,\n matchMedia,\n mediaObjectToString,\n mediaState,\n spacedChildren,\n styled,\n themeable,\n useStyle,\n withStaticProperties,\n // hooks\n useGet,\n useEvent,\n useDidFinishSSR,\n useIsomorphicLayoutEffect,\n useIsTouchDevice,\n useMedia,\n useTheme,\n useThemeName,\n useSafeRef,\n} from '@tamagui/core'\n\nexport function LinearGradient(props: never) {\n if (process.env.NODE_ENV === 'development') {\n console.warn(`LinearGradient has been moved to tamagui/linear-gradient as of 1.1`)\n }\n return null\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,WAAc,UAEd,WAAc,iBACd,WAAc,wBACd,WAAc,4BACd,WAAc,kBACd,WAAc,kBACd,WAAc,gBACd,WAAc,wBACd,WAAc,0BACd,WAAc,kBACd,WAAc,qBACd,WAAc,gBACd,WAAc,iBACd,WAAc,2BACd,WAAc,iBACd,WAAc,iBACd,WAAc,qBACd,WAAc,mBACd,WAAc,kBACd,WAAc,kBACd,WAAc,oBACd,WAAc,uBACd,WAAc,uBACd,WAAc,kBACd,WAAc,qBACd,WAAc,kBACd,WAAc,iBACd,WAAc,kBACd,WAAc,kBACd,WAAc,kBACd,WAAc,wBACd,WAAc,gBACd,WAAc,gBACd,WAAc,mBACd,WAAc,kCACd,WAAc,wBACd,WAAc,4BACd,WAAc,iCACd,WAAc,2BACd,WAAc,oBAEd,WAAc,kBAEd,WAAc,0BACd,WAAc,cAEd,WAAc,iBACd,WAAc,uBACd,WAAc,mBACd,WAAc,eACd,WAAc,gBACd,WAAc,kBAEd,WAAc,kBACd,WAAc,mBA6Dd,OAEE,UAAAA,GACA,SAAAC,GACA,QAAAC,GACA,SAAAC,GACA,gBAAAC,GACA,YAAAC,GAEA,uBAAAC,GACA,2BAAAC,GAEA,YAAAC,GACA,YAAAC,GACA,YAAAC,GACA,eAAAC,GACA,SAAAC,GACA,kBAAAC,GACA,oBAAAC,GACA,mBAAAC,GACA,cAAAC,GACA,oBAAAC,GACA,eAAAC,GACA,YAAAC,GACA,eAAAC,GACA,gBAAAC,GACA,kBAAAC,GACA,aAAAC,GACA,sBAAAC,GACA,YAAAC,GACA,mBAAAC,GACA,aAAAC,GACA,aAAAC,GACA,eAAAC,GACA,oBAAAC,GACA,oBAAAC,GACA,mBAAAC,GACA,cAAAC,GACA,oBAAAC,GACA,sBAAAC,GACA,cAAAC,GACA,cAAAC,GACA,uBAAAC,GACA,cAAAC,GACA,kBAAAC,GACA,UAAAC,GACA,aAAAC,GACA,YAAAC,GACA,wBAAAC,GAEA,UAAAC,GACA,YAAAC,GACA,mBAAAC,GACA,6BAAAC,GACA,oBAAAC,GACA,YAAAC,GACA,YAAAC,GACA,gBAAAC,GACA,cAAAC,OACK,gBAEA,SAASC,EAAeC,EAAc,CAC3C,OAAI,QAAQ,IAAI,WAAa,eAC3B,QAAQ,KAAK,oEAAoE,EAE5E,IACT",
|
|
6
|
+
"names": ["Spacer", "Stack", "Text", "Theme", "FontLanguage", "Unspaced", "TextAncestorContext", "AnimationDriverProvider", "isChrome", "isClient", "isServer", "isTouchable", "isWeb", "isWebTouchable", "mediaQueryConfig", "createComponent", "createFont", "createShorthands", "createTheme", "addTheme", "updateTheme", "createTokens", "createVariable", "getConfig", "getAnimationDriver", "getMedia", "getStylesAtomic", "getThemes", "getTokens", "getVariable", "variableToString", "getVariableValue", "getVariableName", "insertFont", "isTamaguiElement", "isTamaguiComponent", "isVariable", "matchMedia", "mediaObjectToString", "mediaState", "spacedChildren", "styled", "themeable", "useStyle", "withStaticProperties", "useGet", "useEvent", "useDidFinishSSR", "useIsomorphicLayoutEffect", "useIsTouchDevice", "useMedia", "useTheme", "useThemeName", "useSafeRef", "LinearGradient", "props"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"expo-linear-gradient";
|
|
2
2
|
//# sourceMappingURL=linear-gradient.native.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"expo-linear-gradient";
|
|
2
2
|
//# sourceMappingURL=linear-gradient.native.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"@tamagui/linear-gradient";
|
|
2
2
|
//# sourceMappingURL=linear-gradient.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"@tamagui/linear-gradient";
|
|
2
2
|
//# sourceMappingURL=linear-gradient.mjs.map
|
package/dist/esm/setup.js
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { Text, View } from "react-native";
|
|
4
|
-
globalThis.React = React;
|
|
5
|
-
setupReactNative({
|
|
6
|
-
View,
|
|
7
|
-
Text
|
|
8
|
-
});
|
|
9
|
-
if (typeof requestAnimationFrame === "undefined") {
|
|
10
|
-
globalThis["requestAnimationFrame"] = setImmediate;
|
|
11
|
-
}
|
|
12
|
-
const cancelAnimationFrame = globalThis.cancelAnimationFrame;
|
|
13
|
-
global.cancelAnimationFrame = (x) => {
|
|
14
|
-
try {
|
|
15
|
-
cancelAnimationFrame(x);
|
|
16
|
-
} catch {
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
const idFn = () => {
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
idFn
|
|
23
|
-
};
|
|
1
|
+
import{setupReactNative as a}from"@tamagui/core";import*as t from"react";import{Text as i,View as m}from"react-native";globalThis.React=t,a({View:m,Text:i}),typeof requestAnimationFrame>"u"&&(globalThis.requestAnimationFrame=setImmediate);const n=globalThis.cancelAnimationFrame;global.cancelAnimationFrame=e=>{try{n(e)}catch{}};const c=()=>{};export{c as idFn};
|
|
24
2
|
//# sourceMappingURL=setup.js.map
|
package/dist/esm/setup.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/setup.ts"],
|
|
4
4
|
"sourcesContent": ["import { setupReactNative } from '@tamagui/core'\nimport * as React from 'react'\nimport { Text, View } from 'react-native'\n\nglobalThis.React = React\n\nsetupReactNative({\n View,\n Text,\n})\n\n// for SSR\nif (typeof requestAnimationFrame === 'undefined') {\n globalThis['requestAnimationFrame'] = setImmediate\n}\n\nconst cancelAnimationFrame = globalThis.cancelAnimationFrame\n\n// for vite / Animated.spring()\nglobal.cancelAnimationFrame = (x: number) => {\n try {\n cancelAnimationFrame(x)\n } catch {\n // illegal invocation :/\n }\n}\n\n// need to export something, afraid of tree shaking even with `sideEffects`\nexport const idFn = () => {}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,oBAAAA,MAAwB,gBACjC,UAAYC,MAAW,QACvB,OAAS,QAAAC,EAAM,QAAAC,MAAY,eAE3B,WAAW,MAAQF,EAEnBD,EAAiB,CACf,KAAAG,EACA,KAAAD,CACF,CAAC,EAGG,OAAO,sBAA0B,MACnC,WAAW,sBAA2B,cAGxC,MAAME,EAAuB,WAAW,qBAGxC,OAAO,qBAAwBC,GAAc,CAC3C,GAAI,CACFD,EAAqBC,CAAC,CACxB,MAAE,CAEF,CACF,EAGO,MAAMC,EAAO,IAAM,CAAC",
|
|
6
|
+
"names": ["setupReactNative", "React", "Text", "View", "cancelAnimationFrame", "x", "idFn"]
|
|
7
7
|
}
|
package/dist/esm/setup.mjs
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { Text, View } from "react-native";
|
|
4
|
-
globalThis.React = React;
|
|
5
|
-
setupReactNative({
|
|
6
|
-
View,
|
|
7
|
-
Text
|
|
8
|
-
});
|
|
9
|
-
if (typeof requestAnimationFrame === "undefined") {
|
|
10
|
-
globalThis["requestAnimationFrame"] = setImmediate;
|
|
11
|
-
}
|
|
12
|
-
const cancelAnimationFrame = globalThis.cancelAnimationFrame;
|
|
13
|
-
global.cancelAnimationFrame = (x) => {
|
|
14
|
-
try {
|
|
15
|
-
cancelAnimationFrame(x);
|
|
16
|
-
} catch {
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
const idFn = () => {
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
idFn
|
|
23
|
-
};
|
|
1
|
+
import{setupReactNative as a}from"@tamagui/core";import*as t from"react";import{Text as i,View as m}from"react-native";globalThis.React=t,a({View:m,Text:i}),typeof requestAnimationFrame>"u"&&(globalThis.requestAnimationFrame=setImmediate);const n=globalThis.cancelAnimationFrame;global.cancelAnimationFrame=e=>{try{n(e)}catch{}};const c=()=>{};export{c as idFn};
|
|
24
2
|
//# sourceMappingURL=setup.mjs.map
|
package/dist/esm/setup.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/setup.ts"],
|
|
4
4
|
"sourcesContent": ["import { setupReactNative } from '@tamagui/core'\nimport * as React from 'react'\nimport { Text, View } from 'react-native'\n\nglobalThis.React = React\n\nsetupReactNative({\n View,\n Text,\n})\n\n// for SSR\nif (typeof requestAnimationFrame === 'undefined') {\n globalThis['requestAnimationFrame'] = setImmediate\n}\n\nconst cancelAnimationFrame = globalThis.cancelAnimationFrame\n\n// for vite / Animated.spring()\nglobal.cancelAnimationFrame = (x: number) => {\n try {\n cancelAnimationFrame(x)\n } catch {\n // illegal invocation :/\n }\n}\n\n// need to export something, afraid of tree shaking even with `sideEffects`\nexport const idFn = () => {}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,oBAAAA,MAAwB,gBACjC,UAAYC,MAAW,QACvB,OAAS,QAAAC,EAAM,QAAAC,MAAY,eAE3B,WAAW,MAAQF,EAEnBD,EAAiB,CACf,KAAAG,EACA,KAAAD,CACF,CAAC,EAGG,OAAO,sBAA0B,MACnC,WAAW,sBAA2B,cAGxC,MAAME,EAAuB,WAAW,qBAGxC,OAAO,qBAAwBC,GAAc,CAC3C,GAAI,CACFD,EAAqBC,CAAC,CACxB,MAAE,CAEF,CACF,EAGO,MAAMC,EAAO,IAAM,CAAC",
|
|
6
|
+
"names": ["setupReactNative", "React", "Text", "View", "cancelAnimationFrame", "x", "idFn"]
|
|
7
7
|
}
|
package/dist/esm/views/Anchor.js
CHANGED
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { isWeb, styled } from "@tamagui/core";
|
|
3
|
-
import { SizableText } from "@tamagui/text";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
import { Linking } from "react-native";
|
|
6
|
-
const AnchorFrame = styled(SizableText, {
|
|
7
|
-
name: "Anchor",
|
|
8
|
-
tag: "a",
|
|
9
|
-
accessibilityRole: "link"
|
|
10
|
-
});
|
|
11
|
-
const Anchor = AnchorFrame.extractable(
|
|
12
|
-
forwardRef(({ href, target, ...props }, ref) => {
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
AnchorFrame,
|
|
15
|
-
{
|
|
16
|
-
...props,
|
|
17
|
-
...isWeb ? {
|
|
18
|
-
href,
|
|
19
|
-
target
|
|
20
|
-
} : {
|
|
21
|
-
onPress: (event) => {
|
|
22
|
-
var _a;
|
|
23
|
-
(_a = props.onPress) == null ? void 0 : _a.call(props, event);
|
|
24
|
-
if (href !== void 0) {
|
|
25
|
-
Linking.openURL(href);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
ref
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
})
|
|
33
|
-
);
|
|
34
|
-
export {
|
|
35
|
-
Anchor
|
|
36
|
-
};
|
|
1
|
+
import{jsx as g}from"react/jsx-runtime";import{isWeb as m,styled as c}from"@tamagui/core";import{SizableText as s}from"@tamagui/text";import{forwardRef as l}from"react";import{Linking as f}from"react-native";const o=c(s,{name:"Anchor",tag:"a",accessibilityRole:"link"}),p=o.extractable(l(({href:t,target:r,...e},i)=>g(o,{...e,...m?{href:t,target:r}:{onPress:a=>{var n;(n=e.onPress)==null||n.call(e,a),t!==void 0&&f.openURL(t)}},ref:i})));export{p as Anchor};
|
|
37
2
|
//# sourceMappingURL=Anchor.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Anchor.tsx"],
|
|
4
4
|
"sourcesContent": ["import { ReactComponentWithRef, TamaguiElement, isWeb, styled } from '@tamagui/core'\nimport { SizableText, SizableTextProps } from '@tamagui/text'\nimport React, { forwardRef } from 'react'\nimport { Linking } from 'react-native'\n\nexport type AnchorProps = SizableTextProps & {\n href?: string\n target?: string\n rel?: string\n}\n\nconst AnchorFrame = styled(SizableText, {\n name: 'Anchor',\n tag: 'a',\n accessibilityRole: 'link',\n})\n\nexport const Anchor: ReactComponentWithRef<AnchorProps, TamaguiElement> =\n AnchorFrame.extractable(\n forwardRef(({ href, target, ...props }, ref) => {\n return (\n <AnchorFrame\n {...props}\n {...(isWeb\n ? {\n href,\n target,\n }\n : {\n onPress: (event) => {\n props.onPress?.(event)\n if (href !== undefined) {\n Linking.openURL(href)\n }\n },\n })}\n ref={ref as any}\n />\n )\n })\n )\n"],
|
|
5
|
-
"mappings": "AAqBQ
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAqBQ,cAAAA,MAAA,oBArBR,OAAgD,SAAAC,EAAO,UAAAC,MAAc,gBACrE,OAAS,eAAAC,MAAqC,gBAC9C,OAAgB,cAAAC,MAAkB,QAClC,OAAS,WAAAC,MAAe,eAQxB,MAAMC,EAAcJ,EAAOC,EAAa,CACtC,KAAM,SACN,IAAK,IACL,kBAAmB,MACrB,CAAC,EAEYI,EACXD,EAAY,YACVF,EAAW,CAAC,CAAE,KAAAI,EAAM,OAAAC,EAAQ,GAAGC,CAAM,EAAGC,IAEpCX,EAACM,EAAA,CACE,GAAGI,EACH,GAAIT,EACD,CACE,KAAAO,EACA,OAAAC,CACF,EACA,CACE,QAAUG,GAAU,CA7BpC,IAAAC,GA8BkBA,EAAAH,EAAM,UAAN,MAAAG,EAAA,KAAAH,EAAgBE,GACZJ,IAAS,QACXH,EAAQ,QAAQG,CAAI,CAExB,CACF,EACJ,IAAKG,EACP,CAEH,CACH",
|
|
6
|
+
"names": ["jsx", "isWeb", "styled", "SizableText", "forwardRef", "Linking", "AnchorFrame", "Anchor", "href", "target", "props", "ref", "event", "_a"]
|
|
7
7
|
}
|