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