@atlaskit/icon 33.1.0 → 33.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 33.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`af37f7d87df51`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/af37f7d87df51) -
8
+ Deprecate `spacing` prop on icon components via JSDoc `@deprecated` annotation, and update ADS
9
+ website docs (Icon > Examples, Icon > Usage) to reflect the deprecation with migration guidance.
10
+
3
11
  ## 33.1.0
4
12
 
5
13
  ### Minor Changes
package/build/index.tsx CHANGED
@@ -49,11 +49,7 @@ async function main() {
49
49
 
50
50
  fs.outputFile(path.resolve(root, 'src/metadata-core.tsx'), iconDocs);
51
51
 
52
- const deprecatedDocs = createDeprecatedIconDocs(
53
- icons,
54
- '@atlaskit/icon',
55
- coreIconMetadata,
56
- );
52
+ const deprecatedDocs = createDeprecatedIconDocs(icons, '@atlaskit/icon', coreIconMetadata);
57
53
 
58
54
  fs.outputFile(path.resolve(root, 'src/deprecated-core.tsx'), deprecatedDocs);
59
55
  });
@@ -12,8 +12,7 @@ var React = _react;
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
14
  /**
15
- * We are hiding this props from consumers as it's reserved
16
- * for use by Icon Tile.
15
+ * We are hiding this props from consumers as it's reserved for use by Icon Tile.
17
16
  */
18
17
 
19
18
  var svgStyles = null;
@@ -5,8 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { memo } from 'react';
6
6
 
7
7
  /**
8
- * We are hiding this props from consumers as it's reserved
9
- * for use by Icon Tile.
8
+ * We are hiding this props from consumers as it's reserved for use by Icon Tile.
10
9
  */
11
10
 
12
11
  const svgStyles = null;
@@ -5,8 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { memo } from 'react';
6
6
 
7
7
  /**
8
- * We are hiding this props from consumers as it's reserved
9
- * for use by Icon Tile.
8
+ * We are hiding this props from consumers as it's reserved for use by Icon Tile.
10
9
  */
11
10
 
12
11
  var svgStyles = null;
@@ -1,7 +1,6 @@
1
1
  import type { UNSAFE_NewGlyphProps } from '../types';
2
2
  /**
3
- * We are hiding this props from consumers as it's reserved
4
- * for use by Icon Tile.
3
+ * We are hiding this props from consumers as it's reserved for use by Icon Tile.
5
4
  */
6
5
  export type InternalIconPropsNew = UNSAFE_NewGlyphProps & {
7
6
  /**
@@ -51,10 +51,7 @@ interface GlyphSizeProps {
51
51
  }
52
52
  interface NewCoreGlyphSpacingProps {
53
53
  /**
54
- * Core Icons can be displayed with additional spacing.
55
- * - `none` is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
56
- * - `compact` provides accessible compact spacing between the icon and other elements. **Only available for small icons.**
57
- * - `spacious` provides accessible spacing between the icon and other elements.
54
+ * @deprecated Use a `Flex` wrapper with `cssMap` padding tokens instead. Migrate with the `32.0.2-icon-spacing-to-flex-primitive` codemod in `npx @atlaskit/codemod-cli`, or the `no-icon-spacing-prop` ESLint rule.
58
55
  */
59
56
  spacing?: IconSpacing;
60
57
  }
@@ -1,7 +1,6 @@
1
1
  import type { UNSAFE_NewGlyphProps } from '../types';
2
2
  /**
3
- * We are hiding this props from consumers as it's reserved
4
- * for use by Icon Tile.
3
+ * We are hiding this props from consumers as it's reserved for use by Icon Tile.
5
4
  */
6
5
  export type InternalIconPropsNew = UNSAFE_NewGlyphProps & {
7
6
  /**
@@ -51,10 +51,7 @@ interface GlyphSizeProps {
51
51
  }
52
52
  interface NewCoreGlyphSpacingProps {
53
53
  /**
54
- * Core Icons can be displayed with additional spacing.
55
- * - `none` is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
56
- * - `compact` provides accessible compact spacing between the icon and other elements. **Only available for small icons.**
57
- * - `spacious` provides accessible spacing between the icon and other elements.
54
+ * @deprecated Use a `Flex` wrapper with `cssMap` padding tokens instead. Migrate with the `32.0.2-icon-spacing-to-flex-primitive` codemod in `npx @atlaskit/codemod-cli`, or the `no-icon-spacing-prop` ESLint rule.
58
55
  */
59
56
  spacing?: IconSpacing;
60
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "33.1.0",
3
+ "version": "33.1.1",
4
4
  "description": "An icon is a symbol representing a command, device, directory, or common action.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@atlaskit/platform-feature-flags": "^1.1.0",
38
38
  "@atlaskit/tile": "^1.0.0",
39
- "@atlaskit/tokens": "^11.2.0",
39
+ "@atlaskit/tokens": "^11.4.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@compiled/react": "^0.20.0"
42
42
  },
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/link": "^3.3.0",
60
60
  "@atlaskit/logo": "^19.10.0",
61
61
  "@atlaskit/menu": "^8.4.0",
62
- "@atlaskit/modal-dialog": "^14.12.0",
62
+ "@atlaskit/modal-dialog": "^14.13.0",
63
63
  "@atlaskit/primitives": "^18.1.0",
64
64
  "@atlaskit/section-message": "^8.12.0",
65
65
  "@atlaskit/textfield": "^8.2.0",