@atom-learning/components 2.62.0 → 2.63.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 +2 -4
- package/dist/components/chip/Chip.d.ts +1 -3
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +447 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +447 -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/date-input/DateInput.js +1 -1
- package/dist/components/date-input/DateInput.js.map +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/tile/Tile.d.ts +1 -2
- package/dist/components/tile/Tile.js +1 -1
- package/dist/components/tile/Tile.js.map +1 -1
- package/dist/components/tile-interactive/TileInteractive.d.ts +2 -3
- package/dist/components/tile-interactive/TileInteractive.js +1 -1
- package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +2 -3
- package/dist/components/tile-toggle-group/TileToggleGroupItem.js +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupItem.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/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
# [2.
|
|
1
|
+
# [2.63.0](https://github.com/Atom-Learning/components/compare/v2.62.0...v2.63.0) (2023-07-26)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* updated docs, addressed review comments ([9e9a2b4](https://github.com/Atom-Learning/components/commit/9e9a2b46a847b316d5f07056d458c0ff43f4fd32))
|
|
8
|
-
* updated snapshot ([383271b](https://github.com/Atom-Learning/components/commit/383271bc00745ba77893fa1e043e500fc5e3ad24))
|
|
6
|
+
* remove uses of asWorkaround in favour of stitches withConfig ([4fdaeb0](https://github.com/Atom-Learning/components/commit/4fdaeb034d97e6f88e2150453fe38a9314810114))
|
|
9
7
|
|
|
10
8
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
11
9
|
|
|
@@ -1564,9 +1564,7 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
1564
1564
|
}> | undefined;
|
|
1565
1565
|
}>;
|
|
1566
1566
|
export declare const ChipRootProvider: React.FC<TChipRootProviderProps>;
|
|
1567
|
-
export declare type TChipRootProps = TChipRootProviderProps
|
|
1568
|
-
asWorkaround?: React.ElementType;
|
|
1569
|
-
};
|
|
1567
|
+
export declare type TChipRootProps = TChipRootProviderProps;
|
|
1570
1568
|
declare const ChipRoot: React.ForwardRefExoticComponent<TChipRootProps>;
|
|
1571
1569
|
declare type TChipType = typeof ChipRoot & {
|
|
1572
1570
|
Content: typeof ChipContent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import{Box as
|
|
1
|
+
import*as e from"react";import{Box as C}from"../box/Box.js";import{Flex as g}from"../flex/Flex.js";import{Icon as p}from"../icon/Icon.js";import{getTextVariant as m}from"../text/Text.js";import{styled as a}from"../../stitches.js";import{overrideStitchesVariantValue as z}from"../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";const d={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},h=a("span",{display:"inline-flex",alignItems:"center",px:"$1",flexGrow:1,...d,"& > *:not(:last-child)":{mr:"$1"}}),u={sm:"sm",md:"sm",lg:"md"},y=a(p,{flexShrink:0}),l=({...t})=>{const r=e.useContext(c),{size:o}=r,s=e.useMemo(()=>z(o,i=>u[i]),[o]);return e.createElement(y,{...t,size:s})},E=({children:t,...r})=>{const o=e.Children.toArray(t),s=o.length<=1;return e.createElement(h,{...r},o.map((i,$)=>!s&&typeof i=="string"?e.createElement(C,{as:"span",css:d,key:i},i):e.isValidElement(i)&&i.type===p?e.createElement(l,{key:`icon-${$}`,...i.props}):i))},f=a(g,{px:"$2",border:"1px solid",borderRadius:"$0",alignItems:"center",fontFamily:"$body",maxWidth:"100%",borderColor:"$primary",color:"$primaryMid",bg:"$primaryLight","&[data-disabled]":{opacity:"0.3",pointerEvents:"none"},variants:{size:{sm:{height:"$2",...m({size:"sm"})},md:{height:"$3",...m({size:"sm"})},lg:{height:"$4",...m({size:"md"})}}}}),c=e.createContext({}),x=({size:t,children:r})=>{const o=e.useMemo(()=>({size:t}),[t]);return e.createElement(c.Provider,{value:o},r)},v=e.forwardRef(({size:t="md",...r},o)=>e.createElement(x,{size:t},e.createElement(f,{ref:o,size:t,...r}))),n=v;n.Content=E,n.Icon=l,n.displayName="Chip";export{n as Chip,l as ChipIcon,c as ChipRootContext,x as ChipRootProvider,h as StyledChipContent,y as StyledChipIcon,f as StyledRoot};
|
|
2
2
|
//# sourceMappingURL=Chip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.js","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Box } from '~/components/box'\nimport { Flex } from '~/components/flex'\nimport { Icon } from '~/components/icon'\nimport { getTextVariant } from '~/components/text'\nimport { styled } from '~/stitches'\nimport { overrideStitchesVariantValue } from '~/utilities/override-stitches-variant-value/overrideStitchesVariantValue'\n\nconst overflowElipsis = {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n}\nexport const StyledChipContent = styled('span', {\n display: 'inline-flex',\n alignItems: 'center',\n px: '$1',\n flexGrow: 1,\n ...overflowElipsis,\n '& > *:not(:last-child)': {\n mr: '$1'\n }\n})\n\nconst toIconSize = { sm: 'sm', md: 'sm', lg: 'md' }\nexport const StyledChipIcon = styled(Icon, {\n flexShrink: 0\n})\nexport const ChipIcon: typeof Icon = ({ ...props }) => {\n const rootContext = React.useContext(ChipRootContext)\n const { size } = rootContext\n const iconSize = React.useMemo(\n () => overrideStitchesVariantValue(size, (s) => toIconSize[s]),\n [size]\n )\n return <StyledChipIcon {...props} size={iconSize} />\n}\n\nconst ChipContent = ({ children, ...rest }) => {\n const childrenArray = React.Children.toArray(children)\n const isSingleChild = childrenArray.length <= 1\n return (\n <StyledChipContent {...rest}>\n {\n childrenArray.map((child, index) => {\n if (!isSingleChild && typeof child === 'string')\n return (\n <Box as=\"span\" css={overflowElipsis} key={child}>\n {child}\n </Box>\n )\n if (React.isValidElement(child) && child.type === Icon) {\n return <ChipIcon key={`icon-${index}`} {...child.props} />\n }\n return child\n }) as React.ReactElement[]\n }\n </StyledChipContent>\n )\n}\n\nexport const StyledRoot = styled(Flex, {\n px: '$2',\n border: '1px solid',\n borderRadius: '$0',\n alignItems: 'center',\n fontFamily: '$body',\n maxWidth: '100%',\n borderColor: '$primary',\n color: '$primaryMid',\n bg: '$primaryLight',\n '&[data-disabled]': {\n opacity: '0.3',\n pointerEvents: 'none'\n },\n variants: {\n size: {\n sm: {\n height: '$2',\n ...getTextVariant({ size: 'sm' })\n },\n md: {\n height: '$3',\n ...getTextVariant({ size: 'sm' })\n },\n lg: {\n height: '$4',\n ...getTextVariant({ size: 'md' })\n }\n }\n }\n})\n\nexport type TChipRootContext = React.ComponentProps<typeof StyledRoot>\nexport type TChipRootProviderProps = TChipRootContext\n\nexport const ChipRootContext = React.createContext<TChipRootContext>({})\n\nexport const ChipRootProvider: React.FC<TChipRootProviderProps> = ({\n size,\n children\n}) => {\n const value = React.useMemo<TChipRootContext>(() => ({ size }), [size])\n return (\n <ChipRootContext.Provider value={value}>\n {children}\n </ChipRootContext.Provider>\n )\n}\n\nexport type TChipRootProps = TChipRootProviderProps
|
|
1
|
+
{"version":3,"file":"Chip.js","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Box } from '~/components/box'\nimport { Flex } from '~/components/flex'\nimport { Icon } from '~/components/icon'\nimport { getTextVariant } from '~/components/text'\nimport { styled } from '~/stitches'\nimport { overrideStitchesVariantValue } from '~/utilities/override-stitches-variant-value/overrideStitchesVariantValue'\n\nconst overflowElipsis = {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n}\nexport const StyledChipContent = styled('span', {\n display: 'inline-flex',\n alignItems: 'center',\n px: '$1',\n flexGrow: 1,\n ...overflowElipsis,\n '& > *:not(:last-child)': {\n mr: '$1'\n }\n})\n\nconst toIconSize = { sm: 'sm', md: 'sm', lg: 'md' }\nexport const StyledChipIcon = styled(Icon, {\n flexShrink: 0\n})\nexport const ChipIcon: typeof Icon = ({ ...props }) => {\n const rootContext = React.useContext(ChipRootContext)\n const { size } = rootContext\n const iconSize = React.useMemo(\n () => overrideStitchesVariantValue(size, (s) => toIconSize[s]),\n [size]\n )\n return <StyledChipIcon {...props} size={iconSize} />\n}\n\nconst ChipContent = ({ children, ...rest }) => {\n const childrenArray = React.Children.toArray(children)\n const isSingleChild = childrenArray.length <= 1\n return (\n <StyledChipContent {...rest}>\n {\n childrenArray.map((child, index) => {\n if (!isSingleChild && typeof child === 'string')\n return (\n <Box as=\"span\" css={overflowElipsis} key={child}>\n {child}\n </Box>\n )\n if (React.isValidElement(child) && child.type === Icon) {\n return <ChipIcon key={`icon-${index}`} {...child.props} />\n }\n return child\n }) as React.ReactElement[]\n }\n </StyledChipContent>\n )\n}\n\nexport const StyledRoot = styled(Flex, {\n px: '$2',\n border: '1px solid',\n borderRadius: '$0',\n alignItems: 'center',\n fontFamily: '$body',\n maxWidth: '100%',\n borderColor: '$primary',\n color: '$primaryMid',\n bg: '$primaryLight',\n '&[data-disabled]': {\n opacity: '0.3',\n pointerEvents: 'none'\n },\n variants: {\n size: {\n sm: {\n height: '$2',\n ...getTextVariant({ size: 'sm' })\n },\n md: {\n height: '$3',\n ...getTextVariant({ size: 'sm' })\n },\n lg: {\n height: '$4',\n ...getTextVariant({ size: 'md' })\n }\n }\n }\n})\n\nexport type TChipRootContext = React.ComponentProps<typeof StyledRoot>\nexport type TChipRootProviderProps = TChipRootContext\n\nexport const ChipRootContext = React.createContext<TChipRootContext>({})\n\nexport const ChipRootProvider: React.FC<TChipRootProviderProps> = ({\n size,\n children\n}) => {\n const value = React.useMemo<TChipRootContext>(() => ({ size }), [size])\n return (\n <ChipRootContext.Provider value={value}>\n {children}\n </ChipRootContext.Provider>\n )\n}\n\nexport type TChipRootProps = TChipRootProviderProps\n\nconst ChipRoot: React.ForwardRefExoticComponent<TChipRootProps> =\n React.forwardRef(({ size = 'md', ...rest }, ref) => {\n return (\n <ChipRootProvider size={size}>\n <StyledRoot ref={ref} size={size} {...rest} />\n </ChipRootProvider>\n )\n })\n\ntype TChipType = typeof ChipRoot & {\n Content: typeof ChipContent\n Icon: typeof ChipIcon\n}\n\nexport const Chip = ChipRoot as TChipType\nChip.Content = ChipContent\nChip.Icon = ChipIcon\nChip.displayName = 'Chip'\n"],"names":["overflowElipsis","StyledChipContent","styled","toIconSize","StyledChipIcon","Icon","ChipIcon","props","rootContext","React","ChipRootContext","size","iconSize","overrideStitchesVariantValue","s","ChipContent","children","rest","childrenArray","isSingleChild","child","index","Box","StyledRoot","Flex","getTextVariant","ChipRootProvider","value","ChipRoot","ref","Chip"],"mappings":"qWASA,MAAMA,EAAkB,CACtB,SAAU,SACV,aAAc,WACd,WAAY,QACd,EACaC,EAAoBC,EAAO,OAAQ,CAC9C,QAAS,cACT,WAAY,SACZ,GAAI,KACJ,SAAU,EACV,GAAGF,EACH,yBAA0B,CACxB,GAAI,IACN,CACF,CAAC,EAEKG,EAAa,CAAE,GAAI,KAAM,GAAI,KAAM,GAAI,IAAK,EACrCC,EAAiBF,EAAOG,EAAM,CACzC,WAAY,CACd,CAAC,EACYC,EAAwB,CAAC,IAAKC,CAAM,IAAM,CACrD,MAAMC,EAAcC,EAAM,WAAWC,CAAe,EAC9C,CAAE,KAAAC,CAAK,EAAIH,EACXI,EAAWH,EAAM,QACrB,IAAMI,EAA6BF,EAAOG,GAAMX,EAAWW,EAAE,EAC7D,CAACH,CAAI,CACP,EACA,OAAOF,EAAA,cAACL,EAAA,CAAgB,GAAGG,EAAO,KAAMK,CAAU,CAAA,CACpD,EAEMG,EAAc,CAAC,CAAE,SAAAC,KAAaC,CAAK,IAAM,CAC7C,MAAMC,EAAgBT,EAAM,SAAS,QAAQO,CAAQ,EAC/CG,EAAgBD,EAAc,QAAU,EAC9C,OACET,EAAA,cAACR,GAAmB,GAAGgB,CAAAA,EAEnBC,EAAc,IAAI,CAACE,EAAOC,IACpB,CAACF,GAAiB,OAAOC,GAAU,SAEnCX,EAAA,cAACa,EAAA,CAAI,GAAG,OAAO,IAAKtB,EAAiB,IAAKoB,GACvCA,CACH,EAEAX,EAAM,eAAeW,CAAK,GAAKA,EAAM,OAASf,EACzCI,EAAA,cAACH,EAAA,CAAS,IAAK,QAAQe,IAAU,GAAGD,EAAM,MAAO,EAEnDA,CACR,CAEL,CAEJ,EAEaG,EAAarB,EAAOsB,EAAM,CACrC,GAAI,KACJ,OAAQ,YACR,aAAc,KACd,WAAY,SACZ,WAAY,QACZ,SAAU,OACV,YAAa,WACb,MAAO,cACP,GAAI,gBACJ,mBAAoB,CAClB,QAAS,MACT,cAAe,MACjB,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CACF,OAAQ,KACR,GAAGC,EAAe,CAAE,KAAM,IAAK,CAAC,CAClC,EACA,GAAI,CACF,OAAQ,KACR,GAAGA,EAAe,CAAE,KAAM,IAAK,CAAC,CAClC,EACA,GAAI,CACF,OAAQ,KACR,GAAGA,EAAe,CAAE,KAAM,IAAK,CAAC,CAClC,CACF,CACF,CACF,CAAC,EAKYf,EAAkBD,EAAM,cAAgC,CAAA,CAAE,EAE1DiB,EAAqD,CAAC,CACjE,KAAAf,EACA,SAAAK,CACF,IAAM,CACJ,MAAMW,EAAQlB,EAAM,QAA0B,KAAO,CAAE,KAAAE,CAAK,GAAI,CAACA,CAAI,CAAC,EACtE,OACEF,EAAA,cAACC,EAAgB,SAAhB,CAAyB,MAAOiB,CAC9BX,EAAAA,CACH,CAEJ,EAIMY,EACJnB,EAAM,WAAW,CAAC,CAAE,KAAAE,EAAO,QAASM,CAAK,EAAGY,IAExCpB,EAAA,cAACiB,EAAiB,CAAA,KAAMf,GACtBF,EAAA,cAACc,EAAW,CAAA,IAAKM,EAAK,KAAMlB,EAAO,GAAGM,CAAM,CAAA,CAC9C,CAEH,EAOUa,EAAOF,EACpBE,EAAK,QAAUf,EACfe,EAAK,KAAOxB,EACZwB,EAAK,YAAc"}
|
|
@@ -1,6 +1,452 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DismissibleGroup } from '../../components/dismissible-group';
|
|
3
|
-
declare const StyledChipDismissibleGroupItem: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<
|
|
3
|
+
declare const StyledChipDismissibleGroupItem: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<Omit<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, "css"> & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
6
|
+
sm: string;
|
|
7
|
+
md: string;
|
|
8
|
+
lg: string;
|
|
9
|
+
xl: string;
|
|
10
|
+
reducedMotion: string;
|
|
11
|
+
allowMotion: string;
|
|
12
|
+
hover: string;
|
|
13
|
+
}> & {
|
|
14
|
+
css?: import("@stitches/react/types/css-util").CSS<{
|
|
15
|
+
sm: string;
|
|
16
|
+
md: string;
|
|
17
|
+
lg: string;
|
|
18
|
+
xl: string;
|
|
19
|
+
reducedMotion: string;
|
|
20
|
+
allowMotion: string;
|
|
21
|
+
hover: string;
|
|
22
|
+
}, {
|
|
23
|
+
colors: {
|
|
24
|
+
textForeground: any;
|
|
25
|
+
textSubtle: any;
|
|
26
|
+
textPlaceholder: any;
|
|
27
|
+
background: any;
|
|
28
|
+
backgroundAccent: any;
|
|
29
|
+
grey100: any;
|
|
30
|
+
grey200: any;
|
|
31
|
+
grey300: any;
|
|
32
|
+
grey400: any;
|
|
33
|
+
grey500: any;
|
|
34
|
+
grey600: any;
|
|
35
|
+
grey700: any;
|
|
36
|
+
grey800: any;
|
|
37
|
+
grey900: any;
|
|
38
|
+
grey1000: any;
|
|
39
|
+
grey1100: any;
|
|
40
|
+
grey1200: any;
|
|
41
|
+
blue100: any;
|
|
42
|
+
blue200: any;
|
|
43
|
+
blue300: any;
|
|
44
|
+
blue400: any;
|
|
45
|
+
blue500: any;
|
|
46
|
+
blue600: any;
|
|
47
|
+
blue700: any;
|
|
48
|
+
blue800: any;
|
|
49
|
+
blue900: any;
|
|
50
|
+
blue1000: any;
|
|
51
|
+
blue1100: any;
|
|
52
|
+
blue1200: any;
|
|
53
|
+
purple100: any;
|
|
54
|
+
purple200: any;
|
|
55
|
+
purple300: any;
|
|
56
|
+
purple400: any;
|
|
57
|
+
purple500: any;
|
|
58
|
+
purple600: any;
|
|
59
|
+
purple700: any;
|
|
60
|
+
purple800: any;
|
|
61
|
+
purple900: any;
|
|
62
|
+
purple1000: any;
|
|
63
|
+
purple1100: any;
|
|
64
|
+
purple1200: any;
|
|
65
|
+
tonal50: any;
|
|
66
|
+
tonal100: any;
|
|
67
|
+
tonal200: any;
|
|
68
|
+
tonal300: any;
|
|
69
|
+
tonal400: any;
|
|
70
|
+
tonal500: any;
|
|
71
|
+
tonal600: any;
|
|
72
|
+
alpha100: any;
|
|
73
|
+
alpha150: any;
|
|
74
|
+
alpha200: any;
|
|
75
|
+
alpha250: any;
|
|
76
|
+
alpha600: any;
|
|
77
|
+
primaryLight: any;
|
|
78
|
+
primary: any;
|
|
79
|
+
primaryMid: any;
|
|
80
|
+
primaryDark: any;
|
|
81
|
+
secondary: any;
|
|
82
|
+
brandRed: any;
|
|
83
|
+
brandRedAccent: any;
|
|
84
|
+
brandGreen: any;
|
|
85
|
+
brandGreenAccent: any;
|
|
86
|
+
brandPurple: any;
|
|
87
|
+
brandPurpleAccent: any;
|
|
88
|
+
brandYellow: any;
|
|
89
|
+
brandYellowAccent: any;
|
|
90
|
+
successLight: any;
|
|
91
|
+
success: any;
|
|
92
|
+
successMid: any;
|
|
93
|
+
successDark: any;
|
|
94
|
+
dangerLight: any;
|
|
95
|
+
danger: any;
|
|
96
|
+
dangerMid: any;
|
|
97
|
+
dangerDark: any;
|
|
98
|
+
warningLight: any;
|
|
99
|
+
warning: any;
|
|
100
|
+
warningMid: any;
|
|
101
|
+
warningDark: any;
|
|
102
|
+
warningText: any;
|
|
103
|
+
subjectEnglish: any;
|
|
104
|
+
subjectMaths: any;
|
|
105
|
+
subjectScience: any;
|
|
106
|
+
subjectVerbalReasoning: any;
|
|
107
|
+
subjectNonVerbalReasoning: any;
|
|
108
|
+
subjectCreativeWriting: any;
|
|
109
|
+
subjectExamSkills: any;
|
|
110
|
+
};
|
|
111
|
+
space: {
|
|
112
|
+
"0": any;
|
|
113
|
+
"1": any;
|
|
114
|
+
"2": any;
|
|
115
|
+
"3": any;
|
|
116
|
+
"4": any;
|
|
117
|
+
"5": any;
|
|
118
|
+
"6": any;
|
|
119
|
+
"7": any;
|
|
120
|
+
"8": any;
|
|
121
|
+
"9": any;
|
|
122
|
+
"24": any;
|
|
123
|
+
};
|
|
124
|
+
fontSizes: {
|
|
125
|
+
xs: any;
|
|
126
|
+
sm: any;
|
|
127
|
+
md: any;
|
|
128
|
+
lg: any;
|
|
129
|
+
xl: any;
|
|
130
|
+
"2xl": any;
|
|
131
|
+
"3xl": any;
|
|
132
|
+
"4xl": any;
|
|
133
|
+
};
|
|
134
|
+
fonts: {
|
|
135
|
+
sans: any;
|
|
136
|
+
mono: any;
|
|
137
|
+
display: any;
|
|
138
|
+
body: any;
|
|
139
|
+
};
|
|
140
|
+
sizes: {
|
|
141
|
+
"0": any;
|
|
142
|
+
"1": any;
|
|
143
|
+
"2": any;
|
|
144
|
+
"3": any;
|
|
145
|
+
"4": any;
|
|
146
|
+
"5": any;
|
|
147
|
+
"6": any;
|
|
148
|
+
"7": any;
|
|
149
|
+
"8": any;
|
|
150
|
+
};
|
|
151
|
+
radii: {
|
|
152
|
+
"0": any;
|
|
153
|
+
"1": any;
|
|
154
|
+
"2": any;
|
|
155
|
+
"3": any;
|
|
156
|
+
round: any;
|
|
157
|
+
};
|
|
158
|
+
shadows: {
|
|
159
|
+
"0": any;
|
|
160
|
+
"1": any;
|
|
161
|
+
"2": any;
|
|
162
|
+
"3": any;
|
|
163
|
+
};
|
|
164
|
+
ratios: {
|
|
165
|
+
"16-9": any;
|
|
166
|
+
"3-2": any;
|
|
167
|
+
"4-3": any;
|
|
168
|
+
"1-1": any;
|
|
169
|
+
"3-4": any;
|
|
170
|
+
};
|
|
171
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
172
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
173
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
174
|
+
};
|
|
175
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
176
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
177
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
178
|
+
};
|
|
179
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
180
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
181
|
+
};
|
|
182
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
183
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
184
|
+
};
|
|
185
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
186
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
187
|
+
};
|
|
188
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
189
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
190
|
+
};
|
|
191
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
192
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
193
|
+
};
|
|
194
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
195
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
196
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
197
|
+
};
|
|
198
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
199
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
200
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
201
|
+
};
|
|
202
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
203
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
204
|
+
};
|
|
205
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
206
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
207
|
+
};
|
|
208
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
209
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
210
|
+
};
|
|
211
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
212
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
213
|
+
};
|
|
214
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
215
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
216
|
+
};
|
|
217
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
218
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
219
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
220
|
+
};
|
|
221
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
222
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
223
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
224
|
+
};
|
|
225
|
+
}> | undefined;
|
|
226
|
+
}, "size" | "css"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
227
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
sm: string;
|
|
230
|
+
md: string;
|
|
231
|
+
lg: string;
|
|
232
|
+
xl: string;
|
|
233
|
+
reducedMotion: string;
|
|
234
|
+
allowMotion: string;
|
|
235
|
+
hover: string;
|
|
236
|
+
}> & {
|
|
237
|
+
css?: import("@stitches/react/types/css-util").CSS<{
|
|
238
|
+
sm: string;
|
|
239
|
+
md: string;
|
|
240
|
+
lg: string;
|
|
241
|
+
xl: string;
|
|
242
|
+
reducedMotion: string;
|
|
243
|
+
allowMotion: string;
|
|
244
|
+
hover: string;
|
|
245
|
+
}, {
|
|
246
|
+
colors: {
|
|
247
|
+
textForeground: any;
|
|
248
|
+
textSubtle: any;
|
|
249
|
+
textPlaceholder: any;
|
|
250
|
+
background: any;
|
|
251
|
+
backgroundAccent: any;
|
|
252
|
+
grey100: any;
|
|
253
|
+
grey200: any;
|
|
254
|
+
grey300: any;
|
|
255
|
+
grey400: any;
|
|
256
|
+
grey500: any;
|
|
257
|
+
grey600: any;
|
|
258
|
+
grey700: any;
|
|
259
|
+
grey800: any;
|
|
260
|
+
grey900: any;
|
|
261
|
+
grey1000: any;
|
|
262
|
+
grey1100: any;
|
|
263
|
+
grey1200: any;
|
|
264
|
+
blue100: any;
|
|
265
|
+
blue200: any;
|
|
266
|
+
blue300: any;
|
|
267
|
+
blue400: any;
|
|
268
|
+
blue500: any;
|
|
269
|
+
blue600: any;
|
|
270
|
+
blue700: any;
|
|
271
|
+
blue800: any;
|
|
272
|
+
blue900: any;
|
|
273
|
+
blue1000: any;
|
|
274
|
+
blue1100: any;
|
|
275
|
+
blue1200: any;
|
|
276
|
+
purple100: any;
|
|
277
|
+
purple200: any;
|
|
278
|
+
purple300: any;
|
|
279
|
+
purple400: any;
|
|
280
|
+
purple500: any;
|
|
281
|
+
purple600: any;
|
|
282
|
+
purple700: any;
|
|
283
|
+
purple800: any;
|
|
284
|
+
purple900: any;
|
|
285
|
+
purple1000: any;
|
|
286
|
+
purple1100: any;
|
|
287
|
+
purple1200: any;
|
|
288
|
+
tonal50: any;
|
|
289
|
+
tonal100: any;
|
|
290
|
+
tonal200: any;
|
|
291
|
+
tonal300: any;
|
|
292
|
+
tonal400: any;
|
|
293
|
+
tonal500: any;
|
|
294
|
+
tonal600: any;
|
|
295
|
+
alpha100: any;
|
|
296
|
+
alpha150: any;
|
|
297
|
+
alpha200: any;
|
|
298
|
+
alpha250: any;
|
|
299
|
+
alpha600: any;
|
|
300
|
+
primaryLight: any;
|
|
301
|
+
primary: any;
|
|
302
|
+
primaryMid: any;
|
|
303
|
+
primaryDark: any;
|
|
304
|
+
secondary: any;
|
|
305
|
+
brandRed: any;
|
|
306
|
+
brandRedAccent: any;
|
|
307
|
+
brandGreen: any;
|
|
308
|
+
brandGreenAccent: any;
|
|
309
|
+
brandPurple: any;
|
|
310
|
+
brandPurpleAccent: any;
|
|
311
|
+
brandYellow: any;
|
|
312
|
+
brandYellowAccent: any;
|
|
313
|
+
successLight: any;
|
|
314
|
+
success: any;
|
|
315
|
+
successMid: any;
|
|
316
|
+
successDark: any;
|
|
317
|
+
dangerLight: any;
|
|
318
|
+
danger: any;
|
|
319
|
+
dangerMid: any;
|
|
320
|
+
dangerDark: any;
|
|
321
|
+
warningLight: any;
|
|
322
|
+
warning: any;
|
|
323
|
+
warningMid: any;
|
|
324
|
+
warningDark: any;
|
|
325
|
+
warningText: any;
|
|
326
|
+
subjectEnglish: any;
|
|
327
|
+
subjectMaths: any;
|
|
328
|
+
subjectScience: any;
|
|
329
|
+
subjectVerbalReasoning: any;
|
|
330
|
+
subjectNonVerbalReasoning: any;
|
|
331
|
+
subjectCreativeWriting: any;
|
|
332
|
+
subjectExamSkills: any;
|
|
333
|
+
};
|
|
334
|
+
space: {
|
|
335
|
+
"0": any;
|
|
336
|
+
"1": any;
|
|
337
|
+
"2": any;
|
|
338
|
+
"3": any;
|
|
339
|
+
"4": any;
|
|
340
|
+
"5": any;
|
|
341
|
+
"6": any;
|
|
342
|
+
"7": any;
|
|
343
|
+
"8": any;
|
|
344
|
+
"9": any;
|
|
345
|
+
"24": any;
|
|
346
|
+
};
|
|
347
|
+
fontSizes: {
|
|
348
|
+
xs: any;
|
|
349
|
+
sm: any;
|
|
350
|
+
md: any;
|
|
351
|
+
lg: any;
|
|
352
|
+
xl: any;
|
|
353
|
+
"2xl": any;
|
|
354
|
+
"3xl": any;
|
|
355
|
+
"4xl": any;
|
|
356
|
+
};
|
|
357
|
+
fonts: {
|
|
358
|
+
sans: any;
|
|
359
|
+
mono: any;
|
|
360
|
+
display: any;
|
|
361
|
+
body: any;
|
|
362
|
+
};
|
|
363
|
+
sizes: {
|
|
364
|
+
"0": any;
|
|
365
|
+
"1": any;
|
|
366
|
+
"2": any;
|
|
367
|
+
"3": any;
|
|
368
|
+
"4": any;
|
|
369
|
+
"5": any;
|
|
370
|
+
"6": any;
|
|
371
|
+
"7": any;
|
|
372
|
+
"8": any;
|
|
373
|
+
};
|
|
374
|
+
radii: {
|
|
375
|
+
"0": any;
|
|
376
|
+
"1": any;
|
|
377
|
+
"2": any;
|
|
378
|
+
"3": any;
|
|
379
|
+
round: any;
|
|
380
|
+
};
|
|
381
|
+
shadows: {
|
|
382
|
+
"0": any;
|
|
383
|
+
"1": any;
|
|
384
|
+
"2": any;
|
|
385
|
+
"3": any;
|
|
386
|
+
};
|
|
387
|
+
ratios: {
|
|
388
|
+
"16-9": any;
|
|
389
|
+
"3-2": any;
|
|
390
|
+
"4-3": any;
|
|
391
|
+
"1-1": any;
|
|
392
|
+
"3-4": any;
|
|
393
|
+
};
|
|
394
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
395
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
396
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
397
|
+
};
|
|
398
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
399
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
400
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
401
|
+
};
|
|
402
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
403
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
404
|
+
};
|
|
405
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
406
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
407
|
+
};
|
|
408
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
409
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
410
|
+
};
|
|
411
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
412
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
413
|
+
};
|
|
414
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
415
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
416
|
+
};
|
|
417
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
418
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
419
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
420
|
+
};
|
|
421
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
422
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
423
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
424
|
+
};
|
|
425
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
426
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
427
|
+
};
|
|
428
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
429
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
430
|
+
};
|
|
431
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
432
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
433
|
+
};
|
|
434
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
435
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
436
|
+
};
|
|
437
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
438
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
439
|
+
};
|
|
440
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
441
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
442
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
443
|
+
};
|
|
444
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
445
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
446
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
447
|
+
};
|
|
448
|
+
}> | undefined;
|
|
449
|
+
}> & {
|
|
4
450
|
Content: ({ children, ...rest }: {
|
|
5
451
|
[x: string]: any;
|
|
6
452
|
children: any;
|