@licklist/design 0.72.72-stage.0 → 0.72.72-stage.1
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/header/BookeditHeader.d.ts +1 -4
- package/dist/header/BookeditHeader.d.ts.map +1 -1
- package/dist/header/Header.d.ts +10 -2
- package/dist/header/Header.d.ts.map +1 -1
- package/dist/header/Header.js +31 -5
- package/dist/header/index.d.ts +2 -2
- package/dist/header/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/sales/coupon/form/CouponFrom.d.ts +2 -1
- package/dist/sales/coupon/form/CouponFrom.d.ts.map +1 -1
- package/dist/sales/coupon/form/CouponFrom.js +19 -6
- package/package.json +2 -2
- package/src/header/BookeditHeader.tsx +1 -5
- package/src/header/Header.stories.tsx +39 -90
- package/src/header/Header.tsx +47 -9
- package/src/header/index.ts +2 -2
- package/src/sales/coupon/form/CouponFrom.tsx +20 -8
- package/yarn.lock +132 -122
- package/dist/assets/logo/licklist.sm.svg.js +0 -33
- package/dist/assets/logo/licklist.svg.js +0 -16
- package/dist/header/LicklistHeader.d.ts +0 -15
- package/dist/header/LicklistHeader.d.ts.map +0 -1
- package/dist/header/LicklistHeader.js +0 -23
- package/src/header/LicklistHeader.tsx +0 -46
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookeditHeader.d.ts","sourceRoot":"","sources":["../../src/header/BookeditHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"BookeditHeader.d.ts","sourceRoot":"","sources":["../../src/header/BookeditHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAYP;AAED,eAAe,cAAc,CAAA"}
|
package/dist/header/Header.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
export type NavigationItem = {
|
|
3
3
|
href: string;
|
|
4
4
|
label: string;
|
|
5
|
-
|
|
5
|
+
pathname: string[];
|
|
6
|
+
} | {
|
|
7
|
+
label: string;
|
|
8
|
+
links: {
|
|
9
|
+
href: string;
|
|
10
|
+
label: string;
|
|
11
|
+
pathname: string[];
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
6
14
|
type Props = {
|
|
7
15
|
children?: ReactNode | ReactNode[];
|
|
8
16
|
href?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/header/Header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,MAAM,MAAM,cAAc,GACtB;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB,GACD;IACE,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,EAAE,MAAM,EAAE,CAAA;KACnB,EAAE,CAAA;CACJ,CAAA;AAEL,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E,CAAA;AAED,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAmEP;AAED,eAAe,MAAM,CAAA"}
|
package/dist/header/Header.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { Accordion } from '@mantine/core';
|
|
2
3
|
import Nav from 'react-bootstrap/Nav';
|
|
3
4
|
import Navbar from 'react-bootstrap/Navbar';
|
|
5
|
+
import { NavLink } from 'react-router-dom';
|
|
4
6
|
|
|
5
7
|
function Header(param) {
|
|
6
8
|
var children = param.children, href = param.href, logo = param.logo, leftNavs = param.leftNavs, navItems = param.navItems, renderMobileNavigation = param.renderMobileNavigation;
|
|
@@ -39,12 +41,36 @@ function Header(param) {
|
|
|
39
41
|
id: "header-navbar-nav",
|
|
40
42
|
children: renderMobileNavigation ? renderMobileNavigation(navItems) : /*#__PURE__*/ jsx(Nav, {
|
|
41
43
|
className: "mr-auto",
|
|
42
|
-
children: navItems.map(function(
|
|
43
|
-
|
|
44
|
+
children: navItems.map(function(item) {
|
|
45
|
+
if ('links' in item) {
|
|
46
|
+
return /*#__PURE__*/ jsx(Accordion, {
|
|
47
|
+
defaultValue: "Apples",
|
|
48
|
+
children: /*#__PURE__*/ jsxs(Accordion.Item, {
|
|
49
|
+
value: item.label,
|
|
50
|
+
children: [
|
|
51
|
+
/*#__PURE__*/ jsx(Accordion.Control, {
|
|
52
|
+
children: item.label
|
|
53
|
+
}),
|
|
54
|
+
item.links.map(function(subItem) {
|
|
55
|
+
return /*#__PURE__*/ jsx(Accordion.Panel, {
|
|
56
|
+
children: /*#__PURE__*/ jsx(Nav.Item, {
|
|
57
|
+
children: /*#__PURE__*/ jsx(NavLink, {
|
|
58
|
+
exact: true,
|
|
59
|
+
to: subItem.href,
|
|
60
|
+
className: "nav-link",
|
|
61
|
+
children: subItem.label
|
|
62
|
+
})
|
|
63
|
+
}, "".concat(subItem.label, "-").concat(subItem.href))
|
|
64
|
+
}, subItem.href + subItem.label);
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}
|
|
44
70
|
return /*#__PURE__*/ jsx(Nav.Link, {
|
|
45
|
-
href: href,
|
|
46
|
-
children: label
|
|
47
|
-
}, "".concat(href).concat(label));
|
|
71
|
+
href: item.href,
|
|
72
|
+
children: item.label
|
|
73
|
+
}, "".concat(item.href).concat(item.label));
|
|
48
74
|
})
|
|
49
75
|
})
|
|
50
76
|
})
|
package/dist/header/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BookeditHeader from './BookeditHeader';
|
|
2
|
-
import LicklistHeader from './LicklistHeader';
|
|
3
2
|
import Header from './Header';
|
|
4
3
|
export * from './elements';
|
|
5
|
-
export {
|
|
4
|
+
export { BookeditHeader, Header };
|
|
5
|
+
export type { NavigationItem } from './Header';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,CAAA;AACjC,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,6 @@ export { EventStatisticModal } from './events/event-statistic-modal/EventStatist
|
|
|
30
30
|
export { EventVenueMap } from './events/event-venue-map/EventVenueMap.js';
|
|
31
31
|
export { FileUpload } from './file-upload/FileUpload.js';
|
|
32
32
|
export { default as BookeditHeader } from './header/BookeditHeader.js';
|
|
33
|
-
export { default as LicklistHeader } from './header/LicklistHeader.js';
|
|
34
33
|
export { default as Header } from './header/Header.js';
|
|
35
34
|
export { default as CompanySelector } from './header/elements/CompanySelector.js';
|
|
36
35
|
export { Example, ExampleContent, ExampleToggle } from './help/example/Example.js';
|
|
@@ -23,9 +23,10 @@ export interface CouponFormProps {
|
|
|
23
23
|
productGroups?: ProductGroup[];
|
|
24
24
|
defaultValues?: CouponFormValues;
|
|
25
25
|
onSubmit: (values: CouponFormValues) => void;
|
|
26
|
+
onCancel: () => void;
|
|
26
27
|
isLoading?: boolean;
|
|
27
28
|
hasPermission: boolean;
|
|
28
29
|
serverErrors?: ServerError;
|
|
29
30
|
}
|
|
30
|
-
export declare const CouponForm: ({ onSubmit, defaultValues, isLoading, productGroups, hasPermission, serverErrors, }: CouponFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const CouponForm: ({ onSubmit, onCancel, defaultValues, isLoading, productGroups, hasPermission, serverErrors, }: CouponFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
//# sourceMappingURL=CouponFrom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouponFrom.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/form/CouponFrom.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,eAAe,EAChB,MAAM,+DAA+D,CAAA;AACtE,OAAO,EACL,eAAe,EACf,UAAU,EACX,MAAM,yDAAyD,CAAA;AAIhE,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;
|
|
1
|
+
{"version":3,"file":"CouponFrom.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/form/CouponFrom.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,eAAe,EAChB,MAAM,+DAA+D,CAAA;AACtE,OAAO,EACL,eAAe,EACf,UAAU,EACX,MAAM,yDAAyD,CAAA;AAIhE,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAI3E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,UAAU,CAAA;IACxB,eAAe,EAAE,eAAe,EAAE,CAAA;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,eAAe,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,aAAa,CAAC,EAAE,gBAAgB,CAAA;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC5C,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,eAAO,MAAM,UAAU,kGAQpB,eAAe,4CA6CjB,CAAA"}
|
|
@@ -59,7 +59,7 @@ function _object_spread_props(target, source) {
|
|
|
59
59
|
return target;
|
|
60
60
|
}
|
|
61
61
|
var CouponForm = function(param) {
|
|
62
|
-
var onSubmit = param.onSubmit, defaultValues = param.defaultValues, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, productGroups = param.productGroups, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? false : _param_hasPermission, serverErrors = param.serverErrors;
|
|
62
|
+
var onSubmit = param.onSubmit, onCancel = param.onCancel, defaultValues = param.defaultValues, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, productGroups = param.productGroups, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? false : _param_hasPermission, serverErrors = param.serverErrors;
|
|
63
63
|
var form = useForm({
|
|
64
64
|
defaultValues: defaultValues
|
|
65
65
|
});
|
|
@@ -85,11 +85,24 @@ var CouponForm = function(param) {
|
|
|
85
85
|
productGroups: productGroups,
|
|
86
86
|
isLoading: isLoading
|
|
87
87
|
}),
|
|
88
|
-
hasPermission && /*#__PURE__*/
|
|
89
|
-
className: "
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
hasPermission && /*#__PURE__*/ jsxs("div", {
|
|
89
|
+
className: "tw-flex tw-gap-4",
|
|
90
|
+
children: [
|
|
91
|
+
/*#__PURE__*/ jsx(Button, {
|
|
92
|
+
className: "d-md-block mt-5",
|
|
93
|
+
type: "submit",
|
|
94
|
+
disabled: isLoading,
|
|
95
|
+
children: t('save')
|
|
96
|
+
}),
|
|
97
|
+
/*#__PURE__*/ jsx(Button, {
|
|
98
|
+
className: "mt-5 d-md-block",
|
|
99
|
+
variant: "outline-primary",
|
|
100
|
+
type: "reset",
|
|
101
|
+
onClick: onCancel,
|
|
102
|
+
disabled: isLoading,
|
|
103
|
+
children: t('cancel')
|
|
104
|
+
})
|
|
105
|
+
]
|
|
93
106
|
})
|
|
94
107
|
]
|
|
95
108
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.72.72-stage.
|
|
3
|
+
"version": "0.72.72-stage.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@wojtekmaj/react-daterange-picker": "4.1.0",
|
|
95
95
|
"bootstrap": "4.6.0",
|
|
96
96
|
"bootstrap-social": "5.1.1",
|
|
97
|
-
"clsx": "
|
|
97
|
+
"clsx": "2.1.1",
|
|
98
98
|
"date-fns": "2.29.3",
|
|
99
99
|
"emojibase": "6.1.0",
|
|
100
100
|
"emojibase-data": "7.0.1",
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react'
|
|
2
2
|
import { ReactComponent as LogoSvg } from '../assets/logo/bookedit.svg'
|
|
3
3
|
import Logo from '../logo/Logo'
|
|
4
|
-
import Header from './Header'
|
|
4
|
+
import Header, { NavigationItem } from './Header'
|
|
5
5
|
|
|
6
|
-
interface NavigationItem {
|
|
7
|
-
href: string
|
|
8
|
-
label: string
|
|
9
|
-
}
|
|
10
6
|
interface Props {
|
|
11
7
|
children?: ReactNode | ReactNode[]
|
|
12
8
|
href?: string
|
|
@@ -1,87 +1,38 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react'
|
|
2
2
|
import StyledButton from '../static/StyledButton'
|
|
3
3
|
import BookeditHeader from './BookeditHeader'
|
|
4
4
|
import CompanySelector from './elements/CompanySelector'
|
|
5
|
-
import
|
|
5
|
+
import { NavigationItem } from './Header'
|
|
6
6
|
|
|
7
|
-
const providerNavItems = [
|
|
8
|
-
{ href: `/profile`, label: 'profile' },
|
|
9
|
-
{ href: `/events`, label: 'events' },
|
|
10
|
-
{ href: `/sales`, label: 'salesAndEnquiries' },
|
|
11
|
-
{ href: `/product-sets`, label: 'productSets' },
|
|
12
|
-
{ href: `/affiliates`, label: 'affiliates' },
|
|
13
|
-
{ href: `/product-groups`, label: 'productGroups' },
|
|
14
|
-
{ href: '/#', label: 'loyalty' },
|
|
15
|
-
{ href: '/#', label: 'emailAndSms' },
|
|
16
|
-
{ href: '/#', label: 'followersAndProfiles' },
|
|
7
|
+
const providerNavItems: NavigationItem[] = [
|
|
8
|
+
{ href: `/profile`, label: 'profile', pathname: [] },
|
|
9
|
+
{ href: `/events`, label: 'events', pathname: [] },
|
|
10
|
+
{ href: `/sales`, label: 'salesAndEnquiries', pathname: [] },
|
|
11
|
+
{ href: `/product-sets`, label: 'productSets', pathname: [] },
|
|
12
|
+
{ href: `/affiliates`, label: 'affiliates', pathname: [] },
|
|
13
|
+
{ href: `/product-groups`, label: 'productGroups', pathname: [] },
|
|
14
|
+
{ href: '/#', label: 'loyalty', pathname: [] },
|
|
15
|
+
{ href: '/#', label: 'emailAndSms', pathname: [] },
|
|
16
|
+
{ href: '/#', label: 'followersAndProfiles', pathname: [] },
|
|
17
17
|
]
|
|
18
18
|
|
|
19
19
|
export default {
|
|
20
20
|
title: 'Header',
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export const Licklist = () => (
|
|
24
|
-
<>
|
|
25
|
-
<LicklistHeader
|
|
26
|
-
leftNavs={
|
|
27
|
-
<>
|
|
28
|
-
<ul className='navbar-nav bd-navbar-nav flex-row navbar-nav-primary'>
|
|
29
|
-
<li className='nav-item px-3 px-sm-3 px-lg-4'>
|
|
30
|
-
<Nav.Link href='#'>
|
|
31
|
-
<FaSearch />
|
|
32
|
-
</Nav.Link>
|
|
33
|
-
</li>
|
|
34
|
-
<li className='nav-item px-3 px-sm-4 d-none d-sm-inline'>
|
|
35
|
-
<Nav.Link href='#' className='nav-link-light-grey'>
|
|
36
|
-
Explore
|
|
37
|
-
</Nav.Link>
|
|
38
|
-
</li>
|
|
39
|
-
<li className='nav-item px-3 px-sm-4 d-none d-sm-inline'>
|
|
40
|
-
<Nav.Link href='#' className=''>
|
|
41
|
-
Galleries
|
|
42
|
-
</Nav.Link>
|
|
43
|
-
</li>
|
|
44
|
-
</ul>
|
|
45
|
-
</>
|
|
46
|
-
}
|
|
47
|
-
>
|
|
48
|
-
<StyledButton size='sm' className='rounded-pill mr-2'>
|
|
49
|
-
Login
|
|
50
|
-
</StyledButton>
|
|
51
|
-
<StyledButton
|
|
52
|
-
size='sm'
|
|
53
|
-
className='rounded-pill'
|
|
54
|
-
variant='outline-secondary'
|
|
55
|
-
>
|
|
56
|
-
Sign up
|
|
57
|
-
</StyledButton>
|
|
58
|
-
</LicklistHeader>
|
|
59
|
-
</>
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
Licklist.story = {
|
|
63
|
-
parameters: {
|
|
64
|
-
info: `
|
|
65
|
-
Licklist header component
|
|
66
|
-
`,
|
|
67
|
-
},
|
|
68
|
-
}
|
|
69
|
-
|
|
70
23
|
export const Bookedit = () => (
|
|
71
|
-
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</BookeditHeader>
|
|
84
|
-
</>
|
|
24
|
+
<BookeditHeader navItems={providerNavItems}>
|
|
25
|
+
<StyledButton size='sm' className='rounded-pill mr-2'>
|
|
26
|
+
Login
|
|
27
|
+
</StyledButton>
|
|
28
|
+
<StyledButton
|
|
29
|
+
size='sm'
|
|
30
|
+
className='rounded-pill'
|
|
31
|
+
variant='outline-secondary'
|
|
32
|
+
>
|
|
33
|
+
Sign up
|
|
34
|
+
</StyledButton>
|
|
35
|
+
</BookeditHeader>
|
|
85
36
|
)
|
|
86
37
|
|
|
87
38
|
Bookedit.story = {
|
|
@@ -93,23 +44,21 @@ Bookedit.story = {
|
|
|
93
44
|
}
|
|
94
45
|
|
|
95
46
|
export const BookeditWithElements = () => (
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/>
|
|
112
|
-
</>
|
|
47
|
+
<BookeditHeader
|
|
48
|
+
leftNavs={
|
|
49
|
+
<div className='header-elements'>
|
|
50
|
+
<CompanySelector
|
|
51
|
+
value={1}
|
|
52
|
+
list={[
|
|
53
|
+
{ id: 1, title: 'Company #1' },
|
|
54
|
+
{ id: 2, title: 'Company #2' },
|
|
55
|
+
]}
|
|
56
|
+
onChange={() => null}
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
}
|
|
60
|
+
navItems={providerNavItems}
|
|
61
|
+
/>
|
|
113
62
|
)
|
|
114
63
|
|
|
115
64
|
BookeditWithElements.story = {
|
package/src/header/Header.tsx
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
import { Accordion } from '@mantine/core'
|
|
1
2
|
import { ReactNode } from 'react'
|
|
2
3
|
import Nav from 'react-bootstrap/Nav'
|
|
3
4
|
import Navbar from 'react-bootstrap/Navbar'
|
|
5
|
+
import { NavLink } from 'react-router-dom'
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export type NavigationItem =
|
|
8
|
+
| {
|
|
9
|
+
href: string
|
|
10
|
+
label: string
|
|
11
|
+
pathname: string[]
|
|
12
|
+
}
|
|
13
|
+
| {
|
|
14
|
+
label: string
|
|
15
|
+
links: {
|
|
16
|
+
href: string
|
|
17
|
+
label: string
|
|
18
|
+
pathname: string[]
|
|
19
|
+
}[]
|
|
20
|
+
}
|
|
9
21
|
|
|
10
22
|
type Props = {
|
|
11
23
|
children?: ReactNode | ReactNode[]
|
|
@@ -53,11 +65,37 @@ function Header({
|
|
|
53
65
|
renderMobileNavigation(navItems)
|
|
54
66
|
) : (
|
|
55
67
|
<Nav className='mr-auto'>
|
|
56
|
-
{navItems.map((
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
68
|
+
{navItems.map((item) => {
|
|
69
|
+
if ('links' in item) {
|
|
70
|
+
return (
|
|
71
|
+
<Accordion defaultValue='Apples'>
|
|
72
|
+
<Accordion.Item value={item.label}>
|
|
73
|
+
<Accordion.Control>{item.label}</Accordion.Control>
|
|
74
|
+
{item.links.map((subItem) => (
|
|
75
|
+
<Accordion.Panel key={subItem.href + subItem.label}>
|
|
76
|
+
<Nav.Item key={`${subItem.label}-${subItem.href}`}>
|
|
77
|
+
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
78
|
+
{/* @ts-ignore */}
|
|
79
|
+
<NavLink
|
|
80
|
+
exact
|
|
81
|
+
to={subItem.href}
|
|
82
|
+
className='nav-link'
|
|
83
|
+
>
|
|
84
|
+
{subItem.label}
|
|
85
|
+
</NavLink>
|
|
86
|
+
</Nav.Item>
|
|
87
|
+
</Accordion.Panel>
|
|
88
|
+
))}
|
|
89
|
+
</Accordion.Item>
|
|
90
|
+
</Accordion>
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
return (
|
|
94
|
+
<Nav.Link href={item.href} key={`${item.href}${item.label}`}>
|
|
95
|
+
{item.label}
|
|
96
|
+
</Nav.Link>
|
|
97
|
+
)
|
|
98
|
+
})}
|
|
61
99
|
</Nav>
|
|
62
100
|
)}
|
|
63
101
|
</Navbar.Collapse>
|
package/src/header/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BookeditHeader from './BookeditHeader'
|
|
2
|
-
import LicklistHeader from './LicklistHeader'
|
|
3
2
|
import Header from './Header'
|
|
4
3
|
|
|
5
4
|
export * from './elements'
|
|
6
5
|
|
|
7
|
-
export {
|
|
6
|
+
export { BookeditHeader, Header }
|
|
7
|
+
export type { NavigationItem } from './Header'
|
|
@@ -12,7 +12,6 @@ import { useForm, FormProvider } from 'react-hook-form'
|
|
|
12
12
|
import { useTranslation } from 'react-i18next'
|
|
13
13
|
import { ServerError } from '@licklist/plugins/dist/hooks/Api/useHttpQuery'
|
|
14
14
|
import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService'
|
|
15
|
-
|
|
16
15
|
import { CouponFormControl } from '../control'
|
|
17
16
|
|
|
18
17
|
export interface CouponFormValues {
|
|
@@ -38,6 +37,7 @@ export interface CouponFormProps {
|
|
|
38
37
|
productGroups?: ProductGroup[]
|
|
39
38
|
defaultValues?: CouponFormValues
|
|
40
39
|
onSubmit: (values: CouponFormValues) => void
|
|
40
|
+
onCancel: () => void
|
|
41
41
|
isLoading?: boolean
|
|
42
42
|
hasPermission: boolean
|
|
43
43
|
serverErrors?: ServerError
|
|
@@ -45,6 +45,7 @@ export interface CouponFormProps {
|
|
|
45
45
|
|
|
46
46
|
export const CouponForm = ({
|
|
47
47
|
onSubmit,
|
|
48
|
+
onCancel,
|
|
48
49
|
defaultValues,
|
|
49
50
|
isLoading = false,
|
|
50
51
|
productGroups,
|
|
@@ -73,13 +74,24 @@ export const CouponForm = ({
|
|
|
73
74
|
isLoading={isLoading}
|
|
74
75
|
/>
|
|
75
76
|
{hasPermission && (
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
<div className='tw-flex tw-gap-4'>
|
|
78
|
+
<Button
|
|
79
|
+
className='d-md-block mt-5'
|
|
80
|
+
type='submit'
|
|
81
|
+
disabled={isLoading}
|
|
82
|
+
>
|
|
83
|
+
{t('save')}
|
|
84
|
+
</Button>
|
|
85
|
+
<Button
|
|
86
|
+
className='mt-5 d-md-block'
|
|
87
|
+
variant='outline-primary'
|
|
88
|
+
type='reset'
|
|
89
|
+
onClick={onCancel}
|
|
90
|
+
disabled={isLoading}
|
|
91
|
+
>
|
|
92
|
+
{t('cancel')}
|
|
93
|
+
</Button>
|
|
94
|
+
</div>
|
|
83
95
|
)}
|
|
84
96
|
</Form>
|
|
85
97
|
</FormProvider>
|
package/yarn.lock
CHANGED
|
@@ -2584,7 +2584,7 @@ __metadata:
|
|
|
2584
2584
|
babel-loader: "npm:8.2.2"
|
|
2585
2585
|
bootstrap: "npm:4.6.0"
|
|
2586
2586
|
bootstrap-social: "npm:5.1.1"
|
|
2587
|
-
clsx: "npm:
|
|
2587
|
+
clsx: "npm:2.1.1"
|
|
2588
2588
|
css-loader: "npm:5.1.1"
|
|
2589
2589
|
cssnano: "npm:7.0.6"
|
|
2590
2590
|
date-fns: "npm:2.29.3"
|
|
@@ -3303,142 +3303,142 @@ __metadata:
|
|
|
3303
3303
|
languageName: node
|
|
3304
3304
|
linkType: hard
|
|
3305
3305
|
|
|
3306
|
-
"@rollup/rollup-android-arm-eabi@npm:4.
|
|
3307
|
-
version: 4.
|
|
3308
|
-
resolution: "@rollup/rollup-android-arm-eabi@npm:4.
|
|
3306
|
+
"@rollup/rollup-android-arm-eabi@npm:4.39.0":
|
|
3307
|
+
version: 4.39.0
|
|
3308
|
+
resolution: "@rollup/rollup-android-arm-eabi@npm:4.39.0"
|
|
3309
3309
|
conditions: os=android & cpu=arm
|
|
3310
3310
|
languageName: node
|
|
3311
3311
|
linkType: hard
|
|
3312
3312
|
|
|
3313
|
-
"@rollup/rollup-android-arm64@npm:4.
|
|
3314
|
-
version: 4.
|
|
3315
|
-
resolution: "@rollup/rollup-android-arm64@npm:4.
|
|
3313
|
+
"@rollup/rollup-android-arm64@npm:4.39.0":
|
|
3314
|
+
version: 4.39.0
|
|
3315
|
+
resolution: "@rollup/rollup-android-arm64@npm:4.39.0"
|
|
3316
3316
|
conditions: os=android & cpu=arm64
|
|
3317
3317
|
languageName: node
|
|
3318
3318
|
linkType: hard
|
|
3319
3319
|
|
|
3320
|
-
"@rollup/rollup-darwin-arm64@npm:4.
|
|
3321
|
-
version: 4.
|
|
3322
|
-
resolution: "@rollup/rollup-darwin-arm64@npm:4.
|
|
3320
|
+
"@rollup/rollup-darwin-arm64@npm:4.39.0":
|
|
3321
|
+
version: 4.39.0
|
|
3322
|
+
resolution: "@rollup/rollup-darwin-arm64@npm:4.39.0"
|
|
3323
3323
|
conditions: os=darwin & cpu=arm64
|
|
3324
3324
|
languageName: node
|
|
3325
3325
|
linkType: hard
|
|
3326
3326
|
|
|
3327
|
-
"@rollup/rollup-darwin-x64@npm:4.
|
|
3328
|
-
version: 4.
|
|
3329
|
-
resolution: "@rollup/rollup-darwin-x64@npm:4.
|
|
3327
|
+
"@rollup/rollup-darwin-x64@npm:4.39.0":
|
|
3328
|
+
version: 4.39.0
|
|
3329
|
+
resolution: "@rollup/rollup-darwin-x64@npm:4.39.0"
|
|
3330
3330
|
conditions: os=darwin & cpu=x64
|
|
3331
3331
|
languageName: node
|
|
3332
3332
|
linkType: hard
|
|
3333
3333
|
|
|
3334
|
-
"@rollup/rollup-freebsd-arm64@npm:4.
|
|
3335
|
-
version: 4.
|
|
3336
|
-
resolution: "@rollup/rollup-freebsd-arm64@npm:4.
|
|
3334
|
+
"@rollup/rollup-freebsd-arm64@npm:4.39.0":
|
|
3335
|
+
version: 4.39.0
|
|
3336
|
+
resolution: "@rollup/rollup-freebsd-arm64@npm:4.39.0"
|
|
3337
3337
|
conditions: os=freebsd & cpu=arm64
|
|
3338
3338
|
languageName: node
|
|
3339
3339
|
linkType: hard
|
|
3340
3340
|
|
|
3341
|
-
"@rollup/rollup-freebsd-x64@npm:4.
|
|
3342
|
-
version: 4.
|
|
3343
|
-
resolution: "@rollup/rollup-freebsd-x64@npm:4.
|
|
3341
|
+
"@rollup/rollup-freebsd-x64@npm:4.39.0":
|
|
3342
|
+
version: 4.39.0
|
|
3343
|
+
resolution: "@rollup/rollup-freebsd-x64@npm:4.39.0"
|
|
3344
3344
|
conditions: os=freebsd & cpu=x64
|
|
3345
3345
|
languageName: node
|
|
3346
3346
|
linkType: hard
|
|
3347
3347
|
|
|
3348
|
-
"@rollup/rollup-linux-arm-gnueabihf@npm:4.
|
|
3349
|
-
version: 4.
|
|
3350
|
-
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.
|
|
3348
|
+
"@rollup/rollup-linux-arm-gnueabihf@npm:4.39.0":
|
|
3349
|
+
version: 4.39.0
|
|
3350
|
+
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.39.0"
|
|
3351
3351
|
conditions: os=linux & cpu=arm & libc=glibc
|
|
3352
3352
|
languageName: node
|
|
3353
3353
|
linkType: hard
|
|
3354
3354
|
|
|
3355
|
-
"@rollup/rollup-linux-arm-musleabihf@npm:4.
|
|
3356
|
-
version: 4.
|
|
3357
|
-
resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.
|
|
3355
|
+
"@rollup/rollup-linux-arm-musleabihf@npm:4.39.0":
|
|
3356
|
+
version: 4.39.0
|
|
3357
|
+
resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.39.0"
|
|
3358
3358
|
conditions: os=linux & cpu=arm & libc=musl
|
|
3359
3359
|
languageName: node
|
|
3360
3360
|
linkType: hard
|
|
3361
3361
|
|
|
3362
|
-
"@rollup/rollup-linux-arm64-gnu@npm:4.
|
|
3363
|
-
version: 4.
|
|
3364
|
-
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.
|
|
3362
|
+
"@rollup/rollup-linux-arm64-gnu@npm:4.39.0":
|
|
3363
|
+
version: 4.39.0
|
|
3364
|
+
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.39.0"
|
|
3365
3365
|
conditions: os=linux & cpu=arm64 & libc=glibc
|
|
3366
3366
|
languageName: node
|
|
3367
3367
|
linkType: hard
|
|
3368
3368
|
|
|
3369
|
-
"@rollup/rollup-linux-arm64-musl@npm:4.
|
|
3370
|
-
version: 4.
|
|
3371
|
-
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.
|
|
3369
|
+
"@rollup/rollup-linux-arm64-musl@npm:4.39.0":
|
|
3370
|
+
version: 4.39.0
|
|
3371
|
+
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.39.0"
|
|
3372
3372
|
conditions: os=linux & cpu=arm64 & libc=musl
|
|
3373
3373
|
languageName: node
|
|
3374
3374
|
linkType: hard
|
|
3375
3375
|
|
|
3376
|
-
"@rollup/rollup-linux-loongarch64-gnu@npm:4.
|
|
3377
|
-
version: 4.
|
|
3378
|
-
resolution: "@rollup/rollup-linux-loongarch64-gnu@npm:4.
|
|
3376
|
+
"@rollup/rollup-linux-loongarch64-gnu@npm:4.39.0":
|
|
3377
|
+
version: 4.39.0
|
|
3378
|
+
resolution: "@rollup/rollup-linux-loongarch64-gnu@npm:4.39.0"
|
|
3379
3379
|
conditions: os=linux & cpu=loong64 & libc=glibc
|
|
3380
3380
|
languageName: node
|
|
3381
3381
|
linkType: hard
|
|
3382
3382
|
|
|
3383
|
-
"@rollup/rollup-linux-powerpc64le-gnu@npm:4.
|
|
3384
|
-
version: 4.
|
|
3385
|
-
resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.
|
|
3383
|
+
"@rollup/rollup-linux-powerpc64le-gnu@npm:4.39.0":
|
|
3384
|
+
version: 4.39.0
|
|
3385
|
+
resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.39.0"
|
|
3386
3386
|
conditions: os=linux & cpu=ppc64 & libc=glibc
|
|
3387
3387
|
languageName: node
|
|
3388
3388
|
linkType: hard
|
|
3389
3389
|
|
|
3390
|
-
"@rollup/rollup-linux-riscv64-gnu@npm:4.
|
|
3391
|
-
version: 4.
|
|
3392
|
-
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.
|
|
3390
|
+
"@rollup/rollup-linux-riscv64-gnu@npm:4.39.0":
|
|
3391
|
+
version: 4.39.0
|
|
3392
|
+
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.39.0"
|
|
3393
3393
|
conditions: os=linux & cpu=riscv64 & libc=glibc
|
|
3394
3394
|
languageName: node
|
|
3395
3395
|
linkType: hard
|
|
3396
3396
|
|
|
3397
|
-
"@rollup/rollup-linux-riscv64-musl@npm:4.
|
|
3398
|
-
version: 4.
|
|
3399
|
-
resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.
|
|
3397
|
+
"@rollup/rollup-linux-riscv64-musl@npm:4.39.0":
|
|
3398
|
+
version: 4.39.0
|
|
3399
|
+
resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.39.0"
|
|
3400
3400
|
conditions: os=linux & cpu=riscv64 & libc=musl
|
|
3401
3401
|
languageName: node
|
|
3402
3402
|
linkType: hard
|
|
3403
3403
|
|
|
3404
|
-
"@rollup/rollup-linux-s390x-gnu@npm:4.
|
|
3405
|
-
version: 4.
|
|
3406
|
-
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.
|
|
3404
|
+
"@rollup/rollup-linux-s390x-gnu@npm:4.39.0":
|
|
3405
|
+
version: 4.39.0
|
|
3406
|
+
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.39.0"
|
|
3407
3407
|
conditions: os=linux & cpu=s390x & libc=glibc
|
|
3408
3408
|
languageName: node
|
|
3409
3409
|
linkType: hard
|
|
3410
3410
|
|
|
3411
|
-
"@rollup/rollup-linux-x64-gnu@npm:4.
|
|
3412
|
-
version: 4.
|
|
3413
|
-
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.
|
|
3411
|
+
"@rollup/rollup-linux-x64-gnu@npm:4.39.0":
|
|
3412
|
+
version: 4.39.0
|
|
3413
|
+
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.39.0"
|
|
3414
3414
|
conditions: os=linux & cpu=x64 & libc=glibc
|
|
3415
3415
|
languageName: node
|
|
3416
3416
|
linkType: hard
|
|
3417
3417
|
|
|
3418
|
-
"@rollup/rollup-linux-x64-musl@npm:4.
|
|
3419
|
-
version: 4.
|
|
3420
|
-
resolution: "@rollup/rollup-linux-x64-musl@npm:4.
|
|
3418
|
+
"@rollup/rollup-linux-x64-musl@npm:4.39.0":
|
|
3419
|
+
version: 4.39.0
|
|
3420
|
+
resolution: "@rollup/rollup-linux-x64-musl@npm:4.39.0"
|
|
3421
3421
|
conditions: os=linux & cpu=x64 & libc=musl
|
|
3422
3422
|
languageName: node
|
|
3423
3423
|
linkType: hard
|
|
3424
3424
|
|
|
3425
|
-
"@rollup/rollup-win32-arm64-msvc@npm:4.
|
|
3426
|
-
version: 4.
|
|
3427
|
-
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.
|
|
3425
|
+
"@rollup/rollup-win32-arm64-msvc@npm:4.39.0":
|
|
3426
|
+
version: 4.39.0
|
|
3427
|
+
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.39.0"
|
|
3428
3428
|
conditions: os=win32 & cpu=arm64
|
|
3429
3429
|
languageName: node
|
|
3430
3430
|
linkType: hard
|
|
3431
3431
|
|
|
3432
|
-
"@rollup/rollup-win32-ia32-msvc@npm:4.
|
|
3433
|
-
version: 4.
|
|
3434
|
-
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.
|
|
3432
|
+
"@rollup/rollup-win32-ia32-msvc@npm:4.39.0":
|
|
3433
|
+
version: 4.39.0
|
|
3434
|
+
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.39.0"
|
|
3435
3435
|
conditions: os=win32 & cpu=ia32
|
|
3436
3436
|
languageName: node
|
|
3437
3437
|
linkType: hard
|
|
3438
3438
|
|
|
3439
|
-
"@rollup/rollup-win32-x64-msvc@npm:4.
|
|
3440
|
-
version: 4.
|
|
3441
|
-
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.
|
|
3439
|
+
"@rollup/rollup-win32-x64-msvc@npm:4.39.0":
|
|
3440
|
+
version: 4.39.0
|
|
3441
|
+
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.39.0"
|
|
3442
3442
|
conditions: os=win32 & cpu=x64
|
|
3443
3443
|
languageName: node
|
|
3444
3444
|
linkType: hard
|
|
@@ -5101,11 +5101,11 @@ __metadata:
|
|
|
5101
5101
|
linkType: hard
|
|
5102
5102
|
|
|
5103
5103
|
"@swc/types@npm:^0.1.9":
|
|
5104
|
-
version: 0.1.
|
|
5105
|
-
resolution: "@swc/types@npm:0.1.
|
|
5104
|
+
version: 0.1.21
|
|
5105
|
+
resolution: "@swc/types@npm:0.1.21"
|
|
5106
5106
|
dependencies:
|
|
5107
5107
|
"@swc/counter": "npm:^0.1.3"
|
|
5108
|
-
checksum: 10c0/
|
|
5108
|
+
checksum: 10c0/2baa89c824426e0de0c84e212278010e2df8dc2d6ffaa6f1e306e1b2930c6404b3d3f8989307e8c42ceb95ac143ab7a80be138af6a014d5c782dce5be94dcd5e
|
|
5109
5109
|
languageName: node
|
|
5110
5110
|
linkType: hard
|
|
5111
5111
|
|
|
@@ -5699,11 +5699,11 @@ __metadata:
|
|
|
5699
5699
|
linkType: hard
|
|
5700
5700
|
|
|
5701
5701
|
"@types/node@npm:*":
|
|
5702
|
-
version: 22.13.
|
|
5703
|
-
resolution: "@types/node@npm:22.13.
|
|
5702
|
+
version: 22.13.17
|
|
5703
|
+
resolution: "@types/node@npm:22.13.17"
|
|
5704
5704
|
dependencies:
|
|
5705
5705
|
undici-types: "npm:~6.20.0"
|
|
5706
|
-
checksum: 10c0/
|
|
5706
|
+
checksum: 10c0/77a052fec0fe02f60557e1c5f3f28eb09cd9bee426be88328a94689150a3c0df5b4b6b69fad28157fb34521693dad0b311ecd7f613845d681ff973991310c20e
|
|
5707
5707
|
languageName: node
|
|
5708
5708
|
linkType: hard
|
|
5709
5709
|
|
|
@@ -8379,6 +8379,13 @@ __metadata:
|
|
|
8379
8379
|
languageName: node
|
|
8380
8380
|
linkType: hard
|
|
8381
8381
|
|
|
8382
|
+
"clsx@npm:2.1.1, clsx@npm:^2.0.0":
|
|
8383
|
+
version: 2.1.1
|
|
8384
|
+
resolution: "clsx@npm:2.1.1"
|
|
8385
|
+
checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
|
|
8386
|
+
languageName: node
|
|
8387
|
+
linkType: hard
|
|
8388
|
+
|
|
8382
8389
|
"clsx@npm:^1.0.4, clsx@npm:^1.1.1, clsx@npm:^1.2.1":
|
|
8383
8390
|
version: 1.2.1
|
|
8384
8391
|
resolution: "clsx@npm:1.2.1"
|
|
@@ -8386,13 +8393,6 @@ __metadata:
|
|
|
8386
8393
|
languageName: node
|
|
8387
8394
|
linkType: hard
|
|
8388
8395
|
|
|
8389
|
-
"clsx@npm:^2.0.0":
|
|
8390
|
-
version: 2.1.1
|
|
8391
|
-
resolution: "clsx@npm:2.1.1"
|
|
8392
|
-
checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
|
|
8393
|
-
languageName: node
|
|
8394
|
-
linkType: hard
|
|
8395
|
-
|
|
8396
8396
|
"code-point-at@npm:^1.0.0":
|
|
8397
8397
|
version: 1.1.0
|
|
8398
8398
|
resolution: "code-point-at@npm:1.1.0"
|
|
@@ -9867,9 +9867,9 @@ __metadata:
|
|
|
9867
9867
|
linkType: hard
|
|
9868
9868
|
|
|
9869
9869
|
"electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.73":
|
|
9870
|
-
version: 1.5.
|
|
9871
|
-
resolution: "electron-to-chromium@npm:1.5.
|
|
9872
|
-
checksum: 10c0/
|
|
9870
|
+
version: 1.5.129
|
|
9871
|
+
resolution: "electron-to-chromium@npm:1.5.129"
|
|
9872
|
+
checksum: 10c0/b497cf5fb53c0b7eb9de39ad529371f934c71eca35091bd36e68874fe02f291c6ef31d5f6c7b0cf13d73911ffea2927276178642a7249684609d17a99af061ff
|
|
9873
9873
|
languageName: node
|
|
9874
9874
|
linkType: hard
|
|
9875
9875
|
|
|
@@ -11007,6 +11007,18 @@ __metadata:
|
|
|
11007
11007
|
languageName: node
|
|
11008
11008
|
linkType: hard
|
|
11009
11009
|
|
|
11010
|
+
"fdir@npm:^6.4.3":
|
|
11011
|
+
version: 6.4.3
|
|
11012
|
+
resolution: "fdir@npm:6.4.3"
|
|
11013
|
+
peerDependencies:
|
|
11014
|
+
picomatch: ^3 || ^4
|
|
11015
|
+
peerDependenciesMeta:
|
|
11016
|
+
picomatch:
|
|
11017
|
+
optional: true
|
|
11018
|
+
checksum: 10c0/d13c10120e9625adf21d8d80481586200759928c19405a816b77dd28eaeb80e7c59c5def3e2941508045eb06d34eb47fad865ccc8bf98e6ab988bb0ed160fb6f
|
|
11019
|
+
languageName: node
|
|
11020
|
+
linkType: hard
|
|
11021
|
+
|
|
11010
11022
|
"figgy-pudding@npm:^3.5.1":
|
|
11011
11023
|
version: 3.5.2
|
|
11012
11024
|
resolution: "figgy-pudding@npm:3.5.2"
|
|
@@ -11760,7 +11772,7 @@ __metadata:
|
|
|
11760
11772
|
languageName: node
|
|
11761
11773
|
linkType: hard
|
|
11762
11774
|
|
|
11763
|
-
"glob@npm:^10.2.2, glob@npm:^10.3.10
|
|
11775
|
+
"glob@npm:^10.2.2, glob@npm:^10.3.10":
|
|
11764
11776
|
version: 10.4.5
|
|
11765
11777
|
resolution: "glob@npm:10.4.5"
|
|
11766
11778
|
dependencies:
|
|
@@ -14761,12 +14773,11 @@ __metadata:
|
|
|
14761
14773
|
linkType: hard
|
|
14762
14774
|
|
|
14763
14775
|
"minizlib@npm:^3.0.1":
|
|
14764
|
-
version: 3.0.
|
|
14765
|
-
resolution: "minizlib@npm:3.0.
|
|
14776
|
+
version: 3.0.2
|
|
14777
|
+
resolution: "minizlib@npm:3.0.2"
|
|
14766
14778
|
dependencies:
|
|
14767
|
-
minipass: "npm:^7.
|
|
14768
|
-
|
|
14769
|
-
checksum: 10c0/82f8bf70da8af656909a8ee299d7ed3b3372636749d29e105f97f20e88971be31f5ed7642f2e898f00283b68b701cc01307401cdc209b0efc5dd3818220e5093
|
|
14779
|
+
minipass: "npm:^7.1.2"
|
|
14780
|
+
checksum: 10c0/9f3bd35e41d40d02469cb30470c55ccc21cae0db40e08d1d0b1dff01cc8cc89a6f78e9c5d2b7c844e485ec0a8abc2238111213fdc5b2038e6d1012eacf316f78
|
|
14770
14781
|
languageName: node
|
|
14771
14782
|
linkType: hard
|
|
14772
14783
|
|
|
@@ -15063,22 +15074,22 @@ __metadata:
|
|
|
15063
15074
|
linkType: hard
|
|
15064
15075
|
|
|
15065
15076
|
"node-gyp@npm:latest":
|
|
15066
|
-
version: 11.
|
|
15067
|
-
resolution: "node-gyp@npm:11.
|
|
15077
|
+
version: 11.2.0
|
|
15078
|
+
resolution: "node-gyp@npm:11.2.0"
|
|
15068
15079
|
dependencies:
|
|
15069
15080
|
env-paths: "npm:^2.2.0"
|
|
15070
15081
|
exponential-backoff: "npm:^3.1.1"
|
|
15071
|
-
glob: "npm:^10.3.10"
|
|
15072
15082
|
graceful-fs: "npm:^4.2.6"
|
|
15073
15083
|
make-fetch-happen: "npm:^14.0.3"
|
|
15074
15084
|
nopt: "npm:^8.0.0"
|
|
15075
15085
|
proc-log: "npm:^5.0.0"
|
|
15076
15086
|
semver: "npm:^7.3.5"
|
|
15077
15087
|
tar: "npm:^7.4.3"
|
|
15088
|
+
tinyglobby: "npm:^0.2.12"
|
|
15078
15089
|
which: "npm:^5.0.0"
|
|
15079
15090
|
bin:
|
|
15080
15091
|
node-gyp: bin/node-gyp.js
|
|
15081
|
-
checksum: 10c0/
|
|
15092
|
+
checksum: 10c0/bd8d8c76b06be761239b0c8680f655f6a6e90b48e44d43415b11c16f7e8c15be346fba0cbf71588c7cdfb52c419d928a7d3db353afc1d952d19756237d8f10b9
|
|
15082
15093
|
languageName: node
|
|
15083
15094
|
linkType: hard
|
|
15084
15095
|
|
|
@@ -18783,17 +18794,6 @@ __metadata:
|
|
|
18783
18794
|
languageName: node
|
|
18784
18795
|
linkType: hard
|
|
18785
18796
|
|
|
18786
|
-
"rimraf@npm:^5.0.5":
|
|
18787
|
-
version: 5.0.10
|
|
18788
|
-
resolution: "rimraf@npm:5.0.10"
|
|
18789
|
-
dependencies:
|
|
18790
|
-
glob: "npm:^10.3.7"
|
|
18791
|
-
bin:
|
|
18792
|
-
rimraf: dist/esm/bin.mjs
|
|
18793
|
-
checksum: 10c0/7da4fd0e15118ee05b918359462cfa1e7fe4b1228c7765195a45b55576e8c15b95db513b8466ec89129666f4af45ad978a3057a02139afba1a63512a2d9644cc
|
|
18794
|
-
languageName: node
|
|
18795
|
-
linkType: hard
|
|
18796
|
-
|
|
18797
18797
|
"ripemd160@npm:^2.0.0, ripemd160@npm:^2.0.1":
|
|
18798
18798
|
version: 2.0.2
|
|
18799
18799
|
resolution: "ripemd160@npm:2.0.2"
|
|
@@ -18907,29 +18907,29 @@ __metadata:
|
|
|
18907
18907
|
linkType: hard
|
|
18908
18908
|
|
|
18909
18909
|
"rollup@npm:^4.13.0":
|
|
18910
|
-
version: 4.
|
|
18911
|
-
resolution: "rollup@npm:4.
|
|
18912
|
-
dependencies:
|
|
18913
|
-
"@rollup/rollup-android-arm-eabi": "npm:4.
|
|
18914
|
-
"@rollup/rollup-android-arm64": "npm:4.
|
|
18915
|
-
"@rollup/rollup-darwin-arm64": "npm:4.
|
|
18916
|
-
"@rollup/rollup-darwin-x64": "npm:4.
|
|
18917
|
-
"@rollup/rollup-freebsd-arm64": "npm:4.
|
|
18918
|
-
"@rollup/rollup-freebsd-x64": "npm:4.
|
|
18919
|
-
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.
|
|
18920
|
-
"@rollup/rollup-linux-arm-musleabihf": "npm:4.
|
|
18921
|
-
"@rollup/rollup-linux-arm64-gnu": "npm:4.
|
|
18922
|
-
"@rollup/rollup-linux-arm64-musl": "npm:4.
|
|
18923
|
-
"@rollup/rollup-linux-loongarch64-gnu": "npm:4.
|
|
18924
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "npm:4.
|
|
18925
|
-
"@rollup/rollup-linux-riscv64-gnu": "npm:4.
|
|
18926
|
-
"@rollup/rollup-linux-riscv64-musl": "npm:4.
|
|
18927
|
-
"@rollup/rollup-linux-s390x-gnu": "npm:4.
|
|
18928
|
-
"@rollup/rollup-linux-x64-gnu": "npm:4.
|
|
18929
|
-
"@rollup/rollup-linux-x64-musl": "npm:4.
|
|
18930
|
-
"@rollup/rollup-win32-arm64-msvc": "npm:4.
|
|
18931
|
-
"@rollup/rollup-win32-ia32-msvc": "npm:4.
|
|
18932
|
-
"@rollup/rollup-win32-x64-msvc": "npm:4.
|
|
18910
|
+
version: 4.39.0
|
|
18911
|
+
resolution: "rollup@npm:4.39.0"
|
|
18912
|
+
dependencies:
|
|
18913
|
+
"@rollup/rollup-android-arm-eabi": "npm:4.39.0"
|
|
18914
|
+
"@rollup/rollup-android-arm64": "npm:4.39.0"
|
|
18915
|
+
"@rollup/rollup-darwin-arm64": "npm:4.39.0"
|
|
18916
|
+
"@rollup/rollup-darwin-x64": "npm:4.39.0"
|
|
18917
|
+
"@rollup/rollup-freebsd-arm64": "npm:4.39.0"
|
|
18918
|
+
"@rollup/rollup-freebsd-x64": "npm:4.39.0"
|
|
18919
|
+
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.39.0"
|
|
18920
|
+
"@rollup/rollup-linux-arm-musleabihf": "npm:4.39.0"
|
|
18921
|
+
"@rollup/rollup-linux-arm64-gnu": "npm:4.39.0"
|
|
18922
|
+
"@rollup/rollup-linux-arm64-musl": "npm:4.39.0"
|
|
18923
|
+
"@rollup/rollup-linux-loongarch64-gnu": "npm:4.39.0"
|
|
18924
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "npm:4.39.0"
|
|
18925
|
+
"@rollup/rollup-linux-riscv64-gnu": "npm:4.39.0"
|
|
18926
|
+
"@rollup/rollup-linux-riscv64-musl": "npm:4.39.0"
|
|
18927
|
+
"@rollup/rollup-linux-s390x-gnu": "npm:4.39.0"
|
|
18928
|
+
"@rollup/rollup-linux-x64-gnu": "npm:4.39.0"
|
|
18929
|
+
"@rollup/rollup-linux-x64-musl": "npm:4.39.0"
|
|
18930
|
+
"@rollup/rollup-win32-arm64-msvc": "npm:4.39.0"
|
|
18931
|
+
"@rollup/rollup-win32-ia32-msvc": "npm:4.39.0"
|
|
18932
|
+
"@rollup/rollup-win32-x64-msvc": "npm:4.39.0"
|
|
18933
18933
|
"@types/estree": "npm:1.0.7"
|
|
18934
18934
|
fsevents: "npm:~2.3.2"
|
|
18935
18935
|
dependenciesMeta:
|
|
@@ -18977,7 +18977,7 @@ __metadata:
|
|
|
18977
18977
|
optional: true
|
|
18978
18978
|
bin:
|
|
18979
18979
|
rollup: dist/bin/rollup
|
|
18980
|
-
checksum: 10c0/
|
|
18980
|
+
checksum: 10c0/2dc0c23ca04bd00295035b405c977261559aed8acc9902ee9ff44e4a6b54734fcb64999c32143c43804dcb543da7983032831b893a902633b006c21848a093ce
|
|
18981
18981
|
languageName: node
|
|
18982
18982
|
linkType: hard
|
|
18983
18983
|
|
|
@@ -20660,6 +20660,16 @@ __metadata:
|
|
|
20660
20660
|
languageName: node
|
|
20661
20661
|
linkType: hard
|
|
20662
20662
|
|
|
20663
|
+
"tinyglobby@npm:^0.2.12":
|
|
20664
|
+
version: 0.2.12
|
|
20665
|
+
resolution: "tinyglobby@npm:0.2.12"
|
|
20666
|
+
dependencies:
|
|
20667
|
+
fdir: "npm:^6.4.3"
|
|
20668
|
+
picomatch: "npm:^4.0.2"
|
|
20669
|
+
checksum: 10c0/7c9be4fd3625630e262dcb19015302aad3b4ba7fc620f269313e688f2161ea8724d6cb4444baab5ef2826eb6bed72647b169a33ec8eea37501832a2526ff540f
|
|
20670
|
+
languageName: node
|
|
20671
|
+
linkType: hard
|
|
20672
|
+
|
|
20663
20673
|
"tippy.js@npm:^6.3.7":
|
|
20664
20674
|
version: 6.3.7
|
|
20665
20675
|
resolution: "tippy.js@npm:6.3.7"
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
const SvgLicklistsm = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
width: 28,
|
|
7
|
-
height: 28
|
|
8
|
-
}, props), /*#__PURE__*/React.createElement("g", {
|
|
9
|
-
style: {
|
|
10
|
-
fill: "none",
|
|
11
|
-
stroke: "none"
|
|
12
|
-
},
|
|
13
|
-
transform: "matrix(.33735 0 0 .33735 0 0)"
|
|
14
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
15
|
-
width: 83,
|
|
16
|
-
height: 83,
|
|
17
|
-
rx: 32,
|
|
18
|
-
style: {
|
|
19
|
-
fill: "currentColor"
|
|
20
|
-
}
|
|
21
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
22
|
-
d: "M62.362 29.68q-4.846.696-4.846 4.613c0 3.916 3.86 14.4 2.234 21.184s-5.923 11.108-14.343 13.09c-8.42 1.983-18.22 1.06-22.055-11.404-3.835-12.463 3.206-21.725 7.56-25.196 4.352-3.47 8.58-2.288 8.76-2.288-4.442 0-6.078 5.233-6.078 11.786q0 7.077 5.086 11.741-1.898-8.754.285-14.997c2.183-6.242 4.584-9.01 8.716-9.984q6.992-1.518 14.68 1.454",
|
|
23
|
-
style: {
|
|
24
|
-
fill: "#fff"
|
|
25
|
-
}
|
|
26
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27
|
-
d: "M61.572 27.468q-8.333-6.474-14.031-7.886c-5.7-1.411-8.559 1.073-11.107 2.965-.742-.942-2.359-2.238-4.267-2.238s-4.808 1.285-5.549 4.978q-.74 3.693.73 7.687-5.628-5.715-4.433-10.427c1.194-4.711 6.285-8.645 14.242-8.294s10.029 1.864 15.19 5.33q5.16 3.465 9.225 7.885",
|
|
28
|
-
style: {
|
|
29
|
-
fill: "#fff"
|
|
30
|
-
}
|
|
31
|
-
})));
|
|
32
|
-
|
|
33
|
-
export { SvgLicklistsm as ReactComponent };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
var _desc, _g;
|
|
4
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
|
-
const SvgLicklist = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
viewBox: "0 0 118 28"
|
|
8
|
-
}, props), _desc || (_desc = /*#__PURE__*/React.createElement("desc", null, "Social nightlife")), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
9
|
-
fill: "currentColor"
|
|
10
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
11
|
-
d: "M41.426 20.343v4.093H27.345V2.75h4.46v17.594zm3.32-13.99q-1.16 0-1.894-.733-.733-.733-.733-1.863t.733-1.878q.733-.75 1.894-.749 1.16 0 1.894.749.732.748.733 1.878 0 1.131-.733 1.863-.734.734-1.894.733m-2.169 18.083V8.431h4.337v16.005zm14.132-3.482q1.192 0 2.077-.672a2.95 2.95 0 0 0 1.13-1.74l4.338.732q-.489 2.23-2.413 3.88t-5.101 1.649q-3.482 0-5.758-2.398-2.276-2.397-2.276-5.972 0-3.573 2.276-5.971t5.758-2.398q3.177 0 5.101 1.65t2.413 3.879l-4.337.733a2.95 2.95 0 0 0-1.13-1.741q-.886-.672-2.078-.672-1.71 0-2.688 1.237-.977 1.238-.977 3.283 0 2.048.977 3.284.978 1.237 2.688 1.237M75.973 8.431h5.437l-5.986 6.811 6.414 9.194h-5.132l-4.154-6.323-2.413 2.75v3.573h-4.337V1.527h4.337V15.7zM86.38 24.436h-4.337V1.527h4.337zm4.969-18.083q-1.16 0-1.894-.733-.733-.733-.733-1.863t.733-1.878q.733-.75 1.894-.749 1.16 0 1.894.749.733.748.733 1.878 0 1.131-.733 1.863-.733.734-1.894.733m-2.169 18.083V8.431h4.338v16.005zm5.916-4.673 4.307-.611q.06.946.733 1.558.672.61 1.955.61 1.221 0 1.863-.396.641-.397.641-1.07 0-.733-.916-1.084-.915-.35-2.2-.565a24 24 0 0 1-2.58-.58q-1.299-.367-2.215-1.436-.916-1.07-.916-2.84 0-2.23 1.771-3.758 1.773-1.527 4.643-1.527 3.025 0 4.597 1.42 1.575 1.42 1.91 3.376l-4.094.763q-.06-.916-.687-1.496-.626-.58-1.756-.58-1.039 0-1.62.442-.58.443-.58 1.115 0 .61.657.962.657.351 1.634.474.978.121 2.108.397 1.13.275 2.108.702.977.428 1.634 1.451t.657 2.581q0 2.23-1.818 3.681-1.817 1.45-4.963 1.45-6.201 0-6.873-5.04m22.868.825v3.757q-.733.183-2.046.183-4.918 0-4.918-4.887v-7.79h-2.169v-3.42H111V4.46h4.337v3.97h2.658v3.422h-2.658v7.33q0 1.559 1.62 1.558zM20.989 7.844q-2.536.354-2.536 2.343c0 1.988 2.02 7.312 1.169 10.757-.85 3.444-3.099 5.64-7.504 6.646-4.406 1.007-9.534.538-11.54-5.79C-1.43 15.47 2.256 10.768 4.533 9.006s4.49-1.162 4.584-1.162c-2.324 0-3.18 2.657-3.18 5.984q0 3.594 2.661 5.962-.993-4.445.149-7.615c1.142-3.17 2.398-4.575 4.56-5.07q3.66-.77 7.682.74"
|
|
12
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
13
|
-
d: "M20.576 6.722q-4.36-3.288-7.342-4.005C10.252 2 8.756 3.262 7.423 4.222c-.388-.478-1.234-1.136-2.233-1.136-.998 0-2.515.653-2.903 2.528q-.387 1.874.381 3.903Q-.275 6.614.35 4.222C.974 1.83 3.638-.168 7.801.012c4.164.177 5.247.945 7.948 2.705a26.7 26.7 0 0 1 4.827 4.005"
|
|
14
|
-
}))));
|
|
15
|
-
|
|
16
|
-
export { SvgLicklist as ReactComponent };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface NavigationItem {
|
|
3
|
-
href: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
interface Props {
|
|
7
|
-
children?: ReactNode | ReactNode[];
|
|
8
|
-
href?: string;
|
|
9
|
-
leftNavs?: ReactNode | ReactNode[];
|
|
10
|
-
navItems?: NavigationItem[];
|
|
11
|
-
renderMobileNavigation?: (navigationItems: NavigationItem[]) => ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare function LicklistHeader({ children, href, leftNavs, navItems, renderMobileNavigation, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default LicklistHeader;
|
|
15
|
-
//# sourceMappingURL=LicklistHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LicklistHeader.d.ts","sourceRoot":"","sources":["../../src/header/LicklistHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAkBP;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { ReactComponent as SvgLicklistsm } from '../assets/logo/licklist.sm.svg.js';
|
|
3
|
-
import { ReactComponent as SvgLicklist } from '../assets/logo/licklist.svg.js';
|
|
4
|
-
import Logo from '../logo/Logo.js';
|
|
5
|
-
import Header from './Header.js';
|
|
6
|
-
|
|
7
|
-
function LicklistHeader(param) {
|
|
8
|
-
var children = param.children, href = param.href, leftNavs = param.leftNavs, navItems = param.navItems, renderMobileNavigation = param.renderMobileNavigation;
|
|
9
|
-
return /*#__PURE__*/ jsx(Header, {
|
|
10
|
-
logo: /*#__PURE__*/ jsx(Logo, {
|
|
11
|
-
logo: /*#__PURE__*/ jsx(SvgLicklist, {}),
|
|
12
|
-
logoSm: /*#__PURE__*/ jsx(SvgLicklistsm, {}),
|
|
13
|
-
className: "mt-auto mr-0 mr-sm-3"
|
|
14
|
-
}),
|
|
15
|
-
href: href,
|
|
16
|
-
leftNavs: leftNavs,
|
|
17
|
-
navItems: navItems,
|
|
18
|
-
renderMobileNavigation: renderMobileNavigation,
|
|
19
|
-
children: children
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { LicklistHeader as default };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react'
|
|
2
|
-
import { ReactComponent as LogoSmSvg } from '../assets/logo/licklist.sm.svg'
|
|
3
|
-
import { ReactComponent as LogoSvg } from '../assets/logo/licklist.svg'
|
|
4
|
-
import Logo from '../logo/Logo'
|
|
5
|
-
import Header from './Header'
|
|
6
|
-
|
|
7
|
-
interface NavigationItem {
|
|
8
|
-
href: string
|
|
9
|
-
label: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface Props {
|
|
13
|
-
children?: ReactNode | ReactNode[]
|
|
14
|
-
href?: string
|
|
15
|
-
leftNavs?: ReactNode | ReactNode[]
|
|
16
|
-
navItems?: NavigationItem[]
|
|
17
|
-
renderMobileNavigation?: (navigationItems: NavigationItem[]) => ReactNode
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function LicklistHeader({
|
|
21
|
-
children,
|
|
22
|
-
href,
|
|
23
|
-
leftNavs,
|
|
24
|
-
navItems,
|
|
25
|
-
renderMobileNavigation,
|
|
26
|
-
}: Props) {
|
|
27
|
-
return (
|
|
28
|
-
<Header
|
|
29
|
-
logo={
|
|
30
|
-
<Logo
|
|
31
|
-
logo={<LogoSvg />}
|
|
32
|
-
logoSm={<LogoSmSvg />}
|
|
33
|
-
className='mt-auto mr-0 mr-sm-3'
|
|
34
|
-
/>
|
|
35
|
-
}
|
|
36
|
-
href={href}
|
|
37
|
-
leftNavs={leftNavs}
|
|
38
|
-
navItems={navItems}
|
|
39
|
-
renderMobileNavigation={renderMobileNavigation}
|
|
40
|
-
>
|
|
41
|
-
{children}
|
|
42
|
-
</Header>
|
|
43
|
-
)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default LicklistHeader
|