@servicetitan/navigation 4.0.0 → 4.1.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.
Files changed (127) hide show
  1. package/dist/components/header-navigation/header-navigation-content.d.ts +0 -7
  2. package/dist/components/header-navigation/header-navigation-content.d.ts.map +1 -1
  3. package/dist/components/header-navigation/header-navigation-content.js +6 -7
  4. package/dist/components/header-navigation/header-navigation-content.js.map +1 -1
  5. package/dist/components/header-navigation/header-navigation-extra.stories.d.ts +1 -2
  6. package/dist/components/header-navigation/header-navigation-extra.stories.d.ts.map +1 -1
  7. package/dist/components/header-navigation/header-navigation-extra.stories.js +6 -6
  8. package/dist/components/header-navigation/header-navigation-extra.stories.js.map +1 -1
  9. package/dist/components/header-navigation/header-navigation-links.d.ts +2 -31
  10. package/dist/components/header-navigation/header-navigation-links.d.ts.map +1 -1
  11. package/dist/components/header-navigation/header-navigation-links.js +7 -10
  12. package/dist/components/header-navigation/header-navigation-links.js.map +1 -1
  13. package/dist/components/header-navigation/header-navigation-stacked.stories.d.ts.map +1 -1
  14. package/dist/components/header-navigation/header-navigation-stacked.stories.js +6 -5
  15. package/dist/components/header-navigation/header-navigation-stacked.stories.js.map +1 -1
  16. package/dist/components/header-navigation/header-navigation.d.ts +1 -28
  17. package/dist/components/header-navigation/header-navigation.d.ts.map +1 -1
  18. package/dist/components/header-navigation/header-navigation.js +6 -21
  19. package/dist/components/header-navigation/header-navigation.js.map +1 -1
  20. package/dist/components/header-navigation/header-navigation.module.less +2 -84
  21. package/dist/components/header-navigation/header-navigation.stories.d.ts.map +1 -1
  22. package/dist/components/header-navigation/header-navigation.stories.js +6 -5
  23. package/dist/components/header-navigation/header-navigation.stories.js.map +1 -1
  24. package/dist/components/header-navigation/index.d.ts +0 -1
  25. package/dist/components/header-navigation/index.d.ts.map +1 -1
  26. package/dist/components/header-navigation/index.js +0 -1
  27. package/dist/components/header-navigation/index.js.map +1 -1
  28. package/dist/components/layout.stories.js +2 -2
  29. package/dist/components/layout.stories.js.map +1 -1
  30. package/dist/components/left-navigation/header-navigation-tiny-links.d.ts +16 -0
  31. package/dist/components/left-navigation/header-navigation-tiny-links.d.ts.map +1 -0
  32. package/dist/components/left-navigation/header-navigation-tiny-links.js +43 -0
  33. package/dist/components/left-navigation/header-navigation-tiny-links.js.map +1 -0
  34. package/dist/components/left-navigation/header-navigation-tiny.d.ts +23 -0
  35. package/dist/components/left-navigation/header-navigation-tiny.d.ts.map +1 -0
  36. package/dist/components/left-navigation/header-navigation-tiny.js +7 -0
  37. package/dist/components/left-navigation/header-navigation-tiny.js.map +1 -0
  38. package/dist/components/left-navigation/header-navigation-tiny.module.less +109 -0
  39. package/dist/components/{header-navigation → left-navigation}/header-navigation-tiny.stories.d.ts +2 -2
  40. package/dist/components/left-navigation/header-navigation-tiny.stories.d.ts.map +1 -0
  41. package/dist/components/left-navigation/header-navigation-tiny.stories.js +30 -0
  42. package/dist/components/left-navigation/header-navigation-tiny.stories.js.map +1 -0
  43. package/dist/components/left-navigation/index.d.ts +3 -0
  44. package/dist/components/left-navigation/index.d.ts.map +1 -0
  45. package/dist/components/left-navigation/index.js +3 -0
  46. package/dist/components/left-navigation/index.js.map +1 -0
  47. package/dist/components/{side-navigation → left-navigation}/side-navigation.d.ts.map +1 -1
  48. package/dist/components/{side-navigation → left-navigation}/side-navigation.js +1 -1
  49. package/dist/components/{side-navigation → left-navigation}/side-navigation.js.map +1 -1
  50. package/dist/components/{side-navigation → left-navigation}/side-navigation.module.less +3 -3
  51. package/dist/components/{side-navigation → left-navigation}/side-navigation.stories.d.ts.map +1 -1
  52. package/dist/components/{side-navigation → left-navigation}/side-navigation.stories.js.map +1 -1
  53. package/dist/components/links.d.ts +5 -0
  54. package/dist/components/links.d.ts.map +1 -0
  55. package/dist/components/links.js +14 -0
  56. package/dist/components/links.js.map +1 -0
  57. package/dist/components/profile-dropdown/profile-dropdown-stacked.stories.d.ts.map +1 -1
  58. package/dist/components/profile-dropdown/profile-dropdown-stacked.stories.js +2 -2
  59. package/dist/components/profile-dropdown/profile-dropdown-stacked.stories.js.map +1 -1
  60. package/dist/components/profile-dropdown/profile-dropdown-tiny.stories.js +3 -3
  61. package/dist/components/profile-dropdown/profile-dropdown-tiny.stories.js.map +1 -1
  62. package/dist/components/profile-dropdown/profile-dropdown.d.ts.map +1 -1
  63. package/dist/components/profile-dropdown/profile-dropdown.js +3 -3
  64. package/dist/components/profile-dropdown/profile-dropdown.js.map +1 -1
  65. package/dist/components/profile-dropdown/profile-dropdown.stories.js +2 -2
  66. package/dist/components/profile-dropdown/profile-dropdown.stories.js.map +1 -1
  67. package/dist/index.d.ts +2 -1
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +2 -1
  70. package/dist/index.js.map +1 -1
  71. package/dist/test/data-stories.module.less +5 -3
  72. package/dist/test/data.stories.d.ts.map +1 -1
  73. package/dist/test/data.stories.js +3 -2
  74. package/dist/test/data.stories.js.map +1 -1
  75. package/dist/utils/navigation-context.d.ts +2 -5
  76. package/dist/utils/navigation-context.d.ts.map +1 -1
  77. package/dist/utils/navigation-context.js +2 -4
  78. package/dist/utils/navigation-context.js.map +1 -1
  79. package/dist/utils/navigation.d.ts +42 -0
  80. package/dist/utils/navigation.d.ts.map +1 -1
  81. package/package.json +4 -4
  82. package/src/components/header-navigation/header-navigation-content.tsx +10 -38
  83. package/src/components/header-navigation/header-navigation-extra.stories.tsx +6 -18
  84. package/src/components/header-navigation/header-navigation-links.tsx +5 -55
  85. package/src/components/header-navigation/header-navigation-stacked.stories.tsx +3 -5
  86. package/src/components/header-navigation/header-navigation.module.less +2 -84
  87. package/src/components/header-navigation/header-navigation.module.less.d.ts +0 -3
  88. package/src/components/header-navigation/header-navigation.stories.tsx +3 -5
  89. package/src/components/header-navigation/header-navigation.tsx +7 -120
  90. package/src/components/header-navigation/index.ts +0 -1
  91. package/src/components/layout.stories.tsx +2 -2
  92. package/src/components/left-navigation/header-navigation-tiny-links.tsx +110 -0
  93. package/src/components/left-navigation/header-navigation-tiny.module.less +109 -0
  94. package/src/components/left-navigation/header-navigation-tiny.module.less.d.ts +14 -0
  95. package/src/components/{header-navigation → left-navigation}/header-navigation-tiny.stories.tsx +4 -7
  96. package/src/components/left-navigation/header-navigation-tiny.tsx +65 -0
  97. package/src/components/left-navigation/index.ts +2 -0
  98. package/src/components/{side-navigation → left-navigation}/side-navigation.module.less +3 -3
  99. package/src/components/{side-navigation → left-navigation}/side-navigation.module.less.d.ts +1 -0
  100. package/src/components/{side-navigation → left-navigation}/side-navigation.tsx +2 -2
  101. package/src/components/links.tsx +31 -0
  102. package/src/components/profile-dropdown/profile-dropdown-stacked.stories.tsx +2 -4
  103. package/src/components/profile-dropdown/profile-dropdown-tiny.stories.tsx +3 -3
  104. package/src/components/profile-dropdown/profile-dropdown.stories.tsx +2 -2
  105. package/src/components/profile-dropdown/profile-dropdown.tsx +6 -3
  106. package/src/index.ts +2 -1
  107. package/src/test/data-stories.module.less +5 -3
  108. package/src/test/data.stories.tsx +5 -2
  109. package/src/utils/navigation-context.tsx +3 -8
  110. package/src/utils/navigation.ts +47 -0
  111. package/dist/components/header-navigation/header-navigation-tiny.stories.d.ts.map +0 -1
  112. package/dist/components/header-navigation/header-navigation-tiny.stories.js +0 -29
  113. package/dist/components/header-navigation/header-navigation-tiny.stories.js.map +0 -1
  114. package/dist/components/side-navigation/icons.d.ts +0 -7
  115. package/dist/components/side-navigation/icons.d.ts.map +0 -1
  116. package/dist/components/side-navigation/icons.js +0 -5
  117. package/dist/components/side-navigation/icons.js.map +0 -1
  118. package/dist/components/side-navigation/index.d.ts +0 -2
  119. package/dist/components/side-navigation/index.d.ts.map +0 -1
  120. package/dist/components/side-navigation/index.js +0 -2
  121. package/dist/components/side-navigation/index.js.map +0 -1
  122. package/src/components/side-navigation/icons.tsx +0 -74
  123. package/src/components/side-navigation/index.ts +0 -1
  124. /package/dist/components/{side-navigation → left-navigation}/side-navigation.d.ts +0 -0
  125. /package/dist/components/{side-navigation → left-navigation}/side-navigation.stories.d.ts +0 -0
  126. /package/dist/components/{side-navigation → left-navigation}/side-navigation.stories.js +0 -0
  127. /package/src/components/{side-navigation → left-navigation}/side-navigation.stories.tsx +0 -0
@@ -0,0 +1,65 @@
1
+ import classNames from 'classnames';
2
+ import { FC, ReactElement, ReactNode } from 'react';
3
+ import * as Styles from './header-navigation-tiny.module.less';
4
+
5
+ export interface HeaderNavigationTinyProps {
6
+ /** container class name */
7
+ className?: string;
8
+ /** extra navigation */
9
+ right?: ReactNode;
10
+ /** extra navigation container class name */
11
+ rightClassName?: string;
12
+ /** container id */
13
+ id?: string;
14
+ /** left content (usually used for logo) */
15
+ left?: ReactElement;
16
+ /** left container class name */
17
+ leftClassName?: string;
18
+ /** center content */
19
+ center?: ReactElement;
20
+ /** center container class name */
21
+ centerClassName?: string;
22
+ /** minimal width for navigation bar */
23
+ minWidth?: number;
24
+ }
25
+
26
+ export const HeaderNavigationTiny: FC<HeaderNavigationTinyProps> = ({
27
+ className,
28
+ id,
29
+ left,
30
+ leftClassName,
31
+ right,
32
+ rightClassName,
33
+ center,
34
+ centerClassName,
35
+ minWidth = 800,
36
+ }) => {
37
+ return (
38
+ <div
39
+ className={classNames(Styles.headerTiny, className)}
40
+ style={{ minWidth: `${minWidth}px` }}
41
+ id={id}
42
+ data-cy="header-navigation"
43
+ >
44
+ <div className={classNames(Styles.heTopLeft, leftClassName)} data-cy="navigation-left">
45
+ {left}
46
+ </div>
47
+ <div
48
+ className={classNames(Styles.heTopCenter, centerClassName)}
49
+ data-cy="navigation-center"
50
+ >
51
+ {center}
52
+ </div>
53
+ <div
54
+ className={classNames(
55
+ 'd-f flex-row justify-content-end align-items-center',
56
+ Styles.heTopRight,
57
+ rightClassName
58
+ )}
59
+ data-cy="navigation-right"
60
+ >
61
+ {right}
62
+ </div>
63
+ </div>
64
+ );
65
+ };
@@ -0,0 +1,2 @@
1
+ export * from './header-navigation-tiny';
2
+ export * from './side-navigation';
@@ -111,7 +111,7 @@
111
111
  }
112
112
  }
113
113
 
114
- .navigation-icon {
114
+ .navigation-icon[data-anv][data-anv] {
115
115
  height: 24px;
116
116
  width: 24px;
117
117
  color: inherit;
@@ -146,13 +146,13 @@
146
146
  background-color: @bg-color-hover;
147
147
  }
148
148
 
149
- .options-icon {
149
+ .options-icon-wrapper {
150
150
  height: 24px;
151
151
  width: 24px;
152
152
  padding-left: @spacing-1;
153
153
  padding-right: @spacing-1;
154
154
 
155
- & > span > svg {
155
+ .options-icon[data-anv][data-anv] > svg {
156
156
  height: 24px;
157
157
  width: 24px;
158
158
  color: @text-color;
@@ -8,6 +8,7 @@ export const navigationItemCounter: string;
8
8
  export const navigationItemIconState: string;
9
9
  export const navigationItemText: string;
10
10
  export const optionsIcon: string;
11
+ export const optionsIconWrapper: string;
11
12
  export const optionsItem: string;
12
13
  export const optionsItemText: string;
13
14
  export const sideNav: string;
@@ -160,8 +160,8 @@ export const SideNavigationOptionsToggle: FC<{
160
160
  className={classNames(Styles.optionsItem)}
161
161
  onClick={() => onExpandedChange(!expanded)}
162
162
  >
163
- <div className={Styles.optionsIcon}>
164
- <Icon svg={expanded ? SvgCollapse : SvgExpand} />
163
+ <div className={Styles.optionsIconWrapper}>
164
+ <Icon className={Styles.optionsIcon} svg={expanded ? SvgCollapse : SvgExpand} />
165
165
  </div>
166
166
 
167
167
  {!!expanded && <span className={Styles.optionsItemText}>Collapse Menu</span>}
@@ -0,0 +1,31 @@
1
+ import { FC, useContext } from 'react';
2
+ import { HeaderNavigationLinkProps, HeaderNavigationTriggerProps } from '../utils/navigation';
3
+ import { NavigationLegacyContext } from '../utils/navigation-context';
4
+ import {
5
+ HeaderNavigationLink as HeaderNavigationLinkLegacy,
6
+ HeaderNavigationTrigger as HeaderNavigationTriggerLegacy,
7
+ } from './header-navigation/header-navigation-links';
8
+ import {
9
+ HeaderNavigationLink as HeaderNavigationLinkModern,
10
+ HeaderNavigationTrigger as HeaderNavigationTriggerModern,
11
+ } from './left-navigation/header-navigation-tiny-links';
12
+
13
+ export const HeaderNavigationLink: FC<HeaderNavigationLinkProps> = props => {
14
+ const isLegacy = useContext(NavigationLegacyContext);
15
+
16
+ return isLegacy ? (
17
+ <HeaderNavigationLinkLegacy {...props} />
18
+ ) : (
19
+ <HeaderNavigationLinkModern {...props} />
20
+ );
21
+ };
22
+
23
+ export const HeaderNavigationTrigger: FC<HeaderNavigationTriggerProps> = props => {
24
+ const isLegacy = useContext(NavigationLegacyContext);
25
+
26
+ return isLegacy ? (
27
+ <HeaderNavigationTriggerLegacy {...props} />
28
+ ) : (
29
+ <HeaderNavigationTriggerModern {...props} />
30
+ );
31
+ };
@@ -1,11 +1,9 @@
1
- import { NavLinkMock, withAnvil, withMemoryRouter } from '../../test/data.stories';
1
+ import { withAnvil, withMemoryRouter } from '../../test/data.stories';
2
2
  import { HeaderNavigationStacked } from '../header-navigation';
3
3
  export * from './profile-dropdown.stories';
4
4
  import { ProfileDropdown } from './profile-dropdown';
5
5
 
6
- const withHeaderNavigationStacked = (Story: any) => (
7
- <HeaderNavigationStacked navigationComponent={NavLinkMock} right={<Story />} />
8
- );
6
+ const withHeaderNavigationStacked = (Story: any) => <HeaderNavigationStacked right={<Story />} />;
9
7
 
10
8
  export default {
11
9
  title: 'Navigation/ProfileDropdownStacked',
@@ -1,10 +1,10 @@
1
- import { NavLinkMock, withAnvil, withMemoryRouter } from '../../test/data.stories';
2
- import { HeaderNavigationTiny } from '../header-navigation';
1
+ import { withAnvil, withMemoryRouter } from '../../test/data.stories';
2
+ import { HeaderNavigationTiny } from '../left-navigation';
3
3
  export * from './profile-dropdown.stories';
4
4
  import { ProfileDropdown } from './profile-dropdown';
5
5
 
6
6
  const withHeaderNavigationTiny = (Story: any) => (
7
- <HeaderNavigationTiny className="border" navigationComponent={NavLinkMock} right={<Story />} />
7
+ <HeaderNavigationTiny className="border" right={<Story />} />
8
8
  );
9
9
 
10
10
  export default {
@@ -1,10 +1,10 @@
1
1
  import { Button } from '@servicetitan/design-system';
2
- import { NavLinkMock, withAnvil, withMemoryRouter } from '../../test/data.stories';
2
+ import { withAnvil, withMemoryRouter } from '../../test/data.stories';
3
3
  import { HeaderNavigation } from '../header-navigation';
4
4
  import { ProfileDropdown } from './profile-dropdown';
5
5
 
6
6
  const withHeaderNavigation = (Story: any) => (
7
- <HeaderNavigation navigationComponent={NavLinkMock}>
7
+ <HeaderNavigation>
8
8
  <Story />
9
9
  </HeaderNavigation>
10
10
  );
@@ -18,7 +18,10 @@ import {
18
18
  useState,
19
19
  } from 'react';
20
20
 
21
- import { NavigationContext } from '../../utils/navigation-context';
21
+ import {
22
+ NavigationComponentContext,
23
+ NavigationLegacyContext,
24
+ } from '../../utils/navigation-context';
22
25
  import { CounterTag, CounterTagPropsType } from '../counter-tag';
23
26
  import * as Styles from './profile-dropdown.module.less';
24
27
  import { ProfileLogo } from './profile-icon';
@@ -46,7 +49,7 @@ const ProfileDropdownTrigger: FC<ProfileDropdownTriggerProps> = ({
46
49
  }) => {
47
50
  const [avatarSource, setAvatarSource] = useState(imageSrc ?? '');
48
51
  const [avatarSourceError, setAvatarSourceError] = useState(false);
49
- const { isLegacy } = useContext(NavigationContext);
52
+ const isLegacy = useContext(NavigationLegacyContext);
50
53
 
51
54
  useEffect(() => {
52
55
  const src = imageSrc ?? '';
@@ -208,7 +211,7 @@ export const ProfileDropdownLink: FC<ProfileDropdownLinkProps> = ({
208
211
  onClick,
209
212
  ...rest
210
213
  }: ProfileDropdownLinkProps) => {
211
- const { NavigationComponent } = useContext(NavigationContext);
214
+ const NavigationComponent = useContext(NavigationComponentContext);
212
215
 
213
216
  const clickHandler = (e: MouseEvent<any>) => {
214
217
  e.preventDefault();
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ export * from './components/logo/logo-company-title';
4
4
  export * from './components/logo/logo-titan';
5
5
  export * from './components/logo/logo-titan-text';
6
6
  export * from './components/counter-tag';
7
- export * from './components/side-navigation';
7
+ export * from './components/left-navigation';
8
+ export * from './components/links';
8
9
  export * from './utils/navigation';
9
10
  export * from './utils/with-tooltip';
@@ -1,6 +1,8 @@
1
- // temp fix to reset incorrect coloring from anvil2
1
+ // emulate temp anvil2 hotfix from monolith
2
2
  .fix-icons {
3
- :global(span[data-anv='icon'] > svg > path) {
4
- fill: inherit !important;
3
+ [data-anv][data-anv] {
4
+ all: revert-layer;
5
+ line-height: revert-layer;
6
+ -webkit-font-smoothing: auto;
5
7
  }
6
8
  }
@@ -37,8 +37,9 @@ import { forwardRef, useState } from 'react';
37
37
  // needed only for storybook and added in root dependencies
38
38
  // eslint-disable-next-line import/no-extraneous-dependencies
39
39
  import { MemoryRouter, useHistory, useLocation } from 'react-router-dom';
40
- import { HeaderNavigationTrigger } from '../components/header-navigation';
40
+ import { HeaderNavigationTrigger } from '../components/links';
41
41
  import { HeaderNavigationItemData, NavLinkComponentProps } from '../utils/navigation';
42
+ import { NavigationComponentContext } from '../utils/navigation-context';
42
43
  import * as Styles from './data-stories.module.less';
43
44
 
44
45
  export const NavLinkMock = forwardRef<any, NavLinkComponentProps>(
@@ -69,7 +70,9 @@ export const NavLinkMock = forwardRef<any, NavLinkComponentProps>(
69
70
 
70
71
  export const withMemoryRouter = (Story: any) => (
71
72
  <MemoryRouter>
72
- <Story />
73
+ <NavigationComponentContext.Provider value={NavLinkMock}>
74
+ <Story />
75
+ </NavigationComponentContext.Provider>
73
76
  </MemoryRouter>
74
77
  );
75
78
 
@@ -8,11 +8,6 @@ export const DefaultNavLinkComponent: FC<NavLinkComponentProps> = ({
8
8
  ...props
9
9
  }) => <a {...props}>{children}</a>;
10
10
 
11
- export interface NavigationContextType {
12
- NavigationComponent: FC<NavLinkComponentProps>;
13
- isLegacy: boolean;
14
- }
15
- export const NavigationContext = createContext<NavigationContextType>({
16
- NavigationComponent: DefaultNavLinkComponent,
17
- isLegacy: false,
18
- });
11
+ export const NavigationComponentContext =
12
+ createContext<FC<NavLinkComponentProps>>(DefaultNavLinkComponent);
13
+ export const NavigationLegacyContext = createContext(false);
@@ -57,3 +57,50 @@ export interface NavLinkComponentPropsStrict {
57
57
  export interface NavLinkComponentProps extends NavLinkComponentPropsStrict {
58
58
  [key: string]: any;
59
59
  }
60
+
61
+ export interface HeaderNavigationTriggerPropsStrict {
62
+ /** unique identifier */
63
+ id: string;
64
+ /** tooltip text */
65
+ tooltip?: string;
66
+ /** item description */
67
+ hint?: string;
68
+ /** container class name */
69
+ className?: string;
70
+ /** isActive */
71
+ isActive?: boolean;
72
+ /** counter shown for item */
73
+ counter?: CounterTagPropsType;
74
+ /** counter component class name */
75
+ counterClassName?: string;
76
+ /** icon component class name */
77
+ iconClassName?: string;
78
+ /** IconComponent custom icon component */
79
+ iconComponent?: FC;
80
+ /** iconName name of anvil icon */
81
+ iconName?: IconPropsStrict['name'];
82
+ /** svg icon (anvil2) of inactive item */
83
+ icon: IconProps['svg'] | undefined;
84
+ /** svg icon (anvil2) of active item */
85
+ iconActive: IconProps['svg'] | undefined;
86
+ }
87
+
88
+ export interface HeaderNavigationTriggerProps extends HeaderNavigationTriggerPropsStrict {
89
+ /** unstrict props */
90
+ [key: string]: any;
91
+ }
92
+
93
+ export interface HeaderNavigationLinkPropsStrict
94
+ extends Omit<HeaderNavigationTriggerPropsStrict, 'isActive'> {
95
+ /** link href */
96
+ to: string;
97
+ /** isActive */
98
+ isActive?: boolean | ((pathname: string) => boolean);
99
+ /** link html target */
100
+ target?: HTMLAttributeAnchorTarget;
101
+ }
102
+
103
+ export interface HeaderNavigationLinkProps extends HeaderNavigationLinkPropsStrict {
104
+ /** unstrict props */
105
+ [key: string]: any;
106
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-navigation-tiny.stories.d.ts","sourceRoot":"","sources":["../../../src/components/header-navigation/header-navigation-tiny.stories.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;;;;;;;AAcrC,wBAaE;AAEF,eAAO,MAAM,iBAAiB,+CAO7B,CAAC;AAQF,eAAO,MAAM,mBAAmB,+CA6D/B,CAAC;AAEF,eAAO,MAAM,6BAA6B,+CAgEzC,CAAC"}
@@ -1,29 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import SvgSearch from '@servicetitan/anvil2/assets/icons/material/round/search.svg';
3
- import SvgSettingsActive from '@servicetitan/anvil2/assets/icons/st/gnav_settings_active.svg';
4
- import SvgSettings from '@servicetitan/anvil2/assets/icons/st/gnav_settings_inactive.svg';
5
- import SvgRocketActive from '@servicetitan/anvil2/assets/icons/st/gnav_titan_advisor_active.svg';
6
- import SvgRocket from '@servicetitan/anvil2/assets/icons/st/gnav_titan_advisor_inactive.svg';
7
- import { Input, Stack } from '@servicetitan/design-system';
8
- import { Fragment } from 'react';
9
- import { CallsNavigationTrigger, NavLinkMock, SearchIcon, withAnvil, withMemoryRouter, } from '../../test/data.stories';
10
- import { LogoCompanyTitle } from '../logo/logo-company-title';
11
- import { LogoTitan, LogoTitanTitle } from '../logo/logo-titan-text';
12
- import { ProfileDropdown } from '../profile-dropdown/profile-dropdown';
13
- import * as Styles from './header-navigation-stories.module.less';
14
- import { HeaderNavigationLink, HeaderNavigationTiny } from './';
15
- export default {
16
- title: 'Navigation/HeaderNavigationTiny',
17
- component: HeaderNavigationTiny,
18
- parameters: {},
19
- decorators: [
20
- withMemoryRouter,
21
- withAnvil,
22
- (Story) => (_jsx("div", { className: "border", style: { height: '500px' }, children: _jsx(Story, {}) })),
23
- ],
24
- };
25
- export const defaultNavigation = () => (_jsx(HeaderNavigationTiny, { className: "border-bottom", left: _jsx(LogoCompanyTitle, { className: "m-l-1", size: "150" }), leftClassName: "d-f align-items-center", navigationComponent: NavLinkMock }));
26
- const TimeZoneOffset = () => (_jsx("div", { className: "fs-2 ff-default p-r-1", children: _jsx("span", { children: "EST (-9 hrs)" }) }));
27
- export const WithAllMonolithData = () => (_jsx(HeaderNavigationTiny, { className: "border-bottom", left: _jsx(LogoCompanyTitle, { className: "m-l-1", size: "150" }), leftClassName: "d-f align-items-center", navigationComponent: NavLinkMock, right: _jsxs(Fragment, { children: [_jsx(TimeZoneOffset, {}), _jsx(HeaderNavigationLink, { id: "search", to: "https://google.com", target: "_blank", iconComponent: SearchIcon, hint: "Search: for all the questions", tooltip: "Search", icon: SvgSearch, iconActive: SvgSearch }), _jsx(CallsNavigationTrigger, {}), _jsx(HeaderNavigationLink, { id: "titanAdvisor", to: "titanAdvisor", iconName: "rocket", iconClassName: Styles.rocketIcon, icon: SvgRocket, iconActive: SvgRocketActive }), _jsx(HeaderNavigationLink, { id: "settings", to: "settings", target: "_blank", iconName: "settings", "aria-label": "search", hint: "Settings", icon: SvgSettings, iconActive: SvgSettingsActive }), _jsxs(ProfileDropdown, { children: [_jsx(ProfileDropdown.Link, { id: "tasks", to: "https://googgle.com", counter: 10, children: "Task Management" }), _jsx(ProfileDropdown.Divider, {}), _jsxs(ProfileDropdown.Link, { id: "sign-out", to: "https://googgle.com", children: ["Sign Out", ' ', _jsx("span", { className: "c-neutral-100 m-l-half t-truncate", children: "James Bond" })] }), _jsx(ProfileDropdown.Section, { id: "userid", className: "c-neutral-100 fs-1", children: "User ID: 007" })] })] }), center: _jsx(Input, { placeholder: "Search smth", size: "xsmall", className: "w-100" }), centerClassName: "d-f align-items-center" }));
28
- export const WithAllMonolithDataCommercial = () => (_jsx(HeaderNavigationTiny, { className: "border-bottom", left: _jsxs(Stack, { alignItems: "center", children: [_jsx(LogoTitan, { mantleFill: "#2270EE", className: "p-x-half", size: 48 }), _jsx(LogoTitanTitle, { children: "Commercial" })] }), leftClassName: "d-f align-items-center", navigationComponent: NavLinkMock, right: _jsxs(Fragment, { children: [_jsx(TimeZoneOffset, {}), _jsx(HeaderNavigationLink, { id: "search", to: "https://google.com", target: "_blank", iconComponent: SearchIcon, hint: "Search: for all the questions", icon: SvgSearch, iconActive: SvgSearch }), _jsx(CallsNavigationTrigger, {}), _jsx(HeaderNavigationLink, { id: "titanAdvisor", to: "titanAdvisor", iconName: "rocket", iconClassName: Styles.rocketIcon, icon: SvgRocket, iconActive: SvgRocketActive }), _jsx(HeaderNavigationLink, { id: "settings", to: "settings", iconName: "settings", "aria-label": "search", hint: "Settings", icon: SvgSettings, iconActive: SvgSettingsActive }), _jsxs(ProfileDropdown, { children: [_jsx(ProfileDropdown.Link, { id: "tasks", to: "https://googgle.com", counter: 10, children: "Task Management" }), _jsx(ProfileDropdown.Divider, {}), _jsxs(ProfileDropdown.Link, { id: "sign-out", to: "https://googgle.com", children: ["Sign Out", ' ', _jsx("span", { className: "c-neutral-100 m-l-half t-truncate", children: "James Bond" })] }), _jsx(ProfileDropdown.Section, { id: "userid", className: "c-neutral-100 fs-1", children: "User ID: 007" })] })] }), center: _jsx(Input, { placeholder: "Search smth", size: "xsmall", className: "w-100" }), centerClassName: "d-f align-items-center" }));
29
- //# sourceMappingURL=header-navigation-tiny.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header-navigation-tiny.stories.js","sourceRoot":"","sources":["../../../src/components/header-navigation/header-navigation-tiny.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,6DAA6D,CAAC;AACpF,OAAO,iBAAiB,MAAM,+DAA+D,CAAC;AAC9F,OAAO,WAAW,MAAM,iEAAiE,CAAC;AAC1F,OAAO,eAAe,MAAM,oEAAoE,CAAC;AACjG,OAAO,SAAS,MAAM,sEAAsE,CAAC;AAE7F,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAM,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EACH,sBAAsB,EACtB,WAAW,EACX,UAAU,EACV,SAAS,EACT,gBAAgB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE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AC,KAAK,IAAC,WAAW,EAAC,aAAa,EAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,OAAO,GAAG,EAC3E,eAAe,EAAC,wBAAwB,GAC1C,CACL,CAAC"}
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const IconSideOptions: FC<{
3
- expanded?: boolean;
4
- }>;
5
- export declare const IconSideSlim: () => import("react/jsx-runtime").JSX.Element;
6
- export declare const IconSideExpanded: () => import("react/jsx-runtime").JSX.Element;
7
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/side-navigation/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAwBtD,CAAC;AAEF,eAAO,MAAM,YAAY,+CAkBxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAyB5B,CAAC"}
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const IconSideOptions = ({ expanded }) => (_jsxs("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M5 21C4.45 21 3.98 20.8 3.59 20.41C3.2 20.02 3 19.55 3 19V5C3 4.45 3.2 3.98 3.59 3.59C3.98 3.2 4.45 3 5 3H19C19.55 3 20.02 3.2 20.41 3.59C20.8 3.98 21 4.45 21 5V19C21 19.55 20.8 20.02 20.41 20.41C20.02 20.8 19.55 21 19 21H5ZM8 19V5H5V19H8ZM10 19H19V5H10V19Z", fill: "currentColor" }), expanded ? (_jsx("path", { d: "M16.54 14.19C16.71 14.38 16.71 14.66 16.54 14.85L16 15.46C15.9 15.56 15.77 15.62 15.62 15.62C15.48 15.62 15.35 15.56 15.25 15.46L12.46 12.33C12.29 12.14 12.29 11.86 12.46 11.67L15.25 8.54001C15.44 8.33001 15.81 8.33001 16 8.54001L16.54 9.15001C16.71 9.34001 16.71 9.62001 16.54 9.81001L14.58 12L16.54 14.19Z", fill: "currentColor" })) : (_jsx("path", { d: "M16.54 12.33L13.75 15.46C13.65 15.56 13.52 15.62 13.38 15.62C13.23 15.62 13.1 15.56 13 15.46L12.46 14.85C12.29 14.66 12.29 14.38 12.46 14.19L14.41 12L12.46 9.81001C12.29 9.62001 12.29 9.34001 12.46 9.15001L13 8.54001C13.19 8.33001 13.56 8.33001 13.75 8.54001L16.54 11.67C16.71 11.86 16.71 12.14 16.54 12.33Z", fill: "currentColor" }))] }));
3
- export const IconSideSlim = () => (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M3 6.375C3 4.51104 4.51104 3 6.375 3H17.625C19.489 3 21 4.51104 21 6.375V17.625C21 19.489 19.489 21 17.625 21H6.375C4.51104 21 3 19.489 3 17.625V6.375Z", stroke: "currentColor", strokeOpacity: "1", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M7 8L7 16", stroke: "currentColor", strokeOpacity: "1", strokeWidth: "2", strokeLinecap: "round" })] }));
4
- export const IconSideExpanded = () => (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M3 6.375C3 4.51104 4.51104 3 6.375 3H17.625C19.489 3 21 4.51104 21 6.375V17.625C21 19.489 19.489 21 17.625 21H6.375C4.51104 21 3 19.489 3 17.625V6.375Z", stroke: "currentColor", strokeOpacity: "1", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M7 8L7 16", stroke: "currentColor", strokeOpacity: "1", strokeWidth: "2", strokeLinecap: "round" }), _jsx("path", { d: "M11 8V16", stroke: "currentColor", strokeOpacity: "1", strokeWidth: "2", strokeLinecap: "round" })] }));
5
- //# sourceMappingURL=icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/components/side-navigation/icons.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,eAAe,GAA+B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACzE,eACI,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,aAElC,eACI,CAAC,EAAC,mQAAmQ,EACrQ,IAAI,EAAC,cAAc,GACrB,EACD,QAAQ,CAAC,CAAC,CAAC,CACR,eACI,CAAC,EAAC,qTAAqT,EACvT,IAAI,EAAC,cAAc,GACrB,CACL,CAAC,CAAC,CAAC,CACA,eACI,CAAC,EAAC,qTAAqT,EACvT,IAAI,EAAC,cAAc,GACrB,CACL,IACC,CACT,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,CAC9B,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAC1F,eACI,CAAC,EAAC,yJAAyJ,EAC3J,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,GAAG,EACjB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACxB,EACF,eACI,CAAC,EAAC,WAAW,EACb,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,GAAG,EACjB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,GACvB,IACA,CACT,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,CAClC,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAC1F,eACI,CAAC,EAAC,yJAAyJ,EAC3J,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,GAAG,EACjB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACxB,EACF,eACI,CAAC,EAAC,WAAW,EACb,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,GAAG,EACjB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,GACvB,EACF,eACI,CAAC,EAAC,UAAU,EACZ,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,GAAG,EACjB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,GACvB,IACA,CACT,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './side-navigation';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/side-navigation/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './side-navigation';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/side-navigation/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1,74 +0,0 @@
1
- import { FC } from 'react';
2
-
3
- export const IconSideOptions: FC<{ expanded?: boolean }> = ({ expanded }) => (
4
- <svg
5
- width="1em"
6
- height="1em"
7
- viewBox="0 0 24 24"
8
- fill="none"
9
- xmlns="http://www.w3.org/2000/svg"
10
- >
11
- <path
12
- d="M5 21C4.45 21 3.98 20.8 3.59 20.41C3.2 20.02 3 19.55 3 19V5C3 4.45 3.2 3.98 3.59 3.59C3.98 3.2 4.45 3 5 3H19C19.55 3 20.02 3.2 20.41 3.59C20.8 3.98 21 4.45 21 5V19C21 19.55 20.8 20.02 20.41 20.41C20.02 20.8 19.55 21 19 21H5ZM8 19V5H5V19H8ZM10 19H19V5H10V19Z"
13
- fill="currentColor"
14
- />
15
- {expanded ? (
16
- <path
17
- d="M16.54 14.19C16.71 14.38 16.71 14.66 16.54 14.85L16 15.46C15.9 15.56 15.77 15.62 15.62 15.62C15.48 15.62 15.35 15.56 15.25 15.46L12.46 12.33C12.29 12.14 12.29 11.86 12.46 11.67L15.25 8.54001C15.44 8.33001 15.81 8.33001 16 8.54001L16.54 9.15001C16.71 9.34001 16.71 9.62001 16.54 9.81001L14.58 12L16.54 14.19Z"
18
- fill="currentColor"
19
- />
20
- ) : (
21
- <path
22
- d="M16.54 12.33L13.75 15.46C13.65 15.56 13.52 15.62 13.38 15.62C13.23 15.62 13.1 15.56 13 15.46L12.46 14.85C12.29 14.66 12.29 14.38 12.46 14.19L14.41 12L12.46 9.81001C12.29 9.62001 12.29 9.34001 12.46 9.15001L13 8.54001C13.19 8.33001 13.56 8.33001 13.75 8.54001L16.54 11.67C16.71 11.86 16.71 12.14 16.54 12.33Z"
23
- fill="currentColor"
24
- />
25
- )}
26
- </svg>
27
- );
28
-
29
- export const IconSideSlim = () => (
30
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
31
- <path
32
- d="M3 6.375C3 4.51104 4.51104 3 6.375 3H17.625C19.489 3 21 4.51104 21 6.375V17.625C21 19.489 19.489 21 17.625 21H6.375C4.51104 21 3 19.489 3 17.625V6.375Z"
33
- stroke="currentColor"
34
- strokeOpacity="1"
35
- strokeWidth="2"
36
- strokeLinecap="round"
37
- strokeLinejoin="round"
38
- />
39
- <path
40
- d="M7 8L7 16"
41
- stroke="currentColor"
42
- strokeOpacity="1"
43
- strokeWidth="2"
44
- strokeLinecap="round"
45
- />
46
- </svg>
47
- );
48
-
49
- export const IconSideExpanded = () => (
50
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
51
- <path
52
- d="M3 6.375C3 4.51104 4.51104 3 6.375 3H17.625C19.489 3 21 4.51104 21 6.375V17.625C21 19.489 19.489 21 17.625 21H6.375C4.51104 21 3 19.489 3 17.625V6.375Z"
53
- stroke="currentColor"
54
- strokeOpacity="1"
55
- strokeWidth="2"
56
- strokeLinecap="round"
57
- strokeLinejoin="round"
58
- />
59
- <path
60
- d="M7 8L7 16"
61
- stroke="currentColor"
62
- strokeOpacity="1"
63
- strokeWidth="2"
64
- strokeLinecap="round"
65
- />
66
- <path
67
- d="M11 8V16"
68
- stroke="currentColor"
69
- strokeOpacity="1"
70
- strokeWidth="2"
71
- strokeLinecap="round"
72
- />
73
- </svg>
74
- );
@@ -1 +0,0 @@
1
- export * from './side-navigation';