@atlaskit/primitives 1.0.2 → 1.0.3

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.
@@ -1,755 +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
- /// <reference types="react" />
8
-
9
- import { ComponentPropsWithoutRef } from 'react';
10
- import type * as CSS_2 from 'csstype';
11
- import type { CSSProperties } from 'react';
12
- import type { CSSPropertiesWithMultiValues } from '@emotion/serialize';
13
- import { ElementType } from 'react';
14
- import { FC } from 'react';
15
- import { ForwardRefExoticComponent } from 'react';
16
- import { JSXElementConstructor } from 'react';
17
- import { MemoExoticComponent } from 'react';
18
- import { ReactElement } from 'react';
19
- import { ReactNode } from 'react';
20
- import { RefAttributes } from 'react';
21
- import type { SerializedStyles } from '@emotion/serialize';
22
- import { SerializedStyles as SerializedStyles_2 } from '@emotion/react';
23
-
24
- // @public (undocumented)
25
- type AlignBlock = 'baseline' | 'center' | 'end' | 'start' | 'stretch';
26
-
27
- // @public (undocumented)
28
- type AlignBlock_2 = 'center' | 'end' | 'start';
29
-
30
- // @public (undocumented)
31
- type AlignInline = 'center' | 'end' | 'start';
32
-
33
- // @public (undocumented)
34
- type AlignInline_2 = 'center' | 'end' | 'start';
35
-
36
- // @public (undocumented)
37
- type AlignItems = keyof typeof alignItemsMap;
38
-
39
- // @public (undocumented)
40
- type AlignItems_2 = keyof typeof alignItemsMap_2;
41
-
42
- // @public (undocumented)
43
- const alignItemsMap: {
44
- readonly start: SerializedStyles_2;
45
- readonly center: SerializedStyles_2;
46
- readonly baseline: SerializedStyles_2;
47
- readonly end: SerializedStyles_2;
48
- readonly stretch: SerializedStyles_2;
49
- };
50
-
51
- // @public (undocumented)
52
- const alignItemsMap_2: {
53
- readonly start: SerializedStyles_2;
54
- readonly center: SerializedStyles_2;
55
- readonly baseline: SerializedStyles_2;
56
- readonly end: SerializedStyles_2;
57
- };
58
-
59
- // @public (undocumented)
60
- type AllowedBoxStyles = keyof SafeCSSObject;
61
-
62
- // @public (undocumented)
63
- type As = 'article' | 'aside' | 'button' | 'dialog' | 'div' | 'footer' | 'header' | 'li' | 'main' | 'nav' | 'ol' | 'section' | 'span' | 'ul';
64
-
65
- // @public (undocumented)
66
- type AutoComplete<T extends string> = Omit<string, T> | T;
67
-
68
- // @public (undocumented)
69
- type AutoFlow = keyof typeof gridAutoFlowMap;
70
-
71
- // @public (undocumented)
72
- export type BackgroundColor = keyof typeof backgroundColorMap;
73
-
74
- // @public (undocumented)
75
- const backgroundColorMap: {
76
- readonly 'color.background.accent.lime.subtlest': "var(--ds-background-accent-lime-subtlest)";
77
- readonly 'color.background.accent.lime.subtler': "var(--ds-background-accent-lime-subtler)";
78
- readonly 'color.background.accent.lime.subtle': "var(--ds-background-accent-lime-subtle)";
79
- readonly 'color.background.accent.lime.bolder': "var(--ds-background-accent-lime-bolder)";
80
- readonly 'color.background.accent.red.subtlest': "var(--ds-background-accent-red-subtlest)";
81
- readonly 'color.background.accent.red.subtler': "var(--ds-background-accent-red-subtler)";
82
- readonly 'color.background.accent.red.subtle': "var(--ds-background-accent-red-subtle)";
83
- readonly 'color.background.accent.red.bolder': "var(--ds-background-accent-red-bolder)";
84
- readonly 'color.background.accent.orange.subtlest': "var(--ds-background-accent-orange-subtlest)";
85
- readonly 'color.background.accent.orange.subtler': "var(--ds-background-accent-orange-subtler)";
86
- readonly 'color.background.accent.orange.subtle': "var(--ds-background-accent-orange-subtle)";
87
- readonly 'color.background.accent.orange.bolder': "var(--ds-background-accent-orange-bolder)";
88
- readonly 'color.background.accent.yellow.subtlest': "var(--ds-background-accent-yellow-subtlest)";
89
- readonly 'color.background.accent.yellow.subtler': "var(--ds-background-accent-yellow-subtler)";
90
- readonly 'color.background.accent.yellow.subtle': "var(--ds-background-accent-yellow-subtle)";
91
- readonly 'color.background.accent.yellow.bolder': "var(--ds-background-accent-yellow-bolder)";
92
- readonly 'color.background.accent.green.subtlest': "var(--ds-background-accent-green-subtlest)";
93
- readonly 'color.background.accent.green.subtler': "var(--ds-background-accent-green-subtler)";
94
- readonly 'color.background.accent.green.subtle': "var(--ds-background-accent-green-subtle)";
95
- readonly 'color.background.accent.green.bolder': "var(--ds-background-accent-green-bolder)";
96
- readonly 'color.background.accent.teal.subtlest': "var(--ds-background-accent-teal-subtlest)";
97
- readonly 'color.background.accent.teal.subtler': "var(--ds-background-accent-teal-subtler)";
98
- readonly 'color.background.accent.teal.subtle': "var(--ds-background-accent-teal-subtle)";
99
- readonly 'color.background.accent.teal.bolder': "var(--ds-background-accent-teal-bolder)";
100
- readonly 'color.background.accent.blue.subtlest': "var(--ds-background-accent-blue-subtlest)";
101
- readonly 'color.background.accent.blue.subtler': "var(--ds-background-accent-blue-subtler)";
102
- readonly 'color.background.accent.blue.subtle': "var(--ds-background-accent-blue-subtle)";
103
- readonly 'color.background.accent.blue.bolder': "var(--ds-background-accent-blue-bolder)";
104
- readonly 'color.background.accent.purple.subtlest': "var(--ds-background-accent-purple-subtlest)";
105
- readonly 'color.background.accent.purple.subtler': "var(--ds-background-accent-purple-subtler)";
106
- readonly 'color.background.accent.purple.subtle': "var(--ds-background-accent-purple-subtle)";
107
- readonly 'color.background.accent.purple.bolder': "var(--ds-background-accent-purple-bolder)";
108
- readonly 'color.background.accent.magenta.subtlest': "var(--ds-background-accent-magenta-subtlest)";
109
- readonly 'color.background.accent.magenta.subtler': "var(--ds-background-accent-magenta-subtler)";
110
- readonly 'color.background.accent.magenta.subtle': "var(--ds-background-accent-magenta-subtle)";
111
- readonly 'color.background.accent.magenta.bolder': "var(--ds-background-accent-magenta-bolder)";
112
- readonly 'color.background.accent.gray.subtlest': "var(--ds-background-accent-gray-subtlest)";
113
- readonly 'color.background.accent.gray.subtler': "var(--ds-background-accent-gray-subtler)";
114
- readonly 'color.background.accent.gray.subtle': "var(--ds-background-accent-gray-subtle)";
115
- readonly 'color.background.accent.gray.bolder': "var(--ds-background-accent-gray-bolder)";
116
- readonly 'color.background.disabled': "var(--ds-background-disabled)";
117
- readonly 'color.background.input': "var(--ds-background-input)";
118
- readonly 'color.background.input.hovered': "var(--ds-background-input-hovered)";
119
- readonly 'color.background.input.pressed': "var(--ds-background-input-pressed)";
120
- readonly 'color.background.inverse.subtle': "var(--ds-background-inverse-subtle)";
121
- readonly 'color.background.inverse.subtle.hovered': "var(--ds-background-inverse-subtle-hovered)";
122
- readonly 'color.background.inverse.subtle.pressed': "var(--ds-background-inverse-subtle-pressed)";
123
- readonly 'color.background.neutral': "var(--ds-background-neutral)";
124
- readonly 'color.background.neutral.hovered': "var(--ds-background-neutral-hovered)";
125
- readonly 'color.background.neutral.pressed': "var(--ds-background-neutral-pressed)";
126
- readonly 'color.background.neutral.subtle': "var(--ds-background-neutral-subtle)";
127
- readonly 'color.background.neutral.subtle.hovered': "var(--ds-background-neutral-subtle-hovered)";
128
- readonly 'color.background.neutral.subtle.pressed': "var(--ds-background-neutral-subtle-pressed)";
129
- readonly 'color.background.neutral.bold': "var(--ds-background-neutral-bold)";
130
- readonly 'color.background.neutral.bold.hovered': "var(--ds-background-neutral-bold-hovered)";
131
- readonly 'color.background.neutral.bold.pressed': "var(--ds-background-neutral-bold-pressed)";
132
- readonly 'color.background.selected': "var(--ds-background-selected)";
133
- readonly 'color.background.selected.hovered': "var(--ds-background-selected-hovered)";
134
- readonly 'color.background.selected.pressed': "var(--ds-background-selected-pressed)";
135
- readonly 'color.background.selected.bold': "var(--ds-background-selected-bold)";
136
- readonly 'color.background.selected.bold.hovered': "var(--ds-background-selected-bold-hovered)";
137
- readonly 'color.background.selected.bold.pressed': "var(--ds-background-selected-bold-pressed)";
138
- readonly 'color.background.brand.bold': "var(--ds-background-brand-bold)";
139
- readonly 'color.background.brand.bold.hovered': "var(--ds-background-brand-bold-hovered)";
140
- readonly 'color.background.brand.bold.pressed': "var(--ds-background-brand-bold-pressed)";
141
- readonly 'color.background.danger': "var(--ds-background-danger)";
142
- readonly 'color.background.danger.hovered': "var(--ds-background-danger-hovered)";
143
- readonly 'color.background.danger.pressed': "var(--ds-background-danger-pressed)";
144
- readonly 'color.background.danger.bold': "var(--ds-background-danger-bold)";
145
- readonly 'color.background.danger.bold.hovered': "var(--ds-background-danger-bold-hovered)";
146
- readonly 'color.background.danger.bold.pressed': "var(--ds-background-danger-bold-pressed)";
147
- readonly 'color.background.warning': "var(--ds-background-warning)";
148
- readonly 'color.background.warning.hovered': "var(--ds-background-warning-hovered)";
149
- readonly 'color.background.warning.pressed': "var(--ds-background-warning-pressed)";
150
- readonly 'color.background.warning.bold': "var(--ds-background-warning-bold)";
151
- readonly 'color.background.warning.bold.hovered': "var(--ds-background-warning-bold-hovered)";
152
- readonly 'color.background.warning.bold.pressed': "var(--ds-background-warning-bold-pressed)";
153
- readonly 'color.background.success': "var(--ds-background-success)";
154
- readonly 'color.background.success.hovered': "var(--ds-background-success-hovered)";
155
- readonly 'color.background.success.pressed': "var(--ds-background-success-pressed)";
156
- readonly 'color.background.success.bold': "var(--ds-background-success-bold)";
157
- readonly 'color.background.success.bold.hovered': "var(--ds-background-success-bold-hovered)";
158
- readonly 'color.background.success.bold.pressed': "var(--ds-background-success-bold-pressed)";
159
- readonly 'color.background.discovery': "var(--ds-background-discovery)";
160
- readonly 'color.background.discovery.hovered': "var(--ds-background-discovery-hovered)";
161
- readonly 'color.background.discovery.pressed': "var(--ds-background-discovery-pressed)";
162
- readonly 'color.background.discovery.bold': "var(--ds-background-discovery-bold)";
163
- readonly 'color.background.discovery.bold.hovered': "var(--ds-background-discovery-bold-hovered)";
164
- readonly 'color.background.discovery.bold.pressed': "var(--ds-background-discovery-bold-pressed)";
165
- readonly 'color.background.information': "var(--ds-background-information)";
166
- readonly 'color.background.information.hovered': "var(--ds-background-information-hovered)";
167
- readonly 'color.background.information.pressed': "var(--ds-background-information-pressed)";
168
- readonly 'color.background.information.bold': "var(--ds-background-information-bold)";
169
- readonly 'color.background.information.bold.hovered': "var(--ds-background-information-bold-hovered)";
170
- readonly 'color.background.information.bold.pressed': "var(--ds-background-information-bold-pressed)";
171
- readonly 'color.blanket': "var(--ds-blanket)";
172
- readonly 'color.blanket.selected': "var(--ds-blanket-selected)";
173
- readonly 'color.blanket.danger': "var(--ds-blanket-danger)";
174
- readonly 'elevation.surface': "var(--ds-surface)";
175
- readonly 'elevation.surface.hovered': "var(--ds-surface-hovered)";
176
- readonly 'elevation.surface.pressed': "var(--ds-surface-pressed)";
177
- readonly 'elevation.surface.overlay': "var(--ds-surface-overlay)";
178
- readonly 'elevation.surface.overlay.hovered': "var(--ds-surface-overlay-hovered)";
179
- readonly 'elevation.surface.overlay.pressed': "var(--ds-surface-overlay-pressed)";
180
- readonly 'elevation.surface.raised': "var(--ds-surface-raised)";
181
- readonly 'elevation.surface.raised.hovered': "var(--ds-surface-raised-hovered)";
182
- readonly 'elevation.surface.raised.pressed': "var(--ds-surface-raised-pressed)";
183
- readonly 'elevation.surface.sunken': "var(--ds-surface-sunken)";
184
- };
185
-
186
- // @public (undocumented)
187
- type BaseBoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className'> & BasePrimitiveProps & BaseBoxPropsFoundation<T>;
188
-
189
- // @public (undocumented)
190
- type BaseBoxPropsFoundation<T extends ElementType = 'div'> = {
191
- as?: As;
192
- className?: string;
193
- children?: ReactNode;
194
- backgroundColor?: BackgroundColor;
195
- padding?: Space;
196
- paddingBlock?: Space;
197
- paddingBlockStart?: Space;
198
- paddingBlockEnd?: Space;
199
- paddingInline?: Space;
200
- paddingInlineStart?: Space;
201
- paddingInlineEnd?: Space;
202
- ref?: React.ComponentPropsWithRef<T>['ref'];
203
- };
204
-
205
- // @public (undocumented)
206
- type BasePrimitiveProps = {
207
- testId?: string;
208
- style?: CSSProperties;
209
- xcss?: BoxXCSS | BoxXCSS[];
210
- };
211
-
212
- // @public (undocumented)
213
- export type BorderColor = keyof typeof borderColorMap;
214
-
215
- // @public
216
- const borderColorMap: {
217
- readonly 'color.border': "var(--ds-border)";
218
- readonly 'color.border.accent.lime': "var(--ds-border-accent-lime)";
219
- readonly 'color.border.accent.red': "var(--ds-border-accent-red)";
220
- readonly 'color.border.accent.orange': "var(--ds-border-accent-orange)";
221
- readonly 'color.border.accent.yellow': "var(--ds-border-accent-yellow)";
222
- readonly 'color.border.accent.green': "var(--ds-border-accent-green)";
223
- readonly 'color.border.accent.teal': "var(--ds-border-accent-teal)";
224
- readonly 'color.border.accent.blue': "var(--ds-border-accent-blue)";
225
- readonly 'color.border.accent.purple': "var(--ds-border-accent-purple)";
226
- readonly 'color.border.accent.magenta': "var(--ds-border-accent-magenta)";
227
- readonly 'color.border.accent.gray': "var(--ds-border-accent-gray)";
228
- readonly 'color.border.disabled': "var(--ds-border-disabled)";
229
- readonly 'color.border.focused': "var(--ds-border-focused)";
230
- readonly 'color.border.input': "var(--ds-border-input)";
231
- readonly 'color.border.inverse': "var(--ds-border-inverse)";
232
- readonly 'color.border.selected': "var(--ds-border-selected)";
233
- readonly 'color.border.brand': "var(--ds-border-brand)";
234
- readonly 'color.border.danger': "var(--ds-border-danger)";
235
- readonly 'color.border.warning': "var(--ds-border-warning)";
236
- readonly 'color.border.success': "var(--ds-border-success)";
237
- readonly 'color.border.discovery': "var(--ds-border-discovery)";
238
- readonly 'color.border.information': "var(--ds-border-information)";
239
- readonly 'color.border.bold': "var(--ds-border-bold)";
240
- };
241
-
242
- // @public (undocumented)
243
- export type BorderRadius = keyof typeof borderRadiusMap;
244
-
245
- // @public (undocumented)
246
- const borderRadiusMap: {
247
- readonly 'border.radius.050': "var(--ds-border-radius-050)";
248
- readonly 'border.radius': "var(--ds-border-radius)";
249
- readonly 'border.radius.100': "var(--ds-border-radius-100)";
250
- readonly 'border.radius.200': "var(--ds-border-radius-200)";
251
- readonly 'border.radius.300': "var(--ds-border-radius-300)";
252
- readonly 'border.radius.400': "var(--ds-border-radius-400)";
253
- readonly 'border.radius.circle': "var(--ds-border-radius-circle)";
254
- };
255
-
256
- // @public (undocumented)
257
- export type BorderWidth = keyof typeof borderWidthMap;
258
-
259
- // @public
260
- const borderWidthMap: {
261
- readonly 'border.width': "var(--ds-border-width)";
262
- readonly 'border.width.0': "var(--ds-border-width-0)";
263
- readonly 'border.width.indicator': "var(--ds-border-width-indicator)";
264
- readonly 'border.width.outline': "var(--ds-border-width-outline)";
265
- };
266
-
267
- // @public
268
- export const Box: BoxComponent;
269
-
270
- // @public (undocumented)
271
- type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
272
-
273
- // @public (undocumented)
274
- export type BoxProps<T extends ElementType = 'div'> = Omit<BaseBoxProps<T>, 'className'>;
275
-
276
- // @public (undocumented)
277
- type BoxStyles = SerializedStyles & {
278
- [boxTag]: true;
279
- };
280
-
281
- // @public (undocumented)
282
- const boxTag: unique symbol;
283
-
284
- // @public (undocumented)
285
- type BoxXCSS = false | undefined | {
286
- readonly [uniqueSymbol]: BoxStyles;
287
- };
288
-
289
- // @public
290
- export type Breakpoint = 'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxs';
291
-
292
- // @public (undocumented)
293
- type CSSMediaQueries = {
294
- [MQ in MediaQuery]?: Omit<SafeCSSObject, MediaQuery>;
295
- };
296
-
297
- // @public (undocumented)
298
- type CSSPseudos = {
299
- [Pseudo in CSS_2.Pseudos]?: Omit<SafeCSSObject, CSS_2.Pseudos | MediaQuery>;
300
- };
301
-
302
- // @public (undocumented)
303
- export type Dimension = keyof typeof dimensionMap;
304
-
305
- // @public
306
- const dimensionMap: {
307
- readonly '100%': "100%";
308
- readonly 'size.100': "1rem";
309
- readonly 'size.200': "1.5rem";
310
- readonly 'size.300': "2rem";
311
- readonly 'size.400': "2.5rem";
312
- readonly 'size.500': "3rem";
313
- readonly 'size.600': "6rem";
314
- readonly 'size.1000': "12rem";
315
- };
316
-
317
- // @public (undocumented)
318
- type Direction = keyof typeof flexDirectionMap;
319
-
320
- // @public
321
- export const Flex: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
322
- as?: "div" | "li" | "ol" | "span" | "ul" | undefined;
323
- justifyContent?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
324
- alignItems?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
325
- 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;
326
- 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;
327
- 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;
328
- direction?: "column" | "row" | undefined;
329
- wrap?: "nowrap" | "wrap" | undefined;
330
- children: ReactNode;
331
- ref?: any;
332
- } & BasePrimitiveProps, "alignItems" | "as" | "children" | "columnGap" | "direction" | "gap" | "justifyContent" | "rowGap" | "wrap" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
333
-
334
- // @public (undocumented)
335
- const flexDirectionMap: {
336
- readonly column: SerializedStyles_2;
337
- readonly row: SerializedStyles_2;
338
- };
339
-
340
- // @public (undocumented)
341
- export type FlexProps<T extends ElementType = 'div'> = {
342
- as?: 'div' | 'li' | 'ol' | 'span' | 'ul';
343
- justifyContent?: JustifyContent;
344
- alignItems?: AlignItems;
345
- columnGap?: Space;
346
- gap?: Space;
347
- rowGap?: Space;
348
- direction?: Direction;
349
- wrap?: Wrap;
350
- children: ReactNode;
351
- ref?: React.ComponentPropsWithRef<T>['ref'];
352
- } & BasePrimitiveProps;
353
-
354
- // @public (undocumented)
355
- const flexWrapMap: {
356
- readonly wrap: SerializedStyles_2;
357
- readonly nowrap: SerializedStyles_2;
358
- };
359
-
360
- // @public
361
- export const Grid: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
362
- as?: "div" | "ol" | "span" | "ul" | undefined;
363
- justifyContent?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
364
- alignItems?: "baseline" | "center" | "end" | "start" | undefined;
365
- 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;
366
- 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;
367
- 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;
368
- autoFlow?: "column dense" | "column" | "dense" | "row dense" | "row" | undefined;
369
- templateRows?: string | undefined;
370
- templateColumns?: string | undefined;
371
- templateAreas?: string[] | undefined;
372
- children: ReactNode;
373
- ref?: any;
374
- } & BasePrimitiveProps, "alignItems" | "as" | "autoFlow" | "children" | "columnGap" | "gap" | "justifyContent" | "rowGap" | "templateAreas" | "templateColumns" | "templateRows" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
375
-
376
- // @public (undocumented)
377
- const gridAutoFlowMap: {
378
- readonly row: SerializedStyles_2;
379
- readonly column: SerializedStyles_2;
380
- readonly dense: SerializedStyles_2;
381
- readonly 'row dense': SerializedStyles_2;
382
- readonly 'column dense': SerializedStyles_2;
383
- };
384
-
385
- // @public (undocumented)
386
- export type GridProps<T extends ElementType = 'div'> = {
387
- as?: 'div' | 'ol' | 'span' | 'ul';
388
- justifyContent?: JustifyContent_2;
389
- alignItems?: AlignItems_2;
390
- columnGap?: Space;
391
- gap?: Space;
392
- rowGap?: Space;
393
- autoFlow?: AutoFlow;
394
- templateRows?: string;
395
- templateColumns?: string;
396
- templateAreas?: string[];
397
- children: ReactNode;
398
- ref?: React.ComponentPropsWithRef<T>['ref'];
399
- } & BasePrimitiveProps;
400
-
401
- // @public (undocumented)
402
- type Grow = 'fill' | 'hug';
403
-
404
- // @public (undocumented)
405
- type Grow_2 = 'fill' | 'hug';
406
-
407
- // @public
408
- export const Inline: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
409
- as?: "div" | "li" | "ol" | "span" | "ul" | undefined;
410
- alignBlock?: AlignBlock | undefined;
411
- alignInline?: AlignInline | undefined;
412
- shouldWrap?: boolean | undefined;
413
- spread?: "space-between" | undefined;
414
- grow?: Grow | undefined;
415
- 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;
416
- 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;
417
- separator?: string | undefined;
418
- children: ReactNode;
419
- ref?: any;
420
- } & BasePrimitiveProps, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "rowSpace" | "separator" | "shouldWrap" | "space" | "spread" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
421
-
422
- // @public (undocumented)
423
- export type InlineProps<T extends ElementType = 'div'> = {
424
- as?: 'div' | 'li' | 'ol' | 'span' | 'ul';
425
- alignBlock?: AlignBlock;
426
- alignInline?: AlignInline;
427
- shouldWrap?: boolean;
428
- spread?: Spread;
429
- grow?: Grow;
430
- space?: Space;
431
- rowSpace?: Space;
432
- separator?: string;
433
- children: ReactNode;
434
- ref?: React.ComponentPropsWithRef<T>['ref'];
435
- } & BasePrimitiveProps;
436
-
437
- // @public (undocumented)
438
- type JustifyContent = keyof typeof justifyContentMap;
439
-
440
- // @public (undocumented)
441
- type JustifyContent_2 = keyof typeof justifyContentMap_2;
442
-
443
- // @public (undocumented)
444
- const justifyContentMap: {
445
- readonly start: SerializedStyles_2;
446
- readonly center: SerializedStyles_2;
447
- readonly end: SerializedStyles_2;
448
- readonly 'space-between': SerializedStyles_2;
449
- readonly 'space-around': SerializedStyles_2;
450
- readonly 'space-evenly': SerializedStyles_2;
451
- readonly stretch: SerializedStyles_2;
452
- };
453
-
454
- // @public (undocumented)
455
- const justifyContentMap_2: {
456
- readonly start: SerializedStyles_2;
457
- readonly center: SerializedStyles_2;
458
- readonly end: SerializedStyles_2;
459
- readonly 'space-between': SerializedStyles_2;
460
- readonly 'space-around': SerializedStyles_2;
461
- readonly 'space-evenly': SerializedStyles_2;
462
- readonly stretch: SerializedStyles_2;
463
- };
464
-
465
- // @public (undocumented)
466
- export type Layer = keyof typeof layerMap;
467
-
468
- // @public
469
- const layerMap: {
470
- readonly card: 100;
471
- readonly navigation: 200;
472
- readonly dialog: 300;
473
- readonly layer: 400;
474
- readonly blanket: 500;
475
- readonly modal: 510;
476
- readonly flag: 600;
477
- readonly spotlight: 700;
478
- readonly tooltip: 800;
479
- };
480
-
481
- // @public
482
- export const media: {
483
- readonly above: {
484
- readonly xxs: "@media all";
485
- readonly xs: "@media (min-width: 30rem)";
486
- readonly sm: "@media (min-width: 48rem)";
487
- readonly md: "@media (min-width: 64rem)";
488
- readonly lg: "@media (min-width: 90rem)";
489
- readonly xl: "@media (min-width: 110rem)";
490
- };
491
- };
492
-
493
- // @public
494
- type MediaQuery = (typeof media.above)[Breakpoint];
495
-
496
- // @public
497
- export const Pressable: PressableComponent;
498
-
499
- // @public (undocumented)
500
- type PressableComponent = (props: PressableProps, displayName: string) => ReactElement | null;
501
-
502
- // @public (undocumented)
503
- export type PressableProps = Omit<BaseBoxProps<'button'>, 'as' | 'children' | 'disabled' | 'role' | 'style'> & {
504
- children: ReactNode;
505
- isDisabled?: boolean;
506
- };
507
-
508
- // @public (undocumented)
509
- type SafeCSSObject = CSSPseudos & TokenisedProps & CSSMediaQueries & Omit<CSSPropertiesWithMultiValues, keyof TokenisedProps>;
510
-
511
- // @public (undocumented)
512
- type ScopedSafeCSSObject<T extends keyof SafeCSSObject> = Pick<SafeCSSObject, T>;
513
-
514
- // @public (undocumented)
515
- export type Shadow = keyof typeof shadowMap;
516
-
517
- // @public (undocumented)
518
- const shadowMap: {
519
- readonly 'elevation.shadow.overflow': "var(--ds-shadow-overflow)";
520
- readonly 'elevation.shadow.overflow.perimeter': "var(--ds-shadow-overflow-perimeter)";
521
- readonly 'elevation.shadow.overflow.spread': "var(--ds-shadow-overflow-spread)";
522
- readonly 'elevation.shadow.overlay': "var(--ds-shadow-overlay)";
523
- readonly 'elevation.shadow.raised': "var(--ds-shadow-raised)";
524
- };
525
-
526
- // @public (undocumented)
527
- export type Space = keyof typeof spaceMap;
528
-
529
- // @public
530
- const spaceMap: {
531
- 'space.0': "var(--ds-space-0)";
532
- 'space.025': "var(--ds-space-025)";
533
- 'space.050': "var(--ds-space-050)";
534
- 'space.075': "var(--ds-space-075)";
535
- 'space.100': "var(--ds-space-100)";
536
- 'space.150': "var(--ds-space-150)";
537
- 'space.200': "var(--ds-space-200)";
538
- 'space.250': "var(--ds-space-250)";
539
- 'space.300': "var(--ds-space-300)";
540
- 'space.400': "var(--ds-space-400)";
541
- 'space.500': "var(--ds-space-500)";
542
- 'space.600': "var(--ds-space-600)";
543
- 'space.800': "var(--ds-space-800)";
544
- 'space.1000': "var(--ds-space-1000)";
545
- };
546
-
547
- // @public (undocumented)
548
- type SpaceStyles = SerializedStyles & {
549
- [spaceTag]: true;
550
- };
551
-
552
- // @public (undocumented)
553
- const spaceTag: unique symbol;
554
-
555
- // @public (undocumented)
556
- type Spacing = 'columnGap' | 'gap' | 'inset' | 'insetBlock' | 'insetBlockEnd' | 'insetBlockStart' | 'insetInline' | 'insetInlineEnd' | 'insetInlineStart' | 'margin' | 'marginBlock' | 'marginBlockEnd' | 'marginBlockStart' | 'marginInline' | 'marginInlineEnd' | 'marginInlineStart' | 'outlineOffset' | 'padding' | 'paddingBlock' | 'paddingBlockEnd' | 'paddingBlockStart' | 'paddingBottom' | 'paddingInline' | 'paddingInlineEnd' | 'paddingInlineStart' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'rowGap';
557
-
558
- // @public (undocumented)
559
- type Spread = 'space-between';
560
-
561
- // @public (undocumented)
562
- type Spread_2 = 'space-between';
563
-
564
- // @public
565
- export const Stack: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
566
- as?: "div" | "ol" | "span" | "ul" | undefined;
567
- alignBlock?: AlignBlock_2 | undefined;
568
- alignInline?: AlignInline_2 | undefined;
569
- spread?: "space-between" | undefined;
570
- grow?: Grow_2 | undefined;
571
- 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;
572
- children: ReactNode;
573
- ref?: any;
574
- } & BasePrimitiveProps, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "space" | "spread" | keyof BasePrimitiveProps> & RefAttributes<any>>>;
575
-
576
- // @public (undocumented)
577
- export type StackProps<T extends ElementType = 'div'> = {
578
- as?: 'div' | 'ol' | 'span' | 'ul';
579
- alignBlock?: AlignBlock_2;
580
- alignInline?: AlignInline_2;
581
- spread?: Spread_2;
582
- grow?: Grow_2;
583
- space?: Space;
584
- children: ReactNode;
585
- ref?: React.ComponentPropsWithRef<T>['ref'];
586
- } & BasePrimitiveProps;
587
-
588
- // @public (undocumented)
589
- type TextColor = keyof typeof textColorMap;
590
-
591
- // @public (undocumented)
592
- const textColorMap: {
593
- readonly 'color.text': "var(--ds-text)";
594
- readonly 'color.text.accent.lime': "var(--ds-text-accent-lime)";
595
- readonly 'color.text.accent.lime.bolder': "var(--ds-text-accent-lime-bolder)";
596
- readonly 'color.text.accent.red': "var(--ds-text-accent-red)";
597
- readonly 'color.text.accent.red.bolder': "var(--ds-text-accent-red-bolder)";
598
- readonly 'color.text.accent.orange': "var(--ds-text-accent-orange)";
599
- readonly 'color.text.accent.orange.bolder': "var(--ds-text-accent-orange-bolder)";
600
- readonly 'color.text.accent.yellow': "var(--ds-text-accent-yellow)";
601
- readonly 'color.text.accent.yellow.bolder': "var(--ds-text-accent-yellow-bolder)";
602
- readonly 'color.text.accent.green': "var(--ds-text-accent-green)";
603
- readonly 'color.text.accent.green.bolder': "var(--ds-text-accent-green-bolder)";
604
- readonly 'color.text.accent.teal': "var(--ds-text-accent-teal)";
605
- readonly 'color.text.accent.teal.bolder': "var(--ds-text-accent-teal-bolder)";
606
- readonly 'color.text.accent.blue': "var(--ds-text-accent-blue)";
607
- readonly 'color.text.accent.blue.bolder': "var(--ds-text-accent-blue-bolder)";
608
- readonly 'color.text.accent.purple': "var(--ds-text-accent-purple)";
609
- readonly 'color.text.accent.purple.bolder': "var(--ds-text-accent-purple-bolder)";
610
- readonly 'color.text.accent.magenta': "var(--ds-text-accent-magenta)";
611
- readonly 'color.text.accent.magenta.bolder': "var(--ds-text-accent-magenta-bolder)";
612
- readonly 'color.text.accent.gray': "var(--ds-text-accent-gray)";
613
- readonly 'color.text.accent.gray.bolder': "var(--ds-text-accent-gray-bolder)";
614
- readonly 'color.text.disabled': "var(--ds-text-disabled)";
615
- readonly 'color.text.inverse': "var(--ds-text-inverse)";
616
- readonly 'color.text.selected': "var(--ds-text-selected)";
617
- readonly 'color.text.brand': "var(--ds-text-brand)";
618
- readonly 'color.text.danger': "var(--ds-text-danger)";
619
- readonly 'color.text.warning': "var(--ds-text-warning)";
620
- readonly 'color.text.warning.inverse': "var(--ds-text-warning-inverse)";
621
- readonly 'color.text.success': "var(--ds-text-success)";
622
- readonly 'color.text.discovery': "var(--ds-text-discovery)";
623
- readonly 'color.text.information': "var(--ds-text-information)";
624
- readonly 'color.text.subtlest': "var(--ds-text-subtlest)";
625
- readonly 'color.text.subtle': "var(--ds-text-subtle)";
626
- };
627
-
628
- // @public (undocumented)
629
- type TokenisedProps = {
630
- backgroundColor?: BackgroundColor;
631
- blockSize?: AutoComplete<Dimension>;
632
- borderColor?: BorderColor;
633
- borderRadius?: BorderRadius;
634
- borderWidth?: BorderWidth;
635
- bottom?: AutoComplete<Space>;
636
- boxShadow?: Shadow;
637
- color?: TextColor;
638
- columnGap?: Space;
639
- gap?: Space;
640
- height?: AutoComplete<Dimension>;
641
- inlineSize?: AutoComplete<Dimension>;
642
- inset?: Space;
643
- insetBlock?: Space;
644
- insetBlockEnd?: Space;
645
- insetBlockStart?: Space;
646
- insetInline?: Space;
647
- insetInlineEnd?: Space;
648
- insetInlineStart?: Space;
649
- left?: AutoComplete<Space>;
650
- maxBlockSize?: AutoComplete<Dimension>;
651
- maxHeight?: AutoComplete<Dimension>;
652
- maxInlineSize?: AutoComplete<Dimension>;
653
- maxWidth?: AutoComplete<Dimension>;
654
- minBlockSize?: AutoComplete<Dimension>;
655
- minHeight?: AutoComplete<Dimension>;
656
- minInlineSize?: AutoComplete<Dimension>;
657
- minWidth?: AutoComplete<Dimension>;
658
- outlineColor?: BorderColor;
659
- outlineOffset?: Space;
660
- outlineWidth?: BorderWidth;
661
- padding?: Space;
662
- paddingBlock?: Space;
663
- paddingBlockEnd?: Space;
664
- paddingBlockStart?: Space;
665
- paddingInline?: Space;
666
- paddingInlineEnd?: Space;
667
- paddingInlineStart?: Space;
668
- right?: AutoComplete<Space>;
669
- rowGap?: Space;
670
- top?: AutoComplete<Space>;
671
- width?: AutoComplete<Dimension>;
672
- zIndex?: Layer;
673
- };
674
-
675
- // @public (undocumented)
676
- const uniqueSymbol: unique symbol;
677
-
678
- // @public
679
- export const UNSAFE_BREAKPOINTS_CONFIG: {
680
- readonly xxs: {
681
- readonly gridItemGutter: "var(--ds-space-200)";
682
- readonly gridMargin: "var(--ds-space-200)";
683
- readonly min: "0rem";
684
- readonly max: "29.99rem";
685
- };
686
- readonly xs: {
687
- readonly gridItemGutter: "var(--ds-space-200)";
688
- readonly gridMargin: "var(--ds-space-200)";
689
- readonly min: "30rem";
690
- readonly max: "47.99rem";
691
- };
692
- readonly sm: {
693
- readonly gridItemGutter: "var(--ds-space-200)";
694
- readonly gridMargin: "var(--ds-space-300)";
695
- readonly min: "48rem";
696
- readonly max: "63.99rem";
697
- };
698
- readonly md: {
699
- readonly gridItemGutter: "var(--ds-space-300)";
700
- readonly gridMargin: "var(--ds-space-400)";
701
- readonly min: "64rem";
702
- readonly max: "89.99rem";
703
- };
704
- readonly lg: {
705
- readonly gridItemGutter: "var(--ds-space-400)";
706
- readonly gridMargin: "var(--ds-space-400)";
707
- readonly min: "90rem";
708
- readonly max: "109.99rem";
709
- };
710
- readonly xl: {
711
- readonly gridItemGutter: "var(--ds-space-400)";
712
- readonly gridMargin: "var(--ds-space-500)";
713
- readonly min: "110rem";
714
- readonly max: null;
715
- };
716
- };
717
-
718
- // @internal
719
- export const UNSAFE_media: {
720
- above: {
721
- readonly xxs: "@media all";
722
- readonly xs: "@media (min-width: 30rem)";
723
- readonly sm: "@media (min-width: 48rem)";
724
- readonly md: "@media (min-width: 64rem)";
725
- readonly lg: "@media (min-width: 90rem)";
726
- readonly xl: "@media (min-width: 110rem)";
727
- };
728
- below: {
729
- readonly xs: "@media not all and (min-width: 30rem)";
730
- readonly sm: "@media not all and (min-width: 48rem)";
731
- readonly md: "@media not all and (min-width: 64rem)";
732
- readonly lg: "@media not all and (min-width: 90rem)";
733
- readonly xl: "@media not all and (min-width: 110rem)";
734
- };
735
- only: {
736
- readonly xxs: "@media (min-width: 0rem) and (max-width: 29.99rem)";
737
- readonly xs: "@media (min-width: 30rem) and (max-width: 47.99rem)";
738
- readonly sm: "@media (min-width: 48rem) and (max-width: 63.99rem)";
739
- readonly md: "@media (min-width: 64rem) and (max-width: 89.99rem)";
740
- readonly lg: "@media (min-width: 90rem) and (max-width: 109.99rem)";
741
- readonly xl: "@media (min-width: 110rem)";
742
- };
743
- };
744
-
745
- // @public (undocumented)
746
- type Wrap = keyof typeof flexWrapMap;
747
-
748
- // @public
749
- export function xcss<Primitive extends typeof Box | void = typeof Box>(style: Primitive extends typeof Box ? ScopedSafeCSSObject<AllowedBoxStyles> | ScopedSafeCSSObject<AllowedBoxStyles>[] : Primitive extends void ? ScopedSafeCSSObject<Spacing> | ScopedSafeCSSObject<Spacing>[] : never): {
750
- readonly [uniqueSymbol]: Primitive extends (<T extends ElementType<any> = "div">(props: BoxProps<T>) => ReactElement<any, JSXElementConstructor<any>| string> | null) & FC<BoxProps<"div">> ? BoxStyles : Primitive extends void ? SpaceStyles : never;
751
- };
752
-
753
- // (No @packageDocumentation comment for this package)
754
-
755
- ```