@servicetitan/navigation 4.0.0 → 5.0.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 (160) hide show
  1. package/dist/components/counter-tag.js +1 -1
  2. package/dist/components/counter-tag.js.map +1 -1
  3. package/dist/components/header-navigation/header-navigation-content.d.ts +0 -7
  4. package/dist/components/header-navigation/header-navigation-content.d.ts.map +1 -1
  5. package/dist/components/header-navigation/header-navigation-content.js +6 -7
  6. package/dist/components/header-navigation/header-navigation-content.js.map +1 -1
  7. package/dist/components/header-navigation/header-navigation-extra-stacked.stories.d.ts +9 -0
  8. package/dist/components/header-navigation/header-navigation-extra-stacked.stories.d.ts.map +1 -0
  9. package/dist/components/header-navigation/header-navigation-extra-stacked.stories.js +13 -0
  10. package/dist/components/header-navigation/header-navigation-extra-stacked.stories.js.map +1 -0
  11. package/dist/components/header-navigation/header-navigation-extra.stories.d.ts +5 -6
  12. package/dist/components/header-navigation/header-navigation-extra.stories.d.ts.map +1 -1
  13. package/dist/components/header-navigation/header-navigation-extra.stories.js +19 -11
  14. package/dist/components/header-navigation/header-navigation-extra.stories.js.map +1 -1
  15. package/dist/components/header-navigation/header-navigation-links.d.ts +2 -31
  16. package/dist/components/header-navigation/header-navigation-links.d.ts.map +1 -1
  17. package/dist/components/header-navigation/header-navigation-links.js +11 -30
  18. package/dist/components/header-navigation/header-navigation-links.js.map +1 -1
  19. package/dist/components/header-navigation/header-navigation-stacked.stories.d.ts +3 -3
  20. package/dist/components/header-navigation/header-navigation-stacked.stories.d.ts.map +1 -1
  21. package/dist/components/header-navigation/header-navigation-stacked.stories.js +9 -8
  22. package/dist/components/header-navigation/header-navigation-stacked.stories.js.map +1 -1
  23. package/dist/components/header-navigation/header-navigation.d.ts +1 -28
  24. package/dist/components/header-navigation/header-navigation.d.ts.map +1 -1
  25. package/dist/components/header-navigation/header-navigation.js +9 -24
  26. package/dist/components/header-navigation/header-navigation.js.map +1 -1
  27. package/dist/components/header-navigation/header-navigation.module.less +2 -84
  28. package/dist/components/header-navigation/header-navigation.stories.d.ts +3 -3
  29. package/dist/components/header-navigation/header-navigation.stories.d.ts.map +1 -1
  30. package/dist/components/header-navigation/header-navigation.stories.js +9 -8
  31. package/dist/components/header-navigation/header-navigation.stories.js.map +1 -1
  32. package/dist/components/header-navigation/index.d.ts +0 -1
  33. package/dist/components/header-navigation/index.d.ts.map +1 -1
  34. package/dist/components/header-navigation/index.js +0 -1
  35. package/dist/components/header-navigation/index.js.map +1 -1
  36. package/dist/components/layout.stories.js +3 -3
  37. package/dist/components/layout.stories.js.map +1 -1
  38. package/dist/components/left-navigation/header-navigation-extra-tiny.stories.d.ts +9 -0
  39. package/dist/components/left-navigation/header-navigation-extra-tiny.stories.d.ts.map +1 -0
  40. package/dist/components/left-navigation/header-navigation-extra-tiny.stories.js +13 -0
  41. package/dist/components/left-navigation/header-navigation-extra-tiny.stories.js.map +1 -0
  42. package/dist/components/left-navigation/header-navigation-tiny-links.d.ts +18 -0
  43. package/dist/components/left-navigation/header-navigation-tiny-links.d.ts.map +1 -0
  44. package/dist/components/left-navigation/header-navigation-tiny-links.js +30 -0
  45. package/dist/components/left-navigation/header-navigation-tiny-links.js.map +1 -0
  46. package/dist/components/left-navigation/header-navigation-tiny.d.ts +23 -0
  47. package/dist/components/left-navigation/header-navigation-tiny.d.ts.map +1 -0
  48. package/dist/components/left-navigation/header-navigation-tiny.js +7 -0
  49. package/dist/components/left-navigation/header-navigation-tiny.js.map +1 -0
  50. package/dist/components/left-navigation/header-navigation-tiny.module.less +117 -0
  51. package/dist/components/{header-navigation → left-navigation}/header-navigation-tiny.stories.d.ts +2 -2
  52. package/dist/components/left-navigation/header-navigation-tiny.stories.d.ts.map +1 -0
  53. package/dist/components/left-navigation/header-navigation-tiny.stories.js +30 -0
  54. package/dist/components/left-navigation/header-navigation-tiny.stories.js.map +1 -0
  55. package/dist/components/left-navigation/index.d.ts +3 -0
  56. package/dist/components/left-navigation/index.d.ts.map +1 -0
  57. package/dist/components/left-navigation/index.js +3 -0
  58. package/dist/components/left-navigation/index.js.map +1 -0
  59. package/dist/components/{side-navigation → left-navigation}/side-navigation.d.ts.map +1 -1
  60. package/dist/components/{side-navigation → left-navigation}/side-navigation.js +2 -2
  61. package/dist/components/left-navigation/side-navigation.js.map +1 -0
  62. package/dist/components/{side-navigation → left-navigation}/side-navigation.module.less +3 -3
  63. package/dist/components/{side-navigation → left-navigation}/side-navigation.stories.d.ts +0 -1
  64. package/dist/components/left-navigation/side-navigation.stories.d.ts.map +1 -0
  65. package/dist/components/{side-navigation → left-navigation}/side-navigation.stories.js +1 -1
  66. package/dist/components/{side-navigation → left-navigation}/side-navigation.stories.js.map +1 -1
  67. package/dist/components/links.d.ts +5 -0
  68. package/dist/components/links.d.ts.map +1 -0
  69. package/dist/components/links.js +14 -0
  70. package/dist/components/links.js.map +1 -0
  71. package/dist/components/logo/logo-titan.js +1 -1
  72. package/dist/components/logo/logo-titan.js.map +1 -1
  73. package/dist/components/logo/logo.stories.d.ts +6 -6
  74. package/dist/components/logo/logo.stories.d.ts.map +1 -1
  75. package/dist/components/logo/logo.stories.js +6 -6
  76. package/dist/components/logo/logo.stories.js.map +1 -1
  77. package/dist/components/profile-dropdown/profile-dropdown-stacked.stories.d.ts +1 -1
  78. package/dist/components/profile-dropdown/profile-dropdown-stacked.stories.d.ts.map +1 -1
  79. package/dist/components/profile-dropdown/profile-dropdown-stacked.stories.js +4 -4
  80. package/dist/components/profile-dropdown/profile-dropdown-stacked.stories.js.map +1 -1
  81. package/dist/components/profile-dropdown/profile-dropdown-tiny.stories.d.ts +1 -1
  82. package/dist/components/profile-dropdown/profile-dropdown-tiny.stories.d.ts.map +1 -1
  83. package/dist/components/profile-dropdown/profile-dropdown-tiny.stories.js +5 -5
  84. package/dist/components/profile-dropdown/profile-dropdown-tiny.stories.js.map +1 -1
  85. package/dist/components/profile-dropdown/profile-dropdown.d.ts.map +1 -1
  86. package/dist/components/profile-dropdown/profile-dropdown.js +9 -22
  87. package/dist/components/profile-dropdown/profile-dropdown.js.map +1 -1
  88. package/dist/components/profile-dropdown/profile-dropdown.module.less +9 -0
  89. package/dist/components/profile-dropdown/profile-dropdown.stories.js +3 -3
  90. package/dist/components/profile-dropdown/profile-dropdown.stories.js.map +1 -1
  91. package/dist/index.d.ts +3 -1
  92. package/dist/index.d.ts.map +1 -1
  93. package/dist/index.js +3 -1
  94. package/dist/index.js.map +1 -1
  95. package/dist/test/data-stories.module.less +5 -3
  96. package/dist/test/{data.stories.d.ts → data.d.ts} +1 -2
  97. package/dist/test/data.d.ts.map +1 -0
  98. package/dist/test/{data.stories.js → data.js} +16 -19
  99. package/dist/test/data.js.map +1 -0
  100. package/dist/utils/navigation-context.d.ts +2 -5
  101. package/dist/utils/navigation-context.d.ts.map +1 -1
  102. package/dist/utils/navigation-context.js +3 -19
  103. package/dist/utils/navigation-context.js.map +1 -1
  104. package/dist/utils/navigation.d.ts +46 -0
  105. package/dist/utils/navigation.d.ts.map +1 -1
  106. package/dist/utils/with-tooltip.d.ts +1 -1
  107. package/package.json +5 -5
  108. package/src/components/header-navigation/header-navigation-content.tsx +10 -38
  109. package/src/components/header-navigation/header-navigation-extra-stacked.stories.tsx +19 -0
  110. package/src/components/header-navigation/header-navigation-extra.stories.tsx +84 -52
  111. package/src/components/header-navigation/header-navigation-links.tsx +13 -55
  112. package/src/components/header-navigation/header-navigation-stacked.stories.tsx +6 -8
  113. package/src/components/header-navigation/header-navigation.module.less +2 -84
  114. package/src/components/header-navigation/header-navigation.module.less.d.ts +0 -3
  115. package/src/components/header-navigation/header-navigation.stories.tsx +6 -8
  116. package/src/components/header-navigation/header-navigation.tsx +7 -120
  117. package/src/components/header-navigation/index.ts +0 -1
  118. package/src/components/layout.stories.tsx +3 -3
  119. package/src/components/left-navigation/header-navigation-extra-tiny.stories.tsx +21 -0
  120. package/src/components/left-navigation/header-navigation-tiny-links.tsx +134 -0
  121. package/src/components/left-navigation/header-navigation-tiny.module.less +117 -0
  122. package/src/components/left-navigation/header-navigation-tiny.module.less.d.ts +15 -0
  123. package/src/components/{header-navigation → left-navigation}/header-navigation-tiny.stories.tsx +5 -13
  124. package/src/components/left-navigation/header-navigation-tiny.tsx +65 -0
  125. package/src/components/left-navigation/index.ts +2 -0
  126. package/src/components/{side-navigation → left-navigation}/side-navigation.module.less +3 -3
  127. package/src/components/{side-navigation → left-navigation}/side-navigation.module.less.d.ts +1 -0
  128. package/src/components/{side-navigation → left-navigation}/side-navigation.stories.tsx +1 -1
  129. package/src/components/{side-navigation → left-navigation}/side-navigation.tsx +2 -2
  130. package/src/components/links.tsx +31 -0
  131. package/src/components/logo/logo.stories.tsx +6 -6
  132. package/src/components/profile-dropdown/profile-dropdown-stacked.stories.tsx +14 -6
  133. package/src/components/profile-dropdown/profile-dropdown-tiny.stories.tsx +15 -5
  134. package/src/components/profile-dropdown/profile-dropdown.module.less +9 -0
  135. package/src/components/profile-dropdown/profile-dropdown.module.less.d.ts +1 -0
  136. package/src/components/profile-dropdown/profile-dropdown.stories.tsx +3 -3
  137. package/src/components/profile-dropdown/profile-dropdown.tsx +7 -4
  138. package/src/index.ts +3 -1
  139. package/src/test/data-stories.module.less +5 -3
  140. package/src/test/{data.stories.tsx → data.tsx} +5 -2
  141. package/src/utils/navigation-context.tsx +3 -8
  142. package/src/utils/navigation.ts +51 -0
  143. package/dist/components/header-navigation/header-navigation-tiny.stories.d.ts.map +0 -1
  144. package/dist/components/header-navigation/header-navigation-tiny.stories.js +0 -29
  145. package/dist/components/header-navigation/header-navigation-tiny.stories.js.map +0 -1
  146. package/dist/components/side-navigation/icons.d.ts +0 -7
  147. package/dist/components/side-navigation/icons.d.ts.map +0 -1
  148. package/dist/components/side-navigation/icons.js +0 -5
  149. package/dist/components/side-navigation/icons.js.map +0 -1
  150. package/dist/components/side-navigation/index.d.ts +0 -2
  151. package/dist/components/side-navigation/index.d.ts.map +0 -1
  152. package/dist/components/side-navigation/index.js +0 -2
  153. package/dist/components/side-navigation/index.js.map +0 -1
  154. package/dist/components/side-navigation/side-navigation.js.map +0 -1
  155. package/dist/components/side-navigation/side-navigation.stories.d.ts.map +0 -1
  156. package/dist/test/data.stories.d.ts.map +0 -1
  157. package/dist/test/data.stories.js.map +0 -1
  158. package/src/components/side-navigation/icons.tsx +0 -74
  159. package/src/components/side-navigation/index.ts +0 -1
  160. /package/dist/components/{side-navigation → left-navigation}/side-navigation.d.ts +0 -0
@@ -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
+ };
@@ -10,10 +10,10 @@ export default {
10
10
  parameters: {},
11
11
  };
12
12
 
13
- export const logoTitan = () => <LogoTitanSvg />;
14
- export const logoTitanBlueMantle = () => <LogoTitanSvg mantleFill="#2270EE" />;
15
- export const logoCompanyTitle = () => <LogoCompanyTitle />;
16
- export const logoTitanText = () => (
13
+ export const Titan = () => <LogoTitanSvg />;
14
+ export const TitanBlueMantle = () => <LogoTitanSvg mantleFill="#2270EE" />;
15
+ export const CompanyTitle = () => <LogoCompanyTitle />;
16
+ export const TitanText = () => (
17
17
  <LogoTitanText
18
18
  className="bg-neutral-300 border"
19
19
  mantleFill="#2270EE"
@@ -34,7 +34,7 @@ const NavLinkMock: FC<{ className: string; children: ReactNode }> = ({ className
34
34
  </a>
35
35
  );
36
36
 
37
- export const logoTitanTextWithLink = () => (
37
+ export const TitanTextWithLink = () => (
38
38
  <LogoTitanText
39
39
  className="bg-neutral-300 border"
40
40
  mantleFill="#2270EE"
@@ -44,7 +44,7 @@ export const logoTitanTextWithLink = () => (
44
44
  />
45
45
  );
46
46
 
47
- export const logoTitanWithText = () => (
47
+ export const TitanWithText = () => (
48
48
  <Stack className="border bg-neutral-300" alignItems="center">
49
49
  <LogoTitan className="border-left m-r-1" mantleFill="#2270EE" />
50
50
  <LogoTitanTitle className="m-x-1 p-b-half c-white">Contact Center</LogoTitanTitle>
@@ -1,15 +1,23 @@
1
- import { NavLinkMock, withAnvil, withMemoryRouter } from '../../test/data.stories';
1
+ import { withAnvil, withMemoryRouter } from '../../test/data';
2
2
  import { HeaderNavigationStacked } from '../header-navigation';
3
- export * from './profile-dropdown.stories';
4
3
  import { ProfileDropdown } from './profile-dropdown';
5
4
 
6
- const withHeaderNavigationStacked = (Story: any) => (
7
- <HeaderNavigationStacked navigationComponent={NavLinkMock} right={<Story />} />
8
- );
5
+ const withHeaderNavigationStacked = (Story: any) => <HeaderNavigationStacked right={<Story />} />;
9
6
 
10
7
  export default {
11
- title: 'Navigation/ProfileDropdownStacked',
8
+ title: 'Navigation/ProfileDropdown/Stacked',
12
9
  component: ProfileDropdown,
13
10
  parameters: {},
14
11
  decorators: [withMemoryRouter, withAnvil, withHeaderNavigationStacked],
15
12
  };
13
+
14
+ export {
15
+ ProfileDropdownDefault,
16
+ ProfileDropdownWithBothBadges,
17
+ ProfileDropdownWithCounter,
18
+ ProfileDropdownWithErrorLogo,
19
+ ProfileDropdownWithInfo,
20
+ ProfileDropdownWithHintAndInfoPopup,
21
+ ProfileDropdownWithHintPopup,
22
+ ProfileDropdownWithLogo,
23
+ } from './profile-dropdown.stories';
@@ -1,15 +1,25 @@
1
- import { NavLinkMock, withAnvil, withMemoryRouter } from '../../test/data.stories';
2
- import { HeaderNavigationTiny } from '../header-navigation';
3
- export * from './profile-dropdown.stories';
1
+ import { withAnvil, withMemoryRouter } from '../../test/data';
2
+ import { HeaderNavigationTiny } from '../left-navigation';
4
3
  import { ProfileDropdown } from './profile-dropdown';
5
4
 
6
5
  const withHeaderNavigationTiny = (Story: any) => (
7
- <HeaderNavigationTiny className="border" navigationComponent={NavLinkMock} right={<Story />} />
6
+ <HeaderNavigationTiny className="border" right={<Story />} />
8
7
  );
9
8
 
10
9
  export default {
11
- title: 'Navigation/ProfileDropdownTiny',
10
+ title: 'Navigation/ProfileDropdown/Tiny',
12
11
  component: ProfileDropdown,
13
12
  parameters: {},
14
13
  decorators: [withMemoryRouter, withAnvil, withHeaderNavigationTiny],
15
14
  };
15
+
16
+ export {
17
+ ProfileDropdownDefault,
18
+ ProfileDropdownWithBothBadges,
19
+ ProfileDropdownWithCounter,
20
+ ProfileDropdownWithErrorLogo,
21
+ ProfileDropdownWithInfo,
22
+ ProfileDropdownWithHintAndInfoPopup,
23
+ ProfileDropdownWithHintPopup,
24
+ ProfileDropdownWithLogo,
25
+ } from './profile-dropdown.stories';
@@ -50,10 +50,19 @@
50
50
  border-radius: 8px;
51
51
  }
52
52
 
53
+ .expand-icon[data-anv][data-anv] {
54
+ color: inherit;
55
+ display: flex;
56
+ align-items: center;
57
+ }
58
+
53
59
  &.trigger-container-legacy {
54
60
  .avatar-badge {
55
61
  left: 0;
56
62
  }
63
+ .badge {
64
+ right: 12px;
65
+ }
57
66
  }
58
67
 
59
68
  &.trigger-container-hint-arrow:first-child:before {
@@ -10,6 +10,7 @@ export const dropdownContentBottomLeft: string;
10
10
  export const dropdownContentWrapper: string;
11
11
  export const dropdownLink: string;
12
12
  export const dropdownSection: string;
13
+ export const expandIcon: string;
13
14
  export const hint: string;
14
15
  export const hintContent: string;
15
16
  export const info: string;
@@ -1,16 +1,16 @@
1
1
  import { Button } from '@servicetitan/design-system';
2
- import { NavLinkMock, withAnvil, withMemoryRouter } from '../../test/data.stories';
2
+ import { withAnvil, withMemoryRouter } from '../../test/data';
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
  );
11
11
 
12
12
  export default {
13
- title: 'Navigation/ProfileDropdown',
13
+ title: 'Navigation/ProfileDropdown/Legacy',
14
14
  component: ProfileDropdown,
15
15
  parameters: {},
16
16
  decorators: [withMemoryRouter, withAnvil, withHeaderNavigation],
@@ -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 ?? '';
@@ -114,7 +117,7 @@ const ProfileDropdownTrigger: FC<ProfileDropdownTriggerProps> = ({
114
117
 
115
118
  <Icon
116
119
  svg={open ? SvgExpandLess : SvgExpandMore}
117
- className={classNames('d-f align-items-center c-inherit', { 'm-l-half': isLegacy })}
120
+ className={classNames(Styles.expandIcon)}
118
121
  size="small"
119
122
  />
120
123
 
@@ -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,8 @@ 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';
10
+ export { NavigationComponentContext } from './utils/navigation-context';
9
11
  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,54 @@ 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
+ /** item label */
71
+ label?: string;
72
+ /** label class name */
73
+ labelClassName?: string;
74
+ /** isActive */
75
+ isActive?: boolean;
76
+ /** counter shown for item */
77
+ counter?: CounterTagPropsType;
78
+ /** counter component class name */
79
+ counterClassName?: string;
80
+ /** icon component class name */
81
+ iconClassName?: string;
82
+ /** IconComponent custom icon component */
83
+ iconComponent?: FC;
84
+ /** iconName name of anvil icon */
85
+ iconName?: IconPropsStrict['name'];
86
+ /** svg icon (anvil2) of inactive item */
87
+ icon: IconProps['svg'] | undefined;
88
+ /** svg icon (anvil2) of active item */
89
+ iconActive: IconProps['svg'] | undefined;
90
+ }
91
+
92
+ export interface HeaderNavigationTriggerProps extends HeaderNavigationTriggerPropsStrict {
93
+ /** unstrict props */
94
+ [key: string]: any;
95
+ }
96
+
97
+ export interface HeaderNavigationLinkPropsStrict
98
+ extends Omit<HeaderNavigationTriggerPropsStrict, 'isActive'> {
99
+ /** link href */
100
+ to: string;
101
+ /** isActive */
102
+ isActive?: boolean | ((pathname: string) => boolean);
103
+ /** link html target */
104
+ target?: HTMLAttributeAnchorTarget;
105
+ }
106
+
107
+ export interface HeaderNavigationLinkProps extends HeaderNavigationLinkPropsStrict {
108
+ /** unstrict props */
109
+ [key: string]: any;
110
+ }
@@ -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":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AE,eAAe,GAC7B,EAEF,KAAC,oBAAoB,IACjB,EAAE,EAAC,UAAU,EACb,EAAE,EAAC,UAAU,EACb,QAAQ,EAAC,UAAU,gBACR,QAAQ,EACnB,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,iBAAiB,GAC/B,EAEF,MAAC,eAAe,eACZ,KAAC,eAAe,CAAC,IAAI,IAAC,EAAE,EAAC,OAAO,EAAC,EAAE,EAAC,qBAAqB,EAAC,OAAO,EAAE,EAAE,gCAE9C,EACvB,KAAC,eAAe,CAAC,OAAO,KAAG,EAC3B,MAAC,eAAe,CAAC,IAAI,IAAC,EAAE,EAAC,UAAU,EAAC,EAAE,EAAC,qBAAqB,yBAC/C,GAAG,EACZ,eAAM,SAAS,EAAC,mCAAmC,2BAAkB,IAClD,EACvB,KAAC,eAAe,CAAC,OAAO,IAAC,EAAE,EAAC,QAAQ,EAAC,SAAS,EAAC,oBAAoB,6BAEzC,IACZ,IACX,EAEf,MAAM,EAAE,KAAC,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,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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 +0,0 @@
1
- {"version":3,"file":"side-navigation.js","sourceRoot":"","sources":["../../../src/components/side-navigation/side-navigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,WAAW,MAAM,6DAA6D,CAAC;AACtF,OAAO,SAAS,MAAM,2DAA2D,CAAC;AAClF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAM,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AAmBxD,MAAM,CAAC,MAAM,cAAc,GAA4B,CAAC,EACpD,SAAS,EACT,QAAQ,EACR,EAAE,EACF,KAAK,EACL,QAAQ,EACR,mBAAmB,GAAG,uBAAuB,EAC7C,gBAAgB,GACnB,EAAE,EAAE;IACD,OAAO,CACH,eACI,SAAS,EAAE,UAAU,CACjB,MAAM,CAAC,OAAO,EACd,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,EACtD,SAAS,CACZ,EACD,EAAE,EAAE,EAAE,aACE,iBAAiB,aAExB,CAAC,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAA,IAAI,CACnB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AAU,CAAC,MAAM,CAAC,WAAW,CAAC,EACzC,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,aAE1C,cAAK,SAAS,EAAE,MAAM,CAAC,WAAW,YAC9B,KAAC,IAAI,IAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,GAAI,GAC/C,EAEL,CAAC,CAAC,QAAQ,IAAI,eAAM,SAAS,EAAE,MAAM,CAAC,eAAe,8BAAsB,IAC1E,EACN,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,EACpC,OAAO,CACV,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"side-navigation.stories.d.ts","sourceRoot":"","sources":["../../../src/components/side-navigation/side-navigation.stories.tsx"],"names":[],"mappings":";;;;;;;AAYA,wBAKE;AAEF,eAAO,MAAM,qBAAqB,+CA0BjC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.stories.d.ts","sourceRoot":"","sources":["../../src/test/data.stories.tsx"],"names":[],"mappings":";AAwCA,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGtF,eAAO,MAAM,WAAW,oHAwBvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,GAAG,4CAI1C,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,GAAG,4CAInC,CAAC;AAEF,eAAO,MAAM,aAAa,+CAKzB,CAAC;AAEF,eAAO,MAAM,UAAU,+CAetB,CAAC;AAeF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;CA4EjB,CAAC;AAEF,eAAO,MAAM,sBAAsB,+CAuBlC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.stories.js","sourceRoot":"","sources":["../../src/test/data.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;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,CACb,CAAC;AACN,CAAC,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';