@atlaskit/primitives 0.9.0 → 0.9.2

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +6 -2
  3. package/box/package.json +2 -2
  4. package/constellation/box/code.mdx +6 -2
  5. package/constellation/box/usage.mdx +30 -0
  6. package/constellation/inline/code.mdx +1 -1
  7. package/constellation/inline/usage.mdx +36 -0
  8. package/constellation/overview/images/box-usage-example.png +0 -0
  9. package/constellation/overview/images/inline-usage-example.png +0 -0
  10. package/constellation/overview/images/stack-usage-example.png +0 -0
  11. package/constellation/overview/index.mdx +66 -0
  12. package/constellation/stack/code.mdx +1 -1
  13. package/constellation/stack/usage.mdx +31 -0
  14. package/constellation/xcss/examples.mdx +21 -0
  15. package/constellation/xcss/logo.png +0 -0
  16. package/constellation/xcss/migration.mdx +142 -0
  17. package/constellation/xcss/usage.mdx +115 -0
  18. package/dist/cjs/components/box.js +1 -1
  19. package/dist/cjs/components/inline.js +1 -1
  20. package/dist/cjs/components/internal/base-box.js +1 -1
  21. package/dist/cjs/components/stack.js +1 -1
  22. package/dist/cjs/index.js +1 -1
  23. package/dist/cjs/version.json +1 -1
  24. package/dist/cjs/{internal → xcss}/style-maps.partial.js +13 -43
  25. package/dist/cjs/{internal → xcss}/xcss.js +38 -26
  26. package/dist/es2019/components/box.js +1 -1
  27. package/dist/es2019/components/inline.js +1 -1
  28. package/dist/es2019/components/internal/base-box.js +1 -1
  29. package/dist/es2019/components/stack.js +1 -1
  30. package/dist/es2019/index.js +1 -1
  31. package/dist/es2019/version.json +1 -1
  32. package/dist/es2019/{internal → xcss}/style-maps.partial.js +12 -40
  33. package/dist/es2019/{internal → xcss}/xcss.js +38 -25
  34. package/dist/esm/components/box.js +1 -1
  35. package/dist/esm/components/inline.js +1 -1
  36. package/dist/esm/components/internal/base-box.js +1 -1
  37. package/dist/esm/components/stack.js +1 -1
  38. package/dist/esm/index.js +1 -1
  39. package/dist/esm/version.json +1 -1
  40. package/dist/esm/{internal → xcss}/style-maps.partial.js +12 -40
  41. package/dist/esm/{internal → xcss}/xcss.js +39 -27
  42. package/dist/types/components/box.d.ts +2 -2
  43. package/dist/types/components/inline.d.ts +7 -7
  44. package/dist/types/components/internal/base-box.d.ts +15 -14
  45. package/dist/types/components/stack.d.ts +6 -6
  46. package/dist/types/components/types.d.ts +3 -3
  47. package/dist/types/constants.d.ts +1 -1
  48. package/dist/types/helpers/responsive/types.d.ts +4 -4
  49. package/dist/types/index.d.ts +1 -1
  50. package/dist/types/{internal → xcss}/style-maps.partial.d.ts +81 -130
  51. package/dist/types/xcss/xcss.d.ts +57 -0
  52. package/extract-react-types/box-props.tsx +95 -0
  53. package/extract-react-types/inline-props.tsx +86 -1
  54. package/extract-react-types/stack-props.tsx +70 -1
  55. package/inline/package.json +2 -2
  56. package/package.json +25 -8
  57. package/report.api.md +94 -354
  58. package/responsive/package.json +2 -2
  59. package/scripts/codegen-file-templates/dimensions.tsx +17 -16
  60. package/scripts/codegen-styles.tsx +2 -2
  61. package/scripts/spacing-codegen-template.tsx +24 -91
  62. package/stack/package.json +2 -2
  63. package/tmp/api-report-tmp.d.ts +649 -0
  64. package/constellation/overview/examples.mdx +0 -7
  65. package/dist/cjs/components/internal/extract-react-types/inline-props.js +0 -7
  66. package/dist/cjs/components/internal/extract-react-types/stack-props.js +0 -7
  67. package/dist/es2019/components/internal/extract-react-types/inline-props.js +0 -1
  68. package/dist/es2019/components/internal/extract-react-types/stack-props.js +0 -1
  69. package/dist/esm/components/internal/extract-react-types/inline-props.js +0 -1
  70. package/dist/esm/components/internal/extract-react-types/stack-props.js +0 -1
  71. package/dist/types/components/internal/extract-react-types/inline-props.d.ts +0 -2
  72. package/dist/types/components/internal/extract-react-types/stack-props.d.ts +0 -2
  73. package/dist/types/internal/xcss.d.ts +0 -50
@@ -0,0 +1,649 @@
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 { 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 { SerializedStyles } from '@emotion/serialize';
22
+
23
+ // @public (undocumented)
24
+ type AlignBlock = 'baseline' | 'center' | 'end' | 'start';
25
+
26
+ // @public (undocumented)
27
+ type AlignBlock_2 = 'center' | 'end' | 'start';
28
+
29
+ // @public (undocumented)
30
+ type AlignInline = 'center' | 'end' | 'start';
31
+
32
+ // @public (undocumented)
33
+ type AlignInline_2 = 'center' | 'end' | 'start';
34
+
35
+ // @public (undocumented)
36
+ type AlignSelf = keyof typeof alignSelfMap;
37
+
38
+ // @public
39
+ const alignSelfMap: {
40
+ readonly center: "center";
41
+ readonly start: "start";
42
+ readonly stretch: "stretch";
43
+ readonly end: "end";
44
+ readonly baseline: "baseline";
45
+ };
46
+
47
+ // @public (undocumented)
48
+ type AllowedBoxStyles = keyof SafeCSSObject;
49
+
50
+ // @public (undocumented)
51
+ type AllowedInlineStyles = 'backgroundColor' | 'padding';
52
+
53
+ // @public (undocumented)
54
+ type As = 'article' | 'aside' | 'dialog' | 'div' | 'footer' | 'header' | 'li' | 'main' | 'nav' | 'ol' | 'section' | 'span' | 'ul';
55
+
56
+ // @public (undocumented)
57
+ type BackgroundColor = keyof typeof backgroundColorMap;
58
+
59
+ // @public (undocumented)
60
+ const backgroundColorMap: {
61
+ readonly 'accent.red.subtlest': "var(--ds-background-accent-red-subtlest)";
62
+ readonly 'accent.red.subtler': "var(--ds-background-accent-red-subtler)";
63
+ readonly 'accent.red.subtle': "var(--ds-background-accent-red-subtle)";
64
+ readonly 'accent.red.bolder': "var(--ds-background-accent-red-bolder)";
65
+ readonly 'accent.orange.subtlest': "var(--ds-background-accent-orange-subtlest)";
66
+ readonly 'accent.orange.subtler': "var(--ds-background-accent-orange-subtler)";
67
+ readonly 'accent.orange.subtle': "var(--ds-background-accent-orange-subtle)";
68
+ readonly 'accent.orange.bolder': "var(--ds-background-accent-orange-bolder)";
69
+ readonly 'accent.yellow.subtlest': "var(--ds-background-accent-yellow-subtlest)";
70
+ readonly 'accent.yellow.subtler': "var(--ds-background-accent-yellow-subtler)";
71
+ readonly 'accent.yellow.subtle': "var(--ds-background-accent-yellow-subtle)";
72
+ readonly 'accent.yellow.bolder': "var(--ds-background-accent-yellow-bolder)";
73
+ readonly 'accent.green.subtlest': "var(--ds-background-accent-green-subtlest)";
74
+ readonly 'accent.green.subtler': "var(--ds-background-accent-green-subtler)";
75
+ readonly 'accent.green.subtle': "var(--ds-background-accent-green-subtle)";
76
+ readonly 'accent.green.bolder': "var(--ds-background-accent-green-bolder)";
77
+ readonly 'accent.teal.subtlest': "var(--ds-background-accent-teal-subtlest)";
78
+ readonly 'accent.teal.subtler': "var(--ds-background-accent-teal-subtler)";
79
+ readonly 'accent.teal.subtle': "var(--ds-background-accent-teal-subtle)";
80
+ readonly 'accent.teal.bolder': "var(--ds-background-accent-teal-bolder)";
81
+ readonly 'accent.blue.subtlest': "var(--ds-background-accent-blue-subtlest)";
82
+ readonly 'accent.blue.subtler': "var(--ds-background-accent-blue-subtler)";
83
+ readonly 'accent.blue.subtle': "var(--ds-background-accent-blue-subtle)";
84
+ readonly 'accent.blue.bolder': "var(--ds-background-accent-blue-bolder)";
85
+ readonly 'accent.purple.subtlest': "var(--ds-background-accent-purple-subtlest)";
86
+ readonly 'accent.purple.subtler': "var(--ds-background-accent-purple-subtler)";
87
+ readonly 'accent.purple.subtle': "var(--ds-background-accent-purple-subtle)";
88
+ readonly 'accent.purple.bolder': "var(--ds-background-accent-purple-bolder)";
89
+ readonly 'accent.magenta.subtlest': "var(--ds-background-accent-magenta-subtlest)";
90
+ readonly 'accent.magenta.subtler': "var(--ds-background-accent-magenta-subtler)";
91
+ readonly 'accent.magenta.subtle': "var(--ds-background-accent-magenta-subtle)";
92
+ readonly 'accent.magenta.bolder': "var(--ds-background-accent-magenta-bolder)";
93
+ readonly 'accent.gray.subtlest': "var(--ds-background-accent-gray-subtlest)";
94
+ readonly 'accent.gray.subtler': "var(--ds-background-accent-gray-subtler)";
95
+ readonly 'accent.gray.subtle': "var(--ds-background-accent-gray-subtle)";
96
+ readonly 'accent.gray.bolder': "var(--ds-background-accent-gray-bolder)";
97
+ readonly disabled: "var(--ds-background-disabled)";
98
+ readonly input: "var(--ds-background-input)";
99
+ readonly 'input.hovered': "var(--ds-background-input-hovered)";
100
+ readonly 'input.pressed': "var(--ds-background-input-pressed)";
101
+ readonly 'inverse.subtle': "var(--ds-background-inverse-subtle)";
102
+ readonly 'inverse.subtle.hovered': "var(--ds-background-inverse-subtle-hovered)";
103
+ readonly 'inverse.subtle.pressed': "var(--ds-background-inverse-subtle-pressed)";
104
+ readonly neutral: "var(--ds-background-neutral)";
105
+ readonly 'neutral.hovered': "var(--ds-background-neutral-hovered)";
106
+ readonly 'neutral.pressed': "var(--ds-background-neutral-pressed)";
107
+ readonly 'neutral.subtle': "var(--ds-background-neutral-subtle)";
108
+ readonly 'neutral.subtle.hovered': "var(--ds-background-neutral-subtle-hovered)";
109
+ readonly 'neutral.subtle.pressed': "var(--ds-background-neutral-subtle-pressed)";
110
+ readonly 'neutral.bold': "var(--ds-background-neutral-bold)";
111
+ readonly 'neutral.bold.hovered': "var(--ds-background-neutral-bold-hovered)";
112
+ readonly 'neutral.bold.pressed': "var(--ds-background-neutral-bold-pressed)";
113
+ readonly selected: "var(--ds-background-selected)";
114
+ readonly 'selected.hovered': "var(--ds-background-selected-hovered)";
115
+ readonly 'selected.pressed': "var(--ds-background-selected-pressed)";
116
+ readonly 'selected.bold': "var(--ds-background-selected-bold)";
117
+ readonly 'selected.bold.hovered': "var(--ds-background-selected-bold-hovered)";
118
+ readonly 'selected.bold.pressed': "var(--ds-background-selected-bold-pressed)";
119
+ readonly 'brand.bold': "var(--ds-background-brand-bold)";
120
+ readonly 'brand.bold.hovered': "var(--ds-background-brand-bold-hovered)";
121
+ readonly 'brand.bold.pressed': "var(--ds-background-brand-bold-pressed)";
122
+ readonly danger: "var(--ds-background-danger)";
123
+ readonly 'danger.hovered': "var(--ds-background-danger-hovered)";
124
+ readonly 'danger.pressed': "var(--ds-background-danger-pressed)";
125
+ readonly 'danger.bold': "var(--ds-background-danger-bold)";
126
+ readonly 'danger.bold.hovered': "var(--ds-background-danger-bold-hovered)";
127
+ readonly 'danger.bold.pressed': "var(--ds-background-danger-bold-pressed)";
128
+ readonly warning: "var(--ds-background-warning)";
129
+ readonly 'warning.hovered': "var(--ds-background-warning-hovered)";
130
+ readonly 'warning.pressed': "var(--ds-background-warning-pressed)";
131
+ readonly 'warning.bold': "var(--ds-background-warning-bold)";
132
+ readonly 'warning.bold.hovered': "var(--ds-background-warning-bold-hovered)";
133
+ readonly 'warning.bold.pressed': "var(--ds-background-warning-bold-pressed)";
134
+ readonly success: "var(--ds-background-success)";
135
+ readonly 'success.hovered': "var(--ds-background-success-hovered)";
136
+ readonly 'success.pressed': "var(--ds-background-success-pressed)";
137
+ readonly 'success.bold': "var(--ds-background-success-bold)";
138
+ readonly 'success.bold.hovered': "var(--ds-background-success-bold-hovered)";
139
+ readonly 'success.bold.pressed': "var(--ds-background-success-bold-pressed)";
140
+ readonly discovery: "var(--ds-background-discovery)";
141
+ readonly 'discovery.hovered': "var(--ds-background-discovery-hovered)";
142
+ readonly 'discovery.pressed': "var(--ds-background-discovery-pressed)";
143
+ readonly 'discovery.bold': "var(--ds-background-discovery-bold)";
144
+ readonly 'discovery.bold.hovered': "var(--ds-background-discovery-bold-hovered)";
145
+ readonly 'discovery.bold.pressed': "var(--ds-background-discovery-bold-pressed)";
146
+ readonly information: "var(--ds-background-information)";
147
+ readonly 'information.hovered': "var(--ds-background-information-hovered)";
148
+ readonly 'information.pressed': "var(--ds-background-information-pressed)";
149
+ readonly 'information.bold': "var(--ds-background-information-bold)";
150
+ readonly 'information.bold.hovered': "var(--ds-background-information-bold-hovered)";
151
+ readonly 'information.bold.pressed': "var(--ds-background-information-bold-pressed)";
152
+ readonly 'color.blanket': "var(--ds-blanket)";
153
+ readonly 'color.blanket.selected': "var(--ds-blanket-selected)";
154
+ readonly 'color.blanket.danger': "var(--ds-blanket-danger)";
155
+ readonly 'elevation.surface': "var(--ds-surface)";
156
+ readonly 'elevation.surface.hovered': "var(--ds-surface-hovered)";
157
+ readonly 'elevation.surface.pressed': "var(--ds-surface-pressed)";
158
+ readonly 'elevation.surface.overlay': "var(--ds-surface-overlay)";
159
+ readonly 'elevation.surface.overlay.hovered': "var(--ds-surface-overlay-hovered)";
160
+ readonly 'elevation.surface.overlay.pressed': "var(--ds-surface-overlay-pressed)";
161
+ readonly 'elevation.surface.raised': "var(--ds-surface-raised)";
162
+ readonly 'elevation.surface.raised.hovered': "var(--ds-surface-raised-hovered)";
163
+ readonly 'elevation.surface.raised.pressed': "var(--ds-surface-raised-pressed)";
164
+ readonly 'elevation.surface.sunken': "var(--ds-surface-sunken)";
165
+ };
166
+
167
+ // @public (undocumented)
168
+ type BaseBoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className'> & BasePrimitiveProps & BaseBoxPropsFoundation<T>;
169
+
170
+ // @public (undocumented)
171
+ type BaseBoxPropsFoundation<T extends ElementType = 'div'> = {
172
+ as?: As;
173
+ className?: string;
174
+ children?: ReactNode;
175
+ backgroundColor?: BackgroundColor;
176
+ padding?: Space;
177
+ paddingBlock?: Space;
178
+ paddingBlockStart?: Space;
179
+ paddingBlockEnd?: Space;
180
+ paddingInline?: Space;
181
+ paddingInlineStart?: Space;
182
+ paddingInlineEnd?: Space;
183
+ ref?: React.ComponentPropsWithRef<T>['ref'];
184
+ };
185
+
186
+ // @public (undocumented)
187
+ type BasePrimitiveProps = {
188
+ testId?: string;
189
+ style?: CSSProperties;
190
+ };
191
+
192
+ // @public (undocumented)
193
+ type BlockSize = Dimension;
194
+
195
+ // @public (undocumented)
196
+ type BorderColor = keyof typeof borderColorMap;
197
+
198
+ // @public
199
+ const borderColorMap: {
200
+ readonly 'color.border': "var(--ds-border)";
201
+ readonly 'accent.red': "var(--ds-border-accent-red)";
202
+ readonly 'accent.orange': "var(--ds-border-accent-orange)";
203
+ readonly 'accent.yellow': "var(--ds-border-accent-yellow)";
204
+ readonly 'accent.green': "var(--ds-border-accent-green)";
205
+ readonly 'accent.teal': "var(--ds-border-accent-teal)";
206
+ readonly 'accent.blue': "var(--ds-border-accent-blue)";
207
+ readonly 'accent.purple': "var(--ds-border-accent-purple)";
208
+ readonly 'accent.magenta': "var(--ds-border-accent-magenta)";
209
+ readonly 'accent.gray': "var(--ds-border-accent-gray)";
210
+ readonly disabled: "var(--ds-border-disabled)";
211
+ readonly focused: "var(--ds-border-focused)";
212
+ readonly input: "var(--ds-border-input)";
213
+ readonly inverse: "var(--ds-border-inverse)";
214
+ readonly selected: "var(--ds-border-selected)";
215
+ readonly brand: "var(--ds-border-brand)";
216
+ readonly danger: "var(--ds-border-danger)";
217
+ readonly warning: "var(--ds-border-warning)";
218
+ readonly success: "var(--ds-border-success)";
219
+ readonly discovery: "var(--ds-border-discovery)";
220
+ readonly information: "var(--ds-border-information)";
221
+ readonly bold: "var(--ds-border-bold)";
222
+ };
223
+
224
+ // @public (undocumented)
225
+ type BorderRadius = keyof typeof borderRadiusMap;
226
+
227
+ // @public (undocumented)
228
+ const borderRadiusMap: {
229
+ readonly 'radius.050': "var(--ds-radius-050)";
230
+ readonly 'radius.100': "var(--ds-radius-100)";
231
+ readonly 'radius.200': "var(--ds-radius-200)";
232
+ readonly 'radius.300': "var(--ds-radius-300)";
233
+ readonly 'radius.400': "var(--ds-radius-400)";
234
+ readonly 'radius.round': "var(--ds-radius-round)";
235
+ };
236
+
237
+ // @public (undocumented)
238
+ type BorderStyle = keyof typeof borderStyleMap;
239
+
240
+ // @public (undocumented)
241
+ const borderStyleMap: {
242
+ readonly none: "none";
243
+ readonly solid: "solid";
244
+ };
245
+
246
+ // @public (undocumented)
247
+ type BorderWidth = keyof typeof borderWidthMap;
248
+
249
+ // @public
250
+ const borderWidthMap: {
251
+ readonly 'width.0': "var(--ds-width-0)";
252
+ readonly 'width.050': "var(--ds-width-050)";
253
+ readonly 'width.100': "var(--ds-width-100)";
254
+ };
255
+
256
+ // @public (undocumented)
257
+ type Bottom = Dimension;
258
+
259
+ // @public
260
+ export const Box: BoxComponent;
261
+
262
+ // @public (undocumented)
263
+ type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
264
+
265
+ // @public (undocumented)
266
+ export type BoxProps<T extends ElementType = 'div'> = Omit<BaseBoxProps<T>, 'className'> & PublicBoxPropsBase;
267
+
268
+ // @public (undocumented)
269
+ type BoxStyles = SerializedStyles & {
270
+ [boxTag]: true;
271
+ };
272
+
273
+ // @public (undocumented)
274
+ const boxTag: unique symbol;
275
+
276
+ // @public (undocumented)
277
+ type BoxXCSS = {
278
+ readonly [uniqueSymbol]: BoxStyles;
279
+ };
280
+
281
+ // @public (undocumented)
282
+ type CSSPseudos = {
283
+ [Pseudo in CSS_2.Pseudos]?: SafeCSSObject;
284
+ };
285
+
286
+ // @public (undocumented)
287
+ type Dimension = keyof typeof dimensionMap;
288
+
289
+ // @public
290
+ const dimensionMap: {
291
+ readonly '100%': "100%";
292
+ readonly 'size.100': "16px";
293
+ readonly 'size.200': "24px";
294
+ readonly 'size.300': "32px";
295
+ readonly 'size.400': "40px";
296
+ readonly 'size.500': "48px";
297
+ readonly 'size.600': "96px";
298
+ readonly 'size.1000': "192px";
299
+ };
300
+
301
+ // @public (undocumented)
302
+ type Display = keyof typeof displayMap;
303
+
304
+ // @public (undocumented)
305
+ const displayMap: {
306
+ readonly flex: "flex";
307
+ readonly block: "block";
308
+ readonly inline: "inline";
309
+ readonly inlineBlock: "inline-block";
310
+ readonly inlineFlex: "inline-flex";
311
+ };
312
+
313
+ // @public (undocumented)
314
+ type Flex = keyof typeof flexMap;
315
+
316
+ // @public (undocumented)
317
+ type FlexDirection = keyof typeof flexDirectionMap;
318
+
319
+ // @public (undocumented)
320
+ const flexDirectionMap: {
321
+ readonly row: "row";
322
+ readonly column: "column";
323
+ };
324
+
325
+ // @public (undocumented)
326
+ type FlexGrow = keyof typeof flexGrowMap;
327
+
328
+ // @public (undocumented)
329
+ const flexGrowMap: {
330
+ readonly '0': 0;
331
+ readonly '1': 1;
332
+ };
333
+
334
+ // @public (undocumented)
335
+ const flexMap: {
336
+ readonly '1': 1;
337
+ };
338
+
339
+ // @public (undocumented)
340
+ type FlexShrink = keyof typeof flexShrinkMap;
341
+
342
+ // @public (undocumented)
343
+ const flexShrinkMap: {
344
+ readonly '0': 0;
345
+ readonly '1': 1;
346
+ };
347
+
348
+ // @public (undocumented)
349
+ type Grow = 'fill' | 'hug';
350
+
351
+ // @public (undocumented)
352
+ type Grow_2 = 'fill' | 'hug';
353
+
354
+ // @public (undocumented)
355
+ type Height = Dimension;
356
+
357
+ // @public
358
+ export const Inline: MemoExoticComponent<ForwardRefExoticComponent<Pick<InlineProps<ElementType<any>>, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "rowSpace" | "separator" | "shouldWrap" | "space" | "spread" | "testId"> & RefAttributes<any>>>;
359
+
360
+ // @public (undocumented)
361
+ export interface InlineProps<T extends ElementType = 'div'> {
362
+ alignBlock?: AlignBlock;
363
+ alignInline?: AlignInline;
364
+ as?: 'div' | 'ol' | 'span' | 'ul';
365
+ children: ReactNode;
366
+ grow?: Grow;
367
+ ref?: React.ComponentPropsWithRef<T>['ref'];
368
+ rowSpace?: Space;
369
+ separator?: string;
370
+ shouldWrap?: boolean;
371
+ space?: Space;
372
+ spread?: Spread;
373
+ testId?: string;
374
+ }
375
+
376
+ // @public (undocumented)
377
+ type InlineSize = Dimension;
378
+
379
+ // @public (undocumented)
380
+ type InlineStyles = SerializedStyles & {
381
+ [inlineTag]: true;
382
+ };
383
+
384
+ // @public (undocumented)
385
+ const inlineTag: unique symbol;
386
+
387
+ // @public (undocumented)
388
+ type Layer = keyof typeof layerMap;
389
+
390
+ // @public (undocumented)
391
+ const layerMap: {
392
+ readonly card: 100;
393
+ readonly navigation: 200;
394
+ readonly dialog: 300;
395
+ readonly layer: 400;
396
+ readonly blanket: 500;
397
+ readonly modal: 510;
398
+ readonly flag: 600;
399
+ readonly spotlight: 700;
400
+ readonly tooltip: 800;
401
+ };
402
+
403
+ // @public (undocumented)
404
+ type Left = Dimension;
405
+
406
+ // @public (undocumented)
407
+ type MaxBlockSize = Dimension;
408
+
409
+ // @public (undocumented)
410
+ type MaxHeight = Dimension;
411
+
412
+ // @public (undocumented)
413
+ type MaxInlineSize = Dimension;
414
+
415
+ // @public (undocumented)
416
+ type MaxWidth = Dimension;
417
+
418
+ // @public (undocumented)
419
+ type MinBlockSize = Dimension;
420
+
421
+ // @public (undocumented)
422
+ type MinHeight = Dimension;
423
+
424
+ // @public (undocumented)
425
+ type MinInlineSize = Dimension;
426
+
427
+ // @public (undocumented)
428
+ type MinWidth = Dimension;
429
+
430
+ // @public (undocumented)
431
+ type Overflow = keyof typeof overflowMap;
432
+
433
+ // @public (undocumented)
434
+ type OverflowBlock = keyof typeof overflowBlockMap;
435
+
436
+ // @public (undocumented)
437
+ const overflowBlockMap: {
438
+ readonly auto: "auto";
439
+ readonly hidden: "hidden";
440
+ };
441
+
442
+ // @public (undocumented)
443
+ type OverflowInline = keyof typeof overflowInlineMap;
444
+
445
+ // @public (undocumented)
446
+ const overflowInlineMap: {
447
+ readonly auto: "auto";
448
+ readonly hidden: "hidden";
449
+ };
450
+
451
+ // @public (undocumented)
452
+ const overflowMap: {
453
+ readonly auto: "auto";
454
+ readonly hidden: "hidden";
455
+ };
456
+
457
+ // @public (undocumented)
458
+ type Position = keyof typeof positionMap;
459
+
460
+ // @public (undocumented)
461
+ const positionMap: {
462
+ readonly absolute: "absolute";
463
+ readonly fixed: "fixed";
464
+ readonly relative: "relative";
465
+ readonly static: "static";
466
+ };
467
+
468
+ // @public (undocumented)
469
+ type PublicBoxPropsBase = {
470
+ xcss?: Array<BoxXCSS | false | undefined> | BoxXCSS;
471
+ };
472
+
473
+ // @public (undocumented)
474
+ type Right = Dimension;
475
+
476
+ // @public (undocumented)
477
+ type SafeCSSObject = CSSPseudos & TokenisedProps & Omit<CSSPropertiesWithMultiValues, keyof TokenisedProps>;
478
+
479
+ // @public (undocumented)
480
+ type ScopedSafeCSSObject<T extends keyof SafeCSSObject> = Pick<SafeCSSObject, T>;
481
+
482
+ // @public (undocumented)
483
+ type Shadow = keyof typeof shadowMap;
484
+
485
+ // @public (undocumented)
486
+ const shadowMap: {
487
+ readonly overflow: "var(--ds-shadow-overflow)";
488
+ readonly 'overflow.perimeter': "var(--ds-shadow-overflow-perimeter)";
489
+ readonly 'overflow.spread': "var(--ds-shadow-overflow-spread)";
490
+ readonly overlay: "var(--ds-shadow-overlay)";
491
+ readonly raised: "var(--ds-shadow-raised)";
492
+ };
493
+
494
+ // @public (undocumented)
495
+ type Space = keyof typeof spaceMap;
496
+
497
+ // @public
498
+ const spaceMap: {
499
+ 'space.0': "var(--ds-space-0)";
500
+ 'space.025': "var(--ds-space-025)";
501
+ 'space.050': "var(--ds-space-050)";
502
+ 'space.075': "var(--ds-space-075)";
503
+ 'space.100': "var(--ds-space-100)";
504
+ 'space.150': "var(--ds-space-150)";
505
+ 'space.200': "var(--ds-space-200)";
506
+ 'space.250': "var(--ds-space-250)";
507
+ 'space.300': "var(--ds-space-300)";
508
+ 'space.400': "var(--ds-space-400)";
509
+ 'space.500': "var(--ds-space-500)";
510
+ 'space.600': "var(--ds-space-600)";
511
+ 'space.800': "var(--ds-space-800)";
512
+ 'space.1000': "var(--ds-space-1000)";
513
+ };
514
+
515
+ // @public (undocumented)
516
+ type Spread = 'space-between';
517
+
518
+ // @public (undocumented)
519
+ type Spread_2 = 'space-between';
520
+
521
+ // @public
522
+ export const Stack: MemoExoticComponent<ForwardRefExoticComponent<Pick<StackProps<ElementType<any>>, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "space" | "spread" | "testId"> & RefAttributes<any>>>;
523
+
524
+ // @public (undocumented)
525
+ export interface StackProps<T extends ElementType = 'div'> {
526
+ alignBlock?: AlignBlock_2;
527
+ alignInline?: AlignInline_2;
528
+ as?: 'div' | 'ol' | 'span' | 'ul';
529
+ children: ReactNode;
530
+ grow?: Grow_2;
531
+ ref?: React.ComponentPropsWithRef<T>['ref'];
532
+ space?: Space;
533
+ spread?: Spread_2;
534
+ testId?: string;
535
+ }
536
+
537
+ // @public (undocumented)
538
+ type TextColor = keyof typeof textColorMap;
539
+
540
+ // @public (undocumented)
541
+ const textColorMap: {
542
+ readonly 'color.text': "var(--ds-text)";
543
+ readonly 'accent.red': "var(--ds-text-accent-red)";
544
+ readonly 'accent.red.bolder': "var(--ds-text-accent-red-bolder)";
545
+ readonly 'accent.orange': "var(--ds-text-accent-orange)";
546
+ readonly 'accent.orange.bolder': "var(--ds-text-accent-orange-bolder)";
547
+ readonly 'accent.yellow': "var(--ds-text-accent-yellow)";
548
+ readonly 'accent.yellow.bolder': "var(--ds-text-accent-yellow-bolder)";
549
+ readonly 'accent.green': "var(--ds-text-accent-green)";
550
+ readonly 'accent.green.bolder': "var(--ds-text-accent-green-bolder)";
551
+ readonly 'accent.teal': "var(--ds-text-accent-teal)";
552
+ readonly 'accent.teal.bolder': "var(--ds-text-accent-teal-bolder)";
553
+ readonly 'accent.blue': "var(--ds-text-accent-blue)";
554
+ readonly 'accent.blue.bolder': "var(--ds-text-accent-blue-bolder)";
555
+ readonly 'accent.purple': "var(--ds-text-accent-purple)";
556
+ readonly 'accent.purple.bolder': "var(--ds-text-accent-purple-bolder)";
557
+ readonly 'accent.magenta': "var(--ds-text-accent-magenta)";
558
+ readonly 'accent.magenta.bolder': "var(--ds-text-accent-magenta-bolder)";
559
+ readonly 'accent.gray': "var(--ds-text-accent-gray)";
560
+ readonly 'accent.gray.bolder': "var(--ds-text-accent-gray-bolder)";
561
+ readonly disabled: "var(--ds-text-disabled)";
562
+ readonly inverse: "var(--ds-text-inverse)";
563
+ readonly selected: "var(--ds-text-selected)";
564
+ readonly brand: "var(--ds-text-brand)";
565
+ readonly danger: "var(--ds-text-danger)";
566
+ readonly warning: "var(--ds-text-warning)";
567
+ readonly 'warning.inverse': "var(--ds-text-warning-inverse)";
568
+ readonly success: "var(--ds-text-success)";
569
+ readonly discovery: "var(--ds-text-discovery)";
570
+ readonly information: "var(--ds-text-information)";
571
+ readonly subtlest: "var(--ds-text-subtlest)";
572
+ readonly subtle: "var(--ds-text-subtle)";
573
+ };
574
+
575
+ // @public (undocumented)
576
+ type TokenisedProps = {
577
+ alignSelf?: AlignSelf;
578
+ backgroundColor?: BackgroundColor;
579
+ blockSize?: BlockSize;
580
+ borderColor?: BorderColor;
581
+ borderRadius?: BorderRadius;
582
+ borderStyle?: BorderStyle;
583
+ borderWidth?: BorderWidth;
584
+ bottom?: Bottom;
585
+ boxShadow?: Shadow;
586
+ color?: TextColor;
587
+ columnGap?: Space;
588
+ display?: Display;
589
+ flex?: Flex;
590
+ flexDirection?: FlexDirection;
591
+ flexGrow?: FlexGrow;
592
+ flexShrink?: FlexShrink;
593
+ gap?: Space;
594
+ height?: Height;
595
+ inlineSize?: InlineSize;
596
+ inset?: Space;
597
+ insetBlock?: Space;
598
+ insetBlockEnd?: Space;
599
+ insetBlockStart?: Space;
600
+ insetInline?: Space;
601
+ insetInlineEnd?: Space;
602
+ insetInlineStart?: Space;
603
+ left?: Left;
604
+ maxBlockSize?: MaxBlockSize;
605
+ maxHeight?: MaxHeight;
606
+ maxInlineSize?: MaxInlineSize;
607
+ maxWidth?: MaxWidth;
608
+ minBlockSize?: MinBlockSize;
609
+ minHeight?: MinHeight;
610
+ minInlineSize?: MinInlineSize;
611
+ minWidth?: MinWidth;
612
+ outlineColor?: BorderColor;
613
+ outlineOffset?: Space;
614
+ outlineWidth?: BorderWidth;
615
+ overflow?: Overflow;
616
+ overflowBlock?: OverflowBlock;
617
+ overflowInline?: OverflowInline;
618
+ padding?: Space;
619
+ paddingBlock?: Space;
620
+ paddingBlockEnd?: Space;
621
+ paddingBlockStart?: Space;
622
+ paddingInline?: Space;
623
+ paddingInlineEnd?: Space;
624
+ paddingInlineStart?: Space;
625
+ position?: Position;
626
+ right?: Right;
627
+ rowGap?: Space;
628
+ top?: Top;
629
+ width?: Width;
630
+ zIndex?: Layer;
631
+ };
632
+
633
+ // @public (undocumented)
634
+ type Top = Dimension;
635
+
636
+ // @public (undocumented)
637
+ const uniqueSymbol: unique symbol;
638
+
639
+ // @public (undocumented)
640
+ type Width = Dimension;
641
+
642
+ // @public
643
+ export function xcss<Primitive extends typeof Box | typeof Inline = typeof Box>(style: Primitive extends typeof Box ? ScopedSafeCSSObject<AllowedBoxStyles> | ScopedSafeCSSObject<AllowedBoxStyles>[] : Primitive extends typeof Inline ? ScopedSafeCSSObject<AllowedInlineStyles> | ScopedSafeCSSObject<AllowedInlineStyles>[] : never): {
644
+ readonly [uniqueSymbol]: Primitive extends (<T extends ElementType<any> = "div">(props: BoxProps<T>) => ReactElement<any, JSXElementConstructor<any>| string> | null) & FC<BoxProps<"div">> ? BoxStyles : Primitive extends MemoExoticComponent<ForwardRefExoticComponent<Pick<InlineProps<ElementType<any>>, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "rowSpace" | "separator" | "shouldWrap" | "space" | "spread" | "testId"> & RefAttributes<any>>> ? InlineStyles : never;
645
+ };
646
+
647
+ // (No @packageDocumentation comment for this package)
648
+
649
+ ```
@@ -1,7 +0,0 @@
1
- ---
2
- title: Overview
3
- description: Coming soon.
4
- order: 0
5
- ---
6
-
7
- *Coming soon.*
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = Inline;
7
- function Inline(_) {}
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = Inline;
7
- function Inline(_) {}
@@ -1 +0,0 @@
1
- export default function Inline(_) {}
@@ -1 +0,0 @@
1
- export default function Inline(_) {}
@@ -1 +0,0 @@
1
- export default function Inline(_) {}
@@ -1 +0,0 @@
1
- export default function Inline(_) {}