@atlaskit/primitives 1.12.0 → 1.13.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 1.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#57795](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57795) [`d2c06815d043`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2c06815d043) - - Inline: Allow `role` prop to be passed through. `role` already existed in the type, but was not actually applied to the component.
8
+ - Stack: Allow `role` prop to be passed through. `role` already existed in the type, but was not actually applied to the component.
9
+ - Flex: Allow `role` prop to be passed through. `role` already existed in the type, but was not actually applied to the component.
10
+ - Text: Omit `xcss` from prop types. `<Text xcss={yourStyles}></Text>` will now throw a type error. `xcss` was previously non-functional in `Text`. So, this should not cause any behavior change.
11
+ - xcss: Export XCSS type from main entry point. It is now possible to `import { xcss, type XCSS } from '@atlaskit/primitives'`.
12
+
3
13
  ## 1.12.0
4
14
 
5
15
  ### Minor Changes
@@ -14,6 +14,8 @@ These responsive helpers are designed be used in conjunction with [xcss](/compon
14
14
 
15
15
  Compose your default styles alongside media overrides in [xcss](/components/primitives/xcss) or `css`.
16
16
 
17
+ #### xcss
18
+
17
19
  ```tsx
18
20
  const customStyles = xcss({
19
21
  display: 'none', // hide by default
@@ -23,13 +25,11 @@ const customStyles = xcss({
23
25
  });
24
26
 
25
27
  export const Component = ({ children }: { children: ReactNode }) => (
26
- <div css={customStyles}>{children}</div>
28
+ <Box xcss={customStyles}>{children}</Box>
27
29
  );
28
30
  ```
29
31
 
30
- ### Using media.above
31
-
32
- It is important to note that the `media.above.xxs` will **always** match, it is explicitly `'@media all'`. This is only included for easy programatic usage, but it has a negative performance impact.
32
+ #### css
33
33
 
34
34
  ```tsx
35
35
  const customStyles = css({
@@ -41,3 +41,7 @@ const customStyles = css({
41
41
  [media.above.xl]: { marginBlock: token('space.150') },
42
42
  });
43
43
  ```
44
+
45
+ ### Using media.above
46
+
47
+ It is important to note that the `media.above.xxs` will **always** match, it is explicitly `'@media all'`. This is only included for easy programmatic usage, but it has a negative performance impact.
@@ -94,6 +94,7 @@ var baseStyles = (0, _react2.css)({
94
94
  var Flex = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
95
95
  var _ref$as = _ref.as,
96
96
  Component = _ref$as === void 0 ? 'div' : _ref$as,
97
+ role = _ref.role,
97
98
  alignItems = _ref.alignItems,
98
99
  justifyContent = _ref.justifyContent,
99
100
  gap = _ref.gap,
@@ -106,6 +107,7 @@ var Flex = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(fu
106
107
  xcss = _ref.xcss;
107
108
  var xcssClassName = xcss && (0, _xcss.parseXcss)(xcss);
108
109
  return (0, _react2.jsx)(Component, {
110
+ role: role,
109
111
  css: [baseStyles, gap && _styleMaps.spaceStylesMap.gap[gap], columnGap && _styleMaps.spaceStylesMap.columnGap[columnGap], rowGap && _styleMaps.spaceStylesMap.rowGap[rowGap], alignItems && alignItemsMap[alignItems], direction && flexDirectionMap[direction], justifyContent && justifyContentMap[justifyContent], wrap && flexWrapMap[wrap],
110
112
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
111
113
  xcssClassName && xcssClassName],
@@ -64,6 +64,7 @@ var Inline = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(
64
64
  separator = _ref2.separator,
65
65
  xcss = _ref2.xcss,
66
66
  testId = _ref2.testId,
67
+ role = _ref2.role,
67
68
  rawChildren = _ref2.children;
68
69
  var separatorComponent = typeof separator === 'string' ? (0, _react2.jsx)(Separator, null, separator) : separator;
69
70
  var children = separatorComponent ? _react.Children.toArray(rawChildren).filter(Boolean).map(function (child, index) {
@@ -74,6 +75,7 @@ var Inline = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(
74
75
  var justifyContent = spread || alignInline;
75
76
  return (0, _react2.jsx)(_flex.default, {
76
77
  as: as,
78
+ role: role,
77
79
  alignItems: alignItems,
78
80
  justifyContent: justifyContent,
79
81
  direction: "row",
@@ -47,10 +47,12 @@ var Stack = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(f
47
47
  space = _ref.space,
48
48
  children = _ref.children,
49
49
  testId = _ref.testId,
50
- xcss = _ref.xcss;
50
+ xcss = _ref.xcss,
51
+ role = _ref.role;
51
52
  var justifyContent = spread || alignBlock;
52
53
  return (0, _react2.jsx)(_flex.default, {
53
54
  as: as,
55
+ role: role,
54
56
  gap: space,
55
57
  direction: "column",
56
58
  alignItems: alignItems,
@@ -86,6 +86,7 @@ const baseStyles = css({
86
86
  */
87
87
  const Flex = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
88
88
  as: Component = 'div',
89
+ role,
89
90
  alignItems,
90
91
  justifyContent,
91
92
  gap,
@@ -99,6 +100,7 @@ const Flex = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
99
100
  }, ref) => {
100
101
  const xcssClassName = xcss && parseXcss(xcss);
101
102
  return jsx(Component, {
103
+ role: role,
102
104
  css: [baseStyles, gap && spaceStylesMap.gap[gap], columnGap && spaceStylesMap.columnGap[columnGap], rowGap && spaceStylesMap.rowGap[rowGap], alignItems && alignItemsMap[alignItems], direction && flexDirectionMap[direction], justifyContent && justifyContentMap[justifyContent], wrap && flexWrapMap[wrap],
103
105
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
104
106
  xcssClassName && xcssClassName],
@@ -52,6 +52,7 @@ const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
52
52
  separator,
53
53
  xcss,
54
54
  testId,
55
+ role,
55
56
  children: rawChildren
56
57
  }, ref) => {
57
58
  const separatorComponent = typeof separator === 'string' ? jsx(Separator, null, separator) : separator;
@@ -63,6 +64,7 @@ const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
63
64
  const justifyContent = spread || alignInline;
64
65
  return jsx(Flex, {
65
66
  as: as,
67
+ role: role,
66
68
  alignItems: alignItems,
67
69
  justifyContent: justifyContent,
68
70
  direction: "row",
@@ -37,11 +37,13 @@ const Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
37
37
  space,
38
38
  children,
39
39
  testId,
40
- xcss
40
+ xcss,
41
+ role
41
42
  }, ref) => {
42
43
  const justifyContent = spread || alignBlock;
43
44
  return jsx(Flex, {
44
45
  as: as,
46
+ role: role,
45
47
  gap: space,
46
48
  direction: "column",
47
49
  alignItems: alignItems,
@@ -87,6 +87,7 @@ var baseStyles = css({
87
87
  var Flex = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
88
88
  var _ref$as = _ref.as,
89
89
  Component = _ref$as === void 0 ? 'div' : _ref$as,
90
+ role = _ref.role,
90
91
  alignItems = _ref.alignItems,
91
92
  justifyContent = _ref.justifyContent,
92
93
  gap = _ref.gap,
@@ -99,6 +100,7 @@ var Flex = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
99
100
  xcss = _ref.xcss;
100
101
  var xcssClassName = xcss && parseXcss(xcss);
101
102
  return jsx(Component, {
103
+ role: role,
102
104
  css: [baseStyles, gap && spaceStylesMap.gap[gap], columnGap && spaceStylesMap.columnGap[columnGap], rowGap && spaceStylesMap.rowGap[rowGap], alignItems && alignItemsMap[alignItems], direction && flexDirectionMap[direction], justifyContent && justifyContentMap[justifyContent], wrap && flexWrapMap[wrap],
103
105
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
104
106
  xcssClassName && xcssClassName],
@@ -56,6 +56,7 @@ var Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2, ref) {
56
56
  separator = _ref2.separator,
57
57
  xcss = _ref2.xcss,
58
58
  testId = _ref2.testId,
59
+ role = _ref2.role,
59
60
  rawChildren = _ref2.children;
60
61
  var separatorComponent = typeof separator === 'string' ? jsx(Separator, null, separator) : separator;
61
62
  var children = separatorComponent ? Children.toArray(rawChildren).filter(Boolean).map(function (child, index) {
@@ -66,6 +67,7 @@ var Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2, ref) {
66
67
  var justifyContent = spread || alignInline;
67
68
  return jsx(Flex, {
68
69
  as: as,
70
+ role: role,
69
71
  alignItems: alignItems,
70
72
  justifyContent: justifyContent,
71
73
  direction: "row",
@@ -39,10 +39,12 @@ var Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
39
39
  space = _ref.space,
40
40
  children = _ref.children,
41
41
  testId = _ref.testId,
42
- xcss = _ref.xcss;
42
+ xcss = _ref.xcss,
43
+ role = _ref.role;
43
44
  var justifyContent = spread || alignBlock;
44
45
  return jsx(Flex, {
45
46
  as: as,
47
+ role: role,
46
48
  gap: space,
47
49
  direction: "column",
48
50
  alignItems: alignItems,
@@ -5,7 +5,7 @@ import type { BasePrimitiveProps } from './types';
5
5
  declare const asAllowlist: readonly ["span", "p", "strong", "em"];
6
6
  type AsElement = (typeof asAllowlist)[number];
7
7
  type Variant = BodyText | UiText;
8
- export interface TextProps extends BasePrimitiveProps {
8
+ export interface TextProps extends Omit<BasePrimitiveProps, 'xcss'> {
9
9
  /**
10
10
  * HTML tag to be rendered. Defaults to `span`.
11
11
  */
@@ -4,6 +4,7 @@ export type { BoxProps } from './components/box';
4
4
  export { default as Inline } from './components/inline';
5
5
  export type { InlineProps } from './components/inline';
6
6
  export { xcss } from './xcss/xcss';
7
+ export type { XCSS } from './xcss/xcss';
7
8
  export { default as Stack } from './components/stack';
8
9
  export type { StackProps } from './components/stack';
9
10
  export { default as Flex } from './components/flex';
@@ -10,7 +10,7 @@ declare const asAllowlist: readonly [
10
10
  ];
11
11
  type AsElement = (typeof asAllowlist)[number];
12
12
  type Variant = BodyText | UiText;
13
- export interface TextProps extends BasePrimitiveProps {
13
+ export interface TextProps extends Omit<BasePrimitiveProps, 'xcss'> {
14
14
  /**
15
15
  * HTML tag to be rendered. Defaults to `span`.
16
16
  */
@@ -4,6 +4,7 @@ export type { BoxProps } from './components/box';
4
4
  export { default as Inline } from './components/inline';
5
5
  export type { InlineProps } from './components/inline';
6
6
  export { xcss } from './xcss/xcss';
7
+ export type { XCSS } from './xcss/xcss';
7
8
  export { default as Stack } from './components/stack';
8
9
  export type { StackProps } from './components/stack';
9
10
  export { default as Flex } from './components/flex';
@@ -3,6 +3,7 @@ import { ElementType, ReactNode } from 'react';
3
3
  import type {
4
4
  AlignBlock,
5
5
  AlignInline,
6
+ BasePrimitiveProps,
6
7
  Grow,
7
8
  Spread,
8
9
  } from '../src/components/types';
@@ -23,7 +24,7 @@ type Space =
23
24
  | 'space.800'
24
25
  | 'space.1000';
25
26
 
26
- interface InlineProps<T extends ElementType = 'div'> {
27
+ type InlineProps<T extends ElementType = 'div'> = {
27
28
  /**
28
29
  * The DOM element to render as the Inline. Defaults to `div`.
29
30
  */
@@ -83,6 +84,6 @@ interface InlineProps<T extends ElementType = 'div'> {
83
84
  * Forwarded ref element
84
85
  */
85
86
  ref?: React.ComponentPropsWithRef<T>['ref'];
86
- }
87
+ } & BasePrimitiveProps;
87
88
 
88
89
  export default function Inline(_: InlineProps) {}
@@ -3,6 +3,7 @@ import { ElementType, ReactNode } from 'react';
3
3
  import type {
4
4
  AlignBlock,
5
5
  AlignInline,
6
+ BasePrimitiveProps,
6
7
  Grow,
7
8
  Spread,
8
9
  } from '../src/components/types';
@@ -23,7 +24,7 @@ type Space =
23
24
  | 'space.800'
24
25
  | 'space.1000';
25
26
 
26
- interface StackProps<T extends ElementType = 'div'> {
27
+ type StackProps<T extends ElementType = 'div'> = {
27
28
  /**
28
29
  * The DOM element to render as the Stack. Defaults to `div`.
29
30
  */
@@ -67,6 +68,6 @@ interface StackProps<T extends ElementType = 'div'> {
67
68
  * Forwarded ref element
68
69
  */
69
70
  ref?: React.ComponentPropsWithRef<T>['ref'];
70
- }
71
+ } & BasePrimitiveProps;
71
72
 
72
73
  export default function Stack(_: StackProps) {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -105,7 +105,7 @@
105
105
  },
106
106
  "dependencies": {
107
107
  "@atlaskit/app-provider": "^0.4.0",
108
- "@atlaskit/tokens": "^1.28.0",
108
+ "@atlaskit/tokens": "^1.29.0",
109
109
  "@babel/runtime": "^7.0.0",
110
110
  "@emotion/react": "^11.7.1",
111
111
  "@emotion/serialize": "^1.1.0",
@@ -1,977 +0,0 @@
1
- ## API Report File for "@atlaskit/primitives"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { ComponentPropsWithoutRef } from 'react';
8
- import { ComponentPropsWithRef } from 'react';
9
- import type * as CSS_2 from 'csstype';
10
- import type { CSSProperties } from 'react';
11
- import type { CSSPropertiesWithMultiValues } from '@emotion/serialize';
12
- import { ElementType } from 'react';
13
- import { FC } from 'react';
14
- import { ForwardRefExoticComponent } from 'react';
15
- import { jsx } from '@emotion/react';
16
- import { MemoExoticComponent } from 'react';
17
- import { ReactElement } from 'react';
18
- import { ReactNode } from 'react';
19
- import { RefAttributes } from 'react';
20
- import type { SerializedStyles } from '@emotion/serialize';
21
- import { SerializedStyles as SerializedStyles_2 } from '@emotion/react';
22
-
23
- // @public (undocumented)
24
- type AlignBlock = 'baseline' | 'center' | 'end' | 'start' | 'stretch';
25
-
26
- // @public (undocumented)
27
- type AlignContent = keyof typeof alignContentMap;
28
-
29
- // @public (undocumented)
30
- const alignContentMap: {
31
- readonly start: SerializedStyles_2;
32
- readonly center: SerializedStyles_2;
33
- readonly end: SerializedStyles_2;
34
- readonly 'space-between': SerializedStyles_2;
35
- readonly 'space-around': SerializedStyles_2;
36
- readonly 'space-evenly': SerializedStyles_2;
37
- readonly stretch: SerializedStyles_2;
38
- };
39
-
40
- // @public (undocumented)
41
- type AlignInline = 'center' | 'end' | 'start' | 'stretch';
42
-
43
- // @public (undocumented)
44
- type AlignItems = keyof typeof alignItemsMap;
45
-
46
- // @public (undocumented)
47
- type AlignItems_2 = keyof typeof alignItemsMap_2;
48
-
49
- // @public (undocumented)
50
- const alignItemsMap: {
51
- readonly start: SerializedStyles_2;
52
- readonly center: SerializedStyles_2;
53
- readonly baseline: SerializedStyles_2;
54
- readonly end: SerializedStyles_2;
55
- readonly stretch: SerializedStyles_2;
56
- };
57
-
58
- // @public (undocumented)
59
- const alignItemsMap_2: {
60
- readonly start: SerializedStyles_2;
61
- readonly center: SerializedStyles_2;
62
- readonly baseline: SerializedStyles_2;
63
- readonly end: SerializedStyles_2;
64
- };
65
-
66
- // @public (undocumented)
67
- type AllMedia = '@media (prefers-color-scheme: dark)' | '@media (prefers-color-scheme: light)' | '@media (prefers-reduced-motion: reduce)' | '@media screen and (forced-colors: active), screen and (-ms-high-contrast: active)' | MediaQuery;
68
-
69
- // @public (undocumented)
70
- type AllowedElements = Exclude<keyof JSX.IntrinsicElements, SVGElements>;
71
-
72
- // @public (undocumented)
73
- const asAllowlist: readonly ["span", "p", "strong", "em"];
74
-
75
- // @public (undocumented)
76
- type AsElement = (typeof asAllowlist)[number];
77
-
78
- // @public (undocumented)
79
- type AtRulesWithoutMedia = Exclude<CSS_2.AtRules, '@media'>;
80
-
81
- // @public (undocumented)
82
- type AutoComplete<T extends string> = Omit<string, T> | T;
83
-
84
- // @public (undocumented)
85
- type AutoFlow = keyof typeof gridAutoFlowMap;
86
-
87
- // @public (undocumented)
88
- export type BackgroundColor = keyof typeof backgroundColorMap;
89
-
90
- // @public (undocumented)
91
- const backgroundColorMap: {
92
- readonly 'color.background.accent.lime.subtlest': "var(--ds-background-accent-lime-subtlest)";
93
- readonly 'color.background.accent.lime.subtlest.hovered': "var(--ds-background-accent-lime-subtlest-hovered)";
94
- readonly 'color.background.accent.lime.subtlest.pressed': "var(--ds-background-accent-lime-subtlest-pressed)";
95
- readonly 'color.background.accent.lime.subtler': "var(--ds-background-accent-lime-subtler)";
96
- readonly 'color.background.accent.lime.subtler.hovered': "var(--ds-background-accent-lime-subtler-hovered)";
97
- readonly 'color.background.accent.lime.subtler.pressed': "var(--ds-background-accent-lime-subtler-pressed)";
98
- readonly 'color.background.accent.lime.subtle': "var(--ds-background-accent-lime-subtle)";
99
- readonly 'color.background.accent.lime.subtle.hovered': "var(--ds-background-accent-lime-subtle-hovered)";
100
- readonly 'color.background.accent.lime.subtle.pressed': "var(--ds-background-accent-lime-subtle-pressed)";
101
- readonly 'color.background.accent.lime.bolder': "var(--ds-background-accent-lime-bolder)";
102
- readonly 'color.background.accent.lime.bolder.hovered': "var(--ds-background-accent-lime-bolder-hovered)";
103
- readonly 'color.background.accent.lime.bolder.pressed': "var(--ds-background-accent-lime-bolder-pressed)";
104
- readonly 'color.background.accent.red.subtlest': "var(--ds-background-accent-red-subtlest)";
105
- readonly 'color.background.accent.red.subtlest.hovered': "var(--ds-background-accent-red-subtlest-hovered)";
106
- readonly 'color.background.accent.red.subtlest.pressed': "var(--ds-background-accent-red-subtlest-pressed)";
107
- readonly 'color.background.accent.red.subtler': "var(--ds-background-accent-red-subtler)";
108
- readonly 'color.background.accent.red.subtler.hovered': "var(--ds-background-accent-red-subtler-hovered)";
109
- readonly 'color.background.accent.red.subtler.pressed': "var(--ds-background-accent-red-subtler-pressed)";
110
- readonly 'color.background.accent.red.subtle': "var(--ds-background-accent-red-subtle)";
111
- readonly 'color.background.accent.red.subtle.hovered': "var(--ds-background-accent-red-subtle-hovered)";
112
- readonly 'color.background.accent.red.subtle.pressed': "var(--ds-background-accent-red-subtle-pressed)";
113
- readonly 'color.background.accent.red.bolder': "var(--ds-background-accent-red-bolder)";
114
- readonly 'color.background.accent.red.bolder.hovered': "var(--ds-background-accent-red-bolder-hovered)";
115
- readonly 'color.background.accent.red.bolder.pressed': "var(--ds-background-accent-red-bolder-pressed)";
116
- readonly 'color.background.accent.orange.subtlest': "var(--ds-background-accent-orange-subtlest)";
117
- readonly 'color.background.accent.orange.subtlest.hovered': "var(--ds-background-accent-orange-subtlest-hovered)";
118
- readonly 'color.background.accent.orange.subtlest.pressed': "var(--ds-background-accent-orange-subtlest-pressed)";
119
- readonly 'color.background.accent.orange.subtler': "var(--ds-background-accent-orange-subtler)";
120
- readonly 'color.background.accent.orange.subtler.hovered': "var(--ds-background-accent-orange-subtler-hovered)";
121
- readonly 'color.background.accent.orange.subtler.pressed': "var(--ds-background-accent-orange-subtler-pressed)";
122
- readonly 'color.background.accent.orange.subtle': "var(--ds-background-accent-orange-subtle)";
123
- readonly 'color.background.accent.orange.subtle.hovered': "var(--ds-background-accent-orange-subtle-hovered)";
124
- readonly 'color.background.accent.orange.subtle.pressed': "var(--ds-background-accent-orange-subtle-pressed)";
125
- readonly 'color.background.accent.orange.bolder': "var(--ds-background-accent-orange-bolder)";
126
- readonly 'color.background.accent.orange.bolder.hovered': "var(--ds-background-accent-orange-bolder-hovered)";
127
- readonly 'color.background.accent.orange.bolder.pressed': "var(--ds-background-accent-orange-bolder-pressed)";
128
- readonly 'color.background.accent.yellow.subtlest': "var(--ds-background-accent-yellow-subtlest)";
129
- readonly 'color.background.accent.yellow.subtlest.hovered': "var(--ds-background-accent-yellow-subtlest-hovered)";
130
- readonly 'color.background.accent.yellow.subtlest.pressed': "var(--ds-background-accent-yellow-subtlest-pressed)";
131
- readonly 'color.background.accent.yellow.subtler': "var(--ds-background-accent-yellow-subtler)";
132
- readonly 'color.background.accent.yellow.subtler.hovered': "var(--ds-background-accent-yellow-subtler-hovered)";
133
- readonly 'color.background.accent.yellow.subtler.pressed': "var(--ds-background-accent-yellow-subtler-pressed)";
134
- readonly 'color.background.accent.yellow.subtle': "var(--ds-background-accent-yellow-subtle)";
135
- readonly 'color.background.accent.yellow.subtle.hovered': "var(--ds-background-accent-yellow-subtle-hovered)";
136
- readonly 'color.background.accent.yellow.subtle.pressed': "var(--ds-background-accent-yellow-subtle-pressed)";
137
- readonly 'color.background.accent.yellow.bolder': "var(--ds-background-accent-yellow-bolder)";
138
- readonly 'color.background.accent.yellow.bolder.hovered': "var(--ds-background-accent-yellow-bolder-hovered)";
139
- readonly 'color.background.accent.yellow.bolder.pressed': "var(--ds-background-accent-yellow-bolder-pressed)";
140
- readonly 'color.background.accent.green.subtlest': "var(--ds-background-accent-green-subtlest)";
141
- readonly 'color.background.accent.green.subtlest.hovered': "var(--ds-background-accent-green-subtlest-hovered)";
142
- readonly 'color.background.accent.green.subtlest.pressed': "var(--ds-background-accent-green-subtlest-pressed)";
143
- readonly 'color.background.accent.green.subtler': "var(--ds-background-accent-green-subtler)";
144
- readonly 'color.background.accent.green.subtler.hovered': "var(--ds-background-accent-green-subtler-hovered)";
145
- readonly 'color.background.accent.green.subtler.pressed': "var(--ds-background-accent-green-subtler-pressed)";
146
- readonly 'color.background.accent.green.subtle': "var(--ds-background-accent-green-subtle)";
147
- readonly 'color.background.accent.green.subtle.hovered': "var(--ds-background-accent-green-subtle-hovered)";
148
- readonly 'color.background.accent.green.subtle.pressed': "var(--ds-background-accent-green-subtle-pressed)";
149
- readonly 'color.background.accent.green.bolder': "var(--ds-background-accent-green-bolder)";
150
- readonly 'color.background.accent.green.bolder.hovered': "var(--ds-background-accent-green-bolder-hovered)";
151
- readonly 'color.background.accent.green.bolder.pressed': "var(--ds-background-accent-green-bolder-pressed)";
152
- readonly 'color.background.accent.teal.subtlest': "var(--ds-background-accent-teal-subtlest)";
153
- readonly 'color.background.accent.teal.subtlest.hovered': "var(--ds-background-accent-teal-subtlest-hovered)";
154
- readonly 'color.background.accent.teal.subtlest.pressed': "var(--ds-background-accent-teal-subtlest-pressed)";
155
- readonly 'color.background.accent.teal.subtler': "var(--ds-background-accent-teal-subtler)";
156
- readonly 'color.background.accent.teal.subtler.hovered': "var(--ds-background-accent-teal-subtler-hovered)";
157
- readonly 'color.background.accent.teal.subtler.pressed': "var(--ds-background-accent-teal-subtler-pressed)";
158
- readonly 'color.background.accent.teal.subtle': "var(--ds-background-accent-teal-subtle)";
159
- readonly 'color.background.accent.teal.subtle.hovered': "var(--ds-background-accent-teal-subtle-hovered)";
160
- readonly 'color.background.accent.teal.subtle.pressed': "var(--ds-background-accent-teal-subtle-pressed)";
161
- readonly 'color.background.accent.teal.bolder': "var(--ds-background-accent-teal-bolder)";
162
- readonly 'color.background.accent.teal.bolder.hovered': "var(--ds-background-accent-teal-bolder-hovered)";
163
- readonly 'color.background.accent.teal.bolder.pressed': "var(--ds-background-accent-teal-bolder-pressed)";
164
- readonly 'color.background.accent.blue.subtlest': "var(--ds-background-accent-blue-subtlest)";
165
- readonly 'color.background.accent.blue.subtlest.hovered': "var(--ds-background-accent-blue-subtlest-hovered)";
166
- readonly 'color.background.accent.blue.subtlest.pressed': "var(--ds-background-accent-blue-subtlest-pressed)";
167
- readonly 'color.background.accent.blue.subtler': "var(--ds-background-accent-blue-subtler)";
168
- readonly 'color.background.accent.blue.subtler.hovered': "var(--ds-background-accent-blue-subtler-hovered)";
169
- readonly 'color.background.accent.blue.subtler.pressed': "var(--ds-background-accent-blue-subtler-pressed)";
170
- readonly 'color.background.accent.blue.subtle': "var(--ds-background-accent-blue-subtle)";
171
- readonly 'color.background.accent.blue.subtle.hovered': "var(--ds-background-accent-blue-subtle-hovered)";
172
- readonly 'color.background.accent.blue.subtle.pressed': "var(--ds-background-accent-blue-subtle-pressed)";
173
- readonly 'color.background.accent.blue.bolder': "var(--ds-background-accent-blue-bolder)";
174
- readonly 'color.background.accent.blue.bolder.hovered': "var(--ds-background-accent-blue-bolder-hovered)";
175
- readonly 'color.background.accent.blue.bolder.pressed': "var(--ds-background-accent-blue-bolder-pressed)";
176
- readonly 'color.background.accent.purple.subtlest': "var(--ds-background-accent-purple-subtlest)";
177
- readonly 'color.background.accent.purple.subtlest.hovered': "var(--ds-background-accent-purple-subtlest-hovered)";
178
- readonly 'color.background.accent.purple.subtlest.pressed': "var(--ds-background-accent-purple-subtlest-pressed)";
179
- readonly 'color.background.accent.purple.subtler': "var(--ds-background-accent-purple-subtler)";
180
- readonly 'color.background.accent.purple.subtler.hovered': "var(--ds-background-accent-purple-subtler-hovered)";
181
- readonly 'color.background.accent.purple.subtler.pressed': "var(--ds-background-accent-purple-subtler-pressed)";
182
- readonly 'color.background.accent.purple.subtle': "var(--ds-background-accent-purple-subtle)";
183
- readonly 'color.background.accent.purple.subtle.hovered': "var(--ds-background-accent-purple-subtle-hovered)";
184
- readonly 'color.background.accent.purple.subtle.pressed': "var(--ds-background-accent-purple-subtle-pressed)";
185
- readonly 'color.background.accent.purple.bolder': "var(--ds-background-accent-purple-bolder)";
186
- readonly 'color.background.accent.purple.bolder.hovered': "var(--ds-background-accent-purple-bolder-hovered)";
187
- readonly 'color.background.accent.purple.bolder.pressed': "var(--ds-background-accent-purple-bolder-pressed)";
188
- readonly 'color.background.accent.magenta.subtlest': "var(--ds-background-accent-magenta-subtlest)";
189
- readonly 'color.background.accent.magenta.subtlest.hovered': "var(--ds-background-accent-magenta-subtlest-hovered)";
190
- readonly 'color.background.accent.magenta.subtlest.pressed': "var(--ds-background-accent-magenta-subtlest-pressed)";
191
- readonly 'color.background.accent.magenta.subtler': "var(--ds-background-accent-magenta-subtler)";
192
- readonly 'color.background.accent.magenta.subtler.hovered': "var(--ds-background-accent-magenta-subtler-hovered)";
193
- readonly 'color.background.accent.magenta.subtler.pressed': "var(--ds-background-accent-magenta-subtler-pressed)";
194
- readonly 'color.background.accent.magenta.subtle': "var(--ds-background-accent-magenta-subtle)";
195
- readonly 'color.background.accent.magenta.subtle.hovered': "var(--ds-background-accent-magenta-subtle-hovered)";
196
- readonly 'color.background.accent.magenta.subtle.pressed': "var(--ds-background-accent-magenta-subtle-pressed)";
197
- readonly 'color.background.accent.magenta.bolder': "var(--ds-background-accent-magenta-bolder)";
198
- readonly 'color.background.accent.magenta.bolder.hovered': "var(--ds-background-accent-magenta-bolder-hovered)";
199
- readonly 'color.background.accent.magenta.bolder.pressed': "var(--ds-background-accent-magenta-bolder-pressed)";
200
- readonly 'color.background.accent.gray.subtlest': "var(--ds-background-accent-gray-subtlest)";
201
- readonly 'color.background.accent.gray.subtlest.hovered': "var(--ds-background-accent-gray-subtlest-hovered)";
202
- readonly 'color.background.accent.gray.subtlest.pressed': "var(--ds-background-accent-gray-subtlest-pressed)";
203
- readonly 'color.background.accent.gray.subtler': "var(--ds-background-accent-gray-subtler)";
204
- readonly 'color.background.accent.gray.subtler.hovered': "var(--ds-background-accent-gray-subtler-hovered)";
205
- readonly 'color.background.accent.gray.subtler.pressed': "var(--ds-background-accent-gray-subtler-pressed)";
206
- readonly 'color.background.accent.gray.subtle': "var(--ds-background-accent-gray-subtle)";
207
- readonly 'color.background.accent.gray.subtle.hovered': "var(--ds-background-accent-gray-subtle-hovered)";
208
- readonly 'color.background.accent.gray.subtle.pressed': "var(--ds-background-accent-gray-subtle-pressed)";
209
- readonly 'color.background.accent.gray.bolder': "var(--ds-background-accent-gray-bolder)";
210
- readonly 'color.background.accent.gray.bolder.hovered': "var(--ds-background-accent-gray-bolder-hovered)";
211
- readonly 'color.background.accent.gray.bolder.pressed': "var(--ds-background-accent-gray-bolder-pressed)";
212
- readonly 'color.background.disabled': "var(--ds-background-disabled)";
213
- readonly 'color.background.input': "var(--ds-background-input)";
214
- readonly 'color.background.input.hovered': "var(--ds-background-input-hovered)";
215
- readonly 'color.background.input.pressed': "var(--ds-background-input-pressed)";
216
- readonly 'color.background.inverse.subtle': "var(--ds-background-inverse-subtle)";
217
- readonly 'color.background.inverse.subtle.hovered': "var(--ds-background-inverse-subtle-hovered)";
218
- readonly 'color.background.inverse.subtle.pressed': "var(--ds-background-inverse-subtle-pressed)";
219
- readonly 'color.background.neutral': "var(--ds-background-neutral)";
220
- readonly 'color.background.neutral.hovered': "var(--ds-background-neutral-hovered)";
221
- readonly 'color.background.neutral.pressed': "var(--ds-background-neutral-pressed)";
222
- readonly 'color.background.neutral.subtle': "var(--ds-background-neutral-subtle)";
223
- readonly 'color.background.neutral.subtle.hovered': "var(--ds-background-neutral-subtle-hovered)";
224
- readonly 'color.background.neutral.subtle.pressed': "var(--ds-background-neutral-subtle-pressed)";
225
- readonly 'color.background.neutral.bold': "var(--ds-background-neutral-bold)";
226
- readonly 'color.background.neutral.bold.hovered': "var(--ds-background-neutral-bold-hovered)";
227
- readonly 'color.background.neutral.bold.pressed': "var(--ds-background-neutral-bold-pressed)";
228
- readonly 'color.background.selected': "var(--ds-background-selected)";
229
- readonly 'color.background.selected.hovered': "var(--ds-background-selected-hovered)";
230
- readonly 'color.background.selected.pressed': "var(--ds-background-selected-pressed)";
231
- readonly 'color.background.selected.bold': "var(--ds-background-selected-bold)";
232
- readonly 'color.background.selected.bold.hovered': "var(--ds-background-selected-bold-hovered)";
233
- readonly 'color.background.selected.bold.pressed': "var(--ds-background-selected-bold-pressed)";
234
- readonly 'color.background.brand.subtlest': "var(--ds-background-brand-subtlest)";
235
- readonly 'color.background.brand.subtlest.hovered': "var(--ds-background-brand-subtlest-hovered)";
236
- readonly 'color.background.brand.subtlest.pressed': "var(--ds-background-brand-subtlest-pressed)";
237
- readonly 'color.background.brand.bold': "var(--ds-background-brand-bold)";
238
- readonly 'color.background.brand.bold.hovered': "var(--ds-background-brand-bold-hovered)";
239
- readonly 'color.background.brand.bold.pressed': "var(--ds-background-brand-bold-pressed)";
240
- readonly 'color.background.brand.boldest': "var(--ds-background-brand-boldest)";
241
- readonly 'color.background.brand.boldest.hovered': "var(--ds-background-brand-boldest-hovered)";
242
- readonly 'color.background.brand.boldest.pressed': "var(--ds-background-brand-boldest-pressed)";
243
- readonly 'color.background.danger': "var(--ds-background-danger)";
244
- readonly 'color.background.danger.hovered': "var(--ds-background-danger-hovered)";
245
- readonly 'color.background.danger.pressed': "var(--ds-background-danger-pressed)";
246
- readonly 'color.background.danger.bold': "var(--ds-background-danger-bold)";
247
- readonly 'color.background.danger.bold.hovered': "var(--ds-background-danger-bold-hovered)";
248
- readonly 'color.background.danger.bold.pressed': "var(--ds-background-danger-bold-pressed)";
249
- readonly 'color.background.warning': "var(--ds-background-warning)";
250
- readonly 'color.background.warning.hovered': "var(--ds-background-warning-hovered)";
251
- readonly 'color.background.warning.pressed': "var(--ds-background-warning-pressed)";
252
- readonly 'color.background.warning.bold': "var(--ds-background-warning-bold)";
253
- readonly 'color.background.warning.bold.hovered': "var(--ds-background-warning-bold-hovered)";
254
- readonly 'color.background.warning.bold.pressed': "var(--ds-background-warning-bold-pressed)";
255
- readonly 'color.background.success': "var(--ds-background-success)";
256
- readonly 'color.background.success.hovered': "var(--ds-background-success-hovered)";
257
- readonly 'color.background.success.pressed': "var(--ds-background-success-pressed)";
258
- readonly 'color.background.success.bold': "var(--ds-background-success-bold)";
259
- readonly 'color.background.success.bold.hovered': "var(--ds-background-success-bold-hovered)";
260
- readonly 'color.background.success.bold.pressed': "var(--ds-background-success-bold-pressed)";
261
- readonly 'color.background.discovery': "var(--ds-background-discovery)";
262
- readonly 'color.background.discovery.hovered': "var(--ds-background-discovery-hovered)";
263
- readonly 'color.background.discovery.pressed': "var(--ds-background-discovery-pressed)";
264
- readonly 'color.background.discovery.bold': "var(--ds-background-discovery-bold)";
265
- readonly 'color.background.discovery.bold.hovered': "var(--ds-background-discovery-bold-hovered)";
266
- readonly 'color.background.discovery.bold.pressed': "var(--ds-background-discovery-bold-pressed)";
267
- readonly 'color.background.information': "var(--ds-background-information)";
268
- readonly 'color.background.information.hovered': "var(--ds-background-information-hovered)";
269
- readonly 'color.background.information.pressed': "var(--ds-background-information-pressed)";
270
- readonly 'color.background.information.bold': "var(--ds-background-information-bold)";
271
- readonly 'color.background.information.bold.hovered': "var(--ds-background-information-bold-hovered)";
272
- readonly 'color.background.information.bold.pressed': "var(--ds-background-information-bold-pressed)";
273
- readonly 'color.blanket': "var(--ds-blanket)";
274
- readonly 'color.blanket.selected': "var(--ds-blanket-selected)";
275
- readonly 'color.blanket.danger': "var(--ds-blanket-danger)";
276
- readonly 'elevation.surface': "var(--ds-surface)";
277
- readonly 'elevation.surface.hovered': "var(--ds-surface-hovered)";
278
- readonly 'elevation.surface.pressed': "var(--ds-surface-pressed)";
279
- readonly 'elevation.surface.overlay': "var(--ds-surface-overlay)";
280
- readonly 'elevation.surface.overlay.hovered': "var(--ds-surface-overlay-hovered)";
281
- readonly 'elevation.surface.overlay.pressed': "var(--ds-surface-overlay-pressed)";
282
- readonly 'elevation.surface.raised': "var(--ds-surface-raised)";
283
- readonly 'elevation.surface.raised.hovered': "var(--ds-surface-raised-hovered)";
284
- readonly 'elevation.surface.raised.pressed': "var(--ds-surface-raised-pressed)";
285
- readonly 'elevation.surface.sunken': "var(--ds-surface-sunken)";
286
- readonly 'utility.elevation.surface.current': "var(--ds-elevation-surface-current)";
287
- };
288
-
289
- // @public (undocumented)
290
- type BaseBoxProps<T extends CustomElementType> = {
291
- as?: T;
292
- children?: ReactNode;
293
- backgroundColor?: BackgroundColor;
294
- padding?: Space;
295
- paddingBlock?: Space;
296
- paddingBlockStart?: Space;
297
- paddingBlockEnd?: Space;
298
- paddingInline?: Space;
299
- paddingInlineStart?: Space;
300
- paddingInlineEnd?: Space;
301
- ref?: ComponentPropsWithRef<T>['ref'];
302
- };
303
-
304
- // @public (undocumented)
305
- type BasePrimitiveProps = {
306
- testId?: string;
307
- xcss?: Array<XCSS | false | undefined> | XCSS;
308
- role?: string;
309
- };
310
-
311
- // @public
312
- export const Bleed: MemoExoticComponent<({ children, testId, inline, block, all, xcss }: BleedProps) => jsx.JSX.Element>;
313
-
314
- // @public (undocumented)
315
- export type BleedProps = {
316
- children: ReactNode;
317
- all?: Space_2;
318
- inline?: Space_2;
319
- block?: Space_2;
320
- } & BasePrimitiveProps;
321
-
322
- // @public (undocumented)
323
- type BodyText = keyof typeof bodyTextMap;
324
-
325
- // @public (undocumented)
326
- const bodyTextMap: {
327
- body: "var(--ds-font-body)";
328
- 'body.large': "var(--ds-font-body-large)";
329
- 'body.small': "var(--ds-font-body-small)";
330
- };
331
-
332
- // @public (undocumented)
333
- export type BorderColor = keyof typeof borderColorMap;
334
-
335
- // @public
336
- const borderColorMap: {
337
- readonly 'color.border': "var(--ds-border)";
338
- readonly 'color.border.accent.lime': "var(--ds-border-accent-lime)";
339
- readonly 'color.border.accent.red': "var(--ds-border-accent-red)";
340
- readonly 'color.border.accent.orange': "var(--ds-border-accent-orange)";
341
- readonly 'color.border.accent.yellow': "var(--ds-border-accent-yellow)";
342
- readonly 'color.border.accent.green': "var(--ds-border-accent-green)";
343
- readonly 'color.border.accent.teal': "var(--ds-border-accent-teal)";
344
- readonly 'color.border.accent.blue': "var(--ds-border-accent-blue)";
345
- readonly 'color.border.accent.purple': "var(--ds-border-accent-purple)";
346
- readonly 'color.border.accent.magenta': "var(--ds-border-accent-magenta)";
347
- readonly 'color.border.accent.gray': "var(--ds-border-accent-gray)";
348
- readonly 'color.border.disabled': "var(--ds-border-disabled)";
349
- readonly 'color.border.focused': "var(--ds-border-focused)";
350
- readonly 'color.border.input': "var(--ds-border-input)";
351
- readonly 'color.border.inverse': "var(--ds-border-inverse)";
352
- readonly 'color.border.selected': "var(--ds-border-selected)";
353
- readonly 'color.border.brand': "var(--ds-border-brand)";
354
- readonly 'color.border.danger': "var(--ds-border-danger)";
355
- readonly 'color.border.warning': "var(--ds-border-warning)";
356
- readonly 'color.border.success': "var(--ds-border-success)";
357
- readonly 'color.border.discovery': "var(--ds-border-discovery)";
358
- readonly 'color.border.information': "var(--ds-border-information)";
359
- readonly 'color.border.bold': "var(--ds-border-bold)";
360
- };
361
-
362
- // @public (undocumented)
363
- export type BorderRadius = keyof typeof borderRadiusMap;
364
-
365
- // @public (undocumented)
366
- const borderRadiusMap: {
367
- readonly 'border.radius.050': "var(--ds-border-radius-050)";
368
- readonly 'border.radius': "var(--ds-border-radius)";
369
- readonly 'border.radius.100': "var(--ds-border-radius-100)";
370
- readonly 'border.radius.200': "var(--ds-border-radius-200)";
371
- readonly 'border.radius.300': "var(--ds-border-radius-300)";
372
- readonly 'border.radius.400': "var(--ds-border-radius-400)";
373
- readonly 'border.radius.circle': "var(--ds-border-radius-circle)";
374
- };
375
-
376
- // @public (undocumented)
377
- export type BorderWidth = keyof typeof borderWidthMap;
378
-
379
- // @public
380
- const borderWidthMap: {
381
- readonly 'border.width': "var(--ds-border-width)";
382
- readonly 'border.width.0': "var(--ds-border-width-0)";
383
- readonly 'border.width.indicator': "var(--ds-border-width-indicator)";
384
- readonly 'border.width.outline': "var(--ds-border-width-outline)";
385
- };
386
-
387
- // @public
388
- export const Box: BoxComponent;
389
-
390
- // @public (undocumented)
391
- type BoxComponent = <T extends CustomElementType>(props: BoxProps<T>) => ReactElement | null;
392
-
393
- // @public (undocumented)
394
- export type BoxProps<T extends CustomElementType> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className'> & BasePrimitiveProps & StyleProp & BaseBoxProps<T>;
395
-
396
- // @public
397
- export type Breakpoint = 'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxs';
398
-
399
- // @public (undocumented)
400
- type CSSAtRules = {
401
- [AtRule in AtRulesWithoutMedia as `${AtRule}${string}`]?: Omit<SafeCSSObject, AtRulesWithoutMedia>;
402
- };
403
-
404
- // @public (undocumented)
405
- type CSSMediaQueries = {
406
- [MQ in AllMedia]?: Omit<SafeCSSObject, AllMedia>;
407
- };
408
-
409
- // @public (undocumented)
410
- type CSSPseudos = {
411
- [Pseudo in CSS_2.Pseudos]?: Omit<SafeCSSObject, AllMedia | CSS_2.Pseudos>;
412
- };
413
-
414
- // @public (undocumented)
415
- type CustomElementType<P = any> = {
416
- [K in AllowedElements]: P extends JSX.IntrinsicElements[K] ? K : never;
417
- }[AllowedElements];
418
-
419
- // @public (undocumented)
420
- export type Dimension = keyof typeof dimensionMap;
421
-
422
- // @public
423
- const dimensionMap: {
424
- readonly '100%': "100%";
425
- readonly 'size.100': "1rem";
426
- readonly 'size.200': "1.5rem";
427
- readonly 'size.300': "2rem";
428
- readonly 'size.400': "2.5rem";
429
- readonly 'size.500': "3rem";
430
- readonly 'size.600': "6rem";
431
- readonly 'size.1000': "12rem";
432
- };
433
-
434
- // @public (undocumented)
435
- type Direction = keyof typeof flexDirectionMap;
436
-
437
- // @public
438
- export const Flex: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
439
- as?: "div" | "li" | "ol" | "span" | "ul" | undefined;
440
- justifyContent?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
441
- alignItems?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
442
- columnGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
443
- gap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
444
- rowGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
445
- direction?: "column" | "row" | undefined;
446
- wrap?: "nowrap" | "wrap" | undefined;
447
- children: ReactNode;
448
- ref?: any;
449
- } & BasePrimitiveProps, "alignItems" | "as" | "children" | "columnGap" | "direction" | "gap" | "justifyContent" | "rowGap" | "wrap" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
450
-
451
- // @public (undocumented)
452
- const flexDirectionMap: {
453
- readonly column: SerializedStyles_2;
454
- readonly row: SerializedStyles_2;
455
- };
456
-
457
- // @public (undocumented)
458
- export type FlexProps<T extends ElementType = 'div'> = {
459
- as?: 'div' | 'li' | 'ol' | 'span' | 'ul';
460
- justifyContent?: JustifyContent;
461
- alignItems?: AlignItems;
462
- columnGap?: Space;
463
- gap?: Space;
464
- rowGap?: Space;
465
- direction?: Direction;
466
- wrap?: Wrap;
467
- children: ReactNode;
468
- ref?: React.ComponentPropsWithRef<T>['ref'];
469
- } & BasePrimitiveProps;
470
-
471
- // @public (undocumented)
472
- const flexWrapMap: {
473
- readonly wrap: SerializedStyles_2;
474
- readonly nowrap: SerializedStyles_2;
475
- };
476
-
477
- // @public
478
- export const Grid: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
479
- as?: "div" | "ol" | "span" | "ul" | undefined;
480
- justifyContent?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
481
- justifyItems?: "center" | "end" | "start" | "stretch" | undefined;
482
- alignItems?: "baseline" | "center" | "end" | "start" | undefined;
483
- alignContent?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
484
- columnGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
485
- gap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
486
- rowGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
487
- autoFlow?: "column dense" | "column" | "dense" | "row dense" | "row" | undefined;
488
- templateRows?: string | undefined;
489
- templateColumns?: string | undefined;
490
- templateAreas?: string[] | undefined;
491
- children: ReactNode;
492
- id?: string | undefined;
493
- ref?: any;
494
- } & BasePrimitiveProps, "alignContent" | "alignItems" | "as" | "autoFlow" | "children" | "columnGap" | "gap" | "id" | "justifyContent" | "justifyItems" | "rowGap" | "templateAreas" | "templateColumns" | "templateRows" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
495
-
496
- // @public (undocumented)
497
- const gridAutoFlowMap: {
498
- readonly row: SerializedStyles_2;
499
- readonly column: SerializedStyles_2;
500
- readonly dense: SerializedStyles_2;
501
- readonly 'row dense': SerializedStyles_2;
502
- readonly 'column dense': SerializedStyles_2;
503
- };
504
-
505
- // @public (undocumented)
506
- export type GridProps<T extends ElementType = 'div'> = {
507
- as?: 'div' | 'ol' | 'span' | 'ul';
508
- justifyContent?: JustifyContent_2;
509
- justifyItems?: JustifyItems;
510
- alignItems?: AlignItems_2;
511
- alignContent?: AlignContent;
512
- columnGap?: Space;
513
- gap?: Space;
514
- rowGap?: Space;
515
- autoFlow?: AutoFlow;
516
- templateRows?: string;
517
- templateColumns?: string;
518
- templateAreas?: string[];
519
- children: ReactNode;
520
- id?: string;
521
- ref?: React.ComponentPropsWithRef<T>['ref'];
522
- } & BasePrimitiveProps;
523
-
524
- // @public (undocumented)
525
- type Grow = 'fill' | 'hug';
526
-
527
- // @public
528
- export const Inline: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
529
- as?: "div" | "li" | "ol" | "span" | "ul" | undefined;
530
- alignBlock?: AlignBlock | undefined;
531
- alignInline?: AlignInline | undefined;
532
- shouldWrap?: boolean | undefined;
533
- spread?: "space-between" | undefined;
534
- grow?: Grow | undefined;
535
- space?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
536
- rowSpace?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
537
- separator?: string | undefined;
538
- children: ReactNode;
539
- ref?: any;
540
- } & BasePrimitiveProps, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "rowSpace" | "separator" | "shouldWrap" | "space" | "spread" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
541
-
542
- // @public (undocumented)
543
- export type InlineProps<T extends ElementType = 'div'> = {
544
- as?: 'div' | 'li' | 'ol' | 'span' | 'ul';
545
- alignBlock?: AlignBlock;
546
- alignInline?: AlignInline;
547
- shouldWrap?: boolean;
548
- spread?: Spread;
549
- grow?: Grow;
550
- space?: Space;
551
- rowSpace?: Space;
552
- separator?: string;
553
- children: ReactNode;
554
- ref?: React.ComponentPropsWithRef<T>['ref'];
555
- } & BasePrimitiveProps;
556
-
557
- // @public (undocumented)
558
- type JustifyContent = keyof typeof justifyContentMap;
559
-
560
- // @public (undocumented)
561
- type JustifyContent_2 = keyof typeof justifyContentMap_2;
562
-
563
- // @public (undocumented)
564
- const justifyContentMap: {
565
- readonly start: SerializedStyles_2;
566
- readonly center: SerializedStyles_2;
567
- readonly end: SerializedStyles_2;
568
- readonly 'space-between': SerializedStyles_2;
569
- readonly 'space-around': SerializedStyles_2;
570
- readonly 'space-evenly': SerializedStyles_2;
571
- readonly stretch: SerializedStyles_2;
572
- };
573
-
574
- // @public (undocumented)
575
- const justifyContentMap_2: {
576
- readonly start: SerializedStyles_2;
577
- readonly center: SerializedStyles_2;
578
- readonly end: SerializedStyles_2;
579
- readonly 'space-between': SerializedStyles_2;
580
- readonly 'space-around': SerializedStyles_2;
581
- readonly 'space-evenly': SerializedStyles_2;
582
- readonly stretch: SerializedStyles_2;
583
- };
584
-
585
- // @public (undocumented)
586
- type JustifyItems = keyof typeof justifyItemsMap;
587
-
588
- // @public (undocumented)
589
- const justifyItemsMap: {
590
- readonly start: SerializedStyles_2;
591
- readonly center: SerializedStyles_2;
592
- readonly end: SerializedStyles_2;
593
- readonly stretch: SerializedStyles_2;
594
- };
595
-
596
- // @public (undocumented)
597
- export type Layer = keyof typeof layerMap;
598
-
599
- // @public
600
- const layerMap: {
601
- readonly card: 100;
602
- readonly navigation: 200;
603
- readonly dialog: 300;
604
- readonly layer: 400;
605
- readonly blanket: 500;
606
- readonly modal: 510;
607
- readonly flag: 600;
608
- readonly spotlight: 700;
609
- readonly tooltip: 800;
610
- };
611
-
612
- // @public (undocumented)
613
- type MarginSpace = 'auto' | NegativeSpace | Space;
614
-
615
- // @public
616
- export const media: SafeMedia;
617
-
618
- // @public
619
- type MediaQuery = (typeof media.above)[Breakpoint];
620
-
621
- // @public (undocumented)
622
- type NegativeSpace = keyof typeof negativeSpaceMap;
623
-
624
- // @public (undocumented)
625
- const negativeSpaceMap: {
626
- 'space.negative.025': "var(--ds-space-negative-025)";
627
- 'space.negative.050': "var(--ds-space-negative-050)";
628
- 'space.negative.075': "var(--ds-space-negative-075)";
629
- 'space.negative.100': "var(--ds-space-negative-100)";
630
- 'space.negative.150': "var(--ds-space-negative-150)";
631
- 'space.negative.200': "var(--ds-space-negative-200)";
632
- 'space.negative.250': "var(--ds-space-negative-250)";
633
- 'space.negative.300': "var(--ds-space-negative-300)";
634
- 'space.negative.400': "var(--ds-space-negative-400)";
635
- };
636
-
637
- // @public (undocumented)
638
- type Opacity = keyof typeof opacityMap;
639
-
640
- // @public
641
- const opacityMap: {
642
- readonly 'opacity.disabled': "var(--ds-opacity-disabled)";
643
- readonly 'opacity.loading': "var(--ds-opacity-loading)";
644
- };
645
-
646
- // @public (undocumented)
647
- type SafeCSSObject = CSSPseudos & CSSAtRules & TokenisedProps & CSSMediaQueries & Omit<CSSPropertiesWithMultiValues, keyof TokenisedProps>;
648
-
649
- // @public
650
- type SafeMedia = Pick<typeof UNSAFE_media, 'above'>;
651
-
652
- // @public (undocumented)
653
- export type Shadow = keyof typeof shadowMap;
654
-
655
- // @public (undocumented)
656
- const shadowMap: {
657
- readonly 'elevation.shadow.overflow': "var(--ds-shadow-overflow)";
658
- readonly 'elevation.shadow.overflow.perimeter': "var(--ds-shadow-overflow-perimeter)";
659
- readonly 'elevation.shadow.overflow.spread': "var(--ds-shadow-overflow-spread)";
660
- readonly 'elevation.shadow.overlay': "var(--ds-shadow-overlay)";
661
- readonly 'elevation.shadow.raised': "var(--ds-shadow-raised)";
662
- };
663
-
664
- // @public (undocumented)
665
- export type Space = keyof typeof spaceMap;
666
-
667
- // @public (undocumented)
668
- type Space_2 = 'space.025' | 'space.050' | 'space.100' | 'space.150' | 'space.200';
669
-
670
- // @public
671
- const spaceMap: {
672
- 'space.0': "var(--ds-space-0)";
673
- 'space.025': "var(--ds-space-025)";
674
- 'space.050': "var(--ds-space-050)";
675
- 'space.075': "var(--ds-space-075)";
676
- 'space.100': "var(--ds-space-100)";
677
- 'space.150': "var(--ds-space-150)";
678
- 'space.200': "var(--ds-space-200)";
679
- 'space.250': "var(--ds-space-250)";
680
- 'space.300': "var(--ds-space-300)";
681
- 'space.400': "var(--ds-space-400)";
682
- 'space.500': "var(--ds-space-500)";
683
- 'space.600': "var(--ds-space-600)";
684
- 'space.800': "var(--ds-space-800)";
685
- 'space.1000': "var(--ds-space-1000)";
686
- };
687
-
688
- // @public (undocumented)
689
- type Spread = 'space-between';
690
-
691
- // @public
692
- export const Stack: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
693
- as?: "div" | "ol" | "span" | "ul" | undefined;
694
- alignBlock?: "center" | "end" | "start" | "stretch" | undefined;
695
- alignInline?: AlignInline | undefined;
696
- spread?: "space-between" | undefined;
697
- grow?: Grow | undefined;
698
- space?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
699
- children: ReactNode;
700
- ref?: any;
701
- } & BasePrimitiveProps, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "space" | "spread" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
702
-
703
- // @public (undocumented)
704
- export type StackProps<T extends ElementType = 'div'> = {
705
- as?: 'div' | 'ol' | 'span' | 'ul';
706
- alignBlock?: Exclude<AlignBlock, 'baseline'>;
707
- alignInline?: AlignInline;
708
- spread?: Spread;
709
- grow?: Grow;
710
- space?: Space;
711
- children: ReactNode;
712
- ref?: React.ComponentPropsWithRef<T>['ref'];
713
- } & BasePrimitiveProps;
714
-
715
- // @public (undocumented)
716
- type StyleProp = {
717
- style?: CSSProperties;
718
- };
719
-
720
- // @public (undocumented)
721
- type SVGElements = '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' | 'svg' | 'switch' | 'symbol' | 'text' | 'textPath' | 'tspan' | 'use' | 'view';
722
-
723
- // @internal
724
- const Text_2: FC<TextProps>;
725
- export { Text_2 as Text }
726
-
727
- // @public (undocumented)
728
- type TextAlign = keyof typeof textAlignMap;
729
-
730
- // @public (undocumented)
731
- const textAlignMap: {
732
- center: SerializedStyles_2;
733
- end: SerializedStyles_2;
734
- start: SerializedStyles_2;
735
- };
736
-
737
- // @public (undocumented)
738
- export type TextColor = keyof typeof textColorMap;
739
-
740
- // @public (undocumented)
741
- const textColorMap: {
742
- readonly 'color.text': "var(--ds-text)";
743
- readonly 'color.text.accent.lime': "var(--ds-text-accent-lime)";
744
- readonly 'color.text.accent.lime.bolder': "var(--ds-text-accent-lime-bolder)";
745
- readonly 'color.text.accent.red': "var(--ds-text-accent-red)";
746
- readonly 'color.text.accent.red.bolder': "var(--ds-text-accent-red-bolder)";
747
- readonly 'color.text.accent.orange': "var(--ds-text-accent-orange)";
748
- readonly 'color.text.accent.orange.bolder': "var(--ds-text-accent-orange-bolder)";
749
- readonly 'color.text.accent.yellow': "var(--ds-text-accent-yellow)";
750
- readonly 'color.text.accent.yellow.bolder': "var(--ds-text-accent-yellow-bolder)";
751
- readonly 'color.text.accent.green': "var(--ds-text-accent-green)";
752
- readonly 'color.text.accent.green.bolder': "var(--ds-text-accent-green-bolder)";
753
- readonly 'color.text.accent.teal': "var(--ds-text-accent-teal)";
754
- readonly 'color.text.accent.teal.bolder': "var(--ds-text-accent-teal-bolder)";
755
- readonly 'color.text.accent.blue': "var(--ds-text-accent-blue)";
756
- readonly 'color.text.accent.blue.bolder': "var(--ds-text-accent-blue-bolder)";
757
- readonly 'color.text.accent.purple': "var(--ds-text-accent-purple)";
758
- readonly 'color.text.accent.purple.bolder': "var(--ds-text-accent-purple-bolder)";
759
- readonly 'color.text.accent.magenta': "var(--ds-text-accent-magenta)";
760
- readonly 'color.text.accent.magenta.bolder': "var(--ds-text-accent-magenta-bolder)";
761
- readonly 'color.text.accent.gray': "var(--ds-text-accent-gray)";
762
- readonly 'color.text.accent.gray.bolder': "var(--ds-text-accent-gray-bolder)";
763
- readonly 'color.text.disabled': "var(--ds-text-disabled)";
764
- readonly 'color.text.inverse': "var(--ds-text-inverse)";
765
- readonly 'color.text.selected': "var(--ds-text-selected)";
766
- readonly 'color.text.brand': "var(--ds-text-brand)";
767
- readonly 'color.text.danger': "var(--ds-text-danger)";
768
- readonly 'color.text.warning': "var(--ds-text-warning)";
769
- readonly 'color.text.warning.inverse': "var(--ds-text-warning-inverse)";
770
- readonly 'color.text.success': "var(--ds-text-success)";
771
- readonly 'color.text.discovery': "var(--ds-text-discovery)";
772
- readonly 'color.text.information': "var(--ds-text-information)";
773
- readonly 'color.text.subtlest': "var(--ds-text-subtlest)";
774
- readonly 'color.text.subtle': "var(--ds-text-subtle)";
775
- readonly 'color.link': "var(--ds-link)";
776
- readonly 'color.link.pressed': "var(--ds-link-pressed)";
777
- readonly 'color.link.visited': "var(--ds-link-visited)";
778
- };
779
-
780
- // @public (undocumented)
781
- export interface TextProps extends BasePrimitiveProps {
782
- as?: AsElement;
783
- children: ReactNode;
784
- color?: TextColor;
785
- id?: string;
786
- shouldTruncate?: boolean;
787
- textAlign?: TextAlign;
788
- variant?: Variant;
789
- }
790
-
791
- // @public (undocumented)
792
- type TokenisedProps = {
793
- backgroundColor?: BackgroundColor;
794
- blockSize?: AutoComplete<Dimension>;
795
- borderBlockColor?: AutoComplete<BorderColor>;
796
- borderBlockEndColor?: AutoComplete<BorderColor>;
797
- borderBlockEndWidth?: AutoComplete<BorderWidth>;
798
- borderBlockStartColor?: AutoComplete<BorderColor>;
799
- borderBlockStartWidth?: AutoComplete<BorderWidth>;
800
- borderBlockWidth?: AutoComplete<BorderWidth>;
801
- borderBottomColor?: AutoComplete<BorderColor>;
802
- borderBottomLeftRadius?: AutoComplete<BorderRadius>;
803
- borderBottomRightRadius?: AutoComplete<BorderRadius>;
804
- borderBottomWidth?: AutoComplete<BorderWidth>;
805
- borderColor?: BorderColor;
806
- borderEndEndRadius?: AutoComplete<BorderRadius>;
807
- borderEndStartRadius?: AutoComplete<BorderRadius>;
808
- borderInlineColor?: AutoComplete<BorderColor>;
809
- borderInlineEndColor?: AutoComplete<BorderColor>;
810
- borderInlineEndWidth?: AutoComplete<BorderWidth>;
811
- borderInlineStartColor?: AutoComplete<BorderColor>;
812
- borderInlineStartWidth?: AutoComplete<BorderWidth>;
813
- borderInlineWidth?: AutoComplete<BorderWidth>;
814
- borderLeftColor?: AutoComplete<BorderColor>;
815
- borderLeftWidth?: AutoComplete<BorderWidth>;
816
- borderRadius?: BorderRadius;
817
- borderRightColor?: AutoComplete<BorderColor>;
818
- borderRightWidth?: AutoComplete<BorderWidth>;
819
- borderStartEndRadius?: AutoComplete<BorderRadius>;
820
- borderStartStartRadius?: AutoComplete<BorderRadius>;
821
- borderTopColor?: AutoComplete<BorderColor>;
822
- borderTopLeftRadius?: AutoComplete<BorderRadius>;
823
- borderTopRightRadius?: AutoComplete<BorderRadius>;
824
- borderTopWidth?: AutoComplete<BorderWidth>;
825
- borderWidth?: BorderWidth;
826
- bottom?: AutoComplete<Space>;
827
- boxShadow?: Shadow;
828
- color?: TextColor;
829
- columnGap?: Space;
830
- gap?: Space;
831
- height?: AutoComplete<Dimension>;
832
- inlineSize?: AutoComplete<Dimension>;
833
- inset?: Space;
834
- insetBlock?: Space;
835
- insetBlockEnd?: Space;
836
- insetBlockStart?: Space;
837
- insetInline?: Space;
838
- insetInlineEnd?: Space;
839
- insetInlineStart?: Space;
840
- left?: AutoComplete<Space>;
841
- margin?: AutoComplete<MarginSpace>;
842
- marginBlock?: AutoComplete<MarginSpace>;
843
- marginBlockEnd?: AutoComplete<MarginSpace>;
844
- marginBlockStart?: AutoComplete<MarginSpace>;
845
- marginBottom?: AutoComplete<MarginSpace>;
846
- marginInline?: AutoComplete<MarginSpace>;
847
- marginInlineEnd?: AutoComplete<MarginSpace>;
848
- marginInlineStart?: AutoComplete<MarginSpace>;
849
- marginLeft?: AutoComplete<MarginSpace>;
850
- marginRight?: AutoComplete<MarginSpace>;
851
- marginTop?: AutoComplete<MarginSpace>;
852
- maxBlockSize?: AutoComplete<Dimension>;
853
- maxHeight?: AutoComplete<Dimension>;
854
- maxInlineSize?: AutoComplete<Dimension>;
855
- maxWidth?: AutoComplete<Dimension>;
856
- minBlockSize?: AutoComplete<Dimension>;
857
- minHeight?: AutoComplete<Dimension>;
858
- minInlineSize?: AutoComplete<Dimension>;
859
- minWidth?: AutoComplete<Dimension>;
860
- opacity?: AutoComplete<Opacity> | number;
861
- outlineColor?: BorderColor;
862
- outlineOffset?: Space;
863
- outlineWidth?: BorderWidth;
864
- padding?: Space;
865
- paddingBlock?: Space;
866
- paddingBlockEnd?: Space;
867
- paddingBlockStart?: Space;
868
- paddingBottom?: AutoComplete<Space>;
869
- paddingInline?: Space;
870
- paddingInlineEnd?: Space;
871
- paddingInlineStart?: Space;
872
- paddingLeft?: AutoComplete<Space>;
873
- paddingRight?: AutoComplete<Space>;
874
- paddingTop?: AutoComplete<Space>;
875
- right?: AutoComplete<Space>;
876
- rowGap?: Space;
877
- top?: AutoComplete<Space>;
878
- width?: AutoComplete<Dimension>;
879
- zIndex?: Layer;
880
- };
881
-
882
- // @public (undocumented)
883
- type UiText = keyof typeof uiTextMap;
884
-
885
- // @public (undocumented)
886
- const uiTextMap: {
887
- ui: "var(--ds-font-ui)";
888
- 'ui.small': "var(--ds-font-ui-small)";
889
- };
890
-
891
- // @public (undocumented)
892
- const uniqueSymbol: unique symbol;
893
-
894
- // @public
895
- export const UNSAFE_BREAKPOINTS_CONFIG: {
896
- readonly xxs: {
897
- readonly gridItemGutter: "var(--ds-space-200)";
898
- readonly gridMargin: "var(--ds-space-200)";
899
- readonly min: "0rem";
900
- readonly max: "29.99rem";
901
- };
902
- readonly xs: {
903
- readonly gridItemGutter: "var(--ds-space-200)";
904
- readonly gridMargin: "var(--ds-space-200)";
905
- readonly min: "30rem";
906
- readonly max: "47.99rem";
907
- };
908
- readonly sm: {
909
- readonly gridItemGutter: "var(--ds-space-200)";
910
- readonly gridMargin: "var(--ds-space-300)";
911
- readonly min: "48rem";
912
- readonly max: "63.99rem";
913
- };
914
- readonly md: {
915
- readonly gridItemGutter: "var(--ds-space-300)";
916
- readonly gridMargin: "var(--ds-space-400)";
917
- readonly min: "64rem";
918
- readonly max: "89.99rem";
919
- };
920
- readonly lg: {
921
- readonly gridItemGutter: "var(--ds-space-400)";
922
- readonly gridMargin: "var(--ds-space-400)";
923
- readonly min: "90rem";
924
- readonly max: "109.99rem";
925
- };
926
- readonly xl: {
927
- readonly gridItemGutter: "var(--ds-space-400)";
928
- readonly gridMargin: "var(--ds-space-500)";
929
- readonly min: "110rem";
930
- readonly max: null;
931
- };
932
- };
933
-
934
- // @internal
935
- export const UNSAFE_media: {
936
- above: {
937
- readonly xxs: "@media all";
938
- readonly xs: "@media (min-width: 30rem)";
939
- readonly sm: "@media (min-width: 48rem)";
940
- readonly md: "@media (min-width: 64rem)";
941
- readonly lg: "@media (min-width: 90rem)";
942
- readonly xl: "@media (min-width: 110rem)";
943
- };
944
- below: {
945
- readonly xs: "@media not all and (min-width: 30rem)";
946
- readonly sm: "@media not all and (min-width: 48rem)";
947
- readonly md: "@media not all and (min-width: 64rem)";
948
- readonly lg: "@media not all and (min-width: 90rem)";
949
- readonly xl: "@media not all and (min-width: 110rem)";
950
- };
951
- only: {
952
- readonly xxs: "@media (min-width: 0rem) and (max-width: 29.99rem)";
953
- readonly xs: "@media (min-width: 30rem) and (max-width: 47.99rem)";
954
- readonly sm: "@media (min-width: 48rem) and (max-width: 63.99rem)";
955
- readonly md: "@media (min-width: 64rem) and (max-width: 89.99rem)";
956
- readonly lg: "@media (min-width: 90rem) and (max-width: 109.99rem)";
957
- readonly xl: "@media (min-width: 110rem)";
958
- };
959
- };
960
-
961
- // @public (undocumented)
962
- type Variant = BodyText | UiText;
963
-
964
- // @public (undocumented)
965
- type Wrap = keyof typeof flexWrapMap;
966
-
967
- // @public (undocumented)
968
- type XCSS = ReturnType<typeof xcss>;
969
-
970
- // @public
971
- export function xcss(style: SafeCSSObject): {
972
- readonly [uniqueSymbol]: SerializedStyles;
973
- };
974
-
975
- // (No @packageDocumentation comment for this package)
976
-
977
- ```