@tamagui/stacks 1.0.1-beta.99 → 1.0.1-rc.0
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/SizableStack.js +3 -1
- package/dist/cjs/SizableStack.js.map +2 -2
- package/dist/cjs/Stacks.js +14 -8
- package/dist/cjs/Stacks.js.map +3 -3
- package/dist/cjs/ThemeableStack.js +12 -4
- package/dist/cjs/ThemeableStack.js.map +2 -2
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/variants.js +19 -30
- package/dist/cjs/variants.js.map +2 -2
- package/dist/esm/SizableStack.js +3 -2
- package/dist/esm/SizableStack.js.map +2 -2
- package/dist/esm/Stacks.js +13 -8
- package/dist/esm/Stacks.js.map +3 -3
- package/dist/esm/ThemeableStack.js +11 -4
- package/dist/esm/ThemeableStack.js.map +2 -2
- package/dist/esm/index.js +0 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/variants.js +18 -32
- package/dist/esm/variants.js.map +2 -2
- package/dist/jsx/.tamagui-dynamic-eval-SizableStack.js.js +23 -0
- package/dist/jsx/SizableStack.js +3 -2
- package/dist/jsx/SizableStack.js.map +2 -2
- package/dist/jsx/Stacks.js +13 -8
- package/dist/jsx/Stacks.js.map +3 -3
- package/dist/jsx/ThemeableStack.js +11 -4
- package/dist/jsx/ThemeableStack.js.map +2 -2
- package/dist/jsx/index.js +0 -0
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/variants.js +1 -2
- package/dist/jsx/variants.js.map +2 -2
- package/package.json +11 -8
- package/src/SizableStack.tsx +4 -3
- package/src/Stacks.tsx +4 -1
- package/src/ThemeableStack.tsx +13 -5
- package/src/variants.tsx +1 -2
- package/types/SizableStack.d.ts +36 -36
- package/types/Stacks.d.ts +20 -17
- package/types/ThemeableStack.d.ts +52 -52
- package/types/index.d.ts +0 -0
- package/types/variants.d.ts +126 -111
- package/dist/cjs/ThemeableSizableStack.js +0 -70
- package/dist/cjs/ThemeableSizableStack.js.map +0 -7
- package/dist/esm/ThemeableSizableStack.js +0 -47
- package/dist/esm/ThemeableSizableStack.js.map +0 -7
- package/dist/jsx/ThemeableSizableStack.js +0 -46
- package/types/SizableStack.d.ts.map +0 -1
- package/types/Stacks.d.ts.map +0 -1
- package/types/ThemeableSizableStack.d.ts +0 -68
- package/types/ThemeableSizableStack.d.ts.map +0 -1
- package/types/ThemeableStack.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/variants.d.ts.map +0 -1
package/dist/jsx/Stacks.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Stacks.tsx"],
|
|
4
|
-
"sourcesContent": ["import {\n GetProps,\n SizeTokens,\n SizeVariantSpreadFunction,\n Stack,\n StackProps,\n VariantSpreadExtras,\n getVariableValue,\n isVariable,\n styled,\n} from '@tamagui/core'\n\nexport type YStackProps = GetProps<typeof YStack>\nexport type XStackProps = YStackProps\nexport type ZStackProps = YStackProps\n\nexport const getElevation: SizeVariantSpreadFunction<StackProps> = (size, extras) => {\n if (!size) return\n const { tokens } = extras\n const token = tokens.size[size]\n const sizeNum = (isVariable(token) ? +token.val : size) as number\n return getSizedElevation(sizeNum, extras)\n}\n\nconst fullscreenStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n} as const\n\nconst variants = {\n fullscreen: {\n true: fullscreenStyle,\n },\n elevation: {\n '...size': getElevation,\n },\n} as const\n\nexport const YStack = styled(Stack, {\n flexDirection: 'column',\n name: 'YStack',\n variants,\n})\n\nexport const XStack = styled(Stack, {\n flexDirection: 'row',\n name: 'XStack',\n variants,\n})\n\nexport const ZStack = styled(\n YStack,\n {\n name: 'ZStack',\n position: 'relative',\n },\n {\n neverFlatten: true,\n isZStack: true,\n }\n)\n\nexport const getSizedElevation = (\n val: SizeTokens | number | boolean,\n { theme, tokens }: VariantSpreadExtras<any>\n) => {\n let num = 0\n if (val === true) {\n const val = getVariableValue(tokens.size['true'])\n if (typeof val === 'number') {\n num = val\n } else {\n num = 10\n }\n } else {\n num = +val\n }\n if (process.env.NODE_ENV === 'development') {\n if (isNaN(num)) console.warn('NaN shadow', num, val)\n }\n const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)]\n const shadow = {\n shadowColor: theme.shadowColor,\n shadowRadius,\n shadowOffset: { height, width: 0 },\n }\n return shadow\n}\n"],
|
|
5
|
-
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import {\n GetProps,\n SizeTokens,\n SizeVariantSpreadFunction,\n Stack,\n StackProps,\n VariantSpreadExtras,\n getVariableValue,\n isVariable,\n styled,\n} from '@tamagui/core'\n\nexport type YStackProps = GetProps<typeof YStack>\nexport type XStackProps = YStackProps\nexport type ZStackProps = YStackProps\n\nexport const getElevation: SizeVariantSpreadFunction<StackProps> = (size, extras) => {\n if (!size) return\n const { tokens } = extras\n const token = tokens.size[size]\n const sizeNum = (isVariable(token) ? +token.val : size) as number\n return getSizedElevation(sizeNum, extras)\n}\n\nconst fullscreenStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n} as const\n\nconst variants = {\n fullscreen: {\n true: fullscreenStyle,\n },\n elevation: {\n '...size': getElevation,\n },\n} as const\n\nexport const YStack = styled(Stack, {\n flexDirection: 'column',\n name: 'YStack',\n variants,\n})\n\nexport const XStack = styled(Stack, {\n flexDirection: 'row',\n name: 'XStack',\n variants,\n})\n\nexport const ZStack = styled(\n YStack,\n {\n name: 'ZStack',\n position: 'relative',\n },\n {\n neverFlatten: true,\n isZStack: true,\n }\n)\n\nexport const getSizedElevation = (\n val: SizeTokens | number | boolean,\n { theme, tokens }: VariantSpreadExtras<any>\n) => {\n let num = 0\n if (val === true) {\n const val = getVariableValue(tokens.size['true'])\n if (typeof val === 'number') {\n num = val\n } else {\n num = 10\n }\n } else {\n num = +val\n }\n if (process.env.NODE_ENV === 'development') {\n if (num !== null && isNaN(num)) {\n // eslint-disable-next-line no-console\n console.warn('NaN shadow', num, val)\n }\n }\n const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)]\n const shadow = {\n shadowColor: theme.shadowColor,\n shadowRadius,\n shadowOffset: { height, width: 0 },\n }\n return shadow\n}\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EAIE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMA,MAAM,eAAsD,CAAC,MAAM,WAAW;AACnF,MAAI,CAAC;AAAM;AACX,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM,QAAQ,OAAO,KAAK;AAC1B,QAAM,UAAW,WAAW,KAAK,IAAI,CAAC,MAAM,MAAM;AAClD,SAAO,kBAAkB,SAAS,MAAM;AAC1C;AAEA,MAAM,kBAAkB;AAAA,EACtB,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV;AAEA,MAAM,WAAW;AAAA,EACf,YAAY;AAAA,IACV,MAAM;AAAA,EACR;AAAA,EACA,WAAW;AAAA,IACT,WAAW;AAAA,EACb;AACF;AAEO,MAAM,SAAS,OAAO,OAAO;AAAA,EAClC,eAAe;AAAA,EACf,MAAM;AAAA,EACN;AACF,CAAC;AAEM,MAAM,SAAS,OAAO,OAAO;AAAA,EAClC,eAAe;AAAA,EACf,MAAM;AAAA,EACN;AACF,CAAC;AAEM,MAAM,SAAS;AAAA,EACpB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,cAAc;AAAA,IACd,UAAU;AAAA,EACZ;AACF;AAEO,MAAM,oBAAoB,CAC/B,KACA,EAAE,OAAO,OAAO,MACb;AACH,MAAI,MAAM;AACV,MAAI,QAAQ,MAAM;AAChB,UAAMA,OAAM,iBAAiB,OAAO,KAAK,OAAO;AAChD,QAAI,OAAOA,SAAQ,UAAU;AAC3B,YAAMA;AAAA,IACR,OAAO;AACL,YAAM;AAAA,IACR;AAAA,EACF,OAAO;AACL,UAAM,CAAC;AAAA,EACT;AACA,MAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,QAAI,QAAQ,QAAQ,MAAM,GAAG,GAAG;AAE9B,cAAQ,KAAK,cAAc,KAAK,GAAG;AAAA,IACrC;AAAA,EACF;AACA,QAAM,CAAC,QAAQ,YAAY,IAAI,CAAC,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,KAAK,MAAM,MAAM,IAAI,CAAC,CAAC;AAChF,QAAM,SAAS;AAAA,IACb,aAAa,MAAM;AAAA,IACnB;AAAA,IACA,cAAc,EAAE,QAAQ,OAAO,EAAE;AAAA,EACnC;AACA,SAAO;AACT;",
|
|
6
|
+
"names": ["val"]
|
|
7
7
|
}
|
|
@@ -10,6 +10,11 @@ import {
|
|
|
10
10
|
pressTheme,
|
|
11
11
|
radiused
|
|
12
12
|
} from "./variants";
|
|
13
|
+
const chromelessStyle = {
|
|
14
|
+
backgroundColor: "transparent",
|
|
15
|
+
borderColor: "transparent",
|
|
16
|
+
shadowColor: "transparent"
|
|
17
|
+
};
|
|
13
18
|
const ThemeableStack = styled(YStack, {
|
|
14
19
|
name: "SizableStack",
|
|
15
20
|
variants: {
|
|
@@ -33,10 +38,12 @@ const ThemeableStack = styled(YStack, {
|
|
|
33
38
|
}
|
|
34
39
|
},
|
|
35
40
|
chromeless: {
|
|
36
|
-
true:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
true: chromelessStyle,
|
|
42
|
+
all: {
|
|
43
|
+
...chromelessStyle,
|
|
44
|
+
hoverStyle: chromelessStyle,
|
|
45
|
+
pressStyle: chromelessStyle,
|
|
46
|
+
focusStyle: chromelessStyle
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
49
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ThemeableStack.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\n\nimport { YStack } from './Stacks'\nimport {\n bordered,\n circular,\n elevate,\n focusTheme,\n hoverTheme,\n padded,\n pressTheme,\n radiused,\n} from './variants'\n\nexport const ThemeableStack = styled(YStack, {\n name: 'SizableStack',\n\n variants: {\n // allows the type to come in for use in size\n fontFamily: () => ({}),\n\n backgrounded: {\n true: {\n backgroundColor: '$background',\n },\n },\n\n radiused,\n hoverTheme,\n pressTheme,\n focusTheme,\n circular,\n padded,\n elevate,\n bordered,\n\n transparent: {\n true: {\n backgroundColor: 'transparent',\n },\n },\n\n chromeless: {\n true: {\n
|
|
5
|
-
"mappings": "AAAA;
|
|
4
|
+
"sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\n\nimport { YStack } from './Stacks'\nimport {\n bordered,\n circular,\n elevate,\n focusTheme,\n hoverTheme,\n padded,\n pressTheme,\n radiused,\n} from './variants'\n\nconst chromelessStyle = {\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n shadowColor: 'transparent',\n}\n\nexport const ThemeableStack = styled(YStack, {\n name: 'SizableStack',\n\n variants: {\n // allows the type to come in for use in size\n fontFamily: () => ({}),\n\n backgrounded: {\n true: {\n backgroundColor: '$background',\n },\n },\n\n radiused,\n hoverTheme,\n pressTheme,\n focusTheme,\n circular,\n padded,\n elevate,\n bordered,\n\n transparent: {\n true: {\n backgroundColor: 'transparent',\n },\n },\n\n chromeless: {\n true: chromelessStyle,\n all: {\n ...chromelessStyle,\n hoverStyle: chromelessStyle,\n pressStyle: chromelessStyle,\n focusStyle: chromelessStyle,\n },\n },\n } as const,\n})\n\nexport type ThemeableStackProps = GetProps<typeof ThemeableStack>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAmB,cAAc;AAEjC,SAAS,cAAc;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,MAAM,kBAAkB;AAAA,EACtB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AACf;AAEO,MAAM,iBAAiB,OAAO,QAAQ;AAAA,EAC3C,MAAM;AAAA,EAEN,UAAU;AAAA,IAER,YAAY,OAAO,CAAC;AAAA,IAEpB,cAAc;AAAA,MACZ,MAAM;AAAA,QACJ,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEA,aAAa;AAAA,MACX,MAAM;AAAA,QACJ,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IAEA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,KAAK;AAAA,QACH,GAAG;AAAA,QACH,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,YAAY;AAAA,MACd;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/index.js
CHANGED
|
File without changes
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/variants.js
CHANGED
package/dist/jsx/variants.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/variants.tsx"],
|
|
4
|
-
"sourcesContent": ["import { getElevation } from './Stacks'\n\nexport const elevate = {\n true: (_: boolean, extras: any) => {\n return getElevation(extras.props['size'], extras)\n },\n}\n\nexport const bordered = (val: boolean | number, { props }) => {\n return {\n // TODO size it with size in '...size'\n borderWidth: typeof val === 'number' ? val : 1,\n borderColor: '$borderColor',\n\n ...(props.hoverTheme && {\n hoverStyle: {\n borderColor: '$borderColorHover',\n },\n }),\n\n ...(props.pressTheme && {\n pressStyle: {\n borderColor: '$borderColorPress',\n },\n }),\n\n ...(props.focusTheme && {\n focusStyle: {\n borderColor: '$borderColorFocus',\n },\n }),\n }\n}\n\nexport const padded = {\n true: (_, extras) => {\n const { tokens, props } = extras\n return {\n padding: tokens.space[props.size] || tokens.space['$4'],\n }\n },\n}\n\nexport const radiused = {\n true: (_, extras) => {\n const { tokens, props } = extras\n return {\n borderRadius: tokens.radius[props.size] || tokens.radius['$4'],\n }\n },\n}\n\nexport const circular = {\n true: (_, { props, tokens }) => {\n const size = tokens.size[props.size]\n return {\n width: size,\n height: size,\n maxWidth: size,\n maxHeight: size,\n minWidth: size,\n minHeight: size,\n borderRadius: 100_000,\n
|
|
5
|
-
"mappings": "AAAA;
|
|
4
|
+
"sourcesContent": ["import { getElevation } from './Stacks'\n\nexport const elevate = {\n true: (_: boolean, extras: any) => {\n return getElevation(extras.props['size'], extras)\n },\n}\n\nexport const bordered = (val: boolean | number, { props }) => {\n return {\n // TODO size it with size in '...size'\n borderWidth: typeof val === 'number' ? val : 1,\n borderColor: '$borderColor',\n\n ...(props.hoverTheme && {\n hoverStyle: {\n borderColor: '$borderColorHover',\n },\n }),\n\n ...(props.pressTheme && {\n pressStyle: {\n borderColor: '$borderColorPress',\n },\n }),\n\n ...(props.focusTheme && {\n focusStyle: {\n borderColor: '$borderColorFocus',\n },\n }),\n }\n}\n\nexport const padded = {\n true: (_, extras) => {\n const { tokens, props } = extras\n return {\n padding: tokens.space[props.size] || tokens.space['$4'],\n }\n },\n}\n\nexport const radiused = {\n true: (_, extras) => {\n const { tokens, props } = extras\n return {\n borderRadius: tokens.radius[props.size] || tokens.radius['$4'],\n }\n },\n}\n\nexport const circular = {\n true: (_, { props, tokens }) => {\n const size = tokens.size[props.size]\n return {\n width: size,\n height: size,\n maxWidth: size,\n maxHeight: size,\n minWidth: size,\n minHeight: size,\n borderRadius: 100_000,\n padding: 0,\n }\n },\n}\n\nexport const hoverTheme = {\n true: {\n hoverStyle: {\n backgroundColor: '$backgroundHover',\n borderColor: '$borderColorHover',\n },\n },\n false: {},\n}\n\nexport const pressTheme = {\n true: {\n pressStyle: {\n backgroundColor: '$backgroundPress',\n borderColor: '$borderColorPress',\n },\n },\n false: {},\n}\n\nexport const focusTheme = {\n true: {\n focusStyle: {\n backgroundColor: '$backgroundFocus',\n borderColor: '$borderColorFocus',\n },\n },\n false: {},\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,oBAAoB;AAEtB,MAAM,UAAU;AAAA,EACrB,MAAM,CAAC,GAAY,WAAgB;AACjC,WAAO,aAAa,OAAO,MAAM,SAAS,MAAM;AAAA,EAClD;AACF;AAEO,MAAM,WAAW,CAAC,KAAuB,EAAE,MAAM,MAAM;AAC5D,SAAO;AAAA,IAEL,aAAa,OAAO,QAAQ,WAAW,MAAM;AAAA,IAC7C,aAAa;AAAA,IAEb,GAAI,MAAM,cAAc;AAAA,MACtB,YAAY;AAAA,QACV,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IAEA,GAAI,MAAM,cAAc;AAAA,MACtB,YAAY;AAAA,QACV,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IAEA,GAAI,MAAM,cAAc;AAAA,MACtB,YAAY;AAAA,QACV,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AACF;AAEO,MAAM,SAAS;AAAA,EACpB,MAAM,CAAC,GAAG,WAAW;AACnB,UAAM,EAAE,QAAQ,MAAM,IAAI;AAC1B,WAAO;AAAA,MACL,SAAS,OAAO,MAAM,MAAM,SAAS,OAAO,MAAM;AAAA,IACpD;AAAA,EACF;AACF;AAEO,MAAM,WAAW;AAAA,EACtB,MAAM,CAAC,GAAG,WAAW;AACnB,UAAM,EAAE,QAAQ,MAAM,IAAI;AAC1B,WAAO;AAAA,MACL,cAAc,OAAO,OAAO,MAAM,SAAS,OAAO,OAAO;AAAA,IAC3D;AAAA,EACF;AACF;AAEO,MAAM,WAAW;AAAA,EACtB,MAAM,CAAC,GAAG,EAAE,OAAO,OAAO,MAAM;AAC9B,UAAM,OAAO,OAAO,KAAK,MAAM;AAC/B,WAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,WAAW;AAAA,MACX,UAAU;AAAA,MACV,WAAW;AAAA,MACX,cAAc;AAAA,MACd,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAEO,MAAM,aAAa;AAAA,EACxB,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,iBAAiB;AAAA,MACjB,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,OAAO,CAAC;AACV;AAEO,MAAM,aAAa;AAAA,EACxB,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,iBAAiB;AAAA,MACjB,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,OAAO,CAAC;AACV;AAEO,MAAM,aAAa;AAAA,EACxB,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,iBAAiB;AAAA,MACjB,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,OAAO,CAAC;AACV;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/stacks",
|
|
3
|
-
"version": "1.0.1-
|
|
3
|
+
"version": "1.0.1-rc.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -16,19 +16,22 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "tamagui-build",
|
|
19
|
-
"watch": "tamagui-build --watch"
|
|
19
|
+
"watch": "tamagui-build --watch",
|
|
20
|
+
"lint": "eslint src",
|
|
21
|
+
"lint:fix": "yarn lint --fix"
|
|
20
22
|
},
|
|
21
23
|
"dependencies": {
|
|
22
|
-
"@tamagui/core": "^1.0.1-
|
|
24
|
+
"@tamagui/core": "^1.0.1-rc.0"
|
|
23
25
|
},
|
|
24
26
|
"peerDependencies": {
|
|
25
|
-
"react": "
|
|
26
|
-
"react-dom": "
|
|
27
|
+
"react": ">=18",
|
|
28
|
+
"react-dom": ">=18"
|
|
27
29
|
},
|
|
28
30
|
"devDependencies": {
|
|
29
|
-
"@tamagui/build": "^1.0.1-
|
|
30
|
-
"
|
|
31
|
-
"react
|
|
31
|
+
"@tamagui/build": "^1.0.1-rc.0",
|
|
32
|
+
"@tamagui/get-button-sized": "^1.0.1-rc.0",
|
|
33
|
+
"react": ">=18",
|
|
34
|
+
"react-dom": ">=18"
|
|
32
35
|
},
|
|
33
36
|
"publishConfig": {
|
|
34
37
|
"access": "public"
|
package/src/SizableStack.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { GetProps,
|
|
1
|
+
import { GetProps, styled } from '@tamagui/core'
|
|
2
|
+
import { getButtonSized } from '@tamagui/get-button-sized'
|
|
2
3
|
|
|
3
4
|
import { YStack } from './Stacks'
|
|
4
5
|
import { bordered, circular, elevate, focusTheme, hoverTheme, pressTheme } from './variants'
|
|
@@ -21,9 +22,9 @@ export const SizableStack = styled(YStack, {
|
|
|
21
22
|
bordered,
|
|
22
23
|
|
|
23
24
|
size: {
|
|
24
|
-
'...size':
|
|
25
|
+
'...size': getButtonSized,
|
|
25
26
|
},
|
|
26
|
-
},
|
|
27
|
+
} as const,
|
|
27
28
|
})
|
|
28
29
|
|
|
29
30
|
export type SizableStackProps = GetProps<typeof SizableStack>
|
package/src/Stacks.tsx
CHANGED
|
@@ -79,7 +79,10 @@ export const getSizedElevation = (
|
|
|
79
79
|
num = +val
|
|
80
80
|
}
|
|
81
81
|
if (process.env.NODE_ENV === 'development') {
|
|
82
|
-
if (isNaN(num))
|
|
82
|
+
if (num !== null && isNaN(num)) {
|
|
83
|
+
// eslint-disable-next-line no-console
|
|
84
|
+
console.warn('NaN shadow', num, val)
|
|
85
|
+
}
|
|
83
86
|
}
|
|
84
87
|
const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)]
|
|
85
88
|
const shadow = {
|
package/src/ThemeableStack.tsx
CHANGED
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
radiused,
|
|
13
13
|
} from './variants'
|
|
14
14
|
|
|
15
|
+
const chromelessStyle = {
|
|
16
|
+
backgroundColor: 'transparent',
|
|
17
|
+
borderColor: 'transparent',
|
|
18
|
+
shadowColor: 'transparent',
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
export const ThemeableStack = styled(YStack, {
|
|
16
22
|
name: 'SizableStack',
|
|
17
23
|
|
|
@@ -41,13 +47,15 @@ export const ThemeableStack = styled(YStack, {
|
|
|
41
47
|
},
|
|
42
48
|
|
|
43
49
|
chromeless: {
|
|
44
|
-
true:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
true: chromelessStyle,
|
|
51
|
+
all: {
|
|
52
|
+
...chromelessStyle,
|
|
53
|
+
hoverStyle: chromelessStyle,
|
|
54
|
+
pressStyle: chromelessStyle,
|
|
55
|
+
focusStyle: chromelessStyle,
|
|
48
56
|
},
|
|
49
57
|
},
|
|
50
|
-
},
|
|
58
|
+
} as const,
|
|
51
59
|
})
|
|
52
60
|
|
|
53
61
|
export type ThemeableStackProps = GetProps<typeof ThemeableStack>
|
package/src/variants.tsx
CHANGED
package/types/SizableStack.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { GetProps } from '@tamagui/core';
|
|
2
|
-
export declare const SizableStack: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
2
|
+
export declare const SizableStack: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
3
3
|
readonly fullscreen?: boolean | undefined;
|
|
4
4
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
5
5
|
}, "fontFamily" | "size" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered"> & {
|
|
6
|
-
fontFamily?: unknown;
|
|
7
|
-
hoverTheme?: boolean | undefined;
|
|
8
|
-
pressTheme?: boolean | undefined;
|
|
9
|
-
focusTheme?: boolean | undefined;
|
|
10
|
-
circular?: boolean | undefined;
|
|
11
|
-
elevate?: boolean | undefined;
|
|
12
|
-
bordered?: number | boolean | undefined;
|
|
13
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
14
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
6
|
+
readonly fontFamily?: unknown;
|
|
7
|
+
readonly hoverTheme?: boolean | undefined;
|
|
8
|
+
readonly pressTheme?: boolean | undefined;
|
|
9
|
+
readonly focusTheme?: boolean | undefined;
|
|
10
|
+
readonly circular?: boolean | undefined;
|
|
11
|
+
readonly elevate?: boolean | undefined;
|
|
12
|
+
readonly bordered?: number | boolean | undefined;
|
|
13
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
14
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
15
15
|
readonly fullscreen?: boolean | undefined;
|
|
16
16
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
17
17
|
}, "fontFamily" | "size" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered"> & {
|
|
18
|
-
fontFamily?: unknown;
|
|
19
|
-
hoverTheme?: boolean | undefined;
|
|
20
|
-
pressTheme?: boolean | undefined;
|
|
21
|
-
focusTheme?: boolean | undefined;
|
|
22
|
-
circular?: boolean | undefined;
|
|
23
|
-
elevate?: boolean | undefined;
|
|
24
|
-
bordered?: number | boolean | undefined;
|
|
25
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
26
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
18
|
+
readonly fontFamily?: unknown;
|
|
19
|
+
readonly hoverTheme?: boolean | undefined;
|
|
20
|
+
readonly pressTheme?: boolean | undefined;
|
|
21
|
+
readonly focusTheme?: boolean | undefined;
|
|
22
|
+
readonly circular?: boolean | undefined;
|
|
23
|
+
readonly elevate?: boolean | undefined;
|
|
24
|
+
readonly bordered?: number | boolean | undefined;
|
|
25
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
26
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
27
27
|
readonly fullscreen?: boolean | undefined;
|
|
28
28
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
29
29
|
}, "fontFamily" | "size" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered"> & {
|
|
30
|
-
fontFamily?: unknown;
|
|
31
|
-
hoverTheme?: boolean | undefined;
|
|
32
|
-
pressTheme?: boolean | undefined;
|
|
33
|
-
focusTheme?: boolean | undefined;
|
|
34
|
-
circular?: boolean | undefined;
|
|
35
|
-
elevate?: boolean | undefined;
|
|
36
|
-
bordered?: number | boolean | undefined;
|
|
37
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
38
|
-
}>>,
|
|
30
|
+
readonly fontFamily?: unknown;
|
|
31
|
+
readonly hoverTheme?: boolean | undefined;
|
|
32
|
+
readonly pressTheme?: boolean | undefined;
|
|
33
|
+
readonly focusTheme?: boolean | undefined;
|
|
34
|
+
readonly circular?: boolean | undefined;
|
|
35
|
+
readonly elevate?: boolean | undefined;
|
|
36
|
+
readonly bordered?: number | boolean | undefined;
|
|
37
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
38
|
+
}>>, import("@tamagui/core").TamaguiElement, import("@tamagui/core").StackPropsBase, {
|
|
39
39
|
readonly fullscreen?: boolean | undefined;
|
|
40
40
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
41
41
|
} & {
|
|
42
|
-
fontFamily?: unknown;
|
|
43
|
-
hoverTheme?: boolean | undefined;
|
|
44
|
-
pressTheme?: boolean | undefined;
|
|
45
|
-
focusTheme?: boolean | undefined;
|
|
46
|
-
circular?: boolean | undefined;
|
|
47
|
-
elevate?: boolean | undefined;
|
|
48
|
-
bordered?: number | boolean | undefined;
|
|
49
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
42
|
+
readonly fontFamily?: unknown;
|
|
43
|
+
readonly hoverTheme?: boolean | undefined;
|
|
44
|
+
readonly pressTheme?: boolean | undefined;
|
|
45
|
+
readonly focusTheme?: boolean | undefined;
|
|
46
|
+
readonly circular?: boolean | undefined;
|
|
47
|
+
readonly elevate?: boolean | undefined;
|
|
48
|
+
readonly bordered?: number | boolean | undefined;
|
|
49
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
export declare type SizableStackProps = GetProps<typeof SizableStack>;
|
|
52
52
|
//# sourceMappingURL=SizableStack.d.ts.map
|
package/types/Stacks.d.ts
CHANGED
|
@@ -3,64 +3,67 @@ export declare type YStackProps = GetProps<typeof YStack>;
|
|
|
3
3
|
export declare type XStackProps = YStackProps;
|
|
4
4
|
export declare type ZStackProps = YStackProps;
|
|
5
5
|
export declare const getElevation: SizeVariantSpreadFunction<StackProps>;
|
|
6
|
-
export declare const YStack: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
6
|
+
export declare const YStack: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
7
7
|
readonly fullscreen?: boolean | undefined;
|
|
8
8
|
readonly elevation?: SizeTokens | undefined;
|
|
9
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
9
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
10
10
|
readonly fullscreen?: boolean | undefined;
|
|
11
11
|
readonly elevation?: SizeTokens | undefined;
|
|
12
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
12
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
13
13
|
readonly fullscreen?: boolean | undefined;
|
|
14
14
|
readonly elevation?: SizeTokens | undefined;
|
|
15
|
-
}>>,
|
|
15
|
+
}>>, import("@tamagui/core").TamaguiElement, import("@tamagui/core").StackPropsBase, {
|
|
16
16
|
readonly fullscreen?: boolean | undefined;
|
|
17
17
|
readonly elevation?: SizeTokens | undefined;
|
|
18
18
|
}>;
|
|
19
|
-
export declare const XStack: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
19
|
+
export declare const XStack: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
20
20
|
readonly fullscreen?: boolean | undefined;
|
|
21
21
|
readonly elevation?: SizeTokens | undefined;
|
|
22
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
22
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
23
23
|
readonly fullscreen?: boolean | undefined;
|
|
24
24
|
readonly elevation?: SizeTokens | undefined;
|
|
25
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
25
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
26
26
|
readonly fullscreen?: boolean | undefined;
|
|
27
27
|
readonly elevation?: SizeTokens | undefined;
|
|
28
|
-
}>>,
|
|
28
|
+
}>>, import("@tamagui/core").TamaguiElement, import("@tamagui/core").StackPropsBase, {
|
|
29
29
|
readonly fullscreen?: boolean | undefined;
|
|
30
30
|
readonly elevation?: SizeTokens | undefined;
|
|
31
31
|
}>;
|
|
32
|
-
export declare const ZStack: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
32
|
+
export declare const ZStack: import("@tamagui/core").TamaguiComponent<(Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
33
33
|
readonly fullscreen?: boolean | undefined;
|
|
34
34
|
readonly elevation?: SizeTokens | undefined;
|
|
35
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
35
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
36
36
|
readonly fullscreen?: boolean | undefined;
|
|
37
37
|
readonly elevation?: SizeTokens | undefined;
|
|
38
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
38
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
39
39
|
readonly fullscreen?: boolean | undefined;
|
|
40
40
|
readonly elevation?: SizeTokens | undefined;
|
|
41
|
-
}>>) | (Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
41
|
+
}>>) | (Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
42
42
|
readonly fullscreen?: boolean | undefined;
|
|
43
43
|
readonly elevation?: SizeTokens | undefined;
|
|
44
44
|
}, string | number> & {
|
|
45
45
|
[x: string]: undefined;
|
|
46
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
46
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
47
47
|
readonly fullscreen?: boolean | undefined;
|
|
48
48
|
readonly elevation?: SizeTokens | undefined;
|
|
49
49
|
}, string | number> & {
|
|
50
50
|
[x: string]: undefined;
|
|
51
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
51
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
52
52
|
readonly fullscreen?: boolean | undefined;
|
|
53
53
|
readonly elevation?: SizeTokens | undefined;
|
|
54
54
|
}, string | number> & {
|
|
55
55
|
[x: string]: undefined;
|
|
56
|
-
}>>),
|
|
56
|
+
}>>), import("@tamagui/core").TamaguiElement, import("@tamagui/core").StackPropsBase, {
|
|
57
57
|
readonly fullscreen?: boolean | undefined;
|
|
58
58
|
readonly elevation?: SizeTokens | undefined;
|
|
59
|
-
}
|
|
59
|
+
} | ({
|
|
60
|
+
readonly fullscreen?: boolean | undefined;
|
|
61
|
+
readonly elevation?: SizeTokens | undefined;
|
|
62
|
+
} & {
|
|
60
63
|
[x: string]: undefined;
|
|
61
64
|
})>;
|
|
62
65
|
export declare const getSizedElevation: (val: SizeTokens | number | boolean, { theme, tokens }: VariantSpreadExtras<any>) => {
|
|
63
|
-
shadowColor: import("@tamagui/core").
|
|
66
|
+
shadowColor: import("@tamagui/core").Variable<any> | undefined;
|
|
64
67
|
shadowRadius: number;
|
|
65
68
|
shadowOffset: {
|
|
66
69
|
height: number;
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { GetProps } from '@tamagui/core';
|
|
2
|
-
export declare const ThemeableStack: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
2
|
+
export declare const ThemeableStack: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
3
3
|
readonly fullscreen?: boolean | undefined;
|
|
4
4
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
5
5
|
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
6
|
-
fontFamily?: unknown;
|
|
7
|
-
backgrounded?: boolean | undefined;
|
|
8
|
-
radiused?: boolean | undefined;
|
|
9
|
-
hoverTheme?: boolean | undefined;
|
|
10
|
-
pressTheme?: boolean | undefined;
|
|
11
|
-
focusTheme?: boolean | undefined;
|
|
12
|
-
circular?: boolean | undefined;
|
|
13
|
-
padded?: boolean | undefined;
|
|
14
|
-
elevate?: boolean | undefined;
|
|
15
|
-
bordered?: number | boolean | undefined;
|
|
16
|
-
transparent?: boolean | undefined;
|
|
17
|
-
chromeless?: boolean | undefined;
|
|
18
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
6
|
+
readonly fontFamily?: unknown;
|
|
7
|
+
readonly backgrounded?: boolean | undefined;
|
|
8
|
+
readonly radiused?: boolean | undefined;
|
|
9
|
+
readonly hoverTheme?: boolean | undefined;
|
|
10
|
+
readonly pressTheme?: boolean | undefined;
|
|
11
|
+
readonly focusTheme?: boolean | undefined;
|
|
12
|
+
readonly circular?: boolean | undefined;
|
|
13
|
+
readonly padded?: boolean | undefined;
|
|
14
|
+
readonly elevate?: boolean | undefined;
|
|
15
|
+
readonly bordered?: number | boolean | undefined;
|
|
16
|
+
readonly transparent?: boolean | undefined;
|
|
17
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
18
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
19
19
|
readonly fullscreen?: boolean | undefined;
|
|
20
20
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
21
21
|
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
22
|
-
fontFamily?: unknown;
|
|
23
|
-
backgrounded?: boolean | undefined;
|
|
24
|
-
radiused?: boolean | undefined;
|
|
25
|
-
hoverTheme?: boolean | undefined;
|
|
26
|
-
pressTheme?: boolean | undefined;
|
|
27
|
-
focusTheme?: boolean | undefined;
|
|
28
|
-
circular?: boolean | undefined;
|
|
29
|
-
padded?: boolean | undefined;
|
|
30
|
-
elevate?: boolean | undefined;
|
|
31
|
-
bordered?: number | boolean | undefined;
|
|
32
|
-
transparent?: boolean | undefined;
|
|
33
|
-
chromeless?: boolean | undefined;
|
|
34
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
22
|
+
readonly fontFamily?: unknown;
|
|
23
|
+
readonly backgrounded?: boolean | undefined;
|
|
24
|
+
readonly radiused?: boolean | undefined;
|
|
25
|
+
readonly hoverTheme?: boolean | undefined;
|
|
26
|
+
readonly pressTheme?: boolean | undefined;
|
|
27
|
+
readonly focusTheme?: boolean | undefined;
|
|
28
|
+
readonly circular?: boolean | undefined;
|
|
29
|
+
readonly padded?: boolean | undefined;
|
|
30
|
+
readonly elevate?: boolean | undefined;
|
|
31
|
+
readonly bordered?: number | boolean | undefined;
|
|
32
|
+
readonly transparent?: boolean | undefined;
|
|
33
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
34
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("@tamagui/types-react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
35
35
|
readonly fullscreen?: boolean | undefined;
|
|
36
36
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
37
37
|
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
38
|
-
fontFamily?: unknown;
|
|
39
|
-
backgrounded?: boolean | undefined;
|
|
40
|
-
radiused?: boolean | undefined;
|
|
41
|
-
hoverTheme?: boolean | undefined;
|
|
42
|
-
pressTheme?: boolean | undefined;
|
|
43
|
-
focusTheme?: boolean | undefined;
|
|
44
|
-
circular?: boolean | undefined;
|
|
45
|
-
padded?: boolean | undefined;
|
|
46
|
-
elevate?: boolean | undefined;
|
|
47
|
-
bordered?: number | boolean | undefined;
|
|
48
|
-
transparent?: boolean | undefined;
|
|
49
|
-
chromeless?: boolean | undefined;
|
|
50
|
-
}>>,
|
|
38
|
+
readonly fontFamily?: unknown;
|
|
39
|
+
readonly backgrounded?: boolean | undefined;
|
|
40
|
+
readonly radiused?: boolean | undefined;
|
|
41
|
+
readonly hoverTheme?: boolean | undefined;
|
|
42
|
+
readonly pressTheme?: boolean | undefined;
|
|
43
|
+
readonly focusTheme?: boolean | undefined;
|
|
44
|
+
readonly circular?: boolean | undefined;
|
|
45
|
+
readonly padded?: boolean | undefined;
|
|
46
|
+
readonly elevate?: boolean | undefined;
|
|
47
|
+
readonly bordered?: number | boolean | undefined;
|
|
48
|
+
readonly transparent?: boolean | undefined;
|
|
49
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
50
|
+
}>>, import("@tamagui/core").TamaguiElement, import("@tamagui/core").StackPropsBase, {
|
|
51
51
|
readonly fullscreen?: boolean | undefined;
|
|
52
52
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
53
53
|
} & {
|
|
54
|
-
fontFamily?: unknown;
|
|
55
|
-
backgrounded?: boolean | undefined;
|
|
56
|
-
radiused?: boolean | undefined;
|
|
57
|
-
hoverTheme?: boolean | undefined;
|
|
58
|
-
pressTheme?: boolean | undefined;
|
|
59
|
-
focusTheme?: boolean | undefined;
|
|
60
|
-
circular?: boolean | undefined;
|
|
61
|
-
padded?: boolean | undefined;
|
|
62
|
-
elevate?: boolean | undefined;
|
|
63
|
-
bordered?: number | boolean | undefined;
|
|
64
|
-
transparent?: boolean | undefined;
|
|
65
|
-
chromeless?: boolean | undefined;
|
|
54
|
+
readonly fontFamily?: unknown;
|
|
55
|
+
readonly backgrounded?: boolean | undefined;
|
|
56
|
+
readonly radiused?: boolean | undefined;
|
|
57
|
+
readonly hoverTheme?: boolean | undefined;
|
|
58
|
+
readonly pressTheme?: boolean | undefined;
|
|
59
|
+
readonly focusTheme?: boolean | undefined;
|
|
60
|
+
readonly circular?: boolean | undefined;
|
|
61
|
+
readonly padded?: boolean | undefined;
|
|
62
|
+
readonly elevate?: boolean | undefined;
|
|
63
|
+
readonly bordered?: number | boolean | undefined;
|
|
64
|
+
readonly transparent?: boolean | undefined;
|
|
65
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
export declare type ThemeableStackProps = GetProps<typeof ThemeableStack>;
|
|
68
68
|
//# sourceMappingURL=ThemeableStack.d.ts.map
|
package/types/index.d.ts
CHANGED
|
File without changes
|