@atlaskit/navigation-system 10.16.5 → 10.16.7
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 +13 -0
- package/dist/cjs/components/badge-container.js +1 -1
- package/dist/cjs/components/list-item.js +1 -1
- package/dist/cjs/components/list.js +1 -1
- package/dist/cjs/components/skip-links/skip-link.js +1 -1
- package/dist/cjs/components/skip-links/skip-links-container.js +1 -1
- package/dist/cjs/components/skip-links/skip-links-popup.js +1 -1
- package/dist/cjs/ui/page-layout/aside.js +1 -1
- package/dist/cjs/ui/page-layout/banner.js +1 -1
- package/dist/cjs/ui/page-layout/main/main-sticky-header.js +1 -1
- package/dist/cjs/ui/page-layout/main/main.js +1 -1
- package/dist/cjs/ui/page-layout/panel-splitter/panel-splitter.js +1 -1
- package/dist/cjs/ui/page-layout/panel.js +1 -1
- package/dist/cjs/ui/page-layout/ribbon.js +1 -1
- package/dist/cjs/ui/page-layout/root.js +1 -1
- package/dist/cjs/ui/page-layout/side-nav/side-nav-content.js +1 -1
- package/dist/cjs/ui/page-layout/side-nav/side-nav-footer.js +1 -1
- package/dist/cjs/ui/page-layout/side-nav/side-nav-header.js +1 -1
- package/dist/cjs/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/cjs/ui/page-layout/side-nav/toggle-button.js +1 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav-end.js +1 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav-middle.js +1 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/dist/cjs/ui/page-layout/top-nav/top-nav.js +1 -1
- package/dist/cjs/ui/top-nav-items/custom-title.js +1 -1
- package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.compiled.css +0 -1
- package/dist/cjs/ui/top-nav-items/nav-logo/app-logo.js +4 -8
- package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.compiled.css +1 -1
- package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.js +4 -6
- package/dist/cjs/ui/top-nav-items/nav-logo/logo-renderer.js +2 -5
- package/dist/cjs/ui/top-nav-items/search.compiled.css +0 -1
- package/dist/cjs/ui/top-nav-items/search.js +3 -5
- package/dist/cjs/ui/top-nav-items/themed/themed-anchor.compiled.css +0 -1
- package/dist/cjs/ui/top-nav-items/themed/themed-anchor.js +3 -4
- package/dist/cjs/ui/top-nav-items/themed/themed-button.js +1 -1
- package/dist/cjs/ui/top-nav-items/themed/themed-icon-button.js +1 -1
- package/dist/cjs/ui/top-nav-items/themed/themed-link-button.js +1 -1
- package/dist/cjs/ui/top-nav-items/themed/themed-pressable.compiled.css +0 -1
- package/dist/cjs/ui/top-nav-items/themed/themed-pressable.js +4 -5
- package/dist/es2019/components/badge-container.js +1 -1
- package/dist/es2019/components/list-item.js +1 -1
- package/dist/es2019/components/list.js +1 -1
- package/dist/es2019/components/skip-links/skip-link.js +1 -1
- package/dist/es2019/components/skip-links/skip-links-container.js +1 -1
- package/dist/es2019/components/skip-links/skip-links-popup.js +1 -1
- package/dist/es2019/ui/page-layout/aside.js +1 -1
- package/dist/es2019/ui/page-layout/banner.js +1 -1
- package/dist/es2019/ui/page-layout/main/main-sticky-header.js +1 -1
- package/dist/es2019/ui/page-layout/main/main.js +1 -1
- package/dist/es2019/ui/page-layout/panel-splitter/panel-splitter.js +1 -1
- package/dist/es2019/ui/page-layout/panel.js +1 -1
- package/dist/es2019/ui/page-layout/ribbon.js +1 -1
- package/dist/es2019/ui/page-layout/root.js +1 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav-content.js +1 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav-footer.js +1 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav-header.js +1 -1
- package/dist/es2019/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/es2019/ui/page-layout/side-nav/toggle-button.js +1 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav-end.js +1 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav-middle.js +1 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/dist/es2019/ui/page-layout/top-nav/top-nav.js +1 -1
- package/dist/es2019/ui/top-nav-items/custom-title.js +1 -1
- package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.compiled.css +0 -1
- package/dist/es2019/ui/top-nav-items/nav-logo/app-logo.js +4 -8
- package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.compiled.css +1 -1
- package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.js +4 -6
- package/dist/es2019/ui/top-nav-items/nav-logo/logo-renderer.js +2 -5
- package/dist/es2019/ui/top-nav-items/search.compiled.css +0 -1
- package/dist/es2019/ui/top-nav-items/search.js +3 -5
- package/dist/es2019/ui/top-nav-items/themed/themed-anchor.compiled.css +0 -1
- package/dist/es2019/ui/top-nav-items/themed/themed-anchor.js +3 -4
- package/dist/es2019/ui/top-nav-items/themed/themed-button.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/themed-icon-button.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/themed-link-button.js +1 -1
- package/dist/es2019/ui/top-nav-items/themed/themed-pressable.compiled.css +0 -1
- package/dist/es2019/ui/top-nav-items/themed/themed-pressable.js +5 -6
- package/dist/esm/components/badge-container.js +1 -1
- package/dist/esm/components/list-item.js +1 -1
- package/dist/esm/components/list.js +1 -1
- package/dist/esm/components/skip-links/skip-link.js +1 -1
- package/dist/esm/components/skip-links/skip-links-container.js +1 -1
- package/dist/esm/components/skip-links/skip-links-popup.js +1 -1
- package/dist/esm/ui/page-layout/aside.js +1 -1
- package/dist/esm/ui/page-layout/banner.js +1 -1
- package/dist/esm/ui/page-layout/main/main-sticky-header.js +1 -1
- package/dist/esm/ui/page-layout/main/main.js +1 -1
- package/dist/esm/ui/page-layout/panel-splitter/panel-splitter.js +1 -1
- package/dist/esm/ui/page-layout/panel.js +1 -1
- package/dist/esm/ui/page-layout/ribbon.js +1 -1
- package/dist/esm/ui/page-layout/root.js +1 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav-content.js +1 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav-footer.js +1 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav-header.js +1 -1
- package/dist/esm/ui/page-layout/side-nav/side-nav.js +1 -1
- package/dist/esm/ui/page-layout/side-nav/toggle-button.js +1 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav-end.js +1 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav-middle.js +1 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/dist/esm/ui/page-layout/top-nav/top-nav.js +1 -1
- package/dist/esm/ui/top-nav-items/custom-title.js +1 -1
- package/dist/esm/ui/top-nav-items/nav-logo/app-logo.compiled.css +0 -1
- package/dist/esm/ui/top-nav-items/nav-logo/app-logo.js +4 -8
- package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.compiled.css +1 -1
- package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.js +4 -6
- package/dist/esm/ui/top-nav-items/nav-logo/logo-renderer.js +2 -5
- package/dist/esm/ui/top-nav-items/search.compiled.css +0 -1
- package/dist/esm/ui/top-nav-items/search.js +3 -5
- package/dist/esm/ui/top-nav-items/themed/themed-anchor.compiled.css +0 -1
- package/dist/esm/ui/top-nav-items/themed/themed-anchor.js +3 -4
- package/dist/esm/ui/top-nav-items/themed/themed-button.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/themed-icon-button.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/themed-link-button.js +1 -1
- package/dist/esm/ui/top-nav-items/themed/themed-pressable.compiled.css +0 -1
- package/dist/esm/ui/top-nav-items/themed/themed-pressable.js +4 -5
- package/dist/types/ui/top-nav-items/nav-logo/logo-renderer.d.ts +1 -2
- package/package.json +4 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* top-nav-start.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* top-nav-start.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./top-nav-start.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef, useContext, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* app-logo.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* app-logo.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./app-logo.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useRef } from 'react';
|
|
@@ -10,8 +10,7 @@ import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
|
10
10
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
11
11
|
import { LogoRenderer } from './logo-renderer';
|
|
12
12
|
const anchorStyles = {
|
|
13
|
-
root: "
|
|
14
|
-
rootT26Shape: "_2rko1mok",
|
|
13
|
+
root: "_2rko1mok _1e0c1txw _4cvr1h6o _4t3izwfg _1o9zidpf _ahbq1b66 _1toh1r31 _5jyqglyw _mrqmnqa1 _1w901kw7",
|
|
15
14
|
interactionStates: "_irr31dpa _1di69yc7",
|
|
16
15
|
interactionStatesCustomTheming: "_irr31rps _1di6yhlj",
|
|
17
16
|
fullHeightSidebar: "_1reo15vq _18m915vq _1o9zkb7n"
|
|
@@ -70,7 +69,7 @@ export const AppLogo = ({
|
|
|
70
69
|
// @ts-expect-error - non-standard values for `borderRadius` and the custom theming interaction states
|
|
71
70
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
72
71
|
,
|
|
73
|
-
xcss: cx(anchorStyles.root,
|
|
72
|
+
xcss: cx(anchorStyles.root, hasCustomTheme ? anchorStyles.interactionStatesCustomTheming : anchorStyles.interactionStates, isFhsEnabled && anchorStyles.fullHeightSidebar),
|
|
74
73
|
onClick: onClick
|
|
75
74
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
76
75
|
space: "space.075",
|
|
@@ -78,10 +77,7 @@ export const AppLogo = ({
|
|
|
78
77
|
xcss: cx(logoWrapperStyles.root, isFhsEnabled && logoWrapperStyles.fullHeightSidebar)
|
|
79
78
|
}, /*#__PURE__*/React.createElement("div", {
|
|
80
79
|
className: ax([iconContainerStyles.root, isFhsEnabled && iconContainerStyles.fullHeightSidebar])
|
|
81
|
-
}, /*#__PURE__*/React.createElement(LogoRenderer
|
|
82
|
-
// Top nav always uses the new logo design
|
|
83
|
-
, {
|
|
84
|
-
shouldUseNewLogoDesign: true,
|
|
80
|
+
}, /*#__PURE__*/React.createElement(LogoRenderer, {
|
|
85
81
|
logoOrIcon: icon
|
|
86
82
|
})), /*#__PURE__*/React.createElement("span", {
|
|
87
83
|
className: ax([logoTextStyles.root])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
1
2
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
2
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
3
|
._18zr1b66{padding-inline:var(--ds-space-050,4px)}._18m915vq{overflow-y:hidden}
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
5
|
._1e0cglyw{display:none}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
/* custom-logo.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* custom-logo.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./custom-logo.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
6
|
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
8
7
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
9
8
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
10
9
|
import { LogoRenderer } from './logo-renderer';
|
|
11
10
|
const anchorStyles = {
|
|
12
|
-
root: "
|
|
13
|
-
customLogoBorderRadius: "
|
|
14
|
-
customLogoBorderRadiusT26Shape: "_2rko1mok",
|
|
11
|
+
root: "_2rko12b0 _1e0c1txw _4cvr1h6o _4t3izwfg",
|
|
12
|
+
customLogoBorderRadius: "_2rko1mok",
|
|
15
13
|
newMargin: "_ahbq1b66",
|
|
16
14
|
newInteractionStates: "_irr31dpa _1di69yc7",
|
|
17
15
|
newInteractionStatesCustomTheming: "_irr31rps _1di6yhlj"
|
|
@@ -82,7 +80,7 @@ export const CustomLogo = ({
|
|
|
82
80
|
// @ts-expect-error - non-standard values for `borderRadius` and the custom theming interaction states
|
|
83
81
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
84
82
|
,
|
|
85
|
-
xcss: cx(anchorStyles.root, anchorStyles.customLogoBorderRadius,
|
|
83
|
+
xcss: cx(anchorStyles.root, anchorStyles.customLogoBorderRadius, anchorStyles.newMargin, hasCustomTheme ? anchorStyles.newInteractionStatesCustomTheming : anchorStyles.newInteractionStates),
|
|
86
84
|
onClick: onClick
|
|
87
85
|
}, /*#__PURE__*/React.createElement("div", {
|
|
88
86
|
className: ax([sharedIconOrLogoContainerStyles.root, iconContainerStyles.root, isFhsEnabled && sharedIconOrLogoContainerStyles.withFullHeightSidebar])
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
/* logo-renderer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
5
5
|
export const themedLogoIcon = '--ds-top-bar-logo-icon';
|
|
6
6
|
export const themedLogoText = '--ds-top-bar-logo-text';
|
|
7
7
|
export function LogoRenderer({
|
|
8
|
-
logoOrIcon: LogoOrIcon
|
|
9
|
-
shouldUseNewLogoDesign
|
|
8
|
+
logoOrIcon: LogoOrIcon
|
|
10
9
|
}) {
|
|
11
10
|
const hasCustomTheme = useHasCustomTheme();
|
|
12
11
|
if (hasCustomTheme) {
|
|
13
12
|
return /*#__PURE__*/React.createElement(LogoOrIcon, {
|
|
14
13
|
label: "",
|
|
15
14
|
size: "small",
|
|
16
|
-
shouldUseNewLogoDesign: shouldUseNewLogoDesign,
|
|
17
15
|
iconColor: `var(${themedLogoIcon})`,
|
|
18
16
|
textColor: `var(${themedLogoText})`
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
return /*#__PURE__*/React.createElement(LogoOrIcon, {
|
|
22
20
|
size: "small",
|
|
23
|
-
shouldUseNewLogoDesign: shouldUseNewLogoDesign,
|
|
24
21
|
label: "",
|
|
25
22
|
appearance: "brand"
|
|
26
23
|
});
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
/* search.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* search.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./search.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { Fragment } from 'react';
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
import { Pressable, Show, Text } from '@atlaskit/primitives/compiled';
|
|
9
8
|
import { useIsFhsEnabled } from '../fhs-rollout/use-is-fhs-enabled';
|
|
10
9
|
import { IconButton } from './themed/icon-button';
|
|
11
10
|
const styles = {
|
|
12
|
-
root: "
|
|
13
|
-
rootT26Shape: "_2rko1qi0",
|
|
11
|
+
root: "_2rko1qi0 _1rjcze3t _18zr12x7 _yv0e1mfv _4cvr1h6o _bfhk1j9a _vchhusvi _80om1kdv _1e0cglyw _4t3izwfg _p12f1kvu _1bsb1osq _irr3l4ek _1di6r01l _114b11p5",
|
|
14
12
|
buttonText: "_yyhyjvu9 _1ii7kb7n",
|
|
15
13
|
iconBefore: "_yyhykb7n _1ii7kb7n _1e0c1txw",
|
|
16
14
|
elemAfter: "_yyhy11wp _1ii7kb7n _1e0c1txw",
|
|
@@ -39,7 +37,7 @@ export const Search = ({
|
|
|
39
37
|
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border-input, #8C8F97)"}`
|
|
40
38
|
},
|
|
41
39
|
onClick: onClick,
|
|
42
|
-
xcss: cx(styles.root,
|
|
40
|
+
xcss: cx(styles.root, isFhsEnabled && styles.fullHeightSidebar),
|
|
43
41
|
interactionName: interactionName,
|
|
44
42
|
"aria-haspopup": ariaHaspopup
|
|
45
43
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
._11q7pkxg{background:var(--ds-top-bar-button-background)}
|
|
6
6
|
._14mj1kw7:after{border-radius:inherit}
|
|
7
7
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
8
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
9
8
|
._9v7aze3t:after{inset:var(--ds-space-0,0)}
|
|
10
9
|
._v5649dqc{transition:background .1s ease-out}
|
|
11
10
|
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* themed-anchor.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* themed-anchor.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./themed-anchor.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -9,8 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
9
9
|
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
|
|
11
11
|
const styles = {
|
|
12
|
-
root: "_zulp12x7 _11c8fhey
|
|
13
|
-
rootT26Shape: "_2rko1qi0",
|
|
12
|
+
root: "_zulp12x7 _11c8fhey _2rko1qi0 _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
|
|
14
13
|
interactiveMotion: "_v564k6bl _1ggl5xtf",
|
|
15
14
|
border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
|
|
16
15
|
selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
|
|
@@ -51,7 +50,7 @@ function ThemedAnchorFn({
|
|
|
51
50
|
// @ts-expect-error
|
|
52
51
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
53
52
|
,
|
|
54
|
-
xcss: cx(styles.root,
|
|
53
|
+
xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, fg('platform-dst-motion-uplift-button') && styles.interactiveMotion)
|
|
55
54
|
}));
|
|
56
55
|
}
|
|
57
56
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* themed-button.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* themed-button.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./themed-button.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* themed-icon-button.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* themed-icon-button.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* themed-link-button.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* themed-link-button.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./themed-link-button.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
._11q7pkxg{background:var(--ds-top-bar-button-background)}
|
|
6
6
|
._14mj1kw7:after{border-radius:inherit}
|
|
7
7
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
8
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
9
8
|
._9v7aze3t:after{inset:var(--ds-space-0,0)}
|
|
10
9
|
._v5649dqc{transition:background .1s ease-out}
|
|
11
10
|
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* themed-pressable.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* themed-pressable.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./themed-pressable.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -8,8 +8,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
8
8
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import { getPrimitiveSpreadProps } from './get-primitives-spread-props';
|
|
10
10
|
const styles = {
|
|
11
|
-
root: "_zulp12x7 _11c8fhey
|
|
12
|
-
rootT26Shape: "_2rko1qi0",
|
|
11
|
+
root: "_zulp12x7 _11c8fhey _2rko1qi0 _v5649dqc _4bfu1r31 _1hmsglyw _ajmmnqa1 _1rjcze3t _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i5r7u _kqswh2mm _1nrm1r31 _1a3b1r31 _9oik1r31 _c2waglyw _4fprglyw _1bnxglyw _1iohnqa1 _5goinqa1 _jf4cnqa1",
|
|
13
12
|
interactiveMotion: "_v564k6bl _1ggl5xtf",
|
|
14
13
|
border: "_14mj1kw7 _9v7aze3t _1tv3nqa1 _39yqe4h9 _aetrb3bt _18postnw",
|
|
15
14
|
selected: "_11q71qds _syazw5ct _8l3m15jn _f8pjw5ct _1053w5ct _19lcjrv1 _30l3w5ct _j6xtnh62 _9h8hw5ct",
|
|
@@ -29,13 +28,13 @@ const appearanceStyles = {
|
|
|
29
28
|
* Props shared by `ThemedPressable` and `ThemedAnchor`
|
|
30
29
|
*/
|
|
31
30
|
|
|
32
|
-
export const ThemedPressable = /*#__PURE__*/forwardRef(
|
|
31
|
+
export const ThemedPressable = /*#__PURE__*/forwardRef(({
|
|
33
32
|
appearance = 'default',
|
|
34
33
|
shape = 'default',
|
|
35
34
|
isSelected,
|
|
36
35
|
isDisabled,
|
|
37
36
|
...props
|
|
38
|
-
}, ref) {
|
|
37
|
+
}, ref) => {
|
|
39
38
|
const hasBorder = appearance === 'default' || isSelected;
|
|
40
39
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, getPrimitiveSpreadProps(props), {
|
|
41
40
|
ref: ref,
|
|
@@ -47,7 +46,7 @@ export const ThemedPressable = /*#__PURE__*/forwardRef(function ThemedPressable(
|
|
|
47
46
|
// @ts-expect-error
|
|
48
47
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
49
48
|
,
|
|
50
|
-
xcss: cx(styles.root,
|
|
49
|
+
xcss: cx(styles.root, shapeStyles[shape], hasBorder && styles.border, appearanceStyles[appearance], isSelected && styles.selected, isDisabled && styles.disabled, fg('platform-dst-motion-uplift-button') && styles.interactiveMotion),
|
|
51
50
|
isDisabled: isDisabled
|
|
52
51
|
}));
|
|
53
52
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* skip-links-container.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* skip-links-container.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./skip-links-container.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* skip-links-popup.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* skip-links-popup.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./skip-links-popup.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* aside.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* aside.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./aside.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* main-sticky-header.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* main-sticky-header.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./main-sticky-header.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* panel-splitter.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* panel-splitter.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* panel.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* panel.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./panel.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* side-nav-content.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* side-nav-content.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./side-nav-content.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef, useMemo, useRef } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* side-nav.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* side-nav.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* toggle-button.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* toggle-button.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./toggle-button.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* top-nav-end.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* top-nav-end.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./top-nav-end.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* top-nav-start.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* top-nav-start.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./top-nav-start.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* app-logo.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* app-logo.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./app-logo.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useRef } from 'react';
|
|
@@ -10,8 +10,7 @@ import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
|
10
10
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
11
11
|
import { LogoRenderer } from './logo-renderer';
|
|
12
12
|
var anchorStyles = {
|
|
13
|
-
root: "
|
|
14
|
-
rootT26Shape: "_2rko1mok",
|
|
13
|
+
root: "_2rko1mok _1e0c1txw _4cvr1h6o _4t3izwfg _1o9zidpf _ahbq1b66 _1toh1r31 _5jyqglyw _mrqmnqa1 _1w901kw7",
|
|
15
14
|
interactionStates: "_irr31dpa _1di69yc7",
|
|
16
15
|
interactionStatesCustomTheming: "_irr31rps _1di6yhlj",
|
|
17
16
|
fullHeightSidebar: "_1reo15vq _18m915vq _1o9zkb7n"
|
|
@@ -69,7 +68,7 @@ export var AppLogo = function AppLogo(_ref) {
|
|
|
69
68
|
// @ts-expect-error - non-standard values for `borderRadius` and the custom theming interaction states
|
|
70
69
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
71
70
|
,
|
|
72
|
-
xcss: cx(anchorStyles.root,
|
|
71
|
+
xcss: cx(anchorStyles.root, hasCustomTheme ? anchorStyles.interactionStatesCustomTheming : anchorStyles.interactionStates, isFhsEnabled && anchorStyles.fullHeightSidebar),
|
|
73
72
|
onClick: onClick
|
|
74
73
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
75
74
|
space: "space.075",
|
|
@@ -77,10 +76,7 @@ export var AppLogo = function AppLogo(_ref) {
|
|
|
77
76
|
xcss: cx(logoWrapperStyles.root, isFhsEnabled && logoWrapperStyles.fullHeightSidebar)
|
|
78
77
|
}, /*#__PURE__*/React.createElement("div", {
|
|
79
78
|
className: ax([iconContainerStyles.root, isFhsEnabled && iconContainerStyles.fullHeightSidebar])
|
|
80
|
-
}, /*#__PURE__*/React.createElement(LogoRenderer
|
|
81
|
-
// Top nav always uses the new logo design
|
|
82
|
-
, {
|
|
83
|
-
shouldUseNewLogoDesign: true,
|
|
79
|
+
}, /*#__PURE__*/React.createElement(LogoRenderer, {
|
|
84
80
|
logoOrIcon: icon
|
|
85
81
|
})), /*#__PURE__*/React.createElement("span", {
|
|
86
82
|
className: ax([logoTextStyles.root])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
1
2
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
2
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
3
|
._18zr1b66{padding-inline:var(--ds-space-050,4px)}._18m915vq{overflow-y:hidden}
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
5
|
._1e0cglyw{display:none}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
/* custom-logo.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* custom-logo.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./custom-logo.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
6
|
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
8
7
|
import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
|
|
9
8
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
10
9
|
import { LogoRenderer } from './logo-renderer';
|
|
11
10
|
var anchorStyles = {
|
|
12
|
-
root: "
|
|
13
|
-
customLogoBorderRadius: "
|
|
14
|
-
customLogoBorderRadiusT26Shape: "_2rko1mok",
|
|
11
|
+
root: "_2rko12b0 _1e0c1txw _4cvr1h6o _4t3izwfg",
|
|
12
|
+
customLogoBorderRadius: "_2rko1mok",
|
|
15
13
|
newMargin: "_ahbq1b66",
|
|
16
14
|
newInteractionStates: "_irr31dpa _1di69yc7",
|
|
17
15
|
newInteractionStatesCustomTheming: "_irr31rps _1di6yhlj"
|
|
@@ -81,7 +79,7 @@ export var CustomLogo = function CustomLogo(_ref) {
|
|
|
81
79
|
// @ts-expect-error - non-standard values for `borderRadius` and the custom theming interaction states
|
|
82
80
|
// eslint-disable-next-line @compiled/no-suppress-xcss
|
|
83
81
|
,
|
|
84
|
-
xcss: cx(anchorStyles.root, anchorStyles.customLogoBorderRadius,
|
|
82
|
+
xcss: cx(anchorStyles.root, anchorStyles.customLogoBorderRadius, anchorStyles.newMargin, hasCustomTheme ? anchorStyles.newInteractionStatesCustomTheming : anchorStyles.newInteractionStates),
|
|
85
83
|
onClick: onClick
|
|
86
84
|
}, /*#__PURE__*/React.createElement("div", {
|
|
87
85
|
className: ax([sharedIconOrLogoContainerStyles.root, iconContainerStyles.root, isFhsEnabled && sharedIconOrLogoContainerStyles.withFullHeightSidebar])
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
/* logo-renderer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import { useHasCustomTheme } from '../themed/has-custom-theme-context';
|
|
5
5
|
export var themedLogoIcon = '--ds-top-bar-logo-icon';
|
|
6
6
|
export var themedLogoText = '--ds-top-bar-logo-text';
|
|
7
7
|
export function LogoRenderer(_ref) {
|
|
8
|
-
var LogoOrIcon = _ref.logoOrIcon
|
|
9
|
-
shouldUseNewLogoDesign = _ref.shouldUseNewLogoDesign;
|
|
8
|
+
var LogoOrIcon = _ref.logoOrIcon;
|
|
10
9
|
var hasCustomTheme = useHasCustomTheme();
|
|
11
10
|
if (hasCustomTheme) {
|
|
12
11
|
return /*#__PURE__*/React.createElement(LogoOrIcon, {
|
|
13
12
|
label: "",
|
|
14
13
|
size: "small",
|
|
15
|
-
shouldUseNewLogoDesign: shouldUseNewLogoDesign,
|
|
16
14
|
iconColor: "var(".concat(themedLogoIcon, ")"),
|
|
17
15
|
textColor: "var(".concat(themedLogoText, ")")
|
|
18
16
|
});
|
|
19
17
|
}
|
|
20
18
|
return /*#__PURE__*/React.createElement(LogoOrIcon, {
|
|
21
19
|
size: "small",
|
|
22
|
-
shouldUseNewLogoDesign: shouldUseNewLogoDesign,
|
|
23
20
|
label: "",
|
|
24
21
|
appearance: "brand"
|
|
25
22
|
});
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
/* search.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* search.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./search.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { Fragment } from 'react';
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
import { Pressable, Show, Text } from '@atlaskit/primitives/compiled';
|
|
9
8
|
import { useIsFhsEnabled } from '../fhs-rollout/use-is-fhs-enabled';
|
|
10
9
|
import { IconButton } from './themed/icon-button';
|
|
11
10
|
var styles = {
|
|
12
|
-
root: "
|
|
13
|
-
rootT26Shape: "_2rko1qi0",
|
|
11
|
+
root: "_2rko1qi0 _1rjcze3t _18zr12x7 _yv0e1mfv _4cvr1h6o _bfhk1j9a _vchhusvi _80om1kdv _1e0cglyw _4t3izwfg _p12f1kvu _1bsb1osq _irr3l4ek _1di6r01l _114b11p5",
|
|
14
12
|
buttonText: "_yyhyjvu9 _1ii7kb7n",
|
|
15
13
|
iconBefore: "_yyhykb7n _1ii7kb7n _1e0c1txw",
|
|
16
14
|
elemAfter: "_yyhy11wp _1ii7kb7n _1e0c1txw",
|
|
@@ -39,7 +37,7 @@ export var Search = function Search(_ref) {
|
|
|
39
37
|
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-input, #8C8F97)")
|
|
40
38
|
},
|
|
41
39
|
onClick: onClick,
|
|
42
|
-
xcss: cx(styles.root,
|
|
40
|
+
xcss: cx(styles.root, isFhsEnabled && styles.fullHeightSidebar),
|
|
43
41
|
interactionName: interactionName,
|
|
44
42
|
"aria-haspopup": ariaHaspopup
|
|
45
43
|
}, /*#__PURE__*/React.createElement("span", {
|