@tamagui/stacks 1.13.3 → 1.14.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 +1 -58
- package/dist/cjs/SizableStack.js.map +2 -2
- package/dist/cjs/Stacks.js +1 -71
- package/dist/cjs/Stacks.js.map +2 -2
- package/dist/cjs/ThemeableStack.js +1 -67
- package/dist/cjs/ThemeableStack.js.map +2 -2
- package/dist/cjs/getElevation.js +1 -63
- package/dist/cjs/getElevation.js.map +2 -2
- package/dist/cjs/index.js +1 -20
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/variants.js +1 -128
- package/dist/cjs/variants.js.map +2 -2
- package/dist/esm/SizableStack.js +1 -41
- package/dist/esm/SizableStack.js.map +2 -2
- package/dist/esm/SizableStack.mjs +1 -41
- package/dist/esm/SizableStack.mjs.map +2 -2
- package/dist/esm/Stacks.js +1 -44
- package/dist/esm/Stacks.js.map +2 -2
- package/dist/esm/Stacks.mjs +1 -44
- package/dist/esm/Stacks.mjs.map +2 -2
- package/dist/esm/ThemeableStack.js +1 -52
- package/dist/esm/ThemeableStack.js.map +2 -2
- package/dist/esm/ThemeableStack.mjs +1 -52
- package/dist/esm/ThemeableStack.mjs.map +2 -2
- package/dist/esm/getElevation.js +1 -41
- package/dist/esm/getElevation.js.map +2 -2
- package/dist/esm/getElevation.mjs +1 -41
- package/dist/esm/getElevation.mjs.map +2 -2
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/variants.js +1 -97
- package/dist/esm/variants.js.map +2 -2
- package/dist/esm/variants.mjs +1 -97
- package/dist/esm/variants.mjs.map +2 -2
- package/dist/jsx/SizableStack.js +1 -41
- package/dist/jsx/SizableStack.js.map +2 -2
- package/dist/jsx/SizableStack.mjs +1 -41
- package/dist/jsx/SizableStack.mjs.map +2 -2
- package/dist/jsx/Stacks.js +1 -44
- package/dist/jsx/Stacks.js.map +2 -2
- package/dist/jsx/Stacks.mjs +1 -44
- package/dist/jsx/Stacks.mjs.map +2 -2
- package/dist/jsx/ThemeableStack.js +1 -52
- package/dist/jsx/ThemeableStack.js.map +2 -2
- package/dist/jsx/ThemeableStack.mjs +1 -52
- package/dist/jsx/ThemeableStack.mjs.map +2 -2
- package/dist/jsx/getElevation.js +1 -41
- package/dist/jsx/getElevation.js.map +2 -2
- package/dist/jsx/getElevation.mjs +1 -41
- package/dist/jsx/getElevation.mjs.map +2 -2
- package/dist/jsx/index.js +1 -3
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -3
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/variants.js +1 -97
- package/dist/jsx/variants.js.map +2 -2
- package/dist/jsx/variants.mjs +1 -97
- package/dist/jsx/variants.mjs.map +2 -2
- package/package.json +4 -4
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SizableStack.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\nimport { getButtonSized } from '@tamagui/get-button-sized'\n\nimport { XStack, YStack } from './Stacks'\nimport {\n bordered,\n circular,\n elevate,\n focusTheme,\n hoverTheme,\n pressTheme,\n} from './variants'\n\nexport const SizableStack = styled(XStack, {\n name: 'SizableStack',\n\n variants: {\n unstyled: {\n true: {\n hoverTheme: false,\n pressTheme: false,\n focusTheme: false,\n elevate: false,\n bordered: false,\n },\n false: {\n backgroundColor: '$background',\n flexShrink: 1,\n },\n },\n\n hoverTheme,\n pressTheme,\n focusTheme,\n circular,\n elevate,\n bordered,\n\n size: {\n '...size': getButtonSized,\n },\n } as const,\n})\n\nexport type SizableStackProps = GetProps<typeof SizableStack>\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAmB,UAAAA,MAAc,gBACjC,OAAS,kBAAAC,MAAsB,4BAE/B,OAAS,UAAAC,MAAsB,WAC/B,OACE,YAAAC,EACA,YAAAC,EACA,WAAAC,EACA,cAAAC,EACA,cAAAC,EACA,cAAAC,MACK,aAEA,MAAMC,EAAeT,EAAOE,EAAQ,CACzC,KAAM,eAEN,SAAU,CACR,SAAU,CACR,KAAM,CACJ,WAAY,GACZ,WAAY,GACZ,WAAY,GACZ,QAAS,GACT,SAAU,EACZ,EACA,MAAO,CACL,gBAAiB,cACjB,WAAY,CACd,CACF,EAEA,WAAAK,EACA,WAAAC,EACA,WAAAF,EACA,SAAAF,EACA,QAAAC,EACA,SAAAF,EAEA,KAAM,CACJ,UAAWF,CACb,CACF,CACF,CAAC",
|
|
6
|
+
"names": ["styled", "getButtonSized", "XStack", "bordered", "circular", "elevate", "focusTheme", "hoverTheme", "pressTheme", "SizableStack"]
|
|
7
7
|
}
|
package/dist/esm/Stacks.js
CHANGED
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { getElevation } from "./getElevation.js";
|
|
3
|
-
const fullscreenStyle = {
|
|
4
|
-
position: "absolute",
|
|
5
|
-
top: 0,
|
|
6
|
-
left: 0,
|
|
7
|
-
right: 0,
|
|
8
|
-
bottom: 0
|
|
9
|
-
};
|
|
10
|
-
const variants = {
|
|
11
|
-
fullscreen: {
|
|
12
|
-
true: fullscreenStyle
|
|
13
|
-
},
|
|
14
|
-
elevation: {
|
|
15
|
-
"...size": getElevation
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const YStack = styled(Stack, {
|
|
19
|
-
flexDirection: "column",
|
|
20
|
-
name: "YStack",
|
|
21
|
-
variants
|
|
22
|
-
});
|
|
23
|
-
const XStack = styled(Stack, {
|
|
24
|
-
flexDirection: "row",
|
|
25
|
-
name: "XStack",
|
|
26
|
-
variants
|
|
27
|
-
});
|
|
28
|
-
const ZStack = styled(
|
|
29
|
-
YStack,
|
|
30
|
-
{
|
|
31
|
-
name: "ZStack",
|
|
32
|
-
position: "relative"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
neverFlatten: true,
|
|
36
|
-
isZStack: true
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
export {
|
|
40
|
-
XStack,
|
|
41
|
-
YStack,
|
|
42
|
-
ZStack,
|
|
43
|
-
fullscreenStyle
|
|
44
|
-
};
|
|
1
|
+
import{Stack as e,styled as t}from"@tamagui/core";import{getElevation as r}from"./getElevation.js";const a={position:"absolute",top:0,left:0,right:0,bottom:0},o={fullscreen:{true:a},elevation:{"...size":r}},c=t(e,{flexDirection:"column",name:"YStack",variants:o}),i=t(e,{flexDirection:"row",name:"XStack",variants:o}),l=t(c,{name:"ZStack",position:"relative"},{neverFlatten:!0,isZStack:!0});export{i as XStack,c as YStack,l as ZStack,a as fullscreenStyle};
|
|
45
2
|
//# sourceMappingURL=Stacks.js.map
|
package/dist/esm/Stacks.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Stacks.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, Stack, styled } from '@tamagui/core'\n\nimport { getElevation } from './getElevation.js'\n\nexport type YStackProps = GetProps<typeof YStack>\nexport type XStackProps = YStackProps\nexport type ZStackProps = YStackProps\n\nexport const 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"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAmB,SAAAA,EAAO,UAAAC,MAAc,gBAExC,OAAS,gBAAAC,MAAoB,oBAMtB,MAAMC,EAAkB,CAC7B,SAAU,WACV,IAAK,EACL,KAAM,EACN,MAAO,EACP,OAAQ,CACV,EAEMC,EAAW,CACf,WAAY,CACV,KAAMD,CACR,EACA,UAAW,CACT,UAAWD,CACb,CACF,EAEaG,EAASJ,EAAOD,EAAO,CAClC,cAAe,SACf,KAAM,SACN,SAAAI,CACF,CAAC,EAEYE,EAASL,EAAOD,EAAO,CAClC,cAAe,MACf,KAAM,SACN,SAAAI,CACF,CAAC,EAEYG,EAASN,EACpBI,EACA,CACE,KAAM,SACN,SAAU,UACZ,EACA,CACE,aAAc,GACd,SAAU,EACZ,CACF",
|
|
6
|
+
"names": ["Stack", "styled", "getElevation", "fullscreenStyle", "variants", "YStack", "XStack", "ZStack"]
|
|
7
7
|
}
|
package/dist/esm/Stacks.mjs
CHANGED
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { getElevation } from "./getElevation.js";
|
|
3
|
-
const fullscreenStyle = {
|
|
4
|
-
position: "absolute",
|
|
5
|
-
top: 0,
|
|
6
|
-
left: 0,
|
|
7
|
-
right: 0,
|
|
8
|
-
bottom: 0
|
|
9
|
-
};
|
|
10
|
-
const variants = {
|
|
11
|
-
fullscreen: {
|
|
12
|
-
true: fullscreenStyle
|
|
13
|
-
},
|
|
14
|
-
elevation: {
|
|
15
|
-
"...size": getElevation
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const YStack = styled(Stack, {
|
|
19
|
-
flexDirection: "column",
|
|
20
|
-
name: "YStack",
|
|
21
|
-
variants
|
|
22
|
-
});
|
|
23
|
-
const XStack = styled(Stack, {
|
|
24
|
-
flexDirection: "row",
|
|
25
|
-
name: "XStack",
|
|
26
|
-
variants
|
|
27
|
-
});
|
|
28
|
-
const ZStack = styled(
|
|
29
|
-
YStack,
|
|
30
|
-
{
|
|
31
|
-
name: "ZStack",
|
|
32
|
-
position: "relative"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
neverFlatten: true,
|
|
36
|
-
isZStack: true
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
export {
|
|
40
|
-
XStack,
|
|
41
|
-
YStack,
|
|
42
|
-
ZStack,
|
|
43
|
-
fullscreenStyle
|
|
44
|
-
};
|
|
1
|
+
import{Stack as e,styled as t}from"@tamagui/core";import{getElevation as r}from"./getElevation.js";const a={position:"absolute",top:0,left:0,right:0,bottom:0},o={fullscreen:{true:a},elevation:{"...size":r}},c=t(e,{flexDirection:"column",name:"YStack",variants:o}),i=t(e,{flexDirection:"row",name:"XStack",variants:o}),l=t(c,{name:"ZStack",position:"relative"},{neverFlatten:!0,isZStack:!0});export{i as XStack,c as YStack,l as ZStack,a as fullscreenStyle};
|
|
45
2
|
//# sourceMappingURL=Stacks.mjs.map
|
package/dist/esm/Stacks.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Stacks.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, Stack, styled } from '@tamagui/core'\n\nimport { getElevation } from './getElevation.js'\n\nexport type YStackProps = GetProps<typeof YStack>\nexport type XStackProps = YStackProps\nexport type ZStackProps = YStackProps\n\nexport const 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"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAmB,SAAAA,EAAO,UAAAC,MAAc,gBAExC,OAAS,gBAAAC,MAAoB,oBAMtB,MAAMC,EAAkB,CAC7B,SAAU,WACV,IAAK,EACL,KAAM,EACN,MAAO,EACP,OAAQ,CACV,EAEMC,EAAW,CACf,WAAY,CACV,KAAMD,CACR,EACA,UAAW,CACT,UAAWD,CACb,CACF,EAEaG,EAASJ,EAAOD,EAAO,CAClC,cAAe,SACf,KAAM,SACN,SAAAI,CACF,CAAC,EAEYE,EAASL,EAAOD,EAAO,CAClC,cAAe,MACf,KAAM,SACN,SAAAI,CACF,CAAC,EAEYG,EAASN,EACpBI,EACA,CACE,KAAM,SACN,SAAU,UACZ,EACA,CACE,aAAc,GACd,SAAU,EACZ,CACF",
|
|
6
|
+
"names": ["Stack", "styled", "getElevation", "fullscreenStyle", "variants", "YStack", "XStack", "ZStack"]
|
|
7
7
|
}
|
|
@@ -1,53 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { YStack } from "./Stacks.js";
|
|
3
|
-
import {
|
|
4
|
-
bordered,
|
|
5
|
-
circular,
|
|
6
|
-
elevate,
|
|
7
|
-
focusTheme,
|
|
8
|
-
hoverTheme,
|
|
9
|
-
padded,
|
|
10
|
-
pressTheme,
|
|
11
|
-
radiused
|
|
12
|
-
} from "./variants.js";
|
|
13
|
-
const chromelessStyle = {
|
|
14
|
-
backgroundColor: "transparent",
|
|
15
|
-
borderColor: "transparent",
|
|
16
|
-
shadowColor: "transparent"
|
|
17
|
-
};
|
|
18
|
-
const ThemeableStack = styled(YStack, {
|
|
19
|
-
name: "SizableStack",
|
|
20
|
-
variants: {
|
|
21
|
-
backgrounded: {
|
|
22
|
-
true: {
|
|
23
|
-
backgroundColor: "$background"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
radiused,
|
|
27
|
-
hoverTheme,
|
|
28
|
-
pressTheme,
|
|
29
|
-
focusTheme,
|
|
30
|
-
circular,
|
|
31
|
-
padded,
|
|
32
|
-
elevate,
|
|
33
|
-
bordered,
|
|
34
|
-
transparent: {
|
|
35
|
-
true: {
|
|
36
|
-
backgroundColor: "transparent"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
chromeless: {
|
|
40
|
-
true: chromelessStyle,
|
|
41
|
-
all: {
|
|
42
|
-
...chromelessStyle,
|
|
43
|
-
hoverStyle: chromelessStyle,
|
|
44
|
-
pressStyle: chromelessStyle,
|
|
45
|
-
focusStyle: chromelessStyle
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
ThemeableStack
|
|
52
|
-
};
|
|
1
|
+
import{styled as r}from"@tamagui/core";import{YStack as o}from"./Stacks.js";import{bordered as t,circular as a,elevate as s,focusTheme as l,hoverTheme as n,padded as c,pressTheme as p,radiused as d}from"./variants.js";const e={backgroundColor:"transparent",borderColor:"transparent",shadowColor:"transparent"},k=r(o,{name:"SizableStack",variants:{backgrounded:{true:{backgroundColor:"$background"}},radiused:d,hoverTheme:n,pressTheme:p,focusTheme:l,circular:a,padded:c,elevate:s,bordered:t,transparent:{true:{backgroundColor:"transparent"}},chromeless:{true:e,all:{...e,hoverStyle:e,pressStyle:e,focusStyle:e}}}});export{k as ThemeableStack};
|
|
53
2
|
//# sourceMappingURL=ThemeableStack.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ThemeableStack.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\n\nimport { YStack } from './Stacks.js'\nimport {\n bordered,\n circular,\n elevate,\n focusTheme,\n hoverTheme,\n padded,\n pressTheme,\n radiused,\n} from './variants.js'\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 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,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAmB,UAAAA,MAAc,gBAEjC,OAAS,UAAAC,MAAc,cACvB,OACE,YAAAC,EACA,YAAAC,EACA,WAAAC,EACA,cAAAC,EACA,cAAAC,EACA,UAAAC,EACA,cAAAC,EACA,YAAAC,MACK,gBAEP,MAAMC,EAAkB,CACtB,gBAAiB,cACjB,YAAa,cACb,YAAa,aACf,EAEaC,EAAiBX,EAAOC,EAAQ,CAC3C,KAAM,eAEN,SAAU,CACR,aAAc,CACZ,KAAM,CACJ,gBAAiB,aACnB,CACF,EAEA,SAAAQ,EACA,WAAAH,EACA,WAAAE,EACA,WAAAH,EACA,SAAAF,EACA,OAAAI,EACA,QAAAH,EACA,SAAAF,EAEA,YAAa,CACX,KAAM,CACJ,gBAAiB,aACnB,CACF,EAEA,WAAY,CACV,KAAMQ,EACN,IAAK,CACH,GAAGA,EACH,WAAYA,EACZ,WAAYA,EACZ,WAAYA,CACd,CACF,CACF,CACF,CAAC",
|
|
6
|
+
"names": ["styled", "YStack", "bordered", "circular", "elevate", "focusTheme", "hoverTheme", "padded", "pressTheme", "radiused", "chromelessStyle", "ThemeableStack"]
|
|
7
7
|
}
|
|
@@ -1,53 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { YStack } from "./Stacks.js";
|
|
3
|
-
import {
|
|
4
|
-
bordered,
|
|
5
|
-
circular,
|
|
6
|
-
elevate,
|
|
7
|
-
focusTheme,
|
|
8
|
-
hoverTheme,
|
|
9
|
-
padded,
|
|
10
|
-
pressTheme,
|
|
11
|
-
radiused
|
|
12
|
-
} from "./variants.js";
|
|
13
|
-
const chromelessStyle = {
|
|
14
|
-
backgroundColor: "transparent",
|
|
15
|
-
borderColor: "transparent",
|
|
16
|
-
shadowColor: "transparent"
|
|
17
|
-
};
|
|
18
|
-
const ThemeableStack = styled(YStack, {
|
|
19
|
-
name: "SizableStack",
|
|
20
|
-
variants: {
|
|
21
|
-
backgrounded: {
|
|
22
|
-
true: {
|
|
23
|
-
backgroundColor: "$background"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
radiused,
|
|
27
|
-
hoverTheme,
|
|
28
|
-
pressTheme,
|
|
29
|
-
focusTheme,
|
|
30
|
-
circular,
|
|
31
|
-
padded,
|
|
32
|
-
elevate,
|
|
33
|
-
bordered,
|
|
34
|
-
transparent: {
|
|
35
|
-
true: {
|
|
36
|
-
backgroundColor: "transparent"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
chromeless: {
|
|
40
|
-
true: chromelessStyle,
|
|
41
|
-
all: {
|
|
42
|
-
...chromelessStyle,
|
|
43
|
-
hoverStyle: chromelessStyle,
|
|
44
|
-
pressStyle: chromelessStyle,
|
|
45
|
-
focusStyle: chromelessStyle
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
ThemeableStack
|
|
52
|
-
};
|
|
1
|
+
import{styled as r}from"@tamagui/core";import{YStack as o}from"./Stacks.js";import{bordered as t,circular as a,elevate as s,focusTheme as l,hoverTheme as n,padded as c,pressTheme as p,radiused as d}from"./variants.js";const e={backgroundColor:"transparent",borderColor:"transparent",shadowColor:"transparent"},k=r(o,{name:"SizableStack",variants:{backgrounded:{true:{backgroundColor:"$background"}},radiused:d,hoverTheme:n,pressTheme:p,focusTheme:l,circular:a,padded:c,elevate:s,bordered:t,transparent:{true:{backgroundColor:"transparent"}},chromeless:{true:e,all:{...e,hoverStyle:e,pressStyle:e,focusStyle:e}}}});export{k as ThemeableStack};
|
|
53
2
|
//# sourceMappingURL=ThemeableStack.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ThemeableStack.tsx"],
|
|
4
4
|
"sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\n\nimport { YStack } from './Stacks.js'\nimport {\n bordered,\n circular,\n elevate,\n focusTheme,\n hoverTheme,\n padded,\n pressTheme,\n radiused,\n} from './variants.js'\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 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,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAmB,UAAAA,MAAc,gBAEjC,OAAS,UAAAC,MAAc,cACvB,OACE,YAAAC,EACA,YAAAC,EACA,WAAAC,EACA,cAAAC,EACA,cAAAC,EACA,UAAAC,EACA,cAAAC,EACA,YAAAC,MACK,gBAEP,MAAMC,EAAkB,CACtB,gBAAiB,cACjB,YAAa,cACb,YAAa,aACf,EAEaC,EAAiBX,EAAOC,EAAQ,CAC3C,KAAM,eAEN,SAAU,CACR,aAAc,CACZ,KAAM,CACJ,gBAAiB,aACnB,CACF,EAEA,SAAAQ,EACA,WAAAH,EACA,WAAAE,EACA,WAAAH,EACA,SAAAF,EACA,OAAAI,EACA,QAAAH,EACA,SAAAF,EAEA,YAAa,CACX,KAAM,CACJ,gBAAiB,aACnB,CACF,EAEA,WAAY,CACV,KAAMQ,EACN,IAAK,CACH,GAAGA,EACH,WAAYA,EACZ,WAAYA,EACZ,WAAYA,CACd,CACF,CACF,CACF,CAAC",
|
|
6
|
+
"names": ["styled", "YStack", "bordered", "circular", "elevate", "focusTheme", "hoverTheme", "padded", "pressTheme", "radiused", "chromelessStyle", "ThemeableStack"]
|
|
7
7
|
}
|
package/dist/esm/getElevation.js
CHANGED
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getVariableValue,
|
|
3
|
-
isVariable
|
|
4
|
-
} from "@tamagui/core";
|
|
5
|
-
const getElevation = (size, extras) => {
|
|
6
|
-
if (!size)
|
|
7
|
-
return;
|
|
8
|
-
const { tokens } = extras;
|
|
9
|
-
const token = tokens.size[size];
|
|
10
|
-
const sizeNum = isVariable(token) ? +token.val : size;
|
|
11
|
-
return getSizedElevation(sizeNum, extras);
|
|
12
|
-
};
|
|
13
|
-
const getSizedElevation = (val, { theme, tokens }) => {
|
|
14
|
-
let num = 0;
|
|
15
|
-
if (val === true) {
|
|
16
|
-
const val2 = getVariableValue(tokens.size["true"]);
|
|
17
|
-
if (typeof val2 === "number") {
|
|
18
|
-
num = val2;
|
|
19
|
-
} else {
|
|
20
|
-
num = 10;
|
|
21
|
-
}
|
|
22
|
-
} else {
|
|
23
|
-
num = +val;
|
|
24
|
-
}
|
|
25
|
-
if (process.env.NODE_ENV === "development") {
|
|
26
|
-
if (num !== null && isNaN(num)) {
|
|
27
|
-
console.warn("NaN shadow", num, val);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
31
|
-
const shadow = {
|
|
32
|
-
shadowColor: theme.shadowColor,
|
|
33
|
-
shadowRadius,
|
|
34
|
-
shadowOffset: { height, width: 0 }
|
|
35
|
-
};
|
|
36
|
-
return shadow;
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
getElevation,
|
|
40
|
-
getSizedElevation
|
|
41
|
-
};
|
|
1
|
+
import{getVariableValue as i,isVariable as d}from"@tamagui/core";const w=(o,t)=>{if(!o)return;const{tokens:a}=t,e=a.size[o],n=d(e)?+e.val:o;return u(n,t)},u=(o,{theme:t,tokens:a})=>{let e=0;if(o===!0){const r=i(a.size.true);typeof r=="number"?e=r:e=10}else e=+o;process.env.NODE_ENV==="development"&&e!==null&&isNaN(e)&&console.warn("NaN shadow",e,o);const[n,s]=[Math.round(e/4+1),Math.round(e/2+2)];return{shadowColor:t.shadowColor,shadowRadius:s,shadowOffset:{height:n,width:0}}};export{w as getElevation,u as getSizedElevation};
|
|
42
2
|
//# sourceMappingURL=getElevation.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getElevation.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n SizeTokens,\n SizeVariantSpreadFunction,\n StackProps,\n VariantSpreadExtras,\n getVariableValue,\n isVariable,\n} from '@tamagui/core'\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\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
|
|
6
|
-
"names": ["val"]
|
|
5
|
+
"mappings": "AAAA,OAKE,oBAAAA,EACA,cAAAC,MACK,gBAEA,MAAMC,EAAsD,CAACC,EAAMC,IAAW,CACnF,GAAI,CAACD,EAAM,OACX,KAAM,CAAE,OAAAE,CAAO,EAAID,EACbE,EAAQD,EAAO,KAAKF,CAAI,EACxBI,EAAWN,EAAWK,CAAK,EAAI,CAACA,EAAM,IAAMH,EAClD,OAAOK,EAAkBD,EAASH,CAAM,CAC1C,EAEaI,EAAoB,CAC/BC,EACA,CAAE,MAAAC,EAAO,OAAAL,CAAO,IACb,CACH,IAAIM,EAAM,EACV,GAAIF,IAAQ,GAAM,CAChB,MAAMA,EAAMT,EAAiBK,EAAO,KAAK,IAAO,EAC5C,OAAOI,GAAQ,SACjBE,EAAMF,EAENE,EAAM,EAEV,MACEA,EAAM,CAACF,EAEL,QAAQ,IAAI,WAAa,eACvBE,IAAQ,MAAQ,MAAMA,CAAG,GAE3B,QAAQ,KAAK,aAAcA,EAAKF,CAAG,EAGvC,KAAM,CAACG,EAAQC,CAAY,EAAI,CAAC,KAAK,MAAMF,EAAM,EAAI,CAAC,EAAG,KAAK,MAAMA,EAAM,EAAI,CAAC,CAAC,EAMhF,MALe,CACb,YAAaD,EAAM,YACnB,aAAAG,EACA,aAAc,CAAE,OAAAD,EAAQ,MAAO,CAAE,CACnC,CAEF",
|
|
6
|
+
"names": ["getVariableValue", "isVariable", "getElevation", "size", "extras", "tokens", "token", "sizeNum", "getSizedElevation", "val", "theme", "num", "height", "shadowRadius"]
|
|
7
7
|
}
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getVariableValue,
|
|
3
|
-
isVariable
|
|
4
|
-
} from "@tamagui/core";
|
|
5
|
-
const getElevation = (size, extras) => {
|
|
6
|
-
if (!size)
|
|
7
|
-
return;
|
|
8
|
-
const { tokens } = extras;
|
|
9
|
-
const token = tokens.size[size];
|
|
10
|
-
const sizeNum = isVariable(token) ? +token.val : size;
|
|
11
|
-
return getSizedElevation(sizeNum, extras);
|
|
12
|
-
};
|
|
13
|
-
const getSizedElevation = (val, { theme, tokens }) => {
|
|
14
|
-
let num = 0;
|
|
15
|
-
if (val === true) {
|
|
16
|
-
const val2 = getVariableValue(tokens.size["true"]);
|
|
17
|
-
if (typeof val2 === "number") {
|
|
18
|
-
num = val2;
|
|
19
|
-
} else {
|
|
20
|
-
num = 10;
|
|
21
|
-
}
|
|
22
|
-
} else {
|
|
23
|
-
num = +val;
|
|
24
|
-
}
|
|
25
|
-
if (process.env.NODE_ENV === "development") {
|
|
26
|
-
if (num !== null && isNaN(num)) {
|
|
27
|
-
console.warn("NaN shadow", num, val);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
31
|
-
const shadow = {
|
|
32
|
-
shadowColor: theme.shadowColor,
|
|
33
|
-
shadowRadius,
|
|
34
|
-
shadowOffset: { height, width: 0 }
|
|
35
|
-
};
|
|
36
|
-
return shadow;
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
getElevation,
|
|
40
|
-
getSizedElevation
|
|
41
|
-
};
|
|
1
|
+
import{getVariableValue as i,isVariable as d}from"@tamagui/core";const w=(o,t)=>{if(!o)return;const{tokens:a}=t,e=a.size[o],n=d(e)?+e.val:o;return u(n,t)},u=(o,{theme:t,tokens:a})=>{let e=0;if(o===!0){const r=i(a.size.true);typeof r=="number"?e=r:e=10}else e=+o;process.env.NODE_ENV==="development"&&e!==null&&isNaN(e)&&console.warn("NaN shadow",e,o);const[n,s]=[Math.round(e/4+1),Math.round(e/2+2)];return{shadowColor:t.shadowColor,shadowRadius:s,shadowOffset:{height:n,width:0}}};export{w as getElevation,u as getSizedElevation};
|
|
42
2
|
//# sourceMappingURL=getElevation.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getElevation.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n SizeTokens,\n SizeVariantSpreadFunction,\n StackProps,\n VariantSpreadExtras,\n getVariableValue,\n isVariable,\n} from '@tamagui/core'\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\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
|
|
6
|
-
"names": ["val"]
|
|
5
|
+
"mappings": "AAAA,OAKE,oBAAAA,EACA,cAAAC,MACK,gBAEA,MAAMC,EAAsD,CAACC,EAAMC,IAAW,CACnF,GAAI,CAACD,EAAM,OACX,KAAM,CAAE,OAAAE,CAAO,EAAID,EACbE,EAAQD,EAAO,KAAKF,CAAI,EACxBI,EAAWN,EAAWK,CAAK,EAAI,CAACA,EAAM,IAAMH,EAClD,OAAOK,EAAkBD,EAASH,CAAM,CAC1C,EAEaI,EAAoB,CAC/BC,EACA,CAAE,MAAAC,EAAO,OAAAL,CAAO,IACb,CACH,IAAIM,EAAM,EACV,GAAIF,IAAQ,GAAM,CAChB,MAAMA,EAAMT,EAAiBK,EAAO,KAAK,IAAO,EAC5C,OAAOI,GAAQ,SACjBE,EAAMF,EAENE,EAAM,EAEV,MACEA,EAAM,CAACF,EAEL,QAAQ,IAAI,WAAa,eACvBE,IAAQ,MAAQ,MAAMA,CAAG,GAE3B,QAAQ,KAAK,aAAcA,EAAKF,CAAG,EAGvC,KAAM,CAACG,EAAQC,CAAY,EAAI,CAAC,KAAK,MAAMF,EAAM,EAAI,CAAC,EAAG,KAAK,MAAMA,EAAM,EAAI,CAAC,CAAC,EAMhF,MALe,CACb,YAAaD,EAAM,YACnB,aAAAG,EACA,aAAc,CAAE,OAAAD,EAAQ,MAAO,CAAE,CACnC,CAEF",
|
|
6
|
+
"names": ["getVariableValue", "isVariable", "getElevation", "size", "extras", "tokens", "token", "sizeNum", "getSizedElevation", "val", "theme", "num", "height", "shadowRadius"]
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
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 './Stacks.js'\nexport * from './SizableStack.js'\nexport * from './ThemeableStack.js'\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
5
|
+
"mappings": "AAAA,WAAc,cACd,WAAc,oBACd,WAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.mjs
CHANGED
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 './Stacks.js'\nexport * from './SizableStack.js'\nexport * from './ThemeableStack.js'\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
5
|
+
"mappings": "AAAA,WAAc,cACd,WAAc,oBACd,WAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/variants.js
CHANGED
|
@@ -1,98 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const elevate = {
|
|
3
|
-
true: (_, extras) => {
|
|
4
|
-
return getElevation(extras.props["size"], extras);
|
|
5
|
-
}
|
|
6
|
-
};
|
|
7
|
-
const bordered = (val, { props }) => {
|
|
8
|
-
return {
|
|
9
|
-
// TODO size it with size in '...size'
|
|
10
|
-
borderWidth: typeof val === "number" ? val : 1,
|
|
11
|
-
borderColor: "$borderColor",
|
|
12
|
-
...props.hoverTheme && {
|
|
13
|
-
hoverStyle: {
|
|
14
|
-
borderColor: "$borderColorHover"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
...props.pressTheme && {
|
|
18
|
-
pressStyle: {
|
|
19
|
-
borderColor: "$borderColorPress"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
...props.focusTheme && {
|
|
23
|
-
focusStyle: {
|
|
24
|
-
borderColor: "$borderColorFocus"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
const padded = {
|
|
30
|
-
true: (_, extras) => {
|
|
31
|
-
const { tokens, props } = extras;
|
|
32
|
-
return {
|
|
33
|
-
padding: tokens.space[props.size] || tokens.space["$true"]
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const radiused = {
|
|
38
|
-
true: (_, extras) => {
|
|
39
|
-
const { tokens, props } = extras;
|
|
40
|
-
return {
|
|
41
|
-
borderRadius: tokens.radius[props.size] || tokens.radius["$true"]
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
const circular = {
|
|
46
|
-
true: (_, { props, tokens }) => {
|
|
47
|
-
const size = tokens.size[props.size];
|
|
48
|
-
return {
|
|
49
|
-
width: size,
|
|
50
|
-
height: size,
|
|
51
|
-
maxWidth: size,
|
|
52
|
-
maxHeight: size,
|
|
53
|
-
minWidth: size,
|
|
54
|
-
minHeight: size,
|
|
55
|
-
borderRadius: 1e5,
|
|
56
|
-
padding: 0
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const hoverTheme = {
|
|
61
|
-
true: {
|
|
62
|
-
hoverStyle: {
|
|
63
|
-
backgroundColor: "$backgroundHover",
|
|
64
|
-
borderColor: "$borderColorHover"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
false: {}
|
|
68
|
-
};
|
|
69
|
-
const pressTheme = {
|
|
70
|
-
true: {
|
|
71
|
-
cursor: "pointer",
|
|
72
|
-
pressStyle: {
|
|
73
|
-
backgroundColor: "$backgroundPress",
|
|
74
|
-
borderColor: "$borderColorPress"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
false: {}
|
|
78
|
-
};
|
|
79
|
-
const focusTheme = {
|
|
80
|
-
true: {
|
|
81
|
-
focusStyle: {
|
|
82
|
-
backgroundColor: "$backgroundFocus",
|
|
83
|
-
borderColor: "$borderColorFocus"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
false: {}
|
|
87
|
-
};
|
|
88
|
-
export {
|
|
89
|
-
bordered,
|
|
90
|
-
circular,
|
|
91
|
-
elevate,
|
|
92
|
-
focusTheme,
|
|
93
|
-
hoverTheme,
|
|
94
|
-
padded,
|
|
95
|
-
pressTheme,
|
|
96
|
-
radiused
|
|
97
|
-
};
|
|
1
|
+
import{getElevation as s}from"./getElevation";const u={true:(t,r)=>s(r.props.size,r)},n=(t,{props:r})=>({borderWidth:typeof t=="number"?t:1,borderColor:"$borderColor",...r.hoverTheme&&{hoverStyle:{borderColor:"$borderColorHover"}},...r.pressTheme&&{pressStyle:{borderColor:"$borderColorPress"}},...r.focusTheme&&{focusStyle:{borderColor:"$borderColorFocus"}}}),l={true:(t,r)=>{const{tokens:e,props:o}=r;return{padding:e.space[o.size]||e.space.$true}}},c={true:(t,r)=>{const{tokens:e,props:o}=r;return{borderRadius:e.radius[o.size]||e.radius.$true}}},b={true:(t,{props:r,tokens:e})=>{const o=e.size[r.size];return{width:o,height:o,maxWidth:o,maxHeight:o,minWidth:o,minHeight:o,borderRadius:1e5,padding:0}}},i={true:{hoverStyle:{backgroundColor:"$backgroundHover",borderColor:"$borderColorHover"}},false:{}},a={true:{cursor:"pointer",pressStyle:{backgroundColor:"$backgroundPress",borderColor:"$borderColorPress"}},false:{}},p={true:{focusStyle:{backgroundColor:"$backgroundFocus",borderColor:"$borderColorFocus"}},false:{}};export{n as bordered,b as circular,u as elevate,p as focusTheme,i as hoverTheme,l as padded,a as pressTheme,c as radiused};
|
|
98
2
|
//# sourceMappingURL=variants.js.map
|
package/dist/esm/variants.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/variants.tsx"],
|
|
4
4
|
"sourcesContent": ["import { getElevation } from './getElevation'\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['$true'],\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['$true'],\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 cursor: 'pointer',\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,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,gBAAAA,MAAoB,iBAEtB,MAAMC,EAAU,CACrB,KAAM,CAACC,EAAYC,IACVH,EAAaG,EAAO,MAAM,KAASA,CAAM,CAEpD,EAEaC,EAAW,CAACC,EAAuB,CAAE,MAAAC,CAAM,KAC/C,CAEL,YAAa,OAAOD,GAAQ,SAAWA,EAAM,EAC7C,YAAa,eAEb,GAAIC,EAAM,YAAc,CACtB,WAAY,CACV,YAAa,mBACf,CACF,EAEA,GAAIA,EAAM,YAAc,CACtB,WAAY,CACV,YAAa,mBACf,CACF,EAEA,GAAIA,EAAM,YAAc,CACtB,WAAY,CACV,YAAa,mBACf,CACF,CACF,GAGWC,EAAS,CACpB,KAAM,CAACL,EAAGC,IAAW,CACnB,KAAM,CAAE,OAAAK,EAAQ,MAAAF,CAAM,EAAIH,EAC1B,MAAO,CACL,QAASK,EAAO,MAAMF,EAAM,IAAI,GAAKE,EAAO,MAAM,KACpD,CACF,CACF,EAEaC,EAAW,CACtB,KAAM,CAACP,EAAGC,IAAW,CACnB,KAAM,CAAE,OAAAK,EAAQ,MAAAF,CAAM,EAAIH,EAC1B,MAAO,CACL,aAAcK,EAAO,OAAOF,EAAM,IAAI,GAAKE,EAAO,OAAO,KAC3D,CACF,CACF,EAEaE,EAAW,CACtB,KAAM,CAACR,EAAG,CAAE,MAAAI,EAAO,OAAAE,CAAO,IAAM,CAC9B,MAAMG,EAAOH,EAAO,KAAKF,EAAM,IAAI,EACnC,MAAO,CACL,MAAOK,EACP,OAAQA,EACR,SAAUA,EACV,UAAWA,EACX,SAAUA,EACV,UAAWA,EACX,aAAc,IACd,QAAS,CACX,CACF,CACF,EAEaC,EAAa,CACxB,KAAM,CACJ,WAAY,CACV,gBAAiB,mBACjB,YAAa,mBACf,CACF,EACA,MAAO,CAAC,CACV,EAEaC,EAAa,CACxB,KAAM,CACJ,OAAQ,UACR,WAAY,CACV,gBAAiB,mBACjB,YAAa,mBACf,CACF,EACA,MAAO,CAAC,CACV,EAEaC,EAAa,CACxB,KAAM,CACJ,WAAY,CACV,gBAAiB,mBACjB,YAAa,mBACf,CACF,EACA,MAAO,CAAC,CACV",
|
|
6
|
+
"names": ["getElevation", "elevate", "_", "extras", "bordered", "val", "props", "padded", "tokens", "radiused", "circular", "size", "hoverTheme", "pressTheme", "focusTheme"]
|
|
7
7
|
}
|