@atlaskit/section-message 6.1.5 → 6.1.8

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,25 @@
1
1
  # @atlaskit/section-message
2
2
 
3
+ ## 6.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.1.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
14
+ - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
15
+ - Updated dependencies
16
+
17
+ ## 6.1.6
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 6.1.5
4
24
 
5
25
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -5,16 +5,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "default", {
8
+ Object.defineProperty(exports, "SectionMessageAction", {
9
9
  enumerable: true,
10
10
  get: function get() {
11
- return _sectionMessage.default;
11
+ return _sectionMessageAction.default;
12
12
  }
13
13
  });
14
- Object.defineProperty(exports, "SectionMessageAction", {
14
+ Object.defineProperty(exports, "default", {
15
15
  enumerable: true,
16
16
  get: function get() {
17
- return _sectionMessageAction.default;
17
+ return _sectionMessage.default;
18
18
  }
19
19
  });
20
20
 
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.getAppearanceIconStyles = getAppearanceIconStyles;
9
8
  exports.appearanceIconSchema = void 0;
9
+ exports.getAppearanceIconStyles = getAppearanceIconStyles;
10
10
 
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
 
@@ -22,35 +22,35 @@ var _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/warning"));
22
22
 
23
23
  var _colors = require("@atlaskit/theme/colors");
24
24
 
25
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
25
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26
26
 
27
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
27
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28
28
 
29
29
  var appearanceIconSchema = {
30
30
  information: {
31
- backgroundColor: "var(--ds-background-subtleBrand-resting, ".concat(_colors.B50, ")"),
31
+ backgroundColor: "var(--ds-background-brand, ".concat(_colors.B50, ")"),
32
32
  Icon: _info.default,
33
- primaryIconColor: "var(--ds-iconBorder-brand, ".concat(_colors.B500, ")")
33
+ primaryIconColor: "var(--ds-icon-brand, ".concat(_colors.B500, ")")
34
34
  },
35
35
  warning: {
36
- backgroundColor: "var(--ds-background-subtleWarning-resting, ".concat(_colors.Y50, ")"),
36
+ backgroundColor: "var(--ds-background-warning, ".concat(_colors.Y50, ")"),
37
37
  Icon: _warning.default,
38
- primaryIconColor: "var(--ds-iconBorder-warning, ".concat(_colors.Y500, ")")
38
+ primaryIconColor: "var(--ds-icon-warning, ".concat(_colors.Y500, ")")
39
39
  },
40
40
  error: {
41
- backgroundColor: "var(--ds-background-subtleDanger-resting, ".concat(_colors.R50, ")"),
41
+ backgroundColor: "var(--ds-background-danger, ".concat(_colors.R50, ")"),
42
42
  Icon: _error.default,
43
- primaryIconColor: "var(--ds-iconBorder-danger, ".concat(_colors.R500, ")")
43
+ primaryIconColor: "var(--ds-icon-danger, ".concat(_colors.R500, ")")
44
44
  },
45
45
  success: {
46
- backgroundColor: "var(--ds-background-subtleSuccess-resting, ".concat(_colors.G50, ")"),
46
+ backgroundColor: "var(--ds-background-success, ".concat(_colors.G50, ")"),
47
47
  Icon: _checkCircle.default,
48
- primaryIconColor: "var(--ds-iconBorder-success, ".concat(_colors.G500, ")")
48
+ primaryIconColor: "var(--ds-icon-success, ".concat(_colors.G500, ")")
49
49
  },
50
50
  discovery: {
51
- backgroundColor: "var(--ds-background-subtleDiscovery-resting, ".concat(_colors.P50, ")"),
51
+ backgroundColor: "var(--ds-background-discovery, ".concat(_colors.P50, ")"),
52
52
  Icon: _questionCircle.default,
53
- primaryIconColor: "var(--ds-iconBorder-discovery, ".concat(_colors.P500, ")")
53
+ primaryIconColor: "var(--ds-icon-discovery, ".concat(_colors.P500, ")")
54
54
  }
55
55
  };
56
56
  exports.appearanceIconSchema = appearanceIconSchema;
@@ -27,7 +27,7 @@ var actionStyles = (0, _core.css)({
27
27
  '& + &::before': {
28
28
  display: 'inline-block',
29
29
  width: "".concat(actionsSeparatorWidth, "px"),
30
- color: "".concat("var(--ds-text-mediumEmphasis, ".concat(_colors.N500, ")")),
30
+ color: "".concat("var(--ds-text-subtle, ".concat(_colors.N500, ")")),
31
31
  content: '"·"',
32
32
  textAlign: 'center',
33
33
  verticalAlign: 'middle'
@@ -36,8 +36,8 @@ var containerPadding = spacing * 2;
36
36
  var actionMarginTop = spacing;
37
37
  var iconWrapperWidth = spacing * 5;
38
38
  var titleColor = {
39
- light: "var(--ds-text-highEmphasis, ".concat(_colors.N800, ")"),
40
- dark: "var(--ds-text-highEmphasis, ".concat(_colors.DN600, ")")
39
+ light: "var(--ds-text, ".concat(_colors.N800, ")"),
40
+ dark: "var(--ds-text, ".concat(_colors.DN600, ")")
41
41
  };
42
42
  var containerStyles = (0, _core.css)({
43
43
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.1.5",
3
+ "version": "6.1.8",
4
4
  "sideEffects": false
5
5
  }
@@ -6,29 +6,29 @@ import WarningIcon from '@atlaskit/icon/glyph/warning';
6
6
  import { B50, B500, G50, G500, P50, P500, R50, R500, Y50, Y500 } from '@atlaskit/theme/colors';
7
7
  export const appearanceIconSchema = {
8
8
  information: {
9
- backgroundColor: `var(--ds-background-subtleBrand-resting, ${B50})`,
9
+ backgroundColor: `var(--ds-background-brand, ${B50})`,
10
10
  Icon: InfoIcon,
11
- primaryIconColor: `var(--ds-iconBorder-brand, ${B500})`
11
+ primaryIconColor: `var(--ds-icon-brand, ${B500})`
12
12
  },
13
13
  warning: {
14
- backgroundColor: `var(--ds-background-subtleWarning-resting, ${Y50})`,
14
+ backgroundColor: `var(--ds-background-warning, ${Y50})`,
15
15
  Icon: WarningIcon,
16
- primaryIconColor: `var(--ds-iconBorder-warning, ${Y500})`
16
+ primaryIconColor: `var(--ds-icon-warning, ${Y500})`
17
17
  },
18
18
  error: {
19
- backgroundColor: `var(--ds-background-subtleDanger-resting, ${R50})`,
19
+ backgroundColor: `var(--ds-background-danger, ${R50})`,
20
20
  Icon: ErrorIcon,
21
- primaryIconColor: `var(--ds-iconBorder-danger, ${R500})`
21
+ primaryIconColor: `var(--ds-icon-danger, ${R500})`
22
22
  },
23
23
  success: {
24
- backgroundColor: `var(--ds-background-subtleSuccess-resting, ${G50})`,
24
+ backgroundColor: `var(--ds-background-success, ${G50})`,
25
25
  Icon: CheckCircleIcon,
26
- primaryIconColor: `var(--ds-iconBorder-success, ${G500})`
26
+ primaryIconColor: `var(--ds-icon-success, ${G500})`
27
27
  },
28
28
  discovery: {
29
- backgroundColor: `var(--ds-background-subtleDiscovery-resting, ${P50})`,
29
+ backgroundColor: `var(--ds-background-discovery, ${P50})`,
30
30
  Icon: QuestionCircleIcon,
31
- primaryIconColor: `var(--ds-iconBorder-discovery, ${P500})`
31
+ primaryIconColor: `var(--ds-icon-discovery, ${P500})`
32
32
  }
33
33
  };
34
34
  export function getAppearanceIconStyles(appearance, icon) {
@@ -13,7 +13,7 @@ const actionStyles = css({
13
13
  '& + &::before': {
14
14
  display: 'inline-block',
15
15
  width: `${actionsSeparatorWidth}px`,
16
- color: `${`var(--ds-text-mediumEmphasis, ${N500})`}`,
16
+ color: `${`var(--ds-text-subtle, ${N500})`}`,
17
17
  content: '"·"',
18
18
  textAlign: 'center',
19
19
  verticalAlign: 'middle'
@@ -14,8 +14,8 @@ const containerPadding = spacing * 2;
14
14
  const actionMarginTop = spacing;
15
15
  const iconWrapperWidth = spacing * 5;
16
16
  const titleColor = {
17
- light: `var(--ds-text-highEmphasis, ${N800})`,
18
- dark: `var(--ds-text-highEmphasis, ${DN600})`
17
+ light: `var(--ds-text, ${N800})`,
18
+ dark: `var(--ds-text, ${DN600})`
19
19
  };
20
20
  const containerStyles = css({
21
21
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.1.5",
3
+ "version": "6.1.8",
4
4
  "sideEffects": false
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
 
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
 
5
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
6
 
7
7
  import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
8
8
  import ErrorIcon from '@atlaskit/icon/glyph/error';
@@ -12,29 +12,29 @@ import WarningIcon from '@atlaskit/icon/glyph/warning';
12
12
  import { B50, B500, G50, G500, P50, P500, R50, R500, Y50, Y500 } from '@atlaskit/theme/colors';
13
13
  export var appearanceIconSchema = {
14
14
  information: {
15
- backgroundColor: "var(--ds-background-subtleBrand-resting, ".concat(B50, ")"),
15
+ backgroundColor: "var(--ds-background-brand, ".concat(B50, ")"),
16
16
  Icon: InfoIcon,
17
- primaryIconColor: "var(--ds-iconBorder-brand, ".concat(B500, ")")
17
+ primaryIconColor: "var(--ds-icon-brand, ".concat(B500, ")")
18
18
  },
19
19
  warning: {
20
- backgroundColor: "var(--ds-background-subtleWarning-resting, ".concat(Y50, ")"),
20
+ backgroundColor: "var(--ds-background-warning, ".concat(Y50, ")"),
21
21
  Icon: WarningIcon,
22
- primaryIconColor: "var(--ds-iconBorder-warning, ".concat(Y500, ")")
22
+ primaryIconColor: "var(--ds-icon-warning, ".concat(Y500, ")")
23
23
  },
24
24
  error: {
25
- backgroundColor: "var(--ds-background-subtleDanger-resting, ".concat(R50, ")"),
25
+ backgroundColor: "var(--ds-background-danger, ".concat(R50, ")"),
26
26
  Icon: ErrorIcon,
27
- primaryIconColor: "var(--ds-iconBorder-danger, ".concat(R500, ")")
27
+ primaryIconColor: "var(--ds-icon-danger, ".concat(R500, ")")
28
28
  },
29
29
  success: {
30
- backgroundColor: "var(--ds-background-subtleSuccess-resting, ".concat(G50, ")"),
30
+ backgroundColor: "var(--ds-background-success, ".concat(G50, ")"),
31
31
  Icon: CheckCircleIcon,
32
- primaryIconColor: "var(--ds-iconBorder-success, ".concat(G500, ")")
32
+ primaryIconColor: "var(--ds-icon-success, ".concat(G500, ")")
33
33
  },
34
34
  discovery: {
35
- backgroundColor: "var(--ds-background-subtleDiscovery-resting, ".concat(P50, ")"),
35
+ backgroundColor: "var(--ds-background-discovery, ".concat(P50, ")"),
36
36
  Icon: QuestionCircleIcon,
37
- primaryIconColor: "var(--ds-iconBorder-discovery, ".concat(P500, ")")
37
+ primaryIconColor: "var(--ds-icon-discovery, ".concat(P500, ")")
38
38
  }
39
39
  };
40
40
  export function getAppearanceIconStyles(appearance, icon) {
@@ -13,7 +13,7 @@ var actionStyles = css({
13
13
  '& + &::before': {
14
14
  display: 'inline-block',
15
15
  width: "".concat(actionsSeparatorWidth, "px"),
16
- color: "".concat("var(--ds-text-mediumEmphasis, ".concat(N500, ")")),
16
+ color: "".concat("var(--ds-text-subtle, ".concat(N500, ")")),
17
17
  content: '"·"',
18
18
  textAlign: 'center',
19
19
  verticalAlign: 'middle'
@@ -14,8 +14,8 @@ var containerPadding = spacing * 2;
14
14
  var actionMarginTop = spacing;
15
15
  var iconWrapperWidth = spacing * 5;
16
16
  var titleColor = {
17
- light: "var(--ds-text-highEmphasis, ".concat(N800, ")"),
18
- dark: "var(--ds-text-highEmphasis, ".concat(DN600, ")")
17
+ light: "var(--ds-text, ".concat(N800, ")"),
18
+ dark: "var(--ds-text, ".concat(DN600, ")")
19
19
  };
20
20
  var containerStyles = css({
21
21
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.1.5",
3
+ "version": "6.1.8",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "6.1.5",
3
+ "version": "6.1.8",
4
4
  "description": "A section message is used to alert users to a particular section of the screen.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -16,7 +16,6 @@
16
16
  "atlaskit:src": "src/index.ts",
17
17
  "atlassian": {
18
18
  "team": "Design System Team",
19
- "inPublicMirror": true,
20
19
  "releaseModel": "scheduled",
21
20
  "website": {
22
21
  "name": "Section message"
@@ -29,11 +28,11 @@
29
28
  ".": "./src/index.ts"
30
29
  },
31
30
  "dependencies": {
32
- "@atlaskit/button": "^16.1.0",
31
+ "@atlaskit/button": "^16.2.0",
33
32
  "@atlaskit/codemod-utils": "^3.4.0",
34
- "@atlaskit/icon": "^21.9.0",
35
- "@atlaskit/theme": "^12.0.0",
36
- "@atlaskit/tokens": "^0.4.0",
33
+ "@atlaskit/icon": "^21.10.0",
34
+ "@atlaskit/theme": "^12.1.0",
35
+ "@atlaskit/tokens": "^0.7.0",
37
36
  "@babel/runtime": "^7.0.0",
38
37
  "@emotion/core": "^10.0.9"
39
38
  },
@@ -42,10 +41,9 @@
42
41
  },
43
42
  "devDependencies": {
44
43
  "@atlaskit/analytics-next": "^8.1.2",
45
- "@atlaskit/build-utils": "*",
46
44
  "@atlaskit/code": "^14.3.0",
47
45
  "@atlaskit/docs": "*",
48
- "@atlaskit/range": "^5.1.0",
46
+ "@atlaskit/range": "^6.0.0",
49
47
  "@atlaskit/ssr": "*",
50
48
  "@atlaskit/visual-regression": "*",
51
49
  "@atlaskit/webdriver-runner": "*",