@atlaskit/primitives 0.8.6 → 0.8.7

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 0.8.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bad2da77917`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bad2da77917) - The Box primitive now accepts more elements for the 'as' prop
8
+
3
9
  ## 0.8.6
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "sideEffects": false
5
5
  }
@@ -7,7 +7,7 @@ declare type BaseBoxPropsFoundation<T extends ElementType> = {
7
7
  /**
8
8
  * The DOM element to render as the Box. Defaults to `div`.
9
9
  */
10
- as?: 'div' | 'span' | 'li';
10
+ as?: 'article' | 'aside' | 'dialog' | 'div' | 'footer' | 'header' | 'li' | 'main' | 'nav' | 'ol' | 'section' | 'span' | 'ul';
11
11
  /**
12
12
  * The HTML className attribute.
13
13
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
package/report.api.md CHANGED
@@ -183,7 +183,20 @@ type BaseBoxProps<T extends ElementType = 'div'> = Omit<
183
183
 
184
184
  // @public (undocumented)
185
185
  type BaseBoxPropsFoundation<T extends ElementType> = {
186
- as?: 'div' | 'li' | 'span';
186
+ as?:
187
+ | 'article'
188
+ | 'aside'
189
+ | 'dialog'
190
+ | 'div'
191
+ | 'footer'
192
+ | 'header'
193
+ | 'li'
194
+ | 'main'
195
+ | 'nav'
196
+ | 'ol'
197
+ | 'section'
198
+ | 'span'
199
+ | 'ul';
187
200
  className?: string;
188
201
  children?: ReactNode;
189
202
  backgroundColor?: BackgroundColor;
@@ -167,7 +167,7 @@ type BaseBoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef
167
167
 
168
168
  // @public (undocumented)
169
169
  type BaseBoxPropsFoundation<T extends ElementType> = {
170
- as?: 'div' | 'li' | 'span';
170
+ as?: 'article' | 'aside' | 'dialog' | 'div' | 'footer' | 'header' | 'li' | 'main' | 'nav' | 'ol' | 'section' | 'span' | 'ul';
171
171
  className?: string;
172
172
  children?: ReactNode;
173
173
  backgroundColor?: BackgroundColor;