@atom-learning/components 2.49.0 → 2.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -11
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionContent.js.map +1 -1
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/accordion/AccordionTrigger.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.js.map +1 -1
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/banner/Banner.d.ts +14 -0
- package/dist/components/banner/Banner.js +2 -0
- package/dist/components/banner/Banner.js.map +1 -0
- package/dist/components/banner/BannerContainer.d.ts +430 -0
- package/dist/components/banner/BannerContainer.js +2 -0
- package/dist/components/banner/BannerContainer.js.map +1 -0
- package/dist/components/banner/BannerContext.d.ts +6 -0
- package/dist/components/banner/BannerContext.js +2 -0
- package/dist/components/banner/BannerContext.js.map +1 -0
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +18 -0
- package/dist/components/banner/banner-regular/BannerRegular.js +2 -0
- package/dist/components/banner/banner-regular/BannerRegular.js.map +1 -0
- package/dist/components/banner/banner-regular/BannerRegularActions.d.ts +3 -0
- package/dist/components/banner/banner-regular/BannerRegularActions.js +2 -0
- package/dist/components/banner/banner-regular/BannerRegularActions.js.map +1 -0
- package/dist/components/banner/banner-regular/BannerRegularButton.d.ts +3 -0
- package/dist/components/banner/banner-regular/BannerRegularButton.js +2 -0
- package/dist/components/banner/banner-regular/BannerRegularButton.js.map +1 -0
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +430 -0
- package/dist/components/banner/banner-regular/BannerRegularContent.js +2 -0
- package/dist/components/banner/banner-regular/BannerRegularContent.js.map +1 -0
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +3 -0
- package/dist/components/banner/banner-regular/BannerRegularDismiss.js +2 -0
- package/dist/components/banner/banner-regular/BannerRegularDismiss.js.map +1 -0
- package/dist/components/banner/banner-regular/BannerRegularHeading.d.ts +3 -0
- package/dist/components/banner/banner-regular/BannerRegularHeading.js +2 -0
- package/dist/components/banner/banner-regular/BannerRegularHeading.js.map +1 -0
- package/dist/components/banner/banner-regular/BannerRegularImage.d.ts +3 -0
- package/dist/components/banner/banner-regular/BannerRegularImage.js +2 -0
- package/dist/components/banner/banner-regular/BannerRegularImage.js.map +1 -0
- package/dist/components/banner/banner-regular/BannerRegularText.d.ts +3 -0
- package/dist/components/banner/banner-regular/BannerRegularText.js +2 -0
- package/dist/components/banner/banner-regular/BannerRegularText.js.map +1 -0
- package/dist/components/banner/banner-regular/index.d.ts +1 -0
- package/dist/components/banner/index.d.ts +1 -0
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/carousel/Carousel.js.map +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js.map +1 -1
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxInput.js.map +1 -1
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuContent.js.map +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/popover/PopoverContent.js.map +1 -1
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
- package/dist/components/sidedrawer/SidedrawerContent.js.map +1 -1
- package/dist/components/sidedrawer/SidedrawerOverlay.js +1 -1
- package/dist/components/sidedrawer/SidedrawerOverlay.js.map +1 -1
- package/dist/components/slider/Slider.js +1 -1
- package/dist/components/slider/Slider.js.map +1 -1
- package/dist/components/stack/Stack.js +1 -1
- package/dist/components/stack/Stack.js.map +1 -1
- package/dist/components/tabs/TabsTrigger.js +1 -1
- package/dist/components/tabs/TabsTrigger.js.map +1 -1
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/tile-interactive/TileInteractive.js +1 -1
- package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.js.map +1 -1
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/tooltip/TooltipContent.js.map +1 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
# [2.
|
|
1
|
+
# [2.50.0](https://github.com/Atom-Learning/components/compare/v2.49.0...v2.50.0) (2023-04-27)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* use base2 instead of a specific color ([7340a0b](https://github.com/Atom-Learning/components/commit/7340a0b3f5992cafbf6325ba20642e7418b2b8ea))
|
|
6
|
+
* auto-fix bad yml ([89941dd](https://github.com/Atom-Learning/components/commit/89941dd13418a50a373ba023b2f8b5ed2bf19f73))
|
|
7
|
+
* delete stray export of deleted file find-child-by-type ([f61db54](https://github.com/Atom-Learning/components/commit/f61db54d21140d485e584a2f676a1923e8f42987))
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
### Features
|
|
12
11
|
|
|
13
|
-
* add
|
|
14
|
-
* add
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
12
|
+
* add BannerActions component ([f6147a5](https://github.com/Atom-Learning/components/commit/f6147a5334137db6cd52c8bbb72e438358e92035))
|
|
13
|
+
* add BannerContent component ([d9f21fb](https://github.com/Atom-Learning/components/commit/d9f21fb00e383207dc42a72804b74cd9e6273ed1))
|
|
14
|
+
* add BannerHeading component ([2c68c0f](https://github.com/Atom-Learning/components/commit/2c68c0fb7552a31562ed5b9a9b4ae0b915e92f2f))
|
|
15
|
+
* add BannerImage component ([6a41ab0](https://github.com/Atom-Learning/components/commit/6a41ab0e3ebe7c024be99576a5561012ad1c93c9))
|
|
16
|
+
* add BannerRegular component and set up basic layout ([0f4c639](https://github.com/Atom-Learning/components/commit/0f4c63986ec9e8018c8506c6487c819a362a89a3))
|
|
17
|
+
* add BannerText component ([399b82a](https://github.com/Atom-Learning/components/commit/399b82aa36e10d62cd93cfb478a76d168b1616fe))
|
|
18
|
+
* add utility findChildByType ([d5c31fd](https://github.com/Atom-Learning/components/commit/d5c31fdb7b300c23dff9dfdd3644df1d28e8544a))
|
|
19
|
+
* dismissible banners ([a37a81e](https://github.com/Atom-Learning/components/commit/a37a81e33042d2ab767b21bd6d5744d649b2a7a2))
|
|
20
|
+
* implement button themes and adjust css for image container ([f434902](https://github.com/Atom-Learning/components/commit/f4349025f11a47221099228ba0803016d90e2ae7))
|
|
21
|
+
* wip - banner themes / color schemes ([4e00be0](https://github.com/Atom-Learning/components/commit/4e00be0f5137bc7d112a34e54183382b977a5070))
|
|
20
22
|
|
|
21
23
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
22
24
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as
|
|
1
|
+
import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as o,styled as n}from"../../stitches.js";import{CSSWrapper as d}from"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const m=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),s=o({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),c=n(i,{border:0,width:"100%",bg:"$base1",overflow:"hidden",'&[data-state="open"]':{borderRadius:"0 0 $0 $0"},"@allowMotion":{'&[data-state="open"]':{animation:`${m} 300ms ease-out`},'&[data-state="closed"]':{animation:`${s} 300ms ease-out`}}}),h=({children:e,css:r,...a})=>t.createElement(c,{...a},t.createElement(d,{css:r},e));export{h as AccordionContent};
|
|
2
2
|
//# sourceMappingURL=AccordionContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionContent.js","sources":["../../../src/components/accordion/AccordionContent.tsx"],"sourcesContent":["import { Content } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { keyframes, styled } from '~/stitches'\nimport { CSSWrapper } from '~/utilities'\n\nconst open = keyframes({\n from: { height: 0 },\n to: { height: 'var(--radix-accordion-content-height)' }\n})\n\nconst close = keyframes({\n from: { height: 'var(--radix-accordion-content-height)' },\n to: { height: 0 }\n})\n\nconst StyledContent = styled(Content, {\n border: 0,\n width: '100%',\n bg: '$base1',\n overflow: 'hidden',\n '&[data-state=\"open\"]': { borderRadius: '0 0 $0 $0' },\n\n '@allowMotion': {\n '&[data-state=\"open\"]': { animation: `${open} 300ms ease-out` },\n '&[data-state=\"closed\"]': { animation: `${close} 300ms ease-out` }\n }\n})\n\ntype AccordionContentProps = React.ComponentProps<typeof StyledContent>\n\nexport const AccordionContent: React.FC<AccordionContentProps> = ({\n children,\n css,\n ...remainingProps\n}) => (\n <StyledContent {...remainingProps}>\n <CSSWrapper css={css}>{children}</CSSWrapper>\n </StyledContent>\n)\n"],"names":["open","keyframes","close","StyledContent","styled","Content","AccordionContent","children","css","remainingProps","React","CSSWrapper"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccordionContent.js","sources":["../../../src/components/accordion/AccordionContent.tsx"],"sourcesContent":["import { Content } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { keyframes, styled } from '~/stitches'\nimport { CSSWrapper } from '~/utilities'\n\nconst open = keyframes({\n from: { height: 0 },\n to: { height: 'var(--radix-accordion-content-height)' }\n})\n\nconst close = keyframes({\n from: { height: 'var(--radix-accordion-content-height)' },\n to: { height: 0 }\n})\n\nconst StyledContent = styled(Content, {\n border: 0,\n width: '100%',\n bg: '$base1',\n overflow: 'hidden',\n '&[data-state=\"open\"]': { borderRadius: '0 0 $0 $0' },\n\n '@allowMotion': {\n '&[data-state=\"open\"]': { animation: `${open} 300ms ease-out` },\n '&[data-state=\"closed\"]': { animation: `${close} 300ms ease-out` }\n }\n})\n\ntype AccordionContentProps = React.ComponentProps<typeof StyledContent>\n\nexport const AccordionContent: React.FC<AccordionContentProps> = ({\n children,\n css,\n ...remainingProps\n}) => (\n <StyledContent {...remainingProps}>\n <CSSWrapper css={css}>{children}</CSSWrapper>\n </StyledContent>\n)\n"],"names":["open","keyframes","close","StyledContent","styled","Content","AccordionContent","children","css","remainingProps","React","CSSWrapper"],"mappings":"+QAMA,MAAMA,EAAOC,EAAU,CACrB,KAAM,CAAE,OAAQ,CAAE,EAClB,GAAI,CAAE,OAAQ,uCAAwC,CACxD,CAAC,EAEKC,EAAQD,EAAU,CACtB,KAAM,CAAE,OAAQ,uCAAwC,EACxD,GAAI,CAAE,OAAQ,CAAE,CAClB,CAAC,EAEKE,EAAgBC,EAAOC,EAAS,CACpC,OAAQ,EACR,MAAO,OACP,GAAI,SACJ,SAAU,SACV,uBAAwB,CAAE,aAAc,WAAY,EAEpD,eAAgB,CACd,uBAAwB,CAAE,UAAW,GAAGL,kBAAsB,EAC9D,yBAA0B,CAAE,UAAW,GAAGE,kBAAuB,CACnE,CACF,CAAC,EAIYI,EAAoD,CAAC,CAChE,SAAAC,EACA,IAAAC,KACGC,CACL,IACEC,EAAA,cAACP,EAAA,CAAe,GAAGM,CAAAA,EACjBC,EAAA,cAACC,EAAA,CAAW,IAAKH,CAAMD,EAAAA,CAAS,CAClC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ChevronDown as i}from"@atom-learning/icons";import{Trigger as s}from"@radix-ui/react-accordion";import
|
|
1
|
+
import{ChevronDown as i}from"@atom-learning/icons";import{Trigger as s}from"@radix-ui/react-accordion";import t from"react";import{ColorScheme as n}from"../../experiments/color-scheme/ColorScheme.js";import{styled as e}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{Icon as d}from"../icon/Icon.js";const m=e(d,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),l=e(s,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",bg:"$interactive2",color:"$interactiveForeground","&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:active, &:hover, &:focus-visible":{bg:"$interactive3"},"&:focus-visible":{...c()}},'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"}}),p=({children:o,colorScheme:r={},...a})=>t.createElement(n,{asChild:!0,accent:"grey1",interactive:"loContrast",...r},t.createElement(l,{...a},o,t.createElement(m,{is:i})));export{p as AccordionTrigger};
|
|
2
2
|
//# sourceMappingURL=AccordionTrigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionTrigger.js","sources":["../../../src/components/accordion/AccordionTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@atom-learning/icons'\nimport { Trigger } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { ColorScheme, TcolorScheme } from '~/experiments/color-scheme'\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { Icon } from '../icon'\n\nconst RotatingIcon = styled(Icon, {\n transition: 'transform 300ms',\n '[data-state=\"open\"] > &': {\n transform: 'rotate(180deg)'\n },\n '[data-state=\"closed\"] > &': {\n transform: 'rotate(0deg)'\n }\n})\n\nconst StyledTrigger = styled(Trigger, {\n border: 0,\n py: '$3',\n px: '$4',\n width: '100%',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n cursor: 'pointer',\n bg: '$interactive2',\n color: '$interactiveForeground',\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n '&:active, &:hover, &:focus-visible': {\n bg: '$interactive3'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n },\n '&[data-state=\"open\"]': {\n borderRadius: '$0 $0 0 0'\n },\n '&[data-state=\"closed\"]': {\n borderRadius: '$0'\n }\n})\n\ntype AccordionTriggerProps = React.ComponentProps<typeof StyledTrigger> & {\n colorScheme?: TcolorScheme\n}\n\nexport const AccordionTrigger: React.FC<AccordionTriggerProps> = ({\n children,\n colorScheme = {},\n ...remainingProps\n}) => (\n <ColorScheme asChild accent=\"grey1\" interactive=\"loContrast\" {...colorScheme}>\n <StyledTrigger {...remainingProps}>\n {children}\n <RotatingIcon is={ChevronDown} />\n </StyledTrigger>\n </ColorScheme>\n)\n"],"names":["RotatingIcon","styled","Icon","StyledTrigger","Trigger","focusVisibleStyleBlock","AccordionTrigger","children","colorScheme","remainingProps","React","ColorScheme","ChevronDown"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccordionTrigger.js","sources":["../../../src/components/accordion/AccordionTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@atom-learning/icons'\nimport { Trigger } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { ColorScheme, TcolorScheme } from '~/experiments/color-scheme'\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { Icon } from '../icon'\n\nconst RotatingIcon = styled(Icon, {\n transition: 'transform 300ms',\n '[data-state=\"open\"] > &': {\n transform: 'rotate(180deg)'\n },\n '[data-state=\"closed\"] > &': {\n transform: 'rotate(0deg)'\n }\n})\n\nconst StyledTrigger = styled(Trigger, {\n border: 0,\n py: '$3',\n px: '$4',\n width: '100%',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n cursor: 'pointer',\n bg: '$interactive2',\n color: '$interactiveForeground',\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n '&:active, &:hover, &:focus-visible': {\n bg: '$interactive3'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n },\n '&[data-state=\"open\"]': {\n borderRadius: '$0 $0 0 0'\n },\n '&[data-state=\"closed\"]': {\n borderRadius: '$0'\n }\n})\n\ntype AccordionTriggerProps = React.ComponentProps<typeof StyledTrigger> & {\n colorScheme?: TcolorScheme\n}\n\nexport const AccordionTrigger: React.FC<AccordionTriggerProps> = ({\n children,\n colorScheme = {},\n ...remainingProps\n}) => (\n <ColorScheme asChild accent=\"grey1\" interactive=\"loContrast\" {...colorScheme}>\n <StyledTrigger {...remainingProps}>\n {children}\n <RotatingIcon is={ChevronDown} />\n </StyledTrigger>\n </ColorScheme>\n)\n"],"names":["RotatingIcon","styled","Icon","StyledTrigger","Trigger","focusVisibleStyleBlock","AccordionTrigger","children","colorScheme","remainingProps","React","ColorScheme","ChevronDown"],"mappings":"6eAUA,MAAMA,EAAeC,EAAOC,EAAM,CAChC,WAAY,kBACZ,0BAA2B,CACzB,UAAW,gBACb,EACA,4BAA6B,CAC3B,UAAW,cACb,CACF,CAAC,EAEKC,EAAgBF,EAAOG,EAAS,CACpC,OAAQ,EACR,GAAI,KACJ,GAAI,KACJ,MAAO,OACP,QAAS,OACT,eAAgB,gBAChB,WAAY,SACZ,OAAQ,UACR,GAAI,gBACJ,MAAO,yBACP,mBAAoB,CAClB,QAAS,GACT,OAAQ,aACV,EACA,yBAA0B,CACxB,qCAAsC,CACpC,GAAI,eACN,EACA,kBAAmB,CACjB,GAAGC,EACL,CAAA,CACF,EACA,uBAAwB,CACtB,aAAc,WAChB,EACA,yBAA0B,CACxB,aAAc,IAChB,CACF,CAAC,EAMYC,EAAoD,CAAC,CAChE,SAAAC,EACA,YAAAC,EAAc,MACXC,CACL,IACEC,EAAA,cAACC,EAAA,CAAY,QAAO,GAAC,OAAO,QAAQ,YAAY,aAAc,GAAGH,CAAAA,EAC/DE,EAAA,cAACP,EAAA,CAAe,GAAGM,CAChBF,EAAAA,EACDG,EAAA,cAACV,EAAA,CAAa,GAAIY,CAAAA,CAAa,CACjC,CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Overlay as m,Content as l,Portal as d}from"@radix-ui/react-alert-dialog";import*as t from"react";import{DIALOG_Z_INDEX as e}from"../../constants/zIndices.js";import{keyframes as a,styled as
|
|
1
|
+
import{Overlay as m,Content as l,Portal as d}from"@radix-ui/react-alert-dialog";import*as t from"react";import{DIALOG_Z_INDEX as e}from"../../constants/zIndices.js";import{keyframes as a,styled as r}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{fadeIn as p,fadeOut as f}from"../../utilities/style/keyframe-animations.js";const o="translate3d(-50%, -50%, 0)",i="translate3d(-50%, 50vh, 0)",c=a({"0%":{transform:i},"100%":{transform:o}}),b=a({"0%":{transform:o},"100%":{transform:i}}),x=r(m,{backgroundColor:"$alpha600",top:0,right:0,bottom:0,left:0,position:"fixed",zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${p} 250ms ease-out`},'&[data-state="closed"]':{animation:`${f} 550ms ease-out`}}}),u=r(l,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",p:"$5",position:"fixed",top:"50%",transform:o,"&:focus":{outline:"none"},zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${c} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${b} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{sm:{width:"380px"},md:{width:"480px"},lg:{width:"600px"}}}}),h=({size:n="sm",...s})=>t.createElement(d,null,t.createElement(x,null),t.createElement(u,{size:n,...s}));export{h as AlertDialogContent};
|
|
2
2
|
//# sourceMappingURL=AlertDialogContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialogContent.js","sources":["../../../src/components/alert-dialog/AlertDialogContent.tsx"],"sourcesContent":["import { Content, Overlay, Portal } from '@radix-ui/react-alert-dialog'\nimport * as React from 'react'\n\nimport { DIALOG_Z_INDEX } from '~/constants/zIndices'\nimport { keyframes, styled } from '~/stitches'\nimport { fadeIn, fadeOut } from '~/utilities'\n\nconst contentOnScreen = 'translate3d(-50%, -50%, 0)'\nconst contentOffScreen = 'translate3d(-50%, 50vh, 0)'\n\nconst slideIn = keyframes({\n '0%': { transform: contentOffScreen },\n '100%': { transform: contentOnScreen }\n})\nconst slideOut = keyframes({\n '0%': { transform: contentOnScreen },\n '100%': { transform: contentOffScreen }\n})\n\nconst StyledAlertDialogOverlay = styled(Overlay, {\n backgroundColor: '$alpha600',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n position: 'fixed',\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${fadeIn} 250ms ease-out`\n },\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} 550ms ease-out`\n }\n }\n})\n\nconst StyledAlertDialogContent = styled(Content, {\n bg: 'white',\n borderRadius: '$1',\n boxShadow: '$3',\n boxSizing: 'border-box',\n left: '50%',\n maxWidth: '90vw',\n p: '$5',\n position: 'fixed',\n top: '50%',\n transform: contentOnScreen,\n '&:focus': {\n outline: 'none'\n },\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${slideIn} 550ms cubic-bezier(0.22, 1, 0.36, 1)`\n },\n '&[data-state=\"closed\"]': {\n animation: `${slideOut} 550ms cubic-bezier(0.22, 1, 0.36, 1)`\n }\n },\n variants: {\n size: {\n sm: { width: '380px' },\n md: { width: '480px' },\n lg: { width: '600px' }\n }\n }\n})\n\ntype AlertDialogContentProps = React.ComponentProps<\n typeof StyledAlertDialogContent\n>\n\nexport const AlertDialogContent: React.FC<AlertDialogContentProps> = ({\n size = 'sm',\n ...remainingProps\n}) => (\n <Portal>\n <StyledAlertDialogOverlay />\n <StyledAlertDialogContent size={size} {...remainingProps} />\n </Portal>\n)\n"],"names":["contentOnScreen","contentOffScreen","slideIn","keyframes","slideOut","StyledAlertDialogOverlay","styled","Overlay","DIALOG_Z_INDEX","fadeIn","fadeOut","StyledAlertDialogContent","Content","AlertDialogContent","size","remainingProps","React","Portal"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AlertDialogContent.js","sources":["../../../src/components/alert-dialog/AlertDialogContent.tsx"],"sourcesContent":["import { Content, Overlay, Portal } from '@radix-ui/react-alert-dialog'\nimport * as React from 'react'\n\nimport { DIALOG_Z_INDEX } from '~/constants/zIndices'\nimport { keyframes, styled } from '~/stitches'\nimport { fadeIn, fadeOut } from '~/utilities'\n\nconst contentOnScreen = 'translate3d(-50%, -50%, 0)'\nconst contentOffScreen = 'translate3d(-50%, 50vh, 0)'\n\nconst slideIn = keyframes({\n '0%': { transform: contentOffScreen },\n '100%': { transform: contentOnScreen }\n})\nconst slideOut = keyframes({\n '0%': { transform: contentOnScreen },\n '100%': { transform: contentOffScreen }\n})\n\nconst StyledAlertDialogOverlay = styled(Overlay, {\n backgroundColor: '$alpha600',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n position: 'fixed',\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${fadeIn} 250ms ease-out`\n },\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} 550ms ease-out`\n }\n }\n})\n\nconst StyledAlertDialogContent = styled(Content, {\n bg: 'white',\n borderRadius: '$1',\n boxShadow: '$3',\n boxSizing: 'border-box',\n left: '50%',\n maxWidth: '90vw',\n p: '$5',\n position: 'fixed',\n top: '50%',\n transform: contentOnScreen,\n '&:focus': {\n outline: 'none'\n },\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${slideIn} 550ms cubic-bezier(0.22, 1, 0.36, 1)`\n },\n '&[data-state=\"closed\"]': {\n animation: `${slideOut} 550ms cubic-bezier(0.22, 1, 0.36, 1)`\n }\n },\n variants: {\n size: {\n sm: { width: '380px' },\n md: { width: '480px' },\n lg: { width: '600px' }\n }\n }\n})\n\ntype AlertDialogContentProps = React.ComponentProps<\n typeof StyledAlertDialogContent\n>\n\nexport const AlertDialogContent: React.FC<AlertDialogContentProps> = ({\n size = 'sm',\n ...remainingProps\n}) => (\n <Portal>\n <StyledAlertDialogOverlay />\n <StyledAlertDialogContent size={size} {...remainingProps} />\n </Portal>\n)\n"],"names":["contentOnScreen","contentOffScreen","slideIn","keyframes","slideOut","StyledAlertDialogOverlay","styled","Overlay","DIALOG_Z_INDEX","fadeIn","fadeOut","StyledAlertDialogContent","Content","AlertDialogContent","size","remainingProps","React","Portal"],"mappings":"oXAOA,MAAMA,EAAkB,6BAClBC,EAAmB,6BAEnBC,EAAUC,EAAU,CACxB,KAAM,CAAE,UAAWF,CAAiB,EACpC,OAAQ,CAAE,UAAWD,CAAgB,CACvC,CAAC,EACKI,EAAWD,EAAU,CACzB,KAAM,CAAE,UAAWH,CAAgB,EACnC,OAAQ,CAAE,UAAWC,CAAiB,CACxC,CAAC,EAEKI,EAA2BC,EAAOC,EAAS,CAC/C,gBAAiB,YACjB,IAAK,EACL,MAAO,EACP,OAAQ,EACR,KAAM,EACN,SAAU,QACV,OAAQC,EACR,eAAgB,CACd,uBAAwB,CACtB,UAAW,GAAGC,kBAChB,EACA,yBAA0B,CACxB,UAAW,GAAGC,kBAChB,CACF,CACF,CAAC,EAEKC,EAA2BL,EAAOM,EAAS,CAC/C,GAAI,QACJ,aAAc,KACd,UAAW,KACX,UAAW,aACX,KAAM,MACN,SAAU,OACV,EAAG,KACH,SAAU,QACV,IAAK,MACL,UAAWZ,EACX,UAAW,CACT,QAAS,MACX,EACA,OAAQQ,EACR,eAAgB,CACd,uBAAwB,CACtB,UAAW,GAAGN,wCAChB,EACA,yBAA0B,CACxB,UAAW,GAAGE,wCAChB,CACF,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CAAE,MAAO,OAAQ,EACrB,GAAI,CAAE,MAAO,OAAQ,EACrB,GAAI,CAAE,MAAO,OAAQ,CACvB,CACF,CACF,CAAC,EAMYS,EAAwD,CAAC,CACpE,KAAAC,EAAO,QACJC,CACL,IACEC,EAAA,cAACC,EAAA,KACCD,EAAA,cAACX,EAAA,IAAyB,EAC1BW,EAAA,cAACL,EAAA,CAAyB,KAAMG,EAAO,GAAGC,CAAAA,CAAgB,CAC5D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as o from"react";import{styled as n}from"../../stitches.js";import{
|
|
1
|
+
import*as o from"react";import{styled as n}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{focusVisibleStyleBlock as v}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{AvatarIcon as p}from"./AvatarIcon.js";import{AvatarImage as u}from"./AvatarImage.js";import{AvatarInitial as b}from"./AvatarInitial.js";import{AvatarPlaceholder as z}from"./AvatarPlaceholder.js";const s={display:"flex",justifyContent:"center",alignItems:"center",color:"$tonal400",borderRadius:"$round",border:"2px solid $tonal100",backgroundColor:"$white",overflow:"hidden",variants:{size:{xs:{size:"$2"},sm:{size:"$3"},md:{size:"$4"},lg:{size:"$5"},xl:{size:"$6"},xxl:{size:"$7"}}}},$=n("div",s),f=n("button",{all:"unset",...s,"&:not([disabled])":{"&:hover":{borderColor:"$tonal400",backgroundColor:"$tonal50"},"&:active":{borderColor:"$primary",backgroundColor:"$tonal100"},"&:focus-visible":v()},"&[disabled]":{opacity:"30%",cursor:"not-allowed"}}),m=o.createContext({name:void 0,size:"lg"}),d=({children:a,name:e,size:i})=>{const t=o.useMemo(()=>({name:e,size:i}),[e,i]);return o.createElement(m.Provider,{value:t},a)},c=({children:a,size:e="lg",name:i,disabled:t=!1,onClick:l})=>o.createElement(d,{name:i,size:e},l?o.createElement(f,{size:e,disabled:t,onClick:t?void 0:l,css:{cursor:t?"auto":"pointer"}},a):o.createElement($,{size:e},a)),r=c;r.Image=u,r.Initial=b,r.Placeholder=z,r.Icon=p,r.displayName="Avatar";export{r as Avatar,c as AvatarRoot,m as AvatarRootContext,d as AvatarRootProvider};
|
|
2
2
|
//# sourceMappingURL=Avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","sources":["../../../src/components/avatar/Avatar.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { AvatarIcon } from './AvatarIcon'\nimport { AvatarImage } from './AvatarImage'\nimport { AvatarInitial } from './AvatarInitial'\nimport { AvatarPlaceholder } from './AvatarPlaceholder'\n\nconst avatarRootStyles = {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: '$tonal400',\n borderRadius: '$round',\n border: '2px solid $tonal100',\n backgroundColor: '$white',\n overflow: 'hidden',\n variants: {\n size: {\n xs: { size: '$2' },\n sm: { size: '$3' },\n md: { size: '$4' },\n lg: { size: '$5' },\n xl: { size: '$6' },\n xxl: { size: '$7' }\n }\n }\n}\n\nconst StyledDiv = styled('div', avatarRootStyles)\nconst StyledButton = styled('button', {\n all: 'unset',\n ...avatarRootStyles,\n '&:not([disabled])': {\n '&:hover': {\n borderColor: '$tonal400',\n backgroundColor: '$tonal50'\n },\n '&:active': {\n borderColor: '$primary',\n backgroundColor: '$tonal100'\n },\n '&:focus-visible': focusVisibleStyleBlock()\n },\n '&[disabled]': {\n opacity: '30%',\n cursor: 'not-allowed'\n }\n})\n\ntype TAvatarProps = React.ComponentProps<\n typeof StyledDiv | typeof StyledButton\n> & { name?: string } & (\n | {\n onClick: React.MouseEventHandler<HTMLButtonElement>\n disabled?: boolean\n }\n | { onClick?: never; disabled?: never }\n )\n\nexport type TAvatarRootContext = {\n name?: TAvatarProps['name']\n size: TAvatarProps['size']\n}\n\nexport const AvatarRootContext = React.createContext<TAvatarRootContext>({\n name: undefined,\n size: 'lg'\n})\n\nexport const AvatarRootProvider: React.FC<TAvatarProps> = ({\n children,\n name,\n size\n}) => {\n const value = React.useMemo<TAvatarRootContext>(\n () => ({ name, size }),\n [name, size]\n )\n\n return (\n <AvatarRootContext.Provider value={value}>\n {children}\n </AvatarRootContext.Provider>\n )\n}\n\nexport const AvatarRoot: React.FC<TAvatarProps> = ({\n children,\n size = 'lg',\n name,\n disabled = false,\n onClick\n}) => (\n <AvatarRootProvider name={name} size={size}>\n {onClick ? (\n <StyledButton\n size={size}\n disabled={disabled}\n onClick={disabled ? undefined : onClick}\n css={{ cursor: disabled ? 'auto' : 'pointer' }}\n >\n {children}\n </StyledButton>\n ) : (\n <StyledDiv size={size}>{children}</StyledDiv>\n )}\n </AvatarRootProvider>\n)\n\ntype TAvatar = typeof AvatarRoot & {\n Image: typeof AvatarImage\n Initial: typeof AvatarInitial\n Placeholder: typeof AvatarPlaceholder\n Icon: typeof AvatarIcon\n}\n\nexport const Avatar = AvatarRoot as TAvatar\nAvatar.Image = AvatarImage\nAvatar.Initial = AvatarInitial\nAvatar.Placeholder = AvatarPlaceholder\nAvatar.Icon = AvatarIcon\nAvatar.displayName = 'Avatar'\n"],"names":["avatarRootStyles","StyledDiv","styled","StyledButton","focusVisibleStyleBlock","AvatarRootContext","React","AvatarRootProvider","children","name","size","value","AvatarRoot","disabled","onClick","Avatar","AvatarImage","AvatarInitial","AvatarPlaceholder","AvatarIcon"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.js","sources":["../../../src/components/avatar/Avatar.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { AvatarIcon } from './AvatarIcon'\nimport { AvatarImage } from './AvatarImage'\nimport { AvatarInitial } from './AvatarInitial'\nimport { AvatarPlaceholder } from './AvatarPlaceholder'\n\nconst avatarRootStyles = {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: '$tonal400',\n borderRadius: '$round',\n border: '2px solid $tonal100',\n backgroundColor: '$white',\n overflow: 'hidden',\n variants: {\n size: {\n xs: { size: '$2' },\n sm: { size: '$3' },\n md: { size: '$4' },\n lg: { size: '$5' },\n xl: { size: '$6' },\n xxl: { size: '$7' }\n }\n }\n}\n\nconst StyledDiv = styled('div', avatarRootStyles)\nconst StyledButton = styled('button', {\n all: 'unset',\n ...avatarRootStyles,\n '&:not([disabled])': {\n '&:hover': {\n borderColor: '$tonal400',\n backgroundColor: '$tonal50'\n },\n '&:active': {\n borderColor: '$primary',\n backgroundColor: '$tonal100'\n },\n '&:focus-visible': focusVisibleStyleBlock()\n },\n '&[disabled]': {\n opacity: '30%',\n cursor: 'not-allowed'\n }\n})\n\ntype TAvatarProps = React.ComponentProps<\n typeof StyledDiv | typeof StyledButton\n> & { name?: string } & (\n | {\n onClick: React.MouseEventHandler<HTMLButtonElement>\n disabled?: boolean\n }\n | { onClick?: never; disabled?: never }\n )\n\nexport type TAvatarRootContext = {\n name?: TAvatarProps['name']\n size: TAvatarProps['size']\n}\n\nexport const AvatarRootContext = React.createContext<TAvatarRootContext>({\n name: undefined,\n size: 'lg'\n})\n\nexport const AvatarRootProvider: React.FC<TAvatarProps> = ({\n children,\n name,\n size\n}) => {\n const value = React.useMemo<TAvatarRootContext>(\n () => ({ name, size }),\n [name, size]\n )\n\n return (\n <AvatarRootContext.Provider value={value}>\n {children}\n </AvatarRootContext.Provider>\n )\n}\n\nexport const AvatarRoot: React.FC<TAvatarProps> = ({\n children,\n size = 'lg',\n name,\n disabled = false,\n onClick\n}) => (\n <AvatarRootProvider name={name} size={size}>\n {onClick ? (\n <StyledButton\n size={size}\n disabled={disabled}\n onClick={disabled ? undefined : onClick}\n css={{ cursor: disabled ? 'auto' : 'pointer' }}\n >\n {children}\n </StyledButton>\n ) : (\n <StyledDiv size={size}>{children}</StyledDiv>\n )}\n </AvatarRootProvider>\n)\n\ntype TAvatar = typeof AvatarRoot & {\n Image: typeof AvatarImage\n Initial: typeof AvatarInitial\n Placeholder: typeof AvatarPlaceholder\n Icon: typeof AvatarIcon\n}\n\nexport const Avatar = AvatarRoot as TAvatar\nAvatar.Image = AvatarImage\nAvatar.Initial = AvatarInitial\nAvatar.Placeholder = AvatarPlaceholder\nAvatar.Icon = AvatarIcon\nAvatar.displayName = 'Avatar'\n"],"names":["avatarRootStyles","StyledDiv","styled","StyledButton","focusVisibleStyleBlock","AvatarRootContext","React","AvatarRootProvider","children","name","size","value","AvatarRoot","disabled","onClick","Avatar","AvatarImage","AvatarInitial","AvatarPlaceholder","AvatarIcon"],"mappings":"geAUA,MAAMA,EAAmB,CACvB,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,MAAO,YACP,aAAc,SACd,OAAQ,sBACR,gBAAiB,SACjB,SAAU,SACV,SAAU,CACR,KAAM,CACJ,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,IAAK,CAAE,KAAM,IAAK,CACpB,CACF,CACF,EAEMC,EAAYC,EAAO,MAAOF,CAAgB,EAC1CG,EAAeD,EAAO,SAAU,CACpC,IAAK,QACL,GAAGF,EACH,oBAAqB,CACnB,UAAW,CACT,YAAa,YACb,gBAAiB,UACnB,EACA,WAAY,CACV,YAAa,WACb,gBAAiB,WACnB,EACA,kBAAmBI,EACrB,CAAA,EACA,cAAe,CACb,QAAS,MACT,OAAQ,aACV,CACF,CAAC,EAiBYC,EAAoBC,EAAM,cAAkC,CACvE,KAAM,OACN,KAAM,IACR,CAAC,EAEYC,EAA6C,CAAC,CACzD,SAAAC,EACA,KAAAC,EACA,KAAAC,CACF,IAAM,CACJ,MAAMC,EAAQL,EAAM,QAClB,KAAO,CAAE,KAAAG,EAAM,KAAAC,CAAK,GACpB,CAACD,EAAMC,CAAI,CACb,EAEA,OACEJ,EAAA,cAACD,EAAkB,SAAlB,CAA2B,MAAOM,CAAAA,EAChCH,CACH,CAEJ,EAEaI,EAAqC,CAAC,CACjD,SAAAJ,EACA,KAAAE,EAAO,KACP,KAAAD,EACA,SAAAI,EAAW,GACX,QAAAC,CACF,IACER,EAAA,cAACC,EAAmB,CAAA,KAAME,EAAM,KAAMC,CACnCI,EAAAA,EACCR,EAAA,cAACH,EAAA,CACC,KAAMO,EACN,SAAUG,EACV,QAASA,EAAW,OAAYC,EAChC,IAAK,CAAE,OAAQD,EAAW,OAAS,SAAU,CAAA,EAE5CL,CACH,EAEAF,EAAA,cAACL,EAAA,CAAU,KAAMS,CAAAA,EAAOF,CAAS,CAErC,EAUWO,EAASH,EACtBG,EAAO,MAAQC,EACfD,EAAO,QAAUE,EACjBF,EAAO,YAAcG,EACrBH,EAAO,KAAOI,EACdJ,EAAO,YAAc"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TcolorScheme } from '../../experiments/color-scheme';
|
|
3
|
+
import { Dismissible } from '../dismissible';
|
|
4
|
+
import { TBannerContainerProps } from './BannerContainer';
|
|
5
|
+
declare type TDismissibleProps = React.ComponentProps<typeof Dismissible>;
|
|
6
|
+
interface IBannerProps extends TBannerContainerProps {
|
|
7
|
+
colorScheme: TcolorScheme;
|
|
8
|
+
value?: TDismissibleProps['value'];
|
|
9
|
+
onDismiss?: TDismissibleProps['onDismiss'];
|
|
10
|
+
}
|
|
11
|
+
export declare const Banner: React.FC<IBannerProps> & {
|
|
12
|
+
Dismiss: typeof Dismissible.Trigger;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"react";import{ColorScheme as l}from"../../experiments/color-scheme/ColorScheme.js";import{Dismissible as s}from"../dismissible/index.js";import{BannerContainer as p}from"./BannerContainer.js";import{BannerContext as c}from"./BannerContext.js";const r=({children:m,size:a={"@initial":"sm","@md":"md"},colorScheme:n,emphasis:i="lowContrast",value:o="dismiss-banner-regular",onDismiss:t})=>e.createElement(l,{...n,asChild:!0},e.createElement(s,{asChild:!0,value:o,onDismiss:t},e.createElement(p,{role:"banner",emphasis:i},e.createElement(c.Provider,{value:{emphasis:i,size:a}},m))));r.Dismiss=s.Trigger,r.displayName="Banner";export{r as Banner};
|
|
2
|
+
//# sourceMappingURL=Banner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Banner.js","sources":["../../../src/components/banner/Banner.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { ColorScheme, TcolorScheme } from '~/experiments/color-scheme'\n\nimport { Dismissible } from '../dismissible'\nimport { BannerContainer, TBannerContainerProps } from './BannerContainer'\nimport { BannerContext } from './BannerContext'\n\ntype TDismissibleProps = React.ComponentProps<typeof Dismissible>\n\ninterface IBannerProps extends TBannerContainerProps {\n colorScheme: TcolorScheme\n value?: TDismissibleProps['value']\n onDismiss?: TDismissibleProps['onDismiss']\n}\n\nexport const Banner: React.FC<IBannerProps> & {\n Dismiss: typeof Dismissible.Trigger\n} = ({\n children,\n size = {\n '@initial': 'sm',\n '@md': 'md'\n },\n colorScheme,\n emphasis = 'lowContrast',\n value = 'dismiss-banner-regular',\n onDismiss\n}) => {\n return (\n <ColorScheme {...colorScheme} asChild>\n <Dismissible asChild value={value} onDismiss={onDismiss}>\n <BannerContainer role=\"banner\" emphasis={emphasis}>\n <BannerContext.Provider value={{ emphasis, size }}>\n {children}\n </BannerContext.Provider>\n </BannerContainer>\n </Dismissible>\n </ColorScheme>\n )\n}\n\nBanner.Dismiss = Dismissible.Trigger\nBanner.displayName = 'Banner'\n"],"names":["Banner","children","size","colorScheme","emphasis","value","onDismiss","React","ColorScheme","Dismissible","BannerContainer","BannerContext"],"mappings":"0QAgBaA,EAET,CAAC,CACH,SAAAC,EACA,KAAAC,EAAO,CACL,WAAY,KACZ,MAAO,IACT,EACA,YAAAC,EACA,SAAAC,EAAW,cACX,MAAAC,EAAQ,yBACR,UAAAC,CACF,IAEIC,EAAA,cAACC,EAAA,CAAa,GAAGL,EAAa,QAAO,EAAA,EACnCI,EAAA,cAACE,EAAA,CAAY,QAAO,GAAC,MAAOJ,EAAO,UAAWC,GAC5CC,EAAA,cAACG,EAAA,CAAgB,KAAK,SAAS,SAAUN,CAAAA,EACvCG,EAAA,cAACI,EAAc,SAAd,CAAuB,MAAO,CAAE,SAAAP,EAAU,KAAAF,CAAK,CAAA,EAC7CD,CACH,CACF,CACF,CACF,EAIJD,EAAO,QAAUS,EAAY,QAC7BT,EAAO,YAAc"}
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BannerContainer: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
reducedMotion: string;
|
|
8
|
+
allowMotion: string;
|
|
9
|
+
hover: string;
|
|
10
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
reducedMotion: string;
|
|
16
|
+
allowMotion: string;
|
|
17
|
+
hover: string;
|
|
18
|
+
}, {
|
|
19
|
+
colors: {
|
|
20
|
+
textForeground: any;
|
|
21
|
+
textSubtle: any;
|
|
22
|
+
textPlaceholder: any;
|
|
23
|
+
background: any;
|
|
24
|
+
backgroundAccent: any;
|
|
25
|
+
grey100: any;
|
|
26
|
+
grey200: any;
|
|
27
|
+
grey300: any;
|
|
28
|
+
grey400: any;
|
|
29
|
+
grey500: any;
|
|
30
|
+
grey600: any;
|
|
31
|
+
grey700: any;
|
|
32
|
+
grey800: any;
|
|
33
|
+
grey900: any;
|
|
34
|
+
grey1000: any;
|
|
35
|
+
grey1100: any;
|
|
36
|
+
grey1200: any;
|
|
37
|
+
blue100: any;
|
|
38
|
+
blue200: any;
|
|
39
|
+
blue300: any;
|
|
40
|
+
blue400: any;
|
|
41
|
+
blue500: any;
|
|
42
|
+
blue600: any;
|
|
43
|
+
blue700: any;
|
|
44
|
+
blue800: any;
|
|
45
|
+
blue900: any;
|
|
46
|
+
blue1000: any;
|
|
47
|
+
blue1100: any;
|
|
48
|
+
blue1200: any;
|
|
49
|
+
purple100: any;
|
|
50
|
+
purple200: any;
|
|
51
|
+
purple300: any;
|
|
52
|
+
purple400: any;
|
|
53
|
+
purple500: any;
|
|
54
|
+
purple600: any;
|
|
55
|
+
purple700: any;
|
|
56
|
+
purple800: any;
|
|
57
|
+
purple900: any;
|
|
58
|
+
purple1000: any;
|
|
59
|
+
purple1100: any;
|
|
60
|
+
purple1200: any;
|
|
61
|
+
tonal50: any;
|
|
62
|
+
tonal100: any;
|
|
63
|
+
tonal200: any;
|
|
64
|
+
tonal300: any;
|
|
65
|
+
tonal400: any;
|
|
66
|
+
tonal500: any;
|
|
67
|
+
tonal600: any;
|
|
68
|
+
alpha100: any;
|
|
69
|
+
alpha150: any;
|
|
70
|
+
alpha200: any;
|
|
71
|
+
alpha250: any;
|
|
72
|
+
alpha600: any;
|
|
73
|
+
primaryLight: any;
|
|
74
|
+
primary: any;
|
|
75
|
+
primaryMid: any;
|
|
76
|
+
primaryDark: any;
|
|
77
|
+
secondary: any;
|
|
78
|
+
brandRed: any;
|
|
79
|
+
brandRedAccent: any;
|
|
80
|
+
brandGreen: any;
|
|
81
|
+
brandGreenAccent: any;
|
|
82
|
+
brandPurple: any;
|
|
83
|
+
brandPurpleAccent: any;
|
|
84
|
+
brandYellow: any;
|
|
85
|
+
brandYellowAccent: any;
|
|
86
|
+
successLight: any;
|
|
87
|
+
success: any;
|
|
88
|
+
successMid: any;
|
|
89
|
+
successDark: any;
|
|
90
|
+
dangerLight: any;
|
|
91
|
+
danger: any;
|
|
92
|
+
dangerMid: any;
|
|
93
|
+
dangerDark: any;
|
|
94
|
+
warningLight: any;
|
|
95
|
+
warning: any;
|
|
96
|
+
warningMid: any;
|
|
97
|
+
warningDark: any;
|
|
98
|
+
warningText: any;
|
|
99
|
+
subjectEnglish: any;
|
|
100
|
+
subjectMaths: any;
|
|
101
|
+
subjectScience: any;
|
|
102
|
+
subjectVerbalReasoning: any;
|
|
103
|
+
subjectNonVerbalReasoning: any;
|
|
104
|
+
subjectCreativeWriting: any;
|
|
105
|
+
subjectExamSkills: any;
|
|
106
|
+
};
|
|
107
|
+
space: {
|
|
108
|
+
"0": any;
|
|
109
|
+
"1": any;
|
|
110
|
+
"2": any;
|
|
111
|
+
"3": any;
|
|
112
|
+
"4": any;
|
|
113
|
+
"5": any;
|
|
114
|
+
"6": any;
|
|
115
|
+
"7": any;
|
|
116
|
+
"8": any;
|
|
117
|
+
"9": any;
|
|
118
|
+
"24": any;
|
|
119
|
+
};
|
|
120
|
+
fontSizes: {
|
|
121
|
+
xs: any;
|
|
122
|
+
sm: any;
|
|
123
|
+
md: any;
|
|
124
|
+
lg: any;
|
|
125
|
+
xl: any;
|
|
126
|
+
"2xl": any;
|
|
127
|
+
"3xl": any;
|
|
128
|
+
"4xl": any;
|
|
129
|
+
};
|
|
130
|
+
fonts: {
|
|
131
|
+
sans: any;
|
|
132
|
+
mono: any;
|
|
133
|
+
display: any;
|
|
134
|
+
body: any;
|
|
135
|
+
};
|
|
136
|
+
sizes: {
|
|
137
|
+
"0": any;
|
|
138
|
+
"1": any;
|
|
139
|
+
"2": any;
|
|
140
|
+
"3": any;
|
|
141
|
+
"4": any;
|
|
142
|
+
"5": any;
|
|
143
|
+
"6": any;
|
|
144
|
+
"7": any;
|
|
145
|
+
"8": any;
|
|
146
|
+
};
|
|
147
|
+
radii: {
|
|
148
|
+
"0": any;
|
|
149
|
+
"1": any;
|
|
150
|
+
"2": any;
|
|
151
|
+
"3": any;
|
|
152
|
+
round: any;
|
|
153
|
+
};
|
|
154
|
+
shadows: {
|
|
155
|
+
"0": any;
|
|
156
|
+
"1": any;
|
|
157
|
+
"2": any;
|
|
158
|
+
"3": any;
|
|
159
|
+
};
|
|
160
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
161
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
162
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
163
|
+
};
|
|
164
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
165
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
166
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
167
|
+
};
|
|
168
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
169
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
170
|
+
};
|
|
171
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
172
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
173
|
+
};
|
|
174
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
175
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
176
|
+
};
|
|
177
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
178
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
179
|
+
};
|
|
180
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
181
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
182
|
+
};
|
|
183
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
184
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
185
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
186
|
+
};
|
|
187
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
188
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
189
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
190
|
+
};
|
|
191
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
192
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
193
|
+
};
|
|
194
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
195
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
196
|
+
};
|
|
197
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
198
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
199
|
+
};
|
|
200
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
201
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
202
|
+
};
|
|
203
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
204
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
205
|
+
};
|
|
206
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
207
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
208
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
209
|
+
};
|
|
210
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
211
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
212
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
213
|
+
};
|
|
214
|
+
}>>, {
|
|
215
|
+
emphasis?: "highContrast" | "midContrast" | "lowContrast" | undefined;
|
|
216
|
+
size?: "sm" | "md" | undefined;
|
|
217
|
+
}, {
|
|
218
|
+
sm: string;
|
|
219
|
+
md: string;
|
|
220
|
+
lg: string;
|
|
221
|
+
xl: string;
|
|
222
|
+
reducedMotion: string;
|
|
223
|
+
allowMotion: string;
|
|
224
|
+
hover: string;
|
|
225
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
226
|
+
sm: string;
|
|
227
|
+
md: string;
|
|
228
|
+
lg: string;
|
|
229
|
+
xl: string;
|
|
230
|
+
reducedMotion: string;
|
|
231
|
+
allowMotion: string;
|
|
232
|
+
hover: string;
|
|
233
|
+
}, {
|
|
234
|
+
colors: {
|
|
235
|
+
textForeground: any;
|
|
236
|
+
textSubtle: any;
|
|
237
|
+
textPlaceholder: any;
|
|
238
|
+
background: any;
|
|
239
|
+
backgroundAccent: any;
|
|
240
|
+
grey100: any;
|
|
241
|
+
grey200: any;
|
|
242
|
+
grey300: any;
|
|
243
|
+
grey400: any;
|
|
244
|
+
grey500: any;
|
|
245
|
+
grey600: any;
|
|
246
|
+
grey700: any;
|
|
247
|
+
grey800: any;
|
|
248
|
+
grey900: any;
|
|
249
|
+
grey1000: any;
|
|
250
|
+
grey1100: any;
|
|
251
|
+
grey1200: any;
|
|
252
|
+
blue100: any;
|
|
253
|
+
blue200: any;
|
|
254
|
+
blue300: any;
|
|
255
|
+
blue400: any;
|
|
256
|
+
blue500: any;
|
|
257
|
+
blue600: any;
|
|
258
|
+
blue700: any;
|
|
259
|
+
blue800: any;
|
|
260
|
+
blue900: any;
|
|
261
|
+
blue1000: any;
|
|
262
|
+
blue1100: any;
|
|
263
|
+
blue1200: any;
|
|
264
|
+
purple100: any;
|
|
265
|
+
purple200: any;
|
|
266
|
+
purple300: any;
|
|
267
|
+
purple400: any;
|
|
268
|
+
purple500: any;
|
|
269
|
+
purple600: any;
|
|
270
|
+
purple700: any;
|
|
271
|
+
purple800: any;
|
|
272
|
+
purple900: any;
|
|
273
|
+
purple1000: any;
|
|
274
|
+
purple1100: any;
|
|
275
|
+
purple1200: any;
|
|
276
|
+
tonal50: any;
|
|
277
|
+
tonal100: any;
|
|
278
|
+
tonal200: any;
|
|
279
|
+
tonal300: any;
|
|
280
|
+
tonal400: any;
|
|
281
|
+
tonal500: any;
|
|
282
|
+
tonal600: any;
|
|
283
|
+
alpha100: any;
|
|
284
|
+
alpha150: any;
|
|
285
|
+
alpha200: any;
|
|
286
|
+
alpha250: any;
|
|
287
|
+
alpha600: any;
|
|
288
|
+
primaryLight: any;
|
|
289
|
+
primary: any;
|
|
290
|
+
primaryMid: any;
|
|
291
|
+
primaryDark: any;
|
|
292
|
+
secondary: any;
|
|
293
|
+
brandRed: any;
|
|
294
|
+
brandRedAccent: any;
|
|
295
|
+
brandGreen: any;
|
|
296
|
+
brandGreenAccent: any;
|
|
297
|
+
brandPurple: any;
|
|
298
|
+
brandPurpleAccent: any;
|
|
299
|
+
brandYellow: any;
|
|
300
|
+
brandYellowAccent: any;
|
|
301
|
+
successLight: any;
|
|
302
|
+
success: any;
|
|
303
|
+
successMid: any;
|
|
304
|
+
successDark: any;
|
|
305
|
+
dangerLight: any;
|
|
306
|
+
danger: any;
|
|
307
|
+
dangerMid: any;
|
|
308
|
+
dangerDark: any;
|
|
309
|
+
warningLight: any;
|
|
310
|
+
warning: any;
|
|
311
|
+
warningMid: any;
|
|
312
|
+
warningDark: any;
|
|
313
|
+
warningText: any;
|
|
314
|
+
subjectEnglish: any;
|
|
315
|
+
subjectMaths: any;
|
|
316
|
+
subjectScience: any;
|
|
317
|
+
subjectVerbalReasoning: any;
|
|
318
|
+
subjectNonVerbalReasoning: any;
|
|
319
|
+
subjectCreativeWriting: any;
|
|
320
|
+
subjectExamSkills: any;
|
|
321
|
+
};
|
|
322
|
+
space: {
|
|
323
|
+
"0": any;
|
|
324
|
+
"1": any;
|
|
325
|
+
"2": any;
|
|
326
|
+
"3": any;
|
|
327
|
+
"4": any;
|
|
328
|
+
"5": any;
|
|
329
|
+
"6": any;
|
|
330
|
+
"7": any;
|
|
331
|
+
"8": any;
|
|
332
|
+
"9": any;
|
|
333
|
+
"24": any;
|
|
334
|
+
};
|
|
335
|
+
fontSizes: {
|
|
336
|
+
xs: any;
|
|
337
|
+
sm: any;
|
|
338
|
+
md: any;
|
|
339
|
+
lg: any;
|
|
340
|
+
xl: any;
|
|
341
|
+
"2xl": any;
|
|
342
|
+
"3xl": any;
|
|
343
|
+
"4xl": any;
|
|
344
|
+
};
|
|
345
|
+
fonts: {
|
|
346
|
+
sans: any;
|
|
347
|
+
mono: any;
|
|
348
|
+
display: any;
|
|
349
|
+
body: any;
|
|
350
|
+
};
|
|
351
|
+
sizes: {
|
|
352
|
+
"0": any;
|
|
353
|
+
"1": any;
|
|
354
|
+
"2": any;
|
|
355
|
+
"3": any;
|
|
356
|
+
"4": any;
|
|
357
|
+
"5": any;
|
|
358
|
+
"6": any;
|
|
359
|
+
"7": any;
|
|
360
|
+
"8": any;
|
|
361
|
+
};
|
|
362
|
+
radii: {
|
|
363
|
+
"0": any;
|
|
364
|
+
"1": any;
|
|
365
|
+
"2": any;
|
|
366
|
+
"3": any;
|
|
367
|
+
round: any;
|
|
368
|
+
};
|
|
369
|
+
shadows: {
|
|
370
|
+
"0": any;
|
|
371
|
+
"1": any;
|
|
372
|
+
"2": any;
|
|
373
|
+
"3": any;
|
|
374
|
+
};
|
|
375
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
376
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
377
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
378
|
+
};
|
|
379
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
380
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
381
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
382
|
+
};
|
|
383
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
384
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
385
|
+
};
|
|
386
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
387
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
388
|
+
};
|
|
389
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
390
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
391
|
+
};
|
|
392
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
393
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
394
|
+
};
|
|
395
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
396
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
397
|
+
};
|
|
398
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
399
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
400
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
401
|
+
};
|
|
402
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
403
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
404
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
405
|
+
};
|
|
406
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
407
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
408
|
+
};
|
|
409
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
410
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
411
|
+
};
|
|
412
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
413
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
414
|
+
};
|
|
415
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
416
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
417
|
+
};
|
|
418
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
419
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
420
|
+
};
|
|
421
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
422
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
423
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
424
|
+
};
|
|
425
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
426
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
427
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
428
|
+
};
|
|
429
|
+
}>>;
|
|
430
|
+
export declare type TBannerContainerProps = React.ComponentProps<typeof BannerContainer>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{styled as o}from"../../stitches.js";import{Flex as r}from"../flex/Flex.js";const e=o(r,{position:"relative",width:"100%",borderRadius:"$0",overflow:"hidden",color:"$foreground",variants:{emphasis:{highContrast:{background:"$base11",color:"$foreground7plus"},midContrast:{background:"$base3"},lowContrast:{background:"$base1"}},size:{sm:{},md:{}}}});export{e as BannerContainer};
|
|
2
|
+
//# sourceMappingURL=BannerContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerContainer.js","sources":["../../../src/components/banner/BannerContainer.tsx"],"sourcesContent":["import { styled } from '~/stitches'\n\nimport { Flex } from '../flex'\n\nexport const BannerContainer = styled(Flex, {\n position: 'relative',\n width: '100%',\n borderRadius: '$0',\n overflow: 'hidden',\n color: '$foreground',\n variants: {\n emphasis: {\n highContrast: {\n background: '$base11',\n color: '$foreground7plus'\n },\n midContrast: {\n background: '$base3'\n },\n lowContrast: {\n background: '$base1'\n }\n },\n size: {\n sm: {},\n md: {}\n }\n }\n})\n\nexport type TBannerContainerProps = React.ComponentProps<typeof BannerContainer>\n"],"names":["BannerContainer","styled","Flex"],"mappings":"kFAIO,MAAMA,EAAkBC,EAAOC,EAAM,CAC1C,SAAU,WACV,MAAO,OACP,aAAc,KACd,SAAU,SACV,MAAO,cACP,SAAU,CACR,SAAU,CACR,aAAc,CACZ,WAAY,UACZ,MAAO,kBACT,EACA,YAAa,CACX,WAAY,QACd,EACA,YAAa,CACX,WAAY,QACd,CACF,EACA,KAAM,CACJ,GAAI,CAAA,EACJ,GAAI,CACN,CAAA,CACF,CACF,CAAC"}
|