@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.
Files changed (60) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/index.js +0 -21
  3. package/dist/es2019/index.js +0 -3
  4. package/dist/esm/index.js +0 -3
  5. package/dist/types/components/surface-provider.d.ts +2 -2
  6. package/dist/types/index.d.ts +0 -6
  7. package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
  8. package/dist/types-ts4.5/index.d.ts +0 -6
  9. package/examples/02-text-advanced.tsx +11 -20
  10. package/examples/02-text.tsx +15 -10
  11. package/examples/05-badge.tsx +9 -5
  12. package/examples/06-section-message.tsx +2 -4
  13. package/examples/07-comment.tsx +1 -3
  14. package/examples/08-lozenge.tsx +8 -4
  15. package/examples/99-interactions.tsx +49 -33
  16. package/package.json +3 -5
  17. package/report.api.md +0 -465
  18. package/scripts/codegen-styles.tsx +16 -89
  19. package/src/components/__tests__/unit/interaction-suface.test.tsx +2 -2
  20. package/src/components/surface-provider.tsx +1 -1
  21. package/src/index.tsx +0 -6
  22. package/tmp/api-report-tmp.d.ts +0 -451
  23. package/tsconfig.app.json +3 -0
  24. package/tsconfig.dev.json +0 -6
  25. package/box/package.json +0 -15
  26. package/dist/cjs/components/box.partial.js +0 -622
  27. package/dist/cjs/components/inline.partial.js +0 -183
  28. package/dist/cjs/components/stack.partial.js +0 -149
  29. package/dist/es2019/components/box.partial.js +0 -614
  30. package/dist/es2019/components/inline.partial.js +0 -177
  31. package/dist/es2019/components/stack.partial.js +0 -144
  32. package/dist/esm/components/box.partial.js +0 -617
  33. package/dist/esm/components/inline.partial.js +0 -177
  34. package/dist/esm/components/stack.partial.js +0 -143
  35. package/dist/types/components/box.partial.d.ts +0 -357
  36. package/dist/types/components/inline.partial.d.ts +0 -108
  37. package/dist/types/components/stack.partial.d.ts +0 -92
  38. package/dist/types-ts4.5/components/box.partial.d.ts +0 -357
  39. package/dist/types-ts4.5/components/inline.partial.d.ts +0 -108
  40. package/dist/types-ts4.5/components/stack.partial.d.ts +0 -92
  41. package/examples/00-basic.tsx +0 -22
  42. package/examples/01-box.tsx +0 -171
  43. package/examples/03-stack.tsx +0 -99
  44. package/examples/04-inline.tsx +0 -99
  45. package/inline/package.json +0 -15
  46. package/src/components/__tests__/unit/box.test.tsx +0 -55
  47. package/src/components/__tests__/unit/inline.test.tsx +0 -43
  48. package/src/components/__tests__/unit/stack.test.tsx +0 -31
  49. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +0 -3
  50. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +0 -3
  51. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +0 -3
  52. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +0 -3
  53. package/src/components/__tests__/visual-regression/inline-snapshot-test.tsx +0 -28
  54. package/src/components/__tests__/visual-regression/stack-snapshot-test.tsx +0 -28
  55. package/src/components/__tests__/vr-tests/__snapshots__/box--default.png +0 -0
  56. package/src/components/__tests__/vr-tests/box-snapshot-test.vr.tsx +0 -6
  57. package/src/components/box.partial.tsx +0 -706
  58. package/src/components/inline.partial.tsx +0 -218
  59. package/src/components/stack.partial.tsx +0 -174
  60. 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
- });
@@ -1,6 +0,0 @@
1
- // eslint-disable-next-line import/no-extraneous-dependencies
2
- import { snapshot } from '@af/visual-regression';
3
-
4
- import Box from '../../../../examples/01-box';
5
-
6
- snapshot(Box);