@tamagui/card 1.13.4 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/Card.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var l=Object.create;var s=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var k=(r,e)=>{for(var o in e)s(r,o,{get:e[o],enumerable:!0})},u=(r,e,o,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of P(e))!F.call(r,t)&&t!==o&&s(r,t,{get:()=>e[t],enumerable:!(d=x(e,t))||d.enumerable});return r};var y=(r,e,o)=>(o=r!=null?l(z(r)):{},u(e||!r||!r.__esModule?s(o,"default",{value:r,enumerable:!0}):o,r)),b=r=>u(s({},"__esModule",{value:!0}),r);var B={};k(B,{Card:()=>w,CardBackground:()=>f,CardFooter:()=>c,CardFrame:()=>m,CardHeader:()=>C});module.exports=b(B);var g=require("react/jsx-runtime"),i=require("@tamagui/stacks"),a=require("@tamagui/web"),n=y(require("react"));const m=(0,a.styled)(i.ThemeableStack,{name:"Card",backgroundColor:"$background",position:"relative",overflow:"hidden",variants:{size:{"...size":(r,{tokens:e})=>({borderRadius:e.radius[r]??r})}},defaultVariants:{size:"$true"}}),C=(0,a.styled)(i.ThemeableStack,{name:"CardHeader",zIndex:10,backgroundColor:"transparent",marginBottom:"auto",variants:{size:{"...size":(r,{tokens:e})=>({padding:e.space[r]??r})}}}),c=(0,a.styled)(C,{name:"CardFooter",zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}),f=(0,a.styled)(i.ThemeableStack,{name:"CardBackground",zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}),w=(0,a.withStaticProperties)(m.extractable((0,n.forwardRef)(({size:r,__scopeCard:e,children:o,...d},t)=>(0,g.jsx)(m,{ref:t,...d,children:n.default.Children.map(o,p=>(0,a.isTamaguiElement)(p)&&!p.props.size?(0,n.cloneElement)(p,{size:r}):p)}))),{Header:C,Footer:c,Background:f});0&&(module.exports={Card,CardBackground,CardFooter,CardFrame,CardHeader});
1
+ "use strict";var g=Object.create;var p=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var F=(e,r)=>{for(var a in r)p(e,a,{get:r[a],enumerable:!0})},m=(e,r,a,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of x(r))!z.call(e,o)&&o!==a&&p(e,o,{get:()=>r[o],enumerable:!(s=y(r,o))||s.enumerable});return e};var k=(e,r,a)=>(a=e!=null?g(P(e)):{},m(r||!e||!e.__esModule?p(a,"default",{value:e,enumerable:!0}):a,e)),b=e=>m(p({},"__esModule",{value:!0}),e);var w={};F(w,{Card:()=>v,CardBackground:()=>c,CardFooter:()=>f,CardFrame:()=>u,CardHeader:()=>l});module.exports=b(w);var C=require("react/jsx-runtime"),i=require("@tamagui/stacks"),t=require("@tamagui/web"),n=k(require("react"));const u=(0,t.styled)(i.ThemeableStack,{name:"Card",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",position:"relative",overflow:"hidden"}},size:{"...size":(e,{tokens:r})=>({borderRadius:r.radius[e]??e})}},defaultVariants:{unstyled:!1}}),l=(0,t.styled)(i.ThemeableStack,{name:"CardHeader",variants:{unstyled:{false:{zIndex:10,backgroundColor:"transparent",marginBottom:"auto"}},size:{"...size":(e,{tokens:r})=>({padding:r.space[e]??e})}}}),f=(0,t.styled)(l,{name:"CardFooter",variants:{unstyled:{false:{zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}}},defaultVariants:{unstyled:!1}}),c=(0,t.styled)(i.ThemeableStack,{name:"CardBackground",variants:{unstyled:{false:{zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}}},defaultVariants:{unstyled:!1}}),v=(0,t.withStaticProperties)(u.extractable((0,n.forwardRef)(({size:e,__scopeCard:r,children:a,...s},o)=>(0,C.jsx)(u,{ref:o,...s,children:n.default.Children.map(a,d=>(0,t.isTamaguiElement)(d)&&!d.props.size?(0,n.cloneElement)(d,{size:e}):d)}))),{Header:l,Footer:f,Background:c});0&&(module.exports={Card,CardBackground,CardFooter,CardFrame,CardHeader});
2
2
  //# sourceMappingURL=Card.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Card.tsx"],
4
- "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\n// const CARD_NAME = 'CARD'\n\n// type CardContextValue = {\n// size?: SizeTokens\n// }\n\n// const [createCardContext, createCardScope] = createContextScope(CARD_NAME)\n// const [CardProvider, useCardContext] = createCardContext<CardContextValue>(CARD_NAME)\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n size: '$true',\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n // <CardProvider scope={__scopeCard} size={size}>\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n // </CardProvider>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n\n// export { createCardScope, useCardContext }\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,EAAA,mBAAAC,EAAA,eAAAC,EAAA,cAAAC,EAAA,eAAAC,IAAA,eAAAC,EAAAP,GAqFU,IAAAQ,EAAA,6BApFVC,EAA+B,2BAC/BC,EAMO,wBACPC,EAAgD,oBAWzC,MAAMN,KAAY,UAAO,iBAAgB,CAC9C,KAAM,OACN,gBAAiB,cACjB,SAAU,WACV,SAAU,SAEV,SAAU,CACR,KAAM,CACJ,UAAW,CAACO,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAEYN,KAAa,UAAO,iBAAgB,CAC/C,KAAM,aACN,OAAQ,GACR,gBAAiB,cACjB,aAAc,OAEd,SAAU,CACR,KAAM,CACJ,UAAW,CAACM,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYR,KAAa,UAAOE,EAAY,CAC3C,KAAM,aACN,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CAAC,EAEYH,KAAiB,UAAO,iBAAgB,CACnD,KAAM,iBACN,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CAAC,EAMYD,KAAO,wBAClBG,EAAU,eACR,cACE,CAAC,CAAE,KAAAS,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,OAGxC,OAACb,EAAA,CAAU,IAAKa,EAAM,GAAGD,EACtB,WAAAE,QAAM,SAAS,IAAIH,EAAWI,MACzB,oBAAiBA,CAAK,GAAK,CAACA,EAAM,MAAM,QACnC,gBAAaA,EAAO,CACzB,KAAAN,CACF,CAAC,EAEIM,CACR,EACH,CAIN,CACF,EACA,CACE,OAAQd,EACR,OAAQF,EACR,WAAYD,CACd,CACF",
4
+ "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n\n variants: {\n unstyled: {\n false: {\n size: '$true',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,EAAA,mBAAAC,EAAA,eAAAC,EAAA,cAAAC,EAAA,eAAAC,IAAA,eAAAC,EAAAP,GA4GU,IAAAQ,EAAA,6BA3GVC,EAA+B,2BAC/BC,EAMO,wBACPC,EAAgD,oBAEzC,MAAMN,KAAY,UAAO,iBAAgB,CAC9C,KAAM,OAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,KAAM,QACN,gBAAiB,cACjB,SAAU,WACV,SAAU,QACZ,CACF,EAEA,KAAM,CACJ,UAAW,CAACO,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYN,KAAa,UAAO,iBAAgB,CAC/C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,GACR,gBAAiB,cACjB,aAAc,MAChB,CACF,EAEA,KAAM,CACJ,UAAW,CAACM,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYR,KAAa,UAAOE,EAAY,CAC3C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYH,KAAiB,UAAO,iBAAgB,CACnD,KAAM,iBAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAMYD,KAAO,wBAClBG,EAAU,eACR,cACE,CAAC,CAAE,KAAAS,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,OAExC,OAACb,EAAA,CAAU,IAAKa,EAAM,GAAGD,EACtB,WAAAE,QAAM,SAAS,IAAIH,EAAWI,MACzB,oBAAiBA,CAAK,GAAK,CAACA,EAAM,MAAM,QACnC,gBAAaA,EAAO,CACzB,KAAAN,CACF,CAAC,EAEIM,CACR,EACH,CAGN,CACF,EACA,CACE,OAAQd,EACR,OAAQF,EACR,WAAYD,CACd,CACF",
6
6
  "names": ["Card_exports", "__export", "Card", "CardBackground", "CardFooter", "CardFrame", "CardHeader", "__toCommonJS", "import_jsx_runtime", "import_stacks", "import_web", "import_react", "val", "tokens", "size", "__scopeCard", "children", "props", "ref", "React", "child"]
7
7
  }
package/dist/esm/Card.js CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as x}from"react/jsx-runtime";import{ThemeableStack as t}from"@tamagui/stacks";import{isTamaguiElement as m,styled as a,withStaticProperties as C}from"@tamagui/web";import u,{cloneElement as c,forwardRef as f}from"react";const n=a(t,{name:"Card",backgroundColor:"$background",position:"relative",overflow:"hidden",variants:{size:{"...size":(r,{tokens:e})=>({borderRadius:e.radius[r]??r})}},defaultVariants:{size:"$true"}}),d=a(t,{name:"CardHeader",zIndex:10,backgroundColor:"transparent",marginBottom:"auto",variants:{size:{"...size":(r,{tokens:e})=>({padding:e.space[r]??r})}}}),g=a(d,{name:"CardFooter",zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}),l=a(t,{name:"CardBackground",zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}),B=C(n.extractable(f(({size:r,__scopeCard:e,children:p,...s},i)=>x(n,{ref:i,...s,children:u.Children.map(p,o=>m(o)&&!o.props.size?c(o,{size:r}):o)}))),{Header:d,Footer:g,Background:l});export{B as Card,l as CardBackground,g as CardFooter,n as CardFrame,d as CardHeader};
1
+ import{jsx as y}from"react/jsx-runtime";import{ThemeableStack as o}from"@tamagui/stacks";import{isTamaguiElement as u,styled as t,withStaticProperties as l}from"@tamagui/web";import m,{cloneElement as f,forwardRef as c}from"react";const n=t(o,{name:"Card",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",position:"relative",overflow:"hidden"}},size:{"...size":(e,{tokens:r})=>({borderRadius:r.radius[e]??e})}},defaultVariants:{unstyled:!1}}),s=t(o,{name:"CardHeader",variants:{unstyled:{false:{zIndex:10,backgroundColor:"transparent",marginBottom:"auto"}},size:{"...size":(e,{tokens:r})=>({padding:r.space[e]??e})}}}),C=t(s,{name:"CardFooter",variants:{unstyled:{false:{zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}}},defaultVariants:{unstyled:!1}}),g=t(o,{name:"CardBackground",variants:{unstyled:{false:{zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}}},defaultVariants:{unstyled:!1}}),w=l(n.extractable(c(({size:e,__scopeCard:r,children:d,...p},i)=>y(n,{ref:i,...p,children:m.Children.map(d,a=>u(a)&&!a.props.size?f(a,{size:e}):a)}))),{Header:s,Footer:C,Background:g});export{w as Card,g as CardBackground,C as CardFooter,n as CardFrame,s as CardHeader};
2
2
  //# sourceMappingURL=Card.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Card.tsx"],
4
- "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\n// const CARD_NAME = 'CARD'\n\n// type CardContextValue = {\n// size?: SizeTokens\n// }\n\n// const [createCardContext, createCardScope] = createContextScope(CARD_NAME)\n// const [CardProvider, useCardContext] = createCardContext<CardContextValue>(CARD_NAME)\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n size: '$true',\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n // <CardProvider scope={__scopeCard} size={size}>\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n // </CardProvider>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n\n// export { createCardScope, useCardContext }\n"],
5
- "mappings": "AAqFU,cAAAA,MAAA,oBApFV,OAAS,kBAAAC,MAAsB,kBAC/B,OAGE,oBAAAC,EACA,UAAAC,EACA,wBAAAC,MACK,eACP,OAAOC,GAAS,gBAAAC,EAAc,cAAAC,MAAkB,QAWzC,MAAMC,EAAYL,EAAOF,EAAgB,CAC9C,KAAM,OACN,gBAAiB,cACjB,SAAU,WACV,SAAU,SAEV,SAAU,CACR,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAEYE,EAAaR,EAAOF,EAAgB,CAC/C,KAAM,aACN,OAAQ,GACR,gBAAiB,cACjB,aAAc,OAEd,SAAU,CACR,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYG,EAAaT,EAAOQ,EAAY,CAC3C,KAAM,aACN,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CAAC,EAEYE,EAAiBV,EAAOF,EAAgB,CACnD,KAAM,iBACN,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CAAC,EAMYa,EAAOV,EAClBI,EAAU,YACRD,EACE,CAAC,CAAE,KAAAQ,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAGxCnB,EAACQ,EAAA,CAAU,IAAKW,EAAM,GAAGD,EACtB,SAAAb,EAAM,SAAS,IAAIY,EAAWG,GACzBlB,EAAiBkB,CAAK,GAAK,CAACA,EAAM,MAAM,KACnCd,EAAac,EAAO,CACzB,KAAAL,CACF,CAAC,EAEIK,CACR,EACH,CAIN,CACF,EACA,CACE,OAAQT,EACR,OAAQC,EACR,WAAYC,CACd,CACF",
4
+ "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n\n variants: {\n unstyled: {\n false: {\n size: '$true',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n"],
5
+ "mappings": "AA4GU,cAAAA,MAAA,oBA3GV,OAAS,kBAAAC,MAAsB,kBAC/B,OAGE,oBAAAC,EACA,UAAAC,EACA,wBAAAC,MACK,eACP,OAAOC,GAAS,gBAAAC,EAAc,cAAAC,MAAkB,QAEzC,MAAMC,EAAYL,EAAOF,EAAgB,CAC9C,KAAM,OAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,KAAM,QACN,gBAAiB,cACjB,SAAU,WACV,SAAU,QACZ,CACF,EAEA,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYE,EAAaR,EAAOF,EAAgB,CAC/C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,GACR,gBAAiB,cACjB,aAAc,MAChB,CACF,EAEA,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYG,EAAaT,EAAOQ,EAAY,CAC3C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYE,EAAiBV,EAAOF,EAAgB,CACnD,KAAM,iBAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAMYa,EAAOV,EAClBI,EAAU,YACRD,EACE,CAAC,CAAE,KAAAQ,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAExCnB,EAACQ,EAAA,CAAU,IAAKW,EAAM,GAAGD,EACtB,SAAAb,EAAM,SAAS,IAAIY,EAAWG,GACzBlB,EAAiBkB,CAAK,GAAK,CAACA,EAAM,MAAM,KACnCd,EAAac,EAAO,CACzB,KAAAL,CACF,CAAC,EAEIK,CACR,EACH,CAGN,CACF,EACA,CACE,OAAQT,EACR,OAAQC,EACR,WAAYC,CACd,CACF",
6
6
  "names": ["jsx", "ThemeableStack", "isTamaguiElement", "styled", "withStaticProperties", "React", "cloneElement", "forwardRef", "CardFrame", "val", "tokens", "CardHeader", "CardFooter", "CardBackground", "Card", "size", "__scopeCard", "children", "props", "ref", "child"]
7
7
  }
package/dist/esm/Card.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as x}from"react/jsx-runtime";import{ThemeableStack as t}from"@tamagui/stacks";import{isTamaguiElement as m,styled as a,withStaticProperties as C}from"@tamagui/web";import u,{cloneElement as c,forwardRef as f}from"react";const n=a(t,{name:"Card",backgroundColor:"$background",position:"relative",overflow:"hidden",variants:{size:{"...size":(r,{tokens:e})=>({borderRadius:e.radius[r]??r})}},defaultVariants:{size:"$true"}}),d=a(t,{name:"CardHeader",zIndex:10,backgroundColor:"transparent",marginBottom:"auto",variants:{size:{"...size":(r,{tokens:e})=>({padding:e.space[r]??r})}}}),g=a(d,{name:"CardFooter",zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}),l=a(t,{name:"CardBackground",zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}),B=C(n.extractable(f(({size:r,__scopeCard:e,children:p,...s},i)=>x(n,{ref:i,...s,children:u.Children.map(p,o=>m(o)&&!o.props.size?c(o,{size:r}):o)}))),{Header:d,Footer:g,Background:l});export{B as Card,l as CardBackground,g as CardFooter,n as CardFrame,d as CardHeader};
1
+ import{jsx as y}from"react/jsx-runtime";import{ThemeableStack as o}from"@tamagui/stacks";import{isTamaguiElement as u,styled as t,withStaticProperties as l}from"@tamagui/web";import m,{cloneElement as f,forwardRef as c}from"react";const n=t(o,{name:"Card",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",position:"relative",overflow:"hidden"}},size:{"...size":(e,{tokens:r})=>({borderRadius:r.radius[e]??e})}},defaultVariants:{unstyled:!1}}),s=t(o,{name:"CardHeader",variants:{unstyled:{false:{zIndex:10,backgroundColor:"transparent",marginBottom:"auto"}},size:{"...size":(e,{tokens:r})=>({padding:r.space[e]??e})}}}),C=t(s,{name:"CardFooter",variants:{unstyled:{false:{zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}}},defaultVariants:{unstyled:!1}}),g=t(o,{name:"CardBackground",variants:{unstyled:{false:{zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}}},defaultVariants:{unstyled:!1}}),w=l(n.extractable(c(({size:e,__scopeCard:r,children:d,...p},i)=>y(n,{ref:i,...p,children:m.Children.map(d,a=>u(a)&&!a.props.size?f(a,{size:e}):a)}))),{Header:s,Footer:C,Background:g});export{w as Card,g as CardBackground,C as CardFooter,n as CardFrame,s as CardHeader};
2
2
  //# sourceMappingURL=Card.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Card.tsx"],
4
- "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\n// const CARD_NAME = 'CARD'\n\n// type CardContextValue = {\n// size?: SizeTokens\n// }\n\n// const [createCardContext, createCardScope] = createContextScope(CARD_NAME)\n// const [CardProvider, useCardContext] = createCardContext<CardContextValue>(CARD_NAME)\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n size: '$true',\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n // <CardProvider scope={__scopeCard} size={size}>\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n // </CardProvider>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n\n// export { createCardScope, useCardContext }\n"],
5
- "mappings": "AAqFU,cAAAA,MAAA,oBApFV,OAAS,kBAAAC,MAAsB,kBAC/B,OAGE,oBAAAC,EACA,UAAAC,EACA,wBAAAC,MACK,eACP,OAAOC,GAAS,gBAAAC,EAAc,cAAAC,MAAkB,QAWzC,MAAMC,EAAYL,EAAOF,EAAgB,CAC9C,KAAM,OACN,gBAAiB,cACjB,SAAU,WACV,SAAU,SAEV,SAAU,CACR,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAEYE,EAAaR,EAAOF,EAAgB,CAC/C,KAAM,aACN,OAAQ,GACR,gBAAiB,cACjB,aAAc,OAEd,SAAU,CACR,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYG,EAAaT,EAAOQ,EAAY,CAC3C,KAAM,aACN,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CAAC,EAEYE,EAAiBV,EAAOF,EAAgB,CACnD,KAAM,iBACN,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CAAC,EAMYa,EAAOV,EAClBI,EAAU,YACRD,EACE,CAAC,CAAE,KAAAQ,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAGxCnB,EAACQ,EAAA,CAAU,IAAKW,EAAM,GAAGD,EACtB,SAAAb,EAAM,SAAS,IAAIY,EAAWG,GACzBlB,EAAiBkB,CAAK,GAAK,CAACA,EAAM,MAAM,KACnCd,EAAac,EAAO,CACzB,KAAAL,CACF,CAAC,EAEIK,CACR,EACH,CAIN,CACF,EACA,CACE,OAAQT,EACR,OAAQC,EACR,WAAYC,CACd,CACF",
4
+ "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n\n variants: {\n unstyled: {\n false: {\n size: '$true',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n"],
5
+ "mappings": "AA4GU,cAAAA,MAAA,oBA3GV,OAAS,kBAAAC,MAAsB,kBAC/B,OAGE,oBAAAC,EACA,UAAAC,EACA,wBAAAC,MACK,eACP,OAAOC,GAAS,gBAAAC,EAAc,cAAAC,MAAkB,QAEzC,MAAMC,EAAYL,EAAOF,EAAgB,CAC9C,KAAM,OAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,KAAM,QACN,gBAAiB,cACjB,SAAU,WACV,SAAU,QACZ,CACF,EAEA,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYE,EAAaR,EAAOF,EAAgB,CAC/C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,GACR,gBAAiB,cACjB,aAAc,MAChB,CACF,EAEA,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYG,EAAaT,EAAOQ,EAAY,CAC3C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYE,EAAiBV,EAAOF,EAAgB,CACnD,KAAM,iBAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAMYa,EAAOV,EAClBI,EAAU,YACRD,EACE,CAAC,CAAE,KAAAQ,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAExCnB,EAACQ,EAAA,CAAU,IAAKW,EAAM,GAAGD,EACtB,SAAAb,EAAM,SAAS,IAAIY,EAAWG,GACzBlB,EAAiBkB,CAAK,GAAK,CAACA,EAAM,MAAM,KACnCd,EAAac,EAAO,CACzB,KAAAL,CACF,CAAC,EAEIK,CACR,EACH,CAGN,CACF,EACA,CACE,OAAQT,EACR,OAAQC,EACR,WAAYC,CACd,CACF",
6
6
  "names": ["jsx", "ThemeableStack", "isTamaguiElement", "styled", "withStaticProperties", "React", "cloneElement", "forwardRef", "CardFrame", "val", "tokens", "CardHeader", "CardFooter", "CardBackground", "Card", "size", "__scopeCard", "children", "props", "ref", "child"]
7
7
  }
package/dist/jsx/Card.js CHANGED
@@ -1,2 +1,2 @@
1
- import{ThemeableStack as t}from"@tamagui/stacks";import{isTamaguiElement as x,styled as a,withStaticProperties as P}from"@tamagui/web";import z,{cloneElement as F,forwardRef as k}from"react";const C=a(t,{name:"Card",backgroundColor:"$background",position:"relative",overflow:"hidden",variants:{size:{"...size":(r,{tokens:e})=>({borderRadius:e.radius[r]??r})}},defaultVariants:{size:"$true"}}),c=a(t,{name:"CardHeader",zIndex:10,backgroundColor:"transparent",marginBottom:"auto",variants:{size:{"...size":(r,{tokens:e})=>({padding:e.space[r]??r})}}}),y=a(c,{name:"CardFooter",zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}),b=a(t,{name:"CardBackground",zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}),S=P(C.extractable(k(({size:r,__scopeCard:e,children:f,...g},l)=><C ref={l}{...g}>{z.Children.map(f,o=>x(o)&&!o.props.size?F(o,{size:r}):o)}</C>)),{Header:c,Footer:y,Background:b});export{S as Card,b as CardBackground,y as CardFooter,C as CardFrame,c as CardHeader};
1
+ import{ThemeableStack as o}from"@tamagui/stacks";import{isTamaguiElement as z,styled as t,withStaticProperties as F}from"@tamagui/web";import k,{cloneElement as b,forwardRef as v}from"react";const C=t(o,{name:"Card",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",position:"relative",overflow:"hidden"}},size:{"...size":(e,{tokens:r})=>({borderRadius:r.radius[e]??e})}},defaultVariants:{unstyled:!1}}),g=t(o,{name:"CardHeader",variants:{unstyled:{false:{zIndex:10,backgroundColor:"transparent",marginBottom:"auto"}},size:{"...size":(e,{tokens:r})=>({padding:r.space[e]??e})}}}),w=t(g,{name:"CardFooter",variants:{unstyled:{false:{zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}}},defaultVariants:{unstyled:!1}}),B=t(o,{name:"CardBackground",variants:{unstyled:{false:{zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}}},defaultVariants:{unstyled:!1}}),V=F(C.extractable(v(({size:e,__scopeCard:r,children:y,...x},P)=><C ref={P}{...x}>{k.Children.map(y,a=>z(a)&&!a.props.size?b(a,{size:e}):a)}</C>)),{Header:g,Footer:w,Background:B});export{V as Card,B as CardBackground,w as CardFooter,C as CardFrame,g as CardHeader};
2
2
  //# sourceMappingURL=Card.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Card.tsx"],
4
- "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\n// const CARD_NAME = 'CARD'\n\n// type CardContextValue = {\n// size?: SizeTokens\n// }\n\n// const [createCardContext, createCardScope] = createContextScope(CARD_NAME)\n// const [CardProvider, useCardContext] = createCardContext<CardContextValue>(CARD_NAME)\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n size: '$true',\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n // <CardProvider scope={__scopeCard} size={size}>\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n // </CardProvider>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n\n// export { createCardScope, useCardContext }\n"],
5
- "mappings": "AACA,OAAS,kBAAAA,MAAsB,kBAC/B,OAGE,oBAAAC,EACA,UAAAC,EACA,wBAAAC,MACK,eACP,OAAOC,GAAS,gBAAAC,EAAc,cAAAC,MAAkB,QAWzC,MAAMC,EAAYL,EAAOF,EAAgB,CAC9C,KAAM,OACN,gBAAiB,cACjB,SAAU,WACV,SAAU,SAEV,SAAU,CACR,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAEYE,EAAaR,EAAOF,EAAgB,CAC/C,KAAM,aACN,OAAQ,GACR,gBAAiB,cACjB,aAAc,OAEd,SAAU,CACR,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYG,EAAaT,EAAOQ,EAAY,CAC3C,KAAM,aACN,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CAAC,EAEYE,EAAiBV,EAAOF,EAAgB,CACnD,KAAM,iBACN,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CAAC,EAMYa,EAAOV,EAClBI,EAAU,YACRD,EACE,CAAC,CAAE,KAAAQ,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAGxC,CAACX,EAAU,KAAKW,MAASD,IACtBb,EAAM,SAAS,IAAIY,EAAWG,GACzBlB,EAAiBkB,CAAK,GAAK,CAACA,EAAM,MAAM,KACnCd,EAAac,EAAO,CACzB,KAAAL,CACF,CAAC,EAEIK,CACR,EACH,EATCZ,EAaP,CACF,EACA,CACE,OAAQG,EACR,OAAQC,EACR,WAAYC,CACd,CACF",
4
+ "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n\n variants: {\n unstyled: {\n false: {\n size: '$true',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n"],
5
+ "mappings": "AACA,OAAS,kBAAAA,MAAsB,kBAC/B,OAGE,oBAAAC,EACA,UAAAC,EACA,wBAAAC,MACK,eACP,OAAOC,GAAS,gBAAAC,EAAc,cAAAC,MAAkB,QAEzC,MAAMC,EAAYL,EAAOF,EAAgB,CAC9C,KAAM,OAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,KAAM,QACN,gBAAiB,cACjB,SAAU,WACV,SAAU,QACZ,CACF,EAEA,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYE,EAAaR,EAAOF,EAAgB,CAC/C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,GACR,gBAAiB,cACjB,aAAc,MAChB,CACF,EAEA,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYG,EAAaT,EAAOQ,EAAY,CAC3C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYE,EAAiBV,EAAOF,EAAgB,CACnD,KAAM,iBAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAMYa,EAAOV,EAClBI,EAAU,YACRD,EACE,CAAC,CAAE,KAAAQ,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAExC,CAACX,EAAU,KAAKW,MAASD,IACtBb,EAAM,SAAS,IAAIY,EAAWG,GACzBlB,EAAiBkB,CAAK,GAAK,CAACA,EAAM,MAAM,KACnCd,EAAac,EAAO,CACzB,KAAAL,CACF,CAAC,EAEIK,CACR,EACH,EATCZ,EAYP,CACF,EACA,CACE,OAAQG,EACR,OAAQC,EACR,WAAYC,CACd,CACF",
6
6
  "names": ["ThemeableStack", "isTamaguiElement", "styled", "withStaticProperties", "React", "cloneElement", "forwardRef", "CardFrame", "val", "tokens", "CardHeader", "CardFooter", "CardBackground", "Card", "size", "__scopeCard", "children", "props", "ref", "child"]
7
7
  }
package/dist/jsx/Card.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{ThemeableStack as t}from"@tamagui/stacks";import{isTamaguiElement as x,styled as a,withStaticProperties as P}from"@tamagui/web";import z,{cloneElement as F,forwardRef as k}from"react";const C=a(t,{name:"Card",backgroundColor:"$background",position:"relative",overflow:"hidden",variants:{size:{"...size":(r,{tokens:e})=>({borderRadius:e.radius[r]??r})}},defaultVariants:{size:"$true"}}),c=a(t,{name:"CardHeader",zIndex:10,backgroundColor:"transparent",marginBottom:"auto",variants:{size:{"...size":(r,{tokens:e})=>({padding:e.space[r]??r})}}}),y=a(c,{name:"CardFooter",zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}),b=a(t,{name:"CardBackground",zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}),S=P(C.extractable(k(({size:r,__scopeCard:e,children:f,...g},l)=><C ref={l}{...g}>{z.Children.map(f,o=>x(o)&&!o.props.size?F(o,{size:r}):o)}</C>)),{Header:c,Footer:y,Background:b});export{S as Card,b as CardBackground,y as CardFooter,C as CardFrame,c as CardHeader};
1
+ import{ThemeableStack as o}from"@tamagui/stacks";import{isTamaguiElement as z,styled as t,withStaticProperties as F}from"@tamagui/web";import k,{cloneElement as b,forwardRef as v}from"react";const C=t(o,{name:"Card",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",position:"relative",overflow:"hidden"}},size:{"...size":(e,{tokens:r})=>({borderRadius:r.radius[e]??e})}},defaultVariants:{unstyled:!1}}),g=t(o,{name:"CardHeader",variants:{unstyled:{false:{zIndex:10,backgroundColor:"transparent",marginBottom:"auto"}},size:{"...size":(e,{tokens:r})=>({padding:r.space[e]??e})}}}),w=t(g,{name:"CardFooter",variants:{unstyled:{false:{zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}}},defaultVariants:{unstyled:!1}}),B=t(o,{name:"CardBackground",variants:{unstyled:{false:{zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}}},defaultVariants:{unstyled:!1}}),V=F(C.extractable(v(({size:e,__scopeCard:r,children:y,...x},P)=><C ref={P}{...x}>{k.Children.map(y,a=>z(a)&&!a.props.size?b(a,{size:e}):a)}</C>)),{Header:g,Footer:w,Background:B});export{V as Card,B as CardBackground,w as CardFooter,C as CardFrame,g as CardHeader};
2
2
  //# sourceMappingURL=Card.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Card.tsx"],
4
- "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\n// const CARD_NAME = 'CARD'\n\n// type CardContextValue = {\n// size?: SizeTokens\n// }\n\n// const [createCardContext, createCardScope] = createContextScope(CARD_NAME)\n// const [CardProvider, useCardContext] = createCardContext<CardContextValue>(CARD_NAME)\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n size: '$true',\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n\n variants: {\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n // <CardProvider scope={__scopeCard} size={size}>\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n // </CardProvider>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n\n// export { createCardScope, useCardContext }\n"],
5
- "mappings": "AACA,OAAS,kBAAAA,MAAsB,kBAC/B,OAGE,oBAAAC,EACA,UAAAC,EACA,wBAAAC,MACK,eACP,OAAOC,GAAS,gBAAAC,EAAc,cAAAC,MAAkB,QAWzC,MAAMC,EAAYL,EAAOF,EAAgB,CAC9C,KAAM,OACN,gBAAiB,cACjB,SAAU,WACV,SAAU,SAEV,SAAU,CACR,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAEYE,EAAaR,EAAOF,EAAgB,CAC/C,KAAM,aACN,OAAQ,GACR,gBAAiB,cACjB,aAAc,OAEd,SAAU,CACR,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYG,EAAaT,EAAOQ,EAAY,CAC3C,KAAM,aACN,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CAAC,EAEYE,EAAiBV,EAAOF,EAAgB,CACnD,KAAM,iBACN,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CAAC,EAMYa,EAAOV,EAClBI,EAAU,YACRD,EACE,CAAC,CAAE,KAAAQ,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAGxC,CAACX,EAAU,KAAKW,MAASD,IACtBb,EAAM,SAAS,IAAIY,EAAWG,GACzBlB,EAAiBkB,CAAK,GAAK,CAACA,EAAM,MAAM,KACnCd,EAAac,EAAO,CACzB,KAAAL,CACF,CAAC,EAEIK,CACR,EACH,EATCZ,EAaP,CACF,EACA,CACE,OAAQG,EACR,OAAQC,EACR,WAAYC,CACd,CACF",
4
+ "sourcesContent": ["import { ScopedProps } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport {\n GetProps,\n TamaguiElement,\n isTamaguiElement,\n styled,\n withStaticProperties,\n} from '@tamagui/web'\nimport React, { cloneElement, forwardRef } from 'react'\n\nexport const CardFrame = styled(ThemeableStack, {\n name: 'Card',\n\n variants: {\n unstyled: {\n false: {\n size: '$true',\n backgroundColor: '$background',\n position: 'relative',\n overflow: 'hidden',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n borderRadius: tokens.radius[val] ?? val,\n }\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardHeader = styled(ThemeableStack, {\n name: 'CardHeader',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 10,\n backgroundColor: 'transparent',\n marginBottom: 'auto',\n },\n },\n\n size: {\n '...size': (val, { tokens }) => {\n return {\n padding: tokens.space[val] ?? val,\n }\n },\n },\n } as const,\n})\n\nexport const CardFooter = styled(CardHeader, {\n name: 'CardFooter',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 5,\n flexDirection: 'row',\n marginTop: 'auto',\n marginBottom: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport const CardBackground = styled(ThemeableStack, {\n name: 'CardBackground',\n\n variants: {\n unstyled: {\n false: {\n zIndex: 0,\n fullscreen: true,\n overflow: 'hidden',\n pointerEvents: 'none',\n padding: 0,\n },\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport type CardHeaderProps = GetProps<typeof CardHeader>\nexport type CardFooterProps = GetProps<typeof CardFooter>\nexport type CardProps = GetProps<typeof CardFrame>\n\nexport const Card = withStaticProperties(\n CardFrame.extractable(\n forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(\n ({ size, __scopeCard, children, ...props }, ref) => {\n return (\n <CardFrame ref={ref} {...props}>\n {React.Children.map(children, (child) => {\n if (isTamaguiElement(child) && !child.props.size) {\n return cloneElement(child, {\n size,\n })\n }\n return child\n })}\n </CardFrame>\n )\n }\n )\n ),\n {\n Header: CardHeader,\n Footer: CardFooter,\n Background: CardBackground,\n }\n)\n"],
5
+ "mappings": "AACA,OAAS,kBAAAA,MAAsB,kBAC/B,OAGE,oBAAAC,EACA,UAAAC,EACA,wBAAAC,MACK,eACP,OAAOC,GAAS,gBAAAC,EAAc,cAAAC,MAAkB,QAEzC,MAAMC,EAAYL,EAAOF,EAAgB,CAC9C,KAAM,OAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,KAAM,QACN,gBAAiB,cACjB,SAAU,WACV,SAAU,QACZ,CACF,EAEA,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,aAAcA,EAAO,OAAOD,CAAG,GAAKA,CACtC,EAEJ,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYE,EAAaR,EAAOF,EAAgB,CAC/C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,GACR,gBAAiB,cACjB,aAAc,MAChB,CACF,EAEA,KAAM,CACJ,UAAW,CAACQ,EAAK,CAAE,OAAAC,CAAO,KACjB,CACL,QAASA,EAAO,MAAMD,CAAG,GAAKA,CAChC,EAEJ,CACF,CACF,CAAC,EAEYG,EAAaT,EAAOQ,EAAY,CAC3C,KAAM,aAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,cAAe,MACf,UAAW,OACX,aAAc,CAChB,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAEYE,EAAiBV,EAAOF,EAAgB,CACnD,KAAM,iBAEN,SAAU,CACR,SAAU,CACR,MAAO,CACL,OAAQ,EACR,WAAY,GACZ,SAAU,SACV,cAAe,OACf,QAAS,CACX,CACF,CACF,EAEA,gBAAiB,CACf,SAAU,EACZ,CACF,CAAC,EAMYa,EAAOV,EAClBI,EAAU,YACRD,EACE,CAAC,CAAE,KAAAQ,EAAM,YAAAC,EAAa,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAExC,CAACX,EAAU,KAAKW,MAASD,IACtBb,EAAM,SAAS,IAAIY,EAAWG,GACzBlB,EAAiBkB,CAAK,GAAK,CAACA,EAAM,MAAM,KACnCd,EAAac,EAAO,CACzB,KAAAL,CACF,CAAC,EAEIK,CACR,EACH,EATCZ,EAYP,CACF,EACA,CACE,OAAQG,EACR,OAAQC,EACR,WAAYC,CACd,CACF",
6
6
  "names": ["ThemeableStack", "isTamaguiElement", "styled", "withStaticProperties", "React", "cloneElement", "forwardRef", "CardFrame", "val", "tokens", "CardHeader", "CardFooter", "CardBackground", "Card", "size", "__scopeCard", "children", "props", "ref", "child"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/card",
3
- "version": "1.13.4",
3
+ "version": "1.14.1",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -31,16 +31,16 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@tamagui/create-context": "1.13.4",
35
- "@tamagui/stacks": "1.13.4",
36
- "@tamagui/web": "1.13.4"
34
+ "@tamagui/create-context": "1.14.1",
35
+ "@tamagui/stacks": "1.14.1",
36
+ "@tamagui/web": "1.14.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "*",
40
40
  "react-native": "*"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "1.13.4",
43
+ "@tamagui/build": "1.14.1",
44
44
  "react": "^18.2.0",
45
45
  "react-native": "^0.71.4"
46
46
  },
package/src/Card.tsx CHANGED
@@ -9,22 +9,19 @@ import {
9
9
  } from '@tamagui/web'
10
10
  import React, { cloneElement, forwardRef } from 'react'
11
11
 
12
- // const CARD_NAME = 'CARD'
13
-
14
- // type CardContextValue = {
15
- // size?: SizeTokens
16
- // }
17
-
18
- // const [createCardContext, createCardScope] = createContextScope(CARD_NAME)
19
- // const [CardProvider, useCardContext] = createCardContext<CardContextValue>(CARD_NAME)
20
-
21
12
  export const CardFrame = styled(ThemeableStack, {
22
13
  name: 'Card',
23
- backgroundColor: '$background',
24
- position: 'relative',
25
- overflow: 'hidden',
26
14
 
27
15
  variants: {
16
+ unstyled: {
17
+ false: {
18
+ size: '$true',
19
+ backgroundColor: '$background',
20
+ position: 'relative',
21
+ overflow: 'hidden',
22
+ },
23
+ },
24
+
28
25
  size: {
29
26
  '...size': (val, { tokens }) => {
30
27
  return {
@@ -35,17 +32,22 @@ export const CardFrame = styled(ThemeableStack, {
35
32
  } as const,
36
33
 
37
34
  defaultVariants: {
38
- size: '$true',
35
+ unstyled: false,
39
36
  },
40
37
  })
41
38
 
42
39
  export const CardHeader = styled(ThemeableStack, {
43
40
  name: 'CardHeader',
44
- zIndex: 10,
45
- backgroundColor: 'transparent',
46
- marginBottom: 'auto',
47
41
 
48
42
  variants: {
43
+ unstyled: {
44
+ false: {
45
+ zIndex: 10,
46
+ backgroundColor: 'transparent',
47
+ marginBottom: 'auto',
48
+ },
49
+ },
50
+
49
51
  size: {
50
52
  '...size': (val, { tokens }) => {
51
53
  return {
@@ -58,19 +60,41 @@ export const CardHeader = styled(ThemeableStack, {
58
60
 
59
61
  export const CardFooter = styled(CardHeader, {
60
62
  name: 'CardFooter',
61
- zIndex: 5,
62
- flexDirection: 'row',
63
- marginTop: 'auto',
64
- marginBottom: 0,
63
+
64
+ variants: {
65
+ unstyled: {
66
+ false: {
67
+ zIndex: 5,
68
+ flexDirection: 'row',
69
+ marginTop: 'auto',
70
+ marginBottom: 0,
71
+ },
72
+ },
73
+ } as const,
74
+
75
+ defaultVariants: {
76
+ unstyled: false,
77
+ },
65
78
  })
66
79
 
67
80
  export const CardBackground = styled(ThemeableStack, {
68
81
  name: 'CardBackground',
69
- zIndex: 0,
70
- fullscreen: true,
71
- overflow: 'hidden',
72
- pointerEvents: 'none',
73
- padding: 0,
82
+
83
+ variants: {
84
+ unstyled: {
85
+ false: {
86
+ zIndex: 0,
87
+ fullscreen: true,
88
+ overflow: 'hidden',
89
+ pointerEvents: 'none',
90
+ padding: 0,
91
+ },
92
+ },
93
+ } as const,
94
+
95
+ defaultVariants: {
96
+ unstyled: false,
97
+ },
74
98
  })
75
99
 
76
100
  export type CardHeaderProps = GetProps<typeof CardHeader>
@@ -82,7 +106,6 @@ export const Card = withStaticProperties(
82
106
  forwardRef<TamaguiElement, ScopedProps<CardProps, 'Card'>>(
83
107
  ({ size, __scopeCard, children, ...props }, ref) => {
84
108
  return (
85
- // <CardProvider scope={__scopeCard} size={size}>
86
109
  <CardFrame ref={ref} {...props}>
87
110
  {React.Children.map(children, (child) => {
88
111
  if (isTamaguiElement(child) && !child.props.size) {
@@ -93,7 +116,6 @@ export const Card = withStaticProperties(
93
116
  return child
94
117
  })}
95
118
  </CardFrame>
96
- // </CardProvider>
97
119
  )
98
120
  }
99
121
  )
@@ -104,5 +126,3 @@ export const Card = withStaticProperties(
104
126
  Background: CardBackground,
105
127
  }
106
128
  )
107
-
108
- // export { createCardScope, useCardContext }
package/types/Card.d.ts CHANGED
@@ -15,7 +15,8 @@ export declare const CardFrame: import("@tamagui/web").TamaguiComponent<Omit<imp
15
15
  readonly bordered?: number | boolean | undefined;
16
16
  readonly transparent?: boolean | undefined;
17
17
  readonly chromeless?: boolean | "all" | undefined;
18
- }, "size"> & {
18
+ }, "size" | "unstyled"> & {
19
+ readonly unstyled?: boolean | undefined;
19
20
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
20
21
  } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
21
22
  readonly fullscreen?: boolean | undefined;
@@ -32,7 +33,8 @@ export declare const CardFrame: import("@tamagui/web").TamaguiComponent<Omit<imp
32
33
  readonly bordered?: number | boolean | undefined;
33
34
  readonly transparent?: boolean | undefined;
34
35
  readonly chromeless?: boolean | "all" | undefined;
35
- }, "size"> & {
36
+ }, "size" | "unstyled"> & {
37
+ readonly unstyled?: boolean | undefined;
36
38
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
37
39
  }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
38
40
  readonly fullscreen?: boolean | undefined;
@@ -49,7 +51,8 @@ export declare const CardFrame: import("@tamagui/web").TamaguiComponent<Omit<imp
49
51
  readonly bordered?: number | boolean | undefined;
50
52
  readonly transparent?: boolean | undefined;
51
53
  readonly chromeless?: boolean | "all" | undefined;
52
- }, "size"> & {
54
+ }, "size" | "unstyled"> & {
55
+ readonly unstyled?: boolean | undefined;
53
56
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
54
57
  }>>, TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
55
58
  readonly fullscreen?: boolean | undefined;
@@ -67,6 +70,7 @@ export declare const CardFrame: import("@tamagui/web").TamaguiComponent<Omit<imp
67
70
  readonly transparent?: boolean | undefined;
68
71
  readonly chromeless?: boolean | "all" | undefined;
69
72
  } & {
73
+ readonly unstyled?: boolean | undefined;
70
74
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
71
75
  }>;
72
76
  export declare const CardHeader: import("@tamagui/web").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
@@ -84,7 +88,8 @@ export declare const CardHeader: import("@tamagui/web").TamaguiComponent<Omit<im
84
88
  readonly bordered?: number | boolean | undefined;
85
89
  readonly transparent?: boolean | undefined;
86
90
  readonly chromeless?: boolean | "all" | undefined;
87
- }, "size"> & {
91
+ }, "size" | "unstyled"> & {
92
+ readonly unstyled?: boolean | undefined;
88
93
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
89
94
  } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
90
95
  readonly fullscreen?: boolean | undefined;
@@ -101,7 +106,8 @@ export declare const CardHeader: import("@tamagui/web").TamaguiComponent<Omit<im
101
106
  readonly bordered?: number | boolean | undefined;
102
107
  readonly transparent?: boolean | undefined;
103
108
  readonly chromeless?: boolean | "all" | undefined;
104
- }, "size"> & {
109
+ }, "size" | "unstyled"> & {
110
+ readonly unstyled?: boolean | undefined;
105
111
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
106
112
  }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
107
113
  readonly fullscreen?: boolean | undefined;
@@ -118,7 +124,8 @@ export declare const CardHeader: import("@tamagui/web").TamaguiComponent<Omit<im
118
124
  readonly bordered?: number | boolean | undefined;
119
125
  readonly transparent?: boolean | undefined;
120
126
  readonly chromeless?: boolean | "all" | undefined;
121
- }, "size"> & {
127
+ }, "size" | "unstyled"> & {
128
+ readonly unstyled?: boolean | undefined;
122
129
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
123
130
  }>>, TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
124
131
  readonly fullscreen?: boolean | undefined;
@@ -136,60 +143,10 @@ export declare const CardHeader: import("@tamagui/web").TamaguiComponent<Omit<im
136
143
  readonly transparent?: boolean | undefined;
137
144
  readonly chromeless?: boolean | "all" | undefined;
138
145
  } & {
146
+ readonly unstyled?: boolean | undefined;
139
147
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
140
148
  }>;
141
- export declare const CardFooter: import("@tamagui/web").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
142
- readonly fullscreen?: boolean | undefined;
143
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
144
- } & {
145
- readonly backgrounded?: boolean | undefined;
146
- readonly radiused?: boolean | undefined;
147
- readonly hoverTheme?: boolean | undefined;
148
- readonly pressTheme?: boolean | undefined;
149
- readonly focusTheme?: boolean | undefined;
150
- readonly circular?: boolean | undefined;
151
- readonly padded?: boolean | undefined;
152
- readonly elevate?: boolean | undefined;
153
- readonly bordered?: number | boolean | undefined;
154
- readonly transparent?: boolean | undefined;
155
- readonly chromeless?: boolean | "all" | undefined;
156
- }, "size"> & {
157
- readonly size?: import("@tamagui/web").SizeTokens | undefined;
158
- } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
159
- readonly fullscreen?: boolean | undefined;
160
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
161
- } & {
162
- readonly backgrounded?: boolean | undefined;
163
- readonly radiused?: boolean | undefined;
164
- readonly hoverTheme?: boolean | undefined;
165
- readonly pressTheme?: boolean | undefined;
166
- readonly focusTheme?: boolean | undefined;
167
- readonly circular?: boolean | undefined;
168
- readonly padded?: boolean | undefined;
169
- readonly elevate?: boolean | undefined;
170
- readonly bordered?: number | boolean | undefined;
171
- readonly transparent?: boolean | undefined;
172
- readonly chromeless?: boolean | "all" | undefined;
173
- }, "size"> & {
174
- readonly size?: import("@tamagui/web").SizeTokens | undefined;
175
- }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
176
- readonly fullscreen?: boolean | undefined;
177
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
178
- } & {
179
- readonly backgrounded?: boolean | undefined;
180
- readonly radiused?: boolean | undefined;
181
- readonly hoverTheme?: boolean | undefined;
182
- readonly pressTheme?: boolean | undefined;
183
- readonly focusTheme?: boolean | undefined;
184
- readonly circular?: boolean | undefined;
185
- readonly padded?: boolean | undefined;
186
- readonly elevate?: boolean | undefined;
187
- readonly bordered?: number | boolean | undefined;
188
- readonly transparent?: boolean | undefined;
189
- readonly chromeless?: boolean | "all" | undefined;
190
- }, "size"> & {
191
- readonly size?: import("@tamagui/web").SizeTokens | undefined;
192
- }>>) | (Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
149
+ export declare const CardFooter: import("@tamagui/web").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
193
150
  readonly fullscreen?: boolean | undefined;
194
151
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
195
152
  } & {
@@ -205,9 +162,10 @@ export declare const CardFooter: import("@tamagui/web").TamaguiComponent<(Omit<i
205
162
  readonly transparent?: boolean | undefined;
206
163
  readonly chromeless?: boolean | "all" | undefined;
207
164
  } & {
165
+ readonly unstyled?: boolean | undefined;
208
166
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
209
- }, string | number> & {
210
- [x: string]: undefined;
167
+ }, "unstyled"> & {
168
+ readonly unstyled?: boolean | undefined;
211
169
  } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
212
170
  readonly fullscreen?: boolean | undefined;
213
171
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
@@ -224,9 +182,10 @@ export declare const CardFooter: import("@tamagui/web").TamaguiComponent<(Omit<i
224
182
  readonly transparent?: boolean | undefined;
225
183
  readonly chromeless?: boolean | "all" | undefined;
226
184
  } & {
185
+ readonly unstyled?: boolean | undefined;
227
186
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
228
- }, string | number> & {
229
- [x: string]: undefined;
187
+ }, "unstyled"> & {
188
+ readonly unstyled?: boolean | undefined;
230
189
  }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
231
190
  readonly fullscreen?: boolean | undefined;
232
191
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
@@ -243,10 +202,11 @@ export declare const CardFooter: import("@tamagui/web").TamaguiComponent<(Omit<i
243
202
  readonly transparent?: boolean | undefined;
244
203
  readonly chromeless?: boolean | "all" | undefined;
245
204
  } & {
205
+ readonly unstyled?: boolean | undefined;
246
206
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
247
- }, string | number> & {
248
- [x: string]: undefined;
249
- }>>), TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
207
+ }, "unstyled"> & {
208
+ readonly unstyled?: boolean | undefined;
209
+ }>>, TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
250
210
  readonly fullscreen?: boolean | undefined;
251
211
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
252
212
  } & {
@@ -262,56 +222,12 @@ export declare const CardFooter: import("@tamagui/web").TamaguiComponent<(Omit<i
262
222
  readonly transparent?: boolean | undefined;
263
223
  readonly chromeless?: boolean | "all" | undefined;
264
224
  } & {
225
+ readonly unstyled?: boolean | undefined;
265
226
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
266
- } & ({} | {
267
- [x: string]: undefined;
268
- })>;
269
- export declare const CardBackground: import("@tamagui/web").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
270
- readonly fullscreen?: boolean | undefined;
271
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
272
- }, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
273
- readonly backgrounded?: boolean | undefined;
274
- readonly radiused?: boolean | undefined;
275
- readonly hoverTheme?: boolean | undefined;
276
- readonly pressTheme?: boolean | undefined;
277
- readonly focusTheme?: boolean | undefined;
278
- readonly circular?: boolean | undefined;
279
- readonly padded?: boolean | undefined;
280
- readonly elevate?: boolean | undefined;
281
- readonly bordered?: number | boolean | undefined;
282
- readonly transparent?: boolean | undefined;
283
- readonly chromeless?: boolean | "all" | undefined;
284
- } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
285
- readonly fullscreen?: boolean | undefined;
286
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
287
- }, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
288
- readonly backgrounded?: boolean | undefined;
289
- readonly radiused?: boolean | undefined;
290
- readonly hoverTheme?: boolean | undefined;
291
- readonly pressTheme?: boolean | undefined;
292
- readonly focusTheme?: boolean | undefined;
293
- readonly circular?: boolean | undefined;
294
- readonly padded?: boolean | undefined;
295
- readonly elevate?: boolean | undefined;
296
- readonly bordered?: number | boolean | undefined;
297
- readonly transparent?: boolean | undefined;
298
- readonly chromeless?: boolean | "all" | undefined;
299
- }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
300
- readonly fullscreen?: boolean | undefined;
301
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
302
- }, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
303
- readonly backgrounded?: boolean | undefined;
304
- readonly radiused?: boolean | undefined;
305
- readonly hoverTheme?: boolean | undefined;
306
- readonly pressTheme?: boolean | undefined;
307
- readonly focusTheme?: boolean | undefined;
308
- readonly circular?: boolean | undefined;
309
- readonly padded?: boolean | undefined;
310
- readonly elevate?: boolean | undefined;
311
- readonly bordered?: number | boolean | undefined;
312
- readonly transparent?: boolean | undefined;
313
- readonly chromeless?: boolean | "all" | undefined;
314
- }>>) | (Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
227
+ } & {
228
+ readonly unstyled?: boolean | undefined;
229
+ }>;
230
+ export declare const CardBackground: import("@tamagui/web").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
315
231
  readonly fullscreen?: boolean | undefined;
316
232
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
317
233
  } & {
@@ -326,8 +242,8 @@ export declare const CardBackground: import("@tamagui/web").TamaguiComponent<(Om
326
242
  readonly bordered?: number | boolean | undefined;
327
243
  readonly transparent?: boolean | undefined;
328
244
  readonly chromeless?: boolean | "all" | undefined;
329
- }, string | number> & {
330
- [x: string]: undefined;
245
+ }, "unstyled"> & {
246
+ readonly unstyled?: boolean | undefined;
331
247
  } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
332
248
  readonly fullscreen?: boolean | undefined;
333
249
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
@@ -343,8 +259,8 @@ export declare const CardBackground: import("@tamagui/web").TamaguiComponent<(Om
343
259
  readonly bordered?: number | boolean | undefined;
344
260
  readonly transparent?: boolean | undefined;
345
261
  readonly chromeless?: boolean | "all" | undefined;
346
- }, string | number> & {
347
- [x: string]: undefined;
262
+ }, "unstyled"> & {
263
+ readonly unstyled?: boolean | undefined;
348
264
  }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
349
265
  readonly fullscreen?: boolean | undefined;
350
266
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
@@ -360,9 +276,9 @@ export declare const CardBackground: import("@tamagui/web").TamaguiComponent<(Om
360
276
  readonly bordered?: number | boolean | undefined;
361
277
  readonly transparent?: boolean | undefined;
362
278
  readonly chromeless?: boolean | "all" | undefined;
363
- }, string | number> & {
364
- [x: string]: undefined;
365
- }>>), TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
279
+ }, "unstyled"> & {
280
+ readonly unstyled?: boolean | undefined;
281
+ }>>, TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
366
282
  readonly fullscreen?: boolean | undefined;
367
283
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
368
284
  } & {
@@ -377,9 +293,9 @@ export declare const CardBackground: import("@tamagui/web").TamaguiComponent<(Om
377
293
  readonly bordered?: number | boolean | undefined;
378
294
  readonly transparent?: boolean | undefined;
379
295
  readonly chromeless?: boolean | "all" | undefined;
380
- } & ({} | {
381
- [x: string]: undefined;
382
- })>;
296
+ } & {
297
+ readonly unstyled?: boolean | undefined;
298
+ }>;
383
299
  export type CardHeaderProps = GetProps<typeof CardHeader>;
384
300
  export type CardFooterProps = GetProps<typeof CardFooter>;
385
301
  export type CardProps = GetProps<typeof CardFrame>;
@@ -398,7 +314,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
398
314
  readonly bordered?: number | boolean | undefined;
399
315
  readonly transparent?: boolean | undefined;
400
316
  readonly chromeless?: boolean | "all" | undefined;
401
- }, "size"> & {
317
+ }, "size" | "unstyled"> & {
318
+ readonly unstyled?: boolean | undefined;
402
319
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
403
320
  } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
404
321
  readonly fullscreen?: boolean | undefined;
@@ -415,7 +332,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
415
332
  readonly bordered?: number | boolean | undefined;
416
333
  readonly transparent?: boolean | undefined;
417
334
  readonly chromeless?: boolean | "all" | undefined;
418
- }, "size"> & {
335
+ }, "size" | "unstyled"> & {
336
+ readonly unstyled?: boolean | undefined;
419
337
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
420
338
  }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
421
339
  readonly fullscreen?: boolean | undefined;
@@ -432,7 +350,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
432
350
  readonly bordered?: number | boolean | undefined;
433
351
  readonly transparent?: boolean | undefined;
434
352
  readonly chromeless?: boolean | "all" | undefined;
435
- }, "size"> & {
353
+ }, "size" | "unstyled"> & {
354
+ readonly unstyled?: boolean | undefined;
436
355
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
437
356
  }>> & {
438
357
  __scopeCard?: import("@tamagui/create-context").Scope<any>;
@@ -452,7 +371,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
452
371
  readonly bordered?: number | boolean | undefined;
453
372
  readonly transparent?: boolean | undefined;
454
373
  readonly chromeless?: boolean | "all" | undefined;
455
- }, "size"> & {
374
+ }, "size" | "unstyled"> & {
375
+ readonly unstyled?: boolean | undefined;
456
376
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
457
377
  } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
458
378
  readonly fullscreen?: boolean | undefined;
@@ -469,7 +389,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
469
389
  readonly bordered?: number | boolean | undefined;
470
390
  readonly transparent?: boolean | undefined;
471
391
  readonly chromeless?: boolean | "all" | undefined;
472
- }, "size"> & {
392
+ }, "size" | "unstyled"> & {
393
+ readonly unstyled?: boolean | undefined;
473
394
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
474
395
  }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
475
396
  readonly fullscreen?: boolean | undefined;
@@ -486,7 +407,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
486
407
  readonly bordered?: number | boolean | undefined;
487
408
  readonly transparent?: boolean | undefined;
488
409
  readonly chromeless?: boolean | "all" | undefined;
489
- }, "size"> & {
410
+ }, "size" | "unstyled"> & {
411
+ readonly unstyled?: boolean | undefined;
490
412
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
491
413
  }>>, TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
492
414
  readonly fullscreen?: boolean | undefined;
@@ -504,60 +426,10 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
504
426
  readonly transparent?: boolean | undefined;
505
427
  readonly chromeless?: boolean | "all" | undefined;
506
428
  } & {
429
+ readonly unstyled?: boolean | undefined;
507
430
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
508
431
  }>;
509
- Footer: import("@tamagui/web").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
510
- readonly fullscreen?: boolean | undefined;
511
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
512
- } & {
513
- readonly backgrounded?: boolean | undefined;
514
- readonly radiused?: boolean | undefined;
515
- readonly hoverTheme?: boolean | undefined;
516
- readonly pressTheme?: boolean | undefined;
517
- readonly focusTheme?: boolean | undefined;
518
- readonly circular?: boolean | undefined;
519
- readonly padded?: boolean | undefined;
520
- readonly elevate?: boolean | undefined;
521
- readonly bordered?: number | boolean | undefined;
522
- readonly transparent?: boolean | undefined;
523
- readonly chromeless?: boolean | "all" | undefined;
524
- }, "size"> & {
525
- readonly size?: import("@tamagui/web").SizeTokens | undefined;
526
- } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
527
- readonly fullscreen?: boolean | undefined;
528
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
529
- } & {
530
- readonly backgrounded?: boolean | undefined;
531
- readonly radiused?: boolean | undefined;
532
- readonly hoverTheme?: boolean | undefined;
533
- readonly pressTheme?: boolean | undefined;
534
- readonly focusTheme?: boolean | undefined;
535
- readonly circular?: boolean | undefined;
536
- readonly padded?: boolean | undefined;
537
- readonly elevate?: boolean | undefined;
538
- readonly bordered?: number | boolean | undefined;
539
- readonly transparent?: boolean | undefined;
540
- readonly chromeless?: boolean | "all" | undefined;
541
- }, "size"> & {
542
- readonly size?: import("@tamagui/web").SizeTokens | undefined;
543
- }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
544
- readonly fullscreen?: boolean | undefined;
545
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
546
- } & {
547
- readonly backgrounded?: boolean | undefined;
548
- readonly radiused?: boolean | undefined;
549
- readonly hoverTheme?: boolean | undefined;
550
- readonly pressTheme?: boolean | undefined;
551
- readonly focusTheme?: boolean | undefined;
552
- readonly circular?: boolean | undefined;
553
- readonly padded?: boolean | undefined;
554
- readonly elevate?: boolean | undefined;
555
- readonly bordered?: number | boolean | undefined;
556
- readonly transparent?: boolean | undefined;
557
- readonly chromeless?: boolean | "all" | undefined;
558
- }, "size"> & {
559
- readonly size?: import("@tamagui/web").SizeTokens | undefined;
560
- }>>) | (Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
432
+ Footer: import("@tamagui/web").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
561
433
  readonly fullscreen?: boolean | undefined;
562
434
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
563
435
  } & {
@@ -573,9 +445,10 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
573
445
  readonly transparent?: boolean | undefined;
574
446
  readonly chromeless?: boolean | "all" | undefined;
575
447
  } & {
448
+ readonly unstyled?: boolean | undefined;
576
449
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
577
- }, string | number> & {
578
- [x: string]: undefined;
450
+ }, "unstyled"> & {
451
+ readonly unstyled?: boolean | undefined;
579
452
  } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
580
453
  readonly fullscreen?: boolean | undefined;
581
454
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
@@ -592,9 +465,10 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
592
465
  readonly transparent?: boolean | undefined;
593
466
  readonly chromeless?: boolean | "all" | undefined;
594
467
  } & {
468
+ readonly unstyled?: boolean | undefined;
595
469
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
596
- }, string | number> & {
597
- [x: string]: undefined;
470
+ }, "unstyled"> & {
471
+ readonly unstyled?: boolean | undefined;
598
472
  }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
599
473
  readonly fullscreen?: boolean | undefined;
600
474
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
@@ -611,10 +485,11 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
611
485
  readonly transparent?: boolean | undefined;
612
486
  readonly chromeless?: boolean | "all" | undefined;
613
487
  } & {
488
+ readonly unstyled?: boolean | undefined;
614
489
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
615
- }, string | number> & {
616
- [x: string]: undefined;
617
- }>>), TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
490
+ }, "unstyled"> & {
491
+ readonly unstyled?: boolean | undefined;
492
+ }>>, TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
618
493
  readonly fullscreen?: boolean | undefined;
619
494
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
620
495
  } & {
@@ -630,56 +505,12 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
630
505
  readonly transparent?: boolean | undefined;
631
506
  readonly chromeless?: boolean | "all" | undefined;
632
507
  } & {
508
+ readonly unstyled?: boolean | undefined;
633
509
  readonly size?: import("@tamagui/web").SizeTokens | undefined;
634
- } & ({} | {
635
- [x: string]: undefined;
636
- })>;
637
- Background: import("@tamagui/web").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
638
- readonly fullscreen?: boolean | undefined;
639
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
640
- }, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
641
- readonly backgrounded?: boolean | undefined;
642
- readonly radiused?: boolean | undefined;
643
- readonly hoverTheme?: boolean | undefined;
644
- readonly pressTheme?: boolean | undefined;
645
- readonly focusTheme?: boolean | undefined;
646
- readonly circular?: boolean | undefined;
647
- readonly padded?: boolean | undefined;
648
- readonly elevate?: boolean | undefined;
649
- readonly bordered?: number | boolean | undefined;
650
- readonly transparent?: boolean | undefined;
651
- readonly chromeless?: boolean | "all" | undefined;
652
- } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
653
- readonly fullscreen?: boolean | undefined;
654
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
655
- }, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
656
- readonly backgrounded?: boolean | undefined;
657
- readonly radiused?: boolean | undefined;
658
- readonly hoverTheme?: boolean | undefined;
659
- readonly pressTheme?: boolean | undefined;
660
- readonly focusTheme?: boolean | undefined;
661
- readonly circular?: boolean | undefined;
662
- readonly padded?: boolean | undefined;
663
- readonly elevate?: boolean | undefined;
664
- readonly bordered?: number | boolean | undefined;
665
- readonly transparent?: boolean | undefined;
666
- readonly chromeless?: boolean | "all" | undefined;
667
- }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
668
- readonly fullscreen?: boolean | undefined;
669
- readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
670
- }, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
671
- readonly backgrounded?: boolean | undefined;
672
- readonly radiused?: boolean | undefined;
673
- readonly hoverTheme?: boolean | undefined;
674
- readonly pressTheme?: boolean | undefined;
675
- readonly focusTheme?: boolean | undefined;
676
- readonly circular?: boolean | undefined;
677
- readonly padded?: boolean | undefined;
678
- readonly elevate?: boolean | undefined;
679
- readonly bordered?: number | boolean | undefined;
680
- readonly transparent?: boolean | undefined;
681
- readonly chromeless?: boolean | "all" | undefined;
682
- }>>) | (Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
510
+ } & {
511
+ readonly unstyled?: boolean | undefined;
512
+ }>;
513
+ Background: import("@tamagui/web").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
683
514
  readonly fullscreen?: boolean | undefined;
684
515
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
685
516
  } & {
@@ -694,8 +525,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
694
525
  readonly bordered?: number | boolean | undefined;
695
526
  readonly transparent?: boolean | undefined;
696
527
  readonly chromeless?: boolean | "all" | undefined;
697
- }, string | number> & {
698
- [x: string]: undefined;
528
+ }, "unstyled"> & {
529
+ readonly unstyled?: boolean | undefined;
699
530
  } & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
700
531
  readonly fullscreen?: boolean | undefined;
701
532
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
@@ -711,8 +542,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
711
542
  readonly bordered?: number | boolean | undefined;
712
543
  readonly transparent?: boolean | undefined;
713
544
  readonly chromeless?: boolean | "all" | undefined;
714
- }, string | number> & {
715
- [x: string]: undefined;
545
+ }, "unstyled"> & {
546
+ readonly unstyled?: boolean | undefined;
716
547
  }>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
717
548
  readonly fullscreen?: boolean | undefined;
718
549
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
@@ -728,9 +559,9 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
728
559
  readonly bordered?: number | boolean | undefined;
729
560
  readonly transparent?: boolean | undefined;
730
561
  readonly chromeless?: boolean | "all" | undefined;
731
- }, string | number> & {
732
- [x: string]: undefined;
733
- }>>), TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
562
+ }, "unstyled"> & {
563
+ readonly unstyled?: boolean | undefined;
564
+ }>>, TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
734
565
  readonly fullscreen?: boolean | undefined;
735
566
  readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
736
567
  } & {
@@ -745,8 +576,8 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<import("react-na
745
576
  readonly bordered?: number | boolean | undefined;
746
577
  readonly transparent?: boolean | undefined;
747
578
  readonly chromeless?: boolean | "all" | undefined;
748
- } & ({} | {
749
- [x: string]: undefined;
750
- })>;
579
+ } & {
580
+ readonly unstyled?: boolean | undefined;
581
+ }>;
751
582
  };
752
583
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,cAAc,EAIf,MAAM,cAAc,CAAA;AACrB,OAAO,KAAmC,MAAM,OAAO,CAAA;AAWvD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBpB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAerB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMrB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOzB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AACzD,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AACzD,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA;AAElD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BhB,CAAA"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,cAAc,EAIf,MAAM,cAAc,CAAA;AACrB,OAAO,KAAmC,MAAM,OAAO,CAAA;AAEvD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBpB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBrB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBrB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBzB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AACzD,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AACzD,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA;AAElD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBhB,CAAA"}