@atlaskit/side-nav-items 1.3.0 → 1.4.0

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/side-nav-items
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ea028d2a58383`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ea028d2a58383) -
8
+ Implemented the SkeletonMenuItem and SkeletonMenuSectionHeading components to match the
9
+ corresponding components they represent.
10
+
3
11
  ## 1.3.0
4
12
 
5
13
  ### Minor Changes
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "SkeletonMenuItem", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _skeletonMenuItem.SkeletonMenuItem;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "SkeletonMenuSectionHeading", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _skeletonMenuSectionHeading.SkeletonMenuSectionHeading;
16
+ }
17
+ });
18
+ var _skeletonMenuItem = require("../ui/skeleton/skeleton-menu-item");
19
+ var _skeletonMenuSectionHeading = require("../ui/skeleton/skeleton-menu-section-heading");
@@ -0,0 +1,24 @@
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
4
+ ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
5
+ ._1bah1h6o{justify-content:center}
6
+ ._1bsb1wqb{width:60px}
7
+ ._1bsb53f4{width:75pt}
8
+ ._1bsbgktf{width:20px}
9
+ ._1e0c1txw{display:flex}
10
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
11
+ ._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
12
+ ._4cvr1h6o{align-items:center}
13
+ ._4t3i1tcg{height:24px}
14
+ ._4t3i1ylp{height:40px}
15
+ ._4t3ifvz7{height:1cap}
16
+ ._4t3igktf{height:20px}
17
+ ._4t3iu7e1{height:1lh}
18
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
19
+ ._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
20
+ ._bfhkizff{background-color:var(--ds-skeleton,#0515240f)}
21
+ ._bozg1b66{padding-inline-start:var(--ds-space-050,4px)}
22
+ ._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
23
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
24
+ ._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
@@ -0,0 +1,61 @@
1
+ /* skeleton-menu-item.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ "use strict";
3
+
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.SkeletonMenuItem = void 0;
9
+ require("./skeleton-menu-item.compiled.css");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
+ var _compiled = require("@atlaskit/primitives/compiled");
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
+ var containerStyles = {
15
+ root: "_4t3i1tcg _bozg1b66 _y4ti1b66 _1q511b66 _85i51b66 _1e0c1txw _4cvr1h6o",
16
+ text: "_bozg1b66 _y4ti1b66",
17
+ item: "_11c8fhey _4t3iu7e1 _1e0c1txw _4cvr1h6o",
18
+ hasDescription: "_4t3i1ylp",
19
+ description: "_11c8wadc _4t3iu7e1 _1e0c1txw _4cvr1h6o",
20
+ elemBefore: "_bozgv77o _y4tiv77o _1q51v77o _85i5v77o _1e0c1txw _4cvr1h6o _1bah1h6o"
21
+ };
22
+ var skeletonStyles = {
23
+ item: "_2rko1rr0 _bfhkizff _1bsb53f4 _4t3ifvz7",
24
+ elemBefore: "_2rko12b0 _bfhkizff _1bsbgktf _4t3igktf",
25
+ description: "_2rko1rr0 _bfhkizff _1bsb1wqb _4t3ifvz7"
26
+ };
27
+ /**
28
+ * __Skeleton menu item__
29
+ *
30
+ * A skeleton menu item is used to display a loading state for a side nav menu item.
31
+ * This component can have an icon element skeleton, and a description skeleton included.
32
+ */
33
+ var SkeletonMenuItem = exports.SkeletonMenuItem = function SkeletonMenuItem(props) {
34
+ var _props$hasDescription = props.hasDescription,
35
+ hasDescription = _props$hasDescription === void 0 ? false : _props$hasDescription,
36
+ _props$hasElemBefore = props.hasElemBefore,
37
+ hasElemBefore = _props$hasElemBefore === void 0 ? false : _props$hasElemBefore,
38
+ testId = props.testId;
39
+ return /*#__PURE__*/React.createElement("div", {
40
+ "data-testid": testId,
41
+ className: (0, _runtime.ax)([containerStyles.root, hasDescription && containerStyles.hasDescription])
42
+ }, /*#__PURE__*/React.createElement(_compiled.Flex, {
43
+ alignItems: "center"
44
+ }, hasElemBefore && /*#__PURE__*/React.createElement("div", {
45
+ className: (0, _runtime.ax)([containerStyles.elemBefore])
46
+ }, /*#__PURE__*/React.createElement("div", {
47
+ className: (0, _runtime.ax)([skeletonStyles.elemBefore])
48
+ })), /*#__PURE__*/React.createElement(_compiled.Flex, {
49
+ xcss: containerStyles.text,
50
+ gap: "space.025",
51
+ direction: "column"
52
+ }, /*#__PURE__*/React.createElement("div", {
53
+ className: (0, _runtime.ax)([containerStyles.item])
54
+ }, /*#__PURE__*/React.createElement("div", {
55
+ className: (0, _runtime.ax)([skeletonStyles.item])
56
+ })), hasDescription && /*#__PURE__*/React.createElement("div", {
57
+ className: (0, _runtime.ax)([containerStyles.description])
58
+ }, /*#__PURE__*/React.createElement("div", {
59
+ className: (0, _runtime.ax)([skeletonStyles.description])
60
+ })))));
61
+ };
@@ -0,0 +1,13 @@
1
+ ._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
3
+ ._1bsb1wqb{width:60px}
4
+ ._1e0c1txw{display:flex}
5
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
6
+ ._1tke1tcg{min-height:24px}
7
+ ._4cvr1h6o{align-items:center}
8
+ ._4t3ifvz7{height:1cap}
9
+ ._4t3iu7e1{height:1lh}
10
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
11
+ ._bfhkizff{background-color:var(--ds-skeleton,#0515240f)}
12
+ ._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
13
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
@@ -0,0 +1,37 @@
1
+ /* skeleton-menu-section-heading.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ "use strict";
3
+
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.SkeletonMenuSectionHeading = void 0;
9
+ require("./skeleton-menu-section-heading.compiled.css");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
+ 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); }
13
+ var containerStyles = {
14
+ root: "_1tke1tcg _bozg12x7 _y4ti1b66 _1q511b66 _85i51b66 _1e0c1txw _4cvr1h6o",
15
+ item: "_11c8i4vh _4t3iu7e1 _1e0c1txw _4cvr1h6o"
16
+ };
17
+ var skeletonStyles = {
18
+ item: "_2rko1rr0 _bfhkizff _1bsb1wqb _4t3ifvz7"
19
+ };
20
+ /**
21
+ * __Skeleton menu section heading__
22
+ *
23
+ * A skeleton menu section heading is used to display a loading state for a side nav menu
24
+ * section heading.
25
+ *
26
+ */
27
+ var SkeletonMenuSectionHeading = exports.SkeletonMenuSectionHeading = function SkeletonMenuSectionHeading(props) {
28
+ var testId = props.testId;
29
+ return /*#__PURE__*/React.createElement("div", {
30
+ "data-testid": testId,
31
+ className: (0, _runtime.ax)([containerStyles.root])
32
+ }, /*#__PURE__*/React.createElement("div", {
33
+ className: (0, _runtime.ax)([containerStyles.item])
34
+ }, /*#__PURE__*/React.createElement("div", {
35
+ className: (0, _runtime.ax)([skeletonStyles.item])
36
+ })));
37
+ };
@@ -0,0 +1,2 @@
1
+ export { SkeletonMenuItem } from '../ui/skeleton/skeleton-menu-item';
2
+ export { SkeletonMenuSectionHeading } from '../ui/skeleton/skeleton-menu-section-heading';
@@ -0,0 +1,24 @@
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
4
+ ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
5
+ ._1bah1h6o{justify-content:center}
6
+ ._1bsb1wqb{width:60px}
7
+ ._1bsb53f4{width:75pt}
8
+ ._1bsbgktf{width:20px}
9
+ ._1e0c1txw{display:flex}
10
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
11
+ ._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
12
+ ._4cvr1h6o{align-items:center}
13
+ ._4t3i1tcg{height:24px}
14
+ ._4t3i1ylp{height:40px}
15
+ ._4t3ifvz7{height:1cap}
16
+ ._4t3igktf{height:20px}
17
+ ._4t3iu7e1{height:1lh}
18
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
19
+ ._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
20
+ ._bfhkizff{background-color:var(--ds-skeleton,#0515240f)}
21
+ ._bozg1b66{padding-inline-start:var(--ds-space-050,4px)}
22
+ ._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
23
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
24
+ ._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
@@ -0,0 +1,53 @@
1
+ /* skeleton-menu-item.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./skeleton-menu-item.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { Flex } from '@atlaskit/primitives/compiled';
6
+ const containerStyles = {
7
+ root: "_4t3i1tcg _bozg1b66 _y4ti1b66 _1q511b66 _85i51b66 _1e0c1txw _4cvr1h6o",
8
+ text: "_bozg1b66 _y4ti1b66",
9
+ item: "_11c8fhey _4t3iu7e1 _1e0c1txw _4cvr1h6o",
10
+ hasDescription: "_4t3i1ylp",
11
+ description: "_11c8wadc _4t3iu7e1 _1e0c1txw _4cvr1h6o",
12
+ elemBefore: "_bozgv77o _y4tiv77o _1q51v77o _85i5v77o _1e0c1txw _4cvr1h6o _1bah1h6o"
13
+ };
14
+ const skeletonStyles = {
15
+ item: "_2rko1rr0 _bfhkizff _1bsb53f4 _4t3ifvz7",
16
+ elemBefore: "_2rko12b0 _bfhkizff _1bsbgktf _4t3igktf",
17
+ description: "_2rko1rr0 _bfhkizff _1bsb1wqb _4t3ifvz7"
18
+ };
19
+ /**
20
+ * __Skeleton menu item__
21
+ *
22
+ * A skeleton menu item is used to display a loading state for a side nav menu item.
23
+ * This component can have an icon element skeleton, and a description skeleton included.
24
+ */
25
+ export const SkeletonMenuItem = props => {
26
+ const {
27
+ hasDescription = false,
28
+ hasElemBefore = false,
29
+ testId
30
+ } = props;
31
+ return /*#__PURE__*/React.createElement("div", {
32
+ "data-testid": testId,
33
+ className: ax([containerStyles.root, hasDescription && containerStyles.hasDescription])
34
+ }, /*#__PURE__*/React.createElement(Flex, {
35
+ alignItems: "center"
36
+ }, hasElemBefore && /*#__PURE__*/React.createElement("div", {
37
+ className: ax([containerStyles.elemBefore])
38
+ }, /*#__PURE__*/React.createElement("div", {
39
+ className: ax([skeletonStyles.elemBefore])
40
+ })), /*#__PURE__*/React.createElement(Flex, {
41
+ xcss: containerStyles.text,
42
+ gap: "space.025",
43
+ direction: "column"
44
+ }, /*#__PURE__*/React.createElement("div", {
45
+ className: ax([containerStyles.item])
46
+ }, /*#__PURE__*/React.createElement("div", {
47
+ className: ax([skeletonStyles.item])
48
+ })), hasDescription && /*#__PURE__*/React.createElement("div", {
49
+ className: ax([containerStyles.description])
50
+ }, /*#__PURE__*/React.createElement("div", {
51
+ className: ax([skeletonStyles.description])
52
+ })))));
53
+ };
@@ -0,0 +1,13 @@
1
+ ._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
3
+ ._1bsb1wqb{width:60px}
4
+ ._1e0c1txw{display:flex}
5
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
6
+ ._1tke1tcg{min-height:24px}
7
+ ._4cvr1h6o{align-items:center}
8
+ ._4t3ifvz7{height:1cap}
9
+ ._4t3iu7e1{height:1lh}
10
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
11
+ ._bfhkizff{background-color:var(--ds-skeleton,#0515240f)}
12
+ ._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
13
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
@@ -0,0 +1,31 @@
1
+ /* skeleton-menu-section-heading.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./skeleton-menu-section-heading.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ const containerStyles = {
6
+ root: "_1tke1tcg _bozg12x7 _y4ti1b66 _1q511b66 _85i51b66 _1e0c1txw _4cvr1h6o",
7
+ item: "_11c8i4vh _4t3iu7e1 _1e0c1txw _4cvr1h6o"
8
+ };
9
+ const skeletonStyles = {
10
+ item: "_2rko1rr0 _bfhkizff _1bsb1wqb _4t3ifvz7"
11
+ };
12
+ /**
13
+ * __Skeleton menu section heading__
14
+ *
15
+ * A skeleton menu section heading is used to display a loading state for a side nav menu
16
+ * section heading.
17
+ *
18
+ */
19
+ export const SkeletonMenuSectionHeading = props => {
20
+ const {
21
+ testId
22
+ } = props;
23
+ return /*#__PURE__*/React.createElement("div", {
24
+ "data-testid": testId,
25
+ className: ax([containerStyles.root])
26
+ }, /*#__PURE__*/React.createElement("div", {
27
+ className: ax([containerStyles.item])
28
+ }, /*#__PURE__*/React.createElement("div", {
29
+ className: ax([skeletonStyles.item])
30
+ })));
31
+ };
@@ -0,0 +1,2 @@
1
+ export { SkeletonMenuItem } from '../ui/skeleton/skeleton-menu-item';
2
+ export { SkeletonMenuSectionHeading } from '../ui/skeleton/skeleton-menu-section-heading';
@@ -0,0 +1,24 @@
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
4
+ ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
5
+ ._1bah1h6o{justify-content:center}
6
+ ._1bsb1wqb{width:60px}
7
+ ._1bsb53f4{width:75pt}
8
+ ._1bsbgktf{width:20px}
9
+ ._1e0c1txw{display:flex}
10
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
11
+ ._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
12
+ ._4cvr1h6o{align-items:center}
13
+ ._4t3i1tcg{height:24px}
14
+ ._4t3i1ylp{height:40px}
15
+ ._4t3ifvz7{height:1cap}
16
+ ._4t3igktf{height:20px}
17
+ ._4t3iu7e1{height:1lh}
18
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
19
+ ._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
20
+ ._bfhkizff{background-color:var(--ds-skeleton,#0515240f)}
21
+ ._bozg1b66{padding-inline-start:var(--ds-space-050,4px)}
22
+ ._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
23
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
24
+ ._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
@@ -0,0 +1,53 @@
1
+ /* skeleton-menu-item.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./skeleton-menu-item.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { Flex } from '@atlaskit/primitives/compiled';
6
+ var containerStyles = {
7
+ root: "_4t3i1tcg _bozg1b66 _y4ti1b66 _1q511b66 _85i51b66 _1e0c1txw _4cvr1h6o",
8
+ text: "_bozg1b66 _y4ti1b66",
9
+ item: "_11c8fhey _4t3iu7e1 _1e0c1txw _4cvr1h6o",
10
+ hasDescription: "_4t3i1ylp",
11
+ description: "_11c8wadc _4t3iu7e1 _1e0c1txw _4cvr1h6o",
12
+ elemBefore: "_bozgv77o _y4tiv77o _1q51v77o _85i5v77o _1e0c1txw _4cvr1h6o _1bah1h6o"
13
+ };
14
+ var skeletonStyles = {
15
+ item: "_2rko1rr0 _bfhkizff _1bsb53f4 _4t3ifvz7",
16
+ elemBefore: "_2rko12b0 _bfhkizff _1bsbgktf _4t3igktf",
17
+ description: "_2rko1rr0 _bfhkizff _1bsb1wqb _4t3ifvz7"
18
+ };
19
+ /**
20
+ * __Skeleton menu item__
21
+ *
22
+ * A skeleton menu item is used to display a loading state for a side nav menu item.
23
+ * This component can have an icon element skeleton, and a description skeleton included.
24
+ */
25
+ export var SkeletonMenuItem = function SkeletonMenuItem(props) {
26
+ var _props$hasDescription = props.hasDescription,
27
+ hasDescription = _props$hasDescription === void 0 ? false : _props$hasDescription,
28
+ _props$hasElemBefore = props.hasElemBefore,
29
+ hasElemBefore = _props$hasElemBefore === void 0 ? false : _props$hasElemBefore,
30
+ testId = props.testId;
31
+ return /*#__PURE__*/React.createElement("div", {
32
+ "data-testid": testId,
33
+ className: ax([containerStyles.root, hasDescription && containerStyles.hasDescription])
34
+ }, /*#__PURE__*/React.createElement(Flex, {
35
+ alignItems: "center"
36
+ }, hasElemBefore && /*#__PURE__*/React.createElement("div", {
37
+ className: ax([containerStyles.elemBefore])
38
+ }, /*#__PURE__*/React.createElement("div", {
39
+ className: ax([skeletonStyles.elemBefore])
40
+ })), /*#__PURE__*/React.createElement(Flex, {
41
+ xcss: containerStyles.text,
42
+ gap: "space.025",
43
+ direction: "column"
44
+ }, /*#__PURE__*/React.createElement("div", {
45
+ className: ax([containerStyles.item])
46
+ }, /*#__PURE__*/React.createElement("div", {
47
+ className: ax([skeletonStyles.item])
48
+ })), hasDescription && /*#__PURE__*/React.createElement("div", {
49
+ className: ax([containerStyles.description])
50
+ }, /*#__PURE__*/React.createElement("div", {
51
+ className: ax([skeletonStyles.description])
52
+ })))));
53
+ };
@@ -0,0 +1,13 @@
1
+ ._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
3
+ ._1bsb1wqb{width:60px}
4
+ ._1e0c1txw{display:flex}
5
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
6
+ ._1tke1tcg{min-height:24px}
7
+ ._4cvr1h6o{align-items:center}
8
+ ._4t3ifvz7{height:1cap}
9
+ ._4t3iu7e1{height:1lh}
10
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
11
+ ._bfhkizff{background-color:var(--ds-skeleton,#0515240f)}
12
+ ._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
13
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
@@ -0,0 +1,29 @@
1
+ /* skeleton-menu-section-heading.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./skeleton-menu-section-heading.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ var containerStyles = {
6
+ root: "_1tke1tcg _bozg12x7 _y4ti1b66 _1q511b66 _85i51b66 _1e0c1txw _4cvr1h6o",
7
+ item: "_11c8i4vh _4t3iu7e1 _1e0c1txw _4cvr1h6o"
8
+ };
9
+ var skeletonStyles = {
10
+ item: "_2rko1rr0 _bfhkizff _1bsb1wqb _4t3ifvz7"
11
+ };
12
+ /**
13
+ * __Skeleton menu section heading__
14
+ *
15
+ * A skeleton menu section heading is used to display a loading state for a side nav menu
16
+ * section heading.
17
+ *
18
+ */
19
+ export var SkeletonMenuSectionHeading = function SkeletonMenuSectionHeading(props) {
20
+ var testId = props.testId;
21
+ return /*#__PURE__*/React.createElement("div", {
22
+ "data-testid": testId,
23
+ className: ax([containerStyles.root])
24
+ }, /*#__PURE__*/React.createElement("div", {
25
+ className: ax([containerStyles.item])
26
+ }, /*#__PURE__*/React.createElement("div", {
27
+ className: ax([skeletonStyles.item])
28
+ })));
29
+ };
@@ -0,0 +1,2 @@
1
+ export { SkeletonMenuItem, type SkeletonMenuItemProps } from '../ui/skeleton/skeleton-menu-item';
2
+ export { SkeletonMenuSectionHeading, type SkeletonMenuSectionHeadingProps } from '../ui/skeleton/skeleton-menu-section-heading';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ export interface SkeletonMenuItemProps {
6
+ /**
7
+ * Whether to render a description skeleton.
8
+ */
9
+ hasDescription?: boolean;
10
+ /**
11
+ * Whether to render an icon element skeleton.
12
+ */
13
+ hasElemBefore?: boolean;
14
+ /**
15
+ * A unique string that appears as data attribute data-testid in the
16
+ * rendered code, serving as a hook for automated tests.
17
+ */
18
+ testId?: string;
19
+ }
20
+ /**
21
+ * __Skeleton menu item__
22
+ *
23
+ * A skeleton menu item is used to display a loading state for a side nav menu item.
24
+ * This component can have an icon element skeleton, and a description skeleton included.
25
+ */
26
+ export declare const SkeletonMenuItem: (props: SkeletonMenuItemProps) => JSX.Element;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ export interface SkeletonMenuSectionHeadingProps {
6
+ /**
7
+ * A unique string that appears as data attribute data-testid in the
8
+ * rendered code, serving as a hook for automated tests.
9
+ */
10
+ testId?: string;
11
+ }
12
+ /**
13
+ * __Skeleton menu section heading__
14
+ *
15
+ * A skeleton menu section heading is used to display a loading state for a side nav menu
16
+ * section heading.
17
+ *
18
+ */
19
+ export declare const SkeletonMenuSectionHeading: (props: SkeletonMenuSectionHeadingProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { SkeletonMenuItem, type SkeletonMenuItemProps } from '../ui/skeleton/skeleton-menu-item';
2
+ export { SkeletonMenuSectionHeading, type SkeletonMenuSectionHeadingProps } from '../ui/skeleton/skeleton-menu-section-heading';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ export interface SkeletonMenuItemProps {
6
+ /**
7
+ * Whether to render a description skeleton.
8
+ */
9
+ hasDescription?: boolean;
10
+ /**
11
+ * Whether to render an icon element skeleton.
12
+ */
13
+ hasElemBefore?: boolean;
14
+ /**
15
+ * A unique string that appears as data attribute data-testid in the
16
+ * rendered code, serving as a hook for automated tests.
17
+ */
18
+ testId?: string;
19
+ }
20
+ /**
21
+ * __Skeleton menu item__
22
+ *
23
+ * A skeleton menu item is used to display a loading state for a side nav menu item.
24
+ * This component can have an icon element skeleton, and a description skeleton included.
25
+ */
26
+ export declare const SkeletonMenuItem: (props: SkeletonMenuItemProps) => JSX.Element;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ export interface SkeletonMenuSectionHeadingProps {
6
+ /**
7
+ * A unique string that appears as data attribute data-testid in the
8
+ * rendered code, serving as a hook for automated tests.
9
+ */
10
+ testId?: string;
11
+ }
12
+ /**
13
+ * __Skeleton menu section heading__
14
+ *
15
+ * A skeleton menu section heading is used to display a loading state for a side nav menu
16
+ * section heading.
17
+ *
18
+ */
19
+ export declare const SkeletonMenuSectionHeading: (props: SkeletonMenuSectionHeadingProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-nav-items",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Menu items and elements for the navigation side nav area.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -58,7 +58,7 @@
58
58
  "@af/visual-regression": "workspace:^",
59
59
  "@atlaskit/app-provider": "^3.3.0",
60
60
  "@atlaskit/lozenge": "^13.3.0",
61
- "@atlaskit/navigation-system": "^5.31.0",
61
+ "@atlaskit/navigation-system": "^5.32.0",
62
62
  "@atlaskit/ssr": "workspace:^",
63
63
  "@atlassian/a11y-jest-testing": "^0.8.0",
64
64
  "@atlassian/feature-flags-test-utils": "^1.0.0",
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/side-nav-items/skeleton",
3
+ "main": "../dist/cjs/entry-points/skeleton.js",
4
+ "module": "../dist/esm/entry-points/skeleton.js",
5
+ "module:es2019": "../dist/es2019/entry-points/skeleton.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/skeleton.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/entry-points/skeleton.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }