@atlaskit/ds-explorations 2.1.0 → 2.1.1
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 +6 -0
- package/box/package.json +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +20 -20
- package/dist/types/components/inline.partial.d.ts +4 -4
- package/dist/types/components/interaction-surface.partial.d.ts +1 -1
- package/dist/types/components/stack.partial.d.ts +4 -4
- package/dist/types/components/text.partial.d.ts +9 -9
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/internal/color-map.d.ts +9 -9
- package/dist/types/internal/role-to-element.d.ts +3 -3
- package/inline/package.json +2 -2
- package/package.json +6 -5
- package/stack/package.json +2 -2
- package/text/package.json +2 -2
- package/tmp/api-report-tmp.d.ts +622 -0
package/CHANGELOG.md
CHANGED
package/box/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/components/box.partial.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/components/box.partial.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -7,8 +7,8 @@ import type { BasePrimitiveProps } from './types';
|
|
|
7
7
|
* @deprecated DSP-8009: This type is scheduled for deletion.
|
|
8
8
|
* Please use `Box` from `@atlaskit/primitives` instead.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
11
|
-
|
|
10
|
+
export type BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BoxPropsBase<T>;
|
|
11
|
+
type BoxPropsBase<T extends ElementType> = {
|
|
12
12
|
/**
|
|
13
13
|
* The DOM element to render as the Box. Defaults to `div`.
|
|
14
14
|
*/
|
|
@@ -111,7 +111,7 @@ declare type BoxPropsBase<T extends ElementType> = {
|
|
|
111
111
|
position?: Position;
|
|
112
112
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
|
|
115
115
|
/**
|
|
116
116
|
* __Box__
|
|
117
117
|
*
|
|
@@ -124,21 +124,21 @@ declare type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementTy
|
|
|
124
124
|
*/
|
|
125
125
|
export declare const Box: BoxComponent;
|
|
126
126
|
export default Box;
|
|
127
|
-
|
|
127
|
+
type BorderStyle = keyof typeof borderStyleMap;
|
|
128
128
|
declare const borderStyleMap: {
|
|
129
129
|
none: import("@emotion/react").SerializedStyles;
|
|
130
130
|
solid: import("@emotion/react").SerializedStyles;
|
|
131
131
|
dashed: import("@emotion/react").SerializedStyles;
|
|
132
132
|
dotted: import("@emotion/react").SerializedStyles;
|
|
133
133
|
};
|
|
134
|
-
|
|
134
|
+
type BorderWidth = keyof typeof borderWidthMap;
|
|
135
135
|
declare const borderWidthMap: {
|
|
136
136
|
'0px': import("@emotion/react").SerializedStyles;
|
|
137
137
|
'1px': import("@emotion/react").SerializedStyles;
|
|
138
138
|
'2px': import("@emotion/react").SerializedStyles;
|
|
139
139
|
'3px': import("@emotion/react").SerializedStyles;
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
type BorderRadius = keyof typeof borderRadiusMap;
|
|
142
142
|
declare const borderRadiusMap: {
|
|
143
143
|
normal: import("@emotion/react").SerializedStyles;
|
|
144
144
|
rounded: import("@emotion/react").SerializedStyles;
|
|
@@ -147,7 +147,7 @@ declare const borderRadiusMap: {
|
|
|
147
147
|
/**
|
|
148
148
|
* @experimental - this is likely to be removed
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
type FlexDirection = keyof typeof flexDirectionMap;
|
|
151
151
|
declare const flexDirectionMap: {
|
|
152
152
|
column: import("@emotion/react").SerializedStyles;
|
|
153
153
|
row: import("@emotion/react").SerializedStyles;
|
|
@@ -155,7 +155,7 @@ declare const flexDirectionMap: {
|
|
|
155
155
|
/**
|
|
156
156
|
* @experimental - this is likely to be removed
|
|
157
157
|
*/
|
|
158
|
-
|
|
158
|
+
type FlexAlignItems = keyof typeof flexAlignItemsMap;
|
|
159
159
|
declare const flexAlignItemsMap: {
|
|
160
160
|
center: import("@emotion/react").SerializedStyles;
|
|
161
161
|
baseline: import("@emotion/react").SerializedStyles;
|
|
@@ -167,7 +167,7 @@ declare const flexAlignItemsMap: {
|
|
|
167
167
|
/**
|
|
168
168
|
* @experimental - this is likely to be removed
|
|
169
169
|
*/
|
|
170
|
-
|
|
170
|
+
type FlexJustifyContent = keyof typeof flexJustifyContentMap;
|
|
171
171
|
declare const flexJustifyContentMap: {
|
|
172
172
|
center: import("@emotion/react").SerializedStyles;
|
|
173
173
|
flexStart: import("@emotion/react").SerializedStyles;
|
|
@@ -175,7 +175,7 @@ declare const flexJustifyContentMap: {
|
|
|
175
175
|
start: import("@emotion/react").SerializedStyles;
|
|
176
176
|
end: import("@emotion/react").SerializedStyles;
|
|
177
177
|
};
|
|
178
|
-
|
|
178
|
+
type Display = keyof typeof displayMap;
|
|
179
179
|
declare const displayMap: {
|
|
180
180
|
block: import("@emotion/react").SerializedStyles;
|
|
181
181
|
inline: import("@emotion/react").SerializedStyles;
|
|
@@ -183,14 +183,14 @@ declare const displayMap: {
|
|
|
183
183
|
inlineFlex: import("@emotion/react").SerializedStyles;
|
|
184
184
|
inlineBlock: import("@emotion/react").SerializedStyles;
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
type Position = keyof typeof positionMap;
|
|
187
187
|
declare const positionMap: {
|
|
188
188
|
absolute: import("@emotion/react").SerializedStyles;
|
|
189
189
|
fixed: import("@emotion/react").SerializedStyles;
|
|
190
190
|
relative: import("@emotion/react").SerializedStyles;
|
|
191
191
|
static: import("@emotion/react").SerializedStyles;
|
|
192
192
|
};
|
|
193
|
-
|
|
193
|
+
type Overflow = keyof typeof overflowMap;
|
|
194
194
|
declare const overflowMap: {
|
|
195
195
|
auto: import("@emotion/react").SerializedStyles;
|
|
196
196
|
hidden: import("@emotion/react").SerializedStyles;
|
|
@@ -212,7 +212,7 @@ declare const widthMap: {
|
|
|
212
212
|
'size.500': import("@emotion/react").SerializedStyles;
|
|
213
213
|
'size.600': import("@emotion/react").SerializedStyles;
|
|
214
214
|
};
|
|
215
|
-
export
|
|
215
|
+
export type Width = keyof typeof widthMap;
|
|
216
216
|
declare const heightMap: {
|
|
217
217
|
'100%': import("@emotion/react").SerializedStyles;
|
|
218
218
|
'size.100': import("@emotion/react").SerializedStyles;
|
|
@@ -223,7 +223,7 @@ declare const heightMap: {
|
|
|
223
223
|
'size.500': import("@emotion/react").SerializedStyles;
|
|
224
224
|
'size.600': import("@emotion/react").SerializedStyles;
|
|
225
225
|
};
|
|
226
|
-
export
|
|
226
|
+
export type Height = keyof typeof heightMap;
|
|
227
227
|
/**
|
|
228
228
|
* @codegenEnd
|
|
229
229
|
*/
|
|
@@ -251,7 +251,7 @@ declare const paddingMap: {
|
|
|
251
251
|
'space.600': import("@emotion/react").SerializedStyles;
|
|
252
252
|
'space.800': import("@emotion/react").SerializedStyles;
|
|
253
253
|
};
|
|
254
|
-
export
|
|
254
|
+
export type Padding = keyof typeof paddingMap;
|
|
255
255
|
declare const paddingBlockMap: {
|
|
256
256
|
'space.0': import("@emotion/react").SerializedStyles;
|
|
257
257
|
'space.025': import("@emotion/react").SerializedStyles;
|
|
@@ -268,7 +268,7 @@ declare const paddingBlockMap: {
|
|
|
268
268
|
'space.600': import("@emotion/react").SerializedStyles;
|
|
269
269
|
'space.800': import("@emotion/react").SerializedStyles;
|
|
270
270
|
};
|
|
271
|
-
export
|
|
271
|
+
export type PaddingBlock = keyof typeof paddingBlockMap;
|
|
272
272
|
declare const paddingInlineMap: {
|
|
273
273
|
'space.0': import("@emotion/react").SerializedStyles;
|
|
274
274
|
'space.025': import("@emotion/react").SerializedStyles;
|
|
@@ -285,7 +285,7 @@ declare const paddingInlineMap: {
|
|
|
285
285
|
'space.600': import("@emotion/react").SerializedStyles;
|
|
286
286
|
'space.800': import("@emotion/react").SerializedStyles;
|
|
287
287
|
};
|
|
288
|
-
export
|
|
288
|
+
export type PaddingInline = keyof typeof paddingInlineMap;
|
|
289
289
|
/**
|
|
290
290
|
* @codegenEnd
|
|
291
291
|
*/
|
|
@@ -312,7 +312,7 @@ declare const borderColorMap: {
|
|
|
312
312
|
readonly information: import("@emotion/react").SerializedStyles;
|
|
313
313
|
readonly bold: import("@emotion/react").SerializedStyles;
|
|
314
314
|
};
|
|
315
|
-
export
|
|
315
|
+
export type BorderColor = keyof typeof borderColorMap;
|
|
316
316
|
declare const backgroundColorMap: {
|
|
317
317
|
readonly disabled: import("@emotion/react").SerializedStyles;
|
|
318
318
|
readonly input: import("@emotion/react").SerializedStyles;
|
|
@@ -341,7 +341,7 @@ declare const backgroundColorMap: {
|
|
|
341
341
|
readonly 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
|
|
342
342
|
readonly 'elevation.surface.sunken': import("@emotion/react").SerializedStyles;
|
|
343
343
|
};
|
|
344
|
-
export
|
|
344
|
+
export type BackgroundColor = keyof typeof backgroundColorMap;
|
|
345
345
|
declare const shadowMap: {
|
|
346
346
|
readonly overflow: import("@emotion/react").SerializedStyles;
|
|
347
347
|
readonly 'overflow.perimeter': import("@emotion/react").SerializedStyles;
|
|
@@ -349,7 +349,7 @@ declare const shadowMap: {
|
|
|
349
349
|
readonly overlay: import("@emotion/react").SerializedStyles;
|
|
350
350
|
readonly raised: import("@emotion/react").SerializedStyles;
|
|
351
351
|
};
|
|
352
|
-
export
|
|
352
|
+
export type Shadow = keyof typeof shadowMap;
|
|
353
353
|
/**
|
|
354
354
|
* @codegenEnd
|
|
355
355
|
*/
|
|
@@ -33,7 +33,7 @@ export interface InlineProps extends BasePrimitiveProps {
|
|
|
33
33
|
*/
|
|
34
34
|
children: ReactNode;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
type FlexAlignItems = keyof typeof flexAlignItemsMap;
|
|
37
37
|
declare const flexAlignItemsMap: {
|
|
38
38
|
center: import("@emotion/react").SerializedStyles;
|
|
39
39
|
baseline: import("@emotion/react").SerializedStyles;
|
|
@@ -42,7 +42,7 @@ declare const flexAlignItemsMap: {
|
|
|
42
42
|
start: import("@emotion/react").SerializedStyles;
|
|
43
43
|
end: import("@emotion/react").SerializedStyles;
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
type FlexJustifyContent = keyof typeof flexJustifyContentMap;
|
|
46
46
|
declare const flexJustifyContentMap: {
|
|
47
47
|
center: import("@emotion/react").SerializedStyles;
|
|
48
48
|
flexStart: import("@emotion/react").SerializedStyles;
|
|
@@ -52,7 +52,7 @@ declare const flexJustifyContentMap: {
|
|
|
52
52
|
end: import("@emotion/react").SerializedStyles;
|
|
53
53
|
spaceBetween: import("@emotion/react").SerializedStyles;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
type FlexWrap = keyof typeof flexWrapMap;
|
|
56
56
|
declare const flexWrapMap: {
|
|
57
57
|
wrap: import("@emotion/react").SerializedStyles;
|
|
58
58
|
};
|
|
@@ -102,7 +102,7 @@ declare const columnGapMap: {
|
|
|
102
102
|
'space.600': import("@emotion/react").SerializedStyles;
|
|
103
103
|
'space.800': import("@emotion/react").SerializedStyles;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
105
|
+
export type ColumnGap = keyof typeof columnGapMap;
|
|
106
106
|
/**
|
|
107
107
|
* @codegenEnd
|
|
108
108
|
*/
|
|
@@ -43,7 +43,7 @@ declare const backgroundHoverColorMap: {
|
|
|
43
43
|
'elevation.surface.overlay': import("@emotion/react").SerializedStyles;
|
|
44
44
|
'elevation.surface.raised': import("@emotion/react").SerializedStyles;
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
47
47
|
/**
|
|
48
48
|
* @codegenEnd
|
|
49
49
|
*/
|
|
@@ -28,7 +28,7 @@ export interface StackProps extends BasePrimitiveProps {
|
|
|
28
28
|
*/
|
|
29
29
|
children: ReactNode;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
type FlexAlignItems = keyof typeof flexAlignItemsMap;
|
|
32
32
|
declare const flexAlignItemsMap: {
|
|
33
33
|
center: import("@emotion/react").SerializedStyles;
|
|
34
34
|
baseline: import("@emotion/react").SerializedStyles;
|
|
@@ -37,7 +37,7 @@ declare const flexAlignItemsMap: {
|
|
|
37
37
|
start: import("@emotion/react").SerializedStyles;
|
|
38
38
|
end: import("@emotion/react").SerializedStyles;
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
type FlexJustifyContent = keyof typeof flexJustifyContentMap;
|
|
41
41
|
declare const flexJustifyContentMap: {
|
|
42
42
|
center: import("@emotion/react").SerializedStyles;
|
|
43
43
|
flexStart: import("@emotion/react").SerializedStyles;
|
|
@@ -45,7 +45,7 @@ declare const flexJustifyContentMap: {
|
|
|
45
45
|
start: import("@emotion/react").SerializedStyles;
|
|
46
46
|
end: import("@emotion/react").SerializedStyles;
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
type FlexWrap = keyof typeof flexWrapMap;
|
|
49
49
|
declare const flexWrapMap: {
|
|
50
50
|
wrap: import("@emotion/react").SerializedStyles;
|
|
51
51
|
};
|
|
@@ -86,7 +86,7 @@ declare const rowGapMap: {
|
|
|
86
86
|
'space.600': import("@emotion/react").SerializedStyles;
|
|
87
87
|
'space.800': import("@emotion/react").SerializedStyles;
|
|
88
88
|
};
|
|
89
|
-
export
|
|
89
|
+
export type RowGap = keyof typeof rowGapMap;
|
|
90
90
|
/**
|
|
91
91
|
* @codegenEnd
|
|
92
92
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { FC, ReactNode } from 'react';
|
|
3
3
|
import type { BasePrimitiveProps } from './types';
|
|
4
4
|
declare const asAllowlist: readonly ["span", "div", "p", "strong"];
|
|
5
|
-
|
|
5
|
+
type AsElement = (typeof asAllowlist)[number];
|
|
6
6
|
export interface TextProps extends BasePrimitiveProps {
|
|
7
7
|
/**
|
|
8
8
|
* HTML tag to be rendered. Defaults to `span`.
|
|
@@ -50,19 +50,19 @@ export interface TextProps extends BasePrimitiveProps {
|
|
|
50
50
|
*/
|
|
51
51
|
verticalAlign?: VerticalAlign;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
type TextAlign = keyof typeof textAlignMap;
|
|
54
54
|
declare const textAlignMap: {
|
|
55
55
|
center: import("@emotion/react").SerializedStyles;
|
|
56
56
|
end: import("@emotion/react").SerializedStyles;
|
|
57
57
|
start: import("@emotion/react").SerializedStyles;
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
type TextTransform = keyof typeof textTransformMap;
|
|
60
60
|
declare const textTransformMap: {
|
|
61
61
|
none: import("@emotion/react").SerializedStyles;
|
|
62
62
|
lowercase: import("@emotion/react").SerializedStyles;
|
|
63
63
|
uppercase: import("@emotion/react").SerializedStyles;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
type VerticalAlign = keyof typeof verticalAlignMap;
|
|
66
66
|
declare const verticalAlignMap: {
|
|
67
67
|
top: import("@emotion/react").SerializedStyles;
|
|
68
68
|
middle: import("@emotion/react").SerializedStyles;
|
|
@@ -97,19 +97,19 @@ declare const fontSizeMap: {
|
|
|
97
97
|
'size.500': import("@emotion/react").SerializedStyles;
|
|
98
98
|
'size.600': import("@emotion/react").SerializedStyles;
|
|
99
99
|
};
|
|
100
|
-
export
|
|
100
|
+
export type FontSize = keyof typeof fontSizeMap;
|
|
101
101
|
declare const fontWeightMap: {
|
|
102
102
|
bold: import("@emotion/react").SerializedStyles;
|
|
103
103
|
medium: import("@emotion/react").SerializedStyles;
|
|
104
104
|
regular: import("@emotion/react").SerializedStyles;
|
|
105
105
|
semibold: import("@emotion/react").SerializedStyles;
|
|
106
106
|
};
|
|
107
|
-
export
|
|
107
|
+
export type FontWeight = keyof typeof fontWeightMap;
|
|
108
108
|
declare const fontFamilyMap: {
|
|
109
109
|
monospace: import("@emotion/react").SerializedStyles;
|
|
110
110
|
sans: import("@emotion/react").SerializedStyles;
|
|
111
111
|
};
|
|
112
|
-
export
|
|
112
|
+
export type FontFamily = keyof typeof fontFamilyMap;
|
|
113
113
|
declare const lineHeightMap: {
|
|
114
114
|
'lineHeight.100': import("@emotion/react").SerializedStyles;
|
|
115
115
|
'lineHeight.200': import("@emotion/react").SerializedStyles;
|
|
@@ -118,7 +118,7 @@ declare const lineHeightMap: {
|
|
|
118
118
|
'lineHeight.500': import("@emotion/react").SerializedStyles;
|
|
119
119
|
'lineHeight.600': import("@emotion/react").SerializedStyles;
|
|
120
120
|
};
|
|
121
|
-
export
|
|
121
|
+
export type LineHeight = keyof typeof lineHeightMap;
|
|
122
122
|
/**
|
|
123
123
|
* @codegenEnd
|
|
124
124
|
*/
|
|
@@ -145,7 +145,7 @@ declare const textColorMap: {
|
|
|
145
145
|
readonly subtlest: import("@emotion/react").SerializedStyles;
|
|
146
146
|
readonly subtle: import("@emotion/react").SerializedStyles;
|
|
147
147
|
};
|
|
148
|
-
export
|
|
148
|
+
export type TextColor = keyof typeof textColorMap;
|
|
149
149
|
/**
|
|
150
150
|
* @codegenEnd
|
|
151
151
|
*/
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::d168519874a16bbb92cfbfd4747a39b4>>
|
|
7
|
+
* @codegenCommand yarn codegen-styles
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
9
|
+
*/
|
|
1
10
|
declare const _default: {
|
|
2
11
|
readonly 'neutral.bold': "inverse";
|
|
3
12
|
readonly 'neutral.bold.hovered': "inverse";
|
|
@@ -24,13 +33,4 @@ declare const _default: {
|
|
|
24
33
|
readonly 'information.bold.hovered': "inverse";
|
|
25
34
|
readonly 'information.bold.pressed': "inverse";
|
|
26
35
|
};
|
|
27
|
-
/**
|
|
28
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
29
|
-
*
|
|
30
|
-
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
31
|
-
*
|
|
32
|
-
* @codegen <<SignedSource::d168519874a16bbb92cfbfd4747a39b4>>
|
|
33
|
-
* @codegenCommand yarn codegen-styles
|
|
34
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
35
|
-
*/
|
|
36
36
|
export default _default;
|
|
@@ -26,7 +26,7 @@ declare const roleToElementType: {
|
|
|
26
26
|
readonly presentation: "div";
|
|
27
27
|
readonly group: "fieldset";
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
export
|
|
31
|
-
export
|
|
29
|
+
type RoleMap = typeof roleToElementType;
|
|
30
|
+
export type Role = keyof RoleMap;
|
|
31
|
+
export type SupportedElements = RoleMap[Role] & keyof JSX.IntrinsicElements;
|
|
32
32
|
export default roleToElementType;
|
package/inline/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/components/inline.partial.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/components/inline.partial.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/ds-explorations",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "An experimental package for exploration and validation of spacing / typography foundations.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"atlassian": {
|
|
@@ -22,9 +22,10 @@
|
|
|
22
22
|
"module:es2019": "dist/es2019/index.js",
|
|
23
23
|
"types": "dist/types/index.d.ts",
|
|
24
24
|
"typesVersions": {
|
|
25
|
-
">=4.
|
|
25
|
+
">=4.5 <4.9": {
|
|
26
26
|
"*": [
|
|
27
|
-
"dist/types-ts4.
|
|
27
|
+
"dist/types-ts4.5/*",
|
|
28
|
+
"dist/types-ts4.5/index.d.ts"
|
|
28
29
|
]
|
|
29
30
|
}
|
|
30
31
|
},
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"./inline": "./src/components/inline.partial.tsx"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
42
43
|
"@babel/runtime": "^7.0.0",
|
|
43
44
|
"@emotion/react": "^11.7.1",
|
|
44
45
|
"tiny-invariant": "^1.2.0"
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
"prettier": "^2.8.0",
|
|
70
71
|
"react-dom": "^16.8.0",
|
|
71
72
|
"ts-node": "^10.9.1",
|
|
72
|
-
"typescript": "4.
|
|
73
|
+
"typescript": "~4.9.5",
|
|
73
74
|
"wait-for-expect": "^1.2.0"
|
|
74
75
|
},
|
|
75
76
|
"techstack": {
|
package/stack/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/components/stack.partial.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/components/stack.partial.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/text/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/components/text.partial.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/components/text.partial.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/ds-explorations"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
8
|
+
import { ComponentPropsWithRef } from 'react';
|
|
9
|
+
import type { CSSProperties } from 'react';
|
|
10
|
+
import { ElementType } from 'react';
|
|
11
|
+
import { FC } from 'react';
|
|
12
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
13
|
+
import { jsx } from '@emotion/react';
|
|
14
|
+
import { MemoExoticComponent } from 'react';
|
|
15
|
+
import { ReactElement } from 'react';
|
|
16
|
+
import { ReactNode } from 'react';
|
|
17
|
+
import { RefAttributes } from 'react';
|
|
18
|
+
import { SerializedStyles } from '@emotion/react';
|
|
19
|
+
|
|
20
|
+
// @public (undocumented)
|
|
21
|
+
const asAllowlist: readonly ["span", "div", "p", "strong"];
|
|
22
|
+
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
type AsElement = (typeof asAllowlist)[number];
|
|
25
|
+
|
|
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.bold': SerializedStyles;
|
|
40
|
+
readonly danger: SerializedStyles;
|
|
41
|
+
readonly 'danger.bold': SerializedStyles;
|
|
42
|
+
readonly warning: SerializedStyles;
|
|
43
|
+
readonly 'warning.bold': SerializedStyles;
|
|
44
|
+
readonly success: SerializedStyles;
|
|
45
|
+
readonly 'success.bold': SerializedStyles;
|
|
46
|
+
readonly discovery: SerializedStyles;
|
|
47
|
+
readonly 'discovery.bold': SerializedStyles;
|
|
48
|
+
readonly information: SerializedStyles;
|
|
49
|
+
readonly 'information.bold': SerializedStyles;
|
|
50
|
+
readonly 'color.blanket': SerializedStyles;
|
|
51
|
+
readonly 'color.blanket.selected': SerializedStyles;
|
|
52
|
+
readonly 'color.blanket.danger': SerializedStyles;
|
|
53
|
+
readonly 'elevation.surface': SerializedStyles;
|
|
54
|
+
readonly 'elevation.surface.overlay': SerializedStyles;
|
|
55
|
+
readonly 'elevation.surface.raised': SerializedStyles;
|
|
56
|
+
readonly 'elevation.surface.sunken': SerializedStyles;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
const backgroundHoverColorMap: {
|
|
61
|
+
input: SerializedStyles;
|
|
62
|
+
'inverse.subtle': SerializedStyles;
|
|
63
|
+
neutral: SerializedStyles;
|
|
64
|
+
'neutral.subtle': SerializedStyles;
|
|
65
|
+
'neutral.bold': SerializedStyles;
|
|
66
|
+
selected: SerializedStyles;
|
|
67
|
+
'selected.bold': SerializedStyles;
|
|
68
|
+
'brand.bold': SerializedStyles;
|
|
69
|
+
danger: SerializedStyles;
|
|
70
|
+
'danger.bold': SerializedStyles;
|
|
71
|
+
warning: SerializedStyles;
|
|
72
|
+
'warning.bold': SerializedStyles;
|
|
73
|
+
success: SerializedStyles;
|
|
74
|
+
'success.bold': SerializedStyles;
|
|
75
|
+
discovery: SerializedStyles;
|
|
76
|
+
'discovery.bold': SerializedStyles;
|
|
77
|
+
information: SerializedStyles;
|
|
78
|
+
'information.bold': SerializedStyles;
|
|
79
|
+
'elevation.surface': SerializedStyles;
|
|
80
|
+
'elevation.surface.overlay': SerializedStyles;
|
|
81
|
+
'elevation.surface.raised': SerializedStyles;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// @public (undocumented)
|
|
85
|
+
interface BasePrimitiveProps {
|
|
86
|
+
testId?: string;
|
|
87
|
+
UNSAFE_style?: CSSProperties;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// @public (undocumented)
|
|
91
|
+
type BorderColor = keyof typeof borderColorMap;
|
|
92
|
+
|
|
93
|
+
// @public
|
|
94
|
+
const borderColorMap: {
|
|
95
|
+
readonly 'color.border': SerializedStyles;
|
|
96
|
+
readonly disabled: SerializedStyles;
|
|
97
|
+
readonly focused: SerializedStyles;
|
|
98
|
+
readonly input: SerializedStyles;
|
|
99
|
+
readonly inverse: SerializedStyles;
|
|
100
|
+
readonly selected: SerializedStyles;
|
|
101
|
+
readonly brand: SerializedStyles;
|
|
102
|
+
readonly danger: SerializedStyles;
|
|
103
|
+
readonly warning: SerializedStyles;
|
|
104
|
+
readonly success: SerializedStyles;
|
|
105
|
+
readonly discovery: SerializedStyles;
|
|
106
|
+
readonly information: SerializedStyles;
|
|
107
|
+
readonly bold: SerializedStyles;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// @public (undocumented)
|
|
111
|
+
type BorderRadius = keyof typeof borderRadiusMap;
|
|
112
|
+
|
|
113
|
+
// @public (undocumented)
|
|
114
|
+
const borderRadiusMap: {
|
|
115
|
+
normal: SerializedStyles;
|
|
116
|
+
rounded: SerializedStyles;
|
|
117
|
+
badge: SerializedStyles;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// @public (undocumented)
|
|
121
|
+
type BorderStyle = keyof typeof borderStyleMap;
|
|
122
|
+
|
|
123
|
+
// @public (undocumented)
|
|
124
|
+
const borderStyleMap: {
|
|
125
|
+
none: SerializedStyles;
|
|
126
|
+
solid: SerializedStyles;
|
|
127
|
+
dashed: SerializedStyles;
|
|
128
|
+
dotted: SerializedStyles;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// @public (undocumented)
|
|
132
|
+
type BorderWidth = keyof typeof borderWidthMap;
|
|
133
|
+
|
|
134
|
+
// @public (undocumented)
|
|
135
|
+
const borderWidthMap: {
|
|
136
|
+
'0px': SerializedStyles;
|
|
137
|
+
'1px': SerializedStyles;
|
|
138
|
+
'2px': SerializedStyles;
|
|
139
|
+
'3px': SerializedStyles;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// @public (undocumented)
|
|
143
|
+
type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: UNSAFE_BoxProps<T>) => ReactElement | null) & FC<UNSAFE_BoxProps<T>>;
|
|
144
|
+
|
|
145
|
+
// @public (undocumented)
|
|
146
|
+
type BoxPropsBase<T extends ElementType> = {
|
|
147
|
+
as?: T;
|
|
148
|
+
children?: ReactNode;
|
|
149
|
+
className?: string;
|
|
150
|
+
backgroundColor?: BackgroundColor;
|
|
151
|
+
shadow?: Shadow;
|
|
152
|
+
borderStyle?: BorderStyle;
|
|
153
|
+
borderWidth?: BorderWidth;
|
|
154
|
+
borderColor?: BorderColor;
|
|
155
|
+
borderRadius?: BorderRadius;
|
|
156
|
+
layer?: Layer;
|
|
157
|
+
flexDirection?: FlexDirection;
|
|
158
|
+
alignItems?: FlexAlignItems;
|
|
159
|
+
justifyContent?: FlexJustifyContent;
|
|
160
|
+
overflow?: Overflow;
|
|
161
|
+
padding?: Padding;
|
|
162
|
+
paddingBlock?: PaddingBlock;
|
|
163
|
+
paddingInline?: PaddingInline;
|
|
164
|
+
width?: Width;
|
|
165
|
+
height?: Height;
|
|
166
|
+
display?: Display;
|
|
167
|
+
position?: Position;
|
|
168
|
+
ref?: ComponentPropsWithRef<T>['ref'];
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
// @public (undocumented)
|
|
172
|
+
type ColumnGap = keyof typeof columnGapMap;
|
|
173
|
+
|
|
174
|
+
// @public
|
|
175
|
+
const columnGapMap: {
|
|
176
|
+
'space.0': SerializedStyles;
|
|
177
|
+
'space.025': SerializedStyles;
|
|
178
|
+
'space.050': SerializedStyles;
|
|
179
|
+
'space.075': SerializedStyles;
|
|
180
|
+
'space.100': SerializedStyles;
|
|
181
|
+
'space.1000': SerializedStyles;
|
|
182
|
+
'space.150': SerializedStyles;
|
|
183
|
+
'space.200': SerializedStyles;
|
|
184
|
+
'space.250': SerializedStyles;
|
|
185
|
+
'space.300': SerializedStyles;
|
|
186
|
+
'space.400': SerializedStyles;
|
|
187
|
+
'space.500': SerializedStyles;
|
|
188
|
+
'space.600': SerializedStyles;
|
|
189
|
+
'space.800': SerializedStyles;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
// @public (undocumented)
|
|
193
|
+
type Display = keyof typeof displayMap;
|
|
194
|
+
|
|
195
|
+
// @public (undocumented)
|
|
196
|
+
const displayMap: {
|
|
197
|
+
block: SerializedStyles;
|
|
198
|
+
inline: SerializedStyles;
|
|
199
|
+
flex: SerializedStyles;
|
|
200
|
+
inlineFlex: SerializedStyles;
|
|
201
|
+
inlineBlock: SerializedStyles;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// @public
|
|
205
|
+
type FlexAlignItems = keyof typeof flexAlignItemsMap;
|
|
206
|
+
|
|
207
|
+
// @public (undocumented)
|
|
208
|
+
type FlexAlignItems_2 = keyof typeof flexAlignItemsMap_2;
|
|
209
|
+
|
|
210
|
+
// @public (undocumented)
|
|
211
|
+
type FlexAlignItems_3 = keyof typeof flexAlignItemsMap_3;
|
|
212
|
+
|
|
213
|
+
// @public (undocumented)
|
|
214
|
+
const flexAlignItemsMap: {
|
|
215
|
+
center: SerializedStyles;
|
|
216
|
+
baseline: SerializedStyles;
|
|
217
|
+
flexStart: SerializedStyles;
|
|
218
|
+
flexEnd: SerializedStyles;
|
|
219
|
+
start: SerializedStyles;
|
|
220
|
+
end: SerializedStyles;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// @public (undocumented)
|
|
224
|
+
const flexAlignItemsMap_2: {
|
|
225
|
+
center: SerializedStyles;
|
|
226
|
+
baseline: SerializedStyles;
|
|
227
|
+
flexStart: SerializedStyles;
|
|
228
|
+
flexEnd: SerializedStyles;
|
|
229
|
+
start: SerializedStyles;
|
|
230
|
+
end: SerializedStyles;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
// @public (undocumented)
|
|
234
|
+
const flexAlignItemsMap_3: {
|
|
235
|
+
center: SerializedStyles;
|
|
236
|
+
baseline: SerializedStyles;
|
|
237
|
+
flexStart: SerializedStyles;
|
|
238
|
+
flexEnd: SerializedStyles;
|
|
239
|
+
start: SerializedStyles;
|
|
240
|
+
end: SerializedStyles;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
// @public
|
|
244
|
+
type FlexDirection = keyof typeof flexDirectionMap;
|
|
245
|
+
|
|
246
|
+
// @public (undocumented)
|
|
247
|
+
const flexDirectionMap: {
|
|
248
|
+
column: SerializedStyles;
|
|
249
|
+
row: SerializedStyles;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
// @public
|
|
253
|
+
type FlexJustifyContent = keyof typeof flexJustifyContentMap;
|
|
254
|
+
|
|
255
|
+
// @public (undocumented)
|
|
256
|
+
type FlexJustifyContent_2 = keyof typeof flexJustifyContentMap_2;
|
|
257
|
+
|
|
258
|
+
// @public (undocumented)
|
|
259
|
+
type FlexJustifyContent_3 = keyof typeof flexJustifyContentMap_3;
|
|
260
|
+
|
|
261
|
+
// @public (undocumented)
|
|
262
|
+
const flexJustifyContentMap: {
|
|
263
|
+
center: SerializedStyles;
|
|
264
|
+
flexStart: SerializedStyles;
|
|
265
|
+
flexEnd: SerializedStyles;
|
|
266
|
+
start: SerializedStyles;
|
|
267
|
+
end: SerializedStyles;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
// @public (undocumented)
|
|
271
|
+
const flexJustifyContentMap_2: {
|
|
272
|
+
center: SerializedStyles;
|
|
273
|
+
flexStart: SerializedStyles;
|
|
274
|
+
'space-between': SerializedStyles;
|
|
275
|
+
flexEnd: SerializedStyles;
|
|
276
|
+
start: SerializedStyles;
|
|
277
|
+
end: SerializedStyles;
|
|
278
|
+
spaceBetween: SerializedStyles;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
// @public (undocumented)
|
|
282
|
+
const flexJustifyContentMap_3: {
|
|
283
|
+
center: SerializedStyles;
|
|
284
|
+
flexStart: SerializedStyles;
|
|
285
|
+
flexEnd: SerializedStyles;
|
|
286
|
+
start: SerializedStyles;
|
|
287
|
+
end: SerializedStyles;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
// @public (undocumented)
|
|
291
|
+
type FlexWrap = keyof typeof flexWrapMap;
|
|
292
|
+
|
|
293
|
+
// @public (undocumented)
|
|
294
|
+
type FlexWrap_2 = keyof typeof flexWrapMap_2;
|
|
295
|
+
|
|
296
|
+
// @public (undocumented)
|
|
297
|
+
const flexWrapMap: {
|
|
298
|
+
wrap: SerializedStyles;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
// @public (undocumented)
|
|
302
|
+
const flexWrapMap_2: {
|
|
303
|
+
wrap: SerializedStyles;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
// @public (undocumented)
|
|
307
|
+
type FontSize = keyof typeof fontSizeMap;
|
|
308
|
+
|
|
309
|
+
// @public
|
|
310
|
+
const fontSizeMap: {
|
|
311
|
+
'size.050': SerializedStyles;
|
|
312
|
+
'size.075': SerializedStyles;
|
|
313
|
+
'size.100': SerializedStyles;
|
|
314
|
+
'size.200': SerializedStyles;
|
|
315
|
+
'size.300': SerializedStyles;
|
|
316
|
+
'size.400': SerializedStyles;
|
|
317
|
+
'size.500': SerializedStyles;
|
|
318
|
+
'size.600': SerializedStyles;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
// @public (undocumented)
|
|
322
|
+
type FontWeight = keyof typeof fontWeightMap;
|
|
323
|
+
|
|
324
|
+
// @public (undocumented)
|
|
325
|
+
const fontWeightMap: {
|
|
326
|
+
bold: SerializedStyles;
|
|
327
|
+
medium: SerializedStyles;
|
|
328
|
+
regular: SerializedStyles;
|
|
329
|
+
semibold: SerializedStyles;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
// @public (undocumented)
|
|
333
|
+
type Height = keyof typeof heightMap;
|
|
334
|
+
|
|
335
|
+
// @public (undocumented)
|
|
336
|
+
const heightMap: {
|
|
337
|
+
'100%': SerializedStyles;
|
|
338
|
+
'size.100': SerializedStyles;
|
|
339
|
+
'size.1000': SerializedStyles;
|
|
340
|
+
'size.200': SerializedStyles;
|
|
341
|
+
'size.300': SerializedStyles;
|
|
342
|
+
'size.400': SerializedStyles;
|
|
343
|
+
'size.500': SerializedStyles;
|
|
344
|
+
'size.600': SerializedStyles;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
// @public (undocumented)
|
|
348
|
+
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
349
|
+
|
|
350
|
+
// @public (undocumented)
|
|
351
|
+
interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
352
|
+
// (undocumented)
|
|
353
|
+
appearance?: InteractionBackgroundColor;
|
|
354
|
+
// (undocumented)
|
|
355
|
+
children: ReactNode;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// @public (undocumented)
|
|
359
|
+
type Layer = keyof typeof LAYERS;
|
|
360
|
+
|
|
361
|
+
// @public (undocumented)
|
|
362
|
+
const LAYERS: {
|
|
363
|
+
readonly card: 100;
|
|
364
|
+
readonly navigation: 200;
|
|
365
|
+
readonly dialog: 300;
|
|
366
|
+
readonly layer: 400;
|
|
367
|
+
readonly blanket: 500;
|
|
368
|
+
readonly modal: 510;
|
|
369
|
+
readonly flag: 600;
|
|
370
|
+
readonly spotlight: 700;
|
|
371
|
+
readonly tooltip: 800;
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
// @public (undocumented)
|
|
375
|
+
type LineHeight = keyof typeof lineHeightMap;
|
|
376
|
+
|
|
377
|
+
// @public (undocumented)
|
|
378
|
+
const lineHeightMap: {
|
|
379
|
+
'lineHeight.100': SerializedStyles;
|
|
380
|
+
'lineHeight.200': SerializedStyles;
|
|
381
|
+
'lineHeight.300': SerializedStyles;
|
|
382
|
+
'lineHeight.400': SerializedStyles;
|
|
383
|
+
'lineHeight.500': SerializedStyles;
|
|
384
|
+
'lineHeight.600': SerializedStyles;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
// @public (undocumented)
|
|
388
|
+
type Overflow = keyof typeof overflowMap;
|
|
389
|
+
|
|
390
|
+
// @public (undocumented)
|
|
391
|
+
const overflowMap: {
|
|
392
|
+
auto: SerializedStyles;
|
|
393
|
+
hidden: SerializedStyles;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
// @public (undocumented)
|
|
397
|
+
type Padding = keyof typeof paddingMap;
|
|
398
|
+
|
|
399
|
+
// @public (undocumented)
|
|
400
|
+
type PaddingBlock = keyof typeof paddingBlockMap;
|
|
401
|
+
|
|
402
|
+
// @public (undocumented)
|
|
403
|
+
const paddingBlockMap: {
|
|
404
|
+
'space.0': SerializedStyles;
|
|
405
|
+
'space.025': SerializedStyles;
|
|
406
|
+
'space.050': SerializedStyles;
|
|
407
|
+
'space.075': SerializedStyles;
|
|
408
|
+
'space.100': SerializedStyles;
|
|
409
|
+
'space.1000': SerializedStyles;
|
|
410
|
+
'space.150': SerializedStyles;
|
|
411
|
+
'space.200': SerializedStyles;
|
|
412
|
+
'space.250': SerializedStyles;
|
|
413
|
+
'space.300': SerializedStyles;
|
|
414
|
+
'space.400': SerializedStyles;
|
|
415
|
+
'space.500': SerializedStyles;
|
|
416
|
+
'space.600': SerializedStyles;
|
|
417
|
+
'space.800': SerializedStyles;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
// @public (undocumented)
|
|
421
|
+
type PaddingInline = keyof typeof paddingInlineMap;
|
|
422
|
+
|
|
423
|
+
// @public (undocumented)
|
|
424
|
+
const paddingInlineMap: {
|
|
425
|
+
'space.0': SerializedStyles;
|
|
426
|
+
'space.025': SerializedStyles;
|
|
427
|
+
'space.050': SerializedStyles;
|
|
428
|
+
'space.075': SerializedStyles;
|
|
429
|
+
'space.100': SerializedStyles;
|
|
430
|
+
'space.1000': SerializedStyles;
|
|
431
|
+
'space.150': SerializedStyles;
|
|
432
|
+
'space.200': SerializedStyles;
|
|
433
|
+
'space.250': SerializedStyles;
|
|
434
|
+
'space.300': SerializedStyles;
|
|
435
|
+
'space.400': SerializedStyles;
|
|
436
|
+
'space.500': SerializedStyles;
|
|
437
|
+
'space.600': SerializedStyles;
|
|
438
|
+
'space.800': SerializedStyles;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
// @public
|
|
442
|
+
const paddingMap: {
|
|
443
|
+
'space.0': SerializedStyles;
|
|
444
|
+
'space.025': SerializedStyles;
|
|
445
|
+
'space.050': SerializedStyles;
|
|
446
|
+
'space.075': SerializedStyles;
|
|
447
|
+
'space.100': SerializedStyles;
|
|
448
|
+
'space.1000': SerializedStyles;
|
|
449
|
+
'space.150': SerializedStyles;
|
|
450
|
+
'space.200': SerializedStyles;
|
|
451
|
+
'space.250': SerializedStyles;
|
|
452
|
+
'space.300': SerializedStyles;
|
|
453
|
+
'space.400': SerializedStyles;
|
|
454
|
+
'space.500': SerializedStyles;
|
|
455
|
+
'space.600': SerializedStyles;
|
|
456
|
+
'space.800': SerializedStyles;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
// @public (undocumented)
|
|
460
|
+
type Position = keyof typeof positionMap;
|
|
461
|
+
|
|
462
|
+
// @public (undocumented)
|
|
463
|
+
const positionMap: {
|
|
464
|
+
absolute: SerializedStyles;
|
|
465
|
+
fixed: SerializedStyles;
|
|
466
|
+
relative: SerializedStyles;
|
|
467
|
+
static: SerializedStyles;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
// @public (undocumented)
|
|
471
|
+
type RowGap = keyof typeof rowGapMap;
|
|
472
|
+
|
|
473
|
+
// @public
|
|
474
|
+
const rowGapMap: {
|
|
475
|
+
'space.0': SerializedStyles;
|
|
476
|
+
'space.025': SerializedStyles;
|
|
477
|
+
'space.050': SerializedStyles;
|
|
478
|
+
'space.075': SerializedStyles;
|
|
479
|
+
'space.100': SerializedStyles;
|
|
480
|
+
'space.1000': SerializedStyles;
|
|
481
|
+
'space.150': SerializedStyles;
|
|
482
|
+
'space.200': SerializedStyles;
|
|
483
|
+
'space.250': SerializedStyles;
|
|
484
|
+
'space.300': SerializedStyles;
|
|
485
|
+
'space.400': SerializedStyles;
|
|
486
|
+
'space.500': SerializedStyles;
|
|
487
|
+
'space.600': SerializedStyles;
|
|
488
|
+
'space.800': SerializedStyles;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
// @public (undocumented)
|
|
492
|
+
type Shadow = keyof typeof shadowMap;
|
|
493
|
+
|
|
494
|
+
// @public (undocumented)
|
|
495
|
+
const shadowMap: {
|
|
496
|
+
readonly overflow: SerializedStyles;
|
|
497
|
+
readonly 'overflow.perimeter': SerializedStyles;
|
|
498
|
+
readonly 'overflow.spread': SerializedStyles;
|
|
499
|
+
readonly overlay: SerializedStyles;
|
|
500
|
+
readonly raised: SerializedStyles;
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
// @public (undocumented)
|
|
504
|
+
type TextAlign = keyof typeof textAlignMap;
|
|
505
|
+
|
|
506
|
+
// @public (undocumented)
|
|
507
|
+
const textAlignMap: {
|
|
508
|
+
center: SerializedStyles;
|
|
509
|
+
end: SerializedStyles;
|
|
510
|
+
start: SerializedStyles;
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
// @public (undocumented)
|
|
514
|
+
type TextColor = keyof typeof textColorMap;
|
|
515
|
+
|
|
516
|
+
// @public
|
|
517
|
+
const textColorMap: {
|
|
518
|
+
readonly 'color.text': SerializedStyles;
|
|
519
|
+
readonly disabled: SerializedStyles;
|
|
520
|
+
readonly inverse: SerializedStyles;
|
|
521
|
+
readonly selected: SerializedStyles;
|
|
522
|
+
readonly brand: SerializedStyles;
|
|
523
|
+
readonly danger: SerializedStyles;
|
|
524
|
+
readonly warning: SerializedStyles;
|
|
525
|
+
readonly 'warning.inverse': SerializedStyles;
|
|
526
|
+
readonly success: SerializedStyles;
|
|
527
|
+
readonly discovery: SerializedStyles;
|
|
528
|
+
readonly information: SerializedStyles;
|
|
529
|
+
readonly subtlest: SerializedStyles;
|
|
530
|
+
readonly subtle: SerializedStyles;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
// @public (undocumented)
|
|
534
|
+
type TextTransform = keyof typeof textTransformMap;
|
|
535
|
+
|
|
536
|
+
// @public (undocumented)
|
|
537
|
+
const textTransformMap: {
|
|
538
|
+
none: SerializedStyles;
|
|
539
|
+
lowercase: SerializedStyles;
|
|
540
|
+
uppercase: SerializedStyles;
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
// @public @deprecated
|
|
544
|
+
export const UNSAFE_Box: BoxComponent;
|
|
545
|
+
|
|
546
|
+
// @public @deprecated (undocumented)
|
|
547
|
+
export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BoxPropsBase<T>;
|
|
548
|
+
|
|
549
|
+
// @public @deprecated
|
|
550
|
+
export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>>;
|
|
551
|
+
|
|
552
|
+
// @public @deprecated (undocumented)
|
|
553
|
+
export interface UNSAFE_InlineProps extends BasePrimitiveProps {
|
|
554
|
+
alignItems?: FlexAlignItems_2;
|
|
555
|
+
children: ReactNode;
|
|
556
|
+
divider?: ReactNode;
|
|
557
|
+
flexWrap?: FlexWrap;
|
|
558
|
+
gap: ColumnGap;
|
|
559
|
+
justifyContent?: FlexJustifyContent_2;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
// @public (undocumented)
|
|
563
|
+
export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
564
|
+
|
|
565
|
+
// @public @deprecated
|
|
566
|
+
export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>>;
|
|
567
|
+
|
|
568
|
+
// @public @deprecated (undocumented)
|
|
569
|
+
export interface UNSAFE_StackProps extends BasePrimitiveProps {
|
|
570
|
+
alignItems?: FlexAlignItems_3;
|
|
571
|
+
children: ReactNode;
|
|
572
|
+
flexWrap?: FlexWrap_2;
|
|
573
|
+
gap: RowGap;
|
|
574
|
+
justifyContent?: FlexJustifyContent_3;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
// @internal
|
|
578
|
+
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|
|
579
|
+
|
|
580
|
+
// @public (undocumented)
|
|
581
|
+
export interface UNSAFE_TextProps extends BasePrimitiveProps {
|
|
582
|
+
as?: AsElement;
|
|
583
|
+
children: ReactNode;
|
|
584
|
+
color?: TextColor;
|
|
585
|
+
fontSize?: FontSize;
|
|
586
|
+
fontWeight?: FontWeight;
|
|
587
|
+
id?: string;
|
|
588
|
+
lineHeight?: LineHeight;
|
|
589
|
+
shouldTruncate?: boolean;
|
|
590
|
+
textAlign?: TextAlign;
|
|
591
|
+
textTransform?: TextTransform;
|
|
592
|
+
verticalAlign?: VerticalAlign;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
// @public (undocumented)
|
|
596
|
+
type VerticalAlign = keyof typeof verticalAlignMap;
|
|
597
|
+
|
|
598
|
+
// @public (undocumented)
|
|
599
|
+
const verticalAlignMap: {
|
|
600
|
+
top: SerializedStyles;
|
|
601
|
+
middle: SerializedStyles;
|
|
602
|
+
bottom: SerializedStyles;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
// @public (undocumented)
|
|
606
|
+
type Width = keyof typeof widthMap;
|
|
607
|
+
|
|
608
|
+
// @public
|
|
609
|
+
const widthMap: {
|
|
610
|
+
'100%': SerializedStyles;
|
|
611
|
+
'size.100': SerializedStyles;
|
|
612
|
+
'size.1000': SerializedStyles;
|
|
613
|
+
'size.200': SerializedStyles;
|
|
614
|
+
'size.300': SerializedStyles;
|
|
615
|
+
'size.400': SerializedStyles;
|
|
616
|
+
'size.500': SerializedStyles;
|
|
617
|
+
'size.600': SerializedStyles;
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
// (No @packageDocumentation comment for this package)
|
|
621
|
+
|
|
622
|
+
```
|