@qite/tide-booking-component 1.4.84 → 1.4.85

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.
@@ -29940,6 +29940,7 @@ var Navbar = function (_a) {
29940
29940
  var _b;
29941
29941
  var currentPath = _a.currentPath,
29942
29942
  logo = _a.logo,
29943
+ onLogoClick = _a.onLogoClick,
29943
29944
  topLinks = _a.topLinks,
29944
29945
  items = _a.items,
29945
29946
  language = _a.language,
@@ -30234,7 +30235,7 @@ var Navbar = function (_a) {
30234
30235
  React__default['default'].createElement(
30235
30236
  'div',
30236
30237
  { className: 'nav__container' },
30237
- React__default['default'].createElement('div', { className: 'nav__logo' }, logo),
30238
+ React__default['default'].createElement('div', { className: 'nav__logo', onClick: onLogoClick }, logo),
30238
30239
  React__default['default'].createElement(
30239
30240
  'div',
30240
30241
  { className: 'nav__wrapper' },
@@ -30480,6 +30481,7 @@ var defaultPayments = [
30480
30481
  var Footer = function (_a) {
30481
30482
  var className = _a.className,
30482
30483
  logo = _a.logo,
30484
+ onLogoClick = _a.onLogoClick,
30483
30485
  _b = _a.social,
30484
30486
  social = _b === void 0 ? defaultSocial : _b,
30485
30487
  _c = _a.columns,
@@ -30499,7 +30501,7 @@ var Footer = function (_a) {
30499
30501
  { className: 'footer__top' },
30500
30502
  React__default['default'].createElement(
30501
30503
  'div',
30502
- { className: 'footer__logo' },
30504
+ { className: 'footer__logo', onClick: onLogoClick },
30503
30505
  logo !== null && logo !== void 0 ? logo : React__default['default'].createElement(DefaultLogo, null)
30504
30506
  ),
30505
30507
  React__default['default'].createElement(
@@ -19,6 +19,7 @@ export interface FooterProps {
19
19
  className?: string;
20
20
  /** Optional override for the logo (defaults to the SVG from your footer) */
21
21
  logo?: React.ReactNode;
22
+ onLogoClick?: () => void;
22
23
  social?: SocialLink[];
23
24
  columns?: FooterColumn[];
24
25
  copyrightText?: string;
@@ -19,6 +19,7 @@ export interface NavItem {
19
19
  export interface NavbarProps {
20
20
  currentPath?: string;
21
21
  logo: React.ReactNode;
22
+ onLogoClick?: () => void;
22
23
  topLinks: NavLink[];
23
24
  items: NavItem[];
24
25
  language: Language;
@@ -29830,6 +29830,7 @@ var Navbar = function (_a) {
29830
29830
  var _b;
29831
29831
  var currentPath = _a.currentPath,
29832
29832
  logo = _a.logo,
29833
+ onLogoClick = _a.onLogoClick,
29833
29834
  topLinks = _a.topLinks,
29834
29835
  items = _a.items,
29835
29836
  language = _a.language,
@@ -30122,7 +30123,7 @@ var Navbar = function (_a) {
30122
30123
  React__default.createElement(
30123
30124
  'div',
30124
30125
  { className: 'nav__container' },
30125
- React__default.createElement('div', { className: 'nav__logo' }, logo),
30126
+ React__default.createElement('div', { className: 'nav__logo', onClick: onLogoClick }, logo),
30126
30127
  React__default.createElement(
30127
30128
  'div',
30128
30129
  { className: 'nav__wrapper' },
@@ -30368,6 +30369,7 @@ var defaultPayments = [
30368
30369
  var Footer = function (_a) {
30369
30370
  var className = _a.className,
30370
30371
  logo = _a.logo,
30372
+ onLogoClick = _a.onLogoClick,
30371
30373
  _b = _a.social,
30372
30374
  social = _b === void 0 ? defaultSocial : _b,
30373
30375
  _c = _a.columns,
@@ -30387,7 +30389,7 @@ var Footer = function (_a) {
30387
30389
  { className: 'footer__top' },
30388
30390
  React__default.createElement(
30389
30391
  'div',
30390
- { className: 'footer__logo' },
30392
+ { className: 'footer__logo', onClick: onLogoClick },
30391
30393
  logo !== null && logo !== void 0 ? logo : React__default.createElement(DefaultLogo, null)
30392
30394
  ),
30393
30395
  React__default.createElement(
@@ -19,6 +19,7 @@ export interface FooterProps {
19
19
  className?: string;
20
20
  /** Optional override for the logo (defaults to the SVG from your footer) */
21
21
  logo?: React.ReactNode;
22
+ onLogoClick?: () => void;
22
23
  social?: SocialLink[];
23
24
  columns?: FooterColumn[];
24
25
  copyrightText?: string;
@@ -19,6 +19,7 @@ export interface NavItem {
19
19
  export interface NavbarProps {
20
20
  currentPath?: string;
21
21
  logo: React.ReactNode;
22
+ onLogoClick?: () => void;
22
23
  topLinks: NavLink[];
23
24
  items: NavItem[];
24
25
  language: Language;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-booking-component",
3
- "version": "1.4.84",
3
+ "version": "1.4.85",
4
4
  "description": "React Booking wizard & Booking product component for Tide",
5
5
  "main": "build/build-cjs/index.js",
6
6
  "types": "build/build-cjs/src/index.d.ts",
@@ -104,6 +104,7 @@ const defaultPayments: PaymentIcon[] = [
104
104
  export const Footer: React.FC<FooterProps> = ({
105
105
  className,
106
106
  logo,
107
+ onLogoClick,
107
108
  social = defaultSocial,
108
109
  columns = defaultColumns,
109
110
  copyrightText = '© 2024 Travel Agency. All rights reserved.',
@@ -113,7 +114,9 @@ export const Footer: React.FC<FooterProps> = ({
113
114
  <footer className={['footer', className].filter(Boolean).join(' ')}>
114
115
  <div className="footer__container">
115
116
  <div className="footer__top">
116
- <div className="footer__logo">{logo ?? <DefaultLogo />}</div>
117
+ <div className="footer__logo" onClick={onLogoClick}>
118
+ {logo ?? <DefaultLogo />}
119
+ </div>
117
120
 
118
121
  <div className="footer__social">
119
122
  {social.map((item) => (
@@ -24,6 +24,7 @@ export interface FooterProps {
24
24
 
25
25
  /** Optional override for the logo (defaults to the SVG from your footer) */
26
26
  logo?: React.ReactNode;
27
+ onLogoClick?: () => void;
27
28
 
28
29
  social?: SocialLink[];
29
30
 
@@ -4,7 +4,20 @@ import Icon from '../components/icon';
4
4
  import { NavbarProps, NavItem } from '../navbar/types';
5
5
  import { getTranslations } from '../../shared/utils/localization-util';
6
6
 
7
- const Navbar: React.FC<NavbarProps> = ({ currentPath, logo, topLinks, items, language, languages, onLanguageChange, onSearch, member, onLogin, onLogout }) => {
7
+ const Navbar: React.FC<NavbarProps> = ({
8
+ currentPath,
9
+ logo,
10
+ onLogoClick,
11
+ topLinks,
12
+ items,
13
+ language,
14
+ languages,
15
+ onLanguageChange,
16
+ onSearch,
17
+ member,
18
+ onLogin,
19
+ onLogout
20
+ }) => {
8
21
  const [menuOpen, setMenuOpen] = useState(false);
9
22
  const [query, setQuery] = useState('');
10
23
  const [activeMobileGroup, setActiveMobileGroup] = useState<string>();
@@ -247,7 +260,9 @@ const Navbar: React.FC<NavbarProps> = ({ currentPath, logo, topLinks, items, lan
247
260
  </div>
248
261
  <nav className="nav__primary">
249
262
  <div className="nav__container">
250
- <div className="nav__logo">{logo}</div>
263
+ <div className="nav__logo" onClick={onLogoClick}>
264
+ {logo}
265
+ </div>
251
266
  <div className="nav__wrapper">
252
267
  <div className="nav__links">{items && items.map(renderNavItem)}</div>
253
268
  <div className="nav__search">
@@ -26,6 +26,7 @@ export interface NavbarProps {
26
26
  currentPath?: string;
27
27
 
28
28
  logo: React.ReactNode;
29
+ onLogoClick?: () => void;
29
30
 
30
31
  topLinks: NavLink[];
31
32
  items: NavItem[];
@@ -29,6 +29,7 @@
29
29
  &__logo {
30
30
  width: auto;
31
31
  height: 40px;
32
+ cursor: pointer;
32
33
 
33
34
  svg,
34
35
  img {
@@ -232,6 +232,7 @@
232
232
  width: auto;
233
233
  height: 100%;
234
234
  padding: 15px 0px;
235
+ cursor: pointer;
235
236
 
236
237
  svg {
237
238
  height: 100%;