@atlaskit/inline-message 15.6.0 → 15.6.2

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,19 @@
1
1
  # @atlaskit/inline-message
2
2
 
3
+ ## 15.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7aef1e49e90ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7aef1e49e90ea) -
8
+ Removes redundant fallback color values via @atlaskit/theme
9
+ - Updated dependencies
10
+
11
+ ## 15.6.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 15.6.0
4
18
 
5
19
  ### Minor Changes
@@ -1,12 +1,11 @@
1
1
  ._16jlidpf{flex-grow:0}
2
- ._1b3i1378{--icon-color:var(--ds-icon-danger,#de350b)}
3
- ._1b3i1c86{--icon-color:var(--ds-icon-brand,#0052cc)}
4
- ._1b3i1n6p{--icon-color:var(--ds-icon-warning,#ffab00)}
5
- ._1b3icdx1{--icon-color:var(--ds-icon-success,#36b37e)}
6
- ._1b3ige5s{--icon-color:var(--ds-icon-discovery,#6554c0)}
7
2
  ._1e0c1txw{display:flex}
8
3
  ._1o9zidpf{flex-shrink:0}
9
4
  ._4cvr1h6o{align-items:center}
10
5
  ._i0dl1wug{flex-basis:auto}
6
+ ._syaz1ft0{color:var(--ds-icon-brand,#1868db)}
11
7
  ._syaz1kum{color:var(--icon-accent-color)}
12
- ._syazkr0v{color:var(--icon-color)}
8
+ ._syaz4pcx{color:var(--ds-icon-success,#6a9a23)}
9
+ ._syazervl{color:var(--ds-icon-warning,#e06c00)}
10
+ ._syazqm1h{color:var(--ds-icon-discovery,#af59e1)}
11
+ ._syazs4qr{color:var(--ds-icon-danger,#c9372c)}
@@ -9,15 +9,14 @@ exports.default = void 0;
9
9
  require("./index.compiled.css");
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _runtime = require("@compiled/react/runtime");
12
- var _colors = require("@atlaskit/theme/colors");
13
12
  var _constants = require("../../constants");
14
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); }
15
14
  var iconColor = {
16
- connectivity: "_1b3i1c86",
17
- confirmation: "_1b3icdx1",
18
- info: "_1b3ige5s",
19
- warning: "_1b3i1n6p",
20
- error: "_1b3i1378"
15
+ connectivity: "_syaz1ft0",
16
+ confirmation: "_syaz4pcx",
17
+ info: "_syazqm1h",
18
+ warning: "_syazervl",
19
+ error: "_syazs4qr"
21
20
  };
22
21
  var iconWrapperStyles = null;
23
22
  var iconColorStyles = null;
@@ -38,7 +37,7 @@ var SelectedIcon = function SelectedIcon(_ref) {
38
37
  defaultLabel = _typesMapping$appeara.defaultLabel;
39
38
  return /*#__PURE__*/React.createElement("span", {
40
39
  "data-ds--inline-message--icon": true,
41
- className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug _1e0c1txw _4cvr1h6o _syazkr0v", isOpen && "_syaz1kum", iconColor[appearance]])
40
+ className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug _1e0c1txw _4cvr1h6o", iconColor[appearance], isOpen && "_syaz1kum"])
42
41
  }, /*#__PURE__*/React.createElement(Icon, {
43
42
  testId: "inline-message-icon",
44
43
  label: label || defaultLabel,
@@ -1,12 +1,11 @@
1
1
  ._16jlidpf{flex-grow:0}
2
- ._1b3i1378{--icon-color:var(--ds-icon-danger,#de350b)}
3
- ._1b3i1c86{--icon-color:var(--ds-icon-brand,#0052cc)}
4
- ._1b3i1n6p{--icon-color:var(--ds-icon-warning,#ffab00)}
5
- ._1b3icdx1{--icon-color:var(--ds-icon-success,#36b37e)}
6
- ._1b3ige5s{--icon-color:var(--ds-icon-discovery,#6554c0)}
7
2
  ._1e0c1txw{display:flex}
8
3
  ._1o9zidpf{flex-shrink:0}
9
4
  ._4cvr1h6o{align-items:center}
10
5
  ._i0dl1wug{flex-basis:auto}
6
+ ._syaz1ft0{color:var(--ds-icon-brand,#1868db)}
11
7
  ._syaz1kum{color:var(--icon-accent-color)}
12
- ._syazkr0v{color:var(--icon-color)}
8
+ ._syaz4pcx{color:var(--ds-icon-success,#6a9a23)}
9
+ ._syazervl{color:var(--ds-icon-warning,#e06c00)}
10
+ ._syazqm1h{color:var(--ds-icon-discovery,#af59e1)}
11
+ ._syazs4qr{color:var(--ds-icon-danger,#c9372c)}
@@ -2,14 +2,13 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { B400, G300, P300, R400, Y300 } from '@atlaskit/theme/colors';
6
5
  import { typesMapping } from '../../constants';
7
6
  const iconColor = {
8
- connectivity: "_1b3i1c86",
9
- confirmation: "_1b3icdx1",
10
- info: "_1b3ige5s",
11
- warning: "_1b3i1n6p",
12
- error: "_1b3i1378"
7
+ connectivity: "_syaz1ft0",
8
+ confirmation: "_syaz4pcx",
9
+ info: "_syazqm1h",
10
+ warning: "_syazervl",
11
+ error: "_syazs4qr"
13
12
  };
14
13
  const iconWrapperStyles = null;
15
14
  const iconColorStyles = null;
@@ -34,7 +33,7 @@ const SelectedIcon = ({
34
33
  } = typesMapping;
35
34
  return /*#__PURE__*/React.createElement("span", {
36
35
  "data-ds--inline-message--icon": true,
37
- className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _1e0c1txw _4cvr1h6o _syazkr0v", isOpen && "_syaz1kum", iconColor[appearance]])
36
+ className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _1e0c1txw _4cvr1h6o", iconColor[appearance], isOpen && "_syaz1kum"])
38
37
  }, /*#__PURE__*/React.createElement(Icon, {
39
38
  testId: "inline-message-icon",
40
39
  label: label || defaultLabel,
@@ -1,12 +1,11 @@
1
1
  ._16jlidpf{flex-grow:0}
2
- ._1b3i1378{--icon-color:var(--ds-icon-danger,#de350b)}
3
- ._1b3i1c86{--icon-color:var(--ds-icon-brand,#0052cc)}
4
- ._1b3i1n6p{--icon-color:var(--ds-icon-warning,#ffab00)}
5
- ._1b3icdx1{--icon-color:var(--ds-icon-success,#36b37e)}
6
- ._1b3ige5s{--icon-color:var(--ds-icon-discovery,#6554c0)}
7
2
  ._1e0c1txw{display:flex}
8
3
  ._1o9zidpf{flex-shrink:0}
9
4
  ._4cvr1h6o{align-items:center}
10
5
  ._i0dl1wug{flex-basis:auto}
6
+ ._syaz1ft0{color:var(--ds-icon-brand,#1868db)}
11
7
  ._syaz1kum{color:var(--icon-accent-color)}
12
- ._syazkr0v{color:var(--icon-color)}
8
+ ._syaz4pcx{color:var(--ds-icon-success,#6a9a23)}
9
+ ._syazervl{color:var(--ds-icon-warning,#e06c00)}
10
+ ._syazqm1h{color:var(--ds-icon-discovery,#af59e1)}
11
+ ._syazs4qr{color:var(--ds-icon-danger,#c9372c)}
@@ -2,14 +2,13 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { B400, G300, P300, R400, Y300 } from '@atlaskit/theme/colors';
6
5
  import { typesMapping } from '../../constants';
7
6
  var iconColor = {
8
- connectivity: "_1b3i1c86",
9
- confirmation: "_1b3icdx1",
10
- info: "_1b3ige5s",
11
- warning: "_1b3i1n6p",
12
- error: "_1b3i1378"
7
+ connectivity: "_syaz1ft0",
8
+ confirmation: "_syaz4pcx",
9
+ info: "_syazqm1h",
10
+ warning: "_syazervl",
11
+ error: "_syazs4qr"
13
12
  };
14
13
  var iconWrapperStyles = null;
15
14
  var iconColorStyles = null;
@@ -30,7 +29,7 @@ var SelectedIcon = function SelectedIcon(_ref) {
30
29
  defaultLabel = _typesMapping$appeara.defaultLabel;
31
30
  return /*#__PURE__*/React.createElement("span", {
32
31
  "data-ds--inline-message--icon": true,
33
- className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _1e0c1txw _4cvr1h6o _syazkr0v", isOpen && "_syaz1kum", iconColor[appearance]])
32
+ className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _1e0c1txw _4cvr1h6o", iconColor[appearance], isOpen && "_syaz1kum"])
34
33
  }, /*#__PURE__*/React.createElement(Icon, {
35
34
  testId: "inline-message-icon",
36
35
  label: label || defaultLabel,
@@ -0,0 +1,53 @@
1
+ import path from 'path';
2
+
3
+ import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
4
+
5
+ const documentation: ComponentStructuredContentSource[] = [
6
+ {
7
+ name: 'InlineMessage',
8
+ description: 'In-context notification for more info, warning, error, or confirmation.',
9
+ status: 'general-availability',
10
+ import: {
11
+ name: 'InlineMessage',
12
+ package: '@atlaskit/inline-message',
13
+ type: 'default',
14
+ packagePath: path.resolve(__dirname),
15
+ packageJson: require('./package.json'),
16
+ },
17
+ usageGuidelines: [
18
+ 'Use for in-context notifications: more info, warning, error, confirmation',
19
+ 'Icon/title/secondary can be used to reveal full message in a popup with context/links',
20
+ 'Keep content to a maximum of five lines (truncation is not accessible)',
21
+ 'Use Flag for minimal interaction; Banner for critical/system; Modal when immediate action is required',
22
+ ],
23
+ contentGuidelines: [
24
+ 'Use clear, concise message text',
25
+ 'Provide specific, actionable feedback',
26
+ 'Use appropriate tone for message type',
27
+ 'Keep messages focused and relevant',
28
+ 'Warning: before action, empathy, offer alternative',
29
+ 'Error: explain and next step; use "we" not "you"',
30
+ 'Confirmation: confirm, then get out of the way',
31
+ 'Information: inform, no action needed',
32
+ 'Use clear, concise message text; keep focused and relevant',
33
+ ],
34
+ accessibilityGuidelines: [
35
+ 'Keep to max five lines—truncation is not accessible',
36
+ 'Recommend a title; icon-only is easily missed by screen readers',
37
+ 'Use iconLabel when there is no title or when the icon adds context (e.g. error)',
38
+ 'Ensure message content is announced by screen readers',
39
+ 'Use appropriate message types and colors',
40
+ ],
41
+ examples: [
42
+ {
43
+ name: 'Inline Message',
44
+ description: 'Inline Message example',
45
+ source: path.resolve(__dirname, './examples/ai/inline-message.tsx'),
46
+ },
47
+ ],
48
+ keywords: ['message', 'inline', 'feedback', 'status', 'alert'],
49
+ categories: ['feedback'],
50
+ },
51
+ ];
52
+
53
+ export default documentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "15.6.0",
3
+ "version": "15.6.2",
4
4
  "description": "An inline message lets users know when important information is available or when an action is required.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,14 +26,14 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/button": "^23.10.0",
28
28
  "@atlaskit/ds-lib": "^6.0.0",
29
- "@atlaskit/icon": "^32.0.0",
29
+ "@atlaskit/icon": "^33.1.0",
30
30
  "@atlaskit/link": "^3.3.0",
31
31
  "@atlaskit/platform-feature-flags": "^1.1.0",
32
32
  "@atlaskit/popper": "^7.1.0",
33
- "@atlaskit/popup": "^4.13.0",
34
- "@atlaskit/primitives": "^18.0.0",
33
+ "@atlaskit/popup": "^4.14.0",
34
+ "@atlaskit/primitives": "^18.1.0",
35
35
  "@atlaskit/theme": "^22.0.0",
36
- "@atlaskit/tokens": "^11.1.0",
36
+ "@atlaskit/tokens": "^11.4.0",
37
37
  "@babel/runtime": "^7.0.0",
38
38
  "@compiled/react": "^0.20.0"
39
39
  },
@@ -46,9 +46,10 @@
46
46
  "@af/visual-regression": "workspace:^",
47
47
  "@atlaskit/docs": "^11.7.0",
48
48
  "@atlaskit/heading": "^5.3.0",
49
- "@atlaskit/modal-dialog": "^14.11.0",
49
+ "@atlaskit/modal-dialog": "^14.13.0",
50
50
  "@atlaskit/section-message": "^8.12.0",
51
51
  "@atlassian/ssr-tests": "workspace:^",
52
+ "@atlassian/structured-docs-types": "workspace:^",
52
53
  "@testing-library/react": "^16.3.0",
53
54
  "@testing-library/user-event": "^14.4.3",
54
55
  "react-dom": "^18.2.0"