@citygross/components_v2 0.0.27 → 0.0.29

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.
@@ -13,7 +13,8 @@ declare type TCgButton = {
13
13
  buttonRef?: React.Ref<HTMLButtonElement>;
14
14
  round?: boolean;
15
15
  className?: string;
16
+ shouldPreventDefault?: boolean;
16
17
  };
17
- declare const Button: ({ size, variant, icon, flexReverse, disabled, onClick, children, loading, fullWidth, buttonRef, round, className }: TCgButton) => JSX.Element;
18
+ declare const Button: ({ size, variant, icon, flexReverse, disabled, onClick, children, loading, fullWidth, buttonRef, round, className, shouldPreventDefault }: TCgButton) => JSX.Element;
18
19
 
19
20
  export { Button, TCgButton };
@@ -14,7 +14,8 @@ const Button = ({
14
14
  fullWidth,
15
15
  buttonRef,
16
16
  round,
17
- className
17
+ className,
18
+ shouldPreventDefault = true
18
19
  }) => {
19
20
  return /* @__PURE__ */ React.createElement(
20
21
  "button",
@@ -34,7 +35,7 @@ const Button = ({
34
35
  }
35
36
  },
36
37
  onClick: (e) => {
37
- e.preventDefault();
38
+ shouldPreventDefault && e.preventDefault();
38
39
  onClick && onClick();
39
40
  }
40
41
  },
@@ -24,7 +24,7 @@ function Timeline({
24
24
  "div",
25
25
  {
26
26
  className: baseTimeLineList({
27
- borderStyle: length > 1 ? "none" : borderStyle,
27
+ borderStyle: items?.length > 1 ? "none" : borderStyle,
28
28
  borderColor
29
29
  })
30
30
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components_v2",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -65,8 +65,8 @@
65
65
  "react-dom": "^17.0.1"
66
66
  },
67
67
  "dependencies": {
68
- "@citygross/design-tokens_v2": "^0.0.4",
69
- "@citygross/icons_v2": "^0.0.3",
68
+ "@citygross/design-tokens_v2": "^0.0.5",
69
+ "@citygross/icons_v2": "^0.0.4",
70
70
  "@citygross/react-use-bg-wizard": "^0.0.8",
71
71
  "@citygross/typography": "^0.0.89",
72
72
  "@citygross/utils": "^0.0.39",
@@ -79,5 +79,5 @@
79
79
  "react-slick": "^0.30.1",
80
80
  "slick-carousel": "^1.8.1"
81
81
  },
82
- "gitHead": "d8e083e018fb4c0a96f9d726a448f1999daa5117"
82
+ "gitHead": "6b824e7c2c2cb1cc2c84ef2e353364cfd38775f5"
83
83
  }