@atlaskit/ds-explorations 2.2.14 → 2.3.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 +15 -0
- package/dist/cjs/components/text.partial.js +8 -5
- package/dist/cjs/index.js +0 -21
- package/dist/es2019/components/text.partial.js +8 -5
- package/dist/es2019/index.js +0 -3
- package/dist/esm/components/text.partial.js +8 -5
- package/dist/esm/index.js +0 -3
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/components/text.partial.d.ts +4 -3
- package/dist/types/index.d.ts +0 -6
- package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
- package/dist/types-ts4.5/components/text.partial.d.ts +4 -3
- package/dist/types-ts4.5/index.d.ts +0 -6
- package/docs/01-basic.tsx +3 -2
- package/examples/02-text-advanced.tsx +11 -20
- package/examples/02-text.tsx +15 -10
- package/examples/05-badge.tsx +9 -5
- package/examples/06-section-message.tsx +2 -4
- package/examples/07-comment.tsx +1 -3
- package/examples/08-lozenge.tsx +8 -4
- package/examples/99-interactions.tsx +49 -33
- package/package.json +4 -6
- package/report.api.md +0 -465
- package/scripts/codegen-styles.tsx +16 -89
- package/src/components/__tests__/unit/interaction-suface.test.tsx +2 -2
- package/src/components/surface-provider.tsx +1 -1
- package/src/components/text.partial.tsx +14 -8
- package/src/index.tsx +0 -6
- package/tmp/api-report-tmp.d.ts +0 -451
- package/tsconfig.app.json +3 -0
- package/tsconfig.dev.json +0 -6
- package/box/package.json +0 -15
- package/dist/cjs/components/box.partial.js +0 -622
- package/dist/cjs/components/inline.partial.js +0 -183
- package/dist/cjs/components/stack.partial.js +0 -149
- package/dist/es2019/components/box.partial.js +0 -614
- package/dist/es2019/components/inline.partial.js +0 -177
- package/dist/es2019/components/stack.partial.js +0 -144
- package/dist/esm/components/box.partial.js +0 -617
- package/dist/esm/components/inline.partial.js +0 -177
- package/dist/esm/components/stack.partial.js +0 -143
- package/dist/types/components/box.partial.d.ts +0 -357
- package/dist/types/components/inline.partial.d.ts +0 -108
- package/dist/types/components/stack.partial.d.ts +0 -92
- package/dist/types-ts4.5/components/box.partial.d.ts +0 -357
- package/dist/types-ts4.5/components/inline.partial.d.ts +0 -108
- package/dist/types-ts4.5/components/stack.partial.d.ts +0 -92
- package/examples/00-basic.tsx +0 -22
- package/examples/01-box.tsx +0 -171
- package/examples/03-stack.tsx +0 -99
- package/examples/04-inline.tsx +0 -99
- package/inline/package.json +0 -15
- package/src/components/__tests__/unit/box.test.tsx +0 -55
- package/src/components/__tests__/unit/inline.test.tsx +0 -43
- package/src/components/__tests__/unit/stack.test.tsx +0 -31
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +0 -3
- package/src/components/__tests__/visual-regression/inline-snapshot-test.tsx +0 -28
- package/src/components/__tests__/visual-regression/stack-snapshot-test.tsx +0 -28
- package/src/components/__tests__/vr-tests/__snapshots__/box--default.png +0 -0
- package/src/components/__tests__/vr-tests/box-snapshot-test.vr.tsx +0 -6
- package/src/components/box.partial.tsx +0 -706
- package/src/components/inline.partial.tsx +0 -218
- package/src/components/stack.partial.tsx +0 -174
- package/stack/package.json +0 -15
|
@@ -195,11 +195,11 @@ export default Text;
|
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
198
|
-
* @codegen <<SignedSource::
|
|
198
|
+
* @codegen <<SignedSource::de3943f17f27e9d5895c249c30c12802>>
|
|
199
199
|
* @codegenId typography
|
|
200
200
|
* @codegenCommand yarn codegen-styles
|
|
201
201
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
202
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
202
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::85d34d11efbf90832fccaf960c2ea033>>
|
|
203
203
|
*/
|
|
204
204
|
const fontSizeMap = {
|
|
205
205
|
'size.050': css({
|
|
@@ -248,6 +248,12 @@ const fontWeightMap = {
|
|
|
248
248
|
export type FontWeight = keyof typeof fontWeightMap;
|
|
249
249
|
|
|
250
250
|
const fontFamilyMap = {
|
|
251
|
+
body: css({
|
|
252
|
+
fontFamily: token(
|
|
253
|
+
'font.family.body',
|
|
254
|
+
'ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
|
|
255
|
+
),
|
|
256
|
+
}),
|
|
251
257
|
brand: css({
|
|
252
258
|
fontFamily: token('font.family.brand', 'Charlie Sans'),
|
|
253
259
|
}),
|
|
@@ -257,16 +263,16 @@ const fontFamilyMap = {
|
|
|
257
263
|
'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
|
|
258
264
|
),
|
|
259
265
|
}),
|
|
260
|
-
|
|
266
|
+
heading: css({
|
|
261
267
|
fontFamily: token(
|
|
262
|
-
'font.family.
|
|
263
|
-
'ui-
|
|
268
|
+
'font.family.heading',
|
|
269
|
+
'ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
|
|
264
270
|
),
|
|
265
271
|
}),
|
|
266
|
-
|
|
272
|
+
monospace: css({
|
|
267
273
|
fontFamily: token(
|
|
268
|
-
'font.family.
|
|
269
|
-
'ui-
|
|
274
|
+
'font.family.monospace',
|
|
275
|
+
'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
|
|
270
276
|
),
|
|
271
277
|
}),
|
|
272
278
|
sans: css({
|
package/src/index.tsx
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export { default as UNSAFE_Box } from './components/box.partial';
|
|
2
1
|
export { default as UNSAFE_Text } from './components/text.partial';
|
|
3
|
-
export { default as UNSAFE_Inline } from './components/inline.partial';
|
|
4
|
-
export { default as UNSAFE_Stack } from './components/stack.partial';
|
|
5
2
|
export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
|
|
6
|
-
export type { BoxProps as UNSAFE_BoxProps } from './components/box.partial';
|
|
7
3
|
export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
|
|
8
|
-
export type { InlineProps as UNSAFE_InlineProps } from './components/inline.partial';
|
|
9
|
-
export type { StackProps as UNSAFE_StackProps } from './components/stack.partial';
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -4,17 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
8
|
-
import { ComponentPropsWithRef } from 'react';
|
|
9
7
|
import type { CSSProperties } from 'react';
|
|
10
|
-
import { ElementType } from 'react';
|
|
11
8
|
import { FC } from 'react';
|
|
12
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
13
9
|
import { jsx } from '@emotion/react';
|
|
14
|
-
import { MemoExoticComponent } from 'react';
|
|
15
|
-
import { ReactElement } from 'react';
|
|
16
10
|
import { ReactNode } from 'react';
|
|
17
|
-
import { RefAttributes } from 'react';
|
|
18
11
|
import { SerializedStyles } from '@emotion/react';
|
|
19
12
|
|
|
20
13
|
// @public (undocumented)
|
|
@@ -23,41 +16,6 @@ const asAllowlist: readonly ["span", "div", "p", "strong"];
|
|
|
23
16
|
// @public (undocumented)
|
|
24
17
|
type AsElement = (typeof asAllowlist)[number];
|
|
25
18
|
|
|
26
|
-
// @public (undocumented)
|
|
27
|
-
type BackgroundColor = keyof typeof backgroundColorMap;
|
|
28
|
-
|
|
29
|
-
// @public (undocumented)
|
|
30
|
-
const backgroundColorMap: {
|
|
31
|
-
readonly disabled: SerializedStyles;
|
|
32
|
-
readonly input: SerializedStyles;
|
|
33
|
-
readonly 'inverse.subtle': SerializedStyles;
|
|
34
|
-
readonly neutral: SerializedStyles;
|
|
35
|
-
readonly 'neutral.subtle': SerializedStyles;
|
|
36
|
-
readonly 'neutral.bold': SerializedStyles;
|
|
37
|
-
readonly selected: SerializedStyles;
|
|
38
|
-
readonly 'selected.bold': SerializedStyles;
|
|
39
|
-
readonly 'brand.subtlest': SerializedStyles;
|
|
40
|
-
readonly 'brand.bold': SerializedStyles;
|
|
41
|
-
readonly 'brand.boldest': SerializedStyles;
|
|
42
|
-
readonly danger: SerializedStyles;
|
|
43
|
-
readonly 'danger.bold': SerializedStyles;
|
|
44
|
-
readonly warning: SerializedStyles;
|
|
45
|
-
readonly 'warning.bold': SerializedStyles;
|
|
46
|
-
readonly success: SerializedStyles;
|
|
47
|
-
readonly 'success.bold': SerializedStyles;
|
|
48
|
-
readonly discovery: SerializedStyles;
|
|
49
|
-
readonly 'discovery.bold': SerializedStyles;
|
|
50
|
-
readonly information: SerializedStyles;
|
|
51
|
-
readonly 'information.bold': SerializedStyles;
|
|
52
|
-
readonly 'color.blanket': SerializedStyles;
|
|
53
|
-
readonly 'color.blanket.selected': SerializedStyles;
|
|
54
|
-
readonly 'color.blanket.danger': SerializedStyles;
|
|
55
|
-
readonly 'elevation.surface': SerializedStyles;
|
|
56
|
-
readonly 'elevation.surface.overlay': SerializedStyles;
|
|
57
|
-
readonly 'elevation.surface.raised': SerializedStyles;
|
|
58
|
-
readonly 'elevation.surface.sunken': SerializedStyles;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
19
|
// @public (undocumented)
|
|
62
20
|
const backgroundHoverColorMap: {
|
|
63
21
|
'accent.lime.subtlest': SerializedStyles;
|
|
@@ -131,222 +89,6 @@ interface BasePrimitiveProps {
|
|
|
131
89
|
UNSAFE_style?: CSSProperties;
|
|
132
90
|
}
|
|
133
91
|
|
|
134
|
-
// @public (undocumented)
|
|
135
|
-
type BorderColor = keyof typeof borderColorMap;
|
|
136
|
-
|
|
137
|
-
// @public
|
|
138
|
-
const borderColorMap: {
|
|
139
|
-
readonly 'color.border': SerializedStyles;
|
|
140
|
-
readonly disabled: SerializedStyles;
|
|
141
|
-
readonly focused: SerializedStyles;
|
|
142
|
-
readonly input: SerializedStyles;
|
|
143
|
-
readonly inverse: SerializedStyles;
|
|
144
|
-
readonly selected: SerializedStyles;
|
|
145
|
-
readonly brand: SerializedStyles;
|
|
146
|
-
readonly danger: SerializedStyles;
|
|
147
|
-
readonly warning: SerializedStyles;
|
|
148
|
-
readonly success: SerializedStyles;
|
|
149
|
-
readonly discovery: SerializedStyles;
|
|
150
|
-
readonly information: SerializedStyles;
|
|
151
|
-
readonly bold: SerializedStyles;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// @public (undocumented)
|
|
155
|
-
type BorderRadius = keyof typeof borderRadiusMap;
|
|
156
|
-
|
|
157
|
-
// @public (undocumented)
|
|
158
|
-
const borderRadiusMap: {
|
|
159
|
-
normal: SerializedStyles;
|
|
160
|
-
rounded: SerializedStyles;
|
|
161
|
-
badge: SerializedStyles;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
// @public (undocumented)
|
|
165
|
-
type BorderStyle = keyof typeof borderStyleMap;
|
|
166
|
-
|
|
167
|
-
// @public (undocumented)
|
|
168
|
-
const borderStyleMap: {
|
|
169
|
-
none: SerializedStyles;
|
|
170
|
-
solid: SerializedStyles;
|
|
171
|
-
dashed: SerializedStyles;
|
|
172
|
-
dotted: SerializedStyles;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
// @public (undocumented)
|
|
176
|
-
type BorderWidth = keyof typeof borderWidthMap;
|
|
177
|
-
|
|
178
|
-
// @public (undocumented)
|
|
179
|
-
const borderWidthMap: {
|
|
180
|
-
'0px': SerializedStyles;
|
|
181
|
-
'1px': SerializedStyles;
|
|
182
|
-
'2px': SerializedStyles;
|
|
183
|
-
'3px': SerializedStyles;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
// @public (undocumented)
|
|
187
|
-
type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: UNSAFE_BoxProps<T>) => ReactElement | null) & FC<UNSAFE_BoxProps<T>>;
|
|
188
|
-
|
|
189
|
-
// @public (undocumented)
|
|
190
|
-
type BoxPropsBase<T extends ElementType> = {
|
|
191
|
-
as?: T;
|
|
192
|
-
children?: ReactNode;
|
|
193
|
-
className?: string;
|
|
194
|
-
backgroundColor?: BackgroundColor;
|
|
195
|
-
shadow?: Shadow;
|
|
196
|
-
borderStyle?: BorderStyle;
|
|
197
|
-
borderWidth?: BorderWidth;
|
|
198
|
-
borderColor?: BorderColor;
|
|
199
|
-
borderRadius?: BorderRadius;
|
|
200
|
-
layer?: Layer;
|
|
201
|
-
flexDirection?: FlexDirection;
|
|
202
|
-
alignItems?: FlexAlignItems;
|
|
203
|
-
justifyContent?: FlexJustifyContent;
|
|
204
|
-
overflow?: Overflow;
|
|
205
|
-
padding?: Padding;
|
|
206
|
-
paddingBlock?: PaddingBlock;
|
|
207
|
-
paddingInline?: PaddingInline;
|
|
208
|
-
width?: Width;
|
|
209
|
-
height?: Height;
|
|
210
|
-
display?: Display;
|
|
211
|
-
position?: Position;
|
|
212
|
-
ref?: ComponentPropsWithRef<T>['ref'];
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
// @public (undocumented)
|
|
216
|
-
type ColumnGap = keyof typeof columnGapMap;
|
|
217
|
-
|
|
218
|
-
// @public
|
|
219
|
-
const columnGapMap: {
|
|
220
|
-
'space.0': SerializedStyles;
|
|
221
|
-
'space.025': SerializedStyles;
|
|
222
|
-
'space.050': SerializedStyles;
|
|
223
|
-
'space.075': SerializedStyles;
|
|
224
|
-
'space.100': SerializedStyles;
|
|
225
|
-
'space.1000': SerializedStyles;
|
|
226
|
-
'space.150': SerializedStyles;
|
|
227
|
-
'space.200': SerializedStyles;
|
|
228
|
-
'space.250': SerializedStyles;
|
|
229
|
-
'space.300': SerializedStyles;
|
|
230
|
-
'space.400': SerializedStyles;
|
|
231
|
-
'space.500': SerializedStyles;
|
|
232
|
-
'space.600': SerializedStyles;
|
|
233
|
-
'space.800': SerializedStyles;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
// @public (undocumented)
|
|
237
|
-
type Display = keyof typeof displayMap;
|
|
238
|
-
|
|
239
|
-
// @public (undocumented)
|
|
240
|
-
const displayMap: {
|
|
241
|
-
block: SerializedStyles;
|
|
242
|
-
inline: SerializedStyles;
|
|
243
|
-
flex: SerializedStyles;
|
|
244
|
-
inlineFlex: SerializedStyles;
|
|
245
|
-
inlineBlock: SerializedStyles;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
// @public
|
|
249
|
-
type FlexAlignItems = keyof typeof flexAlignItemsMap;
|
|
250
|
-
|
|
251
|
-
// @public (undocumented)
|
|
252
|
-
type FlexAlignItems_2 = keyof typeof flexAlignItemsMap_2;
|
|
253
|
-
|
|
254
|
-
// @public (undocumented)
|
|
255
|
-
type FlexAlignItems_3 = keyof typeof flexAlignItemsMap_3;
|
|
256
|
-
|
|
257
|
-
// @public (undocumented)
|
|
258
|
-
const flexAlignItemsMap: {
|
|
259
|
-
center: SerializedStyles;
|
|
260
|
-
baseline: SerializedStyles;
|
|
261
|
-
flexStart: SerializedStyles;
|
|
262
|
-
flexEnd: SerializedStyles;
|
|
263
|
-
start: SerializedStyles;
|
|
264
|
-
end: SerializedStyles;
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
// @public (undocumented)
|
|
268
|
-
const flexAlignItemsMap_2: {
|
|
269
|
-
center: SerializedStyles;
|
|
270
|
-
baseline: SerializedStyles;
|
|
271
|
-
flexStart: SerializedStyles;
|
|
272
|
-
flexEnd: SerializedStyles;
|
|
273
|
-
start: SerializedStyles;
|
|
274
|
-
end: SerializedStyles;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
// @public (undocumented)
|
|
278
|
-
const flexAlignItemsMap_3: {
|
|
279
|
-
center: SerializedStyles;
|
|
280
|
-
baseline: SerializedStyles;
|
|
281
|
-
flexStart: SerializedStyles;
|
|
282
|
-
flexEnd: SerializedStyles;
|
|
283
|
-
start: SerializedStyles;
|
|
284
|
-
end: SerializedStyles;
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
// @public
|
|
288
|
-
type FlexDirection = keyof typeof flexDirectionMap;
|
|
289
|
-
|
|
290
|
-
// @public (undocumented)
|
|
291
|
-
const flexDirectionMap: {
|
|
292
|
-
column: SerializedStyles;
|
|
293
|
-
row: SerializedStyles;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
// @public
|
|
297
|
-
type FlexJustifyContent = keyof typeof flexJustifyContentMap;
|
|
298
|
-
|
|
299
|
-
// @public (undocumented)
|
|
300
|
-
type FlexJustifyContent_2 = keyof typeof flexJustifyContentMap_2;
|
|
301
|
-
|
|
302
|
-
// @public (undocumented)
|
|
303
|
-
type FlexJustifyContent_3 = keyof typeof flexJustifyContentMap_3;
|
|
304
|
-
|
|
305
|
-
// @public (undocumented)
|
|
306
|
-
const flexJustifyContentMap: {
|
|
307
|
-
center: SerializedStyles;
|
|
308
|
-
flexStart: SerializedStyles;
|
|
309
|
-
flexEnd: SerializedStyles;
|
|
310
|
-
start: SerializedStyles;
|
|
311
|
-
end: SerializedStyles;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
// @public (undocumented)
|
|
315
|
-
const flexJustifyContentMap_2: {
|
|
316
|
-
center: SerializedStyles;
|
|
317
|
-
flexStart: SerializedStyles;
|
|
318
|
-
'space-between': SerializedStyles;
|
|
319
|
-
flexEnd: SerializedStyles;
|
|
320
|
-
start: SerializedStyles;
|
|
321
|
-
end: SerializedStyles;
|
|
322
|
-
spaceBetween: SerializedStyles;
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
// @public (undocumented)
|
|
326
|
-
const flexJustifyContentMap_3: {
|
|
327
|
-
center: SerializedStyles;
|
|
328
|
-
flexStart: SerializedStyles;
|
|
329
|
-
flexEnd: SerializedStyles;
|
|
330
|
-
start: SerializedStyles;
|
|
331
|
-
end: SerializedStyles;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
// @public (undocumented)
|
|
335
|
-
type FlexWrap = keyof typeof flexWrapMap;
|
|
336
|
-
|
|
337
|
-
// @public (undocumented)
|
|
338
|
-
type FlexWrap_2 = keyof typeof flexWrapMap_2;
|
|
339
|
-
|
|
340
|
-
// @public (undocumented)
|
|
341
|
-
const flexWrapMap: {
|
|
342
|
-
wrap: SerializedStyles;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
// @public (undocumented)
|
|
346
|
-
const flexWrapMap_2: {
|
|
347
|
-
wrap: SerializedStyles;
|
|
348
|
-
};
|
|
349
|
-
|
|
350
92
|
// @public (undocumented)
|
|
351
93
|
type FontSize = keyof typeof fontSizeMap;
|
|
352
94
|
|
|
@@ -373,21 +115,6 @@ const fontWeightMap: {
|
|
|
373
115
|
semibold: SerializedStyles;
|
|
374
116
|
};
|
|
375
117
|
|
|
376
|
-
// @public (undocumented)
|
|
377
|
-
type Height = keyof typeof heightMap;
|
|
378
|
-
|
|
379
|
-
// @public (undocumented)
|
|
380
|
-
const heightMap: {
|
|
381
|
-
'100%': SerializedStyles;
|
|
382
|
-
'size.100': SerializedStyles;
|
|
383
|
-
'size.1000': SerializedStyles;
|
|
384
|
-
'size.200': SerializedStyles;
|
|
385
|
-
'size.300': SerializedStyles;
|
|
386
|
-
'size.400': SerializedStyles;
|
|
387
|
-
'size.500': SerializedStyles;
|
|
388
|
-
'size.600': SerializedStyles;
|
|
389
|
-
};
|
|
390
|
-
|
|
391
118
|
// @public (undocumented)
|
|
392
119
|
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
393
120
|
|
|
@@ -399,22 +126,6 @@ interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
|
399
126
|
children: ReactNode;
|
|
400
127
|
}
|
|
401
128
|
|
|
402
|
-
// @public (undocumented)
|
|
403
|
-
type Layer = keyof typeof LAYERS;
|
|
404
|
-
|
|
405
|
-
// @public (undocumented)
|
|
406
|
-
const LAYERS: {
|
|
407
|
-
readonly card: 100;
|
|
408
|
-
readonly navigation: 200;
|
|
409
|
-
readonly dialog: 300;
|
|
410
|
-
readonly layer: 400;
|
|
411
|
-
readonly blanket: 500;
|
|
412
|
-
readonly modal: 510;
|
|
413
|
-
readonly flag: 600;
|
|
414
|
-
readonly spotlight: 700;
|
|
415
|
-
readonly tooltip: 800;
|
|
416
|
-
};
|
|
417
|
-
|
|
418
129
|
// @public (undocumented)
|
|
419
130
|
type LineHeight = keyof typeof lineHeightMap;
|
|
420
131
|
|
|
@@ -429,122 +140,6 @@ const lineHeightMap: {
|
|
|
429
140
|
'lineHeight.600': SerializedStyles;
|
|
430
141
|
};
|
|
431
142
|
|
|
432
|
-
// @public (undocumented)
|
|
433
|
-
type Overflow = keyof typeof overflowMap;
|
|
434
|
-
|
|
435
|
-
// @public (undocumented)
|
|
436
|
-
const overflowMap: {
|
|
437
|
-
auto: SerializedStyles;
|
|
438
|
-
hidden: SerializedStyles;
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
// @public (undocumented)
|
|
442
|
-
type Padding = keyof typeof paddingMap;
|
|
443
|
-
|
|
444
|
-
// @public (undocumented)
|
|
445
|
-
type PaddingBlock = keyof typeof paddingBlockMap;
|
|
446
|
-
|
|
447
|
-
// @public (undocumented)
|
|
448
|
-
const paddingBlockMap: {
|
|
449
|
-
'space.0': SerializedStyles;
|
|
450
|
-
'space.025': SerializedStyles;
|
|
451
|
-
'space.050': SerializedStyles;
|
|
452
|
-
'space.075': SerializedStyles;
|
|
453
|
-
'space.100': SerializedStyles;
|
|
454
|
-
'space.1000': SerializedStyles;
|
|
455
|
-
'space.150': SerializedStyles;
|
|
456
|
-
'space.200': SerializedStyles;
|
|
457
|
-
'space.250': SerializedStyles;
|
|
458
|
-
'space.300': SerializedStyles;
|
|
459
|
-
'space.400': SerializedStyles;
|
|
460
|
-
'space.500': SerializedStyles;
|
|
461
|
-
'space.600': SerializedStyles;
|
|
462
|
-
'space.800': SerializedStyles;
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
// @public (undocumented)
|
|
466
|
-
type PaddingInline = keyof typeof paddingInlineMap;
|
|
467
|
-
|
|
468
|
-
// @public (undocumented)
|
|
469
|
-
const paddingInlineMap: {
|
|
470
|
-
'space.0': SerializedStyles;
|
|
471
|
-
'space.025': SerializedStyles;
|
|
472
|
-
'space.050': SerializedStyles;
|
|
473
|
-
'space.075': SerializedStyles;
|
|
474
|
-
'space.100': SerializedStyles;
|
|
475
|
-
'space.1000': SerializedStyles;
|
|
476
|
-
'space.150': SerializedStyles;
|
|
477
|
-
'space.200': SerializedStyles;
|
|
478
|
-
'space.250': SerializedStyles;
|
|
479
|
-
'space.300': SerializedStyles;
|
|
480
|
-
'space.400': SerializedStyles;
|
|
481
|
-
'space.500': SerializedStyles;
|
|
482
|
-
'space.600': SerializedStyles;
|
|
483
|
-
'space.800': SerializedStyles;
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
// @public
|
|
487
|
-
const paddingMap: {
|
|
488
|
-
'space.0': SerializedStyles;
|
|
489
|
-
'space.025': SerializedStyles;
|
|
490
|
-
'space.050': SerializedStyles;
|
|
491
|
-
'space.075': SerializedStyles;
|
|
492
|
-
'space.100': SerializedStyles;
|
|
493
|
-
'space.1000': SerializedStyles;
|
|
494
|
-
'space.150': SerializedStyles;
|
|
495
|
-
'space.200': SerializedStyles;
|
|
496
|
-
'space.250': SerializedStyles;
|
|
497
|
-
'space.300': SerializedStyles;
|
|
498
|
-
'space.400': SerializedStyles;
|
|
499
|
-
'space.500': SerializedStyles;
|
|
500
|
-
'space.600': SerializedStyles;
|
|
501
|
-
'space.800': SerializedStyles;
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
// @public (undocumented)
|
|
505
|
-
type Position = keyof typeof positionMap;
|
|
506
|
-
|
|
507
|
-
// @public (undocumented)
|
|
508
|
-
const positionMap: {
|
|
509
|
-
absolute: SerializedStyles;
|
|
510
|
-
fixed: SerializedStyles;
|
|
511
|
-
relative: SerializedStyles;
|
|
512
|
-
static: SerializedStyles;
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
// @public (undocumented)
|
|
516
|
-
type RowGap = keyof typeof rowGapMap;
|
|
517
|
-
|
|
518
|
-
// @public
|
|
519
|
-
const rowGapMap: {
|
|
520
|
-
'space.0': SerializedStyles;
|
|
521
|
-
'space.025': SerializedStyles;
|
|
522
|
-
'space.050': SerializedStyles;
|
|
523
|
-
'space.075': SerializedStyles;
|
|
524
|
-
'space.100': SerializedStyles;
|
|
525
|
-
'space.1000': SerializedStyles;
|
|
526
|
-
'space.150': SerializedStyles;
|
|
527
|
-
'space.200': SerializedStyles;
|
|
528
|
-
'space.250': SerializedStyles;
|
|
529
|
-
'space.300': SerializedStyles;
|
|
530
|
-
'space.400': SerializedStyles;
|
|
531
|
-
'space.500': SerializedStyles;
|
|
532
|
-
'space.600': SerializedStyles;
|
|
533
|
-
'space.800': SerializedStyles;
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
// @public (undocumented)
|
|
537
|
-
type Shadow = keyof typeof shadowMap;
|
|
538
|
-
|
|
539
|
-
// @public (undocumented)
|
|
540
|
-
const shadowMap: {
|
|
541
|
-
readonly overflow: SerializedStyles;
|
|
542
|
-
readonly 'overflow.perimeter': SerializedStyles;
|
|
543
|
-
readonly 'overflow.spread': SerializedStyles;
|
|
544
|
-
readonly overlay: SerializedStyles;
|
|
545
|
-
readonly raised: SerializedStyles;
|
|
546
|
-
};
|
|
547
|
-
|
|
548
143
|
// @public (undocumented)
|
|
549
144
|
type TextAlign = keyof typeof textAlignMap;
|
|
550
145
|
|
|
@@ -585,40 +180,9 @@ const textTransformMap: {
|
|
|
585
180
|
uppercase: SerializedStyles;
|
|
586
181
|
};
|
|
587
182
|
|
|
588
|
-
// @public @deprecated
|
|
589
|
-
export const UNSAFE_Box: BoxComponent;
|
|
590
|
-
|
|
591
|
-
// @public @deprecated (undocumented)
|
|
592
|
-
export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BoxPropsBase<T>;
|
|
593
|
-
|
|
594
|
-
// @public @deprecated
|
|
595
|
-
export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>>;
|
|
596
|
-
|
|
597
|
-
// @public @deprecated (undocumented)
|
|
598
|
-
export interface UNSAFE_InlineProps extends BasePrimitiveProps {
|
|
599
|
-
alignItems?: FlexAlignItems_2;
|
|
600
|
-
children: ReactNode;
|
|
601
|
-
divider?: ReactNode;
|
|
602
|
-
flexWrap?: FlexWrap;
|
|
603
|
-
gap: ColumnGap;
|
|
604
|
-
justifyContent?: FlexJustifyContent_2;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
183
|
// @public (undocumented)
|
|
608
184
|
export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
609
185
|
|
|
610
|
-
// @public @deprecated
|
|
611
|
-
export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>>;
|
|
612
|
-
|
|
613
|
-
// @public @deprecated (undocumented)
|
|
614
|
-
export interface UNSAFE_StackProps extends BasePrimitiveProps {
|
|
615
|
-
alignItems?: FlexAlignItems_3;
|
|
616
|
-
children: ReactNode;
|
|
617
|
-
flexWrap?: FlexWrap_2;
|
|
618
|
-
gap: RowGap;
|
|
619
|
-
justifyContent?: FlexJustifyContent_3;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
186
|
// @internal
|
|
623
187
|
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|
|
624
188
|
|
|
@@ -647,21 +211,6 @@ const verticalAlignMap: {
|
|
|
647
211
|
bottom: SerializedStyles;
|
|
648
212
|
};
|
|
649
213
|
|
|
650
|
-
// @public (undocumented)
|
|
651
|
-
type Width = keyof typeof widthMap;
|
|
652
|
-
|
|
653
|
-
// @public
|
|
654
|
-
const widthMap: {
|
|
655
|
-
'100%': SerializedStyles;
|
|
656
|
-
'size.100': SerializedStyles;
|
|
657
|
-
'size.1000': SerializedStyles;
|
|
658
|
-
'size.200': SerializedStyles;
|
|
659
|
-
'size.300': SerializedStyles;
|
|
660
|
-
'size.400': SerializedStyles;
|
|
661
|
-
'size.500': SerializedStyles;
|
|
662
|
-
'size.600': SerializedStyles;
|
|
663
|
-
};
|
|
664
|
-
|
|
665
214
|
// (No @packageDocumentation comment for this package)
|
|
666
215
|
|
|
667
216
|
```
|
package/tsconfig.app.json
CHANGED
package/tsconfig.dev.json
CHANGED
|
@@ -75,14 +75,8 @@
|
|
|
75
75
|
{
|
|
76
76
|
"path": "../textfield/tsconfig.app.json"
|
|
77
77
|
},
|
|
78
|
-
{
|
|
79
|
-
"path": "../theme/tsconfig.app.json"
|
|
80
|
-
},
|
|
81
78
|
{
|
|
82
79
|
"path": "../tokens/tsconfig.app.json"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"path": "../../../build/test-tooling/visual-regression/tsconfig.app.json"
|
|
86
80
|
}
|
|
87
81
|
]
|
|
88
82
|
}
|
package/box/package.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/ds-explorations/box",
|
|
3
|
-
"main": "../dist/cjs/components/box.partial.js",
|
|
4
|
-
"module": "../dist/esm/components/box.partial.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/components/box.partial.js",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/components/box.partial.d.ts",
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <4.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/components/box.partial.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|