@servicetitan/navigation 10.6.1 → 11.0.0-canary.237.0505ce7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/badge-tag.d.ts +1 -1
- package/dist/components/badge-tag.d.ts.map +1 -1
- package/dist/components/header-navigation/header-navigation-extra.stories.d.ts.map +1 -1
- package/dist/components/header-navigation/header-navigation-extra.stories.js +5 -5
- package/dist/components/header-navigation/header-navigation-extra.stories.js.map +1 -1
- package/dist/components/header-navigation/header-navigation-links.d.ts.map +1 -1
- package/dist/components/header-navigation/header-navigation-links.js +2 -2
- package/dist/components/header-navigation/header-navigation-links.js.map +1 -1
- package/dist/components/header-navigation/header-navigation-stacked.stories.d.ts.map +1 -1
- package/dist/components/header-navigation/header-navigation-stacked.stories.js +1 -1
- package/dist/components/header-navigation/header-navigation-stacked.stories.js.map +1 -1
- package/dist/components/header-navigation/header-navigation.stories.d.ts.map +1 -1
- package/dist/components/header-navigation/header-navigation.stories.js +2 -2
- package/dist/components/header-navigation/header-navigation.stories.js.map +1 -1
- package/dist/components/header-navigation/with-tooltip.d.ts +1 -1
- package/dist/components/header-navigation/with-tooltip.d.ts.map +1 -1
- package/dist/components/left-navigation/header-navigation-tiny.stories.d.ts.map +1 -1
- package/dist/components/left-navigation/header-navigation-tiny.stories.js +2 -2
- package/dist/components/left-navigation/header-navigation-tiny.stories.js.map +1 -1
- package/dist/components/left-navigation/interface.d.ts +1 -1
- package/dist/components/left-navigation/interface.d.ts.map +1 -1
- package/dist/components/left-navigation/side-navigation-links-internal.d.ts +3 -1
- package/dist/components/left-navigation/side-navigation-links-internal.d.ts.map +1 -1
- package/dist/components/left-navigation/side-navigation-links-internal.js +3 -3
- package/dist/components/left-navigation/side-navigation-links-internal.js.map +1 -1
- package/dist/components/left-navigation/side-navigation.d.ts.map +1 -1
- package/dist/components/left-navigation/side-navigation.js +8 -7
- package/dist/components/left-navigation/side-navigation.js.map +1 -1
- package/dist/components/left-navigation/side-navigation.module.less +21 -19
- package/dist/components/links.d.ts.map +1 -1
- package/dist/components/links.js +7 -7
- package/dist/components/links.js.map +1 -1
- package/dist/components/logo/logo-company-title.d.ts +1 -0
- package/dist/components/logo/logo-company-title.d.ts.map +1 -1
- package/dist/components/logo/logo-company-title.js +2 -2
- package/dist/components/logo/logo-company-title.js.map +1 -1
- package/dist/components/logo/logo-titan-text.d.ts +1 -1
- package/dist/components/logo/logo-titan-text.d.ts.map +1 -1
- package/dist/components/profile-dropdown/profile-dropdown.d.ts +17 -9
- package/dist/components/profile-dropdown/profile-dropdown.d.ts.map +1 -1
- package/dist/components/profile-dropdown/profile-dropdown.js +11 -9
- package/dist/components/profile-dropdown/profile-dropdown.js.map +1 -1
- package/dist/components/profile-dropdown/profile-dropdown.module.less +24 -6
- package/dist/components/profile-dropdown/profile-dropdown.stories.js +2 -2
- package/dist/components/profile-dropdown/profile-dropdown.stories.js.map +1 -1
- package/dist/components/titan-layout/index.d.ts +6 -0
- package/dist/components/titan-layout/index.d.ts.map +1 -0
- package/dist/components/titan-layout/index.js +6 -0
- package/dist/components/titan-layout/index.js.map +1 -0
- package/dist/components/titan-layout/interface-internal.d.ts +6 -0
- package/dist/components/titan-layout/interface-internal.d.ts.map +1 -0
- package/dist/components/titan-layout/interface-internal.js +2 -0
- package/dist/components/titan-layout/interface-internal.js.map +1 -0
- package/dist/components/titan-layout/interface.d.ts +21 -0
- package/dist/components/titan-layout/interface.d.ts.map +1 -0
- package/dist/components/titan-layout/interface.js +2 -0
- package/dist/components/titan-layout/interface.js.map +1 -0
- package/dist/components/titan-layout/layout-context.d.ts +20 -0
- package/dist/components/titan-layout/layout-context.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-context.js +12 -0
- package/dist/components/titan-layout/layout-context.js.map +1 -0
- package/dist/components/titan-layout/layout-header-links.d.ts +7 -0
- package/dist/components/titan-layout/layout-header-links.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-header-links.js +32 -0
- package/dist/components/titan-layout/layout-header-links.js.map +1 -0
- package/dist/components/titan-layout/layout-header.d.ts +22 -0
- package/dist/components/titan-layout/layout-header.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-header.js +10 -0
- package/dist/components/titan-layout/layout-header.js.map +1 -0
- package/dist/components/titan-layout/layout-header.module.less +193 -0
- package/dist/components/titan-layout/layout-logo.d.ts +12 -0
- package/dist/components/titan-layout/layout-logo.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-logo.js +16 -0
- package/dist/components/titan-layout/layout-logo.js.map +1 -0
- package/dist/components/titan-layout/layout-logo.stories.d.ts +13 -0
- package/dist/components/titan-layout/layout-logo.stories.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-logo.stories.js +17 -0
- package/dist/components/titan-layout/layout-logo.stories.js.map +1 -0
- package/dist/components/titan-layout/layout-profile.d.ts +9 -0
- package/dist/components/titan-layout/layout-profile.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-profile.js +72 -0
- package/dist/components/titan-layout/layout-profile.js.map +1 -0
- package/dist/components/titan-layout/layout-profile.stories.d.ts +13 -0
- package/dist/components/titan-layout/layout-profile.stories.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-profile.stories.js +13 -0
- package/dist/components/titan-layout/layout-profile.stories.js.map +1 -0
- package/dist/components/titan-layout/layout-sidebar-links-internal.d.ts +46 -0
- package/dist/components/titan-layout/layout-sidebar-links-internal.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-sidebar-links-internal.js +61 -0
- package/dist/components/titan-layout/layout-sidebar-links-internal.js.map +1 -0
- package/dist/components/titan-layout/layout-sidebar-links.d.ts +6 -0
- package/dist/components/titan-layout/layout-sidebar-links.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-sidebar-links.js +28 -0
- package/dist/components/titan-layout/layout-sidebar-links.js.map +1 -0
- package/dist/components/titan-layout/layout-sidebar.d.ts +19 -0
- package/dist/components/titan-layout/layout-sidebar.d.ts.map +1 -0
- package/dist/components/titan-layout/layout-sidebar.js +67 -0
- package/dist/components/titan-layout/layout-sidebar.js.map +1 -0
- package/dist/components/titan-layout/layout-sidebar.module.less +536 -0
- package/dist/components/titan-layout/notifications-context.d.ts +13 -0
- package/dist/components/titan-layout/notifications-context.d.ts.map +1 -0
- package/dist/components/titan-layout/notifications-context.js +23 -0
- package/dist/components/titan-layout/notifications-context.js.map +1 -0
- package/dist/components/titan-layout/titan-layout.d.ts +40 -0
- package/dist/components/titan-layout/titan-layout.d.ts.map +1 -0
- package/dist/components/titan-layout/titan-layout.js +192 -0
- package/dist/components/titan-layout/titan-layout.js.map +1 -0
- package/dist/components/titan-layout/titan-layout.module.less +106 -0
- package/dist/components/titan-layout/titan-layout.stories.d.ts +22 -0
- package/dist/components/titan-layout/titan-layout.stories.d.ts.map +1 -0
- package/dist/components/titan-layout/titan-layout.stories.js +83 -0
- package/dist/components/titan-layout/titan-layout.stories.js.map +1 -0
- package/dist/components/titan-layout/with-tooltip.d.ts +4 -0
- package/dist/components/titan-layout/with-tooltip.d.ts.map +1 -0
- package/dist/components/titan-layout/with-tooltip.js +4 -0
- package/dist/components/titan-layout/with-tooltip.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/test/data.d.ts +4 -1
- package/dist/test/data.d.ts.map +1 -1
- package/dist/test/data.js +5 -6
- package/dist/test/data.js.map +1 -1
- package/dist/utils/navigation-legacy.d.ts +3 -1
- package/dist/utils/navigation-legacy.d.ts.map +1 -1
- package/dist/utils/use-breakpoint.d.ts +8 -0
- package/dist/utils/use-breakpoint.d.ts.map +1 -0
- package/dist/utils/use-breakpoint.js +14 -0
- package/dist/utils/use-breakpoint.js.map +1 -0
- package/package.json +5 -6
- package/src/components/badge-tag.tsx +1 -1
- package/src/components/header-navigation/header-navigation-extra.stories.tsx +7 -0
- package/src/components/header-navigation/header-navigation-links.tsx +2 -0
- package/src/components/header-navigation/header-navigation-stacked.stories.tsx +5 -1
- package/src/components/header-navigation/header-navigation.stories.tsx +6 -1
- package/src/components/left-navigation/header-navigation-tiny.stories.tsx +8 -2
- package/src/components/left-navigation/interface.ts +2 -2
- package/src/components/left-navigation/side-navigation-links-internal.tsx +21 -6
- package/src/components/left-navigation/side-navigation-links.tsx +1 -1
- package/src/components/left-navigation/side-navigation.module.less +21 -19
- package/src/components/left-navigation/side-navigation.module.less.d.ts +2 -1
- package/src/components/left-navigation/side-navigation.tsx +15 -8
- package/src/components/links.tsx +33 -13
- package/src/components/logo/logo-company-title.tsx +8 -6
- package/src/components/logo/logo-titan-text.tsx +1 -1
- package/src/components/profile-dropdown/profile-dropdown.module.less +24 -6
- package/src/components/profile-dropdown/profile-dropdown.module.less.d.ts +2 -0
- package/src/components/profile-dropdown/profile-dropdown.stories.tsx +4 -4
- package/src/components/profile-dropdown/profile-dropdown.tsx +87 -55
- package/src/components/titan-layout/index.ts +5 -0
- package/src/components/titan-layout/interface-internal.ts +6 -0
- package/src/components/titan-layout/interface.ts +26 -0
- package/src/components/titan-layout/layout-context.tsx +30 -0
- package/src/components/titan-layout/layout-header-links.tsx +144 -0
- package/src/components/titan-layout/layout-header.module.less +193 -0
- package/src/components/titan-layout/layout-header.module.less.d.ts +18 -0
- package/src/components/titan-layout/layout-header.tsx +97 -0
- package/src/components/titan-layout/layout-logo.stories.tsx +31 -0
- package/src/components/titan-layout/layout-logo.tsx +64 -0
- package/src/components/titan-layout/layout-profile.stories.tsx +46 -0
- package/src/components/titan-layout/layout-profile.tsx +178 -0
- package/src/components/titan-layout/layout-sidebar-links-internal.tsx +278 -0
- package/src/components/titan-layout/layout-sidebar-links.tsx +72 -0
- package/src/components/titan-layout/layout-sidebar.module.less +536 -0
- package/src/components/titan-layout/layout-sidebar.module.less.d.ts +49 -0
- package/src/components/titan-layout/layout-sidebar.tsx +304 -0
- package/src/components/titan-layout/notifications-context.tsx +44 -0
- package/src/components/titan-layout/titan-layout.module.less +106 -0
- package/src/components/titan-layout/titan-layout.module.less.d.ts +16 -0
- package/src/components/titan-layout/titan-layout.stories.tsx +342 -0
- package/src/components/titan-layout/titan-layout.tsx +461 -0
- package/src/components/titan-layout/with-tooltip.tsx +16 -0
- package/src/index.ts +2 -1
- package/src/test/data.tsx +5 -5
- package/src/utils/navigation-legacy.ts +3 -1
- package/src/utils/use-breakpoint.ts +21 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { Announcement, Page as Anvil2Page, Button, Popover, TextField } from '@servicetitan/anvil2';
|
|
2
|
+
import SvgSearch from '@servicetitan/anvil2/assets/icons/material/round/search.svg';
|
|
3
|
+
import SvgAtlas from '@servicetitan/anvil2/assets/icons/st/atlas_logo.svg';
|
|
4
|
+
import SvgSettingsActive from '@servicetitan/anvil2/assets/icons/st/gnav_settings_active.svg';
|
|
5
|
+
import SvgSettings from '@servicetitan/anvil2/assets/icons/st/gnav_settings_inactive.svg';
|
|
6
|
+
import SvgRocketActive from '@servicetitan/anvil2/assets/icons/st/gnav_titan_advisor_active.svg';
|
|
7
|
+
import SvgRocket from '@servicetitan/anvil2/assets/icons/st/gnav_titan_advisor_inactive.svg';
|
|
8
|
+
import { Page as Anvil1Page } from '@servicetitan/design-system';
|
|
9
|
+
import { FC, Fragment, useState } from 'react';
|
|
10
|
+
import {
|
|
11
|
+
CallsNavigationTrigger,
|
|
12
|
+
LocationInfo,
|
|
13
|
+
NavLinkMock,
|
|
14
|
+
items,
|
|
15
|
+
withAnvil,
|
|
16
|
+
withDefaultRedirects,
|
|
17
|
+
withMemoryRouter,
|
|
18
|
+
} from '../../test/data';
|
|
19
|
+
import { SideNavigationLinkWrapperProps } from '../left-navigation';
|
|
20
|
+
import { HeaderNavigationLink, HeaderNavigationTrigger } from '../links';
|
|
21
|
+
import { ProfileDropdown, TitanLayout, TitanLayoutProps, TitanLayoutState } from './';
|
|
22
|
+
|
|
23
|
+
interface LayoutContentArgs {
|
|
24
|
+
header: boolean;
|
|
25
|
+
sideTop: boolean;
|
|
26
|
+
extraText: boolean;
|
|
27
|
+
search: boolean;
|
|
28
|
+
longContent: boolean;
|
|
29
|
+
wideContent: boolean;
|
|
30
|
+
minWidth: boolean;
|
|
31
|
+
emptyNav: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default {
|
|
35
|
+
title: 'Navigation/TitanLayout',
|
|
36
|
+
decorators: [withDefaultRedirects, withMemoryRouter, withAnvil],
|
|
37
|
+
parameters: {},
|
|
38
|
+
argTypes: {},
|
|
39
|
+
args: {
|
|
40
|
+
header: true,
|
|
41
|
+
sideTop: true,
|
|
42
|
+
extraText: true,
|
|
43
|
+
search: true,
|
|
44
|
+
longContent: true,
|
|
45
|
+
wideContent: false,
|
|
46
|
+
minWidth: false,
|
|
47
|
+
emptyNav: false,
|
|
48
|
+
} as LayoutContentArgs,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const mainNavItems = [
|
|
52
|
+
items.dashboard,
|
|
53
|
+
items.calendar,
|
|
54
|
+
items.calls,
|
|
55
|
+
items.accountingWithSubmenu,
|
|
56
|
+
items.dispatch,
|
|
57
|
+
|
|
58
|
+
items.fleet,
|
|
59
|
+
items.followUps,
|
|
60
|
+
items.inventory,
|
|
61
|
+
|
|
62
|
+
items.marketing,
|
|
63
|
+
items.priceBook,
|
|
64
|
+
items.pointOfSale,
|
|
65
|
+
items.reports,
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
const profile = (
|
|
69
|
+
<ProfileDropdown>
|
|
70
|
+
<ProfileDropdown.Link
|
|
71
|
+
id="first"
|
|
72
|
+
to="https://google.com"
|
|
73
|
+
tooltip="Google it"
|
|
74
|
+
target="_blank"
|
|
75
|
+
tag={{ value: true }}
|
|
76
|
+
>
|
|
77
|
+
first link
|
|
78
|
+
</ProfileDropdown.Link>
|
|
79
|
+
<ProfileDropdown.Section
|
|
80
|
+
id="second"
|
|
81
|
+
onClick={() => alert('second click')}
|
|
82
|
+
tooltip="Second hint"
|
|
83
|
+
counter
|
|
84
|
+
>
|
|
85
|
+
second link
|
|
86
|
+
</ProfileDropdown.Section>
|
|
87
|
+
<ProfileDropdown.Divider />
|
|
88
|
+
<ProfileDropdown.Section id="content">some content</ProfileDropdown.Section>
|
|
89
|
+
<ProfileDropdown.Divider />
|
|
90
|
+
<ProfileDropdown.Divider />
|
|
91
|
+
<ProfileDropdown.Divider />
|
|
92
|
+
<ProfileDropdown.Link id="third" to="/third">
|
|
93
|
+
third link
|
|
94
|
+
</ProfileDropdown.Link>
|
|
95
|
+
<ProfileDropdown.Divider />
|
|
96
|
+
</ProfileDropdown>
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
const extraLinks = (
|
|
100
|
+
<Fragment>
|
|
101
|
+
<HeaderNavigationLink
|
|
102
|
+
id="search"
|
|
103
|
+
to="https://google.com"
|
|
104
|
+
target="_blank"
|
|
105
|
+
title="Search"
|
|
106
|
+
hint="Search: for all the questions"
|
|
107
|
+
tooltip="Search"
|
|
108
|
+
icon={SvgSearch}
|
|
109
|
+
iconActive={SvgSearch}
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
<CallsNavigationTrigger />
|
|
113
|
+
|
|
114
|
+
<HeaderNavigationLink
|
|
115
|
+
id="titanAdvisor"
|
|
116
|
+
to="/titanAdvisor"
|
|
117
|
+
title="Titan Advisor"
|
|
118
|
+
icon={SvgRocket}
|
|
119
|
+
iconActive={SvgRocketActive}
|
|
120
|
+
/>
|
|
121
|
+
|
|
122
|
+
<HeaderNavigationLink
|
|
123
|
+
id="settings"
|
|
124
|
+
to="/settings"
|
|
125
|
+
title="Settings"
|
|
126
|
+
target="_blank"
|
|
127
|
+
aria-label="search"
|
|
128
|
+
hint="Settings"
|
|
129
|
+
icon={SvgSettings}
|
|
130
|
+
iconActive={SvgSettingsActive}
|
|
131
|
+
/>
|
|
132
|
+
</Fragment>
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
const extraLinksTop = (
|
|
136
|
+
<HeaderNavigationTrigger
|
|
137
|
+
id="atlas"
|
|
138
|
+
title="Atlas"
|
|
139
|
+
icon={SvgAtlas}
|
|
140
|
+
iconActive={SvgAtlas}
|
|
141
|
+
data-pendo="atlas-chat-button"
|
|
142
|
+
data-cy="atlas-chat-button"
|
|
143
|
+
data-atlas-chat-button
|
|
144
|
+
/>
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
const SideLinkPopoverWrapper: FC<SideNavigationLinkWrapperProps> = ({ children, context }) => {
|
|
148
|
+
return (
|
|
149
|
+
<Popover placement="right" openOnHover>
|
|
150
|
+
<Popover.Trigger>{(props: any) => <div {...props}>{children}</div>}</Popover.Trigger>
|
|
151
|
+
<Popover.Content style={context.styles.popoverContent}>popover content</Popover.Content>
|
|
152
|
+
</Popover>
|
|
153
|
+
);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const sidebarTop = () => [
|
|
157
|
+
<TitanLayout.Link key="tasks" {...items.tasks} />,
|
|
158
|
+
<TitanLayout.Link key="calls" {...items.calls} />,
|
|
159
|
+
<TitanLayout.Trigger
|
|
160
|
+
key="marketing"
|
|
161
|
+
{...items.marketing}
|
|
162
|
+
isActive={false}
|
|
163
|
+
wrapper={SideLinkPopoverWrapper}
|
|
164
|
+
onMobileClick={() => alert('clicked')}
|
|
165
|
+
counter={50}
|
|
166
|
+
/>,
|
|
167
|
+
];
|
|
168
|
+
const ContentHeader = () => {
|
|
169
|
+
const [longInfo, setLongInfo] = useState(false);
|
|
170
|
+
|
|
171
|
+
return (
|
|
172
|
+
<Fragment>
|
|
173
|
+
<Announcement title="Some info" status="info" />
|
|
174
|
+
<Announcement title="Some warning" status="warning" />
|
|
175
|
+
<div
|
|
176
|
+
className="d-f justify-content-center align-items-center bg-purple-100-i"
|
|
177
|
+
style={{ height: longInfo ? '120px' : '48px' }}
|
|
178
|
+
>
|
|
179
|
+
<div className="d-f align-items-center gap-1">
|
|
180
|
+
custom content{' '}
|
|
181
|
+
<Button onClick={() => setLongInfo(!longInfo)} size="small" aria-label="test">
|
|
182
|
+
{longInfo ? '↑' : '↓'}
|
|
183
|
+
</Button>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</Fragment>
|
|
187
|
+
);
|
|
188
|
+
};
|
|
189
|
+
const SearchBar = () => (
|
|
190
|
+
<TextField size="small" placeholder="Search" className="w-100-i m-x-half-i" />
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
const useLayoutProps = (args: LayoutContentArgs): TitanLayoutProps => {
|
|
194
|
+
const [state, setState] = useState<TitanLayoutState | undefined>(undefined);
|
|
195
|
+
|
|
196
|
+
return {
|
|
197
|
+
state,
|
|
198
|
+
onStateChange: setState,
|
|
199
|
+
|
|
200
|
+
navigationComponent: NavLinkMock,
|
|
201
|
+
navigationMainItems: args.emptyNav ? [] : mainNavItems,
|
|
202
|
+
|
|
203
|
+
profile,
|
|
204
|
+
top: args.search ? <SearchBar /> : undefined,
|
|
205
|
+
header: args.header ? <ContentHeader /> : undefined,
|
|
206
|
+
|
|
207
|
+
extraLinks,
|
|
208
|
+
extraLinksTop,
|
|
209
|
+
extraText: args.extraText ? 'EST (-8 hrs)' : undefined,
|
|
210
|
+
|
|
211
|
+
sideTop: args.sideTop && !args.emptyNav ? sidebarTop() : undefined,
|
|
212
|
+
|
|
213
|
+
minContentWidth: args.minWidth ? 900 : undefined,
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
const Content = (args: LayoutContentArgs) => {
|
|
218
|
+
return (
|
|
219
|
+
<Fragment>
|
|
220
|
+
<LocationInfo className="m-b-3" />
|
|
221
|
+
{args.wideContent && (
|
|
222
|
+
<div style={{ width: '1200px' }}>
|
|
223
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
|
224
|
+
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
|
|
225
|
+
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
226
|
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
|
|
227
|
+
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
|
|
228
|
+
culpa qui officia deserunt mollit anim id est laborum.
|
|
229
|
+
</div>
|
|
230
|
+
)}
|
|
231
|
+
|
|
232
|
+
{args.longContent && (
|
|
233
|
+
<div>
|
|
234
|
+
<p>Lorem</p>
|
|
235
|
+
<p>ipsum</p>
|
|
236
|
+
<p>dolor</p>
|
|
237
|
+
<p>sit</p>
|
|
238
|
+
<p>amet,</p>
|
|
239
|
+
<p>consectetur</p>
|
|
240
|
+
<p>adipiscing</p>
|
|
241
|
+
<p>elit,</p>
|
|
242
|
+
<p>sed</p>
|
|
243
|
+
<p>do</p>
|
|
244
|
+
<p>eiusmod</p>
|
|
245
|
+
<p>tempor</p>
|
|
246
|
+
<p>incididunt</p>
|
|
247
|
+
<p>ut</p>
|
|
248
|
+
<p>labore</p>
|
|
249
|
+
<p>et</p>
|
|
250
|
+
<p>dolore</p>
|
|
251
|
+
<p>magna</p>
|
|
252
|
+
<p>aliqua.</p>
|
|
253
|
+
<p>Ut</p>
|
|
254
|
+
<p>enim</p>
|
|
255
|
+
<p>ad</p>
|
|
256
|
+
<p>minim</p>
|
|
257
|
+
<p>veniam,</p>
|
|
258
|
+
<p>quis</p>
|
|
259
|
+
<p>nostrud</p>
|
|
260
|
+
<p>exercitation</p>
|
|
261
|
+
<p>ullamco</p>
|
|
262
|
+
<p>laboris</p>
|
|
263
|
+
<p>nisi</p>
|
|
264
|
+
<p>ut</p>
|
|
265
|
+
<p>aliquip</p>
|
|
266
|
+
<p>ex</p>
|
|
267
|
+
<p>ea</p>
|
|
268
|
+
<p>commodo</p>
|
|
269
|
+
<p>consequat.</p>
|
|
270
|
+
<p>Duis</p>
|
|
271
|
+
<p>aute</p>
|
|
272
|
+
<p>irure</p>
|
|
273
|
+
<p>dolor</p>
|
|
274
|
+
<p>in</p>
|
|
275
|
+
<p>reprehenderit</p>
|
|
276
|
+
<p>in</p>
|
|
277
|
+
<p>voluptate</p>
|
|
278
|
+
<p>velit</p>
|
|
279
|
+
<p>esse</p>
|
|
280
|
+
<p>cillum</p>
|
|
281
|
+
<p>dolore</p>
|
|
282
|
+
<p>eu</p>
|
|
283
|
+
<p>fugiat</p>
|
|
284
|
+
<p>nulla</p>
|
|
285
|
+
<p>pariatur.</p>
|
|
286
|
+
<p>Excepteur</p>
|
|
287
|
+
<p>sint</p>
|
|
288
|
+
<p>occaecat</p>
|
|
289
|
+
<p>cupidatat</p>
|
|
290
|
+
<p>non</p>
|
|
291
|
+
<p>proident,</p>
|
|
292
|
+
<p>sunt</p>
|
|
293
|
+
<p>in</p>
|
|
294
|
+
<p>culpa</p>
|
|
295
|
+
<p>qui</p>
|
|
296
|
+
<p>officia</p>
|
|
297
|
+
<p>deserunt</p>
|
|
298
|
+
<p>mollit</p>
|
|
299
|
+
<p>anim</p>
|
|
300
|
+
<p>id</p>
|
|
301
|
+
<p>est</p>
|
|
302
|
+
<p>laborum.</p>
|
|
303
|
+
</div>
|
|
304
|
+
)}
|
|
305
|
+
</Fragment>
|
|
306
|
+
);
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
export const TitanLayoutLegacy = (args: LayoutContentArgs) => (
|
|
310
|
+
<TitanLayout {...useLayoutProps(args)} appearance="legacy">
|
|
311
|
+
<TitanLayout.Logo title />
|
|
312
|
+
<TitanLayout.Content>
|
|
313
|
+
<div className="p-3">
|
|
314
|
+
<Content {...args} />
|
|
315
|
+
</div>
|
|
316
|
+
</TitanLayout.Content>
|
|
317
|
+
</TitanLayout>
|
|
318
|
+
);
|
|
319
|
+
|
|
320
|
+
export const TitanLayoutAnvil1 = (args: LayoutContentArgs) => (
|
|
321
|
+
<TitanLayout {...useLayoutProps(args)} appearance="anvil1">
|
|
322
|
+
<TitanLayout.Logo title />
|
|
323
|
+
<TitanLayout.Content>
|
|
324
|
+
<Anvil1Page>
|
|
325
|
+
<Content {...args} />
|
|
326
|
+
</Anvil1Page>
|
|
327
|
+
</TitanLayout.Content>
|
|
328
|
+
</TitanLayout>
|
|
329
|
+
);
|
|
330
|
+
|
|
331
|
+
export const TitanLayoutAnvil2 = (args: LayoutContentArgs) => (
|
|
332
|
+
<TitanLayout {...useLayoutProps(args)} appearance="anvil2">
|
|
333
|
+
<TitanLayout.Logo title />
|
|
334
|
+
<TitanLayout.Content>
|
|
335
|
+
<Anvil2Page>
|
|
336
|
+
<Anvil2Page.Content>
|
|
337
|
+
<Content {...args} />
|
|
338
|
+
</Anvil2Page.Content>
|
|
339
|
+
</Anvil2Page>
|
|
340
|
+
</TitanLayout.Content>
|
|
341
|
+
</TitanLayout>
|
|
342
|
+
);
|