@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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TBannerContainerProps } from './BannerContainer';
|
|
3
|
+
declare type TBannerContextValue = Pick<TBannerContainerProps, 'size' | 'emphasis'>;
|
|
4
|
+
export declare const BannerContext: React.Context<TBannerContextValue | undefined>;
|
|
5
|
+
export declare const useBannerContext: () => Partial<TBannerContextValue>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as t from"react";const n=t.createContext(void 0),o=()=>{const e=t.useContext(n);if(e===void 0)throw new Error("useBannerContext must be used within a BannerContextProvider");return e};export{n as BannerContext,o as useBannerContext};
|
|
2
|
+
//# sourceMappingURL=BannerContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerContext.js","sources":["../../../src/components/banner/BannerContext.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { TBannerContainerProps } from './BannerContainer'\n\ntype TBannerContextValue = Pick<TBannerContainerProps, 'size' | 'emphasis'>\n\nexport const BannerContext = React.createContext<\n TBannerContextValue | undefined\n>(undefined)\n\nexport const useBannerContext = (): Partial<TBannerContextValue> => {\n const context = React.useContext(BannerContext)\n\n if (context === undefined) {\n throw new Error(\n 'useBannerContext must be used within a BannerContextProvider'\n )\n }\n\n return context\n}\n"],"names":["BannerContext","React","useBannerContext","context"],"mappings":"wBAMO,MAAMA,EAAgBC,EAAM,cAEjC,MAAS,EAEEC,EAAmB,IAAoC,CAClE,MAAMC,EAAUF,EAAM,WAAWD,CAAa,EAE9C,GAAIG,IAAY,OACd,MAAM,IAAI,MACR,8DACF,EAGF,OAAOA,CACT"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Banner } from '../Banner';
|
|
3
|
+
import { BannerRegularActions } from './BannerRegularActions';
|
|
4
|
+
import { BannerRegularButton } from './BannerRegularButton';
|
|
5
|
+
import { BannerRegularContent } from './BannerRegularContent';
|
|
6
|
+
import { BannerRegularDismiss } from './BannerRegularDismiss';
|
|
7
|
+
import { BannerRegularHeading } from './BannerRegularHeading';
|
|
8
|
+
import { BannerRegularImage } from './BannerRegularImage';
|
|
9
|
+
import { BannerRegularText } from './BannerRegularText';
|
|
10
|
+
export declare const BannerRegular: React.FC<React.ComponentProps<typeof Banner>> & {
|
|
11
|
+
Content: typeof BannerRegularContent;
|
|
12
|
+
Heading: typeof BannerRegularHeading;
|
|
13
|
+
Text: typeof BannerRegularText;
|
|
14
|
+
Actions: typeof BannerRegularActions;
|
|
15
|
+
Image: typeof BannerRegularImage;
|
|
16
|
+
Button: typeof BannerRegularButton;
|
|
17
|
+
Dismiss: typeof BannerRegularDismiss;
|
|
18
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as n from"react";import{Banner as a}from"../Banner.js";import{BannerRegularActions as o}from"./BannerRegularActions.js";import{BannerRegularButton as t}from"./BannerRegularButton.js";import{BannerRegularContent as m}from"./BannerRegularContent.js";import{BannerRegularDismiss as i}from"./BannerRegularDismiss.js";import{BannerRegularHeading as g}from"./BannerRegularHeading.js";import{BannerRegularImage as B}from"./BannerRegularImage.js";import{BannerRegularText as l}from"./BannerRegularText.js";const r=e=>n.createElement(a,{...e});r.Content=m,r.Heading=g,r.Text=l,r.Actions=o,r.Image=B,r.Button=t,r.Dismiss=i,r.displayName="BannerRegular";export{r as BannerRegular};
|
|
2
|
+
//# sourceMappingURL=BannerRegular.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerRegular.js","sources":["../../../../src/components/banner/banner-regular/BannerRegular.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Banner } from '../Banner'\nimport { BannerRegularActions } from './BannerRegularActions'\nimport { BannerRegularButton } from './BannerRegularButton'\nimport { BannerRegularContent } from './BannerRegularContent'\nimport { BannerRegularDismiss } from './BannerRegularDismiss'\nimport { BannerRegularHeading } from './BannerRegularHeading'\nimport { BannerRegularImage } from './BannerRegularImage'\nimport { BannerRegularText } from './BannerRegularText'\n\nexport const BannerRegular: React.FC<React.ComponentProps<typeof Banner>> & {\n Content: typeof BannerRegularContent\n Heading: typeof BannerRegularHeading\n Text: typeof BannerRegularText\n Actions: typeof BannerRegularActions\n Image: typeof BannerRegularImage\n Button: typeof BannerRegularButton\n Dismiss: typeof BannerRegularDismiss\n} = (props) => {\n return <Banner {...props} />\n}\n\nBannerRegular.Content = BannerRegularContent\nBannerRegular.Heading = BannerRegularHeading\nBannerRegular.Text = BannerRegularText\nBannerRegular.Actions = BannerRegularActions\nBannerRegular.Image = BannerRegularImage\nBannerRegular.Button = BannerRegularButton\nBannerRegular.Dismiss = BannerRegularDismiss\n\nBannerRegular.displayName = 'BannerRegular'\n"],"names":["BannerRegular","props","React","Banner","BannerRegularContent","BannerRegularHeading","BannerRegularText","BannerRegularActions","BannerRegularImage","BannerRegularButton","BannerRegularDismiss"],"mappings":"yfAWO,MAAMA,EAQRC,GACIC,EAAA,cAACC,EAAA,CAAQ,GAAGF,CAAAA,CAAO,EAG5BD,EAAc,QAAUI,EACxBJ,EAAc,QAAUK,EACxBL,EAAc,KAAOM,EACrBN,EAAc,QAAUO,EACxBP,EAAc,MAAQQ,EACtBR,EAAc,OAASS,EACvBT,EAAc,QAAUU,EAExBV,EAAc,YAAc"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import i from"invariant";import*as t from"react";import{overrideStitchesVariantValue as c}from"../../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";import{Stack as u}from"../../stack/Stack.js";import{useBannerContext as f}from"../BannerContext.js";import{BannerRegularButton as r}from"./BannerRegularButton.js";const m=2,y={sm:2,md:4},n=({children:o,...l})=>{const{size:a}=f(),p=t.useMemo(()=>c(a,e=>y[e]),[a]);return i(t.Children.count(o)<=m,`A maximum of ${m} ${r.displayName} component(s) are permitted as children of ${n.displayName}`),t.createElement(u,{gap:p,...l},t.Children.map(o,(e,s)=>{if(!t.isValidElement(e))throw new Error(`Child passed to ${n.displayName} is not a valid element`);i(e.type===r,`Children of type ${e==null?void 0:e.type} aren't permitted. Only an ${r.displayName} component is allowed in ${n.displayName}`);const d={appearance:s>0?"outline":void 0};return t.cloneElement(e,d)}))};n.displayName="BannerRegularActions";export{n as BannerRegularActions};
|
|
2
|
+
//# sourceMappingURL=BannerRegularActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerRegularActions.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularActions.tsx"],"sourcesContent":["import invariant from 'invariant'\nimport * as React from 'react'\n\nimport { overrideStitchesVariantValue } from '~/utilities/override-stitches-variant-value/overrideStitchesVariantValue'\n\nimport { Stack } from '../../stack'\nimport { useBannerContext } from '../BannerContext'\nimport { BannerRegularButton } from './BannerRegularButton'\n\nconst MAX_ALLOWED_CHILDREN = 2\n\nconst toGap = {\n sm: 2,\n md: 4\n}\n\nexport const BannerRegularActions: React.FC<\n React.ComponentProps<typeof Stack>\n> = ({ children, ...props }) => {\n const { size } = useBannerContext()\n\n const gap = React.useMemo(\n () => overrideStitchesVariantValue(size, (s) => toGap[s]),\n [size]\n )\n\n invariant(\n React.Children.count(children) <= MAX_ALLOWED_CHILDREN,\n `A maximum of ${MAX_ALLOWED_CHILDREN} ${BannerRegularButton.displayName} component(s) are permitted as children of ${BannerRegularActions.displayName}`\n )\n\n return (\n <Stack gap={gap} {...props}>\n {React.Children.map(children, (child, index) => {\n if (!React.isValidElement(child)) {\n throw new Error(\n `Child passed to ${BannerRegularActions.displayName} is not a valid element`\n )\n }\n\n invariant(\n child.type === BannerRegularButton,\n `Children of type ${child?.type} aren't permitted. Only an ${BannerRegularButton.displayName} component is allowed in ${BannerRegularActions.displayName}`\n )\n\n const propsToInject: Partial<\n React.ComponentProps<typeof BannerRegularButton>\n > = {\n // Override button appearance - make the second button outlined\n appearance: index > 0 ? 'outline' : undefined\n }\n\n return React.cloneElement(\n child as React.ReactElement<\n React.ComponentProps<typeof BannerRegularButton>\n >,\n propsToInject\n )\n })}\n </Stack>\n )\n}\n\nBannerRegularActions.displayName = 'BannerRegularActions'\n"],"names":["MAX_ALLOWED_CHILDREN","toGap","BannerRegularActions","children","props","size","useBannerContext","gap","React","overrideStitchesVariantValue","s","invariant","BannerRegularButton","Stack","child","index","propsToInject"],"mappings":"sVASA,MAAMA,EAAuB,EAEvBC,EAAQ,CACZ,GAAI,EACJ,GAAI,CACN,EAEaC,EAET,CAAC,CAAE,SAAAC,KAAaC,CAAM,IAAM,CAC9B,KAAM,CAAE,KAAAC,CAAK,EAAIC,EAEXC,EAAAA,EAAMC,EAAM,QAChB,IAAMC,EAA6BJ,EAAOK,GAAMT,EAAMS,EAAE,EACxD,CAACL,CAAI,CACP,EAEA,OAAAM,EACEH,EAAM,SAAS,MAAML,CAAQ,GAAKH,EAClC,gBAAgBA,KAAwBY,EAAoB,yDAAyDV,EAAqB,aAC5I,EAGEM,EAAA,cAACK,EAAA,CAAM,IAAKN,EAAM,GAAGH,CAAAA,EAClBI,EAAM,SAAS,IAAIL,EAAU,CAACW,EAAOC,IAAU,CAC9C,GAAI,CAACP,EAAM,eAAeM,CAAK,EAC7B,MAAM,IAAI,MACR,mBAAmBZ,EAAqB,oCAC1C,EAGFS,EACEG,EAAM,OAASF,EACf,oBAAoBE,GAAA,YAAAA,EAAO,kCAAkCF,EAAoB,uCAAuCV,EAAqB,aAC/I,EAEA,MAAMc,EAEF,CAEF,WAAYD,EAAQ,EAAI,UAAY,MACtC,EAEA,OAAOP,EAAM,aACXM,EAGAE,CACF,CACF,CAAC,CACH,CAEJ,EAEAd,EAAqB,YAAc"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"react";import{overrideStitchesVariantValue as i}from"../../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";import{Button as s}from"../../button/Button.js";import{useBannerContext as u}from"../BannerContext.js";const r=n=>{const{emphasis:o,size:t}=u(),a=e.useMemo(()=>i(t,m=>m==="sm"),[t]);return e.createElement(s,{size:t,fullWidth:a,theme:o==="highContrast"?"neutral":"primary",...n})};r.displayName="BannerRegularButton";export{r as BannerRegularButton};
|
|
2
|
+
//# sourceMappingURL=BannerRegularButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerRegularButton.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularButton.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { overrideStitchesVariantValue } from '~/utilities/override-stitches-variant-value/overrideStitchesVariantValue'\n\nimport { Button } from '../../button'\nimport { useBannerContext } from '../BannerContext'\n\nexport const BannerRegularButton: React.FC<\n React.ComponentProps<typeof Button>\n> = (props) => {\n const { emphasis, size } = useBannerContext()\n\n const fullWidth = React.useMemo(\n () => overrideStitchesVariantValue(size, (s) => s === 'sm'),\n [size]\n )\n\n return (\n <Button\n size={size}\n fullWidth={fullWidth}\n theme={emphasis === 'highContrast' ? 'neutral' : 'primary'}\n {...props}\n />\n )\n}\n\nBannerRegularButton.displayName = 'BannerRegularButton'\n"],"names":["BannerRegularButton","props","emphasis","size","useBannerContext","fullWidth","React","overrideStitchesVariantValue","s","Button"],"mappings":"iQAOa,MAAAA,EAERC,GAAU,CACb,KAAM,CAAE,SAAAC,EAAU,KAAAC,CAAK,EAAIC,EAAAA,EAErBC,EAAYC,EAAM,QACtB,IAAMC,EAA6BJ,EAAOK,GAAMA,IAAM,IAAI,EAC1D,CAACL,CAAI,CACP,EAEA,OACEG,EAAA,cAACG,EAAA,CACC,KAAMN,EACN,UAAWE,EACX,MAAOH,IAAa,eAAiB,UAAY,UAChD,GAAGD,CACN,CAAA,CAEJ,EAEAD,EAAoB,YAAc"}
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Container: 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
|
+
size?: "sm" | "md" | undefined;
|
|
216
|
+
}, {
|
|
217
|
+
sm: string;
|
|
218
|
+
md: string;
|
|
219
|
+
lg: string;
|
|
220
|
+
xl: string;
|
|
221
|
+
reducedMotion: string;
|
|
222
|
+
allowMotion: string;
|
|
223
|
+
hover: string;
|
|
224
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
225
|
+
sm: string;
|
|
226
|
+
md: string;
|
|
227
|
+
lg: string;
|
|
228
|
+
xl: string;
|
|
229
|
+
reducedMotion: string;
|
|
230
|
+
allowMotion: string;
|
|
231
|
+
hover: string;
|
|
232
|
+
}, {
|
|
233
|
+
colors: {
|
|
234
|
+
textForeground: any;
|
|
235
|
+
textSubtle: any;
|
|
236
|
+
textPlaceholder: any;
|
|
237
|
+
background: any;
|
|
238
|
+
backgroundAccent: any;
|
|
239
|
+
grey100: any;
|
|
240
|
+
grey200: any;
|
|
241
|
+
grey300: any;
|
|
242
|
+
grey400: any;
|
|
243
|
+
grey500: any;
|
|
244
|
+
grey600: any;
|
|
245
|
+
grey700: any;
|
|
246
|
+
grey800: any;
|
|
247
|
+
grey900: any;
|
|
248
|
+
grey1000: any;
|
|
249
|
+
grey1100: any;
|
|
250
|
+
grey1200: any;
|
|
251
|
+
blue100: any;
|
|
252
|
+
blue200: any;
|
|
253
|
+
blue300: any;
|
|
254
|
+
blue400: any;
|
|
255
|
+
blue500: any;
|
|
256
|
+
blue600: any;
|
|
257
|
+
blue700: any;
|
|
258
|
+
blue800: any;
|
|
259
|
+
blue900: any;
|
|
260
|
+
blue1000: any;
|
|
261
|
+
blue1100: any;
|
|
262
|
+
blue1200: any;
|
|
263
|
+
purple100: any;
|
|
264
|
+
purple200: any;
|
|
265
|
+
purple300: any;
|
|
266
|
+
purple400: any;
|
|
267
|
+
purple500: any;
|
|
268
|
+
purple600: any;
|
|
269
|
+
purple700: any;
|
|
270
|
+
purple800: any;
|
|
271
|
+
purple900: any;
|
|
272
|
+
purple1000: any;
|
|
273
|
+
purple1100: any;
|
|
274
|
+
purple1200: any;
|
|
275
|
+
tonal50: any;
|
|
276
|
+
tonal100: any;
|
|
277
|
+
tonal200: any;
|
|
278
|
+
tonal300: any;
|
|
279
|
+
tonal400: any;
|
|
280
|
+
tonal500: any;
|
|
281
|
+
tonal600: any;
|
|
282
|
+
alpha100: any;
|
|
283
|
+
alpha150: any;
|
|
284
|
+
alpha200: any;
|
|
285
|
+
alpha250: any;
|
|
286
|
+
alpha600: any;
|
|
287
|
+
primaryLight: any;
|
|
288
|
+
primary: any;
|
|
289
|
+
primaryMid: any;
|
|
290
|
+
primaryDark: any;
|
|
291
|
+
secondary: any;
|
|
292
|
+
brandRed: any;
|
|
293
|
+
brandRedAccent: any;
|
|
294
|
+
brandGreen: any;
|
|
295
|
+
brandGreenAccent: any;
|
|
296
|
+
brandPurple: any;
|
|
297
|
+
brandPurpleAccent: any;
|
|
298
|
+
brandYellow: any;
|
|
299
|
+
brandYellowAccent: any;
|
|
300
|
+
successLight: any;
|
|
301
|
+
success: any;
|
|
302
|
+
successMid: any;
|
|
303
|
+
successDark: any;
|
|
304
|
+
dangerLight: any;
|
|
305
|
+
danger: any;
|
|
306
|
+
dangerMid: any;
|
|
307
|
+
dangerDark: any;
|
|
308
|
+
warningLight: any;
|
|
309
|
+
warning: any;
|
|
310
|
+
warningMid: any;
|
|
311
|
+
warningDark: any;
|
|
312
|
+
warningText: any;
|
|
313
|
+
subjectEnglish: any;
|
|
314
|
+
subjectMaths: any;
|
|
315
|
+
subjectScience: any;
|
|
316
|
+
subjectVerbalReasoning: any;
|
|
317
|
+
subjectNonVerbalReasoning: any;
|
|
318
|
+
subjectCreativeWriting: any;
|
|
319
|
+
subjectExamSkills: any;
|
|
320
|
+
};
|
|
321
|
+
space: {
|
|
322
|
+
"0": any;
|
|
323
|
+
"1": any;
|
|
324
|
+
"2": any;
|
|
325
|
+
"3": any;
|
|
326
|
+
"4": any;
|
|
327
|
+
"5": any;
|
|
328
|
+
"6": any;
|
|
329
|
+
"7": any;
|
|
330
|
+
"8": any;
|
|
331
|
+
"9": any;
|
|
332
|
+
"24": any;
|
|
333
|
+
};
|
|
334
|
+
fontSizes: {
|
|
335
|
+
xs: any;
|
|
336
|
+
sm: any;
|
|
337
|
+
md: any;
|
|
338
|
+
lg: any;
|
|
339
|
+
xl: any;
|
|
340
|
+
"2xl": any;
|
|
341
|
+
"3xl": any;
|
|
342
|
+
"4xl": any;
|
|
343
|
+
};
|
|
344
|
+
fonts: {
|
|
345
|
+
sans: any;
|
|
346
|
+
mono: any;
|
|
347
|
+
display: any;
|
|
348
|
+
body: any;
|
|
349
|
+
};
|
|
350
|
+
sizes: {
|
|
351
|
+
"0": any;
|
|
352
|
+
"1": any;
|
|
353
|
+
"2": any;
|
|
354
|
+
"3": any;
|
|
355
|
+
"4": any;
|
|
356
|
+
"5": any;
|
|
357
|
+
"6": any;
|
|
358
|
+
"7": any;
|
|
359
|
+
"8": any;
|
|
360
|
+
};
|
|
361
|
+
radii: {
|
|
362
|
+
"0": any;
|
|
363
|
+
"1": any;
|
|
364
|
+
"2": any;
|
|
365
|
+
"3": any;
|
|
366
|
+
round: any;
|
|
367
|
+
};
|
|
368
|
+
shadows: {
|
|
369
|
+
"0": any;
|
|
370
|
+
"1": any;
|
|
371
|
+
"2": any;
|
|
372
|
+
"3": any;
|
|
373
|
+
};
|
|
374
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
375
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
376
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
377
|
+
};
|
|
378
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
379
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
380
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
381
|
+
};
|
|
382
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
383
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
384
|
+
};
|
|
385
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
386
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
387
|
+
};
|
|
388
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
389
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
390
|
+
};
|
|
391
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
392
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
393
|
+
};
|
|
394
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
395
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
396
|
+
};
|
|
397
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
398
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
399
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
400
|
+
};
|
|
401
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
402
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
403
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
404
|
+
};
|
|
405
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
406
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
407
|
+
};
|
|
408
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
409
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
410
|
+
};
|
|
411
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
412
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
413
|
+
};
|
|
414
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
415
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
416
|
+
};
|
|
417
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
418
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
419
|
+
};
|
|
420
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
421
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
422
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
423
|
+
};
|
|
424
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
425
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
426
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
427
|
+
};
|
|
428
|
+
}>>;
|
|
429
|
+
export declare const BannerRegularContent: React.FC<React.ComponentProps<typeof Container>>;
|
|
430
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as n from"react";import{styled as o}from"../../../stitches.js";import{Box as s}from"../../box/Box.js";import{useBannerContext as m}from"../BannerContext.js";const a=o(s,{width:"62%",flexGrow:1,variants:{size:{sm:{p:"$4"},md:{p:"$24",pr:"$5"}}}}),e=t=>{const{size:r}=m();return n.createElement(a,{size:r,...t})};e.displayName="BannerRegularContent";export{e as BannerRegularContent};
|
|
2
|
+
//# sourceMappingURL=BannerRegularContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerRegularContent.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularContent.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Box } from '../../box'\nimport { useBannerContext } from '../BannerContext'\n\nconst Container = styled(Box, {\n width: '62%',\n flexGrow: 1,\n variants: {\n size: {\n sm: {\n p: '$4'\n },\n md: {\n p: '$24',\n pr: '$5'\n }\n }\n }\n})\n\nexport const BannerRegularContent: React.FC<\n React.ComponentProps<typeof Container>\n> = (props) => {\n const { size } = useBannerContext()\n\n return <Container size={size} {...props} />\n}\n\nBannerRegularContent.displayName = 'BannerRegularContent'\n"],"names":["Container","styled","Box","BannerRegularContent","props","size","useBannerContext","React"],"mappings":"oKAOA,MAAMA,EAAYC,EAAOC,EAAK,CAC5B,MAAO,MACP,SAAU,EACV,SAAU,CACR,KAAM,CACJ,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,MACH,GAAI,IACN,CACF,CACF,CACF,CAAC,EAEYC,EAERC,GAAU,CACb,KAAM,CAAE,KAAAC,CAAK,EAAIC,IAEjB,OAAOC,EAAA,cAACP,EAAA,CAAU,KAAMK,EAAO,GAAGD,CAAAA,CAAO,CAC3C,EAEAD,EAAqB,YAAc"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"react";import{Close as a}from"@atom-learning/icons";import{overrideStitchesVariantValue as n}from"../../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";import{styled as l}from"../../../stitches.js";import{ActionIcon as p}from"../../action-icon/ActionIcon.js";import{Banner as c}from"../Banner.js";import{Icon as d}from"../../icon/Icon.js";import{useBannerContext as u}from"../BannerContext.js";const f={sm:"md",md:"sm"},h=l(p,{position:"absolute",top:"$3",right:"$3"}),t=({label:r="dismiss",...s})=>{const{size:o}=u(),i=e.useMemo(()=>n(o,m=>f[m]),[o]);return e.createElement(c.Dismiss,{asChild:!0},e.createElement(h,{label:r,size:i,hasTooltip:!1,isRounded:!0,theme:"neutral",appearance:"solid",...s},e.createElement(d,{is:a})))};t.displayName="BannerRegularDismiss";export{t as BannerRegularDismiss};
|
|
2
|
+
//# sourceMappingURL=BannerRegularDismiss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerRegularDismiss.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularDismiss.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Close } from '@atom-learning/icons'\n\nimport { overrideStitchesVariantValue } from '~/utilities/override-stitches-variant-value/overrideStitchesVariantValue'\n\nimport { styled } from '~/stitches'\n\nimport { ActionIcon } from '../../action-icon'\nimport { Banner } from '../Banner'\nimport { Icon } from '../../icon'\nimport { useBannerContext } from '../BannerContext'\n\nconst toActionIconSize = {\n sm: 'md',\n md: 'sm'\n}\n\nconst StyledDismiss = styled(ActionIcon, {\n position: 'absolute',\n top: '$3',\n right: '$3'\n})\n\nexport const BannerRegularDismiss: React.FC<\n React.ComponentProps<typeof ActionIcon>\n> = ({ label = 'dismiss', ...rest }) => {\n const { size } = useBannerContext()\n\n const actionIconSize = React.useMemo(\n () => overrideStitchesVariantValue(size, (s) => toActionIconSize[s]),\n [size]\n )\n\n return (\n <Banner.Dismiss asChild>\n <StyledDismiss\n label={label}\n size={actionIconSize}\n hasTooltip={false}\n isRounded\n theme=\"neutral\"\n appearance=\"solid\"\n {...rest}\n >\n <Icon is={Close} />\n </StyledDismiss>\n </Banner.Dismiss>\n )\n}\n\nBannerRegularDismiss.displayName = 'BannerRegularDismiss'\n"],"names":["toActionIconSize","StyledDismiss","styled","ActionIcon","BannerRegularDismiss","label","rest","size","useBannerContext","actionIconSize","React","overrideStitchesVariantValue","s","Banner","Icon","Close"],"mappings":"ybAYA,MAAMA,EAAmB,CACvB,GAAI,KACJ,GAAI,IACN,EAEMC,EAAgBC,EAAOC,EAAY,CACvC,SAAU,WACV,IAAK,KACL,MAAO,IACT,CAAC,EAEYC,EAET,CAAC,CAAE,MAAAC,EAAQ,aAAcC,CAAK,IAAM,CACtC,KAAM,CAAE,KAAAC,CAAK,EAAIC,EAEXC,EAAAA,EAAiBC,EAAM,QAC3B,IAAMC,EAA6BJ,EAAOK,GAAMZ,EAAiBY,EAAE,EACnE,CAACL,CAAI,CACP,EAEA,OACEG,EAAA,cAACG,EAAO,QAAP,CAAe,QAAO,EAAA,EACrBH,EAAA,cAACT,EAAA,CACC,MAAOI,EACP,KAAMI,EACN,WAAY,GACZ,UAAS,GACT,MAAM,UACN,WAAW,QACV,GAAGH,CAEJI,EAAAA,EAAA,cAACI,EAAA,CAAK,GAAIC,CAAO,CAAA,CACnB,CACF,CAEJ,EAEAX,EAAqB,YAAc"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as t from"react";import{styled as a}from"../../../stitches.js";import{Heading as i}from"../../heading/Heading.js";import{useBannerContext as m}from"../BannerContext.js";const o=a(i,{mb:"$4",variants:{containerSize:{sm:{mr:"$6"},md:{mr:0}}}}),e=r=>{const{size:n}=m();return t.createElement(o,{size:"sm",containerSize:n,...r})};e.displayName="BannerRegularHeading";export{e as BannerRegularHeading};
|
|
2
|
+
//# sourceMappingURL=BannerRegularHeading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerRegularHeading.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularHeading.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Heading } from '../../heading'\nimport { useBannerContext } from '../BannerContext'\n\nconst StyledHeading = styled(Heading, {\n mb: '$4',\n variants: {\n containerSize: {\n sm: {\n mr: '$6'\n },\n md: {\n mr: 0\n }\n }\n }\n})\n\nexport const BannerRegularHeading: React.FC<\n React.ComponentProps<typeof Heading>\n> = (props) => {\n const { size } = useBannerContext()\n\n return <StyledHeading size=\"sm\" containerSize={size} {...props} />\n}\n\nBannerRegularHeading.displayName = 'BannerRegularHeading'\n"],"names":["StyledHeading","styled","Heading","BannerRegularHeading","props","size","useBannerContext","React"],"mappings":"gLAOA,MAAMA,EAAgBC,EAAOC,EAAS,CACpC,GAAI,KACJ,SAAU,CACR,cAAe,CACb,GAAI,CACF,GAAI,IACN,EACA,GAAI,CACF,GAAI,CACN,CACF,CACF,CACF,CAAC,EAEYC,EAERC,GAAU,CACb,KAAM,CAAE,KAAAC,CAAK,EAAIC,IAEjB,OAAOC,EAAA,cAACP,EAAA,CAAc,KAAK,KAAK,cAAeK,EAAO,GAAGD,CAAAA,CAAO,CAClE,EAEAD,EAAqB,YAAc"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"react";import{styled as t}from"../../../stitches.js";import{Box as a}from"../../box/Box.js";import{Image as m}from"../../image/Image.js";import{useBannerContext as n}from"../BannerContext.js";const s=t(a,{position:"relative",overflow:"hidden",width:"38%",variants:{size:{sm:{display:"none"},md:{display:"block"}}}}),l=t(m,{position:"absolute",maxWidth:"auto",width:"100%",height:"100%",objectFit:"cover"}),o=i=>{const{size:r}=n();return e.createElement(s,{size:r},e.createElement(l,{...i}))};o.displayName="BannerRegularImage";export{o as BannerRegularImage};
|
|
2
|
+
//# sourceMappingURL=BannerRegularImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerRegularImage.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularImage.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Box } from '../../box'\nimport { Image } from '../../image'\nimport { useBannerContext } from '../BannerContext'\n\nconst Container = styled(Box, {\n position: 'relative',\n overflow: 'hidden',\n width: '38%',\n variants: {\n size: {\n sm: {\n display: 'none'\n },\n md: {\n display: 'block'\n }\n }\n }\n})\n\nconst StyledImage = styled(Image, {\n position: 'absolute',\n maxWidth: 'auto',\n width: '100%',\n height: '100%',\n objectFit: 'cover'\n})\n\nexport const BannerRegularImage: React.FC<\n React.ComponentProps<typeof Image>\n> = (props) => {\n const { size } = useBannerContext()\n\n return (\n <Container size={size}>\n <StyledImage {...props} />\n </Container>\n )\n}\n\nBannerRegularImage.displayName = 'BannerRegularImage'\n"],"names":["Container","styled","Box","StyledImage","Image","BannerRegularImage","props","size","useBannerContext","React"],"mappings":"iNAQA,MAAMA,EAAYC,EAAOC,EAAK,CAC5B,SAAU,WACV,SAAU,SACV,MAAO,MACP,SAAU,CACR,KAAM,CACJ,GAAI,CACF,QAAS,MACX,EACA,GAAI,CACF,QAAS,OACX,CACF,CACF,CACF,CAAC,EAEKC,EAAcF,EAAOG,EAAO,CAChC,SAAU,WACV,SAAU,OACV,MAAO,OACP,OAAQ,OACR,UAAW,OACb,CAAC,EAEYC,EAERC,GAAU,CACb,KAAM,CAAE,KAAAC,CAAK,EAAIC,IAEjB,OACEC,EAAA,cAACT,EAAA,CAAU,KAAMO,CAAAA,EACfE,EAAA,cAACN,EAAA,CAAa,GAAGG,CAAAA,CAAO,CAC1B,CAEJ,EAEAD,EAAmB,YAAc"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as m from"react";import{styled as n}from"../../../stitches.js";import{Text as s}from"../../text/Text.js";import{useBannerContext as a}from"../BannerContext.js";const i=n(s,{color:"$grey900",variants:{containerSize:{sm:{mb:"$4",mr:"$6"},md:{mb:"$24",mr:0}},emphasis:{highContrast:{color:"$grey100"},midContrast:{},lowContrast:{}}}}),r=t=>{const{emphasis:o,size:e}=a();return m.createElement(i,{size:e,containerSize:e,emphasis:o,...t})};r.displayName="BannerRegularText";export{r as BannerRegularText};
|
|
2
|
+
//# sourceMappingURL=BannerRegularText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerRegularText.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularText.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Text } from '../../text'\nimport { useBannerContext } from '../BannerContext'\n\nconst StyledText = styled(Text, {\n color: '$grey900',\n variants: {\n containerSize: {\n sm: {\n mb: '$4',\n mr: '$6'\n },\n md: {\n mb: '$24',\n mr: 0\n }\n },\n emphasis: {\n highContrast: {\n color: '$grey100'\n },\n midContrast: {},\n lowContrast: {}\n }\n }\n})\n\nexport const BannerRegularText: React.FC<React.ComponentProps<typeof Text>> = (\n props\n) => {\n const { emphasis, size } = useBannerContext()\n\n return (\n <StyledText\n size={size}\n containerSize={size}\n emphasis={emphasis}\n {...props}\n />\n )\n}\n\nBannerRegularText.displayName = 'BannerRegularText'\n"],"names":["StyledText","styled","Text","BannerRegularText","props","emphasis","size","useBannerContext","React"],"mappings":"uKAOA,MAAMA,EAAaC,EAAOC,EAAM,CAC9B,MAAO,WACP,SAAU,CACR,cAAe,CACb,GAAI,CACF,GAAI,KACJ,GAAI,IACN,EACA,GAAI,CACF,GAAI,MACJ,GAAI,CACN,CACF,EACA,SAAU,CACR,aAAc,CACZ,MAAO,UACT,EACA,YAAa,CACb,EAAA,YAAa,CAAA,CACf,CACF,CACF,CAAC,EAEYC,EACXC,GACG,CACH,KAAM,CAAE,SAAAC,EAAU,KAAAC,CAAK,EAAIC,EAAiB,EAE5C,OACEC,EAAA,cAACR,EAAA,CACC,KAAMM,EACN,cAAeA,EACf,SAAUD,EACT,GAAGD,EACN,CAEJ,EAEAD,EAAkB,YAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BannerRegular } from './BannerRegular';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './banner-regular';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{CarouselProvider as m,CarouselContext as u}from"pure-react-carousel";import*as e from"react";import{CarouselArrowNext as
|
|
1
|
+
import{CarouselProvider as m,CarouselContext as u}from"pure-react-carousel";import*as e from"react";import"../../stitches.js";import{CSSWrapper as d}from"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import{CarouselArrowNext as p,CarouselArrowPrevious as n}from"./CarouselArrows.js";import{CarouselPagination as C}from"./CarouselPagination.js";import{CarouselSlide as S}from"./CarouselSlide.js";import{CarouselSlider as f}from"./CarouselSlider.js";const r=({children:o,css:i,slideHeight:t,slideWidth:l,numSlides:a,...s})=>e.createElement(d,{css:i},e.createElement(m,{naturalSlideWidth:l,naturalSlideHeight:t,totalSlides:a,...s},o)),c=()=>e.useContext(u);r.ArrowNext=p,r.ArrowPrevious=n,r.Pagination=C,r.Slide=S,r.Slider=f,r.displayName="Carousel";export{r as Carousel,c as useCarousel};
|
|
2
2
|
//# sourceMappingURL=Carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.js","sources":["../../../src/components/carousel/Carousel.tsx"],"sourcesContent":["import { CarouselContext, CarouselProvider } from 'pure-react-carousel'\nimport * as React from 'react'\n\nimport { CSSWrapper } from '~/utilities'\n\nimport { CarouselArrowNext, CarouselArrowPrevious } from './CarouselArrows'\nimport { CarouselPagination } from './CarouselPagination'\nimport { CarouselSlide } from './CarouselSlide'\nimport { CarouselSlider } from './CarouselSlider'\n\ntype CarouselProps = {\n slideHeight: number\n slideWidth: number\n numSlides: number\n}\n\ntype CarouselSubComponents = {\n ArrowNext: typeof CarouselArrowNext\n ArrowPrevious: typeof CarouselArrowPrevious\n Pagination: typeof CarouselPagination\n Slide: typeof CarouselSlide\n Slider: typeof CarouselSlider\n}\n\nexport const Carousel: React.FC<\n CarouselProps &\n Omit<\n React.ComponentProps<typeof CarouselProvider>,\n 'naturalSlideWidth' | 'naturalSlideHeight' | 'totalSlides'\n > &\n React.ComponentProps<typeof CSSWrapper>\n> &\n CarouselSubComponents = ({\n children,\n css,\n slideHeight,\n slideWidth,\n numSlides,\n ...props\n}) => {\n return (\n <CSSWrapper css={css}>\n <CarouselProvider\n naturalSlideWidth={slideWidth}\n naturalSlideHeight={slideHeight}\n totalSlides={numSlides}\n {...props}\n >\n {children}\n </CarouselProvider>\n </CSSWrapper>\n )\n}\n\n/**\n * Documentation about the hook usage\n * https://github.com/express-labs/pure-react-carousel#hooks-and-usecontext\n */\nexport const useCarousel = () => React.useContext(CarouselContext)\n\nCarousel.ArrowNext = CarouselArrowNext\nCarousel.ArrowPrevious = CarouselArrowPrevious\nCarousel.Pagination = CarouselPagination\nCarousel.Slide = CarouselSlide\nCarousel.Slider = CarouselSlider\n\nCarousel.displayName = 'Carousel'\n"],"names":["Carousel","children","css","slideHeight","slideWidth","numSlides","props","React","CSSWrapper","CarouselProvider","useCarousel","CarouselContext","CarouselArrowNext","CarouselArrowPrevious","CarouselPagination","CarouselSlide","CarouselSlider"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Carousel.js","sources":["../../../src/components/carousel/Carousel.tsx"],"sourcesContent":["import { CarouselContext, CarouselProvider } from 'pure-react-carousel'\nimport * as React from 'react'\n\nimport { CSSWrapper } from '~/utilities'\n\nimport { CarouselArrowNext, CarouselArrowPrevious } from './CarouselArrows'\nimport { CarouselPagination } from './CarouselPagination'\nimport { CarouselSlide } from './CarouselSlide'\nimport { CarouselSlider } from './CarouselSlider'\n\ntype CarouselProps = {\n slideHeight: number\n slideWidth: number\n numSlides: number\n}\n\ntype CarouselSubComponents = {\n ArrowNext: typeof CarouselArrowNext\n ArrowPrevious: typeof CarouselArrowPrevious\n Pagination: typeof CarouselPagination\n Slide: typeof CarouselSlide\n Slider: typeof CarouselSlider\n}\n\nexport const Carousel: React.FC<\n CarouselProps &\n Omit<\n React.ComponentProps<typeof CarouselProvider>,\n 'naturalSlideWidth' | 'naturalSlideHeight' | 'totalSlides'\n > &\n React.ComponentProps<typeof CSSWrapper>\n> &\n CarouselSubComponents = ({\n children,\n css,\n slideHeight,\n slideWidth,\n numSlides,\n ...props\n}) => {\n return (\n <CSSWrapper css={css}>\n <CarouselProvider\n naturalSlideWidth={slideWidth}\n naturalSlideHeight={slideHeight}\n totalSlides={numSlides}\n {...props}\n >\n {children}\n </CarouselProvider>\n </CSSWrapper>\n )\n}\n\n/**\n * Documentation about the hook usage\n * https://github.com/express-labs/pure-react-carousel#hooks-and-usecontext\n */\nexport const useCarousel = () => React.useContext(CarouselContext)\n\nCarousel.ArrowNext = CarouselArrowNext\nCarousel.ArrowPrevious = CarouselArrowPrevious\nCarousel.Pagination = CarouselPagination\nCarousel.Slide = CarouselSlide\nCarousel.Slider = CarouselSlider\n\nCarousel.displayName = 'Carousel'\n"],"names":["Carousel","children","css","slideHeight","slideWidth","numSlides","props","React","CSSWrapper","CarouselProvider","useCarousel","CarouselContext","CarouselArrowNext","CarouselArrowPrevious","CarouselPagination","CarouselSlide","CarouselSlider"],"mappings":"kgBAwBa,MAAAA,EAQa,CAAC,CACzB,SAAAC,EACA,IAAAC,EACA,YAAAC,EACA,WAAAC,EACA,UAAAC,KACGC,CACL,IAEIC,EAAA,cAACC,EAAA,CAAW,IAAKN,CAAAA,EACfK,EAAA,cAACE,EAAA,CACC,kBAAmBL,EACnB,mBAAoBD,EACpB,YAAaE,EACZ,GAAGC,CAAAA,EAEHL,CACH,CACF,EAQSS,EAAc,IAAMH,EAAM,WAAWI,CAAe,EAEjEX,EAAS,UAAYY,EACrBZ,EAAS,cAAgBa,EACzBb,EAAS,WAAac,EACtBd,EAAS,MAAQe,EACjBf,EAAS,OAASgB,EAElBhB,EAAS,YAAc"}
|