@atlaskit/ds-explorations 3.5.2 → 4.0.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 +370 -358
- package/README.md +4 -3
- package/afm-jira/tsconfig.json +24 -0
- package/dist/cjs/components/interaction-surface.partial.js +1 -1
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/internal/color-map.js +1 -1
- package/dist/es2019/components/interaction-surface.partial.js +1 -1
- package/dist/es2019/index.js +0 -1
- package/dist/es2019/internal/color-map.js +1 -1
- package/dist/esm/components/interaction-surface.partial.js +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/internal/color-map.js +1 -1
- package/dist/types/components/interaction-surface.partial.d.ts +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/internal/color-map.d.ts +1 -1
- package/dist/types-ts4.5/components/interaction-surface.partial.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/internal/color-map.d.ts +1 -1
- package/docs/01-basic.tsx +11 -13
- package/examples/99-interactions.tsx +174 -176
- package/package.json +6 -10
- package/report.api.md +127 -126
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +540 -540
- package/scripts/__tests__/codegen.test.tsx +15 -17
- package/scripts/codegen-styles.tsx +25 -92
- package/scripts/color-codegen-template.tsx +69 -82
- package/scripts/color-map-template.tsx +24 -29
- package/scripts/dimension-codegen-template.tsx +32 -35
- package/scripts/interaction-codegen.tsx +61 -74
- package/scripts/misc-codegen-template.tsx +23 -25
- package/scripts/utils.tsx +30 -34
- package/src/components/__tests__/unit/interaction-suface.test.tsx +61 -62
- package/src/components/interaction-surface.partial.tsx +412 -416
- package/src/components/surface-provider.tsx +1 -1
- package/src/components/types.tsx +10 -10
- package/src/constants.tsx +9 -9
- package/src/index.tsx +0 -2
- package/src/internal/color-map.tsx +28 -28
- package/src/internal/role-to-element.tsx +21 -21
- package/tsconfig.app.json +44 -44
- package/tsconfig.dev.json +71 -83
- package/dist/cjs/components/text.partial.js +0 -280
- package/dist/cjs/internal/spacing-scale.js +0 -15
- package/dist/es2019/components/text.partial.js +0 -271
- package/dist/es2019/internal/spacing-scale.js +0 -9
- package/dist/esm/components/text.partial.js +0 -274
- package/dist/esm/internal/spacing-scale.js +0 -9
- package/dist/types/components/text.partial.d.ts +0 -157
- package/dist/types/internal/spacing-scale.d.ts +0 -9
- package/dist/types-ts4.5/components/text.partial.d.ts +0 -162
- package/dist/types-ts4.5/internal/spacing-scale.d.ts +0 -24
- package/examples/02-text-advanced.tsx +0 -30
- package/examples/02-text.tsx +0 -110
- package/examples/06-section-message.tsx +0 -82
- package/examples/07-comment.tsx +0 -51
- package/examples/08-lozenge.tsx +0 -34
- package/scripts/spacing-codegen-template.tsx +0 -66
- package/scripts/spacing-scale-template.tsx +0 -24
- package/scripts/typography-codegen-template.tsx +0 -72
- package/src/components/__tests__/unit/text.test.tsx +0 -64
- package/src/components/__tests__/vr-tests/__snapshots__/text-snapshot-test/text--default.png +0 -0
- package/src/components/__tests__/vr-tests/text-snapshot-test.vr.tsx +0 -6
- package/src/components/text.partial.tsx +0 -375
- package/src/internal/spacing-scale.tsx +0 -24
- package/text/package.json +0 -15
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/ds-explorations"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -29,75 +30,75 @@ type AsElement = (typeof asAllowlist)[number];
|
|
|
29
30
|
|
|
30
31
|
// @public (undocumented)
|
|
31
32
|
const backgroundHoverColorMap: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
33
|
+
'accent.lime.subtlest': SerializedStyles;
|
|
34
|
+
'accent.lime.subtler': SerializedStyles;
|
|
35
|
+
'accent.lime.subtle': SerializedStyles;
|
|
36
|
+
'accent.lime.bolder': SerializedStyles;
|
|
37
|
+
'accent.red.subtlest': SerializedStyles;
|
|
38
|
+
'accent.red.subtler': SerializedStyles;
|
|
39
|
+
'accent.red.subtle': SerializedStyles;
|
|
40
|
+
'accent.red.bolder': SerializedStyles;
|
|
41
|
+
'accent.orange.subtlest': SerializedStyles;
|
|
42
|
+
'accent.orange.subtler': SerializedStyles;
|
|
43
|
+
'accent.orange.subtle': SerializedStyles;
|
|
44
|
+
'accent.orange.bolder': SerializedStyles;
|
|
45
|
+
'accent.yellow.subtlest': SerializedStyles;
|
|
46
|
+
'accent.yellow.subtler': SerializedStyles;
|
|
47
|
+
'accent.yellow.subtle': SerializedStyles;
|
|
48
|
+
'accent.yellow.bolder': SerializedStyles;
|
|
49
|
+
'accent.green.subtlest': SerializedStyles;
|
|
50
|
+
'accent.green.subtler': SerializedStyles;
|
|
51
|
+
'accent.green.subtle': SerializedStyles;
|
|
52
|
+
'accent.green.bolder': SerializedStyles;
|
|
53
|
+
'accent.teal.subtlest': SerializedStyles;
|
|
54
|
+
'accent.teal.subtler': SerializedStyles;
|
|
55
|
+
'accent.teal.subtle': SerializedStyles;
|
|
56
|
+
'accent.teal.bolder': SerializedStyles;
|
|
57
|
+
'accent.blue.subtlest': SerializedStyles;
|
|
58
|
+
'accent.blue.subtler': SerializedStyles;
|
|
59
|
+
'accent.blue.subtle': SerializedStyles;
|
|
60
|
+
'accent.blue.bolder': SerializedStyles;
|
|
61
|
+
'accent.purple.subtlest': SerializedStyles;
|
|
62
|
+
'accent.purple.subtler': SerializedStyles;
|
|
63
|
+
'accent.purple.subtle': SerializedStyles;
|
|
64
|
+
'accent.purple.bolder': SerializedStyles;
|
|
65
|
+
'accent.magenta.subtlest': SerializedStyles;
|
|
66
|
+
'accent.magenta.subtler': SerializedStyles;
|
|
67
|
+
'accent.magenta.subtle': SerializedStyles;
|
|
68
|
+
'accent.magenta.bolder': SerializedStyles;
|
|
69
|
+
'accent.gray.subtlest': SerializedStyles;
|
|
70
|
+
'accent.gray.subtler': SerializedStyles;
|
|
71
|
+
'accent.gray.subtle': SerializedStyles;
|
|
72
|
+
'accent.gray.bolder': SerializedStyles;
|
|
73
|
+
input: SerializedStyles;
|
|
74
|
+
'inverse.subtle': SerializedStyles;
|
|
75
|
+
neutral: SerializedStyles;
|
|
76
|
+
'neutral.subtle': SerializedStyles;
|
|
77
|
+
'neutral.bold': SerializedStyles;
|
|
78
|
+
selected: SerializedStyles;
|
|
79
|
+
'selected.bold': SerializedStyles;
|
|
80
|
+
'brand.subtlest': SerializedStyles;
|
|
81
|
+
'brand.bold': SerializedStyles;
|
|
82
|
+
'brand.boldest': SerializedStyles;
|
|
83
|
+
danger: SerializedStyles;
|
|
84
|
+
'danger.bold': SerializedStyles;
|
|
85
|
+
warning: SerializedStyles;
|
|
86
|
+
'warning.bold': SerializedStyles;
|
|
87
|
+
success: SerializedStyles;
|
|
88
|
+
'success.bold': SerializedStyles;
|
|
89
|
+
discovery: SerializedStyles;
|
|
90
|
+
'discovery.bold': SerializedStyles;
|
|
91
|
+
information: SerializedStyles;
|
|
92
|
+
'information.bold': SerializedStyles;
|
|
93
|
+
'elevation.surface': SerializedStyles;
|
|
94
|
+
'elevation.surface.overlay': SerializedStyles;
|
|
95
|
+
'elevation.surface.raised': SerializedStyles;
|
|
95
96
|
};
|
|
96
97
|
|
|
97
98
|
// @public (undocumented)
|
|
98
99
|
interface BasePrimitiveProps {
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
testId?: string;
|
|
101
|
+
UNSAFE_style?: CSSProperties;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
// @public (undocumented)
|
|
@@ -105,14 +106,14 @@ type FontSize = keyof typeof fontSizeMap;
|
|
|
105
106
|
|
|
106
107
|
// @public
|
|
107
108
|
const fontSizeMap: {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
'size.050': SerializedStyles;
|
|
110
|
+
'size.075': SerializedStyles;
|
|
111
|
+
'size.100': SerializedStyles;
|
|
112
|
+
'size.200': SerializedStyles;
|
|
113
|
+
'size.300': SerializedStyles;
|
|
114
|
+
'size.400': SerializedStyles;
|
|
115
|
+
'size.500': SerializedStyles;
|
|
116
|
+
'size.600': SerializedStyles;
|
|
116
117
|
};
|
|
117
118
|
|
|
118
119
|
// @public (undocumented)
|
|
@@ -120,10 +121,10 @@ type FontWeight = keyof typeof fontWeightMap;
|
|
|
120
121
|
|
|
121
122
|
// @public (undocumented)
|
|
122
123
|
const fontWeightMap: {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
bold: SerializedStyles;
|
|
125
|
+
medium: SerializedStyles;
|
|
126
|
+
regular: SerializedStyles;
|
|
127
|
+
semibold: SerializedStyles;
|
|
127
128
|
};
|
|
128
129
|
|
|
129
130
|
// @public (undocumented)
|
|
@@ -131,10 +132,10 @@ type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
|
131
132
|
|
|
132
133
|
// @public (undocumented)
|
|
133
134
|
interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
// (undocumented)
|
|
136
|
+
appearance?: InteractionBackgroundColor;
|
|
137
|
+
// (undocumented)
|
|
138
|
+
children: ReactNode;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
// @public (undocumented)
|
|
@@ -142,13 +143,13 @@ type LineHeight = keyof typeof lineHeightMap;
|
|
|
142
143
|
|
|
143
144
|
// @public (undocumented)
|
|
144
145
|
const lineHeightMap: {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
'lineHeight.1': SerializedStyles;
|
|
147
|
+
'lineHeight.100': SerializedStyles;
|
|
148
|
+
'lineHeight.200': SerializedStyles;
|
|
149
|
+
'lineHeight.300': SerializedStyles;
|
|
150
|
+
'lineHeight.400': SerializedStyles;
|
|
151
|
+
'lineHeight.500': SerializedStyles;
|
|
152
|
+
'lineHeight.600': SerializedStyles;
|
|
152
153
|
};
|
|
153
154
|
|
|
154
155
|
// @public (undocumented)
|
|
@@ -156,9 +157,9 @@ type TextAlign = keyof typeof textAlignMap;
|
|
|
156
157
|
|
|
157
158
|
// @public (undocumented)
|
|
158
159
|
const textAlignMap: {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
center: SerializedStyles;
|
|
161
|
+
end: SerializedStyles;
|
|
162
|
+
start: SerializedStyles;
|
|
162
163
|
};
|
|
163
164
|
|
|
164
165
|
// @public (undocumented)
|
|
@@ -166,19 +167,19 @@ type TextColor = keyof typeof textColorMap;
|
|
|
166
167
|
|
|
167
168
|
// @public
|
|
168
169
|
const textColorMap: {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
170
|
+
readonly 'color.text': SerializedStyles;
|
|
171
|
+
readonly disabled: SerializedStyles;
|
|
172
|
+
readonly inverse: SerializedStyles;
|
|
173
|
+
readonly selected: SerializedStyles;
|
|
174
|
+
readonly brand: SerializedStyles;
|
|
175
|
+
readonly danger: SerializedStyles;
|
|
176
|
+
readonly warning: SerializedStyles;
|
|
177
|
+
readonly 'warning.inverse': SerializedStyles;
|
|
178
|
+
readonly success: SerializedStyles;
|
|
179
|
+
readonly discovery: SerializedStyles;
|
|
180
|
+
readonly information: SerializedStyles;
|
|
181
|
+
readonly subtlest: SerializedStyles;
|
|
182
|
+
readonly subtle: SerializedStyles;
|
|
182
183
|
};
|
|
183
184
|
|
|
184
185
|
// @public (undocumented)
|
|
@@ -186,16 +187,16 @@ type TextTransform = keyof typeof textTransformMap;
|
|
|
186
187
|
|
|
187
188
|
// @public (undocumented)
|
|
188
189
|
const textTransformMap: {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
none: SerializedStyles;
|
|
191
|
+
lowercase: SerializedStyles;
|
|
192
|
+
uppercase: SerializedStyles;
|
|
192
193
|
};
|
|
193
194
|
|
|
194
195
|
// @public (undocumented)
|
|
195
196
|
export const UNSAFE_InteractionSurface: ({
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
appearance,
|
|
198
|
+
children,
|
|
199
|
+
testId,
|
|
199
200
|
}: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
200
201
|
|
|
201
202
|
// @internal
|
|
@@ -203,17 +204,17 @@ export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|
|
|
203
204
|
|
|
204
205
|
// @public (undocumented)
|
|
205
206
|
export interface UNSAFE_TextProps extends BasePrimitiveProps {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
207
|
+
as?: AsElement;
|
|
208
|
+
children: ReactNode;
|
|
209
|
+
color?: TextColor;
|
|
210
|
+
fontSize?: FontSize;
|
|
211
|
+
fontWeight?: FontWeight;
|
|
212
|
+
id?: string;
|
|
213
|
+
lineHeight?: LineHeight;
|
|
214
|
+
shouldTruncate?: boolean;
|
|
215
|
+
textAlign?: TextAlign;
|
|
216
|
+
textTransform?: TextTransform;
|
|
217
|
+
verticalAlign?: VerticalAlign;
|
|
217
218
|
}
|
|
218
219
|
|
|
219
220
|
// @public (undocumented)
|
|
@@ -221,9 +222,9 @@ type VerticalAlign = keyof typeof verticalAlignMap;
|
|
|
221
222
|
|
|
222
223
|
// @public (undocumented)
|
|
223
224
|
const verticalAlignMap: {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
top: SerializedStyles;
|
|
226
|
+
middle: SerializedStyles;
|
|
227
|
+
bottom: SerializedStyles;
|
|
227
228
|
};
|
|
228
229
|
|
|
229
230
|
// (No @packageDocumentation comment for this package)
|
|
@@ -237,7 +238,7 @@ const verticalAlignMap: {
|
|
|
237
238
|
|
|
238
239
|
```json
|
|
239
240
|
{
|
|
240
|
-
|
|
241
|
+
"react": "^16.8.0"
|
|
241
242
|
}
|
|
242
243
|
```
|
|
243
244
|
|