@atlaskit/navigation-system 0.176.0 → 0.176.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/afm-cc/tsconfig.json +7 -1
  3. package/afm-dev-agents/tsconfig.json +7 -1
  4. package/afm-jira/tsconfig.json +7 -1
  5. package/afm-passionfruit/tsconfig.json +7 -1
  6. package/afm-post-office/tsconfig.json +7 -1
  7. package/afm-rovo-extension/tsconfig.json +7 -1
  8. package/afm-townsquare/tsconfig.json +7 -1
  9. package/build/tsconfig.json +8 -2
  10. package/constellation/layout/diagram.tsx +2 -2
  11. package/constellation/side-nav-items/usage.mdx +4 -4
  12. package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.compiled.css +1 -2
  13. package/dist/cjs/ui/top-nav-items/nav-logo/custom-logo.js +2 -2
  14. package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.compiled.css +1 -2
  15. package/dist/es2019/ui/top-nav-items/nav-logo/custom-logo.js +2 -2
  16. package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.compiled.css +1 -2
  17. package/dist/esm/ui/top-nav-items/nav-logo/custom-logo.js +2 -2
  18. package/dist/types/ui/top-nav-items/nav-logo/logo-renderer.d.ts +1 -1
  19. package/dist/types-ts4.5/ui/top-nav-items/nav-logo/logo-renderer.d.ts +1 -1
  20. package/docs/00-intro.tsx +14 -0
  21. package/examples/confluence-mock.tsx +1 -1
  22. package/examples/menu-list.tsx +1 -1
  23. package/examples/menu-section.tsx +1 -1
  24. package/examples/top-navigation-stress.tsx +3 -1
  25. package/examples/top-navigation-theming-with-picker.tsx +6 -6
  26. package/examples/top-navigation.tsx +6 -6
  27. package/package.json +7 -7
  28. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/long-skeleton--default--platform-dst-nav4-flyout-update-on-resize-false.png +0 -0
  29. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/long-skeleton--default--platform-dst-nav4-flyout-update-on-resize-true.png +0 -0
  30. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/short-skeleton--default--platform-dst-nav4-flyout-update-on-resize-false.png +0 -0
  31. package/src/ui/menu-item/__tests__/informational-vr-tests/__snapshots__/flyout-menu-item-async-content/short-skeleton--default--platform-dst-nav4-flyout-update-on-resize-true.png +0 -0
  32. package/src/ui/top-nav-items/nav-logo/app-logo.tsx +1 -1
  33. package/src/ui/top-nav-items/nav-logo/custom-logo.tsx +2 -2
  34. package/src/ui/top-nav-items/nav-logo/logo-renderer.tsx +12 -2
  35. package/tsconfig.json +18 -13
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 0.176.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.176.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#193214](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193214)
14
+ [`c661806a65543`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c661806a65543) -
15
+ Internal changes to how border radius and border width values are applied. No visual change.
16
+ - Updated dependencies
17
+
3
18
  ## 0.176.0
4
19
 
5
20
  ### Minor Changes
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -12,6 +12,12 @@
12
12
  "exclude": [
13
13
  "../src/**/__tests__/*",
14
14
  "../src/**/*.test.*",
15
- "../src/**/test.*"
15
+ "../src/**/test.*",
16
+ "../src/**/examples.*",
17
+ "../src/**/examples/*",
18
+ "../src/**/examples/**/*",
19
+ "../src/**/*.stories.*",
20
+ "../src/**/stories/*",
21
+ "../src/**/stories/**/*"
16
22
  ]
17
- }
23
+ }
@@ -22,7 +22,7 @@ const styles = cssMap({
22
22
  paddingBottom: token('space.100'),
23
23
  paddingLeft: token('space.100'),
24
24
  marginBottom: token('space.100'),
25
- borderWidth: '1px',
25
+ borderWidth: token('border.width'),
26
26
  borderStyle: 'solid',
27
27
  borderColor: token('color.border'),
28
28
  borderRadius: token('border.radius'),
@@ -58,7 +58,7 @@ const styles = cssMap({
58
58
  width: '100%',
59
59
  height: '100%',
60
60
  backgroundColor: token('color.background.neutral'),
61
- borderWidth: '1px',
61
+ borderWidth: token('border.width'),
62
62
  borderStyle: 'solid',
63
63
  borderColor: token('color.border'),
64
64
  borderRadius: token('border.radius'),
@@ -291,8 +291,8 @@ For `actions` and `actionsOnHover`, when there is more than one icon button, use
291
291
 
292
292
  ### Write labels in sentence case for menu items and labels
293
293
 
294
- Only capitalize the first letter of the menu item name, unless the label contains a trademarked
295
- product or feature name that has been approved by legal.
294
+ Only capitalize the first letter of the menu item name, unless the label contains a trademarked app
295
+ or feature name that has been approved by legal.
296
296
 
297
297
  If the menu name is user generated, display as is.
298
298
 
@@ -313,8 +313,8 @@ If the menu name is user generated, display as is.
313
313
  alt: 'A menu item with "For You" label using title case.',
314
314
  }}
315
315
  >
316
- Don't capitalize other parts of the label unless it is a trademarked product or feature name (not
317
- all features are capitalized).
316
+ Don't capitalize other parts of the label unless it is a trademarked app or feature name (not all
317
+ features are capitalized).
318
318
  </DoDont>
319
319
 
320
320
  ## Related
@@ -1,6 +1,5 @@
1
1
 
2
- ._2rko1l7b{border-radius:3px}
3
- ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
2
+ ._2rkosqtm{border-radius:var(--ds-border-radius-100,3px)}
4
3
  ._18zr1b66{padding-inline:var(--ds-space-050,4px)}
5
4
  ._18zru2gc{padding-inline:var(--ds-space-100,8px)}._18m915vq{overflow-y:hidden}
6
5
  ._1e0c1txw{display:flex}
@@ -17,8 +17,8 @@ var _logoRenderer = require("./logo-renderer");
17
17
  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); }
18
18
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
19
19
  var anchorStyles = {
20
- root: "_2rkoiti9 _1e0c1txw _4cvr1h6o _4t3izwfg",
21
- customLogoBorderRadius: "_2rko1l7b",
20
+ root: "_2rkosqtm _1e0c1txw _4cvr1h6o _4t3izwfg",
21
+ customLogoBorderRadius: "_2rkosqtm",
22
22
  newMargin: "_ahbq1b66",
23
23
  newInteractionStates: "_irr3166n _1di61wwy",
24
24
  newInteractionStatesCustomTheming: "_irr31rps _1di6yhlj"
@@ -1,6 +1,5 @@
1
1
 
2
- ._2rko1l7b{border-radius:3px}
3
- ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
2
+ ._2rkosqtm{border-radius:var(--ds-border-radius-100,3px)}
4
3
  ._18zr1b66{padding-inline:var(--ds-space-050,4px)}
5
4
  ._18zru2gc{padding-inline:var(--ds-space-100,8px)}._18m915vq{overflow-y:hidden}
6
5
  ._1e0c1txw{display:flex}
@@ -9,8 +9,8 @@ import { Anchor } from '@atlaskit/primitives';
9
9
  import { useHasCustomTheme } from '../themed/has-custom-theme-context';
10
10
  import { LogoRenderer } from './logo-renderer';
11
11
  const anchorStyles = {
12
- root: "_2rkoiti9 _1e0c1txw _4cvr1h6o _4t3izwfg",
13
- customLogoBorderRadius: "_2rko1l7b",
12
+ root: "_2rkosqtm _1e0c1txw _4cvr1h6o _4t3izwfg",
13
+ customLogoBorderRadius: "_2rkosqtm",
14
14
  newMargin: "_ahbq1b66",
15
15
  newInteractionStates: "_irr3166n _1di61wwy",
16
16
  newInteractionStatesCustomTheming: "_irr31rps _1di6yhlj"
@@ -1,6 +1,5 @@
1
1
 
2
- ._2rko1l7b{border-radius:3px}
3
- ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
2
+ ._2rkosqtm{border-radius:var(--ds-border-radius-100,3px)}
4
3
  ._18zr1b66{padding-inline:var(--ds-space-050,4px)}
5
4
  ._18zru2gc{padding-inline:var(--ds-space-100,8px)}._18m915vq{overflow-y:hidden}
6
5
  ._1e0c1txw{display:flex}
@@ -9,8 +9,8 @@ import { Anchor } from '@atlaskit/primitives';
9
9
  import { useHasCustomTheme } from '../themed/has-custom-theme-context';
10
10
  import { LogoRenderer } from './logo-renderer';
11
11
  var anchorStyles = {
12
- root: "_2rkoiti9 _1e0c1txw _4cvr1h6o _4t3izwfg",
13
- customLogoBorderRadius: "_2rko1l7b",
12
+ root: "_2rkosqtm _1e0c1txw _4cvr1h6o _4t3izwfg",
13
+ customLogoBorderRadius: "_2rkosqtm",
14
14
  newMargin: "_ahbq1b66",
15
15
  newInteractionStates: "_irr3166n _1di61wwy",
16
16
  newInteractionStatesCustomTheming: "_irr31rps _1di6yhlj"
@@ -7,7 +7,7 @@ import type { LogoProps } from '@atlaskit/logo';
7
7
  import type { IconProps as TempIconProps, LogoProps as TempLogoProps } from '@atlaskit/temp-nav-app-icons/types';
8
8
  export declare const themedLogoIcon = "--ds-top-bar-logo-icon";
9
9
  export declare const themedLogoText = "--ds-top-bar-logo-text";
10
- export declare function LogoRenderer({ logoOrIcon, shouldUseNewLogoDesign }: React.ComponentProps<typeof LogoRendererNoMemo>): JSX.Element;
10
+ export declare function LogoRenderer({ logoOrIcon, shouldUseNewLogoDesign, }: React.ComponentProps<typeof LogoRendererNoMemo>): JSX.Element;
11
11
  declare function LogoRendererNoMemo({ logoOrIcon: LogoOrIcon, shouldUseNewLogoDesign, }: {
12
12
  logoOrIcon: ((props: LogoProps) => JSX.Element) | ((props: TempLogoProps) => JSX.Element) | ((props: TempIconProps) => JSX.Element);
13
13
  shouldUseNewLogoDesign?: boolean;
@@ -7,7 +7,7 @@ import type { LogoProps } from '@atlaskit/logo';
7
7
  import type { IconProps as TempIconProps, LogoProps as TempLogoProps } from '@atlaskit/temp-nav-app-icons/types';
8
8
  export declare const themedLogoIcon = "--ds-top-bar-logo-icon";
9
9
  export declare const themedLogoText = "--ds-top-bar-logo-text";
10
- export declare function LogoRenderer({ logoOrIcon, shouldUseNewLogoDesign }: React.ComponentProps<typeof LogoRendererNoMemo>): JSX.Element;
10
+ export declare function LogoRenderer({ logoOrIcon, shouldUseNewLogoDesign, }: React.ComponentProps<typeof LogoRendererNoMemo>): JSX.Element;
11
11
  declare function LogoRendererNoMemo({ logoOrIcon: LogoOrIcon, shouldUseNewLogoDesign, }: {
12
12
  logoOrIcon: ((props: LogoProps) => JSX.Element) | ((props: TempLogoProps) => JSX.Element) | ((props: TempIconProps) => JSX.Element);
13
13
  shouldUseNewLogoDesign?: boolean;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+
3
+ import { md } from '@atlaskit/docs';
4
+ import Link from '@atlaskit/link';
5
+ import SectionMessage from '@atlaskit/section-message';
6
+
7
+ export default md`
8
+ ${(
9
+ <SectionMessage appearance="information">
10
+ This component is documented on{' '}
11
+ <Link href="https://atlassian.design/components/navigation-system">atlassian.design</Link>
12
+ </SectionMessage>
13
+ )}
14
+ `;
@@ -239,7 +239,7 @@ export default function ConfluenceMockExample({}: {}) {
239
239
  <Text as="p">
240
240
  The Atlassian Design System provides a complete set of UI components, patterns,
241
241
  and guidelines for creating consistent and beautiful user experiences across
242
- Atlassian products.
242
+ Atlassian apps.
243
243
  </Text>
244
244
  <Text as="p">
245
245
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi labore corporis
@@ -19,7 +19,7 @@ const styles = cssMap({
19
19
  root: {
20
20
  width: '300px',
21
21
  borderColor: token('color.border.accent.gray'),
22
- borderWidth: '1px',
22
+ borderWidth: token('border.width'),
23
23
  borderStyle: 'solid',
24
24
  },
25
25
  });
@@ -23,7 +23,7 @@ const styles = cssMap({
23
23
  width: '300px',
24
24
  },
25
25
  blackBorder: {
26
- borderWidth: '1px',
26
+ borderWidth: token('border.width'),
27
27
  borderStyle: 'solid',
28
28
  borderColor: 'black',
29
29
  borderRadius: token('border.radius.100', '3px'),
@@ -41,7 +41,9 @@ import { WithResponsiveViewport } from './utils/example-utils';
41
41
  import { MockRoot } from './utils/mock-root';
42
42
  import { MockSearch } from './utils/mock-search';
43
43
 
44
- const connieCustomLogo = <AppLogo href="" icon={ConfluenceIcon} name="Confluence" label="Home page" />;
44
+ const connieCustomLogo = (
45
+ <AppLogo href="" icon={ConfluenceIcon} name="Confluence" label="Home page" />
46
+ );
45
47
  // Stress test nav responsive behaviour with a wide logo
46
48
  const wideCustomLogo = (
47
49
  <CustomLogo
@@ -66,12 +66,12 @@ const TopNavigation = ({ customTheme }: { customTheme?: CustomTheme }) => {
66
66
  onClick={toggleIsAppSwitcherSelected}
67
67
  isSelected={isAppSwitcherSelected}
68
68
  />
69
- <AppLogo
70
- href="http://www.atlassian.design"
71
- icon={ConfluenceIcon}
72
- name="Confluence"
73
- label="Home page"
74
- />
69
+ <AppLogo
70
+ href="http://www.atlassian.design"
71
+ icon={ConfluenceIcon}
72
+ name="Confluence"
73
+ label="Home page"
74
+ />
75
75
  </TopNavStart>
76
76
  <TopNavMiddle>
77
77
  <MockSearch />
@@ -46,12 +46,12 @@ export const TopNavigationExample = () => (
46
46
  <TopNavStart>
47
47
  <SideNavToggleButton collapseLabel="Collapse sidebar" expandLabel="Expand sidebar" />
48
48
  <AppSwitcher label="App switcher" onClick={() => alert('app switcher')} />
49
- <AppLogo
50
- href="http://www.atlassian.design"
51
- icon={ConfluenceIcon}
52
- name="Confluence"
53
- label="Home page"
54
- />
49
+ <AppLogo
50
+ href="http://www.atlassian.design"
51
+ icon={ConfluenceIcon}
52
+ name="Confluence"
53
+ label="Home page"
54
+ />
55
55
  </TopNavStart>
56
56
  <TopNavMiddle>
57
57
  <Search onClick={() => alert('mobile search')} label="Search" />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "0.176.0",
4
- "description": "The latest navigation system for Atlassian products.",
3
+ "version": "0.176.2",
4
+ "description": "The latest navigation system for Atlassian apps.",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
6
6
  "author": "Atlassian Pty Ltd",
7
7
  "publishConfig": {
@@ -116,7 +116,7 @@
116
116
  "@atlaskit/button": "^23.3.0",
117
117
  "@atlaskit/css": "^0.12.0",
118
118
  "@atlaskit/ds-lib": "^5.0.0",
119
- "@atlaskit/icon": "^27.8.0",
119
+ "@atlaskit/icon": "^27.9.0",
120
120
  "@atlaskit/layering": "^3.0.0",
121
121
  "@atlaskit/logo": "^19.6.0",
122
122
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -125,7 +125,7 @@
125
125
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
126
126
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
127
127
  "@atlaskit/primitives": "^14.11.0",
128
- "@atlaskit/tokens": "^5.6.0",
128
+ "@atlaskit/tokens": "^6.0.0",
129
129
  "@atlaskit/tooltip": "^20.4.0",
130
130
  "@atlaskit/visually-hidden": "^3.0.0",
131
131
  "@babel/runtime": "^7.0.0",
@@ -142,7 +142,7 @@
142
142
  "@af/integration-testing": "workspace:^",
143
143
  "@af/react-unit-testing": "workspace:^",
144
144
  "@af/visual-regression": "workspace:^",
145
- "@atlaskit/app-provider": "^2.3.0",
145
+ "@atlaskit/app-provider": "^3.0.0",
146
146
  "@atlaskit/badge": "^18.1.0",
147
147
  "@atlaskit/banner": "^14.0.0",
148
148
  "@atlaskit/breadcrumbs": "^15.2.0",
@@ -157,12 +157,12 @@
157
157
  "@atlaskit/page-layout": "^4.2.0",
158
158
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
159
159
  "@atlaskit/select": "^21.2.0",
160
- "@atlaskit/skeleton": "^2.0.0",
160
+ "@atlaskit/skeleton": "^2.1.0",
161
161
  "@atlaskit/temp-nav-app-icons": "^0.9.0",
162
162
  "@atlaskit/textfield": "^8.0.0",
163
163
  "@atlassian/feature-flags-test-utils": "^0.3.0",
164
164
  "@atlassian/gemini": "^1.19.0",
165
- "@atlassian/search-dialog": "^9.5.0",
165
+ "@atlassian/search-dialog": "^9.6.0",
166
166
  "@axe-core/playwright": "^4.8.0",
167
167
  "@testing-library/react": "^13.4.0",
168
168
  "@testing-library/react-hooks": "^8.0.1",
@@ -129,7 +129,7 @@ export const AppLogo = ({
129
129
  /**
130
130
  * The icon to render.
131
131
  */
132
- icon: ((props: LogoProps) => JSX.Element);
132
+ icon: (props: LogoProps) => JSX.Element;
133
133
  /**
134
134
  * Handler called on click.
135
135
  */
@@ -25,10 +25,10 @@ const anchorStyles = cssMap({
25
25
  display: 'flex',
26
26
  alignItems: 'center',
27
27
  height: '32px',
28
- borderRadius: token('border.radius.100'),
28
+ borderRadius: token('border.radius.100', '3px'),
29
29
  },
30
30
  customLogoBorderRadius: {
31
- borderRadius: '3px',
31
+ borderRadius: token('border.radius.100', '3px'),
32
32
  },
33
33
  newMargin: {
34
34
  // Additional margin is added to the left of the interactive element, to create visual alignment
@@ -18,7 +18,10 @@ import { useHasCustomTheme } from '../themed/has-custom-theme-context';
18
18
  export const themedLogoIcon = '--ds-top-bar-logo-icon';
19
19
  export const themedLogoText = '--ds-top-bar-logo-text';
20
20
 
21
- export function LogoRenderer({ logoOrIcon, shouldUseNewLogoDesign }: React.ComponentProps<typeof LogoRendererNoMemo>) {
21
+ export function LogoRenderer({
22
+ logoOrIcon,
23
+ shouldUseNewLogoDesign,
24
+ }: React.ComponentProps<typeof LogoRendererNoMemo>) {
22
25
  return fg('jiv-20710-fix-nav-rerender') ? (
23
26
  <LogoRendererMemo logoOrIcon={logoOrIcon} shouldUseNewLogoDesign={shouldUseNewLogoDesign} />
24
27
  ) : (
@@ -52,5 +55,12 @@ function LogoRendererNoMemo({
52
55
  );
53
56
  }
54
57
 
55
- return <LogoOrIcon size="small" shouldUseNewLogoDesign={shouldUseNewLogoDesign} label="" appearance="brand" />;
58
+ return (
59
+ <LogoOrIcon
60
+ size="small"
61
+ shouldUseNewLogoDesign={shouldUseNewLogoDesign}
62
+ label=""
63
+ appearance="brand"
64
+ />
65
+ );
56
66
  }
package/tsconfig.json CHANGED
@@ -1,15 +1,20 @@
1
1
  {
2
- "extends": "../../../tsconfig.json",
3
- "include": [
4
- "./src/**/*.ts",
5
- "./src/**/*.tsx",
6
- "./docs/**/*.ts",
7
- "./docs/**/*.tsx",
8
- "./examples/**/*.ts",
9
- "./examples/**/*.tsx",
10
- "./example-helpers/**/*.ts",
11
- "./example-helpers/**/*.tsx"
12
- ],
13
- "compilerOptions": {
14
- }
2
+ "extends": "../../../tsconfig.json",
3
+ "include": [
4
+ "./src/**/*.ts",
5
+ "./src/**/*.tsx",
6
+ "./docs/**/*.ts",
7
+ "./docs/**/*.tsx",
8
+ "./examples/**/*.ts",
9
+ "./examples/**/*.tsx",
10
+ "./example-helpers/**/*.ts",
11
+ "./example-helpers/**/*.tsx",
12
+ "**/stories.ts",
13
+ "**/stories.tsx",
14
+ "**/stories/*.ts",
15
+ "**/stories/*.tsx",
16
+ "**/stories/**/*.ts",
17
+ "**/stories/**/*.tsx"
18
+ ],
19
+ "compilerOptions": {}
15
20
  }