@atlaskit/icon 21.10.3 → 21.10.6

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,23 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 21.10.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 21.10.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 21.10.4
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 21.10.3
4
22
 
5
23
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "21.10.3",
3
+ "version": "21.10.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "21.10.3",
3
+ "version": "21.10.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "21.10.3",
3
+ "version": "21.10.6",
4
4
  "sideEffects": false
5
5
  }
@@ -2,10 +2,10 @@ import type { Size } from '../types';
2
2
  import { CSSObject } from '@emotion/core';
3
3
  export declare const commonSVGStyles: CSSObject;
4
4
  export declare const sizeStyleMap: {
5
- small: import("@emotion/core").SerializedStyles;
6
- medium: import("@emotion/core").SerializedStyles;
7
- large: import("@emotion/core").SerializedStyles;
8
- xlarge: import("@emotion/core").SerializedStyles;
5
+ small: import("@emotion/utils").SerializedStyles;
6
+ medium: import("@emotion/utils").SerializedStyles;
7
+ large: import("@emotion/utils").SerializedStyles;
8
+ xlarge: import("@emotion/utils").SerializedStyles;
9
9
  };
10
10
  /**
11
11
  * Returns the width of the icon's parent span. This function has
package/docs/0-intro.tsx CHANGED
@@ -1,22 +1,13 @@
1
1
  import React from 'react';
2
- import { md, Props } from '@atlaskit/docs';
3
- import IconExplorer from '../examples/01-icon-explorer';
4
2
 
5
- export default md`
6
- ## Icon explorer
7
-
8
- ${(
9
- <p>
10
- <IconExplorer />
11
- </p>
12
- )}
3
+ import { md } from '@atlaskit/docs';
4
+ import SectionMessage from '@atlaskit/section-message';
13
5
 
14
- ### Props
15
-
16
- ${(
17
- <Props
18
- heading=""
19
- props={require('!!extract-react-types-loader!../src/extract-react-types/glyph')}
20
- />
21
- )}
6
+ export default md`
7
+ ${(
8
+ <SectionMessage appearance="information">
9
+ This component is now documented on{' '}
10
+ <a href="https://atlassian.design/components/icon">atlassian.design</a>
11
+ </SectionMessage>
12
+ )}
22
13
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "21.10.3",
3
+ "version": "21.10.6",
4
4
  "description": "An icon is a visual representation of a command, device, directory, or common action.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@atlaskit/theme": "^12.1.0",
39
- "@atlaskit/tokens": "^0.6.0",
39
+ "@atlaskit/tokens": "^0.9.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@emotion/core": "^10.0.9"
42
42
  },
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@af/icon-build-process": "^0.3.0",
48
- "@atlaskit/button": "^16.1.0",
48
+ "@atlaskit/button": "^16.2.0",
49
49
  "@atlaskit/docs": "*",
50
50
  "@atlaskit/dynamic-table": "^14.5.0",
51
51
  "@atlaskit/icon-file-type": "^6.3.0",
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import { md, code, Props, Example } from '@atlaskit/docs';
3
-
4
- export default md`
5
- Use the \`Icon\` component when needing an icon outside of our icon set _([do you, though?](https://hello.atlassian.net/wiki/spaces/DST/pages/782337741/Contribution+4.0+Contribution+documentation))_.
6
-
7
- ${code`
8
- import Icon from '@atlaskit/icon/base';
9
- `}
10
-
11
- ${(
12
- <Example
13
- packageName="@atlaskit/icon"
14
- Component={require('../examples/custom-icon').default}
15
- title=""
16
- source={require('!!raw-loader!../examples/custom-icon')}
17
- />
18
- )}
19
-
20
- ## Constraints
21
-
22
- Your custom icon needs to adhere to the following constraints.
23
-
24
- - The root svg should be on a \`0 0 24 24\` view box
25
- - The first child element should set \`fill\` to \`currentColor\` to inherit the \`primaryColor\` prop
26
- - For icons with secondary colors set \`fill\` to \`inherit\` on the appropriate elements to inherit the \`secondaryColor\` prop
27
-
28
- ${(
29
- <Props
30
- props={require('!!extract-react-types-loader!../src/components/icon')}
31
- />
32
- )}
33
- `;
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import { md, Example, Props, code } from '@atlaskit/docs';
3
-
4
- export default md`
5
- Use the \`SVG\` component when the wrapping positional span used in \`Icon\` is not required and needing an icon outside of our icon set _([do you, though?](https://hello.atlassian.net/wiki/spaces/DST/pages/782337741/Contribution+4.0+Contribution+documentation))_.
6
-
7
- ${code`
8
- import SVG from '@atlaskit/icon/svg';
9
- `}
10
-
11
- ${(
12
- <Example
13
- packageName="@atlaskit/icon"
14
- Component={require('../examples/14-svg').default}
15
- title=""
16
- source={require('!!raw-loader!../examples/14-svg')}
17
- />
18
- )}
19
-
20
- ## Constraints
21
-
22
- - \`SVG\` has a 24px by 24px view box which children should adhere to
23
- - The first child element should set \`fill\` to \`currentColor\` to inherit the \`primaryColor\` prop
24
- - For icons with secondary colors set \`fill\` to \`inherit\` on the appropriate elements to inherit the \`secondaryColor\` prop
25
-
26
- ${(
27
- <Props
28
- props={require('!!extract-react-types-loader!../src/components/svg')}
29
- />
30
- )}
31
- `;