@atlaskit/ds-explorations 0.1.0 → 0.1.3

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 (81) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/components/box.partial.js +220 -182
  3. package/dist/cjs/components/inline.partial.js +28 -24
  4. package/dist/cjs/components/interaction-surface.partial.js +253 -0
  5. package/dist/cjs/components/stack.partial.js +26 -22
  6. package/dist/cjs/components/surface-provider.js +31 -0
  7. package/dist/cjs/components/text.partial.js +79 -36
  8. package/dist/cjs/constants.js +1 -0
  9. package/dist/cjs/index.js +17 -1
  10. package/dist/cjs/internal/color-map.js +42 -0
  11. package/dist/cjs/internal/role-to-element.js +36 -0
  12. package/dist/cjs/version.json +1 -1
  13. package/dist/es2019/components/box.partial.js +91 -60
  14. package/dist/es2019/components/inline.partial.js +6 -2
  15. package/dist/es2019/components/interaction-surface.partial.js +243 -0
  16. package/dist/es2019/components/stack.partial.js +6 -2
  17. package/dist/es2019/components/surface-provider.js +20 -0
  18. package/dist/es2019/components/text.partial.js +48 -9
  19. package/dist/es2019/constants.js +1 -0
  20. package/dist/es2019/index.js +3 -1
  21. package/dist/es2019/internal/color-map.js +34 -0
  22. package/dist/es2019/internal/role-to-element.js +28 -0
  23. package/dist/es2019/version.json +1 -1
  24. package/dist/esm/components/box.partial.js +100 -62
  25. package/dist/esm/components/inline.partial.js +6 -2
  26. package/dist/esm/components/interaction-surface.partial.js +242 -0
  27. package/dist/esm/components/stack.partial.js +6 -2
  28. package/dist/esm/components/surface-provider.js +20 -0
  29. package/dist/esm/components/text.partial.js +49 -9
  30. package/dist/esm/constants.js +1 -0
  31. package/dist/esm/index.js +3 -1
  32. package/dist/esm/internal/color-map.js +34 -0
  33. package/dist/esm/internal/role-to-element.js +28 -0
  34. package/dist/esm/version.json +1 -1
  35. package/dist/types/components/box.partial.d.ts +99 -78
  36. package/dist/types/components/inline.partial.d.ts +7 -7
  37. package/dist/types/components/interaction-surface.partial.d.ts +45 -0
  38. package/dist/types/components/stack.partial.d.ts +7 -7
  39. package/dist/types/components/surface-provider.d.ts +15 -0
  40. package/dist/types/components/text.partial.d.ts +58 -34
  41. package/dist/types/components/types.d.ts +1 -1
  42. package/dist/types/constants.d.ts +1 -0
  43. package/dist/types/index.d.ts +4 -0
  44. package/dist/types/internal/color-map.d.ts +34 -0
  45. package/dist/types/internal/role-to-element.d.ts +32 -0
  46. package/examples/02-text.tsx +34 -13
  47. package/examples/05-badge.tsx +1 -1
  48. package/examples/06-section-message.tsx +1 -1
  49. package/examples/07-comment.tsx +1 -1
  50. package/examples/08-lozenge.tsx +2 -2
  51. package/examples/99-interactions.tsx +175 -0
  52. package/package.json +8 -5
  53. package/report.api.md +223 -136
  54. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +164 -3
  55. package/scripts/__tests__/codegen.test.tsx +5 -0
  56. package/scripts/codegen-styles.tsx +46 -14
  57. package/scripts/color-codegen-template.tsx +1 -1
  58. package/scripts/color-map-template.tsx +52 -0
  59. package/scripts/interaction-codegen.tsx +109 -0
  60. package/scripts/utils.tsx +5 -1
  61. package/src/components/__tests__/unit/box.test.tsx +31 -1
  62. package/src/components/__tests__/unit/interaction-suface.test.tsx +70 -0
  63. package/src/components/__tests__/unit/text.test.tsx +16 -0
  64. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-block-should-match-snapshot-1-snap.png +2 -2
  65. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-inline-should-match-snapshot-1-snap.png +2 -2
  66. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-should-match-snapshot-1-snap.png +2 -2
  67. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +2 -2
  68. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +2 -2
  69. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-sizes-should-match-snapshot-1-snap.png +2 -2
  70. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-testing-should-match-snapshot-1-snap.png +2 -2
  71. package/src/components/box.partial.tsx +112 -71
  72. package/src/components/inline.partial.tsx +5 -2
  73. package/src/components/interaction-surface.partial.tsx +237 -0
  74. package/src/components/stack.partial.tsx +5 -2
  75. package/src/components/surface-provider.tsx +25 -0
  76. package/src/components/text.partial.tsx +62 -26
  77. package/src/components/types.tsx +1 -1
  78. package/src/constants.tsx +1 -0
  79. package/src/index.tsx +4 -0
  80. package/src/internal/color-map.tsx +34 -0
  81. package/src/internal/role-to-element.tsx +34 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d6328e5e1ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6328e5e1ec) - Removes the default values for `<Text />`.
8
+
9
+ ## 0.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`37246e87cfc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37246e87cfc) - Adds position static to Box.
14
+ Changes lozenge to use position static instead of relative.
15
+ - [`09c2fef4837`](https://bitbucket.org/atlassian/atlassian-frontend/commits/09c2fef4837) - Introduces a `className` to `Box`.
16
+ - [`862d3b09b49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/862d3b09b49) - Add `shouldTruncate` prop to Text to enable truncating text with an ellipsis. Defaults to false.
17
+ - [`def8e951547`](https://bitbucket.org/atlassian/atlassian-frontend/commits/def8e951547) - Drop href from Text. Reduce `as` options available for Text to account only for the most basic HTML elements that typically contain text.
18
+ - [`22198a90b65`](https://bitbucket.org/atlassian/atlassian-frontend/commits/22198a90b65) - Add textTransform prop, verticalAlign prop, and fontWeight '700' option to Text component. Changed fontSize prop options to include 'px' unit. Add default 'border-box' box-sizing to Text. Export BoxProps, TextProps, and SPACING_SCALE.
19
+
20
+ ## 0.1.1
21
+
22
+ ### Patch Changes
23
+
24
+ - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
25
+
3
26
  ## 0.1.0
4
27
 
5
28
  ### Minor Changes