@sendoutcards/quantum-design-ui 1.7.23 → 1.7.24

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/index.es.js CHANGED
@@ -15904,7 +15904,9 @@ var Logo = function (_a) {
15904
15904
  _b = _a.type,
15905
15905
  type = _b === void 0 ? 'fullLogo' : _b,
15906
15906
  _c = _a.width,
15907
- width = _c === void 0 ? '128px' : _c;
15907
+ width = _c === void 0 ? '128px' : _c,
15908
+ href = _a.href,
15909
+ onClick = _a.onClick;
15908
15910
 
15909
15911
  function selectLogo() {
15910
15912
  switch (brand) {
@@ -15941,9 +15943,12 @@ var Logo = function (_a) {
15941
15943
  },
15942
15944
  display: "inline-block",
15943
15945
  width: width
15946
+ }, jsx("a", {
15947
+ href: href,
15948
+ onClick: onClick
15944
15949
  }, jsx(SelectedLogo, {
15945
15950
  color: color
15946
- }));
15951
+ })));
15947
15952
  };
15948
15953
 
15949
15954
  var getDifference = function (currentDate, endDate) {
@@ -20240,6 +20245,8 @@ var StaticNavigation = function (_a) {
20240
20245
  }
20241
20246
  })), jsx(Logo, {
20242
20247
  brand: logo.brand,
20248
+ href: logo.href,
20249
+ onClick: logo.onClick,
20243
20250
  color: logo.color,
20244
20251
  width: isMobile ? '130px' : '200px'
20245
20252
  }), !isMobile && jsx(Flex, {
@@ -6,5 +6,7 @@ export declare type LogoProps = {
6
6
  color: LogoColorTypes;
7
7
  type?: 'fullLogo' | 'icon';
8
8
  width?: string;
9
+ href?: string;
10
+ onClick?: () => void;
9
11
  };
10
12
  export declare const Logo: FC<LogoProps>;
@@ -24,6 +24,8 @@ export declare type StaticNavigationProps = {
24
24
  logo: {
25
25
  brand: BrandTypes;
26
26
  color: LogoColorTypes;
27
+ href?: string;
28
+ onClick?: () => void;
27
29
  };
28
30
  accountSection?: React.ReactNode;
29
31
  links: (DropdownLink | Link)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.7.23",
3
+ "version": "1.7.24",
4
4
  "description": "UI component library for Quantum Design System",
5
5
  "module": "dist/index.es.js",
6
6
  "jsnext:main": "dist/index.es.js",