@atlaskit/ds-explorations 2.2.15 → 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 +8 -0
- package/dist/cjs/index.js +0 -21
- package/dist/es2019/index.js +0 -3
- package/dist/esm/index.js +0 -3
- package/dist/types/components/surface-provider.d.ts +2 -2
- 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/index.d.ts +0 -6
- 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 +3 -5
- 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/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
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getExampleUrl,
|
|
3
|
-
loadPage,
|
|
4
|
-
takeElementScreenShot,
|
|
5
|
-
} from '@atlaskit/visual-regression/helper';
|
|
6
|
-
|
|
7
|
-
describe('Inline', () => {
|
|
8
|
-
it.each(['spacing', 'alignment'])(
|
|
9
|
-
`%s example should match snapshot`,
|
|
10
|
-
async (selector) => {
|
|
11
|
-
const url = getExampleUrl(
|
|
12
|
-
'design-system',
|
|
13
|
-
'ds-explorations',
|
|
14
|
-
'inline',
|
|
15
|
-
global.__BASEURL__,
|
|
16
|
-
);
|
|
17
|
-
const { page } = global;
|
|
18
|
-
|
|
19
|
-
await loadPage(page, url);
|
|
20
|
-
|
|
21
|
-
const image = await takeElementScreenShot(
|
|
22
|
-
page,
|
|
23
|
-
`[data-testid="inline-${selector}"]`,
|
|
24
|
-
);
|
|
25
|
-
expect(image).toMatchProdImageSnapshot();
|
|
26
|
-
},
|
|
27
|
-
);
|
|
28
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getExampleUrl,
|
|
3
|
-
loadPage,
|
|
4
|
-
takeElementScreenShot,
|
|
5
|
-
} from '@atlaskit/visual-regression/helper';
|
|
6
|
-
|
|
7
|
-
describe('Stack', () => {
|
|
8
|
-
it.each(['spacing', 'alignment'])(
|
|
9
|
-
`%s example should match snapshot`,
|
|
10
|
-
async (selector) => {
|
|
11
|
-
const url = getExampleUrl(
|
|
12
|
-
'design-system',
|
|
13
|
-
'ds-explorations',
|
|
14
|
-
'stack',
|
|
15
|
-
global.__BASEURL__,
|
|
16
|
-
);
|
|
17
|
-
const { page } = global;
|
|
18
|
-
|
|
19
|
-
await loadPage(page, url);
|
|
20
|
-
|
|
21
|
-
const image = await takeElementScreenShot(
|
|
22
|
-
page,
|
|
23
|
-
`[data-testid="stack-${selector}"]`,
|
|
24
|
-
);
|
|
25
|
-
expect(image).toMatchProdImageSnapshot();
|
|
26
|
-
},
|
|
27
|
-
);
|
|
28
|
-
});
|
|
Binary file
|