@atlaskit/primitives 19.0.1 → 20.0.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 +54 -0
- package/anchor/package.json +1 -8
- package/bleed/package.json +1 -8
- package/box/package.json +1 -8
- package/compiled/anchor/package.json +1 -8
- package/compiled/bleed/package.json +1 -8
- package/compiled/box/package.json +1 -8
- package/compiled/components/types/package.json +1 -8
- package/compiled/flex/package.json +1 -8
- package/compiled/focusable/package.json +1 -8
- package/compiled/grid/package.json +1 -8
- package/compiled/hide/package.json +1 -8
- package/compiled/inline/package.json +1 -8
- package/compiled/media-helper/package.json +1 -8
- package/compiled/metric-text/package.json +1 -8
- package/compiled/package.json +1 -8
- package/compiled/pressable/package.json +1 -8
- package/compiled/show/package.json +1 -8
- package/compiled/stack/package.json +1 -8
- package/compiled/surface-provider/package.json +1 -8
- package/compiled/text/package.json +1 -8
- package/compiled/types/package.json +1 -8
- package/compiled/use-media-query/package.json +1 -8
- package/compiled/utils/types/package.json +1 -8
- package/components/flex/package.json +1 -8
- package/constants/package.json +1 -8
- package/constellation/pressable/examples.mdx +15 -9
- package/dist/cjs/compiled/components/anchor.js +1 -1
- package/dist/cjs/compiled/components/box.compiled.css +1 -1
- package/dist/cjs/compiled/components/box.js +1 -1
- package/dist/cjs/compiled/components/pressable.js +1 -1
- package/dist/cjs/compiled/components/text.js +2 -0
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/box.js +2 -0
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/responsive/constants.js +2 -0
- package/dist/cjs/utils/has-text-ancestor-context.js +1 -0
- package/dist/cjs/xcss/style-maps.partial.js +38 -10
- package/dist/cjs/xcss/xcss.js +2 -0
- package/dist/es2019/compiled/components/anchor.js +1 -1
- package/dist/es2019/compiled/components/box.compiled.css +1 -1
- package/dist/es2019/compiled/components/box.js +1 -1
- package/dist/es2019/compiled/components/pressable.js +1 -1
- package/dist/es2019/compiled/components/text.js +2 -0
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/box.js +2 -0
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/responsive/constants.js +2 -0
- package/dist/es2019/utils/has-text-ancestor-context.js +1 -0
- package/dist/es2019/xcss/style-maps.partial.js +38 -10
- package/dist/es2019/xcss/xcss.js +2 -0
- package/dist/esm/compiled/components/anchor.js +1 -1
- package/dist/esm/compiled/components/box.compiled.css +1 -1
- package/dist/esm/compiled/components/box.js +1 -1
- package/dist/esm/compiled/components/pressable.js +1 -1
- package/dist/esm/compiled/components/text.js +2 -0
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/box.js +2 -0
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/responsive/constants.js +2 -0
- package/dist/esm/utils/has-text-ancestor-context.js +1 -0
- package/dist/esm/xcss/style-maps.partial.js +38 -10
- package/dist/esm/xcss/xcss.js +2 -0
- package/dist/types/compiled/components/types.d.ts +1 -1
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/types/xcss/style-maps.partial.d.ts +36 -8
- package/flex/package.json +1 -8
- package/grid/package.json +1 -8
- package/inline/package.json +1 -8
- package/media-helper/package.json +1 -8
- package/metric-text/package.json +1 -8
- package/package.json +31 -63
- package/pressable/package.json +1 -8
- package/primitives.docs.tsx +359 -356
- package/responsive/build-media-query-css/package.json +1 -8
- package/responsive/constants/package.json +1 -8
- package/responsive/hide/package.json +1 -8
- package/responsive/media-helper/package.json +1 -8
- package/responsive/package.json +1 -8
- package/responsive/show/package.json +1 -8
- package/responsive/types/package.json +1 -8
- package/responsive/use-media-query/package.json +1 -8
- package/scripts/color-codegen-template.tsx +2 -1
- package/stack/package.json +1 -8
- package/surface-provider/package.json +1 -8
- package/text/package.json +1 -8
- package/types/package.json +1 -8
- package/xcss/package.json +1 -8
- package/dist/types-ts4.5/compiled/components/anchor.d.ts +0 -63
- package/dist/types-ts4.5/compiled/components/bleed.d.ts +0 -34
- package/dist/types-ts4.5/compiled/components/box.d.ts +0 -109
- package/dist/types-ts4.5/compiled/components/flex.d.ts +0 -71
- package/dist/types-ts4.5/compiled/components/focusable.d.ts +0 -36
- package/dist/types-ts4.5/compiled/components/grid.d.ts +0 -80
- package/dist/types-ts4.5/compiled/components/inline.d.ts +0 -70
- package/dist/types-ts4.5/compiled/components/metric-text.d.ts +0 -49
- package/dist/types-ts4.5/compiled/components/pressable.d.ts +0 -49
- package/dist/types-ts4.5/compiled/components/stack.d.ts +0 -57
- package/dist/types-ts4.5/compiled/components/text.d.ts +0 -101
- package/dist/types-ts4.5/compiled/components/types.d.ts +0 -45
- package/dist/types-ts4.5/compiled/index.d.ts +0 -16
- package/dist/types-ts4.5/compiled/responsive/hide.d.ts +0 -39
- package/dist/types-ts4.5/compiled/responsive/index.d.ts +0 -5
- package/dist/types-ts4.5/compiled/responsive/media-helper.d.ts +0 -35
- package/dist/types-ts4.5/compiled/responsive/show.d.ts +0 -39
- package/dist/types-ts4.5/compiled/responsive/types.d.ts +0 -10
- package/dist/types-ts4.5/compiled/responsive/use-media-query.d.ts +0 -23
- package/dist/types-ts4.5/components/anchor.d.ts +0 -106
- package/dist/types-ts4.5/components/bleed.d.ts +0 -36
- package/dist/types-ts4.5/components/box.d.ts +0 -85
- package/dist/types-ts4.5/components/flex.d.ts +0 -105
- package/dist/types-ts4.5/components/grid.d.ts +0 -137
- package/dist/types-ts4.5/components/inline.d.ts +0 -74
- package/dist/types-ts4.5/components/metric-text.d.ts +0 -16
- package/dist/types-ts4.5/components/pressable.d.ts +0 -92
- package/dist/types-ts4.5/components/stack.d.ts +0 -61
- package/dist/types-ts4.5/components/text.d.ts +0 -75
- package/dist/types-ts4.5/components/types.d.ts +0 -33
- package/dist/types-ts4.5/constants.d.ts +0 -12
- package/dist/types-ts4.5/entry-points/anchor.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/bleed.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/box.d.ts +0 -3
- package/dist/types-ts4.5/entry-points/compiled-anchor.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-bleed.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-box.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-components-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-flex.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-focusable.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-grid.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-hide.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-inline.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-media-helper.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-metric-text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-pressable.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-show.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-stack.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-surface-provider.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-use-media-query.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-utils-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/constants.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/flex.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/grid.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/inline.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/media-helper.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/metric-text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/pressable.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/responsive-build-media-query-css.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-constants.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-hide.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-media-helper.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-show.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-use-media-query.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/stack.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/surface-provider.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/xcss.d.ts +0 -2
- package/dist/types-ts4.5/index.d.ts +0 -27
- package/dist/types-ts4.5/responsive/build-media-query-css.d.ts +0 -2
- package/dist/types-ts4.5/responsive/constants.d.ts +0 -67
- package/dist/types-ts4.5/responsive/hide.d.ts +0 -41
- package/dist/types-ts4.5/responsive/index.d.ts +0 -7
- package/dist/types-ts4.5/responsive/media-helper.d.ts +0 -29
- package/dist/types-ts4.5/responsive/media.d.ts +0 -25
- package/dist/types-ts4.5/responsive/show.d.ts +0 -40
- package/dist/types-ts4.5/responsive/types.d.ts +0 -32
- package/dist/types-ts4.5/responsive/unsafe-build-above-media-query-css.d.ts +0 -33
- package/dist/types-ts4.5/responsive/unsafe-build-below-media-query-css.d.ts +0 -32
- package/dist/types-ts4.5/responsive/use-media-query.d.ts +0 -23
- package/dist/types-ts4.5/utils/has-text-ancestor-context.d.ts +0 -9
- package/dist/types-ts4.5/utils/surface-context.d.ts +0 -8
- package/dist/types-ts4.5/utils/surface-provider.d.ts +0 -10
- package/dist/types-ts4.5/utils/types.d.ts +0 -6
- package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +0 -773
- package/dist/types-ts4.5/xcss/xcss.d.ts +0 -143
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const LAYERS: {
|
|
2
|
-
readonly card: 100;
|
|
3
|
-
readonly navigation: 200;
|
|
4
|
-
readonly dialog: 300;
|
|
5
|
-
readonly layer: 400;
|
|
6
|
-
readonly blanket: 500;
|
|
7
|
-
readonly modal: 510;
|
|
8
|
-
readonly flag: 600;
|
|
9
|
-
readonly spotlight: 700;
|
|
10
|
-
readonly tooltip: 800;
|
|
11
|
-
};
|
|
12
|
-
export type Layer = keyof typeof LAYERS;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { PositiveSpaceToken as Space, TextColor } from '../compiled/components/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Hide } from '../compiled/responsive/hide';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { media } from '../compiled/responsive/media-helper';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Show } from '../compiled/responsive/show';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useSurface as UNSAFE_useSurface, SurfaceContext as UNSAFE_SurfaceContext, } from '../utils/surface-provider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Breakpoint, MediaQuery } from '../compiled/responsive/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { UNSAFE_useMediaQuery } from '../compiled/responsive/use-media-query';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { BackgroundColorToken as BackgroundColor } from '../utils/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { UNSAFE_BREAKPOINTS_CONFIG } from '../responsive/constants';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { media, UNSAFE_media } from '../responsive/media-helper';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { UNSAFE_buildAboveMediaQueryCSS } from '../responsive/build-media-query-css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { UNSAFE_BREAKPOINTS_ORDERED_LIST, UNSAFE_BREAKPOINTS_CONFIG, } from '../responsive/constants';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Hide } from '../responsive/hide';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { media, UNSAFE_media } from '../responsive/media-helper';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Show } from '../responsive/show';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Breakpoint, ResponsiveObject, ResponsiveCSSObject, MediaQuery, } from '../responsive/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { UNSAFE_useMediaQuery } from '../responsive/use-media-query';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useSurface as UNSAFE_useSurface } from '../utils/surface-provider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Breakpoint, MediaQuery } from '../responsive/types';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export type { Dimension, BackgroundColor, Space, BorderColor, BorderRadius, BorderWidth, Layer, TextColor, Shadow, } from './xcss/style-maps.partial';
|
|
2
|
-
export { default as Box } from './components/box';
|
|
3
|
-
export type { BoxProps } from './components/box';
|
|
4
|
-
export { default as Inline } from './components/inline';
|
|
5
|
-
export type { InlineProps } from './components/inline';
|
|
6
|
-
export { xcss, tokensMap } from './xcss/xcss';
|
|
7
|
-
export type { XCSS } from './xcss/xcss';
|
|
8
|
-
export { default as Stack } from './components/stack';
|
|
9
|
-
export type { StackProps } from './components/stack';
|
|
10
|
-
export { default as Flex } from './components/flex';
|
|
11
|
-
export type { FlexProps } from './components/flex';
|
|
12
|
-
export { default as Grid } from './components/grid';
|
|
13
|
-
export type { GridProps } from './components/grid';
|
|
14
|
-
export { default as Bleed } from './components/bleed';
|
|
15
|
-
export type { BleedProps } from './components/bleed';
|
|
16
|
-
export { default as Text } from './components/text';
|
|
17
|
-
export type { TextProps } from './components/text';
|
|
18
|
-
export { default as MetricText } from './components/metric-text';
|
|
19
|
-
export type { MetricTextProps } from './components/metric-text';
|
|
20
|
-
export { default as Pressable } from './components/pressable';
|
|
21
|
-
export type { PressableProps } from './components/pressable';
|
|
22
|
-
export { default as Anchor } from './components/anchor';
|
|
23
|
-
export type { AnchorProps } from './components/anchor';
|
|
24
|
-
export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
|
|
25
|
-
export type { Breakpoint, MediaQuery } from './responsive';
|
|
26
|
-
export { useSurface as UNSAFE_useSurface } from './utils/surface-provider';
|
|
27
|
-
export { inverseColorMap as UNSAFE_inverseColorMap } from './xcss/style-maps.partial';
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Our internal configuration for breakpoints configuration.
|
|
3
|
-
*
|
|
4
|
-
* We explicitly use `-0.01rem` for "max" values to both ensure we do not overlap our media queries, but also don't skip any fractional pixels. There is a chance this is not safe in some browsers, eg. Safari has weird rounding.
|
|
5
|
-
* @see: https://tzi.fr/css/prevent-double-breakpoint/
|
|
6
|
-
*
|
|
7
|
-
* @experimental Unsafe for direct consumption outside of the design system itself; please use our `media` export instead for media queries.
|
|
8
|
-
*/
|
|
9
|
-
export declare const UNSAFE_BREAKPOINTS_CONFIG: {
|
|
10
|
-
readonly xxs: {
|
|
11
|
-
readonly gridItemGutter: 'var(--ds-space-200)';
|
|
12
|
-
readonly gridMargin: 'var(--ds-space-200)';
|
|
13
|
-
readonly min: '0rem';
|
|
14
|
-
readonly max: '29.99rem';
|
|
15
|
-
};
|
|
16
|
-
readonly xs: {
|
|
17
|
-
readonly gridItemGutter: 'var(--ds-space-200)';
|
|
18
|
-
readonly gridMargin: 'var(--ds-space-200)';
|
|
19
|
-
readonly min: '30rem';
|
|
20
|
-
readonly max: '47.99rem';
|
|
21
|
-
};
|
|
22
|
-
readonly sm: {
|
|
23
|
-
readonly gridItemGutter: 'var(--ds-space-200)';
|
|
24
|
-
readonly gridMargin: 'var(--ds-space-300)';
|
|
25
|
-
readonly min: '48rem';
|
|
26
|
-
readonly max: '63.99rem';
|
|
27
|
-
};
|
|
28
|
-
readonly md: {
|
|
29
|
-
readonly gridItemGutter: 'var(--ds-space-300)';
|
|
30
|
-
readonly gridMargin: 'var(--ds-space-400)';
|
|
31
|
-
readonly min: '64rem';
|
|
32
|
-
readonly max: '89.99rem';
|
|
33
|
-
};
|
|
34
|
-
readonly lg: {
|
|
35
|
-
readonly gridItemGutter: 'var(--ds-space-400)';
|
|
36
|
-
readonly gridMargin: 'var(--ds-space-400)';
|
|
37
|
-
readonly min: '90rem';
|
|
38
|
-
readonly max: '110.49rem';
|
|
39
|
-
};
|
|
40
|
-
readonly xl: {
|
|
41
|
-
readonly gridItemGutter: 'var(--ds-space-400)';
|
|
42
|
-
readonly gridMargin: 'var(--ds-space-500)';
|
|
43
|
-
readonly min: '110.5rem';
|
|
44
|
-
readonly max: null;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* The list of breakpoints in order from smallest to largest. You may need to clone and reverse this list if you want the opposite.
|
|
49
|
-
*
|
|
50
|
-
* This is intentional for cascading with `min-width` or `media.above`. Media queries go from lowest width to highest.
|
|
51
|
-
*
|
|
52
|
-
* @experimental Unsafe for consumption outside of the design system itself.
|
|
53
|
-
*/
|
|
54
|
-
export declare const UNSAFE_BREAKPOINTS_ORDERED_LIST: [
|
|
55
|
-
"xxs",
|
|
56
|
-
"xs",
|
|
57
|
-
"sm",
|
|
58
|
-
"md",
|
|
59
|
-
"lg",
|
|
60
|
-
"xl"
|
|
61
|
-
];
|
|
62
|
-
/**
|
|
63
|
-
* This is our smallest breakpoint with a few nuances to it:
|
|
64
|
-
* 1. It is the default value for shorthands, eg. `<GridItem span={6} />` maps to `{ [SMALLEST_BREAKPOINT]: props.span }`
|
|
65
|
-
* 2. It's omitted in `media.below` as there's nothing below `0px`.
|
|
66
|
-
*/
|
|
67
|
-
export declare const SMALLEST_BREAKPOINT: 'xxs';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import { type BasePrimitiveProps } from '../components/types';
|
|
8
|
-
import { type Breakpoint } from './types';
|
|
9
|
-
type As = 'article' | 'aside' | 'dialog' | 'div' | 'footer' | 'header' | 'li' | 'main' | 'nav' | 'ol' | 'section' | 'span' | 'ul';
|
|
10
|
-
type ResponsiveHideProps = {
|
|
11
|
-
as?: As;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
} & ({
|
|
14
|
-
above?: never;
|
|
15
|
-
/**
|
|
16
|
-
* Apply CSS to hide this specifically **below** this breakpoint.
|
|
17
|
-
* The smallest breakpoint is not included as it would never be shown and this would not be performant.
|
|
18
|
-
*
|
|
19
|
-
* @important do not mix `above` and `below` (TypeScript should prevent this).
|
|
20
|
-
*/
|
|
21
|
-
below: Exclude<Breakpoint, 'xxs'>;
|
|
22
|
-
} | {
|
|
23
|
-
/**
|
|
24
|
-
* Apply CSS to hide this specifically **above** this breakpoint.
|
|
25
|
-
* The smallest breakpoint is not included as it would always be shown and this would not be performant.
|
|
26
|
-
*
|
|
27
|
-
* @important do not mix `above` and `below` (TypeScript should prevent this).
|
|
28
|
-
*/
|
|
29
|
-
above: Exclude<Breakpoint, 'xxs'>;
|
|
30
|
-
below?: never;
|
|
31
|
-
}) & Pick<BasePrimitiveProps, 'xcss'>;
|
|
32
|
-
/**
|
|
33
|
-
* Hides the content at a given breakpoint. By default, content is shown. The primary use case is for visual presentation.
|
|
34
|
-
* Mix `<Hide above="md">` with `<Show above="md">` to achieve content that shifts at a breakpoint.
|
|
35
|
-
*
|
|
36
|
-
* Please note:
|
|
37
|
-
* - This only uses `display: none` hide, it does not skip rendering of children trees.
|
|
38
|
-
* - As this is rendered at all times, there is little performance savings here (just that this is not painted).
|
|
39
|
-
*/
|
|
40
|
-
export declare const Hide: ({ above, below, children, as: AsElement, xcss, }: ResponsiveHideProps) => jsx.JSX.Element;
|
|
41
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { media, UNSAFE_media } from './media-helper';
|
|
2
|
-
export { UNSAFE_buildAboveMediaQueryCSS } from './build-media-query-css';
|
|
3
|
-
export { UNSAFE_BREAKPOINTS_ORDERED_LIST, UNSAFE_BREAKPOINTS_CONFIG } from './constants';
|
|
4
|
-
export type { Breakpoint, ResponsiveObject, ResponsiveCSSObject, MediaQuery } from './types';
|
|
5
|
-
export { UNSAFE_useMediaQuery } from './use-media-query';
|
|
6
|
-
export { Show } from './show';
|
|
7
|
-
export { Hide } from './hide';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Keep `UNSAFE_media` for backwards compatibility.
|
|
3
|
-
*/
|
|
4
|
-
export declare const UNSAFE_media: {
|
|
5
|
-
above: {
|
|
6
|
-
readonly xxs: '@media all';
|
|
7
|
-
readonly xs: '@media (min-width: 30rem)';
|
|
8
|
-
readonly sm: '@media (min-width: 48rem)';
|
|
9
|
-
readonly md: '@media (min-width: 64rem)';
|
|
10
|
-
readonly lg: '@media (min-width: 90rem)';
|
|
11
|
-
readonly xl: '@media (min-width: 110.5rem)';
|
|
12
|
-
};
|
|
13
|
-
only: {
|
|
14
|
-
readonly xxs: '@media (min-width: 0rem) and (max-width: 29.99rem)';
|
|
15
|
-
readonly xs: '@media (min-width: 30rem) and (max-width: 47.99rem)';
|
|
16
|
-
readonly sm: '@media (min-width: 48rem) and (max-width: 63.99rem)';
|
|
17
|
-
readonly md: '@media (min-width: 64rem) and (max-width: 89.99rem)';
|
|
18
|
-
readonly lg: '@media (min-width: 90rem) and (max-width: 110.49rem)';
|
|
19
|
-
readonly xl: '@media (min-width: 110.5rem)';
|
|
20
|
-
};
|
|
21
|
-
below: {
|
|
22
|
-
readonly xs: '@media not all and (min-width: 30rem)';
|
|
23
|
-
readonly sm: '@media not all and (min-width: 48rem)';
|
|
24
|
-
readonly md: '@media not all and (min-width: 64rem)';
|
|
25
|
-
readonly lg: '@media not all and (min-width: 90rem)';
|
|
26
|
-
readonly xl: '@media not all and (min-width: 110.5rem)';
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export { media } from './media';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const media: {
|
|
2
|
-
above: {
|
|
3
|
-
readonly xxs: "@media all";
|
|
4
|
-
readonly xs: "@media (min-width: 30rem)";
|
|
5
|
-
readonly sm: "@media (min-width: 48rem)";
|
|
6
|
-
readonly md: "@media (min-width: 64rem)";
|
|
7
|
-
readonly lg: "@media (min-width: 90rem)";
|
|
8
|
-
readonly xl: "@media (min-width: 110.5rem)";
|
|
9
|
-
};
|
|
10
|
-
only: {
|
|
11
|
-
readonly xxs: "@media (min-width: 0rem) and (max-width: 29.99rem)";
|
|
12
|
-
readonly xs: "@media (min-width: 30rem) and (max-width: 47.99rem)";
|
|
13
|
-
readonly sm: "@media (min-width: 48rem) and (max-width: 63.99rem)";
|
|
14
|
-
readonly md: "@media (min-width: 64rem) and (max-width: 89.99rem)";
|
|
15
|
-
readonly lg: "@media (min-width: 90rem) and (max-width: 110.49rem)";
|
|
16
|
-
readonly xl: "@media (min-width: 110.5rem)";
|
|
17
|
-
};
|
|
18
|
-
below: {
|
|
19
|
-
readonly xs: "@media not all and (min-width: 30rem)";
|
|
20
|
-
readonly sm: "@media not all and (min-width: 48rem)";
|
|
21
|
-
readonly md: "@media not all and (min-width: 64rem)";
|
|
22
|
-
readonly lg: "@media not all and (min-width: 90rem)";
|
|
23
|
-
readonly xl: "@media not all and (min-width: 110.5rem)";
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactElement, type ReactNode } from 'react';
|
|
6
|
-
import { type BasePrimitiveProps } from '../components/types';
|
|
7
|
-
import type { Breakpoint } from './types';
|
|
8
|
-
type As = 'article' | 'aside' | 'dialog' | 'div' | 'footer' | 'header' | 'li' | 'main' | 'nav' | 'ol' | 'section' | 'span' | 'ul';
|
|
9
|
-
type ResponsiveShowProps = {
|
|
10
|
-
as?: As;
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
} & ({
|
|
13
|
-
above?: never;
|
|
14
|
-
/**
|
|
15
|
-
* Apply CSS to show this specifically **below** this breakpoint.
|
|
16
|
-
* The smallest breakpoint is not included as it would never be shown and this would not be performant.
|
|
17
|
-
*
|
|
18
|
-
* @important do not mix `above` and `below` (TypeScript should prevent this).
|
|
19
|
-
*/
|
|
20
|
-
below: Exclude<Breakpoint, 'xxs'>;
|
|
21
|
-
} | {
|
|
22
|
-
/**
|
|
23
|
-
* Apply CSS to show this specifically **above** this breakpoint.
|
|
24
|
-
* The smallest breakpoint is not included as it would always be shown and this would not be performant.
|
|
25
|
-
*
|
|
26
|
-
* @important do not mix `above` and `below` (TypeScript should prevent this).
|
|
27
|
-
*/
|
|
28
|
-
above: Exclude<Breakpoint, 'xxs'>;
|
|
29
|
-
below?: never;
|
|
30
|
-
}) & Pick<BasePrimitiveProps, 'xcss'>;
|
|
31
|
-
/**
|
|
32
|
-
* Shows the content at a given breakpoint. By default, content is hidden. The primary use case is for visual presentation.
|
|
33
|
-
* Mix `<Show above="md">` with `<Hide above="md">` to achieve content that shifts at a breakpoint.
|
|
34
|
-
*
|
|
35
|
-
* Please note:
|
|
36
|
-
* - This only uses `display: none` and `display: revert` to show/hide, it does not skip rendering of children trees.
|
|
37
|
-
* - As this is rendered at all times, there is little performance savings here (just that this is not painted).
|
|
38
|
-
*/
|
|
39
|
-
export declare const Show: ({ above, below, children, as: AsElement, xcss, }: ResponsiveShowProps) => ReactElement<ResponsiveShowProps>;
|
|
40
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { media } from './media';
|
|
3
|
-
/**
|
|
4
|
-
* The breakpoints we have for responsiveness.
|
|
5
|
-
*/
|
|
6
|
-
export type Breakpoint = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
-
/**
|
|
8
|
-
* All supported media queries for use as keys, eg. in `xcss({ [MediaQuery]: { … } })`.
|
|
9
|
-
*
|
|
10
|
-
* TODO: Should this have `media.above.xxs`? This is explicitly `@media all`, which I believe is just additional specificity (which could lead to some mistakes)
|
|
11
|
-
*/
|
|
12
|
-
export type MediaQuery = (typeof media.above)[Breakpoint];
|
|
13
|
-
/**
|
|
14
|
-
* An object type mapping a value to each breakpoint (optionally).
|
|
15
|
-
*/
|
|
16
|
-
export type ResponsiveObject<T> = Partial<Record<Breakpoint, T>>;
|
|
17
|
-
/**
|
|
18
|
-
* A map of breakpoints to CSS, commonly used to build maps given a responsive object
|
|
19
|
-
* so we can statically compile CSS upfront, but dynamically apply it.
|
|
20
|
-
*
|
|
21
|
-
* @example Here we could conditionally load margins based a `setMarginBreakpoints={['xs', 'md']}` type prop.
|
|
22
|
-
* ```tsx
|
|
23
|
-
* const marginMediaQueries = {
|
|
24
|
-
* xxs: css({ [media.above.xxs]: margin: 0 } }),
|
|
25
|
-
* xs: css({ [media.above.xs]: margin: 4 } }),
|
|
26
|
-
* //…
|
|
27
|
-
* }
|
|
28
|
-
*
|
|
29
|
-
* return <div css={setMarginBreakpoints.map(breakpoint => marginMediaQueries[breakpoint])} />
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export type ResponsiveCSSObject = ResponsiveObject<SerializedStyles>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type CSSObject, type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { Breakpoint } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Build a map of breakpoints to css with media queries and nested styles.
|
|
5
|
-
*
|
|
6
|
-
* @internal Not intended to be used outside of DST at this stage.
|
|
7
|
-
* @experimental Not intended to be used outside of DST at this stage.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* A map to build optional `display:none` for consumption on a div.
|
|
11
|
-
* ```ts
|
|
12
|
-
* const hideMediaQueries = buildAboveMediaQueryCSS({ display: 'none' });
|
|
13
|
-
*
|
|
14
|
-
* const Component = ({ hideAtBreakpoints: ('xs' | 'sm')[], children: ReactNode }) => {
|
|
15
|
-
* return <div css={hideAtBreakpoints.map(b => hideMediaQueries[b])}>{children}</div>;
|
|
16
|
-
* }
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* This roughly builds a map that will look roughly like this (if done manually):
|
|
20
|
-
* ```ts
|
|
21
|
-
* {
|
|
22
|
-
* xxs: css({ '@media all': { display: 'none' } }),
|
|
23
|
-
* xs: css({ '@media (min-width: 30rem)': { display: 'none' } }),
|
|
24
|
-
* sm: css({ '@media (min-width: 48rem)': { display: 'none' } }),
|
|
25
|
-
* }
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare const UNSAFE_buildAboveMediaQueryCSS: (
|
|
29
|
-
/**
|
|
30
|
-
* The desired CSS to place inside of the media query.
|
|
31
|
-
* This can either be a css object directly or functional with `breakpoint` as the arg to return a css object.
|
|
32
|
-
*/
|
|
33
|
-
input: CSSObject | ((breakpoint: Breakpoint) => CSSObject)) => Required<Partial<Record<Breakpoint, SerializedStyles>>>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type CSSObject, type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { Breakpoint } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Build a map of breakpoints to css with media queries and nested styles.
|
|
5
|
-
*
|
|
6
|
-
* @internal Not intended to be used outside of DST at this stage.
|
|
7
|
-
* @experimental Not intended to be used outside of DST at this stage.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* A map to build optional `display:none` for consumption on a div.
|
|
11
|
-
* ```ts
|
|
12
|
-
* const hideMediaQueries = buildBelowMediaQueryCSS({ display: 'none' });
|
|
13
|
-
*
|
|
14
|
-
* const Component = ({ hideAtBreakpoints: ('xs' | 'sm')[], children: ReactNode }) => {
|
|
15
|
-
* return <div css={hideAtBreakpoints.map(b => hideMediaQueries[b])}>{children}</div>;
|
|
16
|
-
* }
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* This roughly builds a map that will look roughly like this (if done manually):
|
|
20
|
-
* ```ts
|
|
21
|
-
* {
|
|
22
|
-
* xs: css({ '@media not all and (min-width: 30rem)': { display: 'none' } }),
|
|
23
|
-
* sm: css({ '@media not all and (min-width: 48rem)': { display: 'none' } }),
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare const UNSAFE_buildBelowMediaQueryCSS: (
|
|
28
|
-
/**
|
|
29
|
-
* The desired CSS to place inside of the media query.
|
|
30
|
-
* This can either be a css object directly or functional with `breakpoint` as the arg to return a css object.
|
|
31
|
-
*/
|
|
32
|
-
input: CSSObject | ((breakpoint: Breakpoint) => CSSObject)) => Required<Partial<Record<Breakpoint, SerializedStyles>>>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UNSAFE_media } from './media-helper';
|
|
2
|
-
type NestedQueryString = `above.${keyof typeof UNSAFE_media.above}` | `below.${keyof typeof UNSAFE_media.below}`;
|
|
3
|
-
/**
|
|
4
|
-
* A hook which returnes a `window.matchMedia` result to help you build responsively around breakpoints in JavaScript.
|
|
5
|
-
*
|
|
6
|
-
* The returning value **WILL NOT** update or react to change. You can use `mq.matches` to get the latest version and you can use the optional listener argument to react to changes as desired.
|
|
7
|
-
*
|
|
8
|
-
* @important
|
|
9
|
-
* - This will always be `null` in SSR and the event listener should not fire on SSR => clientside hydration.
|
|
10
|
-
* - `above.xxs` will always be truthy, your listener should never fire.
|
|
11
|
-
*
|
|
12
|
-
* @experimental This hook only works on the client-side and is not safe in an SSR environment as `window` is unavailable (and the user's viewport would be unknown)
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* const mq = useMediaQuery('below.md', useCallback((event) => console.log('changed', event.matches)), []))
|
|
16
|
-
* const isMobile = mq?.matches;
|
|
17
|
-
*
|
|
18
|
-
* @returns
|
|
19
|
-
* - `MediaQueryList`, primarily used to get if that media query is currently
|
|
20
|
-
* - `null` when `matchMedia` is unavailable, eg. in SSR.
|
|
21
|
-
*/
|
|
22
|
-
export declare const UNSAFE_useMediaQuery: (queryString: NestedQueryString, listener?: (event: MediaQueryListEvent) => void) => MediaQueryList | null;
|
|
23
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Context } from 'react';
|
|
2
|
-
import type { BackgroundColorToken } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* __Surface context__
|
|
5
|
-
*
|
|
6
|
-
* A surface context provides context information on the current background (if set).
|
|
7
|
-
*/
|
|
8
|
-
export declare const SurfaceContext: Context<BackgroundColorToken>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BackgroundColorToken } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* __useSurface__
|
|
4
|
-
*
|
|
5
|
-
* Return the current surface. If no parent sets a surface color it falls back to the default surface.
|
|
6
|
-
*
|
|
7
|
-
* @see SurfaceContext
|
|
8
|
-
*/
|
|
9
|
-
export declare const useSurface: () => BackgroundColorToken;
|
|
10
|
-
export { SurfaceContext } from './surface-context';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A list of all of the SVG-ish elements from JSX.IntrinsicElements
|
|
3
|
-
* as we typically want to remove these from allowed elements.
|
|
4
|
-
*/
|
|
5
|
-
export type SVGElements = 'svg' | 'animate' | 'animateMotion' | 'animateTransform' | 'circle' | 'clipPath' | 'defs' | 'desc' | 'ellipse' | 'feBlend' | 'feColorMatrix' | 'feComponentTransfer' | 'feComposite' | 'feConvolveMatrix' | 'feDiffuseLighting' | 'feDisplacementMap' | 'feDistantLight' | 'feDropShadow' | 'feFlood' | 'feFuncA' | 'feFuncB' | 'feFuncG' | 'feFuncR' | 'feGaussianBlur' | 'feImage' | 'feMerge' | 'feMergeNode' | 'feMorphology' | 'feOffset' | 'fePointLight' | 'feSpecularLighting' | 'feSpotLight' | 'feTile' | 'feTurbulence' | 'filter' | 'foreignObject' | 'g' | 'image' | 'line' | 'linearGradient' | 'marker' | 'mask' | 'metadata' | 'mpath' | 'path' | 'pattern' | 'polygon' | 'polyline' | 'radialGradient' | 'rect' | 'stop' | 'switch' | 'symbol' | 'text' | 'textPath' | 'tspan' | 'use' | 'view';
|
|
6
|
-
export type BackgroundColorToken = 'color.background.accent.lime.subtlest' | 'color.background.accent.lime.subtlest.hovered' | 'color.background.accent.lime.subtlest.pressed' | 'color.background.accent.lime.subtler' | 'color.background.accent.lime.subtler.hovered' | 'color.background.accent.lime.subtler.pressed' | 'color.background.accent.lime.subtle' | 'color.background.accent.lime.subtle.hovered' | 'color.background.accent.lime.subtle.pressed' | 'color.background.accent.lime.bolder' | 'color.background.accent.lime.bolder.hovered' | 'color.background.accent.lime.bolder.pressed' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtlest.hovered' | 'color.background.accent.red.subtlest.pressed' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtler.hovered' | 'color.background.accent.red.subtler.pressed' | 'color.background.accent.red.subtle' | 'color.background.accent.red.subtle.hovered' | 'color.background.accent.red.subtle.pressed' | 'color.background.accent.red.bolder' | 'color.background.accent.red.bolder.hovered' | 'color.background.accent.red.bolder.pressed' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtlest.hovered' | 'color.background.accent.orange.subtlest.pressed' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtler.hovered' | 'color.background.accent.orange.subtler.pressed' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.subtle.hovered' | 'color.background.accent.orange.subtle.pressed' | 'color.background.accent.orange.bolder' | 'color.background.accent.orange.bolder.hovered' | 'color.background.accent.orange.bolder.pressed' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtlest.hovered' | 'color.background.accent.yellow.subtlest.pressed' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtler.hovered' | 'color.background.accent.yellow.subtler.pressed' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.subtle.hovered' | 'color.background.accent.yellow.subtle.pressed' | 'color.background.accent.yellow.bolder' | 'color.background.accent.yellow.bolder.hovered' | 'color.background.accent.yellow.bolder.pressed' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtlest.hovered' | 'color.background.accent.green.subtlest.pressed' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtler.hovered' | 'color.background.accent.green.subtler.pressed' | 'color.background.accent.green.subtle' | 'color.background.accent.green.subtle.hovered' | 'color.background.accent.green.subtle.pressed' | 'color.background.accent.green.bolder' | 'color.background.accent.green.bolder.hovered' | 'color.background.accent.green.bolder.pressed' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtlest.hovered' | 'color.background.accent.teal.subtlest.pressed' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtler.hovered' | 'color.background.accent.teal.subtler.pressed' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.subtle.hovered' | 'color.background.accent.teal.subtle.pressed' | 'color.background.accent.teal.bolder' | 'color.background.accent.teal.bolder.hovered' | 'color.background.accent.teal.bolder.pressed' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtlest.hovered' | 'color.background.accent.blue.subtlest.pressed' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtler.hovered' | 'color.background.accent.blue.subtler.pressed' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.subtle.hovered' | 'color.background.accent.blue.subtle.pressed' | 'color.background.accent.blue.bolder' | 'color.background.accent.blue.bolder.hovered' | 'color.background.accent.blue.bolder.pressed' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtlest.hovered' | 'color.background.accent.purple.subtlest.pressed' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtler.hovered' | 'color.background.accent.purple.subtler.pressed' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.subtle.hovered' | 'color.background.accent.purple.subtle.pressed' | 'color.background.accent.purple.bolder' | 'color.background.accent.purple.bolder.hovered' | 'color.background.accent.purple.bolder.pressed' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtlest.hovered' | 'color.background.accent.magenta.subtlest.pressed' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtler.hovered' | 'color.background.accent.magenta.subtler.pressed' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.subtle.hovered' | 'color.background.accent.magenta.subtle.pressed' | 'color.background.accent.magenta.bolder' | 'color.background.accent.magenta.bolder.hovered' | 'color.background.accent.magenta.bolder.pressed' | 'color.background.accent.gray.subtlest' | 'color.background.accent.gray.subtlest.hovered' | 'color.background.accent.gray.subtlest.pressed' | 'color.background.accent.gray.subtler' | 'color.background.accent.gray.subtler.hovered' | 'color.background.accent.gray.subtler.pressed' | 'color.background.accent.gray.subtle' | 'color.background.accent.gray.subtle.hovered' | 'color.background.accent.gray.subtle.pressed' | 'color.background.accent.gray.bolder' | 'color.background.accent.gray.bolder.hovered' | 'color.background.accent.gray.bolder.pressed' | 'color.background.disabled' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.brand.subtlest' | 'color.background.brand.subtlest.hovered' | 'color.background.brand.subtlest.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.brand.boldest' | 'color.background.brand.boldest.hovered' | 'color.background.brand.boldest.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.subtler' | 'color.background.danger.subtler.hovered' | 'color.background.danger.subtler.pressed' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.subtler' | 'color.background.warning.subtler.hovered' | 'color.background.warning.subtler.pressed' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.subtler' | 'color.background.success.subtler.hovered' | 'color.background.success.subtler.pressed' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.subtler' | 'color.background.discovery.subtler.hovered' | 'color.background.discovery.subtler.pressed' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.subtler' | 'color.background.information.subtler.hovered' | 'color.background.information.subtler.pressed' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.skeleton' | 'color.skeleton.subtle' | 'elevation.surface' | 'elevation.surface.hovered' | 'elevation.surface.pressed' | 'elevation.surface.overlay' | 'elevation.surface.overlay.hovered' | 'elevation.surface.overlay.pressed' | 'elevation.surface.raised' | 'elevation.surface.raised.hovered' | 'elevation.surface.raised.pressed' | 'elevation.surface.sunken' | 'utility.elevation.surface.current';
|